autumn-js 1.3.36 → 1.3.38
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/dist/backend/adapters/express.js +2224 -414
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +2224 -414
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +2224 -414
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +2224 -414
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +2224 -414
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-VD6R3EJF.mjs → chunk-4AGFUGRP.mjs} +1 -1
- package/dist/backend/{chunk-OTKO27NT.mjs → chunk-A5LJMVGG.mjs} +4 -4
- package/dist/backend/{chunk-JMH5BMF6.mjs → chunk-G7WBIK4N.mjs} +1 -1
- package/dist/backend/{chunk-64OF5EVZ.mjs → chunk-JYAPGFIY.mjs} +1 -1
- package/dist/backend/{chunk-XYF4XA2S.mjs → chunk-KQUDJM2H.mjs} +2224 -414
- package/dist/backend/{chunk-YIJUI4UU.mjs → chunk-QBZRROJC.mjs} +6 -6
- package/dist/backend/{chunk-V5XHIF3U.mjs → chunk-VNTWMMJ4.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +2224 -414
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +2224 -414
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +2224 -414
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +2224 -414
- package/dist/backend/core/index.mjs +9 -9
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +2224 -414
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-DBKyYIgR.d.mts → routeTypes-FZgLojFE.d.mts} +6572 -4614
- package/dist/backend/{routeTypes-OBaKFzEA.d.ts → routeTypes-gr0CUvgD.d.ts} +6572 -4614
- package/dist/better-auth/{chunk-AWKYPF6T.mjs → chunk-55SS3VYE.mjs} +2224 -414
- package/dist/better-auth/index.js +2224 -414
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +2224 -414
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +2224 -414
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/sdk/index.d.mts +3781 -1325
- package/dist/sdk/index.d.ts +3781 -1325
- package/dist/sdk/index.js +28109 -25066
- package/dist/sdk/index.mjs +27488 -24767
- package/package.json +2 -2
- package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
|
@@ -81,8 +81,8 @@ var SDK_METADATA = {
|
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "2.4.0",
|
|
83
83
|
sdkVersion: "0.10.18",
|
|
84
|
-
genVersion: "2.
|
|
85
|
-
userAgent: "speakeasy-sdk/typescript 0.10.18 2.
|
|
84
|
+
genVersion: "2.884.13",
|
|
85
|
+
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.4.0 @useautumn/sdk"
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
// ../sdk/src/lib/http.ts
|
|
@@ -11817,6 +11817,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
|
|
|
11817
11817
|
Prepaid: "prepaid",
|
|
11818
11818
|
UsageBased: "usage_based"
|
|
11819
11819
|
};
|
|
11820
|
+
var CreateInvoiceIssueMethod = {
|
|
11821
|
+
Draft: "draft",
|
|
11822
|
+
Finalize: "finalize",
|
|
11823
|
+
Send: "send"
|
|
11824
|
+
};
|
|
11820
11825
|
var CreateInvoiceProcessorType = {
|
|
11821
11826
|
Stripe: "stripe",
|
|
11822
11827
|
Revenuecat: "revenuecat"
|
|
@@ -12322,6 +12327,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
|
|
|
12322
12327
|
});
|
|
12323
12328
|
})
|
|
12324
12329
|
);
|
|
12330
|
+
var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
|
|
12325
12331
|
var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
12326
12332
|
z26.object({
|
|
12327
12333
|
customerId: z26.string(),
|
|
@@ -12339,7 +12345,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
|
12339
12345
|
taxRateId: z26.optional(z26.string()),
|
|
12340
12346
|
periodStart: z26.optional(z26.int()),
|
|
12341
12347
|
periodEnd: z26.optional(z26.int()),
|
|
12342
|
-
preview: z26.optional(z26.boolean())
|
|
12348
|
+
preview: z26.optional(z26.boolean()),
|
|
12349
|
+
issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
|
|
12343
12350
|
}),
|
|
12344
12351
|
z26.transform((v) => {
|
|
12345
12352
|
return remap(v, {
|
|
@@ -12351,7 +12358,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
|
12351
12358
|
dueDate: "due_date",
|
|
12352
12359
|
taxRateId: "tax_rate_id",
|
|
12353
12360
|
periodStart: "period_start",
|
|
12354
|
-
periodEnd: "period_end"
|
|
12361
|
+
periodEnd: "period_end",
|
|
12362
|
+
issueMethod: "issue_method"
|
|
12355
12363
|
});
|
|
12356
12364
|
})
|
|
12357
12365
|
);
|
|
@@ -12568,7 +12576,7 @@ var CreatePlanDimensionsToItemRequestBodyEnum1 = {
|
|
|
12568
12576
|
var CreatePlanToItemRequestBodyEnum = {
|
|
12569
12577
|
Inf: "inf"
|
|
12570
12578
|
};
|
|
12571
|
-
var
|
|
12579
|
+
var CreatePlanPriceLicenseIntervalRequestBody = {
|
|
12572
12580
|
OneOff: "one_off",
|
|
12573
12581
|
Week: "week",
|
|
12574
12582
|
Month: "month",
|
|
@@ -12576,7 +12584,7 @@ var CreatePlanPriceLicenseInterval = {
|
|
|
12576
12584
|
SemiAnnual: "semi_annual",
|
|
12577
12585
|
Year: "year"
|
|
12578
12586
|
};
|
|
12579
|
-
var
|
|
12587
|
+
var CreatePlanLicenseResetIntervalRequestBody = {
|
|
12580
12588
|
OneOff: "one_off",
|
|
12581
12589
|
Minute: "minute",
|
|
12582
12590
|
Hour: "hour",
|
|
@@ -12587,11 +12595,11 @@ var CreatePlanLicenseResetInterval = {
|
|
|
12587
12595
|
SemiAnnual: "semi_annual",
|
|
12588
12596
|
Year: "year"
|
|
12589
12597
|
};
|
|
12590
|
-
var
|
|
12598
|
+
var CreatePlanLicenseTierBehaviorRequestBody = {
|
|
12591
12599
|
Graduated: "graduated",
|
|
12592
12600
|
Volume: "volume"
|
|
12593
12601
|
};
|
|
12594
|
-
var
|
|
12602
|
+
var CreatePlanAddItemPriceIntervalRequestBody = {
|
|
12595
12603
|
OneOff: "one_off",
|
|
12596
12604
|
Week: "week",
|
|
12597
12605
|
Month: "month",
|
|
@@ -12599,47 +12607,47 @@ var CreatePlanLicenseAddItemPriceInterval = {
|
|
|
12599
12607
|
SemiAnnual: "semi_annual",
|
|
12600
12608
|
Year: "year"
|
|
12601
12609
|
};
|
|
12602
|
-
var
|
|
12610
|
+
var CreatePlanAddItemBillingMethodRequestBody = {
|
|
12603
12611
|
Prepaid: "prepaid",
|
|
12604
12612
|
UsageBased: "usage_based"
|
|
12605
12613
|
};
|
|
12606
|
-
var
|
|
12614
|
+
var CreatePlanLicenseOnIncreaseRequestBody = {
|
|
12607
12615
|
BillImmediately: "bill_immediately",
|
|
12608
12616
|
ProrateImmediately: "prorate_immediately",
|
|
12609
12617
|
ProrateNextCycle: "prorate_next_cycle",
|
|
12610
12618
|
BillNextCycle: "bill_next_cycle"
|
|
12611
12619
|
};
|
|
12612
|
-
var
|
|
12620
|
+
var CreatePlanLicenseOnDecreaseRequestBody = {
|
|
12613
12621
|
Prorate: "prorate",
|
|
12614
12622
|
ProrateImmediately: "prorate_immediately",
|
|
12615
12623
|
ProrateNextCycle: "prorate_next_cycle",
|
|
12616
12624
|
None: "none",
|
|
12617
12625
|
NoProrations: "no_prorations"
|
|
12618
12626
|
};
|
|
12619
|
-
var
|
|
12627
|
+
var CreatePlanLicenseExpiryDurationTypeRequestBody = {
|
|
12620
12628
|
Month: "month",
|
|
12621
12629
|
Forever: "forever"
|
|
12622
12630
|
};
|
|
12623
|
-
var
|
|
12631
|
+
var CreatePlanLicenseDurationRequestBody = {
|
|
12624
12632
|
Day: "day",
|
|
12625
12633
|
Week: "week",
|
|
12626
12634
|
Month: "month",
|
|
12627
12635
|
Year: "year"
|
|
12628
12636
|
};
|
|
12629
|
-
var
|
|
12637
|
+
var CreatePlanDimensionsToLicenseRequestBodyEnum2 = {
|
|
12630
12638
|
Inf: "inf"
|
|
12631
12639
|
};
|
|
12632
|
-
var
|
|
12640
|
+
var CreatePlanDimensionsToLicenseRequestBodyEnum1 = {
|
|
12633
12641
|
Inf: "inf"
|
|
12634
12642
|
};
|
|
12635
|
-
var
|
|
12643
|
+
var CreatePlanToLicenseRequestBodyEnum = {
|
|
12636
12644
|
Inf: "inf"
|
|
12637
12645
|
};
|
|
12638
|
-
var
|
|
12646
|
+
var CreatePlanRemoveItemBillingMethodRequestBody = {
|
|
12639
12647
|
Prepaid: "prepaid",
|
|
12640
12648
|
UsageBased: "usage_based"
|
|
12641
12649
|
};
|
|
12642
|
-
var
|
|
12650
|
+
var CreatePlanIntervalRemoveItemRequestBodyEnum2 = {
|
|
12643
12651
|
OneOff: "one_off",
|
|
12644
12652
|
Minute: "minute",
|
|
12645
12653
|
Hour: "hour",
|
|
@@ -12650,7 +12658,7 @@ var CreatePlanIntervalLicenseRemoveItemEnum2 = {
|
|
|
12650
12658
|
SemiAnnual: "semi_annual",
|
|
12651
12659
|
Year: "year"
|
|
12652
12660
|
};
|
|
12653
|
-
var
|
|
12661
|
+
var CreatePlanIntervalRemoveItemRequestBodyEnum1 = {
|
|
12654
12662
|
OneOff: "one_off",
|
|
12655
12663
|
Week: "week",
|
|
12656
12664
|
Month: "month",
|
|
@@ -13173,19 +13181,21 @@ var CreatePlanItemPlanItem$outboundSchema = z27.pipe(
|
|
|
13173
13181
|
});
|
|
13174
13182
|
})
|
|
13175
13183
|
);
|
|
13176
|
-
var
|
|
13177
|
-
|
|
13184
|
+
var CreatePlanPriceLicenseIntervalRequestBody$outboundSchema = z27.enum(
|
|
13185
|
+
CreatePlanPriceLicenseIntervalRequestBody
|
|
13186
|
+
);
|
|
13187
|
+
var CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z27.object({
|
|
13178
13188
|
currency: z27.string(),
|
|
13179
13189
|
amount: z27.number()
|
|
13180
13190
|
});
|
|
13181
|
-
var
|
|
13191
|
+
var CreatePlanBasePriceRequestBody$outboundSchema = z27.pipe(
|
|
13182
13192
|
z27.object({
|
|
13183
13193
|
amount: z27.number(),
|
|
13184
|
-
interval:
|
|
13194
|
+
interval: CreatePlanPriceLicenseIntervalRequestBody$outboundSchema,
|
|
13185
13195
|
intervalCount: z27._default(z27.number(), 1),
|
|
13186
|
-
additionalCurrencies: z27.optional(
|
|
13187
|
-
|
|
13188
|
-
)
|
|
13196
|
+
additionalCurrencies: z27.optional(z27.array(z27.lazy(
|
|
13197
|
+
() => CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
|
|
13198
|
+
)))
|
|
13189
13199
|
}),
|
|
13190
13200
|
z27.transform((v) => {
|
|
13191
13201
|
return remap(v, {
|
|
@@ -13194,13 +13204,15 @@ var CreatePlanLicenseBasePrice$outboundSchema = z27.pipe(
|
|
|
13194
13204
|
});
|
|
13195
13205
|
})
|
|
13196
13206
|
);
|
|
13197
|
-
var
|
|
13207
|
+
var CreatePlanLicenseThresholdBillingRequestBody$outboundSchema = z27.object({
|
|
13198
13208
|
threshold: z27.number()
|
|
13199
13209
|
});
|
|
13200
|
-
var
|
|
13201
|
-
|
|
13210
|
+
var CreatePlanLicenseResetIntervalRequestBody$outboundSchema = z27.enum(
|
|
13211
|
+
CreatePlanLicenseResetIntervalRequestBody
|
|
13212
|
+
);
|
|
13213
|
+
var CreatePlanLicenseResetRequestBody$outboundSchema = z27.pipe(
|
|
13202
13214
|
z27.object({
|
|
13203
|
-
interval:
|
|
13215
|
+
interval: CreatePlanLicenseResetIntervalRequestBody$outboundSchema,
|
|
13204
13216
|
intervalCount: z27._default(z27.number(), 1)
|
|
13205
13217
|
}),
|
|
13206
13218
|
z27.transform((v) => {
|
|
@@ -13209,12 +13221,12 @@ var CreatePlanLicenseReset$outboundSchema = z27.pipe(
|
|
|
13209
13221
|
});
|
|
13210
13222
|
})
|
|
13211
13223
|
);
|
|
13212
|
-
var
|
|
13224
|
+
var CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema = z27.object({
|
|
13213
13225
|
currency: z27.string(),
|
|
13214
13226
|
amount: z27.number()
|
|
13215
13227
|
});
|
|
13216
|
-
var
|
|
13217
|
-
var
|
|
13228
|
+
var CreatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z27.number(), z27.string()]);
|
|
13229
|
+
var CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z27.pipe(
|
|
13218
13230
|
z27.object({
|
|
13219
13231
|
currency: z27.string(),
|
|
13220
13232
|
amount: z27.optional(z27.number()),
|
|
@@ -13226,13 +13238,13 @@ var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z27.pipe(
|
|
|
13226
13238
|
});
|
|
13227
13239
|
})
|
|
13228
13240
|
);
|
|
13229
|
-
var
|
|
13241
|
+
var CreatePlanLicensePriceTierRequestBody$outboundSchema = z27.pipe(
|
|
13230
13242
|
z27.object({
|
|
13231
13243
|
to: smartUnion([z27.number(), z27.string()]),
|
|
13232
13244
|
amount: z27.optional(z27.number()),
|
|
13233
13245
|
flatAmount: z27.optional(z27.number()),
|
|
13234
13246
|
additionalCurrencies: z27.optional(z27.array(z27.lazy(
|
|
13235
|
-
() =>
|
|
13247
|
+
() => CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
|
|
13236
13248
|
)))
|
|
13237
13249
|
}),
|
|
13238
13250
|
z27.transform((v) => {
|
|
@@ -13242,27 +13254,31 @@ var CreatePlanLicensePriceTier$outboundSchema = z27.pipe(
|
|
|
13242
13254
|
});
|
|
13243
13255
|
})
|
|
13244
13256
|
);
|
|
13245
|
-
var
|
|
13246
|
-
|
|
13247
|
-
|
|
13257
|
+
var CreatePlanLicenseTierBehaviorRequestBody$outboundSchema = z27.enum(
|
|
13258
|
+
CreatePlanLicenseTierBehaviorRequestBody
|
|
13259
|
+
);
|
|
13260
|
+
var CreatePlanAddItemPriceIntervalRequestBody$outboundSchema = z27.enum(
|
|
13261
|
+
CreatePlanAddItemPriceIntervalRequestBody
|
|
13248
13262
|
);
|
|
13249
|
-
var
|
|
13250
|
-
|
|
13263
|
+
var CreatePlanAddItemBillingMethodRequestBody$outboundSchema = z27.enum(
|
|
13264
|
+
CreatePlanAddItemBillingMethodRequestBody
|
|
13251
13265
|
);
|
|
13252
|
-
var
|
|
13266
|
+
var CreatePlanLicensePriceRequestBody$outboundSchema = z27.pipe(
|
|
13253
13267
|
z27.object({
|
|
13254
13268
|
amount: z27.optional(z27.number()),
|
|
13255
13269
|
additionalCurrencies: z27.optional(z27.array(z27.lazy(
|
|
13256
|
-
() =>
|
|
13270
|
+
() => CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema
|
|
13257
13271
|
))),
|
|
13258
13272
|
tiers: z27.optional(z27.array(z27.lazy(
|
|
13259
|
-
() =>
|
|
13273
|
+
() => CreatePlanLicensePriceTierRequestBody$outboundSchema
|
|
13260
13274
|
))),
|
|
13261
|
-
tierBehavior: z27.optional(
|
|
13262
|
-
|
|
13275
|
+
tierBehavior: z27.optional(
|
|
13276
|
+
CreatePlanLicenseTierBehaviorRequestBody$outboundSchema
|
|
13277
|
+
),
|
|
13278
|
+
interval: CreatePlanAddItemPriceIntervalRequestBody$outboundSchema,
|
|
13263
13279
|
intervalCount: z27._default(z27.number(), 1),
|
|
13264
13280
|
billingUnits: z27._default(z27.number(), 1),
|
|
13265
|
-
billingMethod:
|
|
13281
|
+
billingMethod: CreatePlanAddItemBillingMethodRequestBody$outboundSchema,
|
|
13266
13282
|
maxPurchase: z27.optional(z27.nullable(z27.number()))
|
|
13267
13283
|
}),
|
|
13268
13284
|
z27.transform((v) => {
|
|
@@ -13276,12 +13292,16 @@ var CreatePlanLicensePrice$outboundSchema = z27.pipe(
|
|
|
13276
13292
|
});
|
|
13277
13293
|
})
|
|
13278
13294
|
);
|
|
13279
|
-
var
|
|
13280
|
-
|
|
13281
|
-
|
|
13295
|
+
var CreatePlanLicenseOnIncreaseRequestBody$outboundSchema = z27.enum(
|
|
13296
|
+
CreatePlanLicenseOnIncreaseRequestBody
|
|
13297
|
+
);
|
|
13298
|
+
var CreatePlanLicenseOnDecreaseRequestBody$outboundSchema = z27.enum(
|
|
13299
|
+
CreatePlanLicenseOnDecreaseRequestBody
|
|
13300
|
+
);
|
|
13301
|
+
var CreatePlanLicenseProrationRequestBody$outboundSchema = z27.pipe(
|
|
13282
13302
|
z27.object({
|
|
13283
|
-
onIncrease:
|
|
13284
|
-
onDecrease:
|
|
13303
|
+
onIncrease: CreatePlanLicenseOnIncreaseRequestBody$outboundSchema,
|
|
13304
|
+
onDecrease: CreatePlanLicenseOnDecreaseRequestBody$outboundSchema
|
|
13285
13305
|
}),
|
|
13286
13306
|
z27.transform((v) => {
|
|
13287
13307
|
return remap(v, {
|
|
@@ -13290,12 +13310,14 @@ var CreatePlanLicenseProration$outboundSchema = z27.pipe(
|
|
|
13290
13310
|
});
|
|
13291
13311
|
})
|
|
13292
13312
|
);
|
|
13293
|
-
var
|
|
13294
|
-
|
|
13313
|
+
var CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z27.enum(
|
|
13314
|
+
CreatePlanLicenseExpiryDurationTypeRequestBody
|
|
13315
|
+
);
|
|
13316
|
+
var CreatePlanLicenseRolloverRequestBody$outboundSchema = z27.pipe(
|
|
13295
13317
|
z27.object({
|
|
13296
13318
|
max: z27.optional(z27.number()),
|
|
13297
13319
|
maxPercentage: z27.optional(z27.number()),
|
|
13298
|
-
expiryDurationType:
|
|
13320
|
+
expiryDurationType: CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
|
|
13299
13321
|
expiryDurationLength: z27.optional(z27.number())
|
|
13300
13322
|
}),
|
|
13301
13323
|
z27.transform((v) => {
|
|
@@ -13306,13 +13328,13 @@ var CreatePlanLicenseRollover$outboundSchema = z27.pipe(
|
|
|
13306
13328
|
});
|
|
13307
13329
|
})
|
|
13308
13330
|
);
|
|
13309
|
-
var
|
|
13310
|
-
var
|
|
13311
|
-
duration:
|
|
13331
|
+
var CreatePlanLicenseDurationRequestBody$outboundSchema = z27.enum(CreatePlanLicenseDurationRequestBody);
|
|
13332
|
+
var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
|
|
13333
|
+
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
13312
13334
|
length: z27.number()
|
|
13313
13335
|
});
|
|
13314
13336
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13315
|
-
var
|
|
13337
|
+
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
|
|
13316
13338
|
z27.object({
|
|
13317
13339
|
match: z27.record(
|
|
13318
13340
|
z27.string(),
|
|
@@ -13328,13 +13350,18 @@ var CreatePlanDimensionsLicense4$outboundSchema = z27.pipe(
|
|
|
13328
13350
|
})
|
|
13329
13351
|
);
|
|
13330
13352
|
var CreatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13331
|
-
var
|
|
13332
|
-
|
|
13333
|
-
|
|
13353
|
+
var CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z27.enum(
|
|
13354
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum2
|
|
13355
|
+
);
|
|
13356
|
+
var CreatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
|
|
13357
|
+
z27.number(),
|
|
13358
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
|
|
13359
|
+
]);
|
|
13360
|
+
var CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z27.pipe(
|
|
13334
13361
|
z27.object({
|
|
13335
13362
|
to: smartUnion([
|
|
13336
13363
|
z27.number(),
|
|
13337
|
-
|
|
13364
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
|
|
13338
13365
|
]),
|
|
13339
13366
|
creditCost: z27.number()
|
|
13340
13367
|
}),
|
|
@@ -13344,7 +13371,7 @@ var CreatePlanDimensionsLicenseTier2$outboundSchema = z27.pipe(
|
|
|
13344
13371
|
});
|
|
13345
13372
|
})
|
|
13346
13373
|
);
|
|
13347
|
-
var
|
|
13374
|
+
var CreatePlanDimensionsLicenseRequestBody3$outboundSchema = z27.pipe(
|
|
13348
13375
|
z27.object({
|
|
13349
13376
|
match: z27.record(
|
|
13350
13377
|
z27.string(),
|
|
@@ -13353,7 +13380,9 @@ var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
|
|
|
13353
13380
|
priority: z27.optional(z27.int()),
|
|
13354
13381
|
tierBehavior: z27.literal("graduated"),
|
|
13355
13382
|
tiers: z27.array(
|
|
13356
|
-
z27.lazy(
|
|
13383
|
+
z27.lazy(
|
|
13384
|
+
() => CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema
|
|
13385
|
+
)
|
|
13357
13386
|
)
|
|
13358
13387
|
}),
|
|
13359
13388
|
z27.transform((v) => {
|
|
@@ -13362,12 +13391,12 @@ var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
|
|
|
13362
13391
|
});
|
|
13363
13392
|
})
|
|
13364
13393
|
);
|
|
13365
|
-
var
|
|
13366
|
-
z27.lazy(() =>
|
|
13367
|
-
z27.lazy(() =>
|
|
13394
|
+
var CreatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
|
|
13395
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
|
|
13396
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
|
|
13368
13397
|
]);
|
|
13369
13398
|
var CreatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13370
|
-
var
|
|
13399
|
+
var CreatePlanLicenseMultipliersRequestBody2$outboundSchema = z27.object({
|
|
13371
13400
|
match: z27.record(
|
|
13372
13401
|
z27.string(),
|
|
13373
13402
|
smartUnion([z27.string(), z27.number(), z27.boolean()])
|
|
@@ -13375,20 +13404,20 @@ var CreatePlanLicenseMultipliers2$outboundSchema = z27.object({
|
|
|
13375
13404
|
factor: z27.optional(z27.number()),
|
|
13376
13405
|
add: z27.optional(z27.number())
|
|
13377
13406
|
});
|
|
13378
|
-
var
|
|
13407
|
+
var CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z27.pipe(
|
|
13379
13408
|
z27.object({
|
|
13380
13409
|
meteredFeatureId: z27.string(),
|
|
13381
13410
|
billingUnits: z27.optional(z27.number()),
|
|
13382
13411
|
dimensions: z27.optional(z27.record(
|
|
13383
13412
|
z27.string(),
|
|
13384
13413
|
smartUnion([
|
|
13385
|
-
z27.lazy(() =>
|
|
13386
|
-
z27.lazy(() =>
|
|
13414
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
|
|
13415
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
|
|
13387
13416
|
])
|
|
13388
13417
|
)),
|
|
13389
13418
|
multipliers: z27.optional(z27.record(
|
|
13390
13419
|
z27.string(),
|
|
13391
|
-
z27.lazy(() =>
|
|
13420
|
+
z27.lazy(() => CreatePlanLicenseMultipliersRequestBody2$outboundSchema)
|
|
13392
13421
|
)),
|
|
13393
13422
|
creditCost: z27.number()
|
|
13394
13423
|
}),
|
|
@@ -13401,7 +13430,7 @@ var CreatePlanCreditSchemaLicense2$outboundSchema = z27.pipe(
|
|
|
13401
13430
|
})
|
|
13402
13431
|
);
|
|
13403
13432
|
var CreatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13404
|
-
var
|
|
13433
|
+
var CreatePlanDimensionsLicenseRequestBody2$outboundSchema = z27.pipe(
|
|
13405
13434
|
z27.object({
|
|
13406
13435
|
match: z27.record(
|
|
13407
13436
|
z27.string(),
|
|
@@ -13417,13 +13446,18 @@ var CreatePlanDimensionsLicense2$outboundSchema = z27.pipe(
|
|
|
13417
13446
|
})
|
|
13418
13447
|
);
|
|
13419
13448
|
var CreatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13420
|
-
var
|
|
13421
|
-
|
|
13422
|
-
|
|
13449
|
+
var CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z27.enum(
|
|
13450
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum1
|
|
13451
|
+
);
|
|
13452
|
+
var CreatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
|
|
13453
|
+
z27.number(),
|
|
13454
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
|
|
13455
|
+
]);
|
|
13456
|
+
var CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z27.pipe(
|
|
13423
13457
|
z27.object({
|
|
13424
13458
|
to: smartUnion([
|
|
13425
13459
|
z27.number(),
|
|
13426
|
-
|
|
13460
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
|
|
13427
13461
|
]),
|
|
13428
13462
|
creditCost: z27.number()
|
|
13429
13463
|
}),
|
|
@@ -13433,7 +13467,7 @@ var CreatePlanDimensionsLicenseTier1$outboundSchema = z27.pipe(
|
|
|
13433
13467
|
});
|
|
13434
13468
|
})
|
|
13435
13469
|
);
|
|
13436
|
-
var
|
|
13470
|
+
var CreatePlanDimensionsLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
13437
13471
|
z27.object({
|
|
13438
13472
|
match: z27.record(
|
|
13439
13473
|
z27.string(),
|
|
@@ -13442,7 +13476,9 @@ var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
|
|
|
13442
13476
|
priority: z27.optional(z27.int()),
|
|
13443
13477
|
tierBehavior: z27.literal("graduated"),
|
|
13444
13478
|
tiers: z27.array(
|
|
13445
|
-
z27.lazy(
|
|
13479
|
+
z27.lazy(
|
|
13480
|
+
() => CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema
|
|
13481
|
+
)
|
|
13446
13482
|
)
|
|
13447
13483
|
}),
|
|
13448
13484
|
z27.transform((v) => {
|
|
@@ -13451,12 +13487,12 @@ var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
|
|
|
13451
13487
|
});
|
|
13452
13488
|
})
|
|
13453
13489
|
);
|
|
13454
|
-
var
|
|
13455
|
-
z27.lazy(() =>
|
|
13456
|
-
z27.lazy(() =>
|
|
13490
|
+
var CreatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
|
|
13491
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
|
|
13492
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
|
|
13457
13493
|
]);
|
|
13458
13494
|
var CreatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13459
|
-
var
|
|
13495
|
+
var CreatePlanLicenseMultipliersRequestBody1$outboundSchema = z27.object({
|
|
13460
13496
|
match: z27.record(
|
|
13461
13497
|
z27.string(),
|
|
13462
13498
|
smartUnion([z27.string(), z27.number(), z27.boolean()])
|
|
@@ -13464,11 +13500,17 @@ var CreatePlanLicenseMultipliers1$outboundSchema = z27.object({
|
|
|
13464
13500
|
factor: z27.optional(z27.number()),
|
|
13465
13501
|
add: z27.optional(z27.number())
|
|
13466
13502
|
});
|
|
13467
|
-
var
|
|
13468
|
-
var
|
|
13469
|
-
|
|
13503
|
+
var CreatePlanToLicenseRequestBodyEnum$outboundSchema = z27.enum(CreatePlanToLicenseRequestBodyEnum);
|
|
13504
|
+
var CreatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
|
|
13505
|
+
z27.number(),
|
|
13506
|
+
CreatePlanToLicenseRequestBodyEnum$outboundSchema
|
|
13507
|
+
]);
|
|
13508
|
+
var CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z27.pipe(
|
|
13470
13509
|
z27.object({
|
|
13471
|
-
to: smartUnion([
|
|
13510
|
+
to: smartUnion([
|
|
13511
|
+
z27.number(),
|
|
13512
|
+
CreatePlanToLicenseRequestBodyEnum$outboundSchema
|
|
13513
|
+
]),
|
|
13472
13514
|
creditCost: z27.number()
|
|
13473
13515
|
}),
|
|
13474
13516
|
z27.transform((v) => {
|
|
@@ -13477,24 +13519,24 @@ var CreatePlanLicenseFeatureOverrideTier$outboundSchema = z27.pipe(
|
|
|
13477
13519
|
});
|
|
13478
13520
|
})
|
|
13479
13521
|
);
|
|
13480
|
-
var
|
|
13522
|
+
var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
13481
13523
|
z27.object({
|
|
13482
13524
|
meteredFeatureId: z27.string(),
|
|
13483
13525
|
billingUnits: z27.optional(z27.number()),
|
|
13484
13526
|
dimensions: z27.optional(z27.record(
|
|
13485
13527
|
z27.string(),
|
|
13486
13528
|
smartUnion([
|
|
13487
|
-
z27.lazy(() =>
|
|
13488
|
-
z27.lazy(() =>
|
|
13529
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
|
|
13530
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
|
|
13489
13531
|
])
|
|
13490
13532
|
)),
|
|
13491
13533
|
multipliers: z27.optional(z27.record(
|
|
13492
13534
|
z27.string(),
|
|
13493
|
-
z27.lazy(() =>
|
|
13535
|
+
z27.lazy(() => CreatePlanLicenseMultipliersRequestBody1$outboundSchema)
|
|
13494
13536
|
)),
|
|
13495
13537
|
tierBehavior: z27.literal("graduated"),
|
|
13496
13538
|
tiers: z27.array(z27.lazy(
|
|
13497
|
-
() =>
|
|
13539
|
+
() => CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
|
|
13498
13540
|
))
|
|
13499
13541
|
}),
|
|
13500
13542
|
z27.transform((v) => {
|
|
@@ -13505,14 +13547,14 @@ var CreatePlanCreditSchemaLicense1$outboundSchema = z27.pipe(
|
|
|
13505
13547
|
});
|
|
13506
13548
|
})
|
|
13507
13549
|
);
|
|
13508
|
-
var
|
|
13509
|
-
z27.lazy(() =>
|
|
13510
|
-
z27.lazy(() =>
|
|
13550
|
+
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
13551
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
13552
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
13511
13553
|
]);
|
|
13512
|
-
var
|
|
13554
|
+
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
13513
13555
|
markup: z27.number()
|
|
13514
13556
|
});
|
|
13515
|
-
var
|
|
13557
|
+
var CreatePlanLicenseModelMarkupsRequestBody$outboundSchema = z27.pipe(
|
|
13516
13558
|
z27.object({
|
|
13517
13559
|
markup: z27.optional(z27.number()),
|
|
13518
13560
|
inputCost: z27.optional(z27.number()),
|
|
@@ -13525,16 +13567,16 @@ var CreatePlanLicenseModelMarkups$outboundSchema = z27.pipe(
|
|
|
13525
13567
|
});
|
|
13526
13568
|
})
|
|
13527
13569
|
);
|
|
13528
|
-
var
|
|
13570
|
+
var CreatePlanLicenseMarkupsRequestBody$outboundSchema = z27.pipe(
|
|
13529
13571
|
z27.object({
|
|
13530
13572
|
defaultMarkup: z27.optional(z27.number()),
|
|
13531
13573
|
providerMarkups: z27.optional(z27.nullable(z27.record(
|
|
13532
13574
|
z27.string(),
|
|
13533
|
-
z27.lazy(() =>
|
|
13575
|
+
z27.lazy(() => CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
|
|
13534
13576
|
))),
|
|
13535
13577
|
modelMarkups: z27.optional(z27.nullable(z27.record(
|
|
13536
13578
|
z27.string(),
|
|
13537
|
-
z27.lazy(() =>
|
|
13579
|
+
z27.lazy(() => CreatePlanLicenseModelMarkupsRequestBody$outboundSchema)
|
|
13538
13580
|
)))
|
|
13539
13581
|
}),
|
|
13540
13582
|
z27.transform((v) => {
|
|
@@ -13545,16 +13587,16 @@ var CreatePlanLicenseMarkups$outboundSchema = z27.pipe(
|
|
|
13545
13587
|
});
|
|
13546
13588
|
})
|
|
13547
13589
|
);
|
|
13548
|
-
var
|
|
13590
|
+
var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
13549
13591
|
z27.object({
|
|
13550
13592
|
creditSchema: z27.optional(z27.array(smartUnion([
|
|
13551
|
-
z27.lazy(() =>
|
|
13593
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
13552
13594
|
z27.lazy(
|
|
13553
|
-
() =>
|
|
13595
|
+
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
13554
13596
|
)
|
|
13555
13597
|
]))),
|
|
13556
13598
|
markups: z27.optional(z27.lazy(
|
|
13557
|
-
() =>
|
|
13599
|
+
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
13558
13600
|
))
|
|
13559
13601
|
}),
|
|
13560
13602
|
z27.transform((v) => {
|
|
@@ -13563,29 +13605,33 @@ var CreatePlanLicenseFeatureOverride$outboundSchema = z27.pipe(
|
|
|
13563
13605
|
});
|
|
13564
13606
|
})
|
|
13565
13607
|
);
|
|
13566
|
-
var
|
|
13608
|
+
var CreatePlanLicensePlanItemRequestBody$outboundSchema = z27.pipe(
|
|
13567
13609
|
z27.object({
|
|
13568
|
-
thresholdBilling: z27.optional(
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
)
|
|
13572
|
-
),
|
|
13610
|
+
thresholdBilling: z27.optional(z27.nullable(z27.lazy(
|
|
13611
|
+
() => CreatePlanLicenseThresholdBillingRequestBody$outboundSchema
|
|
13612
|
+
))),
|
|
13573
13613
|
featureId: z27.string(),
|
|
13574
13614
|
included: z27.optional(z27.number()),
|
|
13575
13615
|
unlimited: z27.optional(z27.boolean()),
|
|
13576
13616
|
pooled: z27._default(z27.boolean(), false),
|
|
13577
|
-
reset: z27.optional(z27.lazy(
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
)
|
|
13617
|
+
reset: z27.optional(z27.lazy(
|
|
13618
|
+
() => CreatePlanLicenseResetRequestBody$outboundSchema
|
|
13619
|
+
)),
|
|
13620
|
+
price: z27.optional(z27.lazy(
|
|
13621
|
+
() => CreatePlanLicensePriceRequestBody$outboundSchema
|
|
13622
|
+
)),
|
|
13623
|
+
proration: z27.optional(z27.lazy(
|
|
13624
|
+
() => CreatePlanLicenseProrationRequestBody$outboundSchema
|
|
13625
|
+
)),
|
|
13626
|
+
rollover: z27.optional(z27.lazy(
|
|
13627
|
+
() => CreatePlanLicenseRolloverRequestBody$outboundSchema
|
|
13628
|
+
)),
|
|
13629
|
+
expiry: z27.optional(z27.lazy(
|
|
13630
|
+
() => CreatePlanLicenseExpiryRequestBody$outboundSchema
|
|
13631
|
+
)),
|
|
13632
|
+
featureOverride: z27.optional(z27.lazy(
|
|
13633
|
+
() => CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema
|
|
13634
|
+
))
|
|
13589
13635
|
}),
|
|
13590
13636
|
z27.transform((v) => {
|
|
13591
13637
|
return remap(v, {
|
|
@@ -13595,29 +13641,29 @@ var CreatePlanLicensePlanItem$outboundSchema = z27.pipe(
|
|
|
13595
13641
|
});
|
|
13596
13642
|
})
|
|
13597
13643
|
);
|
|
13598
|
-
var
|
|
13599
|
-
|
|
13644
|
+
var CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema = z27.enum(
|
|
13645
|
+
CreatePlanRemoveItemBillingMethodRequestBody
|
|
13600
13646
|
);
|
|
13601
|
-
var
|
|
13602
|
-
|
|
13647
|
+
var CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema = z27.enum(
|
|
13648
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum2
|
|
13603
13649
|
);
|
|
13604
|
-
var
|
|
13605
|
-
|
|
13650
|
+
var CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema = z27.enum(
|
|
13651
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum1
|
|
13606
13652
|
);
|
|
13607
|
-
var
|
|
13608
|
-
|
|
13609
|
-
|
|
13653
|
+
var CreatePlanIntervalRequestBodyUnion$outboundSchema = smartUnion([
|
|
13654
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
|
|
13655
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
|
|
13610
13656
|
]);
|
|
13611
|
-
var
|
|
13657
|
+
var CreatePlanPlanItemFilterRequestBody$outboundSchema = z27.pipe(
|
|
13612
13658
|
z27.object({
|
|
13613
13659
|
featureId: z27.optional(z27.string()),
|
|
13614
13660
|
billingMethod: z27.optional(
|
|
13615
|
-
|
|
13661
|
+
CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema
|
|
13616
13662
|
),
|
|
13617
13663
|
interval: z27.optional(
|
|
13618
13664
|
smartUnion([
|
|
13619
|
-
|
|
13620
|
-
|
|
13665
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
|
|
13666
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
|
|
13621
13667
|
])
|
|
13622
13668
|
),
|
|
13623
13669
|
intervalCount: z27.optional(z27.int()),
|
|
@@ -13631,16 +13677,18 @@ var CreatePlanLicensePlanItemFilter$outboundSchema = z27.pipe(
|
|
|
13631
13677
|
});
|
|
13632
13678
|
})
|
|
13633
13679
|
);
|
|
13634
|
-
var
|
|
13680
|
+
var CreatePlanCustomizeRequestBody$outboundSchema = z27.pipe(
|
|
13635
13681
|
z27.object({
|
|
13636
13682
|
price: z27.optional(
|
|
13637
|
-
z27.nullable(z27.lazy(() =>
|
|
13683
|
+
z27.nullable(z27.lazy(() => CreatePlanBasePriceRequestBody$outboundSchema))
|
|
13638
13684
|
),
|
|
13639
13685
|
addItems: z27.optional(
|
|
13640
|
-
z27.array(
|
|
13686
|
+
z27.array(
|
|
13687
|
+
z27.lazy(() => CreatePlanLicensePlanItemRequestBody$outboundSchema)
|
|
13688
|
+
)
|
|
13641
13689
|
),
|
|
13642
13690
|
removeItems: z27.optional(
|
|
13643
|
-
z27.array(z27.lazy(() =>
|
|
13691
|
+
z27.array(z27.lazy(() => CreatePlanPlanItemFilterRequestBody$outboundSchema))
|
|
13644
13692
|
)
|
|
13645
13693
|
}),
|
|
13646
13694
|
z27.transform((v) => {
|
|
@@ -13650,14 +13698,14 @@ var CreatePlanLicenseCustomize$outboundSchema = z27.pipe(
|
|
|
13650
13698
|
});
|
|
13651
13699
|
})
|
|
13652
13700
|
);
|
|
13653
|
-
var
|
|
13701
|
+
var CreatePlanLicenseRequest$outboundSchema = z27.pipe(
|
|
13654
13702
|
z27.object({
|
|
13655
13703
|
licensePlanId: z27.string(),
|
|
13656
13704
|
versionSlug: z27.optional(z27.string()),
|
|
13657
13705
|
included: z27.optional(z27.int()),
|
|
13658
13706
|
prepaidOnly: z27.optional(z27.boolean()),
|
|
13659
13707
|
customize: z27.optional(
|
|
13660
|
-
z27.nullable(z27.lazy(() =>
|
|
13708
|
+
z27.nullable(z27.lazy(() => CreatePlanCustomizeRequestBody$outboundSchema))
|
|
13661
13709
|
),
|
|
13662
13710
|
metadata: z27.optional(z27.record(z27.string(), z27.any()))
|
|
13663
13711
|
}),
|
|
@@ -13863,7 +13911,7 @@ var CreatePlanParams$outboundSchema = z27.pipe(
|
|
|
13863
13911
|
z27.array(z27.lazy(() => CreatePlanItemPlanItem$outboundSchema))
|
|
13864
13912
|
),
|
|
13865
13913
|
licenses: z27.optional(
|
|
13866
|
-
z27.array(z27.lazy(() =>
|
|
13914
|
+
z27.array(z27.lazy(() => CreatePlanLicenseRequest$outboundSchema))
|
|
13867
13915
|
),
|
|
13868
13916
|
freeTrial: z27.optional(z27.lazy(() => FreeTrialRequestBody$outboundSchema)),
|
|
13869
13917
|
config: z27.optional(
|
|
@@ -14134,17 +14182,17 @@ var CreatePlanVariantDetailsAddItemPriceInterval = {
|
|
|
14134
14182
|
SemiAnnual: "semi_annual",
|
|
14135
14183
|
Year: "year"
|
|
14136
14184
|
};
|
|
14137
|
-
var
|
|
14185
|
+
var CreatePlanVariantDetailsAddItemBillingMethod = {
|
|
14138
14186
|
Prepaid: "prepaid",
|
|
14139
14187
|
UsageBased: "usage_based"
|
|
14140
14188
|
};
|
|
14141
|
-
var
|
|
14189
|
+
var CreatePlanVariantDetailsOnIncrease = {
|
|
14142
14190
|
BillImmediately: "bill_immediately",
|
|
14143
14191
|
ProrateImmediately: "prorate_immediately",
|
|
14144
14192
|
ProrateNextCycle: "prorate_next_cycle",
|
|
14145
14193
|
BillNextCycle: "bill_next_cycle"
|
|
14146
14194
|
};
|
|
14147
|
-
var
|
|
14195
|
+
var CreatePlanVariantDetailsOnDecrease = {
|
|
14148
14196
|
Prorate: "prorate",
|
|
14149
14197
|
ProrateImmediately: "prorate_immediately",
|
|
14150
14198
|
ProrateNextCycle: "prorate_next_cycle",
|
|
@@ -14170,7 +14218,7 @@ var CreatePlanDimensionsToVariantDetailsEnum1 = {
|
|
|
14170
14218
|
var CreatePlanToVariantDetailsEnum = {
|
|
14171
14219
|
Inf: "inf"
|
|
14172
14220
|
};
|
|
14173
|
-
var
|
|
14221
|
+
var CreatePlanVariantDetailsRemoveItemBillingMethod = {
|
|
14174
14222
|
Prepaid: "prepaid",
|
|
14175
14223
|
UsageBased: "usage_based"
|
|
14176
14224
|
};
|
|
@@ -14895,7 +14943,7 @@ var CreatePlanVariantDetailsAdditionalCurrency$inboundSchema = z28.object(
|
|
|
14895
14943
|
amount: number2()
|
|
14896
14944
|
}
|
|
14897
14945
|
);
|
|
14898
|
-
var
|
|
14946
|
+
var CreatePlanVariantDetailsBasePrice$inboundSchema = z28.pipe(
|
|
14899
14947
|
z28.object({
|
|
14900
14948
|
amount: number2(),
|
|
14901
14949
|
interval: CreatePlanPriceVariantDetailsInterval$inboundSchema,
|
|
@@ -14926,7 +14974,7 @@ var CreatePlanVariantDetailsReset$inboundSchema = z28.pipe(
|
|
|
14926
14974
|
});
|
|
14927
14975
|
})
|
|
14928
14976
|
);
|
|
14929
|
-
var
|
|
14977
|
+
var CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z28.object({
|
|
14930
14978
|
currency: string5(),
|
|
14931
14979
|
amount: number2()
|
|
14932
14980
|
});
|
|
@@ -14961,12 +15009,12 @@ var CreatePlanVariantDetailsPriceTier$inboundSchema = z28.pipe(
|
|
|
14961
15009
|
);
|
|
14962
15010
|
var CreatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(CreatePlanVariantDetailsTierBehavior);
|
|
14963
15011
|
var CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemPriceInterval);
|
|
14964
|
-
var
|
|
15012
|
+
var CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemBillingMethod);
|
|
14965
15013
|
var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
|
|
14966
15014
|
z28.object({
|
|
14967
15015
|
amount: optional3(number2()),
|
|
14968
15016
|
additional_currencies: optional3(z28.array(z28.lazy(
|
|
14969
|
-
() =>
|
|
15017
|
+
() => CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
|
|
14970
15018
|
))),
|
|
14971
15019
|
tiers: optional3(z28.array(z28.lazy(
|
|
14972
15020
|
() => CreatePlanVariantDetailsPriceTier$inboundSchema
|
|
@@ -14977,7 +15025,7 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
|
|
|
14977
15025
|
interval: CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
|
|
14978
15026
|
interval_count: z28._default(number2(), 1),
|
|
14979
15027
|
billing_units: z28._default(number2(), 1),
|
|
14980
|
-
billing_method:
|
|
15028
|
+
billing_method: CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
|
|
14981
15029
|
max_purchase: z28.optional(z28.nullable(number2()))
|
|
14982
15030
|
}),
|
|
14983
15031
|
z28.transform((v) => {
|
|
@@ -14991,12 +15039,12 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
|
|
|
14991
15039
|
});
|
|
14992
15040
|
})
|
|
14993
15041
|
);
|
|
14994
|
-
var
|
|
14995
|
-
var
|
|
14996
|
-
var
|
|
15042
|
+
var CreatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnIncrease);
|
|
15043
|
+
var CreatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnDecrease);
|
|
15044
|
+
var CreatePlanVariantDetailsProration$inboundSchema = z28.pipe(
|
|
14997
15045
|
z28.object({
|
|
14998
|
-
on_increase:
|
|
14999
|
-
on_decrease:
|
|
15046
|
+
on_increase: CreatePlanVariantDetailsOnIncrease$inboundSchema,
|
|
15047
|
+
on_decrease: CreatePlanVariantDetailsOnDecrease$inboundSchema
|
|
15000
15048
|
}),
|
|
15001
15049
|
z28.transform((v) => {
|
|
15002
15050
|
return remap(v, {
|
|
@@ -15271,7 +15319,7 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
|
|
|
15271
15319
|
});
|
|
15272
15320
|
})
|
|
15273
15321
|
);
|
|
15274
|
-
var
|
|
15322
|
+
var CreatePlanVariantDetailsPlanItem$inboundSchema = z28.pipe(
|
|
15275
15323
|
z28.object({
|
|
15276
15324
|
threshold_billing: z28.optional(z28.nullable(z28.lazy(
|
|
15277
15325
|
() => CreatePlanVariantDetailsThresholdBilling$inboundSchema
|
|
@@ -15287,7 +15335,7 @@ var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
|
|
|
15287
15335
|
() => CreatePlanVariantDetailsPrice$inboundSchema
|
|
15288
15336
|
)),
|
|
15289
15337
|
proration: optional3(z28.lazy(
|
|
15290
|
-
() =>
|
|
15338
|
+
() => CreatePlanVariantDetailsProration$inboundSchema
|
|
15291
15339
|
)),
|
|
15292
15340
|
rollover: optional3(z28.lazy(
|
|
15293
15341
|
() => CreatePlanVariantDetailsRollover$inboundSchema
|
|
@@ -15307,18 +15355,18 @@ var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
|
|
|
15307
15355
|
});
|
|
15308
15356
|
})
|
|
15309
15357
|
);
|
|
15310
|
-
var
|
|
15358
|
+
var CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsRemoveItemBillingMethod);
|
|
15311
15359
|
var CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum2);
|
|
15312
15360
|
var CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum1);
|
|
15313
15361
|
var CreatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
|
|
15314
15362
|
CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
|
|
15315
15363
|
CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
|
|
15316
15364
|
]);
|
|
15317
|
-
var
|
|
15365
|
+
var CreatePlanVariantDetailsPlanItemFilter$inboundSchema = z28.pipe(
|
|
15318
15366
|
z28.object({
|
|
15319
15367
|
feature_id: optional3(string5()),
|
|
15320
15368
|
billing_method: optional3(
|
|
15321
|
-
|
|
15369
|
+
CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
|
|
15322
15370
|
),
|
|
15323
15371
|
interval: optional3(
|
|
15324
15372
|
smartUnion([
|
|
@@ -15641,6 +15689,96 @@ var CreatePlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
15641
15689
|
SemiAnnual: "semi_annual",
|
|
15642
15690
|
Year: "year"
|
|
15643
15691
|
};
|
|
15692
|
+
var CreatePlanPriceLicenseIntervalResponse = {
|
|
15693
|
+
OneOff: "one_off",
|
|
15694
|
+
Week: "week",
|
|
15695
|
+
Month: "month",
|
|
15696
|
+
Quarter: "quarter",
|
|
15697
|
+
SemiAnnual: "semi_annual",
|
|
15698
|
+
Year: "year"
|
|
15699
|
+
};
|
|
15700
|
+
var CreatePlanLicenseResetIntervalResponse = {
|
|
15701
|
+
OneOff: "one_off",
|
|
15702
|
+
Minute: "minute",
|
|
15703
|
+
Hour: "hour",
|
|
15704
|
+
Day: "day",
|
|
15705
|
+
Week: "week",
|
|
15706
|
+
Month: "month",
|
|
15707
|
+
Quarter: "quarter",
|
|
15708
|
+
SemiAnnual: "semi_annual",
|
|
15709
|
+
Year: "year"
|
|
15710
|
+
};
|
|
15711
|
+
var CreatePlanLicenseTierBehaviorResponse = {
|
|
15712
|
+
Graduated: "graduated",
|
|
15713
|
+
Volume: "volume"
|
|
15714
|
+
};
|
|
15715
|
+
var CreatePlanLicenseAddItemPriceIntervalResponse = {
|
|
15716
|
+
OneOff: "one_off",
|
|
15717
|
+
Week: "week",
|
|
15718
|
+
Month: "month",
|
|
15719
|
+
Quarter: "quarter",
|
|
15720
|
+
SemiAnnual: "semi_annual",
|
|
15721
|
+
Year: "year"
|
|
15722
|
+
};
|
|
15723
|
+
var CreatePlanLicenseAddItemBillingMethodResponse = {
|
|
15724
|
+
Prepaid: "prepaid",
|
|
15725
|
+
UsageBased: "usage_based"
|
|
15726
|
+
};
|
|
15727
|
+
var CreatePlanLicenseOnIncreaseResponse = {
|
|
15728
|
+
BillImmediately: "bill_immediately",
|
|
15729
|
+
ProrateImmediately: "prorate_immediately",
|
|
15730
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
15731
|
+
BillNextCycle: "bill_next_cycle"
|
|
15732
|
+
};
|
|
15733
|
+
var CreatePlanLicenseOnDecreaseResponse = {
|
|
15734
|
+
Prorate: "prorate",
|
|
15735
|
+
ProrateImmediately: "prorate_immediately",
|
|
15736
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
15737
|
+
None: "none",
|
|
15738
|
+
NoProrations: "no_prorations"
|
|
15739
|
+
};
|
|
15740
|
+
var CreatePlanLicenseExpiryDurationTypeResponse = {
|
|
15741
|
+
Month: "month",
|
|
15742
|
+
Forever: "forever"
|
|
15743
|
+
};
|
|
15744
|
+
var CreatePlanLicenseDurationResponse = {
|
|
15745
|
+
Day: "day",
|
|
15746
|
+
Week: "week",
|
|
15747
|
+
Month: "month",
|
|
15748
|
+
Year: "year"
|
|
15749
|
+
};
|
|
15750
|
+
var CreatePlanDimensionsToLicenseResponseEnum2 = {
|
|
15751
|
+
Inf: "inf"
|
|
15752
|
+
};
|
|
15753
|
+
var CreatePlanDimensionsToLicenseResponseEnum1 = {
|
|
15754
|
+
Inf: "inf"
|
|
15755
|
+
};
|
|
15756
|
+
var CreatePlanToLicenseResponseEnum = {
|
|
15757
|
+
Inf: "inf"
|
|
15758
|
+
};
|
|
15759
|
+
var CreatePlanLicenseRemoveItemBillingMethodResponse = {
|
|
15760
|
+
Prepaid: "prepaid",
|
|
15761
|
+
UsageBased: "usage_based"
|
|
15762
|
+
};
|
|
15763
|
+
var CreatePlanIntervalLicenseRemoveItemResponseEnum2 = {
|
|
15764
|
+
OneOff: "one_off",
|
|
15765
|
+
Minute: "minute",
|
|
15766
|
+
Hour: "hour",
|
|
15767
|
+
Day: "day",
|
|
15768
|
+
Week: "week",
|
|
15769
|
+
Month: "month",
|
|
15770
|
+
Quarter: "quarter",
|
|
15771
|
+
SemiAnnual: "semi_annual",
|
|
15772
|
+
Year: "year"
|
|
15773
|
+
};
|
|
15774
|
+
var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
15775
|
+
OneOff: "one_off",
|
|
15776
|
+
Week: "week",
|
|
15777
|
+
Month: "month",
|
|
15778
|
+
Quarter: "quarter",
|
|
15779
|
+
SemiAnnual: "semi_annual",
|
|
15780
|
+
Year: "year"
|
|
15781
|
+
};
|
|
15644
15782
|
var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
|
|
15645
15783
|
z29.object({
|
|
15646
15784
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -16029,14 +16167,16 @@ var CreatePlanRemoveLicense$inboundSchema = z29.pipe(
|
|
|
16029
16167
|
});
|
|
16030
16168
|
})
|
|
16031
16169
|
);
|
|
16032
|
-
var
|
|
16170
|
+
var CreatePlanVariantDetailsCustomize$inboundSchema = z29.pipe(
|
|
16033
16171
|
z29.object({
|
|
16034
|
-
price: z29.optional(
|
|
16172
|
+
price: z29.optional(
|
|
16173
|
+
z29.nullable(CreatePlanVariantDetailsBasePrice$inboundSchema)
|
|
16174
|
+
),
|
|
16035
16175
|
add_items: optional3(
|
|
16036
|
-
z29.array(
|
|
16176
|
+
z29.array(CreatePlanVariantDetailsPlanItem$inboundSchema)
|
|
16037
16177
|
),
|
|
16038
16178
|
remove_items: optional3(
|
|
16039
|
-
z29.array(
|
|
16179
|
+
z29.array(CreatePlanVariantDetailsPlanItemFilter$inboundSchema)
|
|
16040
16180
|
),
|
|
16041
16181
|
free_trial: z29.optional(z29.nullable(CreatePlanFreeTrialParams$inboundSchema)),
|
|
16042
16182
|
billing_controls: optional3(
|
|
@@ -16064,7 +16204,7 @@ var CreatePlanVariantDetails$inboundSchema = z29.pipe(
|
|
|
16064
16204
|
z29.object({
|
|
16065
16205
|
base_plan_id: string5(),
|
|
16066
16206
|
customize: optional3(
|
|
16067
|
-
z29.lazy(() =>
|
|
16207
|
+
z29.lazy(() => CreatePlanVariantDetailsCustomize$inboundSchema)
|
|
16068
16208
|
)
|
|
16069
16209
|
}),
|
|
16070
16210
|
z29.transform((v) => {
|
|
@@ -16073,6 +16213,493 @@ var CreatePlanVariantDetails$inboundSchema = z29.pipe(
|
|
|
16073
16213
|
});
|
|
16074
16214
|
})
|
|
16075
16215
|
);
|
|
16216
|
+
var CreatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(CreatePlanPriceLicenseIntervalResponse);
|
|
16217
|
+
var CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z29.object({
|
|
16218
|
+
currency: string5(),
|
|
16219
|
+
amount: number2()
|
|
16220
|
+
});
|
|
16221
|
+
var CreatePlanLicenseBasePriceResponse$inboundSchema = z29.pipe(
|
|
16222
|
+
z29.object({
|
|
16223
|
+
amount: number2(),
|
|
16224
|
+
interval: CreatePlanPriceLicenseIntervalResponse$inboundSchema,
|
|
16225
|
+
interval_count: z29._default(number2(), 1),
|
|
16226
|
+
additional_currencies: optional3(z29.array(z29.lazy(
|
|
16227
|
+
() => CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema
|
|
16228
|
+
)))
|
|
16229
|
+
}),
|
|
16230
|
+
z29.transform((v) => {
|
|
16231
|
+
return remap(v, {
|
|
16232
|
+
"interval_count": "intervalCount",
|
|
16233
|
+
"additional_currencies": "additionalCurrencies"
|
|
16234
|
+
});
|
|
16235
|
+
})
|
|
16236
|
+
);
|
|
16237
|
+
var CreatePlanLicenseThresholdBillingResponse$inboundSchema = z29.object({
|
|
16238
|
+
threshold: number2()
|
|
16239
|
+
});
|
|
16240
|
+
var CreatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseResetIntervalResponse);
|
|
16241
|
+
var CreatePlanLicenseResetResponse$inboundSchema = z29.pipe(
|
|
16242
|
+
z29.object({
|
|
16243
|
+
interval: CreatePlanLicenseResetIntervalResponse$inboundSchema,
|
|
16244
|
+
interval_count: z29._default(number2(), 1)
|
|
16245
|
+
}),
|
|
16246
|
+
z29.transform((v) => {
|
|
16247
|
+
return remap(v, {
|
|
16248
|
+
"interval_count": "intervalCount"
|
|
16249
|
+
});
|
|
16250
|
+
})
|
|
16251
|
+
);
|
|
16252
|
+
var CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z29.object({
|
|
16253
|
+
currency: string5(),
|
|
16254
|
+
amount: number2()
|
|
16255
|
+
});
|
|
16256
|
+
var CreatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
16257
|
+
var CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z29.pipe(
|
|
16258
|
+
z29.object({
|
|
16259
|
+
currency: string5(),
|
|
16260
|
+
amount: optional3(number2()),
|
|
16261
|
+
flat_amount: optional3(number2())
|
|
16262
|
+
}),
|
|
16263
|
+
z29.transform((v) => {
|
|
16264
|
+
return remap(v, {
|
|
16265
|
+
"flat_amount": "flatAmount"
|
|
16266
|
+
});
|
|
16267
|
+
})
|
|
16268
|
+
);
|
|
16269
|
+
var CreatePlanLicensePriceTierResponse$inboundSchema = z29.pipe(
|
|
16270
|
+
z29.object({
|
|
16271
|
+
to: smartUnion([number2(), string5()]),
|
|
16272
|
+
amount: number2(),
|
|
16273
|
+
flat_amount: optional3(number2()),
|
|
16274
|
+
additional_currencies: optional3(z29.array(z29.lazy(
|
|
16275
|
+
() => CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
|
|
16276
|
+
)))
|
|
16277
|
+
}),
|
|
16278
|
+
z29.transform((v) => {
|
|
16279
|
+
return remap(v, {
|
|
16280
|
+
"flat_amount": "flatAmount",
|
|
16281
|
+
"additional_currencies": "additionalCurrencies"
|
|
16282
|
+
});
|
|
16283
|
+
})
|
|
16284
|
+
);
|
|
16285
|
+
var CreatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(CreatePlanLicenseTierBehaviorResponse);
|
|
16286
|
+
var CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemPriceIntervalResponse);
|
|
16287
|
+
var CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemBillingMethodResponse);
|
|
16288
|
+
var CreatePlanLicensePriceResponse$inboundSchema = z29.pipe(
|
|
16289
|
+
z29.object({
|
|
16290
|
+
amount: optional3(number2()),
|
|
16291
|
+
additional_currencies: optional3(z29.array(z29.lazy(
|
|
16292
|
+
() => CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
|
|
16293
|
+
))),
|
|
16294
|
+
tiers: optional3(z29.array(z29.lazy(
|
|
16295
|
+
() => CreatePlanLicensePriceTierResponse$inboundSchema
|
|
16296
|
+
))),
|
|
16297
|
+
tier_behavior: optional3(
|
|
16298
|
+
CreatePlanLicenseTierBehaviorResponse$inboundSchema
|
|
16299
|
+
),
|
|
16300
|
+
interval: CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
|
|
16301
|
+
interval_count: z29._default(number2(), 1),
|
|
16302
|
+
billing_units: z29._default(number2(), 1),
|
|
16303
|
+
billing_method: CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
|
|
16304
|
+
max_purchase: z29.optional(z29.nullable(number2()))
|
|
16305
|
+
}),
|
|
16306
|
+
z29.transform((v) => {
|
|
16307
|
+
return remap(v, {
|
|
16308
|
+
"additional_currencies": "additionalCurrencies",
|
|
16309
|
+
"tier_behavior": "tierBehavior",
|
|
16310
|
+
"interval_count": "intervalCount",
|
|
16311
|
+
"billing_units": "billingUnits",
|
|
16312
|
+
"billing_method": "billingMethod",
|
|
16313
|
+
"max_purchase": "maxPurchase"
|
|
16314
|
+
});
|
|
16315
|
+
})
|
|
16316
|
+
);
|
|
16317
|
+
var CreatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnIncreaseResponse);
|
|
16318
|
+
var CreatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnDecreaseResponse);
|
|
16319
|
+
var CreatePlanLicenseProrationResponse$inboundSchema = z29.pipe(
|
|
16320
|
+
z29.object({
|
|
16321
|
+
on_increase: CreatePlanLicenseOnIncreaseResponse$inboundSchema,
|
|
16322
|
+
on_decrease: CreatePlanLicenseOnDecreaseResponse$inboundSchema
|
|
16323
|
+
}),
|
|
16324
|
+
z29.transform((v) => {
|
|
16325
|
+
return remap(v, {
|
|
16326
|
+
"on_increase": "onIncrease",
|
|
16327
|
+
"on_decrease": "onDecrease"
|
|
16328
|
+
});
|
|
16329
|
+
})
|
|
16330
|
+
);
|
|
16331
|
+
var CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePlanLicenseExpiryDurationTypeResponse);
|
|
16332
|
+
var CreatePlanLicenseRolloverResponse$inboundSchema = z29.pipe(
|
|
16333
|
+
z29.object({
|
|
16334
|
+
max: optional3(number2()),
|
|
16335
|
+
max_percentage: optional3(number2()),
|
|
16336
|
+
expiry_duration_type: CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
|
|
16337
|
+
expiry_duration_length: optional3(number2())
|
|
16338
|
+
}),
|
|
16339
|
+
z29.transform((v) => {
|
|
16340
|
+
return remap(v, {
|
|
16341
|
+
"max_percentage": "maxPercentage",
|
|
16342
|
+
"expiry_duration_type": "expiryDurationType",
|
|
16343
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
16344
|
+
});
|
|
16345
|
+
})
|
|
16346
|
+
);
|
|
16347
|
+
var CreatePlanLicenseDurationResponse$inboundSchema = inboundSchema(CreatePlanLicenseDurationResponse);
|
|
16348
|
+
var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
|
|
16349
|
+
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
16350
|
+
length: number2()
|
|
16351
|
+
});
|
|
16352
|
+
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
|
|
16353
|
+
z29.object({
|
|
16354
|
+
match: z29.record(z29.string(), string5()),
|
|
16355
|
+
priority: optional3(number2()),
|
|
16356
|
+
credit_cost: number2()
|
|
16357
|
+
}),
|
|
16358
|
+
z29.transform((v) => {
|
|
16359
|
+
return remap(v, {
|
|
16360
|
+
"credit_cost": "creditCost"
|
|
16361
|
+
});
|
|
16362
|
+
})
|
|
16363
|
+
);
|
|
16364
|
+
var CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z29.enum(
|
|
16365
|
+
CreatePlanDimensionsToLicenseResponseEnum2
|
|
16366
|
+
);
|
|
16367
|
+
var CreatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
|
|
16368
|
+
number2(),
|
|
16369
|
+
CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
|
|
16370
|
+
]);
|
|
16371
|
+
var CreatePlanDimensionsLicenseTierResponse2$inboundSchema = z29.pipe(
|
|
16372
|
+
z29.object({
|
|
16373
|
+
to: smartUnion([
|
|
16374
|
+
number2(),
|
|
16375
|
+
CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
|
|
16376
|
+
]),
|
|
16377
|
+
credit_cost: number2()
|
|
16378
|
+
}),
|
|
16379
|
+
z29.transform((v) => {
|
|
16380
|
+
return remap(v, {
|
|
16381
|
+
"credit_cost": "creditCost"
|
|
16382
|
+
});
|
|
16383
|
+
})
|
|
16384
|
+
);
|
|
16385
|
+
var CreatePlanDimensionsLicenseResponse3$inboundSchema = z29.pipe(
|
|
16386
|
+
z29.object({
|
|
16387
|
+
match: z29.record(z29.string(), string5()),
|
|
16388
|
+
priority: optional3(number2()),
|
|
16389
|
+
tier_behavior: literal3("graduated"),
|
|
16390
|
+
tiers: z29.array(
|
|
16391
|
+
z29.lazy(() => CreatePlanDimensionsLicenseTierResponse2$inboundSchema)
|
|
16392
|
+
)
|
|
16393
|
+
}),
|
|
16394
|
+
z29.transform((v) => {
|
|
16395
|
+
return remap(v, {
|
|
16396
|
+
"tier_behavior": "tierBehavior"
|
|
16397
|
+
});
|
|
16398
|
+
})
|
|
16399
|
+
);
|
|
16400
|
+
var CreatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
|
|
16401
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
|
|
16402
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
|
|
16403
|
+
]);
|
|
16404
|
+
var CreatePlanLicenseMultipliersResponse2$inboundSchema = z29.object({
|
|
16405
|
+
match: z29.record(z29.string(), string5()),
|
|
16406
|
+
factor: optional3(number2()),
|
|
16407
|
+
add: optional3(number2())
|
|
16408
|
+
});
|
|
16409
|
+
var CreatePlanCreditSchemaLicenseResponse2$inboundSchema = z29.pipe(
|
|
16410
|
+
z29.object({
|
|
16411
|
+
metered_feature_id: string5(),
|
|
16412
|
+
billing_units: optional3(number2()),
|
|
16413
|
+
dimensions: optional3(z29.record(
|
|
16414
|
+
z29.string(),
|
|
16415
|
+
smartUnion([
|
|
16416
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
|
|
16417
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
|
|
16418
|
+
])
|
|
16419
|
+
)),
|
|
16420
|
+
multipliers: optional3(z29.record(
|
|
16421
|
+
z29.string(),
|
|
16422
|
+
z29.lazy(() => CreatePlanLicenseMultipliersResponse2$inboundSchema)
|
|
16423
|
+
)),
|
|
16424
|
+
credit_cost: number2()
|
|
16425
|
+
}),
|
|
16426
|
+
z29.transform((v) => {
|
|
16427
|
+
return remap(v, {
|
|
16428
|
+
"metered_feature_id": "meteredFeatureId",
|
|
16429
|
+
"billing_units": "billingUnits",
|
|
16430
|
+
"credit_cost": "creditCost"
|
|
16431
|
+
});
|
|
16432
|
+
})
|
|
16433
|
+
);
|
|
16434
|
+
var CreatePlanDimensionsLicenseResponse2$inboundSchema = z29.pipe(
|
|
16435
|
+
z29.object({
|
|
16436
|
+
match: z29.record(z29.string(), string5()),
|
|
16437
|
+
priority: optional3(number2()),
|
|
16438
|
+
credit_cost: number2()
|
|
16439
|
+
}),
|
|
16440
|
+
z29.transform((v) => {
|
|
16441
|
+
return remap(v, {
|
|
16442
|
+
"credit_cost": "creditCost"
|
|
16443
|
+
});
|
|
16444
|
+
})
|
|
16445
|
+
);
|
|
16446
|
+
var CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z29.enum(
|
|
16447
|
+
CreatePlanDimensionsToLicenseResponseEnum1
|
|
16448
|
+
);
|
|
16449
|
+
var CreatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
|
|
16450
|
+
number2(),
|
|
16451
|
+
CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
|
|
16452
|
+
]);
|
|
16453
|
+
var CreatePlanDimensionsLicenseTierResponse1$inboundSchema = z29.pipe(
|
|
16454
|
+
z29.object({
|
|
16455
|
+
to: smartUnion([
|
|
16456
|
+
number2(),
|
|
16457
|
+
CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
|
|
16458
|
+
]),
|
|
16459
|
+
credit_cost: number2()
|
|
16460
|
+
}),
|
|
16461
|
+
z29.transform((v) => {
|
|
16462
|
+
return remap(v, {
|
|
16463
|
+
"credit_cost": "creditCost"
|
|
16464
|
+
});
|
|
16465
|
+
})
|
|
16466
|
+
);
|
|
16467
|
+
var CreatePlanDimensionsLicenseResponse1$inboundSchema = z29.pipe(
|
|
16468
|
+
z29.object({
|
|
16469
|
+
match: z29.record(z29.string(), string5()),
|
|
16470
|
+
priority: optional3(number2()),
|
|
16471
|
+
tier_behavior: literal3("graduated"),
|
|
16472
|
+
tiers: z29.array(
|
|
16473
|
+
z29.lazy(() => CreatePlanDimensionsLicenseTierResponse1$inboundSchema)
|
|
16474
|
+
)
|
|
16475
|
+
}),
|
|
16476
|
+
z29.transform((v) => {
|
|
16477
|
+
return remap(v, {
|
|
16478
|
+
"tier_behavior": "tierBehavior"
|
|
16479
|
+
});
|
|
16480
|
+
})
|
|
16481
|
+
);
|
|
16482
|
+
var CreatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
|
|
16483
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
|
|
16484
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
|
|
16485
|
+
]);
|
|
16486
|
+
var CreatePlanLicenseMultipliersResponse1$inboundSchema = z29.object({
|
|
16487
|
+
match: z29.record(z29.string(), string5()),
|
|
16488
|
+
factor: optional3(number2()),
|
|
16489
|
+
add: optional3(number2())
|
|
16490
|
+
});
|
|
16491
|
+
var CreatePlanToLicenseResponseEnum$inboundSchema = z29.enum(CreatePlanToLicenseResponseEnum);
|
|
16492
|
+
var CreatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), CreatePlanToLicenseResponseEnum$inboundSchema]);
|
|
16493
|
+
var CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z29.pipe(
|
|
16494
|
+
z29.object({
|
|
16495
|
+
to: smartUnion([
|
|
16496
|
+
number2(),
|
|
16497
|
+
CreatePlanToLicenseResponseEnum$inboundSchema
|
|
16498
|
+
]),
|
|
16499
|
+
credit_cost: number2()
|
|
16500
|
+
}),
|
|
16501
|
+
z29.transform((v) => {
|
|
16502
|
+
return remap(v, {
|
|
16503
|
+
"credit_cost": "creditCost"
|
|
16504
|
+
});
|
|
16505
|
+
})
|
|
16506
|
+
);
|
|
16507
|
+
var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
|
|
16508
|
+
z29.object({
|
|
16509
|
+
metered_feature_id: string5(),
|
|
16510
|
+
billing_units: optional3(number2()),
|
|
16511
|
+
dimensions: optional3(z29.record(
|
|
16512
|
+
z29.string(),
|
|
16513
|
+
smartUnion([
|
|
16514
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
|
|
16515
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
|
|
16516
|
+
])
|
|
16517
|
+
)),
|
|
16518
|
+
multipliers: optional3(z29.record(
|
|
16519
|
+
z29.string(),
|
|
16520
|
+
z29.lazy(() => CreatePlanLicenseMultipliersResponse1$inboundSchema)
|
|
16521
|
+
)),
|
|
16522
|
+
tier_behavior: literal3("graduated"),
|
|
16523
|
+
tiers: z29.array(z29.lazy(
|
|
16524
|
+
() => CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema
|
|
16525
|
+
))
|
|
16526
|
+
}),
|
|
16527
|
+
z29.transform((v) => {
|
|
16528
|
+
return remap(v, {
|
|
16529
|
+
"metered_feature_id": "meteredFeatureId",
|
|
16530
|
+
"billing_units": "billingUnits",
|
|
16531
|
+
"tier_behavior": "tierBehavior"
|
|
16532
|
+
});
|
|
16533
|
+
})
|
|
16534
|
+
);
|
|
16535
|
+
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
16536
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
16537
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
16538
|
+
]);
|
|
16539
|
+
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
|
|
16540
|
+
markup: number2()
|
|
16541
|
+
});
|
|
16542
|
+
var CreatePlanLicenseModelMarkupsResponse$inboundSchema = z29.pipe(
|
|
16543
|
+
z29.object({
|
|
16544
|
+
markup: optional3(number2()),
|
|
16545
|
+
input_cost: optional3(number2()),
|
|
16546
|
+
output_cost: optional3(number2())
|
|
16547
|
+
}),
|
|
16548
|
+
z29.transform((v) => {
|
|
16549
|
+
return remap(v, {
|
|
16550
|
+
"input_cost": "inputCost",
|
|
16551
|
+
"output_cost": "outputCost"
|
|
16552
|
+
});
|
|
16553
|
+
})
|
|
16554
|
+
);
|
|
16555
|
+
var CreatePlanLicenseMarkupsResponse$inboundSchema = z29.pipe(
|
|
16556
|
+
z29.object({
|
|
16557
|
+
default_markup: optional3(number2()),
|
|
16558
|
+
provider_markups: z29.optional(z29.nullable(z29.record(
|
|
16559
|
+
z29.string(),
|
|
16560
|
+
z29.lazy(() => CreatePlanLicenseProviderMarkupsResponse$inboundSchema)
|
|
16561
|
+
))),
|
|
16562
|
+
model_markups: z29.optional(z29.nullable(z29.record(
|
|
16563
|
+
z29.string(),
|
|
16564
|
+
z29.lazy(() => CreatePlanLicenseModelMarkupsResponse$inboundSchema)
|
|
16565
|
+
)))
|
|
16566
|
+
}),
|
|
16567
|
+
z29.transform((v) => {
|
|
16568
|
+
return remap(v, {
|
|
16569
|
+
"default_markup": "defaultMarkup",
|
|
16570
|
+
"provider_markups": "providerMarkups",
|
|
16571
|
+
"model_markups": "modelMarkups"
|
|
16572
|
+
});
|
|
16573
|
+
})
|
|
16574
|
+
);
|
|
16575
|
+
var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
|
|
16576
|
+
z29.object({
|
|
16577
|
+
credit_schema: optional3(z29.array(smartUnion([
|
|
16578
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
16579
|
+
z29.lazy(
|
|
16580
|
+
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
16581
|
+
)
|
|
16582
|
+
]))),
|
|
16583
|
+
markups: optional3(z29.lazy(
|
|
16584
|
+
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
16585
|
+
))
|
|
16586
|
+
}),
|
|
16587
|
+
z29.transform((v) => {
|
|
16588
|
+
return remap(v, {
|
|
16589
|
+
"credit_schema": "creditSchema"
|
|
16590
|
+
});
|
|
16591
|
+
})
|
|
16592
|
+
);
|
|
16593
|
+
var CreatePlanLicensePlanItemResponse$inboundSchema = z29.pipe(
|
|
16594
|
+
z29.object({
|
|
16595
|
+
threshold_billing: z29.optional(z29.nullable(z29.lazy(
|
|
16596
|
+
() => CreatePlanLicenseThresholdBillingResponse$inboundSchema
|
|
16597
|
+
))),
|
|
16598
|
+
feature_id: string5(),
|
|
16599
|
+
included: optional3(number2()),
|
|
16600
|
+
unlimited: optional3(boolean2()),
|
|
16601
|
+
pooled: z29._default(boolean2(), false),
|
|
16602
|
+
reset: optional3(z29.lazy(
|
|
16603
|
+
() => CreatePlanLicenseResetResponse$inboundSchema
|
|
16604
|
+
)),
|
|
16605
|
+
price: optional3(z29.lazy(
|
|
16606
|
+
() => CreatePlanLicensePriceResponse$inboundSchema
|
|
16607
|
+
)),
|
|
16608
|
+
proration: optional3(z29.lazy(
|
|
16609
|
+
() => CreatePlanLicenseProrationResponse$inboundSchema
|
|
16610
|
+
)),
|
|
16611
|
+
rollover: optional3(z29.lazy(
|
|
16612
|
+
() => CreatePlanLicenseRolloverResponse$inboundSchema
|
|
16613
|
+
)),
|
|
16614
|
+
expiry: optional3(z29.lazy(
|
|
16615
|
+
() => CreatePlanLicenseExpiryResponse$inboundSchema
|
|
16616
|
+
)),
|
|
16617
|
+
feature_override: optional3(z29.lazy(
|
|
16618
|
+
() => CreatePlanLicenseFeatureOverrideResponse$inboundSchema
|
|
16619
|
+
))
|
|
16620
|
+
}),
|
|
16621
|
+
z29.transform((v) => {
|
|
16622
|
+
return remap(v, {
|
|
16623
|
+
"threshold_billing": "thresholdBilling",
|
|
16624
|
+
"feature_id": "featureId",
|
|
16625
|
+
"feature_override": "featureOverride"
|
|
16626
|
+
});
|
|
16627
|
+
})
|
|
16628
|
+
);
|
|
16629
|
+
var CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseRemoveItemBillingMethodResponse);
|
|
16630
|
+
var CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum2);
|
|
16631
|
+
var CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum1);
|
|
16632
|
+
var CreatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
|
|
16633
|
+
CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
|
|
16634
|
+
CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
|
|
16635
|
+
]);
|
|
16636
|
+
var CreatePlanLicensePlanItemFilterResponse$inboundSchema = z29.pipe(
|
|
16637
|
+
z29.object({
|
|
16638
|
+
feature_id: optional3(string5()),
|
|
16639
|
+
billing_method: optional3(
|
|
16640
|
+
CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
|
|
16641
|
+
),
|
|
16642
|
+
interval: optional3(
|
|
16643
|
+
smartUnion([
|
|
16644
|
+
CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
|
|
16645
|
+
CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
|
|
16646
|
+
])
|
|
16647
|
+
),
|
|
16648
|
+
interval_count: optional3(number2()),
|
|
16649
|
+
included: optional3(number2())
|
|
16650
|
+
}),
|
|
16651
|
+
z29.transform((v) => {
|
|
16652
|
+
return remap(v, {
|
|
16653
|
+
"feature_id": "featureId",
|
|
16654
|
+
"billing_method": "billingMethod",
|
|
16655
|
+
"interval_count": "intervalCount"
|
|
16656
|
+
});
|
|
16657
|
+
})
|
|
16658
|
+
);
|
|
16659
|
+
var CreatePlanLicenseCustomizeResponse$inboundSchema = z29.pipe(
|
|
16660
|
+
z29.object({
|
|
16661
|
+
price: z29.optional(
|
|
16662
|
+
z29.nullable(
|
|
16663
|
+
z29.lazy(() => CreatePlanLicenseBasePriceResponse$inboundSchema)
|
|
16664
|
+
)
|
|
16665
|
+
),
|
|
16666
|
+
add_items: optional3(
|
|
16667
|
+
z29.array(z29.lazy(() => CreatePlanLicensePlanItemResponse$inboundSchema))
|
|
16668
|
+
),
|
|
16669
|
+
remove_items: optional3(
|
|
16670
|
+
z29.array(
|
|
16671
|
+
z29.lazy(() => CreatePlanLicensePlanItemFilterResponse$inboundSchema)
|
|
16672
|
+
)
|
|
16673
|
+
)
|
|
16674
|
+
}),
|
|
16675
|
+
z29.transform((v) => {
|
|
16676
|
+
return remap(v, {
|
|
16677
|
+
"add_items": "addItems",
|
|
16678
|
+
"remove_items": "removeItems"
|
|
16679
|
+
});
|
|
16680
|
+
})
|
|
16681
|
+
);
|
|
16682
|
+
var CreatePlanLicenseResponse$inboundSchema = z29.pipe(
|
|
16683
|
+
z29.object({
|
|
16684
|
+
license_plan_id: string5(),
|
|
16685
|
+
version: number2(),
|
|
16686
|
+
version_slug: optional3(string5()),
|
|
16687
|
+
included: number2(),
|
|
16688
|
+
prepaid_only: boolean2(),
|
|
16689
|
+
customize: optional3(
|
|
16690
|
+
z29.lazy(() => CreatePlanLicenseCustomizeResponse$inboundSchema)
|
|
16691
|
+
),
|
|
16692
|
+
metadata: optional3(z29.record(z29.string(), z29.any())),
|
|
16693
|
+
plan: optional3(Plan$inboundSchema)
|
|
16694
|
+
}),
|
|
16695
|
+
z29.transform((v) => {
|
|
16696
|
+
return remap(v, {
|
|
16697
|
+
"license_plan_id": "licensePlanId",
|
|
16698
|
+
"version_slug": "versionSlug",
|
|
16699
|
+
"prepaid_only": "prepaidOnly"
|
|
16700
|
+
});
|
|
16701
|
+
})
|
|
16702
|
+
);
|
|
16076
16703
|
var CreatePlanResponse$inboundSchema = z29.pipe(
|
|
16077
16704
|
z29.object({
|
|
16078
16705
|
id: string5(),
|
|
@@ -16102,6 +16729,9 @@ var CreatePlanResponse$inboundSchema = z29.pipe(
|
|
|
16102
16729
|
base_variant_id: nullable(string5()),
|
|
16103
16730
|
variant_details: optional3(
|
|
16104
16731
|
z29.lazy(() => CreatePlanVariantDetails$inboundSchema)
|
|
16732
|
+
),
|
|
16733
|
+
licenses: optional3(
|
|
16734
|
+
z29.array(z29.lazy(() => CreatePlanLicenseResponse$inboundSchema))
|
|
16105
16735
|
)
|
|
16106
16736
|
}),
|
|
16107
16737
|
z29.transform((v) => {
|
|
@@ -24224,7 +24854,7 @@ var GetPlanPriceVariantDetailsInterval = {
|
|
|
24224
24854
|
SemiAnnual: "semi_annual",
|
|
24225
24855
|
Year: "year"
|
|
24226
24856
|
};
|
|
24227
|
-
var
|
|
24857
|
+
var GetPlanVariantDetailsResetInterval = {
|
|
24228
24858
|
OneOff: "one_off",
|
|
24229
24859
|
Minute: "minute",
|
|
24230
24860
|
Hour: "hour",
|
|
@@ -24239,7 +24869,7 @@ var GetPlanVariantDetailsTierBehavior = {
|
|
|
24239
24869
|
Graduated: "graduated",
|
|
24240
24870
|
Volume: "volume"
|
|
24241
24871
|
};
|
|
24242
|
-
var
|
|
24872
|
+
var GetPlanVariantDetailsAddItemPriceInterval = {
|
|
24243
24873
|
OneOff: "one_off",
|
|
24244
24874
|
Week: "week",
|
|
24245
24875
|
Month: "month",
|
|
@@ -24247,17 +24877,17 @@ var GetPlanAddItemPriceInterval = {
|
|
|
24247
24877
|
SemiAnnual: "semi_annual",
|
|
24248
24878
|
Year: "year"
|
|
24249
24879
|
};
|
|
24250
|
-
var
|
|
24880
|
+
var GetPlanVariantDetailsAddItemBillingMethod = {
|
|
24251
24881
|
Prepaid: "prepaid",
|
|
24252
24882
|
UsageBased: "usage_based"
|
|
24253
24883
|
};
|
|
24254
|
-
var
|
|
24884
|
+
var GetPlanVariantDetailsOnIncrease = {
|
|
24255
24885
|
BillImmediately: "bill_immediately",
|
|
24256
24886
|
ProrateImmediately: "prorate_immediately",
|
|
24257
24887
|
ProrateNextCycle: "prorate_next_cycle",
|
|
24258
24888
|
BillNextCycle: "bill_next_cycle"
|
|
24259
24889
|
};
|
|
24260
|
-
var
|
|
24890
|
+
var GetPlanVariantDetailsOnDecrease = {
|
|
24261
24891
|
Prorate: "prorate",
|
|
24262
24892
|
ProrateImmediately: "prorate_immediately",
|
|
24263
24893
|
ProrateNextCycle: "prorate_next_cycle",
|
|
@@ -24283,11 +24913,11 @@ var GetPlanDimensionsToVariantDetailsEnum1 = {
|
|
|
24283
24913
|
var GetPlanToVariantDetailsEnum = {
|
|
24284
24914
|
Inf: "inf"
|
|
24285
24915
|
};
|
|
24286
|
-
var
|
|
24916
|
+
var GetPlanVariantDetailsRemoveItemBillingMethod = {
|
|
24287
24917
|
Prepaid: "prepaid",
|
|
24288
24918
|
UsageBased: "usage_based"
|
|
24289
24919
|
};
|
|
24290
|
-
var
|
|
24920
|
+
var GetPlanIntervalVariantDetailsRemoveItemEnum2 = {
|
|
24291
24921
|
OneOff: "one_off",
|
|
24292
24922
|
Minute: "minute",
|
|
24293
24923
|
Hour: "hour",
|
|
@@ -24298,7 +24928,7 @@ var GetPlanIntervalRemoveItemEnum2 = {
|
|
|
24298
24928
|
SemiAnnual: "semi_annual",
|
|
24299
24929
|
Year: "year"
|
|
24300
24930
|
};
|
|
24301
|
-
var
|
|
24931
|
+
var GetPlanIntervalVariantDetailsRemoveItemEnum1 = {
|
|
24302
24932
|
OneOff: "one_off",
|
|
24303
24933
|
Week: "week",
|
|
24304
24934
|
Month: "month",
|
|
@@ -25058,7 +25688,7 @@ var GetPlanVariantDetailsAdditionalCurrency$inboundSchema = z56.object({
|
|
|
25058
25688
|
currency: string5(),
|
|
25059
25689
|
amount: number2()
|
|
25060
25690
|
});
|
|
25061
|
-
var
|
|
25691
|
+
var GetPlanVariantDetailsBasePrice$inboundSchema = z56.pipe(
|
|
25062
25692
|
z56.object({
|
|
25063
25693
|
amount: number2(),
|
|
25064
25694
|
interval: GetPlanPriceVariantDetailsInterval$inboundSchema,
|
|
@@ -25077,10 +25707,10 @@ var GetPlanBasePrice$inboundSchema = z56.pipe(
|
|
|
25077
25707
|
var GetPlanVariantDetailsThresholdBilling$inboundSchema = z56.object({
|
|
25078
25708
|
threshold: number2()
|
|
25079
25709
|
});
|
|
25080
|
-
var
|
|
25710
|
+
var GetPlanVariantDetailsResetInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsResetInterval);
|
|
25081
25711
|
var GetPlanVariantDetailsReset$inboundSchema = z56.pipe(
|
|
25082
25712
|
z56.object({
|
|
25083
|
-
interval:
|
|
25713
|
+
interval: GetPlanVariantDetailsResetInterval$inboundSchema,
|
|
25084
25714
|
interval_count: z56._default(number2(), 1)
|
|
25085
25715
|
}),
|
|
25086
25716
|
z56.transform((v) => {
|
|
@@ -25089,7 +25719,7 @@ var GetPlanVariantDetailsReset$inboundSchema = z56.pipe(
|
|
|
25089
25719
|
});
|
|
25090
25720
|
})
|
|
25091
25721
|
);
|
|
25092
|
-
var
|
|
25722
|
+
var GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z56.object({
|
|
25093
25723
|
currency: string5(),
|
|
25094
25724
|
amount: number2()
|
|
25095
25725
|
});
|
|
@@ -25123,24 +25753,24 @@ var GetPlanVariantDetailsPriceTier$inboundSchema = z56.pipe(
|
|
|
25123
25753
|
})
|
|
25124
25754
|
);
|
|
25125
25755
|
var GetPlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(GetPlanVariantDetailsTierBehavior);
|
|
25126
|
-
var
|
|
25127
|
-
var
|
|
25756
|
+
var GetPlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemPriceInterval);
|
|
25757
|
+
var GetPlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemBillingMethod);
|
|
25128
25758
|
var GetPlanVariantDetailsPrice$inboundSchema = z56.pipe(
|
|
25129
25759
|
z56.object({
|
|
25130
25760
|
amount: optional3(number2()),
|
|
25131
|
-
additional_currencies: optional3(
|
|
25132
|
-
|
|
25133
|
-
),
|
|
25134
|
-
tiers: optional3(
|
|
25135
|
-
|
|
25136
|
-
),
|
|
25761
|
+
additional_currencies: optional3(z56.array(z56.lazy(
|
|
25762
|
+
() => GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
|
|
25763
|
+
))),
|
|
25764
|
+
tiers: optional3(z56.array(z56.lazy(
|
|
25765
|
+
() => GetPlanVariantDetailsPriceTier$inboundSchema
|
|
25766
|
+
))),
|
|
25137
25767
|
tier_behavior: optional3(
|
|
25138
25768
|
GetPlanVariantDetailsTierBehavior$inboundSchema
|
|
25139
25769
|
),
|
|
25140
|
-
interval:
|
|
25770
|
+
interval: GetPlanVariantDetailsAddItemPriceInterval$inboundSchema,
|
|
25141
25771
|
interval_count: z56._default(number2(), 1),
|
|
25142
25772
|
billing_units: z56._default(number2(), 1),
|
|
25143
|
-
billing_method:
|
|
25773
|
+
billing_method: GetPlanVariantDetailsAddItemBillingMethod$inboundSchema,
|
|
25144
25774
|
max_purchase: z56.optional(z56.nullable(number2()))
|
|
25145
25775
|
}),
|
|
25146
25776
|
z56.transform((v) => {
|
|
@@ -25154,12 +25784,12 @@ var GetPlanVariantDetailsPrice$inboundSchema = z56.pipe(
|
|
|
25154
25784
|
});
|
|
25155
25785
|
})
|
|
25156
25786
|
);
|
|
25157
|
-
var
|
|
25158
|
-
var
|
|
25159
|
-
var
|
|
25787
|
+
var GetPlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnIncrease);
|
|
25788
|
+
var GetPlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnDecrease);
|
|
25789
|
+
var GetPlanVariantDetailsProration$inboundSchema = z56.pipe(
|
|
25160
25790
|
z56.object({
|
|
25161
|
-
on_increase:
|
|
25162
|
-
on_decrease:
|
|
25791
|
+
on_increase: GetPlanVariantDetailsOnIncrease$inboundSchema,
|
|
25792
|
+
on_decrease: GetPlanVariantDetailsOnDecrease$inboundSchema
|
|
25163
25793
|
}),
|
|
25164
25794
|
z56.transform((v) => {
|
|
25165
25795
|
return remap(v, {
|
|
@@ -25430,7 +26060,7 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
|
|
|
25430
26060
|
});
|
|
25431
26061
|
})
|
|
25432
26062
|
);
|
|
25433
|
-
var
|
|
26063
|
+
var GetPlanVariantDetailsPlanItem$inboundSchema = z56.pipe(
|
|
25434
26064
|
z56.object({
|
|
25435
26065
|
threshold_billing: z56.optional(z56.nullable(z56.lazy(
|
|
25436
26066
|
() => GetPlanVariantDetailsThresholdBilling$inboundSchema
|
|
@@ -25445,7 +26075,9 @@ var GetPlanPlanItem$inboundSchema = z56.pipe(
|
|
|
25445
26075
|
price: optional3(
|
|
25446
26076
|
z56.lazy(() => GetPlanVariantDetailsPrice$inboundSchema)
|
|
25447
26077
|
),
|
|
25448
|
-
proration: optional3(
|
|
26078
|
+
proration: optional3(
|
|
26079
|
+
z56.lazy(() => GetPlanVariantDetailsProration$inboundSchema)
|
|
26080
|
+
),
|
|
25449
26081
|
rollover: optional3(
|
|
25450
26082
|
z56.lazy(() => GetPlanVariantDetailsRollover$inboundSchema)
|
|
25451
26083
|
),
|
|
@@ -25464,23 +26096,23 @@ var GetPlanPlanItem$inboundSchema = z56.pipe(
|
|
|
25464
26096
|
});
|
|
25465
26097
|
})
|
|
25466
26098
|
);
|
|
25467
|
-
var
|
|
25468
|
-
var
|
|
25469
|
-
var
|
|
25470
|
-
var
|
|
25471
|
-
|
|
25472
|
-
|
|
26099
|
+
var GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsRemoveItemBillingMethod);
|
|
26100
|
+
var GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum2);
|
|
26101
|
+
var GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum1);
|
|
26102
|
+
var GetPlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
|
|
26103
|
+
GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
|
|
26104
|
+
GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
|
|
25473
26105
|
]);
|
|
25474
|
-
var
|
|
26106
|
+
var GetPlanVariantDetailsPlanItemFilter$inboundSchema = z56.pipe(
|
|
25475
26107
|
z56.object({
|
|
25476
26108
|
feature_id: optional3(string5()),
|
|
25477
26109
|
billing_method: optional3(
|
|
25478
|
-
|
|
26110
|
+
GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema
|
|
25479
26111
|
),
|
|
25480
26112
|
interval: optional3(
|
|
25481
26113
|
smartUnion([
|
|
25482
|
-
|
|
25483
|
-
|
|
26114
|
+
GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
|
|
26115
|
+
GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
|
|
25484
26116
|
])
|
|
25485
26117
|
),
|
|
25486
26118
|
interval_count: optional3(number2()),
|
|
@@ -25704,6 +26336,96 @@ var GetPlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
25704
26336
|
SemiAnnual: "semi_annual",
|
|
25705
26337
|
Year: "year"
|
|
25706
26338
|
};
|
|
26339
|
+
var GetPlanPriceLicenseInterval = {
|
|
26340
|
+
OneOff: "one_off",
|
|
26341
|
+
Week: "week",
|
|
26342
|
+
Month: "month",
|
|
26343
|
+
Quarter: "quarter",
|
|
26344
|
+
SemiAnnual: "semi_annual",
|
|
26345
|
+
Year: "year"
|
|
26346
|
+
};
|
|
26347
|
+
var GetPlanLicenseResetInterval = {
|
|
26348
|
+
OneOff: "one_off",
|
|
26349
|
+
Minute: "minute",
|
|
26350
|
+
Hour: "hour",
|
|
26351
|
+
Day: "day",
|
|
26352
|
+
Week: "week",
|
|
26353
|
+
Month: "month",
|
|
26354
|
+
Quarter: "quarter",
|
|
26355
|
+
SemiAnnual: "semi_annual",
|
|
26356
|
+
Year: "year"
|
|
26357
|
+
};
|
|
26358
|
+
var GetPlanLicenseTierBehavior = {
|
|
26359
|
+
Graduated: "graduated",
|
|
26360
|
+
Volume: "volume"
|
|
26361
|
+
};
|
|
26362
|
+
var GetPlanLicenseAddItemPriceInterval = {
|
|
26363
|
+
OneOff: "one_off",
|
|
26364
|
+
Week: "week",
|
|
26365
|
+
Month: "month",
|
|
26366
|
+
Quarter: "quarter",
|
|
26367
|
+
SemiAnnual: "semi_annual",
|
|
26368
|
+
Year: "year"
|
|
26369
|
+
};
|
|
26370
|
+
var GetPlanLicenseAddItemBillingMethod = {
|
|
26371
|
+
Prepaid: "prepaid",
|
|
26372
|
+
UsageBased: "usage_based"
|
|
26373
|
+
};
|
|
26374
|
+
var GetPlanLicenseOnIncrease = {
|
|
26375
|
+
BillImmediately: "bill_immediately",
|
|
26376
|
+
ProrateImmediately: "prorate_immediately",
|
|
26377
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
26378
|
+
BillNextCycle: "bill_next_cycle"
|
|
26379
|
+
};
|
|
26380
|
+
var GetPlanLicenseOnDecrease = {
|
|
26381
|
+
Prorate: "prorate",
|
|
26382
|
+
ProrateImmediately: "prorate_immediately",
|
|
26383
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
26384
|
+
None: "none",
|
|
26385
|
+
NoProrations: "no_prorations"
|
|
26386
|
+
};
|
|
26387
|
+
var GetPlanLicenseExpiryDurationType = {
|
|
26388
|
+
Month: "month",
|
|
26389
|
+
Forever: "forever"
|
|
26390
|
+
};
|
|
26391
|
+
var GetPlanLicenseDuration = {
|
|
26392
|
+
Day: "day",
|
|
26393
|
+
Week: "week",
|
|
26394
|
+
Month: "month",
|
|
26395
|
+
Year: "year"
|
|
26396
|
+
};
|
|
26397
|
+
var GetPlanDimensionsToLicenseEnum2 = {
|
|
26398
|
+
Inf: "inf"
|
|
26399
|
+
};
|
|
26400
|
+
var GetPlanDimensionsToLicenseEnum1 = {
|
|
26401
|
+
Inf: "inf"
|
|
26402
|
+
};
|
|
26403
|
+
var GetPlanToLicenseEnum = {
|
|
26404
|
+
Inf: "inf"
|
|
26405
|
+
};
|
|
26406
|
+
var GetPlanLicenseRemoveItemBillingMethod = {
|
|
26407
|
+
Prepaid: "prepaid",
|
|
26408
|
+
UsageBased: "usage_based"
|
|
26409
|
+
};
|
|
26410
|
+
var GetPlanIntervalLicenseRemoveItemEnum2 = {
|
|
26411
|
+
OneOff: "one_off",
|
|
26412
|
+
Minute: "minute",
|
|
26413
|
+
Hour: "hour",
|
|
26414
|
+
Day: "day",
|
|
26415
|
+
Week: "week",
|
|
26416
|
+
Month: "month",
|
|
26417
|
+
Quarter: "quarter",
|
|
26418
|
+
SemiAnnual: "semi_annual",
|
|
26419
|
+
Year: "year"
|
|
26420
|
+
};
|
|
26421
|
+
var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
26422
|
+
OneOff: "one_off",
|
|
26423
|
+
Week: "week",
|
|
26424
|
+
Month: "month",
|
|
26425
|
+
Quarter: "quarter",
|
|
26426
|
+
SemiAnnual: "semi_annual",
|
|
26427
|
+
Year: "year"
|
|
26428
|
+
};
|
|
25707
26429
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
|
|
25708
26430
|
z57.object({
|
|
25709
26431
|
feature_id: string5(),
|
|
@@ -26232,11 +26954,15 @@ var GetPlanRemoveLicense$inboundSchema = z57.pipe(
|
|
|
26232
26954
|
});
|
|
26233
26955
|
})
|
|
26234
26956
|
);
|
|
26235
|
-
var
|
|
26957
|
+
var GetPlanVariantDetailsCustomize$inboundSchema = z57.pipe(
|
|
26236
26958
|
z57.object({
|
|
26237
|
-
price: z57.optional(z57.nullable(
|
|
26238
|
-
add_items: optional3(
|
|
26239
|
-
|
|
26959
|
+
price: z57.optional(z57.nullable(GetPlanVariantDetailsBasePrice$inboundSchema)),
|
|
26960
|
+
add_items: optional3(
|
|
26961
|
+
z57.array(GetPlanVariantDetailsPlanItem$inboundSchema)
|
|
26962
|
+
),
|
|
26963
|
+
remove_items: optional3(
|
|
26964
|
+
z57.array(GetPlanVariantDetailsPlanItemFilter$inboundSchema)
|
|
26965
|
+
),
|
|
26240
26966
|
free_trial: z57.optional(z57.nullable(GetPlanFreeTrialParams$inboundSchema)),
|
|
26241
26967
|
billing_controls: optional3(
|
|
26242
26968
|
z57.lazy(() => GetPlanVariantDetailsBillingControls$inboundSchema)
|
|
@@ -26262,7 +26988,9 @@ var GetPlanCustomize$inboundSchema = z57.pipe(
|
|
|
26262
26988
|
var GetPlanVariantDetails$inboundSchema = z57.pipe(
|
|
26263
26989
|
z57.object({
|
|
26264
26990
|
base_plan_id: string5(),
|
|
26265
|
-
customize: optional3(
|
|
26991
|
+
customize: optional3(
|
|
26992
|
+
z57.lazy(() => GetPlanVariantDetailsCustomize$inboundSchema)
|
|
26993
|
+
)
|
|
26266
26994
|
}),
|
|
26267
26995
|
z57.transform((v) => {
|
|
26268
26996
|
return remap(v, {
|
|
@@ -26270,6 +26998,464 @@ var GetPlanVariantDetails$inboundSchema = z57.pipe(
|
|
|
26270
26998
|
});
|
|
26271
26999
|
})
|
|
26272
27000
|
);
|
|
27001
|
+
var GetPlanPriceLicenseInterval$inboundSchema = inboundSchema(GetPlanPriceLicenseInterval);
|
|
27002
|
+
var GetPlanLicenseAdditionalCurrency$inboundSchema = z57.object({
|
|
27003
|
+
currency: string5(),
|
|
27004
|
+
amount: number2()
|
|
27005
|
+
});
|
|
27006
|
+
var GetPlanLicenseBasePrice$inboundSchema = z57.pipe(
|
|
27007
|
+
z57.object({
|
|
27008
|
+
amount: number2(),
|
|
27009
|
+
interval: GetPlanPriceLicenseInterval$inboundSchema,
|
|
27010
|
+
interval_count: z57._default(number2(), 1),
|
|
27011
|
+
additional_currencies: optional3(
|
|
27012
|
+
z57.array(z57.lazy(() => GetPlanLicenseAdditionalCurrency$inboundSchema))
|
|
27013
|
+
)
|
|
27014
|
+
}),
|
|
27015
|
+
z57.transform((v) => {
|
|
27016
|
+
return remap(v, {
|
|
27017
|
+
"interval_count": "intervalCount",
|
|
27018
|
+
"additional_currencies": "additionalCurrencies"
|
|
27019
|
+
});
|
|
27020
|
+
})
|
|
27021
|
+
);
|
|
27022
|
+
var GetPlanLicenseThresholdBilling$inboundSchema = z57.object({
|
|
27023
|
+
threshold: number2()
|
|
27024
|
+
});
|
|
27025
|
+
var GetPlanLicenseResetInterval$inboundSchema = inboundSchema(GetPlanLicenseResetInterval);
|
|
27026
|
+
var GetPlanLicenseReset$inboundSchema = z57.pipe(
|
|
27027
|
+
z57.object({
|
|
27028
|
+
interval: GetPlanLicenseResetInterval$inboundSchema,
|
|
27029
|
+
interval_count: z57._default(number2(), 1)
|
|
27030
|
+
}),
|
|
27031
|
+
z57.transform((v) => {
|
|
27032
|
+
return remap(v, {
|
|
27033
|
+
"interval_count": "intervalCount"
|
|
27034
|
+
});
|
|
27035
|
+
})
|
|
27036
|
+
);
|
|
27037
|
+
var GetPlanLicenseAddItemAdditionalCurrency$inboundSchema = z57.object({
|
|
27038
|
+
currency: string5(),
|
|
27039
|
+
amount: number2()
|
|
27040
|
+
});
|
|
27041
|
+
var GetPlanLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
|
|
27042
|
+
var GetPlanLicenseTierAdditionalCurrency$inboundSchema = z57.pipe(
|
|
27043
|
+
z57.object({
|
|
27044
|
+
currency: string5(),
|
|
27045
|
+
amount: optional3(number2()),
|
|
27046
|
+
flat_amount: optional3(number2())
|
|
27047
|
+
}),
|
|
27048
|
+
z57.transform((v) => {
|
|
27049
|
+
return remap(v, {
|
|
27050
|
+
"flat_amount": "flatAmount"
|
|
27051
|
+
});
|
|
27052
|
+
})
|
|
27053
|
+
);
|
|
27054
|
+
var GetPlanLicensePriceTier$inboundSchema = z57.pipe(
|
|
27055
|
+
z57.object({
|
|
27056
|
+
to: smartUnion([number2(), string5()]),
|
|
27057
|
+
amount: number2(),
|
|
27058
|
+
flat_amount: optional3(number2()),
|
|
27059
|
+
additional_currencies: optional3(
|
|
27060
|
+
z57.array(z57.lazy(() => GetPlanLicenseTierAdditionalCurrency$inboundSchema))
|
|
27061
|
+
)
|
|
27062
|
+
}),
|
|
27063
|
+
z57.transform((v) => {
|
|
27064
|
+
return remap(v, {
|
|
27065
|
+
"flat_amount": "flatAmount",
|
|
27066
|
+
"additional_currencies": "additionalCurrencies"
|
|
27067
|
+
});
|
|
27068
|
+
})
|
|
27069
|
+
);
|
|
27070
|
+
var GetPlanLicenseTierBehavior$inboundSchema = inboundSchema(GetPlanLicenseTierBehavior);
|
|
27071
|
+
var GetPlanLicenseAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanLicenseAddItemPriceInterval);
|
|
27072
|
+
var GetPlanLicenseAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseAddItemBillingMethod);
|
|
27073
|
+
var GetPlanLicensePrice$inboundSchema = z57.pipe(
|
|
27074
|
+
z57.object({
|
|
27075
|
+
amount: optional3(number2()),
|
|
27076
|
+
additional_currencies: optional3(z57.array(z57.lazy(
|
|
27077
|
+
() => GetPlanLicenseAddItemAdditionalCurrency$inboundSchema
|
|
27078
|
+
))),
|
|
27079
|
+
tiers: optional3(z57.array(z57.lazy(
|
|
27080
|
+
() => GetPlanLicensePriceTier$inboundSchema
|
|
27081
|
+
))),
|
|
27082
|
+
tier_behavior: optional3(GetPlanLicenseTierBehavior$inboundSchema),
|
|
27083
|
+
interval: GetPlanLicenseAddItemPriceInterval$inboundSchema,
|
|
27084
|
+
interval_count: z57._default(number2(), 1),
|
|
27085
|
+
billing_units: z57._default(number2(), 1),
|
|
27086
|
+
billing_method: GetPlanLicenseAddItemBillingMethod$inboundSchema,
|
|
27087
|
+
max_purchase: z57.optional(z57.nullable(number2()))
|
|
27088
|
+
}),
|
|
27089
|
+
z57.transform((v) => {
|
|
27090
|
+
return remap(v, {
|
|
27091
|
+
"additional_currencies": "additionalCurrencies",
|
|
27092
|
+
"tier_behavior": "tierBehavior",
|
|
27093
|
+
"interval_count": "intervalCount",
|
|
27094
|
+
"billing_units": "billingUnits",
|
|
27095
|
+
"billing_method": "billingMethod",
|
|
27096
|
+
"max_purchase": "maxPurchase"
|
|
27097
|
+
});
|
|
27098
|
+
})
|
|
27099
|
+
);
|
|
27100
|
+
var GetPlanLicenseOnIncrease$inboundSchema = inboundSchema(GetPlanLicenseOnIncrease);
|
|
27101
|
+
var GetPlanLicenseOnDecrease$inboundSchema = inboundSchema(GetPlanLicenseOnDecrease);
|
|
27102
|
+
var GetPlanLicenseProration$inboundSchema = z57.pipe(
|
|
27103
|
+
z57.object({
|
|
27104
|
+
on_increase: GetPlanLicenseOnIncrease$inboundSchema,
|
|
27105
|
+
on_decrease: GetPlanLicenseOnDecrease$inboundSchema
|
|
27106
|
+
}),
|
|
27107
|
+
z57.transform((v) => {
|
|
27108
|
+
return remap(v, {
|
|
27109
|
+
"on_increase": "onIncrease",
|
|
27110
|
+
"on_decrease": "onDecrease"
|
|
27111
|
+
});
|
|
27112
|
+
})
|
|
27113
|
+
);
|
|
27114
|
+
var GetPlanLicenseExpiryDurationType$inboundSchema = inboundSchema(GetPlanLicenseExpiryDurationType);
|
|
27115
|
+
var GetPlanLicenseRollover$inboundSchema = z57.pipe(
|
|
27116
|
+
z57.object({
|
|
27117
|
+
max: optional3(number2()),
|
|
27118
|
+
max_percentage: optional3(number2()),
|
|
27119
|
+
expiry_duration_type: GetPlanLicenseExpiryDurationType$inboundSchema,
|
|
27120
|
+
expiry_duration_length: optional3(number2())
|
|
27121
|
+
}),
|
|
27122
|
+
z57.transform((v) => {
|
|
27123
|
+
return remap(v, {
|
|
27124
|
+
"max_percentage": "maxPercentage",
|
|
27125
|
+
"expiry_duration_type": "expiryDurationType",
|
|
27126
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
27127
|
+
});
|
|
27128
|
+
})
|
|
27129
|
+
);
|
|
27130
|
+
var GetPlanLicenseDuration$inboundSchema = inboundSchema(GetPlanLicenseDuration);
|
|
27131
|
+
var GetPlanLicenseExpiry$inboundSchema = z57.object({
|
|
27132
|
+
duration: GetPlanLicenseDuration$inboundSchema,
|
|
27133
|
+
length: number2()
|
|
27134
|
+
});
|
|
27135
|
+
var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
|
|
27136
|
+
z57.object({
|
|
27137
|
+
match: z57.record(z57.string(), string5()),
|
|
27138
|
+
priority: optional3(number2()),
|
|
27139
|
+
credit_cost: number2()
|
|
27140
|
+
}),
|
|
27141
|
+
z57.transform((v) => {
|
|
27142
|
+
return remap(v, {
|
|
27143
|
+
"credit_cost": "creditCost"
|
|
27144
|
+
});
|
|
27145
|
+
})
|
|
27146
|
+
);
|
|
27147
|
+
var GetPlanDimensionsToLicenseEnum2$inboundSchema = z57.enum(GetPlanDimensionsToLicenseEnum2);
|
|
27148
|
+
var GetPlanDimensionsLicenseToUnion2$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum2$inboundSchema]);
|
|
27149
|
+
var GetPlanDimensionsLicenseTier2$inboundSchema = z57.pipe(
|
|
27150
|
+
z57.object({
|
|
27151
|
+
to: smartUnion([
|
|
27152
|
+
number2(),
|
|
27153
|
+
GetPlanDimensionsToLicenseEnum2$inboundSchema
|
|
27154
|
+
]),
|
|
27155
|
+
credit_cost: number2()
|
|
27156
|
+
}),
|
|
27157
|
+
z57.transform((v) => {
|
|
27158
|
+
return remap(v, {
|
|
27159
|
+
"credit_cost": "creditCost"
|
|
27160
|
+
});
|
|
27161
|
+
})
|
|
27162
|
+
);
|
|
27163
|
+
var GetPlanDimensionsLicense3$inboundSchema = z57.pipe(
|
|
27164
|
+
z57.object({
|
|
27165
|
+
match: z57.record(z57.string(), string5()),
|
|
27166
|
+
priority: optional3(number2()),
|
|
27167
|
+
tier_behavior: literal3("graduated"),
|
|
27168
|
+
tiers: z57.array(z57.lazy(() => GetPlanDimensionsLicenseTier2$inboundSchema))
|
|
27169
|
+
}),
|
|
27170
|
+
z57.transform((v) => {
|
|
27171
|
+
return remap(v, {
|
|
27172
|
+
"tier_behavior": "tierBehavior"
|
|
27173
|
+
});
|
|
27174
|
+
})
|
|
27175
|
+
);
|
|
27176
|
+
var GetPlanLicenseDimensionsUnion2$inboundSchema = smartUnion([
|
|
27177
|
+
z57.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
|
|
27178
|
+
z57.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
|
|
27179
|
+
]);
|
|
27180
|
+
var GetPlanLicenseMultipliers2$inboundSchema = z57.object({
|
|
27181
|
+
match: z57.record(z57.string(), string5()),
|
|
27182
|
+
factor: optional3(number2()),
|
|
27183
|
+
add: optional3(number2())
|
|
27184
|
+
});
|
|
27185
|
+
var GetPlanCreditSchemaLicense2$inboundSchema = z57.pipe(
|
|
27186
|
+
z57.object({
|
|
27187
|
+
metered_feature_id: string5(),
|
|
27188
|
+
billing_units: optional3(number2()),
|
|
27189
|
+
dimensions: optional3(z57.record(
|
|
27190
|
+
z57.string(),
|
|
27191
|
+
smartUnion([
|
|
27192
|
+
z57.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
|
|
27193
|
+
z57.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
|
|
27194
|
+
])
|
|
27195
|
+
)),
|
|
27196
|
+
multipliers: optional3(z57.record(
|
|
27197
|
+
z57.string(),
|
|
27198
|
+
z57.lazy(() => GetPlanLicenseMultipliers2$inboundSchema)
|
|
27199
|
+
)),
|
|
27200
|
+
credit_cost: number2()
|
|
27201
|
+
}),
|
|
27202
|
+
z57.transform((v) => {
|
|
27203
|
+
return remap(v, {
|
|
27204
|
+
"metered_feature_id": "meteredFeatureId",
|
|
27205
|
+
"billing_units": "billingUnits",
|
|
27206
|
+
"credit_cost": "creditCost"
|
|
27207
|
+
});
|
|
27208
|
+
})
|
|
27209
|
+
);
|
|
27210
|
+
var GetPlanDimensionsLicense2$inboundSchema = z57.pipe(
|
|
27211
|
+
z57.object({
|
|
27212
|
+
match: z57.record(z57.string(), string5()),
|
|
27213
|
+
priority: optional3(number2()),
|
|
27214
|
+
credit_cost: number2()
|
|
27215
|
+
}),
|
|
27216
|
+
z57.transform((v) => {
|
|
27217
|
+
return remap(v, {
|
|
27218
|
+
"credit_cost": "creditCost"
|
|
27219
|
+
});
|
|
27220
|
+
})
|
|
27221
|
+
);
|
|
27222
|
+
var GetPlanDimensionsToLicenseEnum1$inboundSchema = z57.enum(GetPlanDimensionsToLicenseEnum1);
|
|
27223
|
+
var GetPlanDimensionsLicenseToUnion1$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum1$inboundSchema]);
|
|
27224
|
+
var GetPlanDimensionsLicenseTier1$inboundSchema = z57.pipe(
|
|
27225
|
+
z57.object({
|
|
27226
|
+
to: smartUnion([
|
|
27227
|
+
number2(),
|
|
27228
|
+
GetPlanDimensionsToLicenseEnum1$inboundSchema
|
|
27229
|
+
]),
|
|
27230
|
+
credit_cost: number2()
|
|
27231
|
+
}),
|
|
27232
|
+
z57.transform((v) => {
|
|
27233
|
+
return remap(v, {
|
|
27234
|
+
"credit_cost": "creditCost"
|
|
27235
|
+
});
|
|
27236
|
+
})
|
|
27237
|
+
);
|
|
27238
|
+
var GetPlanDimensionsLicense1$inboundSchema = z57.pipe(
|
|
27239
|
+
z57.object({
|
|
27240
|
+
match: z57.record(z57.string(), string5()),
|
|
27241
|
+
priority: optional3(number2()),
|
|
27242
|
+
tier_behavior: literal3("graduated"),
|
|
27243
|
+
tiers: z57.array(z57.lazy(() => GetPlanDimensionsLicenseTier1$inboundSchema))
|
|
27244
|
+
}),
|
|
27245
|
+
z57.transform((v) => {
|
|
27246
|
+
return remap(v, {
|
|
27247
|
+
"tier_behavior": "tierBehavior"
|
|
27248
|
+
});
|
|
27249
|
+
})
|
|
27250
|
+
);
|
|
27251
|
+
var GetPlanLicenseDimensionsUnion1$inboundSchema = smartUnion([
|
|
27252
|
+
z57.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
|
|
27253
|
+
z57.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
|
|
27254
|
+
]);
|
|
27255
|
+
var GetPlanLicenseMultipliers1$inboundSchema = z57.object({
|
|
27256
|
+
match: z57.record(z57.string(), string5()),
|
|
27257
|
+
factor: optional3(number2()),
|
|
27258
|
+
add: optional3(number2())
|
|
27259
|
+
});
|
|
27260
|
+
var GetPlanToLicenseEnum$inboundSchema = z57.enum(GetPlanToLicenseEnum);
|
|
27261
|
+
var GetPlanLicenseFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]);
|
|
27262
|
+
var GetPlanLicenseFeatureOverrideTier$inboundSchema = z57.pipe(
|
|
27263
|
+
z57.object({
|
|
27264
|
+
to: smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]),
|
|
27265
|
+
credit_cost: number2()
|
|
27266
|
+
}),
|
|
27267
|
+
z57.transform((v) => {
|
|
27268
|
+
return remap(v, {
|
|
27269
|
+
"credit_cost": "creditCost"
|
|
27270
|
+
});
|
|
27271
|
+
})
|
|
27272
|
+
);
|
|
27273
|
+
var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
|
|
27274
|
+
z57.object({
|
|
27275
|
+
metered_feature_id: string5(),
|
|
27276
|
+
billing_units: optional3(number2()),
|
|
27277
|
+
dimensions: optional3(z57.record(
|
|
27278
|
+
z57.string(),
|
|
27279
|
+
smartUnion([
|
|
27280
|
+
z57.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
|
|
27281
|
+
z57.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
|
|
27282
|
+
])
|
|
27283
|
+
)),
|
|
27284
|
+
multipliers: optional3(z57.record(
|
|
27285
|
+
z57.string(),
|
|
27286
|
+
z57.lazy(() => GetPlanLicenseMultipliers1$inboundSchema)
|
|
27287
|
+
)),
|
|
27288
|
+
tier_behavior: literal3("graduated"),
|
|
27289
|
+
tiers: z57.array(z57.lazy(
|
|
27290
|
+
() => GetPlanLicenseFeatureOverrideTier$inboundSchema
|
|
27291
|
+
))
|
|
27292
|
+
}),
|
|
27293
|
+
z57.transform((v) => {
|
|
27294
|
+
return remap(v, {
|
|
27295
|
+
"metered_feature_id": "meteredFeatureId",
|
|
27296
|
+
"billing_units": "billingUnits",
|
|
27297
|
+
"tier_behavior": "tierBehavior"
|
|
27298
|
+
});
|
|
27299
|
+
})
|
|
27300
|
+
);
|
|
27301
|
+
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
27302
|
+
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
27303
|
+
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
27304
|
+
]);
|
|
27305
|
+
var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
|
|
27306
|
+
markup: number2()
|
|
27307
|
+
});
|
|
27308
|
+
var GetPlanLicenseModelMarkups$inboundSchema = z57.pipe(
|
|
27309
|
+
z57.object({
|
|
27310
|
+
markup: optional3(number2()),
|
|
27311
|
+
input_cost: optional3(number2()),
|
|
27312
|
+
output_cost: optional3(number2())
|
|
27313
|
+
}),
|
|
27314
|
+
z57.transform((v) => {
|
|
27315
|
+
return remap(v, {
|
|
27316
|
+
"input_cost": "inputCost",
|
|
27317
|
+
"output_cost": "outputCost"
|
|
27318
|
+
});
|
|
27319
|
+
})
|
|
27320
|
+
);
|
|
27321
|
+
var GetPlanLicenseMarkups$inboundSchema = z57.pipe(
|
|
27322
|
+
z57.object({
|
|
27323
|
+
default_markup: optional3(number2()),
|
|
27324
|
+
provider_markups: z57.optional(z57.nullable(z57.record(
|
|
27325
|
+
z57.string(),
|
|
27326
|
+
z57.lazy(() => GetPlanLicenseProviderMarkups$inboundSchema)
|
|
27327
|
+
))),
|
|
27328
|
+
model_markups: z57.optional(z57.nullable(z57.record(
|
|
27329
|
+
z57.string(),
|
|
27330
|
+
z57.lazy(() => GetPlanLicenseModelMarkups$inboundSchema)
|
|
27331
|
+
)))
|
|
27332
|
+
}),
|
|
27333
|
+
z57.transform((v) => {
|
|
27334
|
+
return remap(v, {
|
|
27335
|
+
"default_markup": "defaultMarkup",
|
|
27336
|
+
"provider_markups": "providerMarkups",
|
|
27337
|
+
"model_markups": "modelMarkups"
|
|
27338
|
+
});
|
|
27339
|
+
})
|
|
27340
|
+
);
|
|
27341
|
+
var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
27342
|
+
z57.object({
|
|
27343
|
+
credit_schema: optional3(z57.array(smartUnion([
|
|
27344
|
+
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
27345
|
+
z57.lazy(
|
|
27346
|
+
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
27347
|
+
)
|
|
27348
|
+
]))),
|
|
27349
|
+
markups: optional3(z57.lazy(
|
|
27350
|
+
() => GetPlanLicenseMarkups$inboundSchema
|
|
27351
|
+
))
|
|
27352
|
+
}),
|
|
27353
|
+
z57.transform((v) => {
|
|
27354
|
+
return remap(v, {
|
|
27355
|
+
"credit_schema": "creditSchema"
|
|
27356
|
+
});
|
|
27357
|
+
})
|
|
27358
|
+
);
|
|
27359
|
+
var GetPlanLicensePlanItem$inboundSchema = z57.pipe(
|
|
27360
|
+
z57.object({
|
|
27361
|
+
threshold_billing: z57.optional(
|
|
27362
|
+
z57.nullable(z57.lazy(() => GetPlanLicenseThresholdBilling$inboundSchema))
|
|
27363
|
+
),
|
|
27364
|
+
feature_id: string5(),
|
|
27365
|
+
included: optional3(number2()),
|
|
27366
|
+
unlimited: optional3(boolean2()),
|
|
27367
|
+
pooled: z57._default(boolean2(), false),
|
|
27368
|
+
reset: optional3(z57.lazy(() => GetPlanLicenseReset$inboundSchema)),
|
|
27369
|
+
price: optional3(z57.lazy(() => GetPlanLicensePrice$inboundSchema)),
|
|
27370
|
+
proration: optional3(
|
|
27371
|
+
z57.lazy(() => GetPlanLicenseProration$inboundSchema)
|
|
27372
|
+
),
|
|
27373
|
+
rollover: optional3(
|
|
27374
|
+
z57.lazy(() => GetPlanLicenseRollover$inboundSchema)
|
|
27375
|
+
),
|
|
27376
|
+
expiry: optional3(z57.lazy(() => GetPlanLicenseExpiry$inboundSchema)),
|
|
27377
|
+
feature_override: optional3(
|
|
27378
|
+
z57.lazy(() => GetPlanLicenseFeatureOverride$inboundSchema)
|
|
27379
|
+
)
|
|
27380
|
+
}),
|
|
27381
|
+
z57.transform((v) => {
|
|
27382
|
+
return remap(v, {
|
|
27383
|
+
"threshold_billing": "thresholdBilling",
|
|
27384
|
+
"feature_id": "featureId",
|
|
27385
|
+
"feature_override": "featureOverride"
|
|
27386
|
+
});
|
|
27387
|
+
})
|
|
27388
|
+
);
|
|
27389
|
+
var GetPlanLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseRemoveItemBillingMethod);
|
|
27390
|
+
var GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum2);
|
|
27391
|
+
var GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum1);
|
|
27392
|
+
var GetPlanLicenseIntervalUnion$inboundSchema = smartUnion([
|
|
27393
|
+
GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
|
|
27394
|
+
GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
|
|
27395
|
+
]);
|
|
27396
|
+
var GetPlanLicensePlanItemFilter$inboundSchema = z57.pipe(
|
|
27397
|
+
z57.object({
|
|
27398
|
+
feature_id: optional3(string5()),
|
|
27399
|
+
billing_method: optional3(
|
|
27400
|
+
GetPlanLicenseRemoveItemBillingMethod$inboundSchema
|
|
27401
|
+
),
|
|
27402
|
+
interval: optional3(
|
|
27403
|
+
smartUnion([
|
|
27404
|
+
GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
|
|
27405
|
+
GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
|
|
27406
|
+
])
|
|
27407
|
+
),
|
|
27408
|
+
interval_count: optional3(number2()),
|
|
27409
|
+
included: optional3(number2())
|
|
27410
|
+
}),
|
|
27411
|
+
z57.transform((v) => {
|
|
27412
|
+
return remap(v, {
|
|
27413
|
+
"feature_id": "featureId",
|
|
27414
|
+
"billing_method": "billingMethod",
|
|
27415
|
+
"interval_count": "intervalCount"
|
|
27416
|
+
});
|
|
27417
|
+
})
|
|
27418
|
+
);
|
|
27419
|
+
var GetPlanLicenseCustomize$inboundSchema = z57.pipe(
|
|
27420
|
+
z57.object({
|
|
27421
|
+
price: z57.optional(
|
|
27422
|
+
z57.nullable(z57.lazy(() => GetPlanLicenseBasePrice$inboundSchema))
|
|
27423
|
+
),
|
|
27424
|
+
add_items: optional3(
|
|
27425
|
+
z57.array(z57.lazy(() => GetPlanLicensePlanItem$inboundSchema))
|
|
27426
|
+
),
|
|
27427
|
+
remove_items: optional3(
|
|
27428
|
+
z57.array(z57.lazy(() => GetPlanLicensePlanItemFilter$inboundSchema))
|
|
27429
|
+
)
|
|
27430
|
+
}),
|
|
27431
|
+
z57.transform((v) => {
|
|
27432
|
+
return remap(v, {
|
|
27433
|
+
"add_items": "addItems",
|
|
27434
|
+
"remove_items": "removeItems"
|
|
27435
|
+
});
|
|
27436
|
+
})
|
|
27437
|
+
);
|
|
27438
|
+
var GetPlanLicense$inboundSchema = z57.pipe(
|
|
27439
|
+
z57.object({
|
|
27440
|
+
license_plan_id: string5(),
|
|
27441
|
+
version: number2(),
|
|
27442
|
+
version_slug: optional3(string5()),
|
|
27443
|
+
included: number2(),
|
|
27444
|
+
prepaid_only: boolean2(),
|
|
27445
|
+
customize: optional3(
|
|
27446
|
+
z57.lazy(() => GetPlanLicenseCustomize$inboundSchema)
|
|
27447
|
+
),
|
|
27448
|
+
metadata: optional3(z57.record(z57.string(), z57.any())),
|
|
27449
|
+
plan: optional3(Plan$inboundSchema)
|
|
27450
|
+
}),
|
|
27451
|
+
z57.transform((v) => {
|
|
27452
|
+
return remap(v, {
|
|
27453
|
+
"license_plan_id": "licensePlanId",
|
|
27454
|
+
"version_slug": "versionSlug",
|
|
27455
|
+
"prepaid_only": "prepaidOnly"
|
|
27456
|
+
});
|
|
27457
|
+
})
|
|
27458
|
+
);
|
|
26273
27459
|
var GetPlanResponse$inboundSchema = z57.pipe(
|
|
26274
27460
|
z57.object({
|
|
26275
27461
|
id: string5(),
|
|
@@ -26297,6 +27483,9 @@ var GetPlanResponse$inboundSchema = z57.pipe(
|
|
|
26297
27483
|
base_variant_id: nullable(string5()),
|
|
26298
27484
|
variant_details: optional3(
|
|
26299
27485
|
z57.lazy(() => GetPlanVariantDetails$inboundSchema)
|
|
27486
|
+
),
|
|
27487
|
+
licenses: optional3(
|
|
27488
|
+
z57.array(z57.lazy(() => GetPlanLicense$inboundSchema))
|
|
26300
27489
|
)
|
|
26301
27490
|
}),
|
|
26302
27491
|
z57.transform((v) => {
|
|
@@ -42019,6 +43208,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
|
|
|
42019
43208
|
|
|
42020
43209
|
// ../sdk/src/models/reissue-invoice-op.ts
|
|
42021
43210
|
var z98 = __toESM(require("zod/v4-mini"), 1);
|
|
43211
|
+
var ReissueInvoiceIssueMethod = {
|
|
43212
|
+
Draft: "draft",
|
|
43213
|
+
Finalize: "finalize",
|
|
43214
|
+
Send: "send"
|
|
43215
|
+
};
|
|
42022
43216
|
var PaymentMethodType = {
|
|
42023
43217
|
Card: "card",
|
|
42024
43218
|
CustomerBalance: "customer_balance",
|
|
@@ -42085,6 +43279,7 @@ var ReissueInvoiceStatus = {
|
|
|
42085
43279
|
Complete: "complete",
|
|
42086
43280
|
Incomplete: "incomplete"
|
|
42087
43281
|
};
|
|
43282
|
+
var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
|
|
42088
43283
|
var CustomField$outboundSchema = z98.object({
|
|
42089
43284
|
name: z98.string(),
|
|
42090
43285
|
value: z98.string()
|
|
@@ -42676,6 +43871,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
|
|
|
42676
43871
|
invoiceTemplateId: z98.optional(z98.string()),
|
|
42677
43872
|
netTermsDays: z98.optional(z98.int()),
|
|
42678
43873
|
preview: z98.optional(z98.boolean()),
|
|
43874
|
+
issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
|
|
42679
43875
|
updateCustomerEmail: z98.optional(z98.string()),
|
|
42680
43876
|
invoice: z98.optional(
|
|
42681
43877
|
z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
|
|
@@ -42688,6 +43884,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
|
|
|
42688
43884
|
invoiceId: "invoice_id",
|
|
42689
43885
|
invoiceTemplateId: "invoice_template_id",
|
|
42690
43886
|
netTermsDays: "net_terms_days",
|
|
43887
|
+
issueMethod: "issue_method",
|
|
42691
43888
|
updateCustomerEmail: "update_customer_email"
|
|
42692
43889
|
});
|
|
42693
43890
|
})
|
|
@@ -48217,7 +49414,7 @@ var UpdatePlanDimensionsToItemRequestBodyEnum1 = {
|
|
|
48217
49414
|
var UpdatePlanToItemRequestBodyEnum = {
|
|
48218
49415
|
Inf: "inf"
|
|
48219
49416
|
};
|
|
48220
|
-
var
|
|
49417
|
+
var UpdatePlanPriceLicenseIntervalRequestBody = {
|
|
48221
49418
|
OneOff: "one_off",
|
|
48222
49419
|
Week: "week",
|
|
48223
49420
|
Month: "month",
|
|
@@ -48225,7 +49422,7 @@ var UpdatePlanPriceLicenseInterval = {
|
|
|
48225
49422
|
SemiAnnual: "semi_annual",
|
|
48226
49423
|
Year: "year"
|
|
48227
49424
|
};
|
|
48228
|
-
var
|
|
49425
|
+
var UpdatePlanLicenseResetIntervalRequestBody = {
|
|
48229
49426
|
OneOff: "one_off",
|
|
48230
49427
|
Minute: "minute",
|
|
48231
49428
|
Hour: "hour",
|
|
@@ -48236,11 +49433,11 @@ var UpdatePlanLicenseResetInterval = {
|
|
|
48236
49433
|
SemiAnnual: "semi_annual",
|
|
48237
49434
|
Year: "year"
|
|
48238
49435
|
};
|
|
48239
|
-
var
|
|
49436
|
+
var UpdatePlanLicenseTierBehaviorRequestBody = {
|
|
48240
49437
|
Graduated: "graduated",
|
|
48241
49438
|
Volume: "volume"
|
|
48242
49439
|
};
|
|
48243
|
-
var
|
|
49440
|
+
var UpdatePlanLicenseAddItemPriceIntervalRequestBody = {
|
|
48244
49441
|
OneOff: "one_off",
|
|
48245
49442
|
Week: "week",
|
|
48246
49443
|
Month: "month",
|
|
@@ -48248,47 +49445,47 @@ var UpdatePlanLicenseAddItemPriceInterval = {
|
|
|
48248
49445
|
SemiAnnual: "semi_annual",
|
|
48249
49446
|
Year: "year"
|
|
48250
49447
|
};
|
|
48251
|
-
var
|
|
49448
|
+
var UpdatePlanLicenseAddItemBillingMethodRequestBody = {
|
|
48252
49449
|
Prepaid: "prepaid",
|
|
48253
49450
|
UsageBased: "usage_based"
|
|
48254
49451
|
};
|
|
48255
|
-
var
|
|
49452
|
+
var UpdatePlanLicenseOnIncreaseRequestBody = {
|
|
48256
49453
|
BillImmediately: "bill_immediately",
|
|
48257
49454
|
ProrateImmediately: "prorate_immediately",
|
|
48258
49455
|
ProrateNextCycle: "prorate_next_cycle",
|
|
48259
49456
|
BillNextCycle: "bill_next_cycle"
|
|
48260
49457
|
};
|
|
48261
|
-
var
|
|
49458
|
+
var UpdatePlanLicenseOnDecreaseRequestBody = {
|
|
48262
49459
|
Prorate: "prorate",
|
|
48263
49460
|
ProrateImmediately: "prorate_immediately",
|
|
48264
49461
|
ProrateNextCycle: "prorate_next_cycle",
|
|
48265
49462
|
None: "none",
|
|
48266
49463
|
NoProrations: "no_prorations"
|
|
48267
49464
|
};
|
|
48268
|
-
var
|
|
49465
|
+
var UpdatePlanLicenseExpiryDurationTypeRequestBody = {
|
|
48269
49466
|
Month: "month",
|
|
48270
49467
|
Forever: "forever"
|
|
48271
49468
|
};
|
|
48272
|
-
var
|
|
49469
|
+
var UpdatePlanLicenseDurationRequestBody = {
|
|
48273
49470
|
Day: "day",
|
|
48274
49471
|
Week: "week",
|
|
48275
49472
|
Month: "month",
|
|
48276
49473
|
Year: "year"
|
|
48277
49474
|
};
|
|
48278
|
-
var
|
|
49475
|
+
var UpdatePlanDimensionsToLicenseRequestBodyEnum2 = {
|
|
48279
49476
|
Inf: "inf"
|
|
48280
49477
|
};
|
|
48281
|
-
var
|
|
49478
|
+
var UpdatePlanDimensionsToLicenseRequestBodyEnum1 = {
|
|
48282
49479
|
Inf: "inf"
|
|
48283
49480
|
};
|
|
48284
|
-
var
|
|
49481
|
+
var UpdatePlanToLicenseRequestBodyEnum = {
|
|
48285
49482
|
Inf: "inf"
|
|
48286
49483
|
};
|
|
48287
|
-
var
|
|
49484
|
+
var UpdatePlanLicenseRemoveItemBillingMethodRequestBody = {
|
|
48288
49485
|
Prepaid: "prepaid",
|
|
48289
49486
|
UsageBased: "usage_based"
|
|
48290
49487
|
};
|
|
48291
|
-
var
|
|
49488
|
+
var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2 = {
|
|
48292
49489
|
OneOff: "one_off",
|
|
48293
49490
|
Minute: "minute",
|
|
48294
49491
|
Hour: "hour",
|
|
@@ -48299,7 +49496,7 @@ var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
|
|
|
48299
49496
|
SemiAnnual: "semi_annual",
|
|
48300
49497
|
Year: "year"
|
|
48301
49498
|
};
|
|
48302
|
-
var
|
|
49499
|
+
var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1 = {
|
|
48303
49500
|
OneOff: "one_off",
|
|
48304
49501
|
Week: "week",
|
|
48305
49502
|
Month: "month",
|
|
@@ -48830,19 +50027,21 @@ var UpdatePlanItemPlanItem$outboundSchema = z113.pipe(
|
|
|
48830
50027
|
});
|
|
48831
50028
|
})
|
|
48832
50029
|
);
|
|
48833
|
-
var
|
|
48834
|
-
|
|
50030
|
+
var UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema = z113.enum(
|
|
50031
|
+
UpdatePlanPriceLicenseIntervalRequestBody
|
|
50032
|
+
);
|
|
50033
|
+
var UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z113.object({
|
|
48835
50034
|
currency: z113.string(),
|
|
48836
50035
|
amount: z113.number()
|
|
48837
50036
|
});
|
|
48838
|
-
var
|
|
50037
|
+
var UpdatePlanLicenseBasePriceRequestBody$outboundSchema = z113.pipe(
|
|
48839
50038
|
z113.object({
|
|
48840
50039
|
amount: z113.number(),
|
|
48841
|
-
interval:
|
|
50040
|
+
interval: UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema,
|
|
48842
50041
|
intervalCount: z113._default(z113.number(), 1),
|
|
48843
|
-
additionalCurrencies: z113.optional(
|
|
48844
|
-
|
|
48845
|
-
)
|
|
50042
|
+
additionalCurrencies: z113.optional(z113.array(z113.lazy(
|
|
50043
|
+
() => UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
|
|
50044
|
+
)))
|
|
48846
50045
|
}),
|
|
48847
50046
|
z113.transform((v) => {
|
|
48848
50047
|
return remap(v, {
|
|
@@ -48851,13 +50050,15 @@ var UpdatePlanLicenseBasePrice$outboundSchema = z113.pipe(
|
|
|
48851
50050
|
});
|
|
48852
50051
|
})
|
|
48853
50052
|
);
|
|
48854
|
-
var
|
|
50053
|
+
var UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema = z113.object({
|
|
48855
50054
|
threshold: z113.number()
|
|
48856
50055
|
});
|
|
48857
|
-
var
|
|
48858
|
-
|
|
50056
|
+
var UpdatePlanLicenseResetIntervalRequestBody$outboundSchema = z113.enum(
|
|
50057
|
+
UpdatePlanLicenseResetIntervalRequestBody
|
|
50058
|
+
);
|
|
50059
|
+
var UpdatePlanLicenseResetRequestBody$outboundSchema = z113.pipe(
|
|
48859
50060
|
z113.object({
|
|
48860
|
-
interval:
|
|
50061
|
+
interval: UpdatePlanLicenseResetIntervalRequestBody$outboundSchema,
|
|
48861
50062
|
intervalCount: z113._default(z113.number(), 1)
|
|
48862
50063
|
}),
|
|
48863
50064
|
z113.transform((v) => {
|
|
@@ -48866,12 +50067,12 @@ var UpdatePlanLicenseReset$outboundSchema = z113.pipe(
|
|
|
48866
50067
|
});
|
|
48867
50068
|
})
|
|
48868
50069
|
);
|
|
48869
|
-
var
|
|
50070
|
+
var UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema = z113.object({
|
|
48870
50071
|
currency: z113.string(),
|
|
48871
50072
|
amount: z113.number()
|
|
48872
50073
|
});
|
|
48873
|
-
var
|
|
48874
|
-
var
|
|
50074
|
+
var UpdatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z113.number(), z113.string()]);
|
|
50075
|
+
var UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z113.pipe(
|
|
48875
50076
|
z113.object({
|
|
48876
50077
|
currency: z113.string(),
|
|
48877
50078
|
amount: z113.optional(z113.number()),
|
|
@@ -48883,13 +50084,13 @@ var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z113.pipe(
|
|
|
48883
50084
|
});
|
|
48884
50085
|
})
|
|
48885
50086
|
);
|
|
48886
|
-
var
|
|
50087
|
+
var UpdatePlanLicensePriceTierRequestBody$outboundSchema = z113.pipe(
|
|
48887
50088
|
z113.object({
|
|
48888
50089
|
to: smartUnion([z113.number(), z113.string()]),
|
|
48889
50090
|
amount: z113.optional(z113.number()),
|
|
48890
50091
|
flatAmount: z113.optional(z113.number()),
|
|
48891
50092
|
additionalCurrencies: z113.optional(z113.array(z113.lazy(
|
|
48892
|
-
() =>
|
|
50093
|
+
() => UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
|
|
48893
50094
|
)))
|
|
48894
50095
|
}),
|
|
48895
50096
|
z113.transform((v) => {
|
|
@@ -48899,27 +50100,27 @@ var UpdatePlanLicensePriceTier$outboundSchema = z113.pipe(
|
|
|
48899
50100
|
});
|
|
48900
50101
|
})
|
|
48901
50102
|
);
|
|
48902
|
-
var
|
|
48903
|
-
|
|
48904
|
-
UpdatePlanLicenseAddItemPriceInterval
|
|
50103
|
+
var UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema = z113.enum(
|
|
50104
|
+
UpdatePlanLicenseTierBehaviorRequestBody
|
|
48905
50105
|
);
|
|
48906
|
-
var
|
|
48907
|
-
|
|
48908
|
-
|
|
48909
|
-
var UpdatePlanLicensePrice$outboundSchema = z113.pipe(
|
|
50106
|
+
var UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseAddItemPriceIntervalRequestBody);
|
|
50107
|
+
var UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseAddItemBillingMethodRequestBody);
|
|
50108
|
+
var UpdatePlanLicensePriceRequestBody$outboundSchema = z113.pipe(
|
|
48910
50109
|
z113.object({
|
|
48911
50110
|
amount: z113.optional(z113.number()),
|
|
48912
50111
|
additionalCurrencies: z113.optional(z113.array(z113.lazy(
|
|
48913
|
-
() =>
|
|
50112
|
+
() => UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema
|
|
48914
50113
|
))),
|
|
48915
50114
|
tiers: z113.optional(z113.array(z113.lazy(
|
|
48916
|
-
() =>
|
|
50115
|
+
() => UpdatePlanLicensePriceTierRequestBody$outboundSchema
|
|
48917
50116
|
))),
|
|
48918
|
-
tierBehavior: z113.optional(
|
|
48919
|
-
|
|
50117
|
+
tierBehavior: z113.optional(
|
|
50118
|
+
UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema
|
|
50119
|
+
),
|
|
50120
|
+
interval: UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema,
|
|
48920
50121
|
intervalCount: z113._default(z113.number(), 1),
|
|
48921
50122
|
billingUnits: z113._default(z113.number(), 1),
|
|
48922
|
-
billingMethod:
|
|
50123
|
+
billingMethod: UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema,
|
|
48923
50124
|
maxPurchase: z113.optional(z113.nullable(z113.number()))
|
|
48924
50125
|
}),
|
|
48925
50126
|
z113.transform((v) => {
|
|
@@ -48933,12 +50134,16 @@ var UpdatePlanLicensePrice$outboundSchema = z113.pipe(
|
|
|
48933
50134
|
});
|
|
48934
50135
|
})
|
|
48935
50136
|
);
|
|
48936
|
-
var
|
|
48937
|
-
|
|
48938
|
-
|
|
50137
|
+
var UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema = z113.enum(
|
|
50138
|
+
UpdatePlanLicenseOnIncreaseRequestBody
|
|
50139
|
+
);
|
|
50140
|
+
var UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema = z113.enum(
|
|
50141
|
+
UpdatePlanLicenseOnDecreaseRequestBody
|
|
50142
|
+
);
|
|
50143
|
+
var UpdatePlanLicenseProrationRequestBody$outboundSchema = z113.pipe(
|
|
48939
50144
|
z113.object({
|
|
48940
|
-
onIncrease:
|
|
48941
|
-
onDecrease:
|
|
50145
|
+
onIncrease: UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema,
|
|
50146
|
+
onDecrease: UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema
|
|
48942
50147
|
}),
|
|
48943
50148
|
z113.transform((v) => {
|
|
48944
50149
|
return remap(v, {
|
|
@@ -48947,12 +50152,14 @@ var UpdatePlanLicenseProration$outboundSchema = z113.pipe(
|
|
|
48947
50152
|
});
|
|
48948
50153
|
})
|
|
48949
50154
|
);
|
|
48950
|
-
var
|
|
48951
|
-
|
|
50155
|
+
var UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z113.enum(
|
|
50156
|
+
UpdatePlanLicenseExpiryDurationTypeRequestBody
|
|
50157
|
+
);
|
|
50158
|
+
var UpdatePlanLicenseRolloverRequestBody$outboundSchema = z113.pipe(
|
|
48952
50159
|
z113.object({
|
|
48953
50160
|
max: z113.optional(z113.number()),
|
|
48954
50161
|
maxPercentage: z113.optional(z113.number()),
|
|
48955
|
-
expiryDurationType:
|
|
50162
|
+
expiryDurationType: UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
|
|
48956
50163
|
expiryDurationLength: z113.optional(z113.number())
|
|
48957
50164
|
}),
|
|
48958
50165
|
z113.transform((v) => {
|
|
@@ -48963,13 +50170,13 @@ var UpdatePlanLicenseRollover$outboundSchema = z113.pipe(
|
|
|
48963
50170
|
});
|
|
48964
50171
|
})
|
|
48965
50172
|
);
|
|
48966
|
-
var
|
|
48967
|
-
var
|
|
48968
|
-
duration:
|
|
50173
|
+
var UpdatePlanLicenseDurationRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseDurationRequestBody);
|
|
50174
|
+
var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z113.object({
|
|
50175
|
+
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
48969
50176
|
length: z113.number()
|
|
48970
50177
|
});
|
|
48971
50178
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
48972
|
-
var
|
|
50179
|
+
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z113.pipe(
|
|
48973
50180
|
z113.object({
|
|
48974
50181
|
match: z113.record(
|
|
48975
50182
|
z113.string(),
|
|
@@ -48985,13 +50192,18 @@ var UpdatePlanDimensionsLicense4$outboundSchema = z113.pipe(
|
|
|
48985
50192
|
})
|
|
48986
50193
|
);
|
|
48987
50194
|
var UpdatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
48988
|
-
var
|
|
48989
|
-
|
|
48990
|
-
|
|
50195
|
+
var UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z113.enum(
|
|
50196
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum2
|
|
50197
|
+
);
|
|
50198
|
+
var UpdatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
|
|
50199
|
+
z113.number(),
|
|
50200
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
|
|
50201
|
+
]);
|
|
50202
|
+
var UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z113.pipe(
|
|
48991
50203
|
z113.object({
|
|
48992
50204
|
to: smartUnion([
|
|
48993
50205
|
z113.number(),
|
|
48994
|
-
|
|
50206
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
|
|
48995
50207
|
]),
|
|
48996
50208
|
creditCost: z113.number()
|
|
48997
50209
|
}),
|
|
@@ -49001,7 +50213,7 @@ var UpdatePlanDimensionsLicenseTier2$outboundSchema = z113.pipe(
|
|
|
49001
50213
|
});
|
|
49002
50214
|
})
|
|
49003
50215
|
);
|
|
49004
|
-
var
|
|
50216
|
+
var UpdatePlanDimensionsLicenseRequestBody3$outboundSchema = z113.pipe(
|
|
49005
50217
|
z113.object({
|
|
49006
50218
|
match: z113.record(
|
|
49007
50219
|
z113.string(),
|
|
@@ -49010,7 +50222,9 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
|
|
|
49010
50222
|
priority: z113.optional(z113.int()),
|
|
49011
50223
|
tierBehavior: z113.literal("graduated"),
|
|
49012
50224
|
tiers: z113.array(
|
|
49013
|
-
z113.lazy(
|
|
50225
|
+
z113.lazy(
|
|
50226
|
+
() => UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema
|
|
50227
|
+
)
|
|
49014
50228
|
)
|
|
49015
50229
|
}),
|
|
49016
50230
|
z113.transform((v) => {
|
|
@@ -49019,12 +50233,12 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
|
|
|
49019
50233
|
});
|
|
49020
50234
|
})
|
|
49021
50235
|
);
|
|
49022
|
-
var
|
|
49023
|
-
z113.lazy(() =>
|
|
49024
|
-
z113.lazy(() =>
|
|
50236
|
+
var UpdatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
|
|
50237
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
|
|
50238
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
|
|
49025
50239
|
]);
|
|
49026
50240
|
var UpdatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
49027
|
-
var
|
|
50241
|
+
var UpdatePlanLicenseMultipliersRequestBody2$outboundSchema = z113.object({
|
|
49028
50242
|
match: z113.record(
|
|
49029
50243
|
z113.string(),
|
|
49030
50244
|
smartUnion([z113.string(), z113.number(), z113.boolean()])
|
|
@@ -49032,20 +50246,20 @@ var UpdatePlanLicenseMultipliers2$outboundSchema = z113.object({
|
|
|
49032
50246
|
factor: z113.optional(z113.number()),
|
|
49033
50247
|
add: z113.optional(z113.number())
|
|
49034
50248
|
});
|
|
49035
|
-
var
|
|
50249
|
+
var UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z113.pipe(
|
|
49036
50250
|
z113.object({
|
|
49037
50251
|
meteredFeatureId: z113.string(),
|
|
49038
50252
|
billingUnits: z113.optional(z113.number()),
|
|
49039
50253
|
dimensions: z113.optional(z113.record(
|
|
49040
50254
|
z113.string(),
|
|
49041
50255
|
smartUnion([
|
|
49042
|
-
z113.lazy(() =>
|
|
49043
|
-
z113.lazy(() =>
|
|
50256
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
|
|
50257
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
|
|
49044
50258
|
])
|
|
49045
50259
|
)),
|
|
49046
50260
|
multipliers: z113.optional(z113.record(
|
|
49047
50261
|
z113.string(),
|
|
49048
|
-
z113.lazy(() =>
|
|
50262
|
+
z113.lazy(() => UpdatePlanLicenseMultipliersRequestBody2$outboundSchema)
|
|
49049
50263
|
)),
|
|
49050
50264
|
creditCost: z113.number()
|
|
49051
50265
|
}),
|
|
@@ -49058,7 +50272,7 @@ var UpdatePlanCreditSchemaLicense2$outboundSchema = z113.pipe(
|
|
|
49058
50272
|
})
|
|
49059
50273
|
);
|
|
49060
50274
|
var UpdatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
49061
|
-
var
|
|
50275
|
+
var UpdatePlanDimensionsLicenseRequestBody2$outboundSchema = z113.pipe(
|
|
49062
50276
|
z113.object({
|
|
49063
50277
|
match: z113.record(
|
|
49064
50278
|
z113.string(),
|
|
@@ -49074,13 +50288,18 @@ var UpdatePlanDimensionsLicense2$outboundSchema = z113.pipe(
|
|
|
49074
50288
|
})
|
|
49075
50289
|
);
|
|
49076
50290
|
var UpdatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
49077
|
-
var
|
|
49078
|
-
|
|
49079
|
-
|
|
50291
|
+
var UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z113.enum(
|
|
50292
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum1
|
|
50293
|
+
);
|
|
50294
|
+
var UpdatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
|
|
50295
|
+
z113.number(),
|
|
50296
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
|
|
50297
|
+
]);
|
|
50298
|
+
var UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z113.pipe(
|
|
49080
50299
|
z113.object({
|
|
49081
50300
|
to: smartUnion([
|
|
49082
50301
|
z113.number(),
|
|
49083
|
-
|
|
50302
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
|
|
49084
50303
|
]),
|
|
49085
50304
|
creditCost: z113.number()
|
|
49086
50305
|
}),
|
|
@@ -49090,7 +50309,7 @@ var UpdatePlanDimensionsLicenseTier1$outboundSchema = z113.pipe(
|
|
|
49090
50309
|
});
|
|
49091
50310
|
})
|
|
49092
50311
|
);
|
|
49093
|
-
var
|
|
50312
|
+
var UpdatePlanDimensionsLicenseRequestBody1$outboundSchema = z113.pipe(
|
|
49094
50313
|
z113.object({
|
|
49095
50314
|
match: z113.record(
|
|
49096
50315
|
z113.string(),
|
|
@@ -49099,7 +50318,9 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
|
|
|
49099
50318
|
priority: z113.optional(z113.int()),
|
|
49100
50319
|
tierBehavior: z113.literal("graduated"),
|
|
49101
50320
|
tiers: z113.array(
|
|
49102
|
-
z113.lazy(
|
|
50321
|
+
z113.lazy(
|
|
50322
|
+
() => UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema
|
|
50323
|
+
)
|
|
49103
50324
|
)
|
|
49104
50325
|
}),
|
|
49105
50326
|
z113.transform((v) => {
|
|
@@ -49108,12 +50329,12 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
|
|
|
49108
50329
|
});
|
|
49109
50330
|
})
|
|
49110
50331
|
);
|
|
49111
|
-
var
|
|
49112
|
-
z113.lazy(() =>
|
|
49113
|
-
z113.lazy(() =>
|
|
50332
|
+
var UpdatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
|
|
50333
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
|
|
50334
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
|
|
49114
50335
|
]);
|
|
49115
50336
|
var UpdatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
49116
|
-
var
|
|
50337
|
+
var UpdatePlanLicenseMultipliersRequestBody1$outboundSchema = z113.object({
|
|
49117
50338
|
match: z113.record(
|
|
49118
50339
|
z113.string(),
|
|
49119
50340
|
smartUnion([z113.string(), z113.number(), z113.boolean()])
|
|
@@ -49121,11 +50342,17 @@ var UpdatePlanLicenseMultipliers1$outboundSchema = z113.object({
|
|
|
49121
50342
|
factor: z113.optional(z113.number()),
|
|
49122
50343
|
add: z113.optional(z113.number())
|
|
49123
50344
|
});
|
|
49124
|
-
var
|
|
49125
|
-
var
|
|
49126
|
-
|
|
50345
|
+
var UpdatePlanToLicenseRequestBodyEnum$outboundSchema = z113.enum(UpdatePlanToLicenseRequestBodyEnum);
|
|
50346
|
+
var UpdatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
|
|
50347
|
+
z113.number(),
|
|
50348
|
+
UpdatePlanToLicenseRequestBodyEnum$outboundSchema
|
|
50349
|
+
]);
|
|
50350
|
+
var UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z113.pipe(
|
|
49127
50351
|
z113.object({
|
|
49128
|
-
to: smartUnion([
|
|
50352
|
+
to: smartUnion([
|
|
50353
|
+
z113.number(),
|
|
50354
|
+
UpdatePlanToLicenseRequestBodyEnum$outboundSchema
|
|
50355
|
+
]),
|
|
49129
50356
|
creditCost: z113.number()
|
|
49130
50357
|
}),
|
|
49131
50358
|
z113.transform((v) => {
|
|
@@ -49134,24 +50361,24 @@ var UpdatePlanLicenseFeatureOverrideTier$outboundSchema = z113.pipe(
|
|
|
49134
50361
|
});
|
|
49135
50362
|
})
|
|
49136
50363
|
);
|
|
49137
|
-
var
|
|
50364
|
+
var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z113.pipe(
|
|
49138
50365
|
z113.object({
|
|
49139
50366
|
meteredFeatureId: z113.string(),
|
|
49140
50367
|
billingUnits: z113.optional(z113.number()),
|
|
49141
50368
|
dimensions: z113.optional(z113.record(
|
|
49142
50369
|
z113.string(),
|
|
49143
50370
|
smartUnion([
|
|
49144
|
-
z113.lazy(() =>
|
|
49145
|
-
z113.lazy(() =>
|
|
50371
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
|
|
50372
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
|
|
49146
50373
|
])
|
|
49147
50374
|
)),
|
|
49148
50375
|
multipliers: z113.optional(z113.record(
|
|
49149
50376
|
z113.string(),
|
|
49150
|
-
z113.lazy(() =>
|
|
50377
|
+
z113.lazy(() => UpdatePlanLicenseMultipliersRequestBody1$outboundSchema)
|
|
49151
50378
|
)),
|
|
49152
50379
|
tierBehavior: z113.literal("graduated"),
|
|
49153
50380
|
tiers: z113.array(z113.lazy(
|
|
49154
|
-
() =>
|
|
50381
|
+
() => UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
|
|
49155
50382
|
))
|
|
49156
50383
|
}),
|
|
49157
50384
|
z113.transform((v) => {
|
|
@@ -49162,14 +50389,14 @@ var UpdatePlanCreditSchemaLicense1$outboundSchema = z113.pipe(
|
|
|
49162
50389
|
});
|
|
49163
50390
|
})
|
|
49164
50391
|
);
|
|
49165
|
-
var
|
|
49166
|
-
z113.lazy(() =>
|
|
49167
|
-
z113.lazy(() =>
|
|
50392
|
+
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
50393
|
+
z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
50394
|
+
z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
49168
50395
|
]);
|
|
49169
|
-
var
|
|
50396
|
+
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z113.object({
|
|
49170
50397
|
markup: z113.number()
|
|
49171
50398
|
});
|
|
49172
|
-
var
|
|
50399
|
+
var UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema = z113.pipe(
|
|
49173
50400
|
z113.object({
|
|
49174
50401
|
markup: z113.optional(z113.number()),
|
|
49175
50402
|
inputCost: z113.optional(z113.number()),
|
|
@@ -49182,16 +50409,16 @@ var UpdatePlanLicenseModelMarkups$outboundSchema = z113.pipe(
|
|
|
49182
50409
|
});
|
|
49183
50410
|
})
|
|
49184
50411
|
);
|
|
49185
|
-
var
|
|
50412
|
+
var UpdatePlanLicenseMarkupsRequestBody$outboundSchema = z113.pipe(
|
|
49186
50413
|
z113.object({
|
|
49187
50414
|
defaultMarkup: z113.optional(z113.number()),
|
|
49188
50415
|
providerMarkups: z113.optional(z113.nullable(z113.record(
|
|
49189
50416
|
z113.string(),
|
|
49190
|
-
z113.lazy(() =>
|
|
50417
|
+
z113.lazy(() => UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
|
|
49191
50418
|
))),
|
|
49192
50419
|
modelMarkups: z113.optional(z113.nullable(z113.record(
|
|
49193
50420
|
z113.string(),
|
|
49194
|
-
z113.lazy(() =>
|
|
50421
|
+
z113.lazy(() => UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema)
|
|
49195
50422
|
)))
|
|
49196
50423
|
}),
|
|
49197
50424
|
z113.transform((v) => {
|
|
@@ -49202,16 +50429,16 @@ var UpdatePlanLicenseMarkups$outboundSchema = z113.pipe(
|
|
|
49202
50429
|
});
|
|
49203
50430
|
})
|
|
49204
50431
|
);
|
|
49205
|
-
var
|
|
50432
|
+
var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z113.pipe(
|
|
49206
50433
|
z113.object({
|
|
49207
50434
|
creditSchema: z113.optional(z113.array(smartUnion([
|
|
49208
|
-
z113.lazy(() =>
|
|
50435
|
+
z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
49209
50436
|
z113.lazy(
|
|
49210
|
-
() =>
|
|
50437
|
+
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
49211
50438
|
)
|
|
49212
50439
|
]))),
|
|
49213
50440
|
markups: z113.optional(z113.lazy(
|
|
49214
|
-
() =>
|
|
50441
|
+
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
49215
50442
|
))
|
|
49216
50443
|
}),
|
|
49217
50444
|
z113.transform((v) => {
|
|
@@ -49220,29 +50447,33 @@ var UpdatePlanLicenseFeatureOverride$outboundSchema = z113.pipe(
|
|
|
49220
50447
|
});
|
|
49221
50448
|
})
|
|
49222
50449
|
);
|
|
49223
|
-
var
|
|
50450
|
+
var UpdatePlanLicensePlanItemRequestBody$outboundSchema = z113.pipe(
|
|
49224
50451
|
z113.object({
|
|
49225
|
-
thresholdBilling: z113.optional(
|
|
49226
|
-
|
|
49227
|
-
|
|
49228
|
-
)
|
|
49229
|
-
),
|
|
50452
|
+
thresholdBilling: z113.optional(z113.nullable(z113.lazy(
|
|
50453
|
+
() => UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema
|
|
50454
|
+
))),
|
|
49230
50455
|
featureId: z113.string(),
|
|
49231
50456
|
included: z113.optional(z113.number()),
|
|
49232
50457
|
unlimited: z113.optional(z113.boolean()),
|
|
49233
50458
|
pooled: z113._default(z113.boolean(), false),
|
|
49234
|
-
reset: z113.optional(z113.lazy(
|
|
49235
|
-
|
|
49236
|
-
|
|
49237
|
-
|
|
49238
|
-
|
|
49239
|
-
|
|
49240
|
-
|
|
49241
|
-
|
|
49242
|
-
|
|
49243
|
-
|
|
49244
|
-
|
|
49245
|
-
)
|
|
50459
|
+
reset: z113.optional(z113.lazy(
|
|
50460
|
+
() => UpdatePlanLicenseResetRequestBody$outboundSchema
|
|
50461
|
+
)),
|
|
50462
|
+
price: z113.optional(z113.lazy(
|
|
50463
|
+
() => UpdatePlanLicensePriceRequestBody$outboundSchema
|
|
50464
|
+
)),
|
|
50465
|
+
proration: z113.optional(z113.lazy(
|
|
50466
|
+
() => UpdatePlanLicenseProrationRequestBody$outboundSchema
|
|
50467
|
+
)),
|
|
50468
|
+
rollover: z113.optional(z113.lazy(
|
|
50469
|
+
() => UpdatePlanLicenseRolloverRequestBody$outboundSchema
|
|
50470
|
+
)),
|
|
50471
|
+
expiry: z113.optional(z113.lazy(
|
|
50472
|
+
() => UpdatePlanLicenseExpiryRequestBody$outboundSchema
|
|
50473
|
+
)),
|
|
50474
|
+
featureOverride: z113.optional(z113.lazy(
|
|
50475
|
+
() => UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema
|
|
50476
|
+
))
|
|
49246
50477
|
}),
|
|
49247
50478
|
z113.transform((v) => {
|
|
49248
50479
|
return remap(v, {
|
|
@@ -49252,29 +50483,23 @@ var UpdatePlanLicensePlanItem$outboundSchema = z113.pipe(
|
|
|
49252
50483
|
});
|
|
49253
50484
|
})
|
|
49254
50485
|
);
|
|
49255
|
-
var
|
|
49256
|
-
|
|
49257
|
-
);
|
|
49258
|
-
var
|
|
49259
|
-
|
|
49260
|
-
|
|
49261
|
-
var UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z113.enum(
|
|
49262
|
-
UpdatePlanIntervalLicenseRemoveItemEnum1
|
|
49263
|
-
);
|
|
49264
|
-
var UpdatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
|
|
49265
|
-
UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
|
|
49266
|
-
UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
|
|
50486
|
+
var UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseRemoveItemBillingMethodRequestBody);
|
|
50487
|
+
var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema = z113.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2);
|
|
50488
|
+
var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema = z113.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1);
|
|
50489
|
+
var UpdatePlanLicenseIntervalRequestBodyUnion$outboundSchema = smartUnion([
|
|
50490
|
+
UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
|
|
50491
|
+
UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
|
|
49267
50492
|
]);
|
|
49268
|
-
var
|
|
50493
|
+
var UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema = z113.pipe(
|
|
49269
50494
|
z113.object({
|
|
49270
50495
|
featureId: z113.optional(z113.string()),
|
|
49271
50496
|
billingMethod: z113.optional(
|
|
49272
|
-
|
|
50497
|
+
UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema
|
|
49273
50498
|
),
|
|
49274
50499
|
interval: z113.optional(
|
|
49275
50500
|
smartUnion([
|
|
49276
|
-
|
|
49277
|
-
|
|
50501
|
+
UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
|
|
50502
|
+
UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
|
|
49278
50503
|
])
|
|
49279
50504
|
),
|
|
49280
50505
|
intervalCount: z113.optional(z113.int()),
|
|
@@ -49288,17 +50513,17 @@ var UpdatePlanLicensePlanItemFilter$outboundSchema = z113.pipe(
|
|
|
49288
50513
|
});
|
|
49289
50514
|
})
|
|
49290
50515
|
);
|
|
49291
|
-
var
|
|
50516
|
+
var UpdatePlanLicenseCustomizeRequestBody$outboundSchema = z113.pipe(
|
|
49292
50517
|
z113.object({
|
|
49293
|
-
price: z113.optional(
|
|
49294
|
-
|
|
49295
|
-
),
|
|
49296
|
-
addItems: z113.optional(
|
|
49297
|
-
|
|
49298
|
-
),
|
|
49299
|
-
removeItems: z113.optional(
|
|
49300
|
-
|
|
49301
|
-
)
|
|
50518
|
+
price: z113.optional(z113.nullable(z113.lazy(
|
|
50519
|
+
() => UpdatePlanLicenseBasePriceRequestBody$outboundSchema
|
|
50520
|
+
))),
|
|
50521
|
+
addItems: z113.optional(z113.array(z113.lazy(
|
|
50522
|
+
() => UpdatePlanLicensePlanItemRequestBody$outboundSchema
|
|
50523
|
+
))),
|
|
50524
|
+
removeItems: z113.optional(z113.array(z113.lazy(
|
|
50525
|
+
() => UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema
|
|
50526
|
+
)))
|
|
49302
50527
|
}),
|
|
49303
50528
|
z113.transform((v) => {
|
|
49304
50529
|
return remap(v, {
|
|
@@ -49307,15 +50532,15 @@ var UpdatePlanLicenseCustomize$outboundSchema = z113.pipe(
|
|
|
49307
50532
|
});
|
|
49308
50533
|
})
|
|
49309
50534
|
);
|
|
49310
|
-
var
|
|
50535
|
+
var UpdatePlanLicenseRequest$outboundSchema = z113.pipe(
|
|
49311
50536
|
z113.object({
|
|
49312
50537
|
licensePlanId: z113.string(),
|
|
49313
50538
|
versionSlug: z113.optional(z113.string()),
|
|
49314
50539
|
included: z113.optional(z113.int()),
|
|
49315
50540
|
prepaidOnly: z113.optional(z113.boolean()),
|
|
49316
|
-
customize: z113.optional(
|
|
49317
|
-
|
|
49318
|
-
),
|
|
50541
|
+
customize: z113.optional(z113.nullable(z113.lazy(
|
|
50542
|
+
() => UpdatePlanLicenseCustomizeRequestBody$outboundSchema
|
|
50543
|
+
))),
|
|
49319
50544
|
metadata: z113.optional(z113.record(z113.string(), z113.any()))
|
|
49320
50545
|
}),
|
|
49321
50546
|
z113.transform((v) => {
|
|
@@ -51004,7 +52229,7 @@ var UpdatePlanParams$outboundSchema = z114.pipe(
|
|
|
51004
52229
|
z114.nullable(UpdatePlanBasePriceRequestBody$outboundSchema)
|
|
51005
52230
|
),
|
|
51006
52231
|
items: z114.optional(z114.array(UpdatePlanItemPlanItem$outboundSchema)),
|
|
51007
|
-
licenses: z114.optional(z114.array(
|
|
52232
|
+
licenses: z114.optional(z114.array(UpdatePlanLicenseRequest$outboundSchema)),
|
|
51008
52233
|
freeTrial: z114.optional(
|
|
51009
52234
|
z114.nullable(UpdatePlanFreeTrialParamsRequestBody$outboundSchema)
|
|
51010
52235
|
),
|
|
@@ -51312,17 +52537,17 @@ var UpdatePlanVariantDetailsAddItemPriceInterval = {
|
|
|
51312
52537
|
SemiAnnual: "semi_annual",
|
|
51313
52538
|
Year: "year"
|
|
51314
52539
|
};
|
|
51315
|
-
var
|
|
52540
|
+
var UpdatePlanVariantDetailsAddItemBillingMethod = {
|
|
51316
52541
|
Prepaid: "prepaid",
|
|
51317
52542
|
UsageBased: "usage_based"
|
|
51318
52543
|
};
|
|
51319
|
-
var
|
|
52544
|
+
var UpdatePlanVariantDetailsOnIncrease = {
|
|
51320
52545
|
BillImmediately: "bill_immediately",
|
|
51321
52546
|
ProrateImmediately: "prorate_immediately",
|
|
51322
52547
|
ProrateNextCycle: "prorate_next_cycle",
|
|
51323
52548
|
BillNextCycle: "bill_next_cycle"
|
|
51324
52549
|
};
|
|
51325
|
-
var
|
|
52550
|
+
var UpdatePlanVariantDetailsOnDecrease = {
|
|
51326
52551
|
Prorate: "prorate",
|
|
51327
52552
|
ProrateImmediately: "prorate_immediately",
|
|
51328
52553
|
ProrateNextCycle: "prorate_next_cycle",
|
|
@@ -51348,7 +52573,7 @@ var UpdatePlanDimensionsToVariantDetailsEnum1 = {
|
|
|
51348
52573
|
var UpdatePlanToVariantDetailsEnum = {
|
|
51349
52574
|
Inf: "inf"
|
|
51350
52575
|
};
|
|
51351
|
-
var
|
|
52576
|
+
var UpdatePlanVariantDetailsRemoveItemBillingMethod = {
|
|
51352
52577
|
Prepaid: "prepaid",
|
|
51353
52578
|
UsageBased: "usage_based"
|
|
51354
52579
|
};
|
|
@@ -51443,7 +52668,7 @@ var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval = {
|
|
|
51443
52668
|
SemiAnnual: "semi_annual",
|
|
51444
52669
|
Year: "year"
|
|
51445
52670
|
};
|
|
51446
|
-
var
|
|
52671
|
+
var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod = {
|
|
51447
52672
|
Prepaid: "prepaid",
|
|
51448
52673
|
UsageBased: "usage_based"
|
|
51449
52674
|
};
|
|
@@ -51460,7 +52685,7 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
51460
52685
|
None: "none",
|
|
51461
52686
|
NoProrations: "no_prorations"
|
|
51462
52687
|
};
|
|
51463
|
-
var
|
|
52688
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
51464
52689
|
Month: "month",
|
|
51465
52690
|
Forever: "forever"
|
|
51466
52691
|
};
|
|
@@ -52047,7 +53272,7 @@ var UpdatePlanVariantDetailsAdditionalCurrency$inboundSchema = z115.object(
|
|
|
52047
53272
|
amount: number2()
|
|
52048
53273
|
}
|
|
52049
53274
|
);
|
|
52050
|
-
var
|
|
53275
|
+
var UpdatePlanVariantDetailsBasePrice$inboundSchema = z115.pipe(
|
|
52051
53276
|
z115.object({
|
|
52052
53277
|
amount: number2(),
|
|
52053
53278
|
interval: UpdatePlanPriceVariantDetailsInterval$inboundSchema,
|
|
@@ -52078,7 +53303,7 @@ var UpdatePlanVariantDetailsReset$inboundSchema = z115.pipe(
|
|
|
52078
53303
|
});
|
|
52079
53304
|
})
|
|
52080
53305
|
);
|
|
52081
|
-
var
|
|
53306
|
+
var UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z115.object({
|
|
52082
53307
|
currency: string5(),
|
|
52083
53308
|
amount: number2()
|
|
52084
53309
|
});
|
|
@@ -52113,12 +53338,12 @@ var UpdatePlanVariantDetailsPriceTier$inboundSchema = z115.pipe(
|
|
|
52113
53338
|
);
|
|
52114
53339
|
var UpdatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(UpdatePlanVariantDetailsTierBehavior);
|
|
52115
53340
|
var UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemPriceInterval);
|
|
52116
|
-
var
|
|
53341
|
+
var UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemBillingMethod);
|
|
52117
53342
|
var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
|
|
52118
53343
|
z115.object({
|
|
52119
53344
|
amount: optional3(number2()),
|
|
52120
53345
|
additional_currencies: optional3(z115.array(z115.lazy(
|
|
52121
|
-
() =>
|
|
53346
|
+
() => UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
|
|
52122
53347
|
))),
|
|
52123
53348
|
tiers: optional3(z115.array(z115.lazy(
|
|
52124
53349
|
() => UpdatePlanVariantDetailsPriceTier$inboundSchema
|
|
@@ -52129,7 +53354,7 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
|
|
|
52129
53354
|
interval: UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
|
|
52130
53355
|
interval_count: z115._default(number2(), 1),
|
|
52131
53356
|
billing_units: z115._default(number2(), 1),
|
|
52132
|
-
billing_method:
|
|
53357
|
+
billing_method: UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
|
|
52133
53358
|
max_purchase: z115.optional(z115.nullable(number2()))
|
|
52134
53359
|
}),
|
|
52135
53360
|
z115.transform((v) => {
|
|
@@ -52143,12 +53368,12 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
|
|
|
52143
53368
|
});
|
|
52144
53369
|
})
|
|
52145
53370
|
);
|
|
52146
|
-
var
|
|
52147
|
-
var
|
|
52148
|
-
var
|
|
53371
|
+
var UpdatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnIncrease);
|
|
53372
|
+
var UpdatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnDecrease);
|
|
53373
|
+
var UpdatePlanVariantDetailsProration$inboundSchema = z115.pipe(
|
|
52149
53374
|
z115.object({
|
|
52150
|
-
on_increase:
|
|
52151
|
-
on_decrease:
|
|
53375
|
+
on_increase: UpdatePlanVariantDetailsOnIncrease$inboundSchema,
|
|
53376
|
+
on_decrease: UpdatePlanVariantDetailsOnDecrease$inboundSchema
|
|
52152
53377
|
}),
|
|
52153
53378
|
z115.transform((v) => {
|
|
52154
53379
|
return remap(v, {
|
|
@@ -52423,7 +53648,7 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z115.pipe(
|
|
|
52423
53648
|
});
|
|
52424
53649
|
})
|
|
52425
53650
|
);
|
|
52426
|
-
var
|
|
53651
|
+
var UpdatePlanVariantDetailsPlanItem$inboundSchema = z115.pipe(
|
|
52427
53652
|
z115.object({
|
|
52428
53653
|
threshold_billing: z115.optional(z115.nullable(z115.lazy(
|
|
52429
53654
|
() => UpdatePlanVariantDetailsThresholdBilling$inboundSchema
|
|
@@ -52439,7 +53664,7 @@ var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
|
|
|
52439
53664
|
() => UpdatePlanVariantDetailsPrice$inboundSchema
|
|
52440
53665
|
)),
|
|
52441
53666
|
proration: optional3(z115.lazy(
|
|
52442
|
-
() =>
|
|
53667
|
+
() => UpdatePlanVariantDetailsProration$inboundSchema
|
|
52443
53668
|
)),
|
|
52444
53669
|
rollover: optional3(z115.lazy(
|
|
52445
53670
|
() => UpdatePlanVariantDetailsRollover$inboundSchema
|
|
@@ -52459,18 +53684,18 @@ var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
|
|
|
52459
53684
|
});
|
|
52460
53685
|
})
|
|
52461
53686
|
);
|
|
52462
|
-
var
|
|
53687
|
+
var UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsRemoveItemBillingMethod);
|
|
52463
53688
|
var UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum2);
|
|
52464
53689
|
var UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum1);
|
|
52465
53690
|
var UpdatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
|
|
52466
53691
|
UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
|
|
52467
53692
|
UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
|
|
52468
53693
|
]);
|
|
52469
|
-
var
|
|
53694
|
+
var UpdatePlanVariantDetailsPlanItemFilter$inboundSchema = z115.pipe(
|
|
52470
53695
|
z115.object({
|
|
52471
53696
|
feature_id: optional3(string5()),
|
|
52472
53697
|
billing_method: optional3(
|
|
52473
|
-
|
|
53698
|
+
UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
|
|
52474
53699
|
),
|
|
52475
53700
|
interval: optional3(
|
|
52476
53701
|
smartUnion([
|
|
@@ -52647,7 +53872,7 @@ var UpdatePlanVariantDetailsBillingControls$inboundSchema = z115.pipe(
|
|
|
52647
53872
|
})
|
|
52648
53873
|
);
|
|
52649
53874
|
var UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema = inboundSchema(UpdatePlanPriceVariantDetailsUpsertLicenseInterval);
|
|
52650
|
-
var
|
|
53875
|
+
var UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema = z115.object({
|
|
52651
53876
|
currency: string5(),
|
|
52652
53877
|
amount: number2()
|
|
52653
53878
|
});
|
|
@@ -52657,7 +53882,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z115.pipe(
|
|
|
52657
53882
|
interval: UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema,
|
|
52658
53883
|
interval_count: z115._default(number2(), 1),
|
|
52659
53884
|
additional_currencies: optional3(z115.array(z115.lazy(
|
|
52660
|
-
() =>
|
|
53885
|
+
() => UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema
|
|
52661
53886
|
)))
|
|
52662
53887
|
}),
|
|
52663
53888
|
z115.transform((v) => {
|
|
@@ -52667,7 +53892,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z115.pipe(
|
|
|
52667
53892
|
});
|
|
52668
53893
|
})
|
|
52669
53894
|
);
|
|
52670
|
-
var
|
|
53895
|
+
var UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema = z115.object({
|
|
52671
53896
|
threshold: number2()
|
|
52672
53897
|
});
|
|
52673
53898
|
var UpdatePlanVariantDetailsUpsertLicenseResetInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseResetInterval);
|
|
@@ -52682,12 +53907,12 @@ var UpdatePlanVariantDetailsUpsertLicenseReset$inboundSchema = z115.pipe(
|
|
|
52682
53907
|
});
|
|
52683
53908
|
})
|
|
52684
53909
|
);
|
|
52685
|
-
var
|
|
53910
|
+
var UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema = z115.object({
|
|
52686
53911
|
currency: string5(),
|
|
52687
53912
|
amount: number2()
|
|
52688
53913
|
});
|
|
52689
53914
|
var UpdatePlanVariantDetailsUpsertLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
|
|
52690
|
-
var
|
|
53915
|
+
var UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema = z115.pipe(
|
|
52691
53916
|
z115.object({
|
|
52692
53917
|
currency: string5(),
|
|
52693
53918
|
amount: optional3(number2()),
|
|
@@ -52705,7 +53930,7 @@ var UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema = z115.pipe(
|
|
|
52705
53930
|
amount: number2(),
|
|
52706
53931
|
flat_amount: optional3(number2()),
|
|
52707
53932
|
additional_currencies: optional3(z115.array(z115.lazy(
|
|
52708
|
-
() =>
|
|
53933
|
+
() => UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema
|
|
52709
53934
|
)))
|
|
52710
53935
|
}),
|
|
52711
53936
|
z115.transform((v) => {
|
|
@@ -52719,14 +53944,14 @@ var UpdatePlanVariantDetailsUpsertLicenseTierBehavior$inboundSchema = inboundSch
|
|
|
52719
53944
|
var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(
|
|
52720
53945
|
UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval
|
|
52721
53946
|
);
|
|
52722
|
-
var
|
|
52723
|
-
|
|
53947
|
+
var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(
|
|
53948
|
+
UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod
|
|
52724
53949
|
);
|
|
52725
53950
|
var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z115.pipe(
|
|
52726
53951
|
z115.object({
|
|
52727
53952
|
amount: optional3(number2()),
|
|
52728
53953
|
additional_currencies: optional3(z115.array(z115.lazy(
|
|
52729
|
-
() =>
|
|
53954
|
+
() => UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
52730
53955
|
))),
|
|
52731
53956
|
tiers: optional3(z115.array(z115.lazy(
|
|
52732
53957
|
() => UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema
|
|
@@ -52737,7 +53962,7 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z115.pipe(
|
|
|
52737
53962
|
interval: UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
52738
53963
|
interval_count: z115._default(number2(), 1),
|
|
52739
53964
|
billing_units: z115._default(number2(), 1),
|
|
52740
|
-
billing_method:
|
|
53965
|
+
billing_method: UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
52741
53966
|
max_purchase: z115.optional(z115.nullable(number2()))
|
|
52742
53967
|
}),
|
|
52743
53968
|
z115.transform((v) => {
|
|
@@ -52765,12 +53990,14 @@ var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z115.pipe(
|
|
|
52765
53990
|
});
|
|
52766
53991
|
})
|
|
52767
53992
|
);
|
|
52768
|
-
var
|
|
53993
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
53994
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
53995
|
+
);
|
|
52769
53996
|
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z115.pipe(
|
|
52770
53997
|
z115.object({
|
|
52771
53998
|
max: optional3(number2()),
|
|
52772
53999
|
max_percentage: optional3(number2()),
|
|
52773
|
-
expiry_duration_type:
|
|
54000
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
52774
54001
|
expiry_duration_length: optional3(number2())
|
|
52775
54002
|
}),
|
|
52776
54003
|
z115.transform((v) => {
|
|
@@ -52810,7 +54037,7 @@ var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum1 = {
|
|
|
52810
54037
|
var UpdatePlanToVariantDetailsUpsertLicenseEnum = {
|
|
52811
54038
|
Inf: "inf"
|
|
52812
54039
|
};
|
|
52813
|
-
var
|
|
54040
|
+
var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod = {
|
|
52814
54041
|
Prepaid: "prepaid",
|
|
52815
54042
|
UsageBased: "usage_based"
|
|
52816
54043
|
};
|
|
@@ -52833,6 +54060,96 @@ var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum1 = {
|
|
|
52833
54060
|
SemiAnnual: "semi_annual",
|
|
52834
54061
|
Year: "year"
|
|
52835
54062
|
};
|
|
54063
|
+
var UpdatePlanPriceLicenseIntervalResponse = {
|
|
54064
|
+
OneOff: "one_off",
|
|
54065
|
+
Week: "week",
|
|
54066
|
+
Month: "month",
|
|
54067
|
+
Quarter: "quarter",
|
|
54068
|
+
SemiAnnual: "semi_annual",
|
|
54069
|
+
Year: "year"
|
|
54070
|
+
};
|
|
54071
|
+
var UpdatePlanLicenseResetIntervalResponse = {
|
|
54072
|
+
OneOff: "one_off",
|
|
54073
|
+
Minute: "minute",
|
|
54074
|
+
Hour: "hour",
|
|
54075
|
+
Day: "day",
|
|
54076
|
+
Week: "week",
|
|
54077
|
+
Month: "month",
|
|
54078
|
+
Quarter: "quarter",
|
|
54079
|
+
SemiAnnual: "semi_annual",
|
|
54080
|
+
Year: "year"
|
|
54081
|
+
};
|
|
54082
|
+
var UpdatePlanLicenseTierBehaviorResponse = {
|
|
54083
|
+
Graduated: "graduated",
|
|
54084
|
+
Volume: "volume"
|
|
54085
|
+
};
|
|
54086
|
+
var UpdatePlanLicenseAddItemPriceIntervalResponse = {
|
|
54087
|
+
OneOff: "one_off",
|
|
54088
|
+
Week: "week",
|
|
54089
|
+
Month: "month",
|
|
54090
|
+
Quarter: "quarter",
|
|
54091
|
+
SemiAnnual: "semi_annual",
|
|
54092
|
+
Year: "year"
|
|
54093
|
+
};
|
|
54094
|
+
var UpdatePlanLicenseAddItemBillingMethodResponse = {
|
|
54095
|
+
Prepaid: "prepaid",
|
|
54096
|
+
UsageBased: "usage_based"
|
|
54097
|
+
};
|
|
54098
|
+
var UpdatePlanLicenseOnIncreaseResponse = {
|
|
54099
|
+
BillImmediately: "bill_immediately",
|
|
54100
|
+
ProrateImmediately: "prorate_immediately",
|
|
54101
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
54102
|
+
BillNextCycle: "bill_next_cycle"
|
|
54103
|
+
};
|
|
54104
|
+
var UpdatePlanLicenseOnDecreaseResponse = {
|
|
54105
|
+
Prorate: "prorate",
|
|
54106
|
+
ProrateImmediately: "prorate_immediately",
|
|
54107
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
54108
|
+
None: "none",
|
|
54109
|
+
NoProrations: "no_prorations"
|
|
54110
|
+
};
|
|
54111
|
+
var UpdatePlanLicenseExpiryDurationTypeResponse = {
|
|
54112
|
+
Month: "month",
|
|
54113
|
+
Forever: "forever"
|
|
54114
|
+
};
|
|
54115
|
+
var UpdatePlanLicenseDurationResponse = {
|
|
54116
|
+
Day: "day",
|
|
54117
|
+
Week: "week",
|
|
54118
|
+
Month: "month",
|
|
54119
|
+
Year: "year"
|
|
54120
|
+
};
|
|
54121
|
+
var UpdatePlanDimensionsToLicenseResponseEnum2 = {
|
|
54122
|
+
Inf: "inf"
|
|
54123
|
+
};
|
|
54124
|
+
var UpdatePlanDimensionsToLicenseResponseEnum1 = {
|
|
54125
|
+
Inf: "inf"
|
|
54126
|
+
};
|
|
54127
|
+
var UpdatePlanToLicenseResponseEnum = {
|
|
54128
|
+
Inf: "inf"
|
|
54129
|
+
};
|
|
54130
|
+
var UpdatePlanLicenseRemoveItemBillingMethodResponse = {
|
|
54131
|
+
Prepaid: "prepaid",
|
|
54132
|
+
UsageBased: "usage_based"
|
|
54133
|
+
};
|
|
54134
|
+
var UpdatePlanIntervalLicenseRemoveItemResponseEnum2 = {
|
|
54135
|
+
OneOff: "one_off",
|
|
54136
|
+
Minute: "minute",
|
|
54137
|
+
Hour: "hour",
|
|
54138
|
+
Day: "day",
|
|
54139
|
+
Week: "week",
|
|
54140
|
+
Month: "month",
|
|
54141
|
+
Quarter: "quarter",
|
|
54142
|
+
SemiAnnual: "semi_annual",
|
|
54143
|
+
Year: "year"
|
|
54144
|
+
};
|
|
54145
|
+
var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
54146
|
+
OneOff: "one_off",
|
|
54147
|
+
Week: "week",
|
|
54148
|
+
Month: "month",
|
|
54149
|
+
Quarter: "quarter",
|
|
54150
|
+
SemiAnnual: "semi_annual",
|
|
54151
|
+
Year: "year"
|
|
54152
|
+
};
|
|
52836
54153
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z116.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
52837
54154
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
52838
54155
|
number2(),
|
|
@@ -53045,7 +54362,7 @@ var UpdatePlanVariantDetailsUpsertLicenseModelMarkups$inboundSchema = z116.pipe(
|
|
|
53045
54362
|
});
|
|
53046
54363
|
})
|
|
53047
54364
|
);
|
|
53048
|
-
var
|
|
54365
|
+
var UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema = z116.pipe(
|
|
53049
54366
|
z116.object({
|
|
53050
54367
|
default_markup: optional3(number2()),
|
|
53051
54368
|
provider_markups: z116.optional(z116.nullable(z116.record(
|
|
@@ -53069,7 +54386,7 @@ var UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema = z116.pipe(
|
|
|
53069
54386
|
});
|
|
53070
54387
|
})
|
|
53071
54388
|
);
|
|
53072
|
-
var
|
|
54389
|
+
var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z116.pipe(
|
|
53073
54390
|
z116.object({
|
|
53074
54391
|
credit_schema: optional3(z116.array(smartUnion([
|
|
53075
54392
|
z116.lazy(
|
|
@@ -53080,7 +54397,7 @@ var UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
|
|
|
53080
54397
|
)
|
|
53081
54398
|
]))),
|
|
53082
54399
|
markups: optional3(z116.lazy(
|
|
53083
|
-
() =>
|
|
54400
|
+
() => UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema
|
|
53084
54401
|
))
|
|
53085
54402
|
}),
|
|
53086
54403
|
z116.transform((v) => {
|
|
@@ -53093,7 +54410,7 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
|
|
|
53093
54410
|
z116.object({
|
|
53094
54411
|
threshold_billing: z116.optional(
|
|
53095
54412
|
z116.nullable(
|
|
53096
|
-
|
|
54413
|
+
UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema
|
|
53097
54414
|
)
|
|
53098
54415
|
),
|
|
53099
54416
|
feature_id: string5(),
|
|
@@ -53115,11 +54432,9 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
|
|
|
53115
54432
|
expiry: optional3(
|
|
53116
54433
|
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
53117
54434
|
),
|
|
53118
|
-
feature_override: optional3(
|
|
53119
|
-
|
|
53120
|
-
|
|
53121
|
-
)
|
|
53122
|
-
)
|
|
54435
|
+
feature_override: optional3(z116.lazy(
|
|
54436
|
+
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
54437
|
+
))
|
|
53123
54438
|
}),
|
|
53124
54439
|
z116.transform((v) => {
|
|
53125
54440
|
return remap(v, {
|
|
@@ -53129,8 +54444,8 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
|
|
|
53129
54444
|
});
|
|
53130
54445
|
})
|
|
53131
54446
|
);
|
|
53132
|
-
var
|
|
53133
|
-
|
|
54447
|
+
var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(
|
|
54448
|
+
UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod
|
|
53134
54449
|
);
|
|
53135
54450
|
var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2$inboundSchema = inboundSchema(
|
|
53136
54451
|
UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2
|
|
@@ -53146,7 +54461,7 @@ var UpdatePlanUpsertLicensePlanItemFilterResponse$inboundSchema = z116.pipe(
|
|
|
53146
54461
|
z116.object({
|
|
53147
54462
|
feature_id: optional3(string5()),
|
|
53148
54463
|
billing_method: optional3(
|
|
53149
|
-
|
|
54464
|
+
UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema
|
|
53150
54465
|
),
|
|
53151
54466
|
interval: optional3(
|
|
53152
54467
|
smartUnion([
|
|
@@ -53213,14 +54528,16 @@ var UpdatePlanRemoveLicenseResponse$inboundSchema = z116.pipe(
|
|
|
53213
54528
|
});
|
|
53214
54529
|
})
|
|
53215
54530
|
);
|
|
53216
|
-
var
|
|
54531
|
+
var UpdatePlanVariantDetailsCustomize$inboundSchema = z116.pipe(
|
|
53217
54532
|
z116.object({
|
|
53218
|
-
price: z116.optional(
|
|
54533
|
+
price: z116.optional(
|
|
54534
|
+
z116.nullable(UpdatePlanVariantDetailsBasePrice$inboundSchema)
|
|
54535
|
+
),
|
|
53219
54536
|
add_items: optional3(
|
|
53220
|
-
z116.array(
|
|
54537
|
+
z116.array(UpdatePlanVariantDetailsPlanItem$inboundSchema)
|
|
53221
54538
|
),
|
|
53222
54539
|
remove_items: optional3(
|
|
53223
|
-
z116.array(
|
|
54540
|
+
z116.array(UpdatePlanVariantDetailsPlanItemFilter$inboundSchema)
|
|
53224
54541
|
),
|
|
53225
54542
|
free_trial: z116.optional(
|
|
53226
54543
|
z116.nullable(UpdatePlanFreeTrialParamsResponse$inboundSchema)
|
|
@@ -53250,7 +54567,7 @@ var UpdatePlanVariantDetails$inboundSchema = z116.pipe(
|
|
|
53250
54567
|
z116.object({
|
|
53251
54568
|
base_plan_id: string5(),
|
|
53252
54569
|
customize: optional3(
|
|
53253
|
-
z116.lazy(() =>
|
|
54570
|
+
z116.lazy(() => UpdatePlanVariantDetailsCustomize$inboundSchema)
|
|
53254
54571
|
)
|
|
53255
54572
|
}),
|
|
53256
54573
|
z116.transform((v) => {
|
|
@@ -53259,6 +54576,493 @@ var UpdatePlanVariantDetails$inboundSchema = z116.pipe(
|
|
|
53259
54576
|
});
|
|
53260
54577
|
})
|
|
53261
54578
|
);
|
|
54579
|
+
var UpdatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceLicenseIntervalResponse);
|
|
54580
|
+
var UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z116.object({
|
|
54581
|
+
currency: string5(),
|
|
54582
|
+
amount: number2()
|
|
54583
|
+
});
|
|
54584
|
+
var UpdatePlanLicenseBasePriceResponse$inboundSchema = z116.pipe(
|
|
54585
|
+
z116.object({
|
|
54586
|
+
amount: number2(),
|
|
54587
|
+
interval: UpdatePlanPriceLicenseIntervalResponse$inboundSchema,
|
|
54588
|
+
interval_count: z116._default(number2(), 1),
|
|
54589
|
+
additional_currencies: optional3(z116.array(z116.lazy(
|
|
54590
|
+
() => UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema
|
|
54591
|
+
)))
|
|
54592
|
+
}),
|
|
54593
|
+
z116.transform((v) => {
|
|
54594
|
+
return remap(v, {
|
|
54595
|
+
"interval_count": "intervalCount",
|
|
54596
|
+
"additional_currencies": "additionalCurrencies"
|
|
54597
|
+
});
|
|
54598
|
+
})
|
|
54599
|
+
);
|
|
54600
|
+
var UpdatePlanLicenseThresholdBillingResponse$inboundSchema = z116.object({
|
|
54601
|
+
threshold: number2()
|
|
54602
|
+
});
|
|
54603
|
+
var UpdatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseResetIntervalResponse);
|
|
54604
|
+
var UpdatePlanLicenseResetResponse$inboundSchema = z116.pipe(
|
|
54605
|
+
z116.object({
|
|
54606
|
+
interval: UpdatePlanLicenseResetIntervalResponse$inboundSchema,
|
|
54607
|
+
interval_count: z116._default(number2(), 1)
|
|
54608
|
+
}),
|
|
54609
|
+
z116.transform((v) => {
|
|
54610
|
+
return remap(v, {
|
|
54611
|
+
"interval_count": "intervalCount"
|
|
54612
|
+
});
|
|
54613
|
+
})
|
|
54614
|
+
);
|
|
54615
|
+
var UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z116.object({
|
|
54616
|
+
currency: string5(),
|
|
54617
|
+
amount: number2()
|
|
54618
|
+
});
|
|
54619
|
+
var UpdatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
54620
|
+
var UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z116.pipe(
|
|
54621
|
+
z116.object({
|
|
54622
|
+
currency: string5(),
|
|
54623
|
+
amount: optional3(number2()),
|
|
54624
|
+
flat_amount: optional3(number2())
|
|
54625
|
+
}),
|
|
54626
|
+
z116.transform((v) => {
|
|
54627
|
+
return remap(v, {
|
|
54628
|
+
"flat_amount": "flatAmount"
|
|
54629
|
+
});
|
|
54630
|
+
})
|
|
54631
|
+
);
|
|
54632
|
+
var UpdatePlanLicensePriceTierResponse$inboundSchema = z116.pipe(
|
|
54633
|
+
z116.object({
|
|
54634
|
+
to: smartUnion([number2(), string5()]),
|
|
54635
|
+
amount: number2(),
|
|
54636
|
+
flat_amount: optional3(number2()),
|
|
54637
|
+
additional_currencies: optional3(z116.array(z116.lazy(
|
|
54638
|
+
() => UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
|
|
54639
|
+
)))
|
|
54640
|
+
}),
|
|
54641
|
+
z116.transform((v) => {
|
|
54642
|
+
return remap(v, {
|
|
54643
|
+
"flat_amount": "flatAmount",
|
|
54644
|
+
"additional_currencies": "additionalCurrencies"
|
|
54645
|
+
});
|
|
54646
|
+
})
|
|
54647
|
+
);
|
|
54648
|
+
var UpdatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanLicenseTierBehaviorResponse);
|
|
54649
|
+
var UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemPriceIntervalResponse);
|
|
54650
|
+
var UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemBillingMethodResponse);
|
|
54651
|
+
var UpdatePlanLicensePriceResponse$inboundSchema = z116.pipe(
|
|
54652
|
+
z116.object({
|
|
54653
|
+
amount: optional3(number2()),
|
|
54654
|
+
additional_currencies: optional3(z116.array(z116.lazy(
|
|
54655
|
+
() => UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
|
|
54656
|
+
))),
|
|
54657
|
+
tiers: optional3(z116.array(z116.lazy(
|
|
54658
|
+
() => UpdatePlanLicensePriceTierResponse$inboundSchema
|
|
54659
|
+
))),
|
|
54660
|
+
tier_behavior: optional3(
|
|
54661
|
+
UpdatePlanLicenseTierBehaviorResponse$inboundSchema
|
|
54662
|
+
),
|
|
54663
|
+
interval: UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
|
|
54664
|
+
interval_count: z116._default(number2(), 1),
|
|
54665
|
+
billing_units: z116._default(number2(), 1),
|
|
54666
|
+
billing_method: UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
|
|
54667
|
+
max_purchase: z116.optional(z116.nullable(number2()))
|
|
54668
|
+
}),
|
|
54669
|
+
z116.transform((v) => {
|
|
54670
|
+
return remap(v, {
|
|
54671
|
+
"additional_currencies": "additionalCurrencies",
|
|
54672
|
+
"tier_behavior": "tierBehavior",
|
|
54673
|
+
"interval_count": "intervalCount",
|
|
54674
|
+
"billing_units": "billingUnits",
|
|
54675
|
+
"billing_method": "billingMethod",
|
|
54676
|
+
"max_purchase": "maxPurchase"
|
|
54677
|
+
});
|
|
54678
|
+
})
|
|
54679
|
+
);
|
|
54680
|
+
var UpdatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnIncreaseResponse);
|
|
54681
|
+
var UpdatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnDecreaseResponse);
|
|
54682
|
+
var UpdatePlanLicenseProrationResponse$inboundSchema = z116.pipe(
|
|
54683
|
+
z116.object({
|
|
54684
|
+
on_increase: UpdatePlanLicenseOnIncreaseResponse$inboundSchema,
|
|
54685
|
+
on_decrease: UpdatePlanLicenseOnDecreaseResponse$inboundSchema
|
|
54686
|
+
}),
|
|
54687
|
+
z116.transform((v) => {
|
|
54688
|
+
return remap(v, {
|
|
54689
|
+
"on_increase": "onIncrease",
|
|
54690
|
+
"on_decrease": "onDecrease"
|
|
54691
|
+
});
|
|
54692
|
+
})
|
|
54693
|
+
);
|
|
54694
|
+
var UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanLicenseExpiryDurationTypeResponse);
|
|
54695
|
+
var UpdatePlanLicenseRolloverResponse$inboundSchema = z116.pipe(
|
|
54696
|
+
z116.object({
|
|
54697
|
+
max: optional3(number2()),
|
|
54698
|
+
max_percentage: optional3(number2()),
|
|
54699
|
+
expiry_duration_type: UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
|
|
54700
|
+
expiry_duration_length: optional3(number2())
|
|
54701
|
+
}),
|
|
54702
|
+
z116.transform((v) => {
|
|
54703
|
+
return remap(v, {
|
|
54704
|
+
"max_percentage": "maxPercentage",
|
|
54705
|
+
"expiry_duration_type": "expiryDurationType",
|
|
54706
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
54707
|
+
});
|
|
54708
|
+
})
|
|
54709
|
+
);
|
|
54710
|
+
var UpdatePlanLicenseDurationResponse$inboundSchema = inboundSchema(UpdatePlanLicenseDurationResponse);
|
|
54711
|
+
var UpdatePlanLicenseExpiryResponse$inboundSchema = z116.object({
|
|
54712
|
+
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
54713
|
+
length: number2()
|
|
54714
|
+
});
|
|
54715
|
+
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z116.pipe(
|
|
54716
|
+
z116.object({
|
|
54717
|
+
match: z116.record(z116.string(), string5()),
|
|
54718
|
+
priority: optional3(number2()),
|
|
54719
|
+
credit_cost: number2()
|
|
54720
|
+
}),
|
|
54721
|
+
z116.transform((v) => {
|
|
54722
|
+
return remap(v, {
|
|
54723
|
+
"credit_cost": "creditCost"
|
|
54724
|
+
});
|
|
54725
|
+
})
|
|
54726
|
+
);
|
|
54727
|
+
var UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z116.enum(
|
|
54728
|
+
UpdatePlanDimensionsToLicenseResponseEnum2
|
|
54729
|
+
);
|
|
54730
|
+
var UpdatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
|
|
54731
|
+
number2(),
|
|
54732
|
+
UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
|
|
54733
|
+
]);
|
|
54734
|
+
var UpdatePlanDimensionsLicenseTierResponse2$inboundSchema = z116.pipe(
|
|
54735
|
+
z116.object({
|
|
54736
|
+
to: smartUnion([
|
|
54737
|
+
number2(),
|
|
54738
|
+
UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
|
|
54739
|
+
]),
|
|
54740
|
+
credit_cost: number2()
|
|
54741
|
+
}),
|
|
54742
|
+
z116.transform((v) => {
|
|
54743
|
+
return remap(v, {
|
|
54744
|
+
"credit_cost": "creditCost"
|
|
54745
|
+
});
|
|
54746
|
+
})
|
|
54747
|
+
);
|
|
54748
|
+
var UpdatePlanDimensionsLicenseResponse3$inboundSchema = z116.pipe(
|
|
54749
|
+
z116.object({
|
|
54750
|
+
match: z116.record(z116.string(), string5()),
|
|
54751
|
+
priority: optional3(number2()),
|
|
54752
|
+
tier_behavior: literal3("graduated"),
|
|
54753
|
+
tiers: z116.array(
|
|
54754
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseTierResponse2$inboundSchema)
|
|
54755
|
+
)
|
|
54756
|
+
}),
|
|
54757
|
+
z116.transform((v) => {
|
|
54758
|
+
return remap(v, {
|
|
54759
|
+
"tier_behavior": "tierBehavior"
|
|
54760
|
+
});
|
|
54761
|
+
})
|
|
54762
|
+
);
|
|
54763
|
+
var UpdatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
|
|
54764
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
|
|
54765
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
|
|
54766
|
+
]);
|
|
54767
|
+
var UpdatePlanLicenseMultipliersResponse2$inboundSchema = z116.object({
|
|
54768
|
+
match: z116.record(z116.string(), string5()),
|
|
54769
|
+
factor: optional3(number2()),
|
|
54770
|
+
add: optional3(number2())
|
|
54771
|
+
});
|
|
54772
|
+
var UpdatePlanCreditSchemaLicenseResponse2$inboundSchema = z116.pipe(
|
|
54773
|
+
z116.object({
|
|
54774
|
+
metered_feature_id: string5(),
|
|
54775
|
+
billing_units: optional3(number2()),
|
|
54776
|
+
dimensions: optional3(z116.record(
|
|
54777
|
+
z116.string(),
|
|
54778
|
+
smartUnion([
|
|
54779
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
|
|
54780
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
|
|
54781
|
+
])
|
|
54782
|
+
)),
|
|
54783
|
+
multipliers: optional3(z116.record(
|
|
54784
|
+
z116.string(),
|
|
54785
|
+
z116.lazy(() => UpdatePlanLicenseMultipliersResponse2$inboundSchema)
|
|
54786
|
+
)),
|
|
54787
|
+
credit_cost: number2()
|
|
54788
|
+
}),
|
|
54789
|
+
z116.transform((v) => {
|
|
54790
|
+
return remap(v, {
|
|
54791
|
+
"metered_feature_id": "meteredFeatureId",
|
|
54792
|
+
"billing_units": "billingUnits",
|
|
54793
|
+
"credit_cost": "creditCost"
|
|
54794
|
+
});
|
|
54795
|
+
})
|
|
54796
|
+
);
|
|
54797
|
+
var UpdatePlanDimensionsLicenseResponse2$inboundSchema = z116.pipe(
|
|
54798
|
+
z116.object({
|
|
54799
|
+
match: z116.record(z116.string(), string5()),
|
|
54800
|
+
priority: optional3(number2()),
|
|
54801
|
+
credit_cost: number2()
|
|
54802
|
+
}),
|
|
54803
|
+
z116.transform((v) => {
|
|
54804
|
+
return remap(v, {
|
|
54805
|
+
"credit_cost": "creditCost"
|
|
54806
|
+
});
|
|
54807
|
+
})
|
|
54808
|
+
);
|
|
54809
|
+
var UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z116.enum(
|
|
54810
|
+
UpdatePlanDimensionsToLicenseResponseEnum1
|
|
54811
|
+
);
|
|
54812
|
+
var UpdatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
|
|
54813
|
+
number2(),
|
|
54814
|
+
UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
|
|
54815
|
+
]);
|
|
54816
|
+
var UpdatePlanDimensionsLicenseTierResponse1$inboundSchema = z116.pipe(
|
|
54817
|
+
z116.object({
|
|
54818
|
+
to: smartUnion([
|
|
54819
|
+
number2(),
|
|
54820
|
+
UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
|
|
54821
|
+
]),
|
|
54822
|
+
credit_cost: number2()
|
|
54823
|
+
}),
|
|
54824
|
+
z116.transform((v) => {
|
|
54825
|
+
return remap(v, {
|
|
54826
|
+
"credit_cost": "creditCost"
|
|
54827
|
+
});
|
|
54828
|
+
})
|
|
54829
|
+
);
|
|
54830
|
+
var UpdatePlanDimensionsLicenseResponse1$inboundSchema = z116.pipe(
|
|
54831
|
+
z116.object({
|
|
54832
|
+
match: z116.record(z116.string(), string5()),
|
|
54833
|
+
priority: optional3(number2()),
|
|
54834
|
+
tier_behavior: literal3("graduated"),
|
|
54835
|
+
tiers: z116.array(
|
|
54836
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseTierResponse1$inboundSchema)
|
|
54837
|
+
)
|
|
54838
|
+
}),
|
|
54839
|
+
z116.transform((v) => {
|
|
54840
|
+
return remap(v, {
|
|
54841
|
+
"tier_behavior": "tierBehavior"
|
|
54842
|
+
});
|
|
54843
|
+
})
|
|
54844
|
+
);
|
|
54845
|
+
var UpdatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
|
|
54846
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
|
|
54847
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
|
|
54848
|
+
]);
|
|
54849
|
+
var UpdatePlanLicenseMultipliersResponse1$inboundSchema = z116.object({
|
|
54850
|
+
match: z116.record(z116.string(), string5()),
|
|
54851
|
+
factor: optional3(number2()),
|
|
54852
|
+
add: optional3(number2())
|
|
54853
|
+
});
|
|
54854
|
+
var UpdatePlanToLicenseResponseEnum$inboundSchema = z116.enum(UpdatePlanToLicenseResponseEnum);
|
|
54855
|
+
var UpdatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), UpdatePlanToLicenseResponseEnum$inboundSchema]);
|
|
54856
|
+
var UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z116.pipe(
|
|
54857
|
+
z116.object({
|
|
54858
|
+
to: smartUnion([
|
|
54859
|
+
number2(),
|
|
54860
|
+
UpdatePlanToLicenseResponseEnum$inboundSchema
|
|
54861
|
+
]),
|
|
54862
|
+
credit_cost: number2()
|
|
54863
|
+
}),
|
|
54864
|
+
z116.transform((v) => {
|
|
54865
|
+
return remap(v, {
|
|
54866
|
+
"credit_cost": "creditCost"
|
|
54867
|
+
});
|
|
54868
|
+
})
|
|
54869
|
+
);
|
|
54870
|
+
var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z116.pipe(
|
|
54871
|
+
z116.object({
|
|
54872
|
+
metered_feature_id: string5(),
|
|
54873
|
+
billing_units: optional3(number2()),
|
|
54874
|
+
dimensions: optional3(z116.record(
|
|
54875
|
+
z116.string(),
|
|
54876
|
+
smartUnion([
|
|
54877
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
|
|
54878
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
|
|
54879
|
+
])
|
|
54880
|
+
)),
|
|
54881
|
+
multipliers: optional3(z116.record(
|
|
54882
|
+
z116.string(),
|
|
54883
|
+
z116.lazy(() => UpdatePlanLicenseMultipliersResponse1$inboundSchema)
|
|
54884
|
+
)),
|
|
54885
|
+
tier_behavior: literal3("graduated"),
|
|
54886
|
+
tiers: z116.array(z116.lazy(
|
|
54887
|
+
() => UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema
|
|
54888
|
+
))
|
|
54889
|
+
}),
|
|
54890
|
+
z116.transform((v) => {
|
|
54891
|
+
return remap(v, {
|
|
54892
|
+
"metered_feature_id": "meteredFeatureId",
|
|
54893
|
+
"billing_units": "billingUnits",
|
|
54894
|
+
"tier_behavior": "tierBehavior"
|
|
54895
|
+
});
|
|
54896
|
+
})
|
|
54897
|
+
);
|
|
54898
|
+
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
54899
|
+
z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
54900
|
+
z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
54901
|
+
]);
|
|
54902
|
+
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z116.object({
|
|
54903
|
+
markup: number2()
|
|
54904
|
+
});
|
|
54905
|
+
var UpdatePlanLicenseModelMarkupsResponse$inboundSchema = z116.pipe(
|
|
54906
|
+
z116.object({
|
|
54907
|
+
markup: optional3(number2()),
|
|
54908
|
+
input_cost: optional3(number2()),
|
|
54909
|
+
output_cost: optional3(number2())
|
|
54910
|
+
}),
|
|
54911
|
+
z116.transform((v) => {
|
|
54912
|
+
return remap(v, {
|
|
54913
|
+
"input_cost": "inputCost",
|
|
54914
|
+
"output_cost": "outputCost"
|
|
54915
|
+
});
|
|
54916
|
+
})
|
|
54917
|
+
);
|
|
54918
|
+
var UpdatePlanLicenseMarkupsResponse$inboundSchema = z116.pipe(
|
|
54919
|
+
z116.object({
|
|
54920
|
+
default_markup: optional3(number2()),
|
|
54921
|
+
provider_markups: z116.optional(z116.nullable(z116.record(
|
|
54922
|
+
z116.string(),
|
|
54923
|
+
z116.lazy(() => UpdatePlanLicenseProviderMarkupsResponse$inboundSchema)
|
|
54924
|
+
))),
|
|
54925
|
+
model_markups: z116.optional(z116.nullable(z116.record(
|
|
54926
|
+
z116.string(),
|
|
54927
|
+
z116.lazy(() => UpdatePlanLicenseModelMarkupsResponse$inboundSchema)
|
|
54928
|
+
)))
|
|
54929
|
+
}),
|
|
54930
|
+
z116.transform((v) => {
|
|
54931
|
+
return remap(v, {
|
|
54932
|
+
"default_markup": "defaultMarkup",
|
|
54933
|
+
"provider_markups": "providerMarkups",
|
|
54934
|
+
"model_markups": "modelMarkups"
|
|
54935
|
+
});
|
|
54936
|
+
})
|
|
54937
|
+
);
|
|
54938
|
+
var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
|
|
54939
|
+
z116.object({
|
|
54940
|
+
credit_schema: optional3(z116.array(smartUnion([
|
|
54941
|
+
z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
54942
|
+
z116.lazy(
|
|
54943
|
+
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
54944
|
+
)
|
|
54945
|
+
]))),
|
|
54946
|
+
markups: optional3(z116.lazy(
|
|
54947
|
+
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|
|
54948
|
+
))
|
|
54949
|
+
}),
|
|
54950
|
+
z116.transform((v) => {
|
|
54951
|
+
return remap(v, {
|
|
54952
|
+
"credit_schema": "creditSchema"
|
|
54953
|
+
});
|
|
54954
|
+
})
|
|
54955
|
+
);
|
|
54956
|
+
var UpdatePlanLicensePlanItemResponse$inboundSchema = z116.pipe(
|
|
54957
|
+
z116.object({
|
|
54958
|
+
threshold_billing: z116.optional(z116.nullable(z116.lazy(
|
|
54959
|
+
() => UpdatePlanLicenseThresholdBillingResponse$inboundSchema
|
|
54960
|
+
))),
|
|
54961
|
+
feature_id: string5(),
|
|
54962
|
+
included: optional3(number2()),
|
|
54963
|
+
unlimited: optional3(boolean2()),
|
|
54964
|
+
pooled: z116._default(boolean2(), false),
|
|
54965
|
+
reset: optional3(z116.lazy(
|
|
54966
|
+
() => UpdatePlanLicenseResetResponse$inboundSchema
|
|
54967
|
+
)),
|
|
54968
|
+
price: optional3(z116.lazy(
|
|
54969
|
+
() => UpdatePlanLicensePriceResponse$inboundSchema
|
|
54970
|
+
)),
|
|
54971
|
+
proration: optional3(z116.lazy(
|
|
54972
|
+
() => UpdatePlanLicenseProrationResponse$inboundSchema
|
|
54973
|
+
)),
|
|
54974
|
+
rollover: optional3(z116.lazy(
|
|
54975
|
+
() => UpdatePlanLicenseRolloverResponse$inboundSchema
|
|
54976
|
+
)),
|
|
54977
|
+
expiry: optional3(z116.lazy(
|
|
54978
|
+
() => UpdatePlanLicenseExpiryResponse$inboundSchema
|
|
54979
|
+
)),
|
|
54980
|
+
feature_override: optional3(z116.lazy(
|
|
54981
|
+
() => UpdatePlanLicenseFeatureOverrideResponse$inboundSchema
|
|
54982
|
+
))
|
|
54983
|
+
}),
|
|
54984
|
+
z116.transform((v) => {
|
|
54985
|
+
return remap(v, {
|
|
54986
|
+
"threshold_billing": "thresholdBilling",
|
|
54987
|
+
"feature_id": "featureId",
|
|
54988
|
+
"feature_override": "featureOverride"
|
|
54989
|
+
});
|
|
54990
|
+
})
|
|
54991
|
+
);
|
|
54992
|
+
var UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseRemoveItemBillingMethodResponse);
|
|
54993
|
+
var UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum2);
|
|
54994
|
+
var UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum1);
|
|
54995
|
+
var UpdatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
|
|
54996
|
+
UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
|
|
54997
|
+
UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
|
|
54998
|
+
]);
|
|
54999
|
+
var UpdatePlanLicensePlanItemFilterResponse$inboundSchema = z116.pipe(
|
|
55000
|
+
z116.object({
|
|
55001
|
+
feature_id: optional3(string5()),
|
|
55002
|
+
billing_method: optional3(
|
|
55003
|
+
UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
|
|
55004
|
+
),
|
|
55005
|
+
interval: optional3(
|
|
55006
|
+
smartUnion([
|
|
55007
|
+
UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
|
|
55008
|
+
UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
|
|
55009
|
+
])
|
|
55010
|
+
),
|
|
55011
|
+
interval_count: optional3(number2()),
|
|
55012
|
+
included: optional3(number2())
|
|
55013
|
+
}),
|
|
55014
|
+
z116.transform((v) => {
|
|
55015
|
+
return remap(v, {
|
|
55016
|
+
"feature_id": "featureId",
|
|
55017
|
+
"billing_method": "billingMethod",
|
|
55018
|
+
"interval_count": "intervalCount"
|
|
55019
|
+
});
|
|
55020
|
+
})
|
|
55021
|
+
);
|
|
55022
|
+
var UpdatePlanLicenseCustomizeResponse$inboundSchema = z116.pipe(
|
|
55023
|
+
z116.object({
|
|
55024
|
+
price: z116.optional(
|
|
55025
|
+
z116.nullable(
|
|
55026
|
+
z116.lazy(() => UpdatePlanLicenseBasePriceResponse$inboundSchema)
|
|
55027
|
+
)
|
|
55028
|
+
),
|
|
55029
|
+
add_items: optional3(
|
|
55030
|
+
z116.array(z116.lazy(() => UpdatePlanLicensePlanItemResponse$inboundSchema))
|
|
55031
|
+
),
|
|
55032
|
+
remove_items: optional3(
|
|
55033
|
+
z116.array(
|
|
55034
|
+
z116.lazy(() => UpdatePlanLicensePlanItemFilterResponse$inboundSchema)
|
|
55035
|
+
)
|
|
55036
|
+
)
|
|
55037
|
+
}),
|
|
55038
|
+
z116.transform((v) => {
|
|
55039
|
+
return remap(v, {
|
|
55040
|
+
"add_items": "addItems",
|
|
55041
|
+
"remove_items": "removeItems"
|
|
55042
|
+
});
|
|
55043
|
+
})
|
|
55044
|
+
);
|
|
55045
|
+
var UpdatePlanLicenseResponse$inboundSchema = z116.pipe(
|
|
55046
|
+
z116.object({
|
|
55047
|
+
license_plan_id: string5(),
|
|
55048
|
+
version: number2(),
|
|
55049
|
+
version_slug: optional3(string5()),
|
|
55050
|
+
included: number2(),
|
|
55051
|
+
prepaid_only: boolean2(),
|
|
55052
|
+
customize: optional3(
|
|
55053
|
+
z116.lazy(() => UpdatePlanLicenseCustomizeResponse$inboundSchema)
|
|
55054
|
+
),
|
|
55055
|
+
metadata: optional3(z116.record(z116.string(), z116.any())),
|
|
55056
|
+
plan: optional3(Plan$inboundSchema)
|
|
55057
|
+
}),
|
|
55058
|
+
z116.transform((v) => {
|
|
55059
|
+
return remap(v, {
|
|
55060
|
+
"license_plan_id": "licensePlanId",
|
|
55061
|
+
"version_slug": "versionSlug",
|
|
55062
|
+
"prepaid_only": "prepaidOnly"
|
|
55063
|
+
});
|
|
55064
|
+
})
|
|
55065
|
+
);
|
|
53262
55066
|
var UpdatePlanResponse$inboundSchema = z116.pipe(
|
|
53263
55067
|
z116.object({
|
|
53264
55068
|
id: string5(),
|
|
@@ -53288,6 +55092,9 @@ var UpdatePlanResponse$inboundSchema = z116.pipe(
|
|
|
53288
55092
|
base_variant_id: nullable(string5()),
|
|
53289
55093
|
variant_details: optional3(
|
|
53290
55094
|
z116.lazy(() => UpdatePlanVariantDetails$inboundSchema)
|
|
55095
|
+
),
|
|
55096
|
+
licenses: optional3(
|
|
55097
|
+
z116.array(z116.lazy(() => UpdatePlanLicenseResponse$inboundSchema))
|
|
53291
55098
|
)
|
|
53292
55099
|
}),
|
|
53293
55100
|
z116.transform((v) => {
|
|
@@ -54442,7 +56249,10 @@ var APIPromise = class {
|
|
|
54442
56249
|
[Symbol.toStringTag] = "APIPromise";
|
|
54443
56250
|
constructor(p) {
|
|
54444
56251
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
54445
|
-
this.#unwrapped = p instanceof Promise ?
|
|
56252
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
56253
|
+
}
|
|
56254
|
+
#getUnwrapped() {
|
|
56255
|
+
return this.#unwrapped ??= this.#promise.then(([value]) => value);
|
|
54446
56256
|
}
|
|
54447
56257
|
then(onfulfilled, onrejected) {
|
|
54448
56258
|
return this.#promise.then(
|
|
@@ -54451,10 +56261,10 @@ var APIPromise = class {
|
|
|
54451
56261
|
);
|
|
54452
56262
|
}
|
|
54453
56263
|
catch(onrejected) {
|
|
54454
|
-
return this.#
|
|
56264
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
54455
56265
|
}
|
|
54456
56266
|
finally(onfinally) {
|
|
54457
|
-
return this.#
|
|
56267
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
54458
56268
|
}
|
|
54459
56269
|
$inspect() {
|
|
54460
56270
|
return this.#promise;
|