@schematichq/schematic-typescript-node 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +1 -1
- package/api/resources/accesstokens/client/Client.js +1 -1
- package/api/resources/accounts/client/Client.js +14 -14
- package/api/resources/billing/client/Client.js +21 -18
- package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
- package/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/api/resources/companies/client/Client.d.ts +2 -2
- package/api/resources/companies/client/Client.js +33 -33
- package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
- package/api/resources/components/client/Client.js +7 -7
- package/api/resources/crm/client/Client.js +5 -5
- package/api/resources/entitlements/client/Client.d.ts +1 -1
- package/api/resources/entitlements/client/Client.js +20 -20
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
- package/api/resources/events/client/Client.js +7 -7
- package/api/resources/features/client/Client.js +19 -19
- package/api/resources/plangroups/client/Client.js +3 -3
- package/api/resources/plans/client/Client.js +10 -10
- package/api/resources/webhooks/client/Client.js +9 -9
- package/api/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/api/types/CheckFlagResponseData.d.ts +1 -0
- package/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/api/types/CreateEntitlementReqCommon.d.ts +2 -1
- package/api/types/FeatureCompanyResponseData.d.ts +2 -0
- package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/api/types/PlanEntitlementResponseData.d.ts +2 -1
- package/api/types/UpdateEntitlementReqCommon.d.ts +2 -1
- package/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
- package/api/types/UsageBasedEntitlementResponseData.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.js +1 -1
- package/dist/api/resources/accesstokens/client/Client.js +1 -1
- package/dist/api/resources/accounts/client/Client.js +14 -14
- package/dist/api/resources/billing/client/Client.js +21 -18
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/dist/api/resources/companies/client/Client.d.ts +2 -2
- package/dist/api/resources/companies/client/Client.js +33 -33
- package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
- package/dist/api/resources/components/client/Client.js +7 -7
- package/dist/api/resources/crm/client/Client.js +5 -5
- package/dist/api/resources/entitlements/client/Client.d.ts +1 -1
- package/dist/api/resources/entitlements/client/Client.js +20 -20
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
- package/dist/api/resources/events/client/Client.js +7 -7
- package/dist/api/resources/features/client/Client.js +19 -19
- package/dist/api/resources/plangroups/client/Client.js +3 -3
- package/dist/api/resources/plans/client/Client.js +10 -10
- package/dist/api/resources/webhooks/client/Client.js +9 -9
- package/dist/api/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -1
- package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -1
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -1
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +2 -1
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +4 -2
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +2 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +2 -1
- package/dist/serialization/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/dist/serialization/types/CheckFlagOutputWithFlagKey.js +1 -0
- package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/serialization/types/CheckFlagResponseData.js +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +1 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +2 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +2 -1
- package/dist/serialization/types/CreateEntitlementReqCommon.js +2 -1
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanEntitlementResponseData.js +2 -1
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +2 -1
- package/dist/serialization/types/UpdateEntitlementReqCommon.js +2 -1
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.js +41 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +3 -3
- package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +1 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +2 -1
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +4 -2
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +2 -1
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +2 -1
- package/serialization/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/serialization/types/CheckFlagOutputWithFlagKey.js +1 -0
- package/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/serialization/types/CheckFlagResponseData.js +1 -0
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +1 -0
- package/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/serialization/types/ComponentHydrateResponseData.js +2 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/serialization/types/ComponentPreviewResponseData.js +2 -0
- package/serialization/types/CreateEntitlementReqCommon.d.ts +2 -1
- package/serialization/types/CreateEntitlementReqCommon.js +2 -1
- package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/serialization/types/FeatureUsageResponseData.js +1 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +2 -1
- package/serialization/types/PlanEntitlementResponseData.js +2 -1
- package/serialization/types/UpdateEntitlementReqCommon.d.ts +2 -1
- package/serialization/types/UpdateEntitlementReqCommon.js +2 -1
- package/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
- package/serialization/types/UsageBasedEntitlementResponseData.js +41 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
|
@@ -13,7 +13,8 @@ export declare namespace CreateCompanyOverrideRequestBody {
|
|
|
13
13
|
company_id: string;
|
|
14
14
|
expiration_date?: string | null;
|
|
15
15
|
feature_id: string;
|
|
16
|
-
|
|
16
|
+
metered_monthly_price_id?: string | null;
|
|
17
|
+
metered_yearly_price_id?: string | null;
|
|
17
18
|
metric_period?: CreateCompanyOverrideRequestBodyMetricPeriod.Raw | null;
|
|
18
19
|
metric_period_month_reset?: CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.Raw | null;
|
|
19
20
|
value_bool?: boolean | null;
|
|
@@ -35,7 +35,8 @@ exports.CreateCompanyOverrideRequestBody = core.serialization.object({
|
|
|
35
35
|
companyId: core.serialization.property("company_id", core.serialization.string()),
|
|
36
36
|
expirationDate: core.serialization.property("expiration_date", core.serialization.date().optional()),
|
|
37
37
|
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
38
|
-
|
|
38
|
+
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
39
|
+
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
39
40
|
metricPeriod: core.serialization.property("metric_period", CreateCompanyOverrideRequestBodyMetricPeriod_1.CreateCompanyOverrideRequestBodyMetricPeriod.optional()),
|
|
40
41
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", CreateCompanyOverrideRequestBodyMetricPeriodMonthReset_1.CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.optional()),
|
|
41
42
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
@@ -11,15 +11,17 @@ export declare const CreatePlanEntitlementRequestBody: core.serialization.Schema
|
|
|
11
11
|
export declare namespace CreatePlanEntitlementRequestBody {
|
|
12
12
|
interface Raw {
|
|
13
13
|
feature_id: string;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
metered_monthly_price_id?: string | null;
|
|
15
|
+
metered_yearly_price_id?: string | null;
|
|
16
16
|
metric_period?: CreatePlanEntitlementRequestBodyMetricPeriod.Raw | null;
|
|
17
17
|
metric_period_month_reset?: CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.Raw | null;
|
|
18
|
+
monthly_metered_price_id?: string | null;
|
|
18
19
|
plan_id: string;
|
|
19
20
|
price_behavior?: string | null;
|
|
20
21
|
value_bool?: boolean | null;
|
|
21
22
|
value_numeric?: number | null;
|
|
22
23
|
value_trait_id?: string | null;
|
|
23
24
|
value_type: CreatePlanEntitlementRequestBodyValueType.Raw;
|
|
25
|
+
yearly_metered_price_id?: string | null;
|
|
24
26
|
}
|
|
25
27
|
}
|
|
@@ -33,14 +33,16 @@ const CreatePlanEntitlementRequestBodyMetricPeriodMonthReset_1 = require("../../
|
|
|
33
33
|
const CreatePlanEntitlementRequestBodyValueType_1 = require("../../types/CreatePlanEntitlementRequestBodyValueType");
|
|
34
34
|
exports.CreatePlanEntitlementRequestBody = core.serialization.object({
|
|
35
35
|
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
37
|
+
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
38
38
|
metricPeriod: core.serialization.property("metric_period", CreatePlanEntitlementRequestBodyMetricPeriod_1.CreatePlanEntitlementRequestBodyMetricPeriod.optional()),
|
|
39
39
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", CreatePlanEntitlementRequestBodyMetricPeriodMonthReset_1.CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.optional()),
|
|
40
|
+
monthlyMeteredPriceId: core.serialization.property("monthly_metered_price_id", core.serialization.string().optional()),
|
|
40
41
|
planId: core.serialization.property("plan_id", core.serialization.string()),
|
|
41
42
|
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
42
43
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
43
44
|
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
44
45
|
valueTraitId: core.serialization.property("value_trait_id", core.serialization.string().optional()),
|
|
45
46
|
valueType: core.serialization.property("value_type", CreatePlanEntitlementRequestBodyValueType_1.CreatePlanEntitlementRequestBodyValueType),
|
|
47
|
+
yearlyMeteredPriceId: core.serialization.property("yearly_metered_price_id", core.serialization.string().optional()),
|
|
46
48
|
});
|
|
@@ -11,7 +11,8 @@ export declare const UpdateCompanyOverrideRequestBody: core.serialization.Schema
|
|
|
11
11
|
export declare namespace UpdateCompanyOverrideRequestBody {
|
|
12
12
|
interface Raw {
|
|
13
13
|
expiration_date?: string | null;
|
|
14
|
-
|
|
14
|
+
metered_monthly_price_id?: string | null;
|
|
15
|
+
metered_yearly_price_id?: string | null;
|
|
15
16
|
metric_period?: UpdateCompanyOverrideRequestBodyMetricPeriod.Raw | null;
|
|
16
17
|
metric_period_month_reset?: UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.Raw | null;
|
|
17
18
|
value_bool?: boolean | null;
|
|
@@ -33,7 +33,8 @@ const UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset_1 = require("../../
|
|
|
33
33
|
const UpdateCompanyOverrideRequestBodyValueType_1 = require("../../types/UpdateCompanyOverrideRequestBodyValueType");
|
|
34
34
|
exports.UpdateCompanyOverrideRequestBody = core.serialization.object({
|
|
35
35
|
expirationDate: core.serialization.property("expiration_date", core.serialization.date().optional()),
|
|
36
|
-
|
|
36
|
+
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
37
|
+
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
37
38
|
metricPeriod: core.serialization.property("metric_period", UpdateCompanyOverrideRequestBodyMetricPeriod_1.UpdateCompanyOverrideRequestBodyMetricPeriod.optional()),
|
|
38
39
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset_1.UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.optional()),
|
|
39
40
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
@@ -10,7 +10,8 @@ import { UpdatePlanEntitlementRequestBodyValueType } from "../../types/UpdatePla
|
|
|
10
10
|
export declare const UpdatePlanEntitlementRequestBody: core.serialization.Schema<serializers.UpdatePlanEntitlementRequestBody.Raw, Schematic.UpdatePlanEntitlementRequestBody>;
|
|
11
11
|
export declare namespace UpdatePlanEntitlementRequestBody {
|
|
12
12
|
interface Raw {
|
|
13
|
-
|
|
13
|
+
metered_monthly_price_id?: string | null;
|
|
14
|
+
metered_yearly_price_id?: string | null;
|
|
14
15
|
metric_period?: UpdatePlanEntitlementRequestBodyMetricPeriod.Raw | null;
|
|
15
16
|
metric_period_month_reset?: UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.Raw | null;
|
|
16
17
|
value_bool?: boolean | null;
|
|
@@ -32,7 +32,8 @@ const UpdatePlanEntitlementRequestBodyMetricPeriod_1 = require("../../types/Upda
|
|
|
32
32
|
const UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset_1 = require("../../types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset");
|
|
33
33
|
const UpdatePlanEntitlementRequestBodyValueType_1 = require("../../types/UpdatePlanEntitlementRequestBodyValueType");
|
|
34
34
|
exports.UpdatePlanEntitlementRequestBody = core.serialization.object({
|
|
35
|
-
|
|
35
|
+
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
36
|
+
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
36
37
|
metricPeriod: core.serialization.property("metric_period", UpdatePlanEntitlementRequestBodyMetricPeriod_1.UpdatePlanEntitlementRequestBodyMetricPeriod.optional()),
|
|
37
38
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset_1.UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.optional()),
|
|
38
39
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
@@ -32,6 +32,7 @@ exports.CheckFlagOutputWithFlagKey = core.serialization.object({
|
|
|
32
32
|
companyId: core.serialization.property("company_id", core.serialization.string().optional()),
|
|
33
33
|
error: core.serialization.string().optional(),
|
|
34
34
|
flag: core.serialization.string(),
|
|
35
|
+
flagId: core.serialization.property("flag_id", core.serialization.string().optional()),
|
|
35
36
|
reason: core.serialization.string(),
|
|
36
37
|
ruleId: core.serialization.property("rule_id", core.serialization.string().optional()),
|
|
37
38
|
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.CheckFlagResponseData = core.serialization.object({
|
|
32
32
|
companyId: core.serialization.property("company_id", core.serialization.string().optional()),
|
|
33
33
|
error: core.serialization.string().optional(),
|
|
34
|
+
flagId: core.serialization.property("flag_id", core.serialization.string().optional()),
|
|
34
35
|
reason: core.serialization.string(),
|
|
35
36
|
ruleId: core.serialization.property("rule_id", core.serialization.string().optional()),
|
|
36
37
|
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
@@ -13,6 +13,7 @@ export declare namespace CompanyPlanDetailResponseData {
|
|
|
13
13
|
interface Raw {
|
|
14
14
|
audience_type?: string | null;
|
|
15
15
|
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
16
|
+
company_can_trial: boolean;
|
|
16
17
|
company_count: number;
|
|
17
18
|
created_at: string;
|
|
18
19
|
current: boolean;
|
|
@@ -35,6 +35,7 @@ const BillingPriceResponseData_1 = require("./BillingPriceResponseData");
|
|
|
35
35
|
exports.CompanyPlanDetailResponseData = core.serialization.object({
|
|
36
36
|
audienceType: core.serialization.property("audience_type", core.serialization.string().optional()),
|
|
37
37
|
billingProduct: core.serialization.property("billing_product", BillingProductDetailResponseData_1.BillingProductDetailResponseData.optional()),
|
|
38
|
+
companyCanTrial: core.serialization.property("company_can_trial", core.serialization.boolean()),
|
|
38
39
|
companyCount: core.serialization.property("company_count", core.serialization.number()),
|
|
39
40
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
40
41
|
current: core.serialization.boolean(),
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { CompanyPlanDetailResponseData } from "./CompanyPlanDetailResponseData";
|
|
8
|
+
import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementResponseData";
|
|
8
9
|
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
9
10
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
10
11
|
import { ComponentResponseData } from "./ComponentResponseData";
|
|
@@ -17,6 +18,7 @@ export declare namespace ComponentHydrateResponseData {
|
|
|
17
18
|
interface Raw {
|
|
18
19
|
active_add_ons: CompanyPlanDetailResponseData.Raw[];
|
|
19
20
|
active_plans: CompanyPlanDetailResponseData.Raw[];
|
|
21
|
+
active_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
|
|
20
22
|
capabilities?: ComponentCapabilities.Raw | null;
|
|
21
23
|
company?: CompanyDetailResponseData.Raw | null;
|
|
22
24
|
component?: ComponentResponseData.Raw | null;
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ComponentHydrateResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const CompanyPlanDetailResponseData_1 = require("./CompanyPlanDetailResponseData");
|
|
32
|
+
const UsageBasedEntitlementResponseData_1 = require("./UsageBasedEntitlementResponseData");
|
|
32
33
|
const ComponentCapabilities_1 = require("./ComponentCapabilities");
|
|
33
34
|
const CompanyDetailResponseData_1 = require("./CompanyDetailResponseData");
|
|
34
35
|
const ComponentResponseData_1 = require("./ComponentResponseData");
|
|
@@ -39,6 +40,7 @@ const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
|
39
40
|
exports.ComponentHydrateResponseData = core.serialization.object({
|
|
40
41
|
activeAddOns: core.serialization.property("active_add_ons", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
41
42
|
activePlans: core.serialization.property("active_plans", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
43
|
+
activeUsageBasedEntitlements: core.serialization.property("active_usage_based_entitlements", core.serialization.list(UsageBasedEntitlementResponseData_1.UsageBasedEntitlementResponseData)),
|
|
42
44
|
capabilities: ComponentCapabilities_1.ComponentCapabilities.optional(),
|
|
43
45
|
company: CompanyDetailResponseData_1.CompanyDetailResponseData.optional(),
|
|
44
46
|
component: ComponentResponseData_1.ComponentResponseData.optional(),
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { CompanyPlanDetailResponseData } from "./CompanyPlanDetailResponseData";
|
|
8
|
+
import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementResponseData";
|
|
8
9
|
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
9
10
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
10
11
|
import { ComponentResponseData } from "./ComponentResponseData";
|
|
@@ -17,6 +18,7 @@ export declare namespace ComponentPreviewResponseData {
|
|
|
17
18
|
interface Raw {
|
|
18
19
|
active_add_ons: CompanyPlanDetailResponseData.Raw[];
|
|
19
20
|
active_plans: CompanyPlanDetailResponseData.Raw[];
|
|
21
|
+
active_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
|
|
20
22
|
capabilities?: ComponentCapabilities.Raw | null;
|
|
21
23
|
company?: CompanyDetailResponseData.Raw | null;
|
|
22
24
|
component?: ComponentResponseData.Raw | null;
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ComponentPreviewResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const CompanyPlanDetailResponseData_1 = require("./CompanyPlanDetailResponseData");
|
|
32
|
+
const UsageBasedEntitlementResponseData_1 = require("./UsageBasedEntitlementResponseData");
|
|
32
33
|
const ComponentCapabilities_1 = require("./ComponentCapabilities");
|
|
33
34
|
const CompanyDetailResponseData_1 = require("./CompanyDetailResponseData");
|
|
34
35
|
const ComponentResponseData_1 = require("./ComponentResponseData");
|
|
@@ -39,6 +40,7 @@ const CompanySubscriptionResponseData_1 = require("./CompanySubscriptionResponse
|
|
|
39
40
|
exports.ComponentPreviewResponseData = core.serialization.object({
|
|
40
41
|
activeAddOns: core.serialization.property("active_add_ons", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
41
42
|
activePlans: core.serialization.property("active_plans", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
43
|
+
activeUsageBasedEntitlements: core.serialization.property("active_usage_based_entitlements", core.serialization.list(UsageBasedEntitlementResponseData_1.UsageBasedEntitlementResponseData)),
|
|
42
44
|
capabilities: ComponentCapabilities_1.ComponentCapabilities.optional(),
|
|
43
45
|
company: CompanyDetailResponseData_1.CompanyDetailResponseData.optional(),
|
|
44
46
|
component: ComponentResponseData_1.ComponentResponseData.optional(),
|
|
@@ -11,7 +11,8 @@ export declare const CreateEntitlementReqCommon: core.serialization.ObjectSchema
|
|
|
11
11
|
export declare namespace CreateEntitlementReqCommon {
|
|
12
12
|
interface Raw {
|
|
13
13
|
feature_id: string;
|
|
14
|
-
|
|
14
|
+
metered_monthly_price_id?: string | null;
|
|
15
|
+
metered_yearly_price_id?: string | null;
|
|
15
16
|
metric_period?: CreateEntitlementReqCommonMetricPeriod.Raw | null;
|
|
16
17
|
metric_period_month_reset?: CreateEntitlementReqCommonMetricPeriodMonthReset.Raw | null;
|
|
17
18
|
value_bool?: boolean | null;
|
|
@@ -33,7 +33,8 @@ const CreateEntitlementReqCommonMetricPeriodMonthReset_1 = require("./CreateEnti
|
|
|
33
33
|
const CreateEntitlementReqCommonValueType_1 = require("./CreateEntitlementReqCommonValueType");
|
|
34
34
|
exports.CreateEntitlementReqCommon = core.serialization.object({
|
|
35
35
|
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
36
|
-
|
|
36
|
+
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
37
|
+
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
37
38
|
metricPeriod: core.serialization.property("metric_period", CreateEntitlementReqCommonMetricPeriod_1.CreateEntitlementReqCommonMetricPeriod.optional()),
|
|
38
39
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", CreateEntitlementReqCommonMetricPeriodMonthReset_1.CreateEntitlementReqCommonMetricPeriodMonthReset.optional()),
|
|
39
40
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
@@ -18,6 +18,7 @@ export declare namespace FeatureCompanyResponseData {
|
|
|
18
18
|
entitlement_id: string;
|
|
19
19
|
entitlement_type: string;
|
|
20
20
|
feature?: FeatureDetailResponseData.Raw | null;
|
|
21
|
+
metric_reset_at?: string | null;
|
|
21
22
|
month_reset?: string | null;
|
|
22
23
|
period?: string | null;
|
|
23
24
|
plan?: PlanResponseData.Raw | null;
|
|
@@ -40,6 +40,7 @@ exports.FeatureCompanyResponseData = core.serialization.object({
|
|
|
40
40
|
entitlementId: core.serialization.property("entitlement_id", core.serialization.string()),
|
|
41
41
|
entitlementType: core.serialization.property("entitlement_type", core.serialization.string()),
|
|
42
42
|
feature: FeatureDetailResponseData_1.FeatureDetailResponseData.optional(),
|
|
43
|
+
metricResetAt: core.serialization.property("metric_reset_at", core.serialization.date().optional()),
|
|
43
44
|
monthReset: core.serialization.property("month_reset", core.serialization.string().optional()),
|
|
44
45
|
period: core.serialization.string().optional(),
|
|
45
46
|
plan: PlanResponseData_1.PlanResponseData.optional(),
|
|
@@ -19,6 +19,7 @@ export declare namespace FeatureCompanyUserResponseData {
|
|
|
19
19
|
entitlement_id: string;
|
|
20
20
|
entitlement_type: string;
|
|
21
21
|
feature?: FeatureDetailResponseData.Raw | null;
|
|
22
|
+
metric_reset_at?: string | null;
|
|
22
23
|
month_reset?: string | null;
|
|
23
24
|
period?: string | null;
|
|
24
25
|
plan?: PlanResponseData.Raw | null;
|
|
@@ -41,6 +41,7 @@ exports.FeatureCompanyUserResponseData = core.serialization.object({
|
|
|
41
41
|
entitlementId: core.serialization.property("entitlement_id", core.serialization.string()),
|
|
42
42
|
entitlementType: core.serialization.property("entitlement_type", core.serialization.string()),
|
|
43
43
|
feature: FeatureDetailResponseData_1.FeatureDetailResponseData.optional(),
|
|
44
|
+
metricResetAt: core.serialization.property("metric_reset_at", core.serialization.date().optional()),
|
|
44
45
|
monthReset: core.serialization.property("month_reset", core.serialization.string().optional()),
|
|
45
46
|
period: core.serialization.string().optional(),
|
|
46
47
|
plan: PlanResponseData_1.PlanResponseData.optional(),
|
|
@@ -16,6 +16,7 @@ export declare namespace FeatureUsageResponseData {
|
|
|
16
16
|
entitlement_id: string;
|
|
17
17
|
entitlement_type: string;
|
|
18
18
|
feature?: FeatureDetailResponseData.Raw | null;
|
|
19
|
+
metric_reset_at?: string | null;
|
|
19
20
|
month_reset?: string | null;
|
|
20
21
|
period?: string | null;
|
|
21
22
|
plan?: PlanResponseData.Raw | null;
|
|
@@ -38,6 +38,7 @@ exports.FeatureUsageResponseData = core.serialization.object({
|
|
|
38
38
|
entitlementId: core.serialization.property("entitlement_id", core.serialization.string()),
|
|
39
39
|
entitlementType: core.serialization.property("entitlement_type", core.serialization.string()),
|
|
40
40
|
feature: FeatureDetailResponseData_1.FeatureDetailResponseData.optional(),
|
|
41
|
+
metricResetAt: core.serialization.property("metric_reset_at", core.serialization.date().optional()),
|
|
41
42
|
monthReset: core.serialization.property("month_reset", core.serialization.string().optional()),
|
|
42
43
|
period: core.serialization.string().optional(),
|
|
43
44
|
plan: PlanResponseData_1.PlanResponseData.optional(),
|
|
@@ -16,7 +16,8 @@ export declare namespace PlanEntitlementResponseData {
|
|
|
16
16
|
feature?: FeatureResponseData.Raw | null;
|
|
17
17
|
feature_id: string;
|
|
18
18
|
id: string;
|
|
19
|
-
|
|
19
|
+
metered_monthly_price?: BillingPriceView.Raw | null;
|
|
20
|
+
metered_yearly_price?: BillingPriceView.Raw | null;
|
|
20
21
|
metric_period?: string | null;
|
|
21
22
|
metric_period_month_reset?: string | null;
|
|
22
23
|
plan?: PlanResponseData.Raw | null;
|
|
@@ -38,7 +38,8 @@ exports.PlanEntitlementResponseData = core.serialization.object({
|
|
|
38
38
|
feature: FeatureResponseData_1.FeatureResponseData.optional(),
|
|
39
39
|
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
40
40
|
id: core.serialization.string(),
|
|
41
|
-
|
|
41
|
+
meteredMonthlyPrice: core.serialization.property("metered_monthly_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
42
|
+
meteredYearlyPrice: core.serialization.property("metered_yearly_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
42
43
|
metricPeriod: core.serialization.property("metric_period", core.serialization.string().optional()),
|
|
43
44
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", core.serialization.string().optional()),
|
|
44
45
|
plan: PlanResponseData_1.PlanResponseData.optional(),
|
|
@@ -10,7 +10,8 @@ import { UpdateEntitlementReqCommonValueType } from "./UpdateEntitlementReqCommo
|
|
|
10
10
|
export declare const UpdateEntitlementReqCommon: core.serialization.ObjectSchema<serializers.UpdateEntitlementReqCommon.Raw, Schematic.UpdateEntitlementReqCommon>;
|
|
11
11
|
export declare namespace UpdateEntitlementReqCommon {
|
|
12
12
|
interface Raw {
|
|
13
|
-
|
|
13
|
+
metered_monthly_price_id?: string | null;
|
|
14
|
+
metered_yearly_price_id?: string | null;
|
|
14
15
|
metric_period?: UpdateEntitlementReqCommonMetricPeriod.Raw | null;
|
|
15
16
|
metric_period_month_reset?: UpdateEntitlementReqCommonMetricPeriodMonthReset.Raw | null;
|
|
16
17
|
value_bool?: boolean | null;
|
|
@@ -32,7 +32,8 @@ const UpdateEntitlementReqCommonMetricPeriod_1 = require("./UpdateEntitlementReq
|
|
|
32
32
|
const UpdateEntitlementReqCommonMetricPeriodMonthReset_1 = require("./UpdateEntitlementReqCommonMetricPeriodMonthReset");
|
|
33
33
|
const UpdateEntitlementReqCommonValueType_1 = require("./UpdateEntitlementReqCommonValueType");
|
|
34
34
|
exports.UpdateEntitlementReqCommon = core.serialization.object({
|
|
35
|
-
|
|
35
|
+
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
36
|
+
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
36
37
|
metricPeriod: core.serialization.property("metric_period", UpdateEntitlementReqCommonMetricPeriod_1.UpdateEntitlementReqCommonMetricPeriod.optional()),
|
|
37
38
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", UpdateEntitlementReqCommonMetricPeriodMonthReset_1.UpdateEntitlementReqCommonMetricPeriodMonthReset.optional()),
|
|
38
39
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { BillingPriceView } from "./BillingPriceView";
|
|
8
|
+
export declare const UsageBasedEntitlementResponseData: core.serialization.ObjectSchema<serializers.UsageBasedEntitlementResponseData.Raw, Schematic.UsageBasedEntitlementResponseData>;
|
|
9
|
+
export declare namespace UsageBasedEntitlementResponseData {
|
|
10
|
+
interface Raw {
|
|
11
|
+
feature_id: string;
|
|
12
|
+
metered_price?: BillingPriceView.Raw | null;
|
|
13
|
+
metric_period?: string | null;
|
|
14
|
+
metric_period_month_reset?: string | null;
|
|
15
|
+
price_behavior?: string | null;
|
|
16
|
+
value_bool?: boolean | null;
|
|
17
|
+
value_numeric?: number | null;
|
|
18
|
+
value_type: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.UsageBasedEntitlementResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const BillingPriceView_1 = require("./BillingPriceView");
|
|
32
|
+
exports.UsageBasedEntitlementResponseData = core.serialization.object({
|
|
33
|
+
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
34
|
+
meteredPrice: core.serialization.property("metered_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
35
|
+
metricPeriod: core.serialization.property("metric_period", core.serialization.string().optional()),
|
|
36
|
+
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", core.serialization.string().optional()),
|
|
37
|
+
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
38
|
+
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
39
|
+
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
40
|
+
valueType: core.serialization.property("value_type", core.serialization.string()),
|
|
41
|
+
});
|
|
@@ -126,6 +126,7 @@ export * from "./UpsertCompanyRequestBody";
|
|
|
126
126
|
export * from "./UpsertTraitRequestBody";
|
|
127
127
|
export * from "./UpsertUserRequestBody";
|
|
128
128
|
export * from "./UpsertUserSubRequestBody";
|
|
129
|
+
export * from "./UsageBasedEntitlementResponseData";
|
|
129
130
|
export * from "./UserDetailResponseData";
|
|
130
131
|
export * from "./UserResponseData";
|
|
131
132
|
export * from "./WebhookEventDetailResponseData";
|
|
@@ -142,6 +142,7 @@ __exportStar(require("./UpsertCompanyRequestBody"), exports);
|
|
|
142
142
|
__exportStar(require("./UpsertTraitRequestBody"), exports);
|
|
143
143
|
__exportStar(require("./UpsertUserRequestBody"), exports);
|
|
144
144
|
__exportStar(require("./UpsertUserSubRequestBody"), exports);
|
|
145
|
+
__exportStar(require("./UsageBasedEntitlementResponseData"), exports);
|
|
145
146
|
__exportStar(require("./UserDetailResponseData"), exports);
|
|
146
147
|
__exportStar(require("./UserResponseData"), exports);
|
|
147
148
|
__exportStar(require("./WebhookEventDetailResponseData"), exports);
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -3047,7 +3047,7 @@ await client.companies.deleteCompanyByKeys({
|
|
|
3047
3047
|
```typescript
|
|
3048
3048
|
await client.companies.lookupCompany({
|
|
3049
3049
|
keys: {
|
|
3050
|
-
|
|
3050
|
+
keys: {
|
|
3051
3051
|
key: "value",
|
|
3052
3052
|
},
|
|
3053
3053
|
},
|
|
@@ -4207,7 +4207,7 @@ await client.companies.deleteUserByKeys({
|
|
|
4207
4207
|
```typescript
|
|
4208
4208
|
await client.companies.lookupUser({
|
|
4209
4209
|
keys: {
|
|
4210
|
-
|
|
4210
|
+
keys: {
|
|
4211
4211
|
key: "value",
|
|
4212
4212
|
},
|
|
4213
4213
|
},
|
|
@@ -5163,7 +5163,7 @@ await client.entitlements.countPlanEntitlements();
|
|
|
5163
5163
|
```typescript
|
|
5164
5164
|
await client.entitlements.getFeatureUsageByCompany({
|
|
5165
5165
|
keys: {
|
|
5166
|
-
|
|
5166
|
+
keys: {
|
|
5167
5167
|
key: "value",
|
|
5168
5168
|
},
|
|
5169
5169
|
},
|
|
@@ -8,6 +8,7 @@ export declare const SearchBillingPricesParams: core.serialization.ObjectSchema<
|
|
|
8
8
|
export declare namespace SearchBillingPricesParams {
|
|
9
9
|
interface Raw {
|
|
10
10
|
ids?: string[] | null;
|
|
11
|
+
interval?: string | null;
|
|
11
12
|
limit?: number | null;
|
|
12
13
|
offset?: number | null;
|
|
13
14
|
price?: number | null;
|
|
@@ -30,6 +30,7 @@ exports.SearchBillingPricesParams = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
exports.SearchBillingPricesParams = core.serialization.object({
|
|
32
32
|
ids: core.serialization.list(core.serialization.string()).optional(),
|
|
33
|
+
interval: core.serialization.string().optional(),
|
|
33
34
|
limit: core.serialization.number().optional(),
|
|
34
35
|
offset: core.serialization.number().optional(),
|
|
35
36
|
price: core.serialization.number().optional(),
|
package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ export declare namespace CreateCompanyOverrideRequestBody {
|
|
|
13
13
|
company_id: string;
|
|
14
14
|
expiration_date?: string | null;
|
|
15
15
|
feature_id: string;
|
|
16
|
-
|
|
16
|
+
metered_monthly_price_id?: string | null;
|
|
17
|
+
metered_yearly_price_id?: string | null;
|
|
17
18
|
metric_period?: CreateCompanyOverrideRequestBodyMetricPeriod.Raw | null;
|
|
18
19
|
metric_period_month_reset?: CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.Raw | null;
|
|
19
20
|
value_bool?: boolean | null;
|
package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js
CHANGED
|
@@ -35,7 +35,8 @@ exports.CreateCompanyOverrideRequestBody = core.serialization.object({
|
|
|
35
35
|
companyId: core.serialization.property("company_id", core.serialization.string()),
|
|
36
36
|
expirationDate: core.serialization.property("expiration_date", core.serialization.date().optional()),
|
|
37
37
|
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
38
|
-
|
|
38
|
+
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
39
|
+
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
39
40
|
metricPeriod: core.serialization.property("metric_period", CreateCompanyOverrideRequestBodyMetricPeriod_1.CreateCompanyOverrideRequestBodyMetricPeriod.optional()),
|
|
40
41
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", CreateCompanyOverrideRequestBodyMetricPeriodMonthReset_1.CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.optional()),
|
|
41
42
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts
CHANGED
|
@@ -11,15 +11,17 @@ export declare const CreatePlanEntitlementRequestBody: core.serialization.Schema
|
|
|
11
11
|
export declare namespace CreatePlanEntitlementRequestBody {
|
|
12
12
|
interface Raw {
|
|
13
13
|
feature_id: string;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
metered_monthly_price_id?: string | null;
|
|
15
|
+
metered_yearly_price_id?: string | null;
|
|
16
16
|
metric_period?: CreatePlanEntitlementRequestBodyMetricPeriod.Raw | null;
|
|
17
17
|
metric_period_month_reset?: CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.Raw | null;
|
|
18
|
+
monthly_metered_price_id?: string | null;
|
|
18
19
|
plan_id: string;
|
|
19
20
|
price_behavior?: string | null;
|
|
20
21
|
value_bool?: boolean | null;
|
|
21
22
|
value_numeric?: number | null;
|
|
22
23
|
value_trait_id?: string | null;
|
|
23
24
|
value_type: CreatePlanEntitlementRequestBodyValueType.Raw;
|
|
25
|
+
yearly_metered_price_id?: string | null;
|
|
24
26
|
}
|
|
25
27
|
}
|
package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js
CHANGED
|
@@ -33,14 +33,16 @@ const CreatePlanEntitlementRequestBodyMetricPeriodMonthReset_1 = require("../../
|
|
|
33
33
|
const CreatePlanEntitlementRequestBodyValueType_1 = require("../../types/CreatePlanEntitlementRequestBodyValueType");
|
|
34
34
|
exports.CreatePlanEntitlementRequestBody = core.serialization.object({
|
|
35
35
|
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
37
|
+
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
38
38
|
metricPeriod: core.serialization.property("metric_period", CreatePlanEntitlementRequestBodyMetricPeriod_1.CreatePlanEntitlementRequestBodyMetricPeriod.optional()),
|
|
39
39
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", CreatePlanEntitlementRequestBodyMetricPeriodMonthReset_1.CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.optional()),
|
|
40
|
+
monthlyMeteredPriceId: core.serialization.property("monthly_metered_price_id", core.serialization.string().optional()),
|
|
40
41
|
planId: core.serialization.property("plan_id", core.serialization.string()),
|
|
41
42
|
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
42
43
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
43
44
|
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
44
45
|
valueTraitId: core.serialization.property("value_trait_id", core.serialization.string().optional()),
|
|
45
46
|
valueType: core.serialization.property("value_type", CreatePlanEntitlementRequestBodyValueType_1.CreatePlanEntitlementRequestBodyValueType),
|
|
47
|
+
yearlyMeteredPriceId: core.serialization.property("yearly_metered_price_id", core.serialization.string().optional()),
|
|
46
48
|
});
|
package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ export declare const UpdateCompanyOverrideRequestBody: core.serialization.Schema
|
|
|
11
11
|
export declare namespace UpdateCompanyOverrideRequestBody {
|
|
12
12
|
interface Raw {
|
|
13
13
|
expiration_date?: string | null;
|
|
14
|
-
|
|
14
|
+
metered_monthly_price_id?: string | null;
|
|
15
|
+
metered_yearly_price_id?: string | null;
|
|
15
16
|
metric_period?: UpdateCompanyOverrideRequestBodyMetricPeriod.Raw | null;
|
|
16
17
|
metric_period_month_reset?: UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.Raw | null;
|
|
17
18
|
value_bool?: boolean | null;
|
package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js
CHANGED
|
@@ -33,7 +33,8 @@ const UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset_1 = require("../../
|
|
|
33
33
|
const UpdateCompanyOverrideRequestBodyValueType_1 = require("../../types/UpdateCompanyOverrideRequestBodyValueType");
|
|
34
34
|
exports.UpdateCompanyOverrideRequestBody = core.serialization.object({
|
|
35
35
|
expirationDate: core.serialization.property("expiration_date", core.serialization.date().optional()),
|
|
36
|
-
|
|
36
|
+
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
37
|
+
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
37
38
|
metricPeriod: core.serialization.property("metric_period", UpdateCompanyOverrideRequestBodyMetricPeriod_1.UpdateCompanyOverrideRequestBodyMetricPeriod.optional()),
|
|
38
39
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset_1.UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.optional()),
|
|
39
40
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ import { UpdatePlanEntitlementRequestBodyValueType } from "../../types/UpdatePla
|
|
|
10
10
|
export declare const UpdatePlanEntitlementRequestBody: core.serialization.Schema<serializers.UpdatePlanEntitlementRequestBody.Raw, Schematic.UpdatePlanEntitlementRequestBody>;
|
|
11
11
|
export declare namespace UpdatePlanEntitlementRequestBody {
|
|
12
12
|
interface Raw {
|
|
13
|
-
|
|
13
|
+
metered_monthly_price_id?: string | null;
|
|
14
|
+
metered_yearly_price_id?: string | null;
|
|
14
15
|
metric_period?: UpdatePlanEntitlementRequestBodyMetricPeriod.Raw | null;
|
|
15
16
|
metric_period_month_reset?: UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.Raw | null;
|
|
16
17
|
value_bool?: boolean | null;
|