@schematichq/schematic-typescript-node 1.1.8 → 1.1.9
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/api/resources/accesstokens/client/Client.js +1 -1
- package/api/resources/accounts/client/Client.js +14 -14
- package/api/resources/billing/client/Client.js +18 -18
- package/api/resources/checkout/client/Client.js +4 -4
- package/api/resources/companies/client/Client.js +31 -31
- package/api/resources/components/client/Client.js +7 -7
- package/api/resources/crm/client/Client.js +5 -5
- package/api/resources/entitlements/client/Client.js +19 -19
- package/api/resources/events/client/Client.js +6 -6
- 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 +19 -13
- package/api/resources/plans/client/requests/CountPlansRequest.d.ts +4 -0
- package/api/resources/plans/client/requests/ListPlansRequest.d.ts +4 -0
- package/api/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/api/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/api/resources/webhooks/client/Client.js +9 -9
- package/api/types/EventBodyTrack.d.ts +2 -0
- package/api/types/EventDetailResponseData.d.ts +1 -0
- package/api/types/EventResponseData.d.ts +1 -0
- package/api/types/UsageBasedEntitlementResponseData.d.ts +2 -0
- 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 +18 -18
- package/dist/api/resources/checkout/client/Client.js +4 -4
- package/dist/api/resources/companies/client/Client.js +31 -31
- 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.js +19 -19
- package/dist/api/resources/events/client/Client.js +6 -6
- 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 +19 -13
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +4 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +4 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/dist/api/resources/webhooks/client/Client.js +9 -9
- package/dist/api/types/EventBodyTrack.d.ts +2 -0
- package/dist/api/types/EventDetailResponseData.d.ts +1 -0
- package/dist/api/types/EventResponseData.d.ts +1 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +2 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.js +1 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.js +1 -0
- package/dist/serialization/types/EventBodyTrack.d.ts +1 -0
- package/dist/serialization/types/EventBodyTrack.js +1 -0
- package/dist/serialization/types/EventDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/EventDetailResponseData.js +1 -0
- package/dist/serialization/types/EventResponseData.d.ts +1 -0
- package/dist/serialization/types/EventResponseData.js +1 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +2 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
- package/serialization/resources/plans/types/CountPlansParams.js +1 -0
- package/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
- package/serialization/resources/plans/types/ListPlansParams.js +1 -0
- package/serialization/types/EventBodyTrack.d.ts +1 -0
- package/serialization/types/EventBodyTrack.js +1 -0
- package/serialization/types/EventDetailResponseData.d.ts +1 -0
- package/serialization/types/EventDetailResponseData.js +1 -0
- package/serialization/types/EventResponseData.d.ts +1 -0
- package/serialization/types/EventResponseData.js +1 -0
- package/serialization/types/UsageBasedEntitlementResponseData.d.ts +2 -0
- package/serialization/types/UsageBasedEntitlementResponseData.js +2 -0
|
@@ -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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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" }),
|
|
@@ -71,7 +71,7 @@ class Plans {
|
|
|
71
71
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
72
72
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-plans/${encodeURIComponent(companyPlanId)}`),
|
|
73
73
|
method: "PUT",
|
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
74
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
body: serializers.UpdateCompanyPlansRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -170,7 +170,7 @@ class Plans {
|
|
|
170
170
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
171
171
|
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)}`),
|
|
172
172
|
method: "GET",
|
|
173
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
173
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
requestType: "json",
|
|
176
176
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -275,7 +275,7 @@ class Plans {
|
|
|
275
275
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
276
276
|
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)}`),
|
|
277
277
|
method: "PUT",
|
|
278
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
278
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
279
279
|
contentType: "application/json",
|
|
280
280
|
requestType: "json",
|
|
281
281
|
body: serializers.UpdateAudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -374,7 +374,7 @@ class Plans {
|
|
|
374
374
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
375
375
|
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)}`),
|
|
376
376
|
method: "DELETE",
|
|
377
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
377
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
378
378
|
contentType: "application/json",
|
|
379
379
|
requestType: "json",
|
|
380
380
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -461,7 +461,7 @@ class Plans {
|
|
|
461
461
|
listPlans(request = {}, requestOptions) {
|
|
462
462
|
var _a, _b;
|
|
463
463
|
return __awaiter(this, void 0, void 0, function* () {
|
|
464
|
-
const { companyId, hasProductId, ids, planType, q, withoutEntitlementFor, withoutProductId, limit, offset } = request;
|
|
464
|
+
const { companyId, hasProductId, ids, planType, q, withoutEntitlementFor, withoutProductId, withoutPaidProductId, limit, offset, } = request;
|
|
465
465
|
const _queryParams = {};
|
|
466
466
|
if (companyId != null) {
|
|
467
467
|
_queryParams["company_id"] = companyId;
|
|
@@ -489,6 +489,9 @@ class Plans {
|
|
|
489
489
|
if (withoutProductId != null) {
|
|
490
490
|
_queryParams["without_product_id"] = withoutProductId.toString();
|
|
491
491
|
}
|
|
492
|
+
if (withoutPaidProductId != null) {
|
|
493
|
+
_queryParams["without_paid_product_id"] = withoutPaidProductId.toString();
|
|
494
|
+
}
|
|
492
495
|
if (limit != null) {
|
|
493
496
|
_queryParams["limit"] = limit.toString();
|
|
494
497
|
}
|
|
@@ -498,7 +501,7 @@ class Plans {
|
|
|
498
501
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
499
502
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plans"),
|
|
500
503
|
method: "GET",
|
|
501
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
504
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
502
505
|
contentType: "application/json",
|
|
503
506
|
queryParameters: _queryParams,
|
|
504
507
|
requestType: "json",
|
|
@@ -593,7 +596,7 @@ class Plans {
|
|
|
593
596
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
594
597
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plans"),
|
|
595
598
|
method: "POST",
|
|
596
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
599
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
597
600
|
contentType: "application/json",
|
|
598
601
|
requestType: "json",
|
|
599
602
|
body: serializers.CreatePlanRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -684,7 +687,7 @@ class Plans {
|
|
|
684
687
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
685
688
|
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)}`),
|
|
686
689
|
method: "GET",
|
|
687
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
690
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
688
691
|
contentType: "application/json",
|
|
689
692
|
requestType: "json",
|
|
690
693
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -778,7 +781,7 @@ class Plans {
|
|
|
778
781
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
779
782
|
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)}`),
|
|
780
783
|
method: "PUT",
|
|
781
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
784
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
782
785
|
contentType: "application/json",
|
|
783
786
|
requestType: "json",
|
|
784
787
|
body: serializers.UpdatePlanRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -877,7 +880,7 @@ class Plans {
|
|
|
877
880
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
878
881
|
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)}`),
|
|
879
882
|
method: "DELETE",
|
|
880
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
883
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
881
884
|
contentType: "application/json",
|
|
882
885
|
requestType: "json",
|
|
883
886
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -972,7 +975,7 @@ class Plans {
|
|
|
972
975
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
973
976
|
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`),
|
|
974
977
|
method: "PUT",
|
|
975
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
978
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
976
979
|
contentType: "application/json",
|
|
977
980
|
requestType: "json",
|
|
978
981
|
body: serializers.UpsertBillingProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1068,7 +1071,7 @@ class Plans {
|
|
|
1068
1071
|
countPlans(request = {}, requestOptions) {
|
|
1069
1072
|
var _a, _b;
|
|
1070
1073
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1071
|
-
const { companyId, hasProductId, ids, planType, q, withoutEntitlementFor, withoutProductId, limit, offset } = request;
|
|
1074
|
+
const { companyId, hasProductId, ids, planType, q, withoutEntitlementFor, withoutProductId, withoutPaidProductId, limit, offset, } = request;
|
|
1072
1075
|
const _queryParams = {};
|
|
1073
1076
|
if (companyId != null) {
|
|
1074
1077
|
_queryParams["company_id"] = companyId;
|
|
@@ -1096,6 +1099,9 @@ class Plans {
|
|
|
1096
1099
|
if (withoutProductId != null) {
|
|
1097
1100
|
_queryParams["without_product_id"] = withoutProductId.toString();
|
|
1098
1101
|
}
|
|
1102
|
+
if (withoutPaidProductId != null) {
|
|
1103
|
+
_queryParams["without_paid_product_id"] = withoutPaidProductId.toString();
|
|
1104
|
+
}
|
|
1099
1105
|
if (limit != null) {
|
|
1100
1106
|
_queryParams["limit"] = limit.toString();
|
|
1101
1107
|
}
|
|
@@ -1105,7 +1111,7 @@ class Plans {
|
|
|
1105
1111
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1106
1112
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "plans/count"),
|
|
1107
1113
|
method: "GET",
|
|
1108
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1114
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1109
1115
|
contentType: "application/json",
|
|
1110
1116
|
queryParameters: _queryParams,
|
|
1111
1117
|
requestType: "json",
|
|
@@ -26,6 +26,10 @@ export interface CountPlansRequest {
|
|
|
26
26
|
* Filter out plans that have a billing product ID
|
|
27
27
|
*/
|
|
28
28
|
withoutProductId?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Filter out plans that have a paid billing product ID
|
|
31
|
+
*/
|
|
32
|
+
withoutPaidProductId?: boolean;
|
|
29
33
|
/**
|
|
30
34
|
* Page limit (default 100)
|
|
31
35
|
*/
|
|
@@ -26,6 +26,10 @@ export interface ListPlansRequest {
|
|
|
26
26
|
* Filter out plans that have a billing product ID
|
|
27
27
|
*/
|
|
28
28
|
withoutProductId?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Filter out plans that have a paid billing product ID
|
|
31
|
+
*/
|
|
32
|
+
withoutPaidProductId?: boolean;
|
|
29
33
|
/**
|
|
30
34
|
* Page limit (default 100)
|
|
31
35
|
*/
|
|
@@ -19,6 +19,8 @@ export interface CountPlansParams {
|
|
|
19
19
|
q?: string;
|
|
20
20
|
/** Filter out plans that already have a plan entitlement for the specified feature ID */
|
|
21
21
|
withoutEntitlementFor?: string;
|
|
22
|
+
/** Filter out plans that have a paid billing product ID */
|
|
23
|
+
withoutPaidProductId?: boolean;
|
|
22
24
|
/** Filter out plans that have a billing product ID */
|
|
23
25
|
withoutProductId?: boolean;
|
|
24
26
|
}
|
|
@@ -19,6 +19,8 @@ export interface ListPlansParams {
|
|
|
19
19
|
q?: string;
|
|
20
20
|
/** Filter out plans that already have a plan entitlement for the specified feature ID */
|
|
21
21
|
withoutEntitlementFor?: string;
|
|
22
|
+
/** Filter out plans that have a paid billing product ID */
|
|
23
|
+
withoutPaidProductId?: boolean;
|
|
22
24
|
/** Filter out plans that have a billing product ID */
|
|
23
25
|
withoutProductId?: boolean;
|
|
24
26
|
}
|
|
@@ -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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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.9", "User-Agent": "@schematichq/schematic-typescript-node/1.1.9", "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",
|
|
@@ -6,6 +6,8 @@ export interface EventBodyTrack {
|
|
|
6
6
|
company?: Record<string, string>;
|
|
7
7
|
/** The name of the type of track event */
|
|
8
8
|
event: string;
|
|
9
|
+
/** Optionally specify the quantity of the event */
|
|
10
|
+
quantity?: number;
|
|
9
11
|
/** A map of trait names to trait values */
|
|
10
12
|
traits?: Record<string, unknown>;
|
|
11
13
|
/** Key-value pairs to identify user associated with track event */
|
|
@@ -7,8 +7,10 @@ export interface UsageBasedEntitlementResponseData {
|
|
|
7
7
|
meteredPrice?: Schematic.BillingPriceView;
|
|
8
8
|
metricPeriod?: string;
|
|
9
9
|
metricPeriodMonthReset?: string;
|
|
10
|
+
monthlyUsageBasedPrice?: Schematic.BillingPriceView;
|
|
10
11
|
priceBehavior?: string;
|
|
11
12
|
valueBool?: boolean;
|
|
12
13
|
valueNumeric?: number;
|
|
13
14
|
valueType: string;
|
|
15
|
+
yearlyUsageBasedPrice?: Schematic.BillingPriceView;
|
|
14
16
|
}
|
|
@@ -16,6 +16,7 @@ export declare namespace CountPlansParams {
|
|
|
16
16
|
plan_type?: CountPlansResponseParamsPlanType.Raw | null;
|
|
17
17
|
q?: string | null;
|
|
18
18
|
without_entitlement_for?: string | null;
|
|
19
|
+
without_paid_product_id?: boolean | null;
|
|
19
20
|
without_product_id?: boolean | null;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -38,5 +38,6 @@ exports.CountPlansParams = core.serialization.object({
|
|
|
38
38
|
planType: core.serialization.property("plan_type", CountPlansResponseParamsPlanType_1.CountPlansResponseParamsPlanType.optional()),
|
|
39
39
|
q: core.serialization.string().optional(),
|
|
40
40
|
withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
|
|
41
|
+
withoutPaidProductId: core.serialization.property("without_paid_product_id", core.serialization.boolean().optional()),
|
|
41
42
|
withoutProductId: core.serialization.property("without_product_id", core.serialization.boolean().optional()),
|
|
42
43
|
});
|
|
@@ -16,6 +16,7 @@ export declare namespace ListPlansParams {
|
|
|
16
16
|
plan_type?: ListPlansResponseParamsPlanType.Raw | null;
|
|
17
17
|
q?: string | null;
|
|
18
18
|
without_entitlement_for?: string | null;
|
|
19
|
+
without_paid_product_id?: boolean | null;
|
|
19
20
|
without_product_id?: boolean | null;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -38,5 +38,6 @@ exports.ListPlansParams = core.serialization.object({
|
|
|
38
38
|
planType: core.serialization.property("plan_type", ListPlansResponseParamsPlanType_1.ListPlansResponseParamsPlanType.optional()),
|
|
39
39
|
q: core.serialization.string().optional(),
|
|
40
40
|
withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
|
|
41
|
+
withoutPaidProductId: core.serialization.property("without_paid_product_id", core.serialization.boolean().optional()),
|
|
41
42
|
withoutProductId: core.serialization.property("without_product_id", core.serialization.boolean().optional()),
|
|
42
43
|
});
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.EventBodyTrack = core.serialization.object({
|
|
32
32
|
company: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
33
33
|
event: core.serialization.string(),
|
|
34
|
+
quantity: core.serialization.number().optional(),
|
|
34
35
|
traits: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
35
36
|
user: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
36
37
|
});
|
|
@@ -44,6 +44,7 @@ exports.EventDetailResponseData = core.serialization.object({
|
|
|
44
44
|
id: core.serialization.string(),
|
|
45
45
|
loadedAt: core.serialization.property("loaded_at", core.serialization.date().optional()),
|
|
46
46
|
processedAt: core.serialization.property("processed_at", core.serialization.date().optional()),
|
|
47
|
+
quantity: core.serialization.number(),
|
|
47
48
|
sentAt: core.serialization.property("sent_at", core.serialization.date().optional()),
|
|
48
49
|
status: core.serialization.string(),
|
|
49
50
|
subtype: core.serialization.string().optional(),
|
|
@@ -41,6 +41,7 @@ exports.EventResponseData = core.serialization.object({
|
|
|
41
41
|
id: core.serialization.string(),
|
|
42
42
|
loadedAt: core.serialization.property("loaded_at", core.serialization.date().optional()),
|
|
43
43
|
processedAt: core.serialization.property("processed_at", core.serialization.date().optional()),
|
|
44
|
+
quantity: core.serialization.number(),
|
|
44
45
|
sentAt: core.serialization.property("sent_at", core.serialization.date().optional()),
|
|
45
46
|
status: core.serialization.string(),
|
|
46
47
|
subtype: core.serialization.string().optional(),
|
|
@@ -12,9 +12,11 @@ export declare namespace UsageBasedEntitlementResponseData {
|
|
|
12
12
|
metered_price?: BillingPriceView.Raw | null;
|
|
13
13
|
metric_period?: string | null;
|
|
14
14
|
metric_period_month_reset?: string | null;
|
|
15
|
+
monthly_usage_based_price?: BillingPriceView.Raw | null;
|
|
15
16
|
price_behavior?: string | null;
|
|
16
17
|
value_bool?: boolean | null;
|
|
17
18
|
value_numeric?: number | null;
|
|
18
19
|
value_type: string;
|
|
20
|
+
yearly_usage_based_price?: BillingPriceView.Raw | null;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -34,8 +34,10 @@ exports.UsageBasedEntitlementResponseData = core.serialization.object({
|
|
|
34
34
|
meteredPrice: core.serialization.property("metered_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
35
35
|
metricPeriod: core.serialization.property("metric_period", core.serialization.string().optional()),
|
|
36
36
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", core.serialization.string().optional()),
|
|
37
|
+
monthlyUsageBasedPrice: core.serialization.property("monthly_usage_based_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
37
38
|
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
38
39
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
39
40
|
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
40
41
|
valueType: core.serialization.property("value_type", core.serialization.string()),
|
|
42
|
+
yearlyUsageBasedPrice: core.serialization.property("yearly_usage_based_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
41
43
|
});
|
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@ export declare namespace CountPlansParams {
|
|
|
16
16
|
plan_type?: CountPlansResponseParamsPlanType.Raw | null;
|
|
17
17
|
q?: string | null;
|
|
18
18
|
without_entitlement_for?: string | null;
|
|
19
|
+
without_paid_product_id?: boolean | null;
|
|
19
20
|
without_product_id?: boolean | null;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -38,5 +38,6 @@ exports.CountPlansParams = core.serialization.object({
|
|
|
38
38
|
planType: core.serialization.property("plan_type", CountPlansResponseParamsPlanType_1.CountPlansResponseParamsPlanType.optional()),
|
|
39
39
|
q: core.serialization.string().optional(),
|
|
40
40
|
withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
|
|
41
|
+
withoutPaidProductId: core.serialization.property("without_paid_product_id", core.serialization.boolean().optional()),
|
|
41
42
|
withoutProductId: core.serialization.property("without_product_id", core.serialization.boolean().optional()),
|
|
42
43
|
});
|
|
@@ -16,6 +16,7 @@ export declare namespace ListPlansParams {
|
|
|
16
16
|
plan_type?: ListPlansResponseParamsPlanType.Raw | null;
|
|
17
17
|
q?: string | null;
|
|
18
18
|
without_entitlement_for?: string | null;
|
|
19
|
+
without_paid_product_id?: boolean | null;
|
|
19
20
|
without_product_id?: boolean | null;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -38,5 +38,6 @@ exports.ListPlansParams = core.serialization.object({
|
|
|
38
38
|
planType: core.serialization.property("plan_type", ListPlansResponseParamsPlanType_1.ListPlansResponseParamsPlanType.optional()),
|
|
39
39
|
q: core.serialization.string().optional(),
|
|
40
40
|
withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
|
|
41
|
+
withoutPaidProductId: core.serialization.property("without_paid_product_id", core.serialization.boolean().optional()),
|
|
41
42
|
withoutProductId: core.serialization.property("without_product_id", core.serialization.boolean().optional()),
|
|
42
43
|
});
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.EventBodyTrack = core.serialization.object({
|
|
32
32
|
company: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
33
33
|
event: core.serialization.string(),
|
|
34
|
+
quantity: core.serialization.number().optional(),
|
|
34
35
|
traits: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
35
36
|
user: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
36
37
|
});
|
|
@@ -44,6 +44,7 @@ exports.EventDetailResponseData = core.serialization.object({
|
|
|
44
44
|
id: core.serialization.string(),
|
|
45
45
|
loadedAt: core.serialization.property("loaded_at", core.serialization.date().optional()),
|
|
46
46
|
processedAt: core.serialization.property("processed_at", core.serialization.date().optional()),
|
|
47
|
+
quantity: core.serialization.number(),
|
|
47
48
|
sentAt: core.serialization.property("sent_at", core.serialization.date().optional()),
|
|
48
49
|
status: core.serialization.string(),
|
|
49
50
|
subtype: core.serialization.string().optional(),
|
|
@@ -41,6 +41,7 @@ exports.EventResponseData = core.serialization.object({
|
|
|
41
41
|
id: core.serialization.string(),
|
|
42
42
|
loadedAt: core.serialization.property("loaded_at", core.serialization.date().optional()),
|
|
43
43
|
processedAt: core.serialization.property("processed_at", core.serialization.date().optional()),
|
|
44
|
+
quantity: core.serialization.number(),
|
|
44
45
|
sentAt: core.serialization.property("sent_at", core.serialization.date().optional()),
|
|
45
46
|
status: core.serialization.string(),
|
|
46
47
|
subtype: core.serialization.string().optional(),
|
|
@@ -12,9 +12,11 @@ export declare namespace UsageBasedEntitlementResponseData {
|
|
|
12
12
|
metered_price?: BillingPriceView.Raw | null;
|
|
13
13
|
metric_period?: string | null;
|
|
14
14
|
metric_period_month_reset?: string | null;
|
|
15
|
+
monthly_usage_based_price?: BillingPriceView.Raw | null;
|
|
15
16
|
price_behavior?: string | null;
|
|
16
17
|
value_bool?: boolean | null;
|
|
17
18
|
value_numeric?: number | null;
|
|
18
19
|
value_type: string;
|
|
20
|
+
yearly_usage_based_price?: BillingPriceView.Raw | null;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -34,8 +34,10 @@ exports.UsageBasedEntitlementResponseData = core.serialization.object({
|
|
|
34
34
|
meteredPrice: core.serialization.property("metered_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
35
35
|
metricPeriod: core.serialization.property("metric_period", core.serialization.string().optional()),
|
|
36
36
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", core.serialization.string().optional()),
|
|
37
|
+
monthlyUsageBasedPrice: core.serialization.property("monthly_usage_based_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
37
38
|
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
38
39
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
39
40
|
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
40
41
|
valueType: core.serialization.property("value_type", core.serialization.string()),
|
|
42
|
+
yearlyUsageBasedPrice: core.serialization.property("yearly_usage_based_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
41
43
|
});
|