@schematichq/schematic-typescript-node 1.1.2 → 1.1.4
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.d.ts +10 -0
- package/Client.js +88 -0
- package/api/resources/accesstokens/client/Client.js +1 -1
- package/api/resources/accounts/client/Client.js +14 -14
- package/api/resources/billing/client/Client.d.ts +61 -0
- package/api/resources/billing/client/Client.js +392 -8
- package/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +16 -0
- package/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +13 -0
- package/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +13 -0
- package/api/resources/billing/client/requests/index.d.ts +3 -0
- package/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +9 -0
- package/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +9 -0
- package/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +9 -0
- package/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +9 -0
- package/api/resources/billing/types/index.d.ts +4 -0
- package/api/resources/billing/types/index.js +4 -0
- package/api/resources/companies/client/Client.d.ts +0 -13
- package/api/resources/companies/client/Client.js +31 -136
- package/api/resources/companies/client/requests/index.d.ts +0 -1
- package/api/resources/companies/types/index.d.ts +0 -2
- package/api/resources/companies/types/index.js +0 -2
- 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 +8 -8
- package/api/resources/features/client/Client.js +19 -19
- package/api/resources/plans/client/Client.d.ts +12 -1
- package/api/resources/plans/client/Client.js +99 -11
- package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
- package/api/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -2
- package/{dist/api/resources/companies/types/ListCompanyPlansResponse.d.ts → api/resources/plans/types/ListActivePlansResponse.d.ts} +3 -3
- package/api/resources/plans/types/index.d.ts +1 -0
- package/api/resources/plans/types/index.js +1 -0
- package/api/resources/webhooks/client/Client.js +9 -9
- package/api/types/BillingPlan.d.ts +11 -0
- package/api/types/BillingPlan.js +5 -0
- package/api/types/BillingPlanGroupResponseData.d.ts +11 -0
- package/api/types/BillingPlanGroupResponseData.js +5 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +16 -0
- package/api/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/api/types/BillingProductPricing.d.ts +2 -0
- package/api/types/CompanyDetailResponseData.d.ts +1 -1
- package/api/types/CompanySubscriptionResponseData.d.ts +1 -1
- package/api/types/PlanDetailResponseData.d.ts +0 -1
- package/api/types/PlanResponseData.d.ts +0 -1
- package/api/types/index.d.ts +3 -1
- package/api/types/index.js +3 -1
- package/dist/Client.d.ts +10 -0
- package/dist/Client.js +88 -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.d.ts +61 -0
- package/dist/api/resources/billing/client/Client.js +392 -8
- package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +16 -0
- package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +13 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +13 -0
- package/dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +3 -0
- package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.js +5 -0
- package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.js +5 -0
- package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +5 -0
- package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.js +5 -0
- package/dist/api/resources/billing/types/index.d.ts +4 -0
- package/dist/api/resources/billing/types/index.js +4 -0
- package/dist/api/resources/companies/client/Client.d.ts +0 -13
- package/dist/api/resources/companies/client/Client.js +31 -136
- package/dist/api/resources/companies/client/requests/index.d.ts +0 -1
- package/dist/api/resources/companies/types/index.d.ts +0 -2
- package/dist/api/resources/companies/types/index.js +0 -2
- 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 +8 -8
- package/dist/api/resources/features/client/Client.js +19 -19
- package/dist/api/resources/plans/client/Client.d.ts +12 -1
- package/dist/api/resources/plans/client/Client.js +99 -11
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
- package/dist/api/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -2
- package/{api/resources/companies/types/ListCompanyPlansResponse.d.ts → dist/api/resources/plans/types/ListActivePlansResponse.d.ts} +3 -3
- package/dist/api/resources/plans/types/ListActivePlansResponse.js +5 -0
- package/dist/api/resources/plans/types/index.d.ts +1 -0
- package/dist/api/resources/plans/types/index.js +1 -0
- package/dist/api/resources/webhooks/client/Client.js +9 -9
- package/dist/api/types/BillingPlan.d.ts +11 -0
- package/dist/api/types/BillingPlan.js +5 -0
- package/dist/api/types/BillingPlanGroupResponseData.d.ts +11 -0
- package/dist/api/types/BillingPlanGroupResponseData.js +5 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +16 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +2 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -1
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -1
- package/dist/api/types/PlanDetailResponseData.d.ts +0 -1
- package/dist/api/types/PlanResponseData.d.ts +0 -1
- package/dist/api/types/index.d.ts +3 -1
- package/dist/api/types/index.js +3 -1
- package/dist/events.d.ts +3 -0
- package/dist/events.js +17 -5
- package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +14 -0
- package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.js +35 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +13 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js +34 -0
- package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +13 -0
- package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js +34 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/billing/client/requests/index.js +7 -1
- package/dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +14 -0
- package/dist/serialization/resources/{companies/types/ListCompanyPlansParams.js → billing/types/ChangeSubscriptionWebResponse.js} +5 -6
- package/dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +14 -0
- package/{serialization/resources/companies/types/ListCompanyPlansParams.js → dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js} +5 -6
- package/dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +14 -0
- package/dist/serialization/resources/{companies/types/ListCompanyPlansResponse.js → billing/types/GetBillingPlanGroupByAccountIdResponse.js} +5 -6
- package/dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +14 -0
- package/{serialization/resources/companies/types/ListCompanyPlansResponse.js → dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js} +5 -6
- package/dist/serialization/resources/billing/types/index.d.ts +4 -0
- package/dist/serialization/resources/billing/types/index.js +4 -0
- package/dist/serialization/resources/companies/types/index.d.ts +0 -2
- package/dist/serialization/resources/companies/types/index.js +0 -2
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -1
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -1
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -1
- package/dist/serialization/resources/plans/types/ListActivePlansResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/ListActivePlansResponse.js +35 -0
- package/dist/serialization/resources/plans/types/index.d.ts +1 -0
- package/dist/serialization/resources/plans/types/index.js +1 -0
- package/dist/serialization/types/BillingPlan.d.ts +17 -0
- package/dist/serialization/types/BillingPlan.js +38 -0
- package/dist/serialization/types/BillingPlanGroupResponseData.d.ts +14 -0
- package/dist/serialization/types/BillingPlanGroupResponseData.js +35 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +22 -0
- package/{serialization/types/CompanyPlanResponseData.js → dist/serialization/types/BillingProductForSubscriptionResponseData.js} +9 -4
- package/dist/serialization/types/BillingProductPricing.d.ts +2 -0
- package/dist/serialization/types/BillingProductPricing.js +2 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/dist/serialization/types/CompanyDetailResponseData.js +2 -1
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -2
- package/dist/serialization/types/CompanySubscriptionResponseData.js +2 -2
- package/dist/serialization/types/PlanDetailResponseData.d.ts +0 -1
- package/dist/serialization/types/PlanDetailResponseData.js +0 -1
- package/dist/serialization/types/PlanResponseData.d.ts +0 -1
- package/dist/serialization/types/PlanResponseData.js +0 -1
- package/dist/serialization/types/index.d.ts +3 -1
- package/dist/serialization/types/index.js +3 -1
- package/dist/wrapper.js +20 -15
- package/events.d.ts +3 -0
- package/events.js +17 -5
- package/package.json +1 -1
- package/reference.md +282 -49
- package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +14 -0
- package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.js +35 -0
- package/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +13 -0
- package/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js +34 -0
- package/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +13 -0
- package/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js +34 -0
- package/serialization/resources/billing/client/requests/index.d.ts +3 -0
- package/serialization/resources/billing/client/requests/index.js +7 -1
- package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +14 -0
- package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js +35 -0
- package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +14 -0
- package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js +35 -0
- package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +14 -0
- package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +35 -0
- package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js +35 -0
- package/serialization/resources/billing/types/index.d.ts +4 -0
- package/serialization/resources/billing/types/index.js +4 -0
- package/serialization/resources/companies/types/index.d.ts +0 -2
- package/serialization/resources/companies/types/index.js +0 -2
- package/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
- package/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -1
- package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -1
- package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -1
- package/serialization/resources/plans/types/ListActivePlansResponse.d.ts +14 -0
- package/serialization/resources/plans/types/ListActivePlansResponse.js +35 -0
- package/serialization/resources/plans/types/index.d.ts +1 -0
- package/serialization/resources/plans/types/index.js +1 -0
- package/serialization/types/BillingPlan.d.ts +17 -0
- package/serialization/types/BillingPlan.js +38 -0
- package/serialization/types/BillingPlanGroupResponseData.d.ts +14 -0
- package/serialization/types/BillingPlanGroupResponseData.js +35 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +22 -0
- package/{dist/serialization/types/CompanyPlanResponseData.js → serialization/types/BillingProductForSubscriptionResponseData.js} +9 -4
- package/serialization/types/BillingProductPricing.d.ts +2 -0
- package/serialization/types/BillingProductPricing.js +2 -0
- package/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/serialization/types/CompanyDetailResponseData.js +2 -1
- package/serialization/types/CompanySubscriptionResponseData.d.ts +2 -2
- package/serialization/types/CompanySubscriptionResponseData.js +2 -2
- package/serialization/types/PlanDetailResponseData.d.ts +0 -1
- package/serialization/types/PlanDetailResponseData.js +0 -1
- package/serialization/types/PlanResponseData.d.ts +0 -1
- package/serialization/types/PlanResponseData.js +0 -1
- package/serialization/types/index.d.ts +3 -1
- package/serialization/types/index.js +3 -1
- package/wrapper.js +20 -15
- package/api/resources/companies/client/requests/ListCompanyPlansRequest.d.ts +0 -19
- package/api/resources/companies/types/ListCompanyPlansParams.d.ts +0 -14
- package/api/types/CompanyPlanResponseData.d.ts +0 -11
- package/dist/api/resources/companies/client/requests/ListCompanyPlansRequest.d.ts +0 -19
- package/dist/api/resources/companies/types/ListCompanyPlansParams.d.ts +0 -14
- package/dist/api/types/CompanyPlanResponseData.d.ts +0 -11
- package/dist/serialization/resources/companies/types/ListCompanyPlansParams.d.ts +0 -15
- package/dist/serialization/resources/companies/types/ListCompanyPlansResponse.d.ts +0 -15
- package/dist/serialization/types/CompanyPlanResponseData.d.ts +0 -17
- package/serialization/resources/companies/types/ListCompanyPlansParams.d.ts +0 -15
- package/serialization/resources/companies/types/ListCompanyPlansResponse.d.ts +0 -15
- package/serialization/types/CompanyPlanResponseData.d.ts +0 -17
- /package/api/resources/{companies/client/requests/ListCompanyPlansRequest.js → billing/client/requests/ChangeSubscriptionRequestBody.js} +0 -0
- /package/api/resources/{companies/types/ListCompanyPlansParams.js → billing/client/requests/CreateBillingPlanGroupRequestBody.js} +0 -0
- /package/api/resources/{companies/types/ListCompanyPlansResponse.js → billing/client/requests/UpdateBillingPlanGroupRequestBody.js} +0 -0
- /package/api/{types/CompanyPlanResponseData.js → resources/billing/types/ChangeSubscriptionWebResponse.js} +0 -0
- /package/{dist/api/resources/companies/client/requests/ListCompanyPlansRequest.js → api/resources/billing/types/CreateBillingPlanGroupResponse.js} +0 -0
- /package/{dist/api/resources/companies/types/ListCompanyPlansParams.js → api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js} +0 -0
- /package/{dist/api/resources/companies/types/ListCompanyPlansResponse.js → api/resources/billing/types/UpdateBillingPlanGroupResponse.js} +0 -0
- /package/{dist/api/types/CompanyPlanResponseData.js → api/resources/plans/types/ListActivePlansResponse.js} +0 -0
package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Schematic from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const CreateBillingPlanGroupRequestBody: core.serialization.Schema<serializers.CreateBillingPlanGroupRequestBody.Raw, Schematic.CreateBillingPlanGroupRequestBody>;
|
|
8
|
+
export declare namespace CreateBillingPlanGroupRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
default_plan_id?: string | null;
|
|
11
|
+
plan_ids: string[];
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CreateBillingPlanGroupRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.CreateBillingPlanGroupRequestBody = core.serialization.object({
|
|
32
|
+
defaultPlanId: core.serialization.property("default_plan_id", core.serialization.string().optional()),
|
|
33
|
+
planIds: core.serialization.property("plan_ids", core.serialization.list(core.serialization.string())),
|
|
34
|
+
});
|
package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Schematic from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const UpdateBillingPlanGroupRequestBody: core.serialization.Schema<serializers.UpdateBillingPlanGroupRequestBody.Raw, Schematic.UpdateBillingPlanGroupRequestBody>;
|
|
8
|
+
export declare namespace UpdateBillingPlanGroupRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
default_plan_id?: string | null;
|
|
11
|
+
plan_ids: string[];
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.UpdateBillingPlanGroupRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.UpdateBillingPlanGroupRequestBody = core.serialization.object({
|
|
32
|
+
defaultPlanId: core.serialization.property("default_plan_id", core.serialization.string().optional()),
|
|
33
|
+
planIds: core.serialization.property("plan_ids", core.serialization.list(core.serialization.string())),
|
|
34
|
+
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { CreateBillingCustomerRequestBody } from "./CreateBillingCustomerRequestBody";
|
|
2
|
+
export { CreateBillingPlanGroupRequestBody } from "./CreateBillingPlanGroupRequestBody";
|
|
3
|
+
export { UpdateBillingPlanGroupRequestBody } from "./UpdateBillingPlanGroupRequestBody";
|
|
2
4
|
export { CreateBillingPriceRequestBody } from "./CreateBillingPriceRequestBody";
|
|
3
5
|
export { CreateBillingProductRequestBody } from "./CreateBillingProductRequestBody";
|
|
4
6
|
export { CreateBillingSubscriptionsRequestBody } from "./CreateBillingSubscriptionsRequestBody";
|
|
7
|
+
export { ChangeSubscriptionRequestBody } from "./ChangeSubscriptionRequestBody";
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateBillingSubscriptionsRequestBody = exports.CreateBillingProductRequestBody = exports.CreateBillingPriceRequestBody = exports.CreateBillingCustomerRequestBody = void 0;
|
|
3
|
+
exports.ChangeSubscriptionRequestBody = exports.CreateBillingSubscriptionsRequestBody = exports.CreateBillingProductRequestBody = exports.CreateBillingPriceRequestBody = exports.UpdateBillingPlanGroupRequestBody = exports.CreateBillingPlanGroupRequestBody = exports.CreateBillingCustomerRequestBody = void 0;
|
|
4
4
|
var CreateBillingCustomerRequestBody_1 = require("./CreateBillingCustomerRequestBody");
|
|
5
5
|
Object.defineProperty(exports, "CreateBillingCustomerRequestBody", { enumerable: true, get: function () { return CreateBillingCustomerRequestBody_1.CreateBillingCustomerRequestBody; } });
|
|
6
|
+
var CreateBillingPlanGroupRequestBody_1 = require("./CreateBillingPlanGroupRequestBody");
|
|
7
|
+
Object.defineProperty(exports, "CreateBillingPlanGroupRequestBody", { enumerable: true, get: function () { return CreateBillingPlanGroupRequestBody_1.CreateBillingPlanGroupRequestBody; } });
|
|
8
|
+
var UpdateBillingPlanGroupRequestBody_1 = require("./UpdateBillingPlanGroupRequestBody");
|
|
9
|
+
Object.defineProperty(exports, "UpdateBillingPlanGroupRequestBody", { enumerable: true, get: function () { return UpdateBillingPlanGroupRequestBody_1.UpdateBillingPlanGroupRequestBody; } });
|
|
6
10
|
var CreateBillingPriceRequestBody_1 = require("./CreateBillingPriceRequestBody");
|
|
7
11
|
Object.defineProperty(exports, "CreateBillingPriceRequestBody", { enumerable: true, get: function () { return CreateBillingPriceRequestBody_1.CreateBillingPriceRequestBody; } });
|
|
8
12
|
var CreateBillingProductRequestBody_1 = require("./CreateBillingProductRequestBody");
|
|
9
13
|
Object.defineProperty(exports, "CreateBillingProductRequestBody", { enumerable: true, get: function () { return CreateBillingProductRequestBody_1.CreateBillingProductRequestBody; } });
|
|
10
14
|
var CreateBillingSubscriptionsRequestBody_1 = require("./CreateBillingSubscriptionsRequestBody");
|
|
11
15
|
Object.defineProperty(exports, "CreateBillingSubscriptionsRequestBody", { enumerable: true, get: function () { return CreateBillingSubscriptionsRequestBody_1.CreateBillingSubscriptionsRequestBody; } });
|
|
16
|
+
var ChangeSubscriptionRequestBody_1 = require("./ChangeSubscriptionRequestBody");
|
|
17
|
+
Object.defineProperty(exports, "ChangeSubscriptionRequestBody", { enumerable: true, get: function () { return ChangeSubscriptionRequestBody_1.ChangeSubscriptionRequestBody; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { BillingSubscriptionResponseData } from "../../../types/BillingSubscriptionResponseData";
|
|
8
|
+
export declare const ChangeSubscriptionWebResponse: core.serialization.ObjectSchema<serializers.ChangeSubscriptionWebResponse.Raw, Schematic.ChangeSubscriptionWebResponse>;
|
|
9
|
+
export declare namespace ChangeSubscriptionWebResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
data: BillingSubscriptionResponseData.Raw;
|
|
12
|
+
params: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -26,11 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ChangeSubscriptionWebResponse = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
planId: core.serialization.property("plan_id", core.serialization.string().optional()),
|
|
31
|
+
const BillingSubscriptionResponseData_1 = require("../../../types/BillingSubscriptionResponseData");
|
|
32
|
+
exports.ChangeSubscriptionWebResponse = core.serialization.object({
|
|
33
|
+
data: BillingSubscriptionResponseData_1.BillingSubscriptionResponseData,
|
|
34
|
+
params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
36
35
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { BillingPlanGroupResponseData } from "../../../types/BillingPlanGroupResponseData";
|
|
8
|
+
export declare const CreateBillingPlanGroupResponse: core.serialization.ObjectSchema<serializers.CreateBillingPlanGroupResponse.Raw, Schematic.CreateBillingPlanGroupResponse>;
|
|
9
|
+
export declare namespace CreateBillingPlanGroupResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
data: BillingPlanGroupResponseData.Raw;
|
|
12
|
+
params: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -26,11 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.CreateBillingPlanGroupResponse = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
planId: core.serialization.property("plan_id", core.serialization.string().optional()),
|
|
31
|
+
const BillingPlanGroupResponseData_1 = require("../../../types/BillingPlanGroupResponseData");
|
|
32
|
+
exports.CreateBillingPlanGroupResponse = core.serialization.object({
|
|
33
|
+
data: BillingPlanGroupResponseData_1.BillingPlanGroupResponseData,
|
|
34
|
+
params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
36
35
|
});
|
package/dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { BillingPlanGroupResponseData } from "../../../types/BillingPlanGroupResponseData";
|
|
8
|
+
export declare const GetBillingPlanGroupByAccountIdResponse: core.serialization.ObjectSchema<serializers.GetBillingPlanGroupByAccountIdResponse.Raw, Schematic.GetBillingPlanGroupByAccountIdResponse>;
|
|
9
|
+
export declare namespace GetBillingPlanGroupByAccountIdResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
data: BillingPlanGroupResponseData.Raw;
|
|
12
|
+
params: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -26,11 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.GetBillingPlanGroupByAccountIdResponse = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
params: ListCompanyPlansParams_1.ListCompanyPlansParams,
|
|
31
|
+
const BillingPlanGroupResponseData_1 = require("../../../types/BillingPlanGroupResponseData");
|
|
32
|
+
exports.GetBillingPlanGroupByAccountIdResponse = core.serialization.object({
|
|
33
|
+
data: BillingPlanGroupResponseData_1.BillingPlanGroupResponseData,
|
|
34
|
+
params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
36
35
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { BillingPlanGroupResponseData } from "../../../types/BillingPlanGroupResponseData";
|
|
8
|
+
export declare const UpdateBillingPlanGroupResponse: core.serialization.ObjectSchema<serializers.UpdateBillingPlanGroupResponse.Raw, Schematic.UpdateBillingPlanGroupResponse>;
|
|
9
|
+
export declare namespace UpdateBillingPlanGroupResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
data: BillingPlanGroupResponseData.Raw;
|
|
12
|
+
params: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -26,11 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.UpdateBillingPlanGroupResponse = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
params: ListCompanyPlansParams_1.ListCompanyPlansParams,
|
|
31
|
+
const BillingPlanGroupResponseData_1 = require("../../../types/BillingPlanGroupResponseData");
|
|
32
|
+
exports.UpdateBillingPlanGroupResponse = core.serialization.object({
|
|
33
|
+
data: BillingPlanGroupResponseData_1.BillingPlanGroupResponseData,
|
|
34
|
+
params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
36
35
|
});
|
|
@@ -3,6 +3,9 @@ export * from "./ListCustomersParams";
|
|
|
3
3
|
export * from "./ListCustomersResponse";
|
|
4
4
|
export * from "./CountCustomersParams";
|
|
5
5
|
export * from "./CountCustomersResponse";
|
|
6
|
+
export * from "./GetBillingPlanGroupByAccountIdResponse";
|
|
7
|
+
export * from "./CreateBillingPlanGroupResponse";
|
|
8
|
+
export * from "./UpdateBillingPlanGroupResponse";
|
|
6
9
|
export * from "./UpsertBillingPriceResponse";
|
|
7
10
|
export * from "./ListProductPricesParams";
|
|
8
11
|
export * from "./ListProductPricesResponse";
|
|
@@ -10,3 +13,4 @@ export * from "./UpsertBillingProductResponse";
|
|
|
10
13
|
export * from "./ListBillingProductsParams";
|
|
11
14
|
export * from "./ListBillingProductsResponse";
|
|
12
15
|
export * from "./UpsertBillingSubscriptionResponse";
|
|
16
|
+
export * from "./ChangeSubscriptionWebResponse";
|
|
@@ -19,6 +19,9 @@ __exportStar(require("./ListCustomersParams"), exports);
|
|
|
19
19
|
__exportStar(require("./ListCustomersResponse"), exports);
|
|
20
20
|
__exportStar(require("./CountCustomersParams"), exports);
|
|
21
21
|
__exportStar(require("./CountCustomersResponse"), exports);
|
|
22
|
+
__exportStar(require("./GetBillingPlanGroupByAccountIdResponse"), exports);
|
|
23
|
+
__exportStar(require("./CreateBillingPlanGroupResponse"), exports);
|
|
24
|
+
__exportStar(require("./UpdateBillingPlanGroupResponse"), exports);
|
|
22
25
|
__exportStar(require("./UpsertBillingPriceResponse"), exports);
|
|
23
26
|
__exportStar(require("./ListProductPricesParams"), exports);
|
|
24
27
|
__exportStar(require("./ListProductPricesResponse"), exports);
|
|
@@ -26,3 +29,4 @@ __exportStar(require("./UpsertBillingProductResponse"), exports);
|
|
|
26
29
|
__exportStar(require("./ListBillingProductsParams"), exports);
|
|
27
30
|
__exportStar(require("./ListBillingProductsResponse"), exports);
|
|
28
31
|
__exportStar(require("./UpsertBillingSubscriptionResponse"), exports);
|
|
32
|
+
__exportStar(require("./ChangeSubscriptionWebResponse"), exports);
|
|
@@ -15,8 +15,6 @@ export * from "./ListCompanyMembershipsParams";
|
|
|
15
15
|
export * from "./ListCompanyMembershipsResponse";
|
|
16
16
|
export * from "./GetOrCreateCompanyMembershipResponse";
|
|
17
17
|
export * from "./DeleteCompanyMembershipResponse";
|
|
18
|
-
export * from "./ListCompanyPlansParams";
|
|
19
|
-
export * from "./ListCompanyPlansResponse";
|
|
20
18
|
export * from "./GetActiveCompanySubscriptionParams";
|
|
21
19
|
export * from "./GetActiveCompanySubscriptionResponse";
|
|
22
20
|
export * from "./UpsertCompanyTraitResponse";
|
|
@@ -31,8 +31,6 @@ __exportStar(require("./ListCompanyMembershipsParams"), exports);
|
|
|
31
31
|
__exportStar(require("./ListCompanyMembershipsResponse"), exports);
|
|
32
32
|
__exportStar(require("./GetOrCreateCompanyMembershipResponse"), exports);
|
|
33
33
|
__exportStar(require("./DeleteCompanyMembershipResponse"), exports);
|
|
34
|
-
__exportStar(require("./ListCompanyPlansParams"), exports);
|
|
35
|
-
__exportStar(require("./ListCompanyPlansResponse"), exports);
|
|
36
34
|
__exportStar(require("./GetActiveCompanySubscriptionParams"), exports);
|
|
37
35
|
__exportStar(require("./GetActiveCompanySubscriptionResponse"), exports);
|
|
38
36
|
__exportStar(require("./UpsertCompanyTraitResponse"), exports);
|
|
@@ -8,7 +8,6 @@ import { CreatePlanRequestBodyPlanType } from "../../types/CreatePlanRequestBody
|
|
|
8
8
|
export declare const CreatePlanRequestBody: core.serialization.Schema<serializers.CreatePlanRequestBody.Raw, Schematic.CreatePlanRequestBody>;
|
|
9
9
|
export declare namespace CreatePlanRequestBody {
|
|
10
10
|
interface Raw {
|
|
11
|
-
audience_type?: string | null;
|
|
12
11
|
description: string;
|
|
13
12
|
icon?: string | null;
|
|
14
13
|
name: string;
|
|
@@ -30,7 +30,6 @@ exports.CreatePlanRequestBody = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
31
|
const CreatePlanRequestBodyPlanType_1 = require("../../types/CreatePlanRequestBodyPlanType");
|
|
32
32
|
exports.CreatePlanRequestBody = core.serialization.object({
|
|
33
|
-
audienceType: core.serialization.property("audience_type", core.serialization.string().optional()),
|
|
34
33
|
description: core.serialization.string(),
|
|
35
34
|
icon: core.serialization.string().optional(),
|
|
36
35
|
name: core.serialization.string(),
|
|
@@ -7,7 +7,6 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
export declare const UpdatePlanRequestBody: core.serialization.Schema<serializers.UpdatePlanRequestBody.Raw, Schematic.UpdatePlanRequestBody>;
|
|
8
8
|
export declare namespace UpdatePlanRequestBody {
|
|
9
9
|
interface Raw {
|
|
10
|
-
audience_type: string;
|
|
11
10
|
description?: string | null;
|
|
12
11
|
icon?: string | null;
|
|
13
12
|
name: string;
|
|
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.UpdatePlanRequestBody = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
31
|
exports.UpdatePlanRequestBody = core.serialization.object({
|
|
32
|
-
audienceType: core.serialization.property("audience_type", core.serialization.string()),
|
|
33
32
|
description: core.serialization.string().optional(),
|
|
34
33
|
icon: core.serialization.string().optional(),
|
|
35
34
|
name: core.serialization.string(),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { PlanDetailResponseData } from "../../../types/PlanDetailResponseData";
|
|
8
|
+
export declare const ListActivePlansResponse: core.serialization.ObjectSchema<serializers.ListActivePlansResponse.Raw, Schematic.ListActivePlansResponse>;
|
|
9
|
+
export declare namespace ListActivePlansResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
data: PlanDetailResponseData.Raw[];
|
|
12
|
+
params: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ListActivePlansResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const PlanDetailResponseData_1 = require("../../../types/PlanDetailResponseData");
|
|
32
|
+
exports.ListActivePlansResponse = core.serialization.object({
|
|
33
|
+
data: core.serialization.list(PlanDetailResponseData_1.PlanDetailResponseData),
|
|
34
|
+
params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
35
|
+
});
|
|
@@ -11,6 +11,7 @@ export * from "./GetPlanResponse";
|
|
|
11
11
|
export * from "./UpdatePlanResponse";
|
|
12
12
|
export * from "./DeletePlanResponse";
|
|
13
13
|
export * from "./UpsertBillingProductPlanResponse";
|
|
14
|
+
export * from "./ListActivePlansResponse";
|
|
14
15
|
export * from "./CountPlansRequestPlanType";
|
|
15
16
|
export * from "./CountPlansResponseParamsPlanType";
|
|
16
17
|
export * from "./CountPlansParams";
|
|
@@ -27,6 +27,7 @@ __exportStar(require("./GetPlanResponse"), exports);
|
|
|
27
27
|
__exportStar(require("./UpdatePlanResponse"), exports);
|
|
28
28
|
__exportStar(require("./DeletePlanResponse"), exports);
|
|
29
29
|
__exportStar(require("./UpsertBillingProductPlanResponse"), exports);
|
|
30
|
+
__exportStar(require("./ListActivePlansResponse"), exports);
|
|
30
31
|
__exportStar(require("./CountPlansRequestPlanType"), exports);
|
|
31
32
|
__exportStar(require("./CountPlansResponseParamsPlanType"), exports);
|
|
32
33
|
__exportStar(require("./CountPlansParams"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const BillingPlan: core.serialization.ObjectSchema<serializers.BillingPlan.Raw, Schematic.BillingPlan>;
|
|
8
|
+
export declare namespace BillingPlan {
|
|
9
|
+
interface Raw {
|
|
10
|
+
description?: string | null;
|
|
11
|
+
id: string;
|
|
12
|
+
image_url?: string | null;
|
|
13
|
+
name: string;
|
|
14
|
+
plan_period?: string | null;
|
|
15
|
+
plan_price?: number | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.BillingPlan = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.BillingPlan = core.serialization.object({
|
|
32
|
+
description: core.serialization.string().optional(),
|
|
33
|
+
id: core.serialization.string(),
|
|
34
|
+
imageUrl: core.serialization.property("image_url", core.serialization.string().optional()),
|
|
35
|
+
name: core.serialization.string(),
|
|
36
|
+
planPeriod: core.serialization.property("plan_period", core.serialization.string().optional()),
|
|
37
|
+
planPrice: core.serialization.property("plan_price", core.serialization.number().optional()),
|
|
38
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const BillingPlanGroupResponseData: core.serialization.ObjectSchema<serializers.BillingPlanGroupResponseData.Raw, Schematic.BillingPlanGroupResponseData>;
|
|
8
|
+
export declare namespace BillingPlanGroupResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
default_plan_id?: string | null;
|
|
11
|
+
id: string;
|
|
12
|
+
plan_ids: string[];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.BillingPlanGroupResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.BillingPlanGroupResponseData = core.serialization.object({
|
|
32
|
+
defaultPlanId: core.serialization.property("default_plan_id", core.serialization.string().optional()),
|
|
33
|
+
id: core.serialization.string(),
|
|
34
|
+
planIds: core.serialization.property("plan_ids", core.serialization.list(core.serialization.string())),
|
|
35
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const BillingProductForSubscriptionResponseData: core.serialization.ObjectSchema<serializers.BillingProductForSubscriptionResponseData.Raw, Schematic.BillingProductForSubscriptionResponseData>;
|
|
8
|
+
export declare namespace BillingProductForSubscriptionResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
account_id: string;
|
|
11
|
+
created_at: string;
|
|
12
|
+
currency: string;
|
|
13
|
+
environment_id: string;
|
|
14
|
+
external_id: string;
|
|
15
|
+
id: string;
|
|
16
|
+
interval?: string | null;
|
|
17
|
+
name: string;
|
|
18
|
+
price: number;
|
|
19
|
+
quantity: number;
|
|
20
|
+
updated_at: string;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -26,13 +26,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.BillingProductForSubscriptionResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
|
|
31
|
+
exports.BillingProductForSubscriptionResponseData = core.serialization.object({
|
|
32
|
+
accountId: core.serialization.property("account_id", core.serialization.string()),
|
|
33
33
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
34
|
+
currency: core.serialization.string(),
|
|
34
35
|
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
36
|
+
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
35
37
|
id: core.serialization.string(),
|
|
36
|
-
|
|
38
|
+
interval: core.serialization.string().optional(),
|
|
39
|
+
name: core.serialization.string(),
|
|
40
|
+
price: core.serialization.number(),
|
|
41
|
+
quantity: core.serialization.number(),
|
|
37
42
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
38
43
|
});
|
|
@@ -7,7 +7,9 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const BillingProductPricing: core.serialization.ObjectSchema<serializers.BillingProductPricing.Raw, Schematic.BillingProductPricing>;
|
|
8
8
|
export declare namespace BillingProductPricing {
|
|
9
9
|
interface Raw {
|
|
10
|
+
interval?: string | null;
|
|
10
11
|
price: number;
|
|
12
|
+
price_external_id?: string | null;
|
|
11
13
|
product_external_id: string;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -29,6 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.BillingProductPricing = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.BillingProductPricing = core.serialization.object({
|
|
32
|
+
interval: core.serialization.string().optional(),
|
|
32
33
|
price: core.serialization.number(),
|
|
34
|
+
priceExternalId: core.serialization.property("price_external_id", core.serialization.string().optional()),
|
|
33
35
|
productExternalId: core.serialization.property("product_external_id", core.serialization.string()),
|
|
34
36
|
});
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
import { PreviewObject } from "./PreviewObject";
|
|
8
8
|
import { EntityTraitDetailResponseData } from "./EntityTraitDetailResponseData";
|
|
9
9
|
import { EntityKeyDetailResponseData } from "./EntityKeyDetailResponseData";
|
|
10
|
+
import { BillingPlan } from "./BillingPlan";
|
|
10
11
|
export declare const CompanyDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyDetailResponseData.Raw, Schematic.CompanyDetailResponseData>;
|
|
11
12
|
export declare namespace CompanyDetailResponseData {
|
|
12
13
|
interface Raw {
|
|
@@ -19,7 +20,7 @@ export declare namespace CompanyDetailResponseData {
|
|
|
19
20
|
last_seen_at?: string | null;
|
|
20
21
|
logo_url?: string | null;
|
|
21
22
|
name: string;
|
|
22
|
-
plan?:
|
|
23
|
+
plan?: BillingPlan.Raw | null;
|
|
23
24
|
plans: PreviewObject.Raw[];
|
|
24
25
|
traits?: Record<string, unknown> | null;
|
|
25
26
|
updated_at: string;
|