Skip to content

Commit e2ab0d6

Browse files
Automatically update staging NodeJS SDK
1 parent 690d2ef commit e2ab0d6

47 files changed

Lines changed: 431 additions & 98 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎BaseClient.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function normalizeClientOptions(options) {
4545
"X-Fern-Language": "JavaScript",
4646
"X-Fern-Runtime": core.RUNTIME.type,
4747
"X-Fern-Runtime-Version": core.RUNTIME.version,
48-
"X-SDK-VERSION": (_a = options === null || options === void 0 ? void 0 : options.sdkVersion) !== null && _a !== void 0 ? _a : "1.24.0",
48+
"X-SDK-VERSION": (_a = options === null || options === void 0 ? void 0 : options.sdkVersion) !== null && _a !== void 0 ? _a : "1.25.0",
4949
"Tenant-ID": options === null || options === void 0 ? void 0 : options.tenantId,
5050
}, options === null || options === void 0 ? void 0 : options.headers);
5151
return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });

‎api/resources/achievements/client/Client.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class AchievementsClient {
8282
};
8383
const _authRequest = yield this._options.authProvider.getAuthRequest();
8484
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
85-
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.24.0",
85+
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.25.0",
8686
"Tenant-ID": (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantId) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.tenantId,
8787
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
8888
const _response = yield core.fetcher({
@@ -156,7 +156,7 @@ class AchievementsClient {
156156
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
157157
const _authRequest = yield this._options.authProvider.getAuthRequest();
158158
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
159-
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.24.0",
159+
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.25.0",
160160
"Tenant-ID": (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantId) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.tenantId,
161161
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
162162
const _response = yield core.fetcher({

‎api/resources/admin/client/Client.d.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
33
import { AchievementsClient } from "../resources/achievements/client/Client";
44
import { ApplicationApiKeysClient } from "../resources/applicationApiKeys/client/Client";
55
import { AttributesClient } from "../resources/attributes/client/Client";
6+
import { EnvironmentsClient } from "../resources/environments/client/Client";
67
import { LeaderboardsClient } from "../resources/leaderboards/client/Client";
78
import { MetricsClient } from "../resources/metrics/client/Client";
89
import { PointsClient } from "../resources/points/client/Client";
@@ -21,6 +22,7 @@ export declare class AdminClient {
2122
protected _streaks: StreaksClient | undefined;
2223
protected _settings: SettingsClient | undefined;
2324
protected _applicationApiKeys: ApplicationApiKeysClient | undefined;
25+
protected _environments: EnvironmentsClient | undefined;
2426
protected _tenants: TenantsClient | undefined;
2527
protected _points: PointsClient | undefined;
2628
constructor(options: AdminClient.Options);
@@ -31,6 +33,7 @@ export declare class AdminClient {
3133
get streaks(): StreaksClient;
3234
get settings(): SettingsClient;
3335
get applicationApiKeys(): ApplicationApiKeysClient;
36+
get environments(): EnvironmentsClient;
3437
get tenants(): TenantsClient;
3538
get points(): PointsClient;
3639
}

‎api/resources/admin/client/Client.js‎

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ const BaseClient_1 = require("../../../../BaseClient");
66
const Client_1 = require("../resources/achievements/client/Client");
77
const Client_2 = require("../resources/applicationApiKeys/client/Client");
88
const Client_3 = require("../resources/attributes/client/Client");
9-
const Client_4 = require("../resources/leaderboards/client/Client");
10-
const Client_5 = require("../resources/metrics/client/Client");
11-
const Client_6 = require("../resources/points/client/Client");
12-
const Client_7 = require("../resources/settings/client/Client");
13-
const Client_8 = require("../resources/streaks/client/Client");
14-
const Client_9 = require("../resources/tenants/client/Client");
9+
const Client_4 = require("../resources/environments/client/Client");
10+
const Client_5 = require("../resources/leaderboards/client/Client");
11+
const Client_6 = require("../resources/metrics/client/Client");
12+
const Client_7 = require("../resources/points/client/Client");
13+
const Client_8 = require("../resources/settings/client/Client");
14+
const Client_9 = require("../resources/streaks/client/Client");
15+
const Client_10 = require("../resources/tenants/client/Client");
1516
class AdminClient {
1617
constructor(options) {
1718
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
@@ -26,31 +27,35 @@ class AdminClient {
2627
}
2728
get metrics() {
2829
var _a;
29-
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_5.MetricsClient(this._options)));
30+
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_6.MetricsClient(this._options)));
3031
}
3132
get leaderboards() {
3233
var _a;
33-
return ((_a = this._leaderboards) !== null && _a !== void 0 ? _a : (this._leaderboards = new Client_4.LeaderboardsClient(this._options)));
34+
return ((_a = this._leaderboards) !== null && _a !== void 0 ? _a : (this._leaderboards = new Client_5.LeaderboardsClient(this._options)));
3435
}
3536
get streaks() {
3637
var _a;
37-
return ((_a = this._streaks) !== null && _a !== void 0 ? _a : (this._streaks = new Client_8.StreaksClient(this._options)));
38+
return ((_a = this._streaks) !== null && _a !== void 0 ? _a : (this._streaks = new Client_9.StreaksClient(this._options)));
3839
}
3940
get settings() {
4041
var _a;
41-
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_7.SettingsClient(this._options)));
42+
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_8.SettingsClient(this._options)));
4243
}
4344
get applicationApiKeys() {
4445
var _a;
4546
return ((_a = this._applicationApiKeys) !== null && _a !== void 0 ? _a : (this._applicationApiKeys = new Client_2.ApplicationApiKeysClient(this._options)));
4647
}
48+
get environments() {
49+
var _a;
50+
return ((_a = this._environments) !== null && _a !== void 0 ? _a : (this._environments = new Client_4.EnvironmentsClient(this._options)));
51+
}
4752
get tenants() {
4853
var _a;
49-
return ((_a = this._tenants) !== null && _a !== void 0 ? _a : (this._tenants = new Client_9.TenantsClient(this._options)));
54+
return ((_a = this._tenants) !== null && _a !== void 0 ? _a : (this._tenants = new Client_10.TenantsClient(this._options)));
5055
}
5156
get points() {
5257
var _a;
53-
return ((_a = this._points) !== null && _a !== void 0 ? _a : (this._points = new Client_6.PointsClient(this._options)));
58+
return ((_a = this._points) !== null && _a !== void 0 ? _a : (this._points = new Client_7.PointsClient(this._options)));
5459
}
5560
}
5661
exports.AdminClient = AdminClient;

