@schematichq/schematic-typescript-node 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +1 -1
- package/api/resources/accesstokens/client/Client.js +1 -1
- package/api/resources/accounts/client/Client.js +14 -14
- package/api/resources/billing/client/Client.js +21 -18
- package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
- package/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/api/resources/companies/client/Client.d.ts +2 -2
- package/api/resources/companies/client/Client.js +33 -33
- package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
- package/api/resources/components/client/Client.js +7 -7
- package/api/resources/crm/client/Client.js +5 -5
- package/api/resources/entitlements/client/Client.d.ts +1 -1
- package/api/resources/entitlements/client/Client.js +20 -20
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
- package/api/resources/events/client/Client.js +7 -7
- package/api/resources/features/client/Client.js +19 -19
- package/api/resources/plangroups/client/Client.js +3 -3
- package/api/resources/plans/client/Client.js +10 -10
- package/api/resources/webhooks/client/Client.js +9 -9
- package/api/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/api/types/CheckFlagResponseData.d.ts +1 -0
- package/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/api/types/CreateEntitlementReqCommon.d.ts +2 -1
- package/api/types/FeatureCompanyResponseData.d.ts +2 -0
- package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/api/types/PlanEntitlementResponseData.d.ts +2 -1
- package/api/types/UpdateEntitlementReqCommon.d.ts +2 -1
- package/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
- package/api/types/UsageBasedEntitlementResponseData.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.js +1 -1
- package/dist/api/resources/accesstokens/client/Client.js +1 -1
- package/dist/api/resources/accounts/client/Client.js +14 -14
- package/dist/api/resources/billing/client/Client.js +21 -18
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/dist/api/resources/companies/client/Client.d.ts +2 -2
- package/dist/api/resources/companies/client/Client.js +33 -33
- package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
- package/dist/api/resources/components/client/Client.js +7 -7
- package/dist/api/resources/crm/client/Client.js +5 -5
- package/dist/api/resources/entitlements/client/Client.d.ts +1 -1
- package/dist/api/resources/entitlements/client/Client.js +20 -20
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
- package/dist/api/resources/events/client/Client.js +7 -7
- package/dist/api/resources/features/client/Client.js +19 -19
- package/dist/api/resources/plangroups/client/Client.js +3 -3
- package/dist/api/resources/plans/client/Client.js +10 -10
- package/dist/api/resources/webhooks/client/Client.js +9 -9
- package/dist/api/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -1
- package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -1
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -1
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +2 -1
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +4 -2
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +2 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +2 -1
- package/dist/serialization/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/dist/serialization/types/CheckFlagOutputWithFlagKey.js +1 -0
- package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/serialization/types/CheckFlagResponseData.js +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +1 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +2 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +2 -1
- package/dist/serialization/types/CreateEntitlementReqCommon.js +2 -1
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanEntitlementResponseData.js +2 -1
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +2 -1
- package/dist/serialization/types/UpdateEntitlementReqCommon.js +2 -1
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.js +41 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +3 -3
- package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +1 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +2 -1
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +4 -2
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +2 -1
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +2 -1
- package/serialization/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/serialization/types/CheckFlagOutputWithFlagKey.js +1 -0
- package/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/serialization/types/CheckFlagResponseData.js +1 -0
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +1 -0
- package/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/serialization/types/ComponentHydrateResponseData.js +2 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/serialization/types/ComponentPreviewResponseData.js +2 -0
- package/serialization/types/CreateEntitlementReqCommon.d.ts +2 -1
- package/serialization/types/CreateEntitlementReqCommon.js +2 -1
- package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/serialization/types/FeatureUsageResponseData.js +1 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +2 -1
- package/serialization/types/PlanEntitlementResponseData.js +2 -1
- package/serialization/types/UpdateEntitlementReqCommon.d.ts +2 -1
- package/serialization/types/UpdateEntitlementReqCommon.js +2 -1
- package/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
- package/serialization/types/UsageBasedEntitlementResponseData.js +41 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
|
@@ -80,7 +80,7 @@ class Features {
|
|
|
80
80
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
81
81
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/count-companies"),
|
|
82
82
|
method: "POST",
|
|
83
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
83
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
requestType: "json",
|
|
86
86
|
body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -184,7 +184,7 @@ class Features {
|
|
|
184
184
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
185
185
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/count-users"),
|
|
186
186
|
method: "POST",
|
|
187
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -288,7 +288,7 @@ class Features {
|
|
|
288
288
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
289
289
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/get-companies"),
|
|
290
290
|
method: "POST",
|
|
291
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
291
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
292
292
|
contentType: "application/json",
|
|
293
293
|
requestType: "json",
|
|
294
294
|
body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -392,7 +392,7 @@ class Features {
|
|
|
392
392
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
393
393
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "audience/get-users"),
|
|
394
394
|
method: "POST",
|
|
395
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
395
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
396
396
|
contentType: "application/json",
|
|
397
397
|
requestType: "json",
|
|
398
398
|
body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -508,7 +508,7 @@ class Features {
|
|
|
508
508
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
509
509
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "features"),
|
|
510
510
|
method: "GET",
|
|
511
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
511
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
512
512
|
contentType: "application/json",
|
|
513
513
|
queryParameters: _queryParams,
|
|
514
514
|
requestType: "json",
|
|
@@ -603,7 +603,7 @@ class Features {
|
|
|
603
603
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
604
604
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "features"),
|
|
605
605
|
method: "POST",
|
|
606
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
606
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
607
607
|
contentType: "application/json",
|
|
608
608
|
requestType: "json",
|
|
609
609
|
body: serializers.CreateFeatureRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -694,7 +694,7 @@ class Features {
|
|
|
694
694
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
695
695
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
|
|
696
696
|
method: "GET",
|
|
697
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
697
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
698
698
|
contentType: "application/json",
|
|
699
699
|
requestType: "json",
|
|
700
700
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -786,7 +786,7 @@ class Features {
|
|
|
786
786
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
787
787
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
|
|
788
788
|
method: "PUT",
|
|
789
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
789
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
790
790
|
contentType: "application/json",
|
|
791
791
|
requestType: "json",
|
|
792
792
|
body: serializers.UpdateFeatureRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -885,7 +885,7 @@ class Features {
|
|
|
885
885
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
886
886
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
|
|
887
887
|
method: "DELETE",
|
|
888
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
888
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
889
889
|
contentType: "application/json",
|
|
890
890
|
requestType: "json",
|
|
891
891
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1000,7 +1000,7 @@ class Features {
|
|
|
1000
1000
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1001
1001
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "features/count"),
|
|
1002
1002
|
method: "GET",
|
|
1003
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1003
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1004
1004
|
contentType: "application/json",
|
|
1005
1005
|
queryParameters: _queryParams,
|
|
1006
1006
|
requestType: "json",
|
|
@@ -1113,7 +1113,7 @@ class Features {
|
|
|
1113
1113
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1114
1114
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags"),
|
|
1115
1115
|
method: "GET",
|
|
1116
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1116
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1117
1117
|
contentType: "application/json",
|
|
1118
1118
|
queryParameters: _queryParams,
|
|
1119
1119
|
requestType: "json",
|
|
@@ -1210,7 +1210,7 @@ class Features {
|
|
|
1210
1210
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1211
1211
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags"),
|
|
1212
1212
|
method: "POST",
|
|
1213
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1213
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1214
1214
|
contentType: "application/json",
|
|
1215
1215
|
requestType: "json",
|
|
1216
1216
|
body: serializers.CreateFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1301,7 +1301,7 @@ class Features {
|
|
|
1301
1301
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1302
1302
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
|
|
1303
1303
|
method: "GET",
|
|
1304
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1304
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1305
1305
|
contentType: "application/json",
|
|
1306
1306
|
requestType: "json",
|
|
1307
1307
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1399,7 +1399,7 @@ class Features {
|
|
|
1399
1399
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1400
1400
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
|
|
1401
1401
|
method: "PUT",
|
|
1402
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1402
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1403
1403
|
contentType: "application/json",
|
|
1404
1404
|
requestType: "json",
|
|
1405
1405
|
body: serializers.CreateFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1498,7 +1498,7 @@ class Features {
|
|
|
1498
1498
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1499
1499
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
|
|
1500
1500
|
method: "DELETE",
|
|
1501
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1501
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1502
1502
|
contentType: "application/json",
|
|
1503
1503
|
requestType: "json",
|
|
1504
1504
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1608,7 +1608,7 @@ class Features {
|
|
|
1608
1608
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1609
1609
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}/rules`),
|
|
1610
1610
|
method: "PUT",
|
|
1611
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1611
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1612
1612
|
contentType: "application/json",
|
|
1613
1613
|
requestType: "json",
|
|
1614
1614
|
body: serializers.UpdateFlagRulesRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1708,7 +1708,7 @@ class Features {
|
|
|
1708
1708
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1709
1709
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(key)}/check`),
|
|
1710
1710
|
method: "POST",
|
|
1711
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1711
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1712
1712
|
contentType: "application/json",
|
|
1713
1713
|
requestType: "json",
|
|
1714
1714
|
body: serializers.CheckFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1799,7 +1799,7 @@ class Features {
|
|
|
1799
1799
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1800
1800
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags/check"),
|
|
1801
1801
|
method: "POST",
|
|
1802
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1802
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1803
1803
|
contentType: "application/json",
|
|
1804
1804
|
requestType: "json",
|
|
1805
1805
|
body: serializers.CheckFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1912,7 +1912,7 @@ class Features {
|
|
|
1912
1912
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1913
1913
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "flags/count"),
|
|
1914
1914
|
method: "GET",
|
|
1915
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1915
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1916
1916
|
contentType: "application/json",
|
|
1917
1917
|
queryParameters: _queryParams,
|
|
1918
1918
|
requestType: "json",
|
|
@@ -66,7 +66,7 @@ class Plangroups {
|
|
|
66
66
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
67
67
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-groups"),
|
|
68
68
|
method: "GET",
|
|
69
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
69
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
requestType: "json",
|
|
72
72
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -159,7 +159,7 @@ class Plangroups {
|
|
|
159
159
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
160
160
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plan-groups"),
|
|
161
161
|
method: "POST",
|
|
162
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
162
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
163
163
|
contentType: "application/json",
|
|
164
164
|
requestType: "json",
|
|
165
165
|
body: serializers.CreatePlanGroupRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -255,7 +255,7 @@ class Plangroups {
|
|
|
255
255
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
256
256
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-groups/${encodeURIComponent(planGroupId)}`),
|
|
257
257
|
method: "PUT",
|
|
258
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
258
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
259
259
|
contentType: "application/json",
|
|
260
260
|
requestType: "json",
|
|
261
261
|
body: serializers.UpdatePlanGroupRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -67,7 +67,7 @@ class Plans {
|
|
|
67
67
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
68
68
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-audiences/${encodeURIComponent(planAudienceId)}`),
|
|
69
69
|
method: "GET",
|
|
70
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
70
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
71
71
|
contentType: "application/json",
|
|
72
72
|
requestType: "json",
|
|
73
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -172,7 +172,7 @@ class Plans {
|
|
|
172
172
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
173
173
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-audiences/${encodeURIComponent(planAudienceId)}`),
|
|
174
174
|
method: "PUT",
|
|
175
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
175
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
176
176
|
contentType: "application/json",
|
|
177
177
|
requestType: "json",
|
|
178
178
|
body: serializers.UpdateAudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -271,7 +271,7 @@ class Plans {
|
|
|
271
271
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
272
272
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plan-audiences/${encodeURIComponent(planAudienceId)}`),
|
|
273
273
|
method: "DELETE",
|
|
274
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
274
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
275
275
|
contentType: "application/json",
|
|
276
276
|
requestType: "json",
|
|
277
277
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -395,7 +395,7 @@ class Plans {
|
|
|
395
395
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
396
396
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plans"),
|
|
397
397
|
method: "GET",
|
|
398
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
398
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
399
399
|
contentType: "application/json",
|
|
400
400
|
queryParameters: _queryParams,
|
|
401
401
|
requestType: "json",
|
|
@@ -490,7 +490,7 @@ class Plans {
|
|
|
490
490
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
491
491
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plans"),
|
|
492
492
|
method: "POST",
|
|
493
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
493
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
494
494
|
contentType: "application/json",
|
|
495
495
|
requestType: "json",
|
|
496
496
|
body: serializers.CreatePlanRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -581,7 +581,7 @@ class Plans {
|
|
|
581
581
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
582
582
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plans/${encodeURIComponent(planId)}`),
|
|
583
583
|
method: "GET",
|
|
584
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
584
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
585
585
|
contentType: "application/json",
|
|
586
586
|
requestType: "json",
|
|
587
587
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -675,7 +675,7 @@ class Plans {
|
|
|
675
675
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
676
676
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plans/${encodeURIComponent(planId)}`),
|
|
677
677
|
method: "PUT",
|
|
678
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
678
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
679
679
|
contentType: "application/json",
|
|
680
680
|
requestType: "json",
|
|
681
681
|
body: serializers.UpdatePlanRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -774,7 +774,7 @@ class Plans {
|
|
|
774
774
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
775
775
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plans/${encodeURIComponent(planId)}`),
|
|
776
776
|
method: "DELETE",
|
|
777
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
777
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
778
778
|
contentType: "application/json",
|
|
779
779
|
requestType: "json",
|
|
780
780
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -869,7 +869,7 @@ class Plans {
|
|
|
869
869
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
870
870
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `plans/${encodeURIComponent(planId)}/billing_products`),
|
|
871
871
|
method: "PUT",
|
|
872
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
872
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
873
873
|
contentType: "application/json",
|
|
874
874
|
requestType: "json",
|
|
875
875
|
body: serializers.UpsertBillingProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1002,7 +1002,7 @@ class Plans {
|
|
|
1002
1002
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1003
1003
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plans/count"),
|
|
1004
1004
|
method: "GET",
|
|
1005
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1005
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1006
1006
|
contentType: "application/json",
|
|
1007
1007
|
queryParameters: _queryParams,
|
|
1008
1008
|
requestType: "json",
|
|
@@ -89,7 +89,7 @@ class Webhooks {
|
|
|
89
89
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
90
90
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhook-events"),
|
|
91
91
|
method: "GET",
|
|
92
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
92
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -180,7 +180,7 @@ class Webhooks {
|
|
|
180
180
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
181
181
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhook-events/${encodeURIComponent(webhookEventId)}`),
|
|
182
182
|
method: "GET",
|
|
183
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
183
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
184
184
|
contentType: "application/json",
|
|
185
185
|
requestType: "json",
|
|
186
186
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -292,7 +292,7 @@ class Webhooks {
|
|
|
292
292
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
293
293
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhook-events/count"),
|
|
294
294
|
method: "GET",
|
|
295
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
295
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
296
296
|
contentType: "application/json",
|
|
297
297
|
queryParameters: _queryParams,
|
|
298
298
|
requestType: "json",
|
|
@@ -394,7 +394,7 @@ class Webhooks {
|
|
|
394
394
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
395
395
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks"),
|
|
396
396
|
method: "GET",
|
|
397
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
397
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
398
398
|
contentType: "application/json",
|
|
399
399
|
queryParameters: _queryParams,
|
|
400
400
|
requestType: "json",
|
|
@@ -489,7 +489,7 @@ class Webhooks {
|
|
|
489
489
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
490
490
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks"),
|
|
491
491
|
method: "POST",
|
|
492
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
492
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
493
493
|
contentType: "application/json",
|
|
494
494
|
requestType: "json",
|
|
495
495
|
body: serializers.CreateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -580,7 +580,7 @@ class Webhooks {
|
|
|
580
580
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
581
581
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
582
582
|
method: "GET",
|
|
583
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
583
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
584
584
|
contentType: "application/json",
|
|
585
585
|
requestType: "json",
|
|
586
586
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -672,7 +672,7 @@ class Webhooks {
|
|
|
672
672
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
673
673
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
674
674
|
method: "PUT",
|
|
675
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
675
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
676
676
|
contentType: "application/json",
|
|
677
677
|
requestType: "json",
|
|
678
678
|
body: serializers.UpdateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -771,7 +771,7 @@ class Webhooks {
|
|
|
771
771
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
772
772
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
773
773
|
method: "DELETE",
|
|
774
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
774
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
775
775
|
contentType: "application/json",
|
|
776
776
|
requestType: "json",
|
|
777
777
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -872,7 +872,7 @@ class Webhooks {
|
|
|
872
872
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
873
873
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks/count"),
|
|
874
874
|
method: "GET",
|
|
875
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
875
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
876
876
|
contentType: "application/json",
|
|
877
877
|
queryParameters: _queryParams,
|
|
878
878
|
requestType: "json",
|
|
@@ -5,6 +5,7 @@ import * as Schematic from "../index";
|
|
|
5
5
|
export interface CompanyPlanDetailResponseData {
|
|
6
6
|
audienceType?: string;
|
|
7
7
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
8
|
+
companyCanTrial: boolean;
|
|
8
9
|
companyCount: number;
|
|
9
10
|
createdAt: Date;
|
|
10
11
|
current: boolean;
|
|
@@ -5,6 +5,7 @@ import * as Schematic from "../index";
|
|
|
5
5
|
export interface ComponentHydrateResponseData {
|
|
6
6
|
activeAddOns: Schematic.CompanyPlanDetailResponseData[];
|
|
7
7
|
activePlans: Schematic.CompanyPlanDetailResponseData[];
|
|
8
|
+
activeUsageBasedEntitlements: Schematic.UsageBasedEntitlementResponseData[];
|
|
8
9
|
capabilities?: Schematic.ComponentCapabilities;
|
|
9
10
|
company?: Schematic.CompanyDetailResponseData;
|
|
10
11
|
component?: Schematic.ComponentResponseData;
|
|
@@ -8,6 +8,7 @@ import * as Schematic from "../index";
|
|
|
8
8
|
export interface ComponentPreviewResponseData {
|
|
9
9
|
activeAddOns: Schematic.CompanyPlanDetailResponseData[];
|
|
10
10
|
activePlans: Schematic.CompanyPlanDetailResponseData[];
|
|
11
|
+
activeUsageBasedEntitlements: Schematic.UsageBasedEntitlementResponseData[];
|
|
11
12
|
capabilities?: Schematic.ComponentCapabilities;
|
|
12
13
|
company?: Schematic.CompanyDetailResponseData;
|
|
13
14
|
component?: Schematic.ComponentResponseData;
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
import * as Schematic from "../index";
|
|
5
5
|
export interface CreateEntitlementReqCommon {
|
|
6
6
|
featureId: string;
|
|
7
|
-
|
|
7
|
+
meteredMonthlyPriceId?: string;
|
|
8
|
+
meteredYearlyPriceId?: string;
|
|
8
9
|
metricPeriod?: Schematic.CreateEntitlementReqCommonMetricPeriod;
|
|
9
10
|
metricPeriodMonthReset?: Schematic.CreateEntitlementReqCommonMetricPeriodMonthReset;
|
|
10
11
|
valueBool?: boolean;
|
|
@@ -13,6 +13,8 @@ export interface FeatureCompanyResponseData {
|
|
|
13
13
|
entitlementId: string;
|
|
14
14
|
entitlementType: string;
|
|
15
15
|
feature?: Schematic.FeatureDetailResponseData;
|
|
16
|
+
/** The time at which the metric will resets. */
|
|
17
|
+
metricResetAt?: Date;
|
|
16
18
|
/** If the period is current_month, when the month resets. */
|
|
17
19
|
monthReset?: string;
|
|
18
20
|
/** The period over which usage is measured. */
|
|
@@ -13,6 +13,8 @@ export interface FeatureCompanyUserResponseData {
|
|
|
13
13
|
entitlementId: string;
|
|
14
14
|
entitlementType: string;
|
|
15
15
|
feature?: Schematic.FeatureDetailResponseData;
|
|
16
|
+
/** The time at which the metric will resets. */
|
|
17
|
+
metricResetAt?: Date;
|
|
16
18
|
/** If the period is current_month, when the month resets. */
|
|
17
19
|
monthReset?: string;
|
|
18
20
|
/** The period over which usage is measured. */
|
|
@@ -12,6 +12,8 @@ export interface FeatureUsageResponseData {
|
|
|
12
12
|
entitlementId: string;
|
|
13
13
|
entitlementType: string;
|
|
14
14
|
feature?: Schematic.FeatureDetailResponseData;
|
|
15
|
+
/** The time at which the metric will resets. */
|
|
16
|
+
metricResetAt?: Date;
|
|
15
17
|
/** If the period is current_month, when the month resets. */
|
|
16
18
|
monthReset?: string;
|
|
17
19
|
/** The period over which usage is measured. */
|
|
@@ -8,7 +8,8 @@ export interface PlanEntitlementResponseData {
|
|
|
8
8
|
feature?: Schematic.FeatureResponseData;
|
|
9
9
|
featureId: string;
|
|
10
10
|
id: string;
|
|
11
|
-
|
|
11
|
+
meteredMonthlyPrice?: Schematic.BillingPriceView;
|
|
12
|
+
meteredYearlyPrice?: Schematic.BillingPriceView;
|
|
12
13
|
metricPeriod?: string;
|
|
13
14
|
metricPeriodMonthReset?: string;
|
|
14
15
|
plan?: Schematic.PlanResponseData;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Schematic from "../index";
|
|
5
5
|
export interface UpdateEntitlementReqCommon {
|
|
6
|
-
|
|
6
|
+
meteredMonthlyPriceId?: string;
|
|
7
|
+
meteredYearlyPriceId?: string;
|
|
7
8
|
metricPeriod?: Schematic.UpdateEntitlementReqCommonMetricPeriod;
|
|
8
9
|
metricPeriodMonthReset?: Schematic.UpdateEntitlementReqCommonMetricPeriodMonthReset;
|
|
9
10
|
valueBool?: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../index";
|
|
5
|
+
export interface UsageBasedEntitlementResponseData {
|
|
6
|
+
featureId: string;
|
|
7
|
+
meteredPrice?: Schematic.BillingPriceView;
|
|
8
|
+
metricPeriod?: string;
|
|
9
|
+
metricPeriodMonthReset?: string;
|
|
10
|
+
priceBehavior?: string;
|
|
11
|
+
valueBool?: boolean;
|
|
12
|
+
valueNumeric?: number;
|
|
13
|
+
valueType: string;
|
|
14
|
+
}
|
|
@@ -126,6 +126,7 @@ export * from "./UpsertCompanyRequestBody";
|
|
|
126
126
|
export * from "./UpsertTraitRequestBody";
|
|
127
127
|
export * from "./UpsertUserRequestBody";
|
|
128
128
|
export * from "./UpsertUserSubRequestBody";
|
|
129
|
+
export * from "./UsageBasedEntitlementResponseData";
|
|
129
130
|
export * from "./UserDetailResponseData";
|
|
130
131
|
export * from "./UserResponseData";
|
|
131
132
|
export * from "./WebhookEventDetailResponseData";
|
package/dist/api/types/index.js
CHANGED
|
@@ -142,6 +142,7 @@ __exportStar(require("./UpsertCompanyRequestBody"), exports);
|
|
|
142
142
|
__exportStar(require("./UpsertTraitRequestBody"), exports);
|
|
143
143
|
__exportStar(require("./UpsertUserRequestBody"), exports);
|
|
144
144
|
__exportStar(require("./UpsertUserSubRequestBody"), exports);
|
|
145
|
+
__exportStar(require("./UsageBasedEntitlementResponseData"), exports);
|
|
145
146
|
__exportStar(require("./UserDetailResponseData"), exports);
|
|
146
147
|
__exportStar(require("./UserResponseData"), exports);
|
|
147
148
|
__exportStar(require("./WebhookEventDetailResponseData"), exports);
|
|
@@ -8,6 +8,7 @@ export declare const SearchBillingPricesParams: core.serialization.ObjectSchema<
|
|
|
8
8
|
export declare namespace SearchBillingPricesParams {
|
|
9
9
|
interface Raw {
|
|
10
10
|
ids?: string[] | null;
|
|
11
|
+
interval?: string | null;
|
|
11
12
|
limit?: number | null;
|
|
12
13
|
offset?: number | null;
|
|
13
14
|
price?: number | null;
|
|
@@ -30,6 +30,7 @@ exports.SearchBillingPricesParams = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
exports.SearchBillingPricesParams = core.serialization.object({
|
|
32
32
|
ids: core.serialization.list(core.serialization.string()).optional(),
|
|
33
|
+
interval: core.serialization.string().optional(),
|
|
33
34
|
limit: core.serialization.number().optional(),
|
|
34
35
|
offset: core.serialization.number().optional(),
|
|
35
36
|
price: core.serialization.number().optional(),
|