‎api/resources/admin/resources/achievements/client/Client.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class AchievementsClient {
8484
};
8585
const _authRequest = yield this._options.authProvider.getAuthRequest();
8686
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
87-
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.24.0",
87+
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.25.0",
8888
"Tenant-ID": (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantId) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.tenantId,
8989
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
9090
const _response = yield core.fetcher({
@@ -159,7 +159,7 @@ class AchievementsClient {
159159
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
160160
const _authRequest = yield this._options.authProvider.getAuthRequest();
161161
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
162-
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.24.0",
162+
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.25.0",
163163
"Tenant-ID": (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantId) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.tenantId,
164164
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
165165
const _response = yield core.fetcher({
@@ -230,7 +230,7 @@ class AchievementsClient {
230230
};
231231
const _authRequest = yield this._options.authProvider.getAuthRequest();
232232
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
233-
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.24.0",
233+
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.25.0",
234234
"Tenant-ID": (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantId) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.tenantId,
235235
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
236236
const _response = yield core.fetcher({
@@ -300,7 +300,7 @@ class AchievementsClient {
300300
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
301301
const _authRequest = yield this._options.authProvider.getAuthRequest();
302302
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
303-
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.24.0",
303+
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.25.0",
304304
"Tenant-ID": (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantId) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.tenantId,
305305
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
306306
const _response = yield core.fetcher({
@@ -366,7 +366,7 @@ class AchievementsClient {
366366
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
367367
const _authRequest = yield this._options.authProvider.getAuthRequest();
368368
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
369-
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.24.0",
369+
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.25.0",
370370
"Tenant-ID": (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantId) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.tenantId,
371371
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
372372
const _response = yield core.fetcher({

‎api/resources/admin/resources/applicationApiKeys/client/Client.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class ApplicationApiKeysClient {
8181
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
8282
const _authRequest = yield this._options.authProvider.getAuthRequest();
8383
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
84-
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.24.0",
84+
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.25.0",
8585
"Tenant-ID": (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantId) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.tenantId,
8686
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
8787
const _response = yield core.fetcher({
@@ -155,7 +155,7 @@ class ApplicationApiKeysClient {
155155
};
156156
const _authRequest = yield this._options.authProvider.getAuthRequest();
157157
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
158-
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.24.0",
158+
"X-SDK-VERSION": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.sdkVersion) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.sdkVersion) !== null && _d !== void 0 ? _d : "1.25.0",
159159
"Tenant-ID": (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantId) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.tenantId,
160160
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
161161
const _response = yield core.fetcher({

0 commit comments

Comments
 (0)