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
|
@@ -78,8 +78,8 @@ var SDK_METADATA = {
|
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "2.4.0",
|
|
80
80
|
sdkVersion: "0.10.18",
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.18 2.
|
|
81
|
+
genVersion: "2.884.13",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.4.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -11814,6 +11814,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
|
|
|
11814
11814
|
Prepaid: "prepaid",
|
|
11815
11815
|
UsageBased: "usage_based"
|
|
11816
11816
|
};
|
|
11817
|
+
var CreateInvoiceIssueMethod = {
|
|
11818
|
+
Draft: "draft",
|
|
11819
|
+
Finalize: "finalize",
|
|
11820
|
+
Send: "send"
|
|
11821
|
+
};
|
|
11817
11822
|
var CreateInvoiceProcessorType = {
|
|
11818
11823
|
Stripe: "stripe",
|
|
11819
11824
|
Revenuecat: "revenuecat"
|
|
@@ -12319,6 +12324,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
|
|
|
12319
12324
|
});
|
|
12320
12325
|
})
|
|
12321
12326
|
);
|
|
12327
|
+
var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
|
|
12322
12328
|
var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
12323
12329
|
z26.object({
|
|
12324
12330
|
customerId: z26.string(),
|
|
@@ -12336,7 +12342,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
|
12336
12342
|
taxRateId: z26.optional(z26.string()),
|
|
12337
12343
|
periodStart: z26.optional(z26.int()),
|
|
12338
12344
|
periodEnd: z26.optional(z26.int()),
|
|
12339
|
-
preview: z26.optional(z26.boolean())
|
|
12345
|
+
preview: z26.optional(z26.boolean()),
|
|
12346
|
+
issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
|
|
12340
12347
|
}),
|
|
12341
12348
|
z26.transform((v) => {
|
|
12342
12349
|
return remap(v, {
|
|
@@ -12348,7 +12355,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
|
12348
12355
|
dueDate: "due_date",
|
|
12349
12356
|
taxRateId: "tax_rate_id",
|
|
12350
12357
|
periodStart: "period_start",
|
|
12351
|
-
periodEnd: "period_end"
|
|
12358
|
+
periodEnd: "period_end",
|
|
12359
|
+
issueMethod: "issue_method"
|
|
12352
12360
|
});
|
|
12353
12361
|
})
|
|
12354
12362
|
);
|
|
@@ -12565,7 +12573,7 @@ var CreatePlanDimensionsToItemRequestBodyEnum1 = {
|
|
|
12565
12573
|
var CreatePlanToItemRequestBodyEnum = {
|
|
12566
12574
|
Inf: "inf"
|
|
12567
12575
|
};
|
|
12568
|
-
var
|
|
12576
|
+
var CreatePlanPriceLicenseIntervalRequestBody = {
|
|
12569
12577
|
OneOff: "one_off",
|
|
12570
12578
|
Week: "week",
|
|
12571
12579
|
Month: "month",
|
|
@@ -12573,7 +12581,7 @@ var CreatePlanPriceLicenseInterval = {
|
|
|
12573
12581
|
SemiAnnual: "semi_annual",
|
|
12574
12582
|
Year: "year"
|
|
12575
12583
|
};
|
|
12576
|
-
var
|
|
12584
|
+
var CreatePlanLicenseResetIntervalRequestBody = {
|
|
12577
12585
|
OneOff: "one_off",
|
|
12578
12586
|
Minute: "minute",
|
|
12579
12587
|
Hour: "hour",
|
|
@@ -12584,11 +12592,11 @@ var CreatePlanLicenseResetInterval = {
|
|
|
12584
12592
|
SemiAnnual: "semi_annual",
|
|
12585
12593
|
Year: "year"
|
|
12586
12594
|
};
|
|
12587
|
-
var
|
|
12595
|
+
var CreatePlanLicenseTierBehaviorRequestBody = {
|
|
12588
12596
|
Graduated: "graduated",
|
|
12589
12597
|
Volume: "volume"
|
|
12590
12598
|
};
|
|
12591
|
-
var
|
|
12599
|
+
var CreatePlanAddItemPriceIntervalRequestBody = {
|
|
12592
12600
|
OneOff: "one_off",
|
|
12593
12601
|
Week: "week",
|
|
12594
12602
|
Month: "month",
|
|
@@ -12596,47 +12604,47 @@ var CreatePlanLicenseAddItemPriceInterval = {
|
|
|
12596
12604
|
SemiAnnual: "semi_annual",
|
|
12597
12605
|
Year: "year"
|
|
12598
12606
|
};
|
|
12599
|
-
var
|
|
12607
|
+
var CreatePlanAddItemBillingMethodRequestBody = {
|
|
12600
12608
|
Prepaid: "prepaid",
|
|
12601
12609
|
UsageBased: "usage_based"
|
|
12602
12610
|
};
|
|
12603
|
-
var
|
|
12611
|
+
var CreatePlanLicenseOnIncreaseRequestBody = {
|
|
12604
12612
|
BillImmediately: "bill_immediately",
|
|
12605
12613
|
ProrateImmediately: "prorate_immediately",
|
|
12606
12614
|
ProrateNextCycle: "prorate_next_cycle",
|
|
12607
12615
|
BillNextCycle: "bill_next_cycle"
|
|
12608
12616
|
};
|
|
12609
|
-
var
|
|
12617
|
+
var CreatePlanLicenseOnDecreaseRequestBody = {
|
|
12610
12618
|
Prorate: "prorate",
|
|
12611
12619
|
ProrateImmediately: "prorate_immediately",
|
|
12612
12620
|
ProrateNextCycle: "prorate_next_cycle",
|
|
12613
12621
|
None: "none",
|
|
12614
12622
|
NoProrations: "no_prorations"
|
|
12615
12623
|
};
|
|
12616
|
-
var
|
|
12624
|
+
var CreatePlanLicenseExpiryDurationTypeRequestBody = {
|
|
12617
12625
|
Month: "month",
|
|
12618
12626
|
Forever: "forever"
|
|
12619
12627
|
};
|
|
12620
|
-
var
|
|
12628
|
+
var CreatePlanLicenseDurationRequestBody = {
|
|
12621
12629
|
Day: "day",
|
|
12622
12630
|
Week: "week",
|
|
12623
12631
|
Month: "month",
|
|
12624
12632
|
Year: "year"
|
|
12625
12633
|
};
|
|
12626
|
-
var
|
|
12634
|
+
var CreatePlanDimensionsToLicenseRequestBodyEnum2 = {
|
|
12627
12635
|
Inf: "inf"
|
|
12628
12636
|
};
|
|
12629
|
-
var
|
|
12637
|
+
var CreatePlanDimensionsToLicenseRequestBodyEnum1 = {
|
|
12630
12638
|
Inf: "inf"
|
|
12631
12639
|
};
|
|
12632
|
-
var
|
|
12640
|
+
var CreatePlanToLicenseRequestBodyEnum = {
|
|
12633
12641
|
Inf: "inf"
|
|
12634
12642
|
};
|
|
12635
|
-
var
|
|
12643
|
+
var CreatePlanRemoveItemBillingMethodRequestBody = {
|
|
12636
12644
|
Prepaid: "prepaid",
|
|
12637
12645
|
UsageBased: "usage_based"
|
|
12638
12646
|
};
|
|
12639
|
-
var
|
|
12647
|
+
var CreatePlanIntervalRemoveItemRequestBodyEnum2 = {
|
|
12640
12648
|
OneOff: "one_off",
|
|
12641
12649
|
Minute: "minute",
|
|
12642
12650
|
Hour: "hour",
|
|
@@ -12647,7 +12655,7 @@ var CreatePlanIntervalLicenseRemoveItemEnum2 = {
|
|
|
12647
12655
|
SemiAnnual: "semi_annual",
|
|
12648
12656
|
Year: "year"
|
|
12649
12657
|
};
|
|
12650
|
-
var
|
|
12658
|
+
var CreatePlanIntervalRemoveItemRequestBodyEnum1 = {
|
|
12651
12659
|
OneOff: "one_off",
|
|
12652
12660
|
Week: "week",
|
|
12653
12661
|
Month: "month",
|
|
@@ -13170,19 +13178,21 @@ var CreatePlanItemPlanItem$outboundSchema = z27.pipe(
|
|
|
13170
13178
|
});
|
|
13171
13179
|
})
|
|
13172
13180
|
);
|
|
13173
|
-
var
|
|
13174
|
-
|
|
13181
|
+
var CreatePlanPriceLicenseIntervalRequestBody$outboundSchema = z27.enum(
|
|
13182
|
+
CreatePlanPriceLicenseIntervalRequestBody
|
|
13183
|
+
);
|
|
13184
|
+
var CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z27.object({
|
|
13175
13185
|
currency: z27.string(),
|
|
13176
13186
|
amount: z27.number()
|
|
13177
13187
|
});
|
|
13178
|
-
var
|
|
13188
|
+
var CreatePlanBasePriceRequestBody$outboundSchema = z27.pipe(
|
|
13179
13189
|
z27.object({
|
|
13180
13190
|
amount: z27.number(),
|
|
13181
|
-
interval:
|
|
13191
|
+
interval: CreatePlanPriceLicenseIntervalRequestBody$outboundSchema,
|
|
13182
13192
|
intervalCount: z27._default(z27.number(), 1),
|
|
13183
|
-
additionalCurrencies: z27.optional(
|
|
13184
|
-
|
|
13185
|
-
)
|
|
13193
|
+
additionalCurrencies: z27.optional(z27.array(z27.lazy(
|
|
13194
|
+
() => CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
|
|
13195
|
+
)))
|
|
13186
13196
|
}),
|
|
13187
13197
|
z27.transform((v) => {
|
|
13188
13198
|
return remap(v, {
|
|
@@ -13191,13 +13201,15 @@ var CreatePlanLicenseBasePrice$outboundSchema = z27.pipe(
|
|
|
13191
13201
|
});
|
|
13192
13202
|
})
|
|
13193
13203
|
);
|
|
13194
|
-
var
|
|
13204
|
+
var CreatePlanLicenseThresholdBillingRequestBody$outboundSchema = z27.object({
|
|
13195
13205
|
threshold: z27.number()
|
|
13196
13206
|
});
|
|
13197
|
-
var
|
|
13198
|
-
|
|
13207
|
+
var CreatePlanLicenseResetIntervalRequestBody$outboundSchema = z27.enum(
|
|
13208
|
+
CreatePlanLicenseResetIntervalRequestBody
|
|
13209
|
+
);
|
|
13210
|
+
var CreatePlanLicenseResetRequestBody$outboundSchema = z27.pipe(
|
|
13199
13211
|
z27.object({
|
|
13200
|
-
interval:
|
|
13212
|
+
interval: CreatePlanLicenseResetIntervalRequestBody$outboundSchema,
|
|
13201
13213
|
intervalCount: z27._default(z27.number(), 1)
|
|
13202
13214
|
}),
|
|
13203
13215
|
z27.transform((v) => {
|
|
@@ -13206,12 +13218,12 @@ var CreatePlanLicenseReset$outboundSchema = z27.pipe(
|
|
|
13206
13218
|
});
|
|
13207
13219
|
})
|
|
13208
13220
|
);
|
|
13209
|
-
var
|
|
13221
|
+
var CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema = z27.object({
|
|
13210
13222
|
currency: z27.string(),
|
|
13211
13223
|
amount: z27.number()
|
|
13212
13224
|
});
|
|
13213
|
-
var
|
|
13214
|
-
var
|
|
13225
|
+
var CreatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z27.number(), z27.string()]);
|
|
13226
|
+
var CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z27.pipe(
|
|
13215
13227
|
z27.object({
|
|
13216
13228
|
currency: z27.string(),
|
|
13217
13229
|
amount: z27.optional(z27.number()),
|
|
@@ -13223,13 +13235,13 @@ var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z27.pipe(
|
|
|
13223
13235
|
});
|
|
13224
13236
|
})
|
|
13225
13237
|
);
|
|
13226
|
-
var
|
|
13238
|
+
var CreatePlanLicensePriceTierRequestBody$outboundSchema = z27.pipe(
|
|
13227
13239
|
z27.object({
|
|
13228
13240
|
to: smartUnion([z27.number(), z27.string()]),
|
|
13229
13241
|
amount: z27.optional(z27.number()),
|
|
13230
13242
|
flatAmount: z27.optional(z27.number()),
|
|
13231
13243
|
additionalCurrencies: z27.optional(z27.array(z27.lazy(
|
|
13232
|
-
() =>
|
|
13244
|
+
() => CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
|
|
13233
13245
|
)))
|
|
13234
13246
|
}),
|
|
13235
13247
|
z27.transform((v) => {
|
|
@@ -13239,27 +13251,31 @@ var CreatePlanLicensePriceTier$outboundSchema = z27.pipe(
|
|
|
13239
13251
|
});
|
|
13240
13252
|
})
|
|
13241
13253
|
);
|
|
13242
|
-
var
|
|
13243
|
-
|
|
13244
|
-
|
|
13254
|
+
var CreatePlanLicenseTierBehaviorRequestBody$outboundSchema = z27.enum(
|
|
13255
|
+
CreatePlanLicenseTierBehaviorRequestBody
|
|
13256
|
+
);
|
|
13257
|
+
var CreatePlanAddItemPriceIntervalRequestBody$outboundSchema = z27.enum(
|
|
13258
|
+
CreatePlanAddItemPriceIntervalRequestBody
|
|
13245
13259
|
);
|
|
13246
|
-
var
|
|
13247
|
-
|
|
13260
|
+
var CreatePlanAddItemBillingMethodRequestBody$outboundSchema = z27.enum(
|
|
13261
|
+
CreatePlanAddItemBillingMethodRequestBody
|
|
13248
13262
|
);
|
|
13249
|
-
var
|
|
13263
|
+
var CreatePlanLicensePriceRequestBody$outboundSchema = z27.pipe(
|
|
13250
13264
|
z27.object({
|
|
13251
13265
|
amount: z27.optional(z27.number()),
|
|
13252
13266
|
additionalCurrencies: z27.optional(z27.array(z27.lazy(
|
|
13253
|
-
() =>
|
|
13267
|
+
() => CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema
|
|
13254
13268
|
))),
|
|
13255
13269
|
tiers: z27.optional(z27.array(z27.lazy(
|
|
13256
|
-
() =>
|
|
13270
|
+
() => CreatePlanLicensePriceTierRequestBody$outboundSchema
|
|
13257
13271
|
))),
|
|
13258
|
-
tierBehavior: z27.optional(
|
|
13259
|
-
|
|
13272
|
+
tierBehavior: z27.optional(
|
|
13273
|
+
CreatePlanLicenseTierBehaviorRequestBody$outboundSchema
|
|
13274
|
+
),
|
|
13275
|
+
interval: CreatePlanAddItemPriceIntervalRequestBody$outboundSchema,
|
|
13260
13276
|
intervalCount: z27._default(z27.number(), 1),
|
|
13261
13277
|
billingUnits: z27._default(z27.number(), 1),
|
|
13262
|
-
billingMethod:
|
|
13278
|
+
billingMethod: CreatePlanAddItemBillingMethodRequestBody$outboundSchema,
|
|
13263
13279
|
maxPurchase: z27.optional(z27.nullable(z27.number()))
|
|
13264
13280
|
}),
|
|
13265
13281
|
z27.transform((v) => {
|
|
@@ -13273,12 +13289,16 @@ var CreatePlanLicensePrice$outboundSchema = z27.pipe(
|
|
|
13273
13289
|
});
|
|
13274
13290
|
})
|
|
13275
13291
|
);
|
|
13276
|
-
var
|
|
13277
|
-
|
|
13278
|
-
|
|
13292
|
+
var CreatePlanLicenseOnIncreaseRequestBody$outboundSchema = z27.enum(
|
|
13293
|
+
CreatePlanLicenseOnIncreaseRequestBody
|
|
13294
|
+
);
|
|
13295
|
+
var CreatePlanLicenseOnDecreaseRequestBody$outboundSchema = z27.enum(
|
|
13296
|
+
CreatePlanLicenseOnDecreaseRequestBody
|
|
13297
|
+
);
|
|
13298
|
+
var CreatePlanLicenseProrationRequestBody$outboundSchema = z27.pipe(
|
|
13279
13299
|
z27.object({
|
|
13280
|
-
onIncrease:
|
|
13281
|
-
onDecrease:
|
|
13300
|
+
onIncrease: CreatePlanLicenseOnIncreaseRequestBody$outboundSchema,
|
|
13301
|
+
onDecrease: CreatePlanLicenseOnDecreaseRequestBody$outboundSchema
|
|
13282
13302
|
}),
|
|
13283
13303
|
z27.transform((v) => {
|
|
13284
13304
|
return remap(v, {
|
|
@@ -13287,12 +13307,14 @@ var CreatePlanLicenseProration$outboundSchema = z27.pipe(
|
|
|
13287
13307
|
});
|
|
13288
13308
|
})
|
|
13289
13309
|
);
|
|
13290
|
-
var
|
|
13291
|
-
|
|
13310
|
+
var CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z27.enum(
|
|
13311
|
+
CreatePlanLicenseExpiryDurationTypeRequestBody
|
|
13312
|
+
);
|
|
13313
|
+
var CreatePlanLicenseRolloverRequestBody$outboundSchema = z27.pipe(
|
|
13292
13314
|
z27.object({
|
|
13293
13315
|
max: z27.optional(z27.number()),
|
|
13294
13316
|
maxPercentage: z27.optional(z27.number()),
|
|
13295
|
-
expiryDurationType:
|
|
13317
|
+
expiryDurationType: CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
|
|
13296
13318
|
expiryDurationLength: z27.optional(z27.number())
|
|
13297
13319
|
}),
|
|
13298
13320
|
z27.transform((v) => {
|
|
@@ -13303,13 +13325,13 @@ var CreatePlanLicenseRollover$outboundSchema = z27.pipe(
|
|
|
13303
13325
|
});
|
|
13304
13326
|
})
|
|
13305
13327
|
);
|
|
13306
|
-
var
|
|
13307
|
-
var
|
|
13308
|
-
duration:
|
|
13328
|
+
var CreatePlanLicenseDurationRequestBody$outboundSchema = z27.enum(CreatePlanLicenseDurationRequestBody);
|
|
13329
|
+
var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
|
|
13330
|
+
duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
|
|
13309
13331
|
length: z27.number()
|
|
13310
13332
|
});
|
|
13311
13333
|
var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13312
|
-
var
|
|
13334
|
+
var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
|
|
13313
13335
|
z27.object({
|
|
13314
13336
|
match: z27.record(
|
|
13315
13337
|
z27.string(),
|
|
@@ -13325,13 +13347,18 @@ var CreatePlanDimensionsLicense4$outboundSchema = z27.pipe(
|
|
|
13325
13347
|
})
|
|
13326
13348
|
);
|
|
13327
13349
|
var CreatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13328
|
-
var
|
|
13329
|
-
|
|
13330
|
-
|
|
13350
|
+
var CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z27.enum(
|
|
13351
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum2
|
|
13352
|
+
);
|
|
13353
|
+
var CreatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
|
|
13354
|
+
z27.number(),
|
|
13355
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
|
|
13356
|
+
]);
|
|
13357
|
+
var CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z27.pipe(
|
|
13331
13358
|
z27.object({
|
|
13332
13359
|
to: smartUnion([
|
|
13333
13360
|
z27.number(),
|
|
13334
|
-
|
|
13361
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
|
|
13335
13362
|
]),
|
|
13336
13363
|
creditCost: z27.number()
|
|
13337
13364
|
}),
|
|
@@ -13341,7 +13368,7 @@ var CreatePlanDimensionsLicenseTier2$outboundSchema = z27.pipe(
|
|
|
13341
13368
|
});
|
|
13342
13369
|
})
|
|
13343
13370
|
);
|
|
13344
|
-
var
|
|
13371
|
+
var CreatePlanDimensionsLicenseRequestBody3$outboundSchema = z27.pipe(
|
|
13345
13372
|
z27.object({
|
|
13346
13373
|
match: z27.record(
|
|
13347
13374
|
z27.string(),
|
|
@@ -13350,7 +13377,9 @@ var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
|
|
|
13350
13377
|
priority: z27.optional(z27.int()),
|
|
13351
13378
|
tierBehavior: z27.literal("graduated"),
|
|
13352
13379
|
tiers: z27.array(
|
|
13353
|
-
z27.lazy(
|
|
13380
|
+
z27.lazy(
|
|
13381
|
+
() => CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema
|
|
13382
|
+
)
|
|
13354
13383
|
)
|
|
13355
13384
|
}),
|
|
13356
13385
|
z27.transform((v) => {
|
|
@@ -13359,12 +13388,12 @@ var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
|
|
|
13359
13388
|
});
|
|
13360
13389
|
})
|
|
13361
13390
|
);
|
|
13362
|
-
var
|
|
13363
|
-
z27.lazy(() =>
|
|
13364
|
-
z27.lazy(() =>
|
|
13391
|
+
var CreatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
|
|
13392
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
|
|
13393
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
|
|
13365
13394
|
]);
|
|
13366
13395
|
var CreatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13367
|
-
var
|
|
13396
|
+
var CreatePlanLicenseMultipliersRequestBody2$outboundSchema = z27.object({
|
|
13368
13397
|
match: z27.record(
|
|
13369
13398
|
z27.string(),
|
|
13370
13399
|
smartUnion([z27.string(), z27.number(), z27.boolean()])
|
|
@@ -13372,20 +13401,20 @@ var CreatePlanLicenseMultipliers2$outboundSchema = z27.object({
|
|
|
13372
13401
|
factor: z27.optional(z27.number()),
|
|
13373
13402
|
add: z27.optional(z27.number())
|
|
13374
13403
|
});
|
|
13375
|
-
var
|
|
13404
|
+
var CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z27.pipe(
|
|
13376
13405
|
z27.object({
|
|
13377
13406
|
meteredFeatureId: z27.string(),
|
|
13378
13407
|
billingUnits: z27.optional(z27.number()),
|
|
13379
13408
|
dimensions: z27.optional(z27.record(
|
|
13380
13409
|
z27.string(),
|
|
13381
13410
|
smartUnion([
|
|
13382
|
-
z27.lazy(() =>
|
|
13383
|
-
z27.lazy(() =>
|
|
13411
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
|
|
13412
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
|
|
13384
13413
|
])
|
|
13385
13414
|
)),
|
|
13386
13415
|
multipliers: z27.optional(z27.record(
|
|
13387
13416
|
z27.string(),
|
|
13388
|
-
z27.lazy(() =>
|
|
13417
|
+
z27.lazy(() => CreatePlanLicenseMultipliersRequestBody2$outboundSchema)
|
|
13389
13418
|
)),
|
|
13390
13419
|
creditCost: z27.number()
|
|
13391
13420
|
}),
|
|
@@ -13398,7 +13427,7 @@ var CreatePlanCreditSchemaLicense2$outboundSchema = z27.pipe(
|
|
|
13398
13427
|
})
|
|
13399
13428
|
);
|
|
13400
13429
|
var CreatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13401
|
-
var
|
|
13430
|
+
var CreatePlanDimensionsLicenseRequestBody2$outboundSchema = z27.pipe(
|
|
13402
13431
|
z27.object({
|
|
13403
13432
|
match: z27.record(
|
|
13404
13433
|
z27.string(),
|
|
@@ -13414,13 +13443,18 @@ var CreatePlanDimensionsLicense2$outboundSchema = z27.pipe(
|
|
|
13414
13443
|
})
|
|
13415
13444
|
);
|
|
13416
13445
|
var CreatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13417
|
-
var
|
|
13418
|
-
|
|
13419
|
-
|
|
13446
|
+
var CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z27.enum(
|
|
13447
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum1
|
|
13448
|
+
);
|
|
13449
|
+
var CreatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
|
|
13450
|
+
z27.number(),
|
|
13451
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
|
|
13452
|
+
]);
|
|
13453
|
+
var CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z27.pipe(
|
|
13420
13454
|
z27.object({
|
|
13421
13455
|
to: smartUnion([
|
|
13422
13456
|
z27.number(),
|
|
13423
|
-
|
|
13457
|
+
CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
|
|
13424
13458
|
]),
|
|
13425
13459
|
creditCost: z27.number()
|
|
13426
13460
|
}),
|
|
@@ -13430,7 +13464,7 @@ var CreatePlanDimensionsLicenseTier1$outboundSchema = z27.pipe(
|
|
|
13430
13464
|
});
|
|
13431
13465
|
})
|
|
13432
13466
|
);
|
|
13433
|
-
var
|
|
13467
|
+
var CreatePlanDimensionsLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
13434
13468
|
z27.object({
|
|
13435
13469
|
match: z27.record(
|
|
13436
13470
|
z27.string(),
|
|
@@ -13439,7 +13473,9 @@ var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
|
|
|
13439
13473
|
priority: z27.optional(z27.int()),
|
|
13440
13474
|
tierBehavior: z27.literal("graduated"),
|
|
13441
13475
|
tiers: z27.array(
|
|
13442
|
-
z27.lazy(
|
|
13476
|
+
z27.lazy(
|
|
13477
|
+
() => CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema
|
|
13478
|
+
)
|
|
13443
13479
|
)
|
|
13444
13480
|
}),
|
|
13445
13481
|
z27.transform((v) => {
|
|
@@ -13448,12 +13484,12 @@ var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
|
|
|
13448
13484
|
});
|
|
13449
13485
|
})
|
|
13450
13486
|
);
|
|
13451
|
-
var
|
|
13452
|
-
z27.lazy(() =>
|
|
13453
|
-
z27.lazy(() =>
|
|
13487
|
+
var CreatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
|
|
13488
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
|
|
13489
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
|
|
13454
13490
|
]);
|
|
13455
13491
|
var CreatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
|
|
13456
|
-
var
|
|
13492
|
+
var CreatePlanLicenseMultipliersRequestBody1$outboundSchema = z27.object({
|
|
13457
13493
|
match: z27.record(
|
|
13458
13494
|
z27.string(),
|
|
13459
13495
|
smartUnion([z27.string(), z27.number(), z27.boolean()])
|
|
@@ -13461,11 +13497,17 @@ var CreatePlanLicenseMultipliers1$outboundSchema = z27.object({
|
|
|
13461
13497
|
factor: z27.optional(z27.number()),
|
|
13462
13498
|
add: z27.optional(z27.number())
|
|
13463
13499
|
});
|
|
13464
|
-
var
|
|
13465
|
-
var
|
|
13466
|
-
|
|
13500
|
+
var CreatePlanToLicenseRequestBodyEnum$outboundSchema = z27.enum(CreatePlanToLicenseRequestBodyEnum);
|
|
13501
|
+
var CreatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
|
|
13502
|
+
z27.number(),
|
|
13503
|
+
CreatePlanToLicenseRequestBodyEnum$outboundSchema
|
|
13504
|
+
]);
|
|
13505
|
+
var CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z27.pipe(
|
|
13467
13506
|
z27.object({
|
|
13468
|
-
to: smartUnion([
|
|
13507
|
+
to: smartUnion([
|
|
13508
|
+
z27.number(),
|
|
13509
|
+
CreatePlanToLicenseRequestBodyEnum$outboundSchema
|
|
13510
|
+
]),
|
|
13469
13511
|
creditCost: z27.number()
|
|
13470
13512
|
}),
|
|
13471
13513
|
z27.transform((v) => {
|
|
@@ -13474,24 +13516,24 @@ var CreatePlanLicenseFeatureOverrideTier$outboundSchema = z27.pipe(
|
|
|
13474
13516
|
});
|
|
13475
13517
|
})
|
|
13476
13518
|
);
|
|
13477
|
-
var
|
|
13519
|
+
var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
|
|
13478
13520
|
z27.object({
|
|
13479
13521
|
meteredFeatureId: z27.string(),
|
|
13480
13522
|
billingUnits: z27.optional(z27.number()),
|
|
13481
13523
|
dimensions: z27.optional(z27.record(
|
|
13482
13524
|
z27.string(),
|
|
13483
13525
|
smartUnion([
|
|
13484
|
-
z27.lazy(() =>
|
|
13485
|
-
z27.lazy(() =>
|
|
13526
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
|
|
13527
|
+
z27.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
|
|
13486
13528
|
])
|
|
13487
13529
|
)),
|
|
13488
13530
|
multipliers: z27.optional(z27.record(
|
|
13489
13531
|
z27.string(),
|
|
13490
|
-
z27.lazy(() =>
|
|
13532
|
+
z27.lazy(() => CreatePlanLicenseMultipliersRequestBody1$outboundSchema)
|
|
13491
13533
|
)),
|
|
13492
13534
|
tierBehavior: z27.literal("graduated"),
|
|
13493
13535
|
tiers: z27.array(z27.lazy(
|
|
13494
|
-
() =>
|
|
13536
|
+
() => CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
|
|
13495
13537
|
))
|
|
13496
13538
|
}),
|
|
13497
13539
|
z27.transform((v) => {
|
|
@@ -13502,14 +13544,14 @@ var CreatePlanCreditSchemaLicense1$outboundSchema = z27.pipe(
|
|
|
13502
13544
|
});
|
|
13503
13545
|
})
|
|
13504
13546
|
);
|
|
13505
|
-
var
|
|
13506
|
-
z27.lazy(() =>
|
|
13507
|
-
z27.lazy(() =>
|
|
13547
|
+
var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
13548
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
13549
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
13508
13550
|
]);
|
|
13509
|
-
var
|
|
13551
|
+
var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
|
|
13510
13552
|
markup: z27.number()
|
|
13511
13553
|
});
|
|
13512
|
-
var
|
|
13554
|
+
var CreatePlanLicenseModelMarkupsRequestBody$outboundSchema = z27.pipe(
|
|
13513
13555
|
z27.object({
|
|
13514
13556
|
markup: z27.optional(z27.number()),
|
|
13515
13557
|
inputCost: z27.optional(z27.number()),
|
|
@@ -13522,16 +13564,16 @@ var CreatePlanLicenseModelMarkups$outboundSchema = z27.pipe(
|
|
|
13522
13564
|
});
|
|
13523
13565
|
})
|
|
13524
13566
|
);
|
|
13525
|
-
var
|
|
13567
|
+
var CreatePlanLicenseMarkupsRequestBody$outboundSchema = z27.pipe(
|
|
13526
13568
|
z27.object({
|
|
13527
13569
|
defaultMarkup: z27.optional(z27.number()),
|
|
13528
13570
|
providerMarkups: z27.optional(z27.nullable(z27.record(
|
|
13529
13571
|
z27.string(),
|
|
13530
|
-
z27.lazy(() =>
|
|
13572
|
+
z27.lazy(() => CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
|
|
13531
13573
|
))),
|
|
13532
13574
|
modelMarkups: z27.optional(z27.nullable(z27.record(
|
|
13533
13575
|
z27.string(),
|
|
13534
|
-
z27.lazy(() =>
|
|
13576
|
+
z27.lazy(() => CreatePlanLicenseModelMarkupsRequestBody$outboundSchema)
|
|
13535
13577
|
)))
|
|
13536
13578
|
}),
|
|
13537
13579
|
z27.transform((v) => {
|
|
@@ -13542,16 +13584,16 @@ var CreatePlanLicenseMarkups$outboundSchema = z27.pipe(
|
|
|
13542
13584
|
});
|
|
13543
13585
|
})
|
|
13544
13586
|
);
|
|
13545
|
-
var
|
|
13587
|
+
var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
|
|
13546
13588
|
z27.object({
|
|
13547
13589
|
creditSchema: z27.optional(z27.array(smartUnion([
|
|
13548
|
-
z27.lazy(() =>
|
|
13590
|
+
z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
13549
13591
|
z27.lazy(
|
|
13550
|
-
() =>
|
|
13592
|
+
() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
13551
13593
|
)
|
|
13552
13594
|
]))),
|
|
13553
13595
|
markups: z27.optional(z27.lazy(
|
|
13554
|
-
() =>
|
|
13596
|
+
() => CreatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
13555
13597
|
))
|
|
13556
13598
|
}),
|
|
13557
13599
|
z27.transform((v) => {
|
|
@@ -13560,29 +13602,33 @@ var CreatePlanLicenseFeatureOverride$outboundSchema = z27.pipe(
|
|
|
13560
13602
|
});
|
|
13561
13603
|
})
|
|
13562
13604
|
);
|
|
13563
|
-
var
|
|
13605
|
+
var CreatePlanLicensePlanItemRequestBody$outboundSchema = z27.pipe(
|
|
13564
13606
|
z27.object({
|
|
13565
|
-
thresholdBilling: z27.optional(
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
)
|
|
13569
|
-
),
|
|
13607
|
+
thresholdBilling: z27.optional(z27.nullable(z27.lazy(
|
|
13608
|
+
() => CreatePlanLicenseThresholdBillingRequestBody$outboundSchema
|
|
13609
|
+
))),
|
|
13570
13610
|
featureId: z27.string(),
|
|
13571
13611
|
included: z27.optional(z27.number()),
|
|
13572
13612
|
unlimited: z27.optional(z27.boolean()),
|
|
13573
13613
|
pooled: z27._default(z27.boolean(), false),
|
|
13574
|
-
reset: z27.optional(z27.lazy(
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
)
|
|
13614
|
+
reset: z27.optional(z27.lazy(
|
|
13615
|
+
() => CreatePlanLicenseResetRequestBody$outboundSchema
|
|
13616
|
+
)),
|
|
13617
|
+
price: z27.optional(z27.lazy(
|
|
13618
|
+
() => CreatePlanLicensePriceRequestBody$outboundSchema
|
|
13619
|
+
)),
|
|
13620
|
+
proration: z27.optional(z27.lazy(
|
|
13621
|
+
() => CreatePlanLicenseProrationRequestBody$outboundSchema
|
|
13622
|
+
)),
|
|
13623
|
+
rollover: z27.optional(z27.lazy(
|
|
13624
|
+
() => CreatePlanLicenseRolloverRequestBody$outboundSchema
|
|
13625
|
+
)),
|
|
13626
|
+
expiry: z27.optional(z27.lazy(
|
|
13627
|
+
() => CreatePlanLicenseExpiryRequestBody$outboundSchema
|
|
13628
|
+
)),
|
|
13629
|
+
featureOverride: z27.optional(z27.lazy(
|
|
13630
|
+
() => CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema
|
|
13631
|
+
))
|
|
13586
13632
|
}),
|
|
13587
13633
|
z27.transform((v) => {
|
|
13588
13634
|
return remap(v, {
|
|
@@ -13592,29 +13638,29 @@ var CreatePlanLicensePlanItem$outboundSchema = z27.pipe(
|
|
|
13592
13638
|
});
|
|
13593
13639
|
})
|
|
13594
13640
|
);
|
|
13595
|
-
var
|
|
13596
|
-
|
|
13641
|
+
var CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema = z27.enum(
|
|
13642
|
+
CreatePlanRemoveItemBillingMethodRequestBody
|
|
13597
13643
|
);
|
|
13598
|
-
var
|
|
13599
|
-
|
|
13644
|
+
var CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema = z27.enum(
|
|
13645
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum2
|
|
13600
13646
|
);
|
|
13601
|
-
var
|
|
13602
|
-
|
|
13647
|
+
var CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema = z27.enum(
|
|
13648
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum1
|
|
13603
13649
|
);
|
|
13604
|
-
var
|
|
13605
|
-
|
|
13606
|
-
|
|
13650
|
+
var CreatePlanIntervalRequestBodyUnion$outboundSchema = smartUnion([
|
|
13651
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
|
|
13652
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
|
|
13607
13653
|
]);
|
|
13608
|
-
var
|
|
13654
|
+
var CreatePlanPlanItemFilterRequestBody$outboundSchema = z27.pipe(
|
|
13609
13655
|
z27.object({
|
|
13610
13656
|
featureId: z27.optional(z27.string()),
|
|
13611
13657
|
billingMethod: z27.optional(
|
|
13612
|
-
|
|
13658
|
+
CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema
|
|
13613
13659
|
),
|
|
13614
13660
|
interval: z27.optional(
|
|
13615
13661
|
smartUnion([
|
|
13616
|
-
|
|
13617
|
-
|
|
13662
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
|
|
13663
|
+
CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
|
|
13618
13664
|
])
|
|
13619
13665
|
),
|
|
13620
13666
|
intervalCount: z27.optional(z27.int()),
|
|
@@ -13628,16 +13674,18 @@ var CreatePlanLicensePlanItemFilter$outboundSchema = z27.pipe(
|
|
|
13628
13674
|
});
|
|
13629
13675
|
})
|
|
13630
13676
|
);
|
|
13631
|
-
var
|
|
13677
|
+
var CreatePlanCustomizeRequestBody$outboundSchema = z27.pipe(
|
|
13632
13678
|
z27.object({
|
|
13633
13679
|
price: z27.optional(
|
|
13634
|
-
z27.nullable(z27.lazy(() =>
|
|
13680
|
+
z27.nullable(z27.lazy(() => CreatePlanBasePriceRequestBody$outboundSchema))
|
|
13635
13681
|
),
|
|
13636
13682
|
addItems: z27.optional(
|
|
13637
|
-
z27.array(
|
|
13683
|
+
z27.array(
|
|
13684
|
+
z27.lazy(() => CreatePlanLicensePlanItemRequestBody$outboundSchema)
|
|
13685
|
+
)
|
|
13638
13686
|
),
|
|
13639
13687
|
removeItems: z27.optional(
|
|
13640
|
-
z27.array(z27.lazy(() =>
|
|
13688
|
+
z27.array(z27.lazy(() => CreatePlanPlanItemFilterRequestBody$outboundSchema))
|
|
13641
13689
|
)
|
|
13642
13690
|
}),
|
|
13643
13691
|
z27.transform((v) => {
|
|
@@ -13647,14 +13695,14 @@ var CreatePlanLicenseCustomize$outboundSchema = z27.pipe(
|
|
|
13647
13695
|
});
|
|
13648
13696
|
})
|
|
13649
13697
|
);
|
|
13650
|
-
var
|
|
13698
|
+
var CreatePlanLicenseRequest$outboundSchema = z27.pipe(
|
|
13651
13699
|
z27.object({
|
|
13652
13700
|
licensePlanId: z27.string(),
|
|
13653
13701
|
versionSlug: z27.optional(z27.string()),
|
|
13654
13702
|
included: z27.optional(z27.int()),
|
|
13655
13703
|
prepaidOnly: z27.optional(z27.boolean()),
|
|
13656
13704
|
customize: z27.optional(
|
|
13657
|
-
z27.nullable(z27.lazy(() =>
|
|
13705
|
+
z27.nullable(z27.lazy(() => CreatePlanCustomizeRequestBody$outboundSchema))
|
|
13658
13706
|
),
|
|
13659
13707
|
metadata: z27.optional(z27.record(z27.string(), z27.any()))
|
|
13660
13708
|
}),
|
|
@@ -13860,7 +13908,7 @@ var CreatePlanParams$outboundSchema = z27.pipe(
|
|
|
13860
13908
|
z27.array(z27.lazy(() => CreatePlanItemPlanItem$outboundSchema))
|
|
13861
13909
|
),
|
|
13862
13910
|
licenses: z27.optional(
|
|
13863
|
-
z27.array(z27.lazy(() =>
|
|
13911
|
+
z27.array(z27.lazy(() => CreatePlanLicenseRequest$outboundSchema))
|
|
13864
13912
|
),
|
|
13865
13913
|
freeTrial: z27.optional(z27.lazy(() => FreeTrialRequestBody$outboundSchema)),
|
|
13866
13914
|
config: z27.optional(
|
|
@@ -14131,17 +14179,17 @@ var CreatePlanVariantDetailsAddItemPriceInterval = {
|
|
|
14131
14179
|
SemiAnnual: "semi_annual",
|
|
14132
14180
|
Year: "year"
|
|
14133
14181
|
};
|
|
14134
|
-
var
|
|
14182
|
+
var CreatePlanVariantDetailsAddItemBillingMethod = {
|
|
14135
14183
|
Prepaid: "prepaid",
|
|
14136
14184
|
UsageBased: "usage_based"
|
|
14137
14185
|
};
|
|
14138
|
-
var
|
|
14186
|
+
var CreatePlanVariantDetailsOnIncrease = {
|
|
14139
14187
|
BillImmediately: "bill_immediately",
|
|
14140
14188
|
ProrateImmediately: "prorate_immediately",
|
|
14141
14189
|
ProrateNextCycle: "prorate_next_cycle",
|
|
14142
14190
|
BillNextCycle: "bill_next_cycle"
|
|
14143
14191
|
};
|
|
14144
|
-
var
|
|
14192
|
+
var CreatePlanVariantDetailsOnDecrease = {
|
|
14145
14193
|
Prorate: "prorate",
|
|
14146
14194
|
ProrateImmediately: "prorate_immediately",
|
|
14147
14195
|
ProrateNextCycle: "prorate_next_cycle",
|
|
@@ -14167,7 +14215,7 @@ var CreatePlanDimensionsToVariantDetailsEnum1 = {
|
|
|
14167
14215
|
var CreatePlanToVariantDetailsEnum = {
|
|
14168
14216
|
Inf: "inf"
|
|
14169
14217
|
};
|
|
14170
|
-
var
|
|
14218
|
+
var CreatePlanVariantDetailsRemoveItemBillingMethod = {
|
|
14171
14219
|
Prepaid: "prepaid",
|
|
14172
14220
|
UsageBased: "usage_based"
|
|
14173
14221
|
};
|
|
@@ -14892,7 +14940,7 @@ var CreatePlanVariantDetailsAdditionalCurrency$inboundSchema = z28.object(
|
|
|
14892
14940
|
amount: number2()
|
|
14893
14941
|
}
|
|
14894
14942
|
);
|
|
14895
|
-
var
|
|
14943
|
+
var CreatePlanVariantDetailsBasePrice$inboundSchema = z28.pipe(
|
|
14896
14944
|
z28.object({
|
|
14897
14945
|
amount: number2(),
|
|
14898
14946
|
interval: CreatePlanPriceVariantDetailsInterval$inboundSchema,
|
|
@@ -14923,7 +14971,7 @@ var CreatePlanVariantDetailsReset$inboundSchema = z28.pipe(
|
|
|
14923
14971
|
});
|
|
14924
14972
|
})
|
|
14925
14973
|
);
|
|
14926
|
-
var
|
|
14974
|
+
var CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z28.object({
|
|
14927
14975
|
currency: string5(),
|
|
14928
14976
|
amount: number2()
|
|
14929
14977
|
});
|
|
@@ -14958,12 +15006,12 @@ var CreatePlanVariantDetailsPriceTier$inboundSchema = z28.pipe(
|
|
|
14958
15006
|
);
|
|
14959
15007
|
var CreatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(CreatePlanVariantDetailsTierBehavior);
|
|
14960
15008
|
var CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemPriceInterval);
|
|
14961
|
-
var
|
|
15009
|
+
var CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemBillingMethod);
|
|
14962
15010
|
var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
|
|
14963
15011
|
z28.object({
|
|
14964
15012
|
amount: optional3(number2()),
|
|
14965
15013
|
additional_currencies: optional3(z28.array(z28.lazy(
|
|
14966
|
-
() =>
|
|
15014
|
+
() => CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
|
|
14967
15015
|
))),
|
|
14968
15016
|
tiers: optional3(z28.array(z28.lazy(
|
|
14969
15017
|
() => CreatePlanVariantDetailsPriceTier$inboundSchema
|
|
@@ -14974,7 +15022,7 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
|
|
|
14974
15022
|
interval: CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
|
|
14975
15023
|
interval_count: z28._default(number2(), 1),
|
|
14976
15024
|
billing_units: z28._default(number2(), 1),
|
|
14977
|
-
billing_method:
|
|
15025
|
+
billing_method: CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
|
|
14978
15026
|
max_purchase: z28.optional(z28.nullable(number2()))
|
|
14979
15027
|
}),
|
|
14980
15028
|
z28.transform((v) => {
|
|
@@ -14988,12 +15036,12 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
|
|
|
14988
15036
|
});
|
|
14989
15037
|
})
|
|
14990
15038
|
);
|
|
14991
|
-
var
|
|
14992
|
-
var
|
|
14993
|
-
var
|
|
15039
|
+
var CreatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnIncrease);
|
|
15040
|
+
var CreatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnDecrease);
|
|
15041
|
+
var CreatePlanVariantDetailsProration$inboundSchema = z28.pipe(
|
|
14994
15042
|
z28.object({
|
|
14995
|
-
on_increase:
|
|
14996
|
-
on_decrease:
|
|
15043
|
+
on_increase: CreatePlanVariantDetailsOnIncrease$inboundSchema,
|
|
15044
|
+
on_decrease: CreatePlanVariantDetailsOnDecrease$inboundSchema
|
|
14997
15045
|
}),
|
|
14998
15046
|
z28.transform((v) => {
|
|
14999
15047
|
return remap(v, {
|
|
@@ -15268,7 +15316,7 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
|
|
|
15268
15316
|
});
|
|
15269
15317
|
})
|
|
15270
15318
|
);
|
|
15271
|
-
var
|
|
15319
|
+
var CreatePlanVariantDetailsPlanItem$inboundSchema = z28.pipe(
|
|
15272
15320
|
z28.object({
|
|
15273
15321
|
threshold_billing: z28.optional(z28.nullable(z28.lazy(
|
|
15274
15322
|
() => CreatePlanVariantDetailsThresholdBilling$inboundSchema
|
|
@@ -15284,7 +15332,7 @@ var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
|
|
|
15284
15332
|
() => CreatePlanVariantDetailsPrice$inboundSchema
|
|
15285
15333
|
)),
|
|
15286
15334
|
proration: optional3(z28.lazy(
|
|
15287
|
-
() =>
|
|
15335
|
+
() => CreatePlanVariantDetailsProration$inboundSchema
|
|
15288
15336
|
)),
|
|
15289
15337
|
rollover: optional3(z28.lazy(
|
|
15290
15338
|
() => CreatePlanVariantDetailsRollover$inboundSchema
|
|
@@ -15304,18 +15352,18 @@ var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
|
|
|
15304
15352
|
});
|
|
15305
15353
|
})
|
|
15306
15354
|
);
|
|
15307
|
-
var
|
|
15355
|
+
var CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsRemoveItemBillingMethod);
|
|
15308
15356
|
var CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum2);
|
|
15309
15357
|
var CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum1);
|
|
15310
15358
|
var CreatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
|
|
15311
15359
|
CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
|
|
15312
15360
|
CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
|
|
15313
15361
|
]);
|
|
15314
|
-
var
|
|
15362
|
+
var CreatePlanVariantDetailsPlanItemFilter$inboundSchema = z28.pipe(
|
|
15315
15363
|
z28.object({
|
|
15316
15364
|
feature_id: optional3(string5()),
|
|
15317
15365
|
billing_method: optional3(
|
|
15318
|
-
|
|
15366
|
+
CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
|
|
15319
15367
|
),
|
|
15320
15368
|
interval: optional3(
|
|
15321
15369
|
smartUnion([
|
|
@@ -15638,6 +15686,96 @@ var CreatePlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
15638
15686
|
SemiAnnual: "semi_annual",
|
|
15639
15687
|
Year: "year"
|
|
15640
15688
|
};
|
|
15689
|
+
var CreatePlanPriceLicenseIntervalResponse = {
|
|
15690
|
+
OneOff: "one_off",
|
|
15691
|
+
Week: "week",
|
|
15692
|
+
Month: "month",
|
|
15693
|
+
Quarter: "quarter",
|
|
15694
|
+
SemiAnnual: "semi_annual",
|
|
15695
|
+
Year: "year"
|
|
15696
|
+
};
|
|
15697
|
+
var CreatePlanLicenseResetIntervalResponse = {
|
|
15698
|
+
OneOff: "one_off",
|
|
15699
|
+
Minute: "minute",
|
|
15700
|
+
Hour: "hour",
|
|
15701
|
+
Day: "day",
|
|
15702
|
+
Week: "week",
|
|
15703
|
+
Month: "month",
|
|
15704
|
+
Quarter: "quarter",
|
|
15705
|
+
SemiAnnual: "semi_annual",
|
|
15706
|
+
Year: "year"
|
|
15707
|
+
};
|
|
15708
|
+
var CreatePlanLicenseTierBehaviorResponse = {
|
|
15709
|
+
Graduated: "graduated",
|
|
15710
|
+
Volume: "volume"
|
|
15711
|
+
};
|
|
15712
|
+
var CreatePlanLicenseAddItemPriceIntervalResponse = {
|
|
15713
|
+
OneOff: "one_off",
|
|
15714
|
+
Week: "week",
|
|
15715
|
+
Month: "month",
|
|
15716
|
+
Quarter: "quarter",
|
|
15717
|
+
SemiAnnual: "semi_annual",
|
|
15718
|
+
Year: "year"
|
|
15719
|
+
};
|
|
15720
|
+
var CreatePlanLicenseAddItemBillingMethodResponse = {
|
|
15721
|
+
Prepaid: "prepaid",
|
|
15722
|
+
UsageBased: "usage_based"
|
|
15723
|
+
};
|
|
15724
|
+
var CreatePlanLicenseOnIncreaseResponse = {
|
|
15725
|
+
BillImmediately: "bill_immediately",
|
|
15726
|
+
ProrateImmediately: "prorate_immediately",
|
|
15727
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
15728
|
+
BillNextCycle: "bill_next_cycle"
|
|
15729
|
+
};
|
|
15730
|
+
var CreatePlanLicenseOnDecreaseResponse = {
|
|
15731
|
+
Prorate: "prorate",
|
|
15732
|
+
ProrateImmediately: "prorate_immediately",
|
|
15733
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
15734
|
+
None: "none",
|
|
15735
|
+
NoProrations: "no_prorations"
|
|
15736
|
+
};
|
|
15737
|
+
var CreatePlanLicenseExpiryDurationTypeResponse = {
|
|
15738
|
+
Month: "month",
|
|
15739
|
+
Forever: "forever"
|
|
15740
|
+
};
|
|
15741
|
+
var CreatePlanLicenseDurationResponse = {
|
|
15742
|
+
Day: "day",
|
|
15743
|
+
Week: "week",
|
|
15744
|
+
Month: "month",
|
|
15745
|
+
Year: "year"
|
|
15746
|
+
};
|
|
15747
|
+
var CreatePlanDimensionsToLicenseResponseEnum2 = {
|
|
15748
|
+
Inf: "inf"
|
|
15749
|
+
};
|
|
15750
|
+
var CreatePlanDimensionsToLicenseResponseEnum1 = {
|
|
15751
|
+
Inf: "inf"
|
|
15752
|
+
};
|
|
15753
|
+
var CreatePlanToLicenseResponseEnum = {
|
|
15754
|
+
Inf: "inf"
|
|
15755
|
+
};
|
|
15756
|
+
var CreatePlanLicenseRemoveItemBillingMethodResponse = {
|
|
15757
|
+
Prepaid: "prepaid",
|
|
15758
|
+
UsageBased: "usage_based"
|
|
15759
|
+
};
|
|
15760
|
+
var CreatePlanIntervalLicenseRemoveItemResponseEnum2 = {
|
|
15761
|
+
OneOff: "one_off",
|
|
15762
|
+
Minute: "minute",
|
|
15763
|
+
Hour: "hour",
|
|
15764
|
+
Day: "day",
|
|
15765
|
+
Week: "week",
|
|
15766
|
+
Month: "month",
|
|
15767
|
+
Quarter: "quarter",
|
|
15768
|
+
SemiAnnual: "semi_annual",
|
|
15769
|
+
Year: "year"
|
|
15770
|
+
};
|
|
15771
|
+
var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
15772
|
+
OneOff: "one_off",
|
|
15773
|
+
Week: "week",
|
|
15774
|
+
Month: "month",
|
|
15775
|
+
Quarter: "quarter",
|
|
15776
|
+
SemiAnnual: "semi_annual",
|
|
15777
|
+
Year: "year"
|
|
15778
|
+
};
|
|
15641
15779
|
var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
|
|
15642
15780
|
z29.object({
|
|
15643
15781
|
on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
|
|
@@ -16026,14 +16164,16 @@ var CreatePlanRemoveLicense$inboundSchema = z29.pipe(
|
|
|
16026
16164
|
});
|
|
16027
16165
|
})
|
|
16028
16166
|
);
|
|
16029
|
-
var
|
|
16167
|
+
var CreatePlanVariantDetailsCustomize$inboundSchema = z29.pipe(
|
|
16030
16168
|
z29.object({
|
|
16031
|
-
price: z29.optional(
|
|
16169
|
+
price: z29.optional(
|
|
16170
|
+
z29.nullable(CreatePlanVariantDetailsBasePrice$inboundSchema)
|
|
16171
|
+
),
|
|
16032
16172
|
add_items: optional3(
|
|
16033
|
-
z29.array(
|
|
16173
|
+
z29.array(CreatePlanVariantDetailsPlanItem$inboundSchema)
|
|
16034
16174
|
),
|
|
16035
16175
|
remove_items: optional3(
|
|
16036
|
-
z29.array(
|
|
16176
|
+
z29.array(CreatePlanVariantDetailsPlanItemFilter$inboundSchema)
|
|
16037
16177
|
),
|
|
16038
16178
|
free_trial: z29.optional(z29.nullable(CreatePlanFreeTrialParams$inboundSchema)),
|
|
16039
16179
|
billing_controls: optional3(
|
|
@@ -16061,7 +16201,7 @@ var CreatePlanVariantDetails$inboundSchema = z29.pipe(
|
|
|
16061
16201
|
z29.object({
|
|
16062
16202
|
base_plan_id: string5(),
|
|
16063
16203
|
customize: optional3(
|
|
16064
|
-
z29.lazy(() =>
|
|
16204
|
+
z29.lazy(() => CreatePlanVariantDetailsCustomize$inboundSchema)
|
|
16065
16205
|
)
|
|
16066
16206
|
}),
|
|
16067
16207
|
z29.transform((v) => {
|
|
@@ -16070,6 +16210,493 @@ var CreatePlanVariantDetails$inboundSchema = z29.pipe(
|
|
|
16070
16210
|
});
|
|
16071
16211
|
})
|
|
16072
16212
|
);
|
|
16213
|
+
var CreatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(CreatePlanPriceLicenseIntervalResponse);
|
|
16214
|
+
var CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z29.object({
|
|
16215
|
+
currency: string5(),
|
|
16216
|
+
amount: number2()
|
|
16217
|
+
});
|
|
16218
|
+
var CreatePlanLicenseBasePriceResponse$inboundSchema = z29.pipe(
|
|
16219
|
+
z29.object({
|
|
16220
|
+
amount: number2(),
|
|
16221
|
+
interval: CreatePlanPriceLicenseIntervalResponse$inboundSchema,
|
|
16222
|
+
interval_count: z29._default(number2(), 1),
|
|
16223
|
+
additional_currencies: optional3(z29.array(z29.lazy(
|
|
16224
|
+
() => CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema
|
|
16225
|
+
)))
|
|
16226
|
+
}),
|
|
16227
|
+
z29.transform((v) => {
|
|
16228
|
+
return remap(v, {
|
|
16229
|
+
"interval_count": "intervalCount",
|
|
16230
|
+
"additional_currencies": "additionalCurrencies"
|
|
16231
|
+
});
|
|
16232
|
+
})
|
|
16233
|
+
);
|
|
16234
|
+
var CreatePlanLicenseThresholdBillingResponse$inboundSchema = z29.object({
|
|
16235
|
+
threshold: number2()
|
|
16236
|
+
});
|
|
16237
|
+
var CreatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseResetIntervalResponse);
|
|
16238
|
+
var CreatePlanLicenseResetResponse$inboundSchema = z29.pipe(
|
|
16239
|
+
z29.object({
|
|
16240
|
+
interval: CreatePlanLicenseResetIntervalResponse$inboundSchema,
|
|
16241
|
+
interval_count: z29._default(number2(), 1)
|
|
16242
|
+
}),
|
|
16243
|
+
z29.transform((v) => {
|
|
16244
|
+
return remap(v, {
|
|
16245
|
+
"interval_count": "intervalCount"
|
|
16246
|
+
});
|
|
16247
|
+
})
|
|
16248
|
+
);
|
|
16249
|
+
var CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z29.object({
|
|
16250
|
+
currency: string5(),
|
|
16251
|
+
amount: number2()
|
|
16252
|
+
});
|
|
16253
|
+
var CreatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
16254
|
+
var CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z29.pipe(
|
|
16255
|
+
z29.object({
|
|
16256
|
+
currency: string5(),
|
|
16257
|
+
amount: optional3(number2()),
|
|
16258
|
+
flat_amount: optional3(number2())
|
|
16259
|
+
}),
|
|
16260
|
+
z29.transform((v) => {
|
|
16261
|
+
return remap(v, {
|
|
16262
|
+
"flat_amount": "flatAmount"
|
|
16263
|
+
});
|
|
16264
|
+
})
|
|
16265
|
+
);
|
|
16266
|
+
var CreatePlanLicensePriceTierResponse$inboundSchema = z29.pipe(
|
|
16267
|
+
z29.object({
|
|
16268
|
+
to: smartUnion([number2(), string5()]),
|
|
16269
|
+
amount: number2(),
|
|
16270
|
+
flat_amount: optional3(number2()),
|
|
16271
|
+
additional_currencies: optional3(z29.array(z29.lazy(
|
|
16272
|
+
() => CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
|
|
16273
|
+
)))
|
|
16274
|
+
}),
|
|
16275
|
+
z29.transform((v) => {
|
|
16276
|
+
return remap(v, {
|
|
16277
|
+
"flat_amount": "flatAmount",
|
|
16278
|
+
"additional_currencies": "additionalCurrencies"
|
|
16279
|
+
});
|
|
16280
|
+
})
|
|
16281
|
+
);
|
|
16282
|
+
var CreatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(CreatePlanLicenseTierBehaviorResponse);
|
|
16283
|
+
var CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemPriceIntervalResponse);
|
|
16284
|
+
var CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemBillingMethodResponse);
|
|
16285
|
+
var CreatePlanLicensePriceResponse$inboundSchema = z29.pipe(
|
|
16286
|
+
z29.object({
|
|
16287
|
+
amount: optional3(number2()),
|
|
16288
|
+
additional_currencies: optional3(z29.array(z29.lazy(
|
|
16289
|
+
() => CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
|
|
16290
|
+
))),
|
|
16291
|
+
tiers: optional3(z29.array(z29.lazy(
|
|
16292
|
+
() => CreatePlanLicensePriceTierResponse$inboundSchema
|
|
16293
|
+
))),
|
|
16294
|
+
tier_behavior: optional3(
|
|
16295
|
+
CreatePlanLicenseTierBehaviorResponse$inboundSchema
|
|
16296
|
+
),
|
|
16297
|
+
interval: CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
|
|
16298
|
+
interval_count: z29._default(number2(), 1),
|
|
16299
|
+
billing_units: z29._default(number2(), 1),
|
|
16300
|
+
billing_method: CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
|
|
16301
|
+
max_purchase: z29.optional(z29.nullable(number2()))
|
|
16302
|
+
}),
|
|
16303
|
+
z29.transform((v) => {
|
|
16304
|
+
return remap(v, {
|
|
16305
|
+
"additional_currencies": "additionalCurrencies",
|
|
16306
|
+
"tier_behavior": "tierBehavior",
|
|
16307
|
+
"interval_count": "intervalCount",
|
|
16308
|
+
"billing_units": "billingUnits",
|
|
16309
|
+
"billing_method": "billingMethod",
|
|
16310
|
+
"max_purchase": "maxPurchase"
|
|
16311
|
+
});
|
|
16312
|
+
})
|
|
16313
|
+
);
|
|
16314
|
+
var CreatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnIncreaseResponse);
|
|
16315
|
+
var CreatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnDecreaseResponse);
|
|
16316
|
+
var CreatePlanLicenseProrationResponse$inboundSchema = z29.pipe(
|
|
16317
|
+
z29.object({
|
|
16318
|
+
on_increase: CreatePlanLicenseOnIncreaseResponse$inboundSchema,
|
|
16319
|
+
on_decrease: CreatePlanLicenseOnDecreaseResponse$inboundSchema
|
|
16320
|
+
}),
|
|
16321
|
+
z29.transform((v) => {
|
|
16322
|
+
return remap(v, {
|
|
16323
|
+
"on_increase": "onIncrease",
|
|
16324
|
+
"on_decrease": "onDecrease"
|
|
16325
|
+
});
|
|
16326
|
+
})
|
|
16327
|
+
);
|
|
16328
|
+
var CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePlanLicenseExpiryDurationTypeResponse);
|
|
16329
|
+
var CreatePlanLicenseRolloverResponse$inboundSchema = z29.pipe(
|
|
16330
|
+
z29.object({
|
|
16331
|
+
max: optional3(number2()),
|
|
16332
|
+
max_percentage: optional3(number2()),
|
|
16333
|
+
expiry_duration_type: CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
|
|
16334
|
+
expiry_duration_length: optional3(number2())
|
|
16335
|
+
}),
|
|
16336
|
+
z29.transform((v) => {
|
|
16337
|
+
return remap(v, {
|
|
16338
|
+
"max_percentage": "maxPercentage",
|
|
16339
|
+
"expiry_duration_type": "expiryDurationType",
|
|
16340
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
16341
|
+
});
|
|
16342
|
+
})
|
|
16343
|
+
);
|
|
16344
|
+
var CreatePlanLicenseDurationResponse$inboundSchema = inboundSchema(CreatePlanLicenseDurationResponse);
|
|
16345
|
+
var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
|
|
16346
|
+
duration: CreatePlanLicenseDurationResponse$inboundSchema,
|
|
16347
|
+
length: number2()
|
|
16348
|
+
});
|
|
16349
|
+
var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
|
|
16350
|
+
z29.object({
|
|
16351
|
+
match: z29.record(z29.string(), string5()),
|
|
16352
|
+
priority: optional3(number2()),
|
|
16353
|
+
credit_cost: number2()
|
|
16354
|
+
}),
|
|
16355
|
+
z29.transform((v) => {
|
|
16356
|
+
return remap(v, {
|
|
16357
|
+
"credit_cost": "creditCost"
|
|
16358
|
+
});
|
|
16359
|
+
})
|
|
16360
|
+
);
|
|
16361
|
+
var CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z29.enum(
|
|
16362
|
+
CreatePlanDimensionsToLicenseResponseEnum2
|
|
16363
|
+
);
|
|
16364
|
+
var CreatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
|
|
16365
|
+
number2(),
|
|
16366
|
+
CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
|
|
16367
|
+
]);
|
|
16368
|
+
var CreatePlanDimensionsLicenseTierResponse2$inboundSchema = z29.pipe(
|
|
16369
|
+
z29.object({
|
|
16370
|
+
to: smartUnion([
|
|
16371
|
+
number2(),
|
|
16372
|
+
CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
|
|
16373
|
+
]),
|
|
16374
|
+
credit_cost: number2()
|
|
16375
|
+
}),
|
|
16376
|
+
z29.transform((v) => {
|
|
16377
|
+
return remap(v, {
|
|
16378
|
+
"credit_cost": "creditCost"
|
|
16379
|
+
});
|
|
16380
|
+
})
|
|
16381
|
+
);
|
|
16382
|
+
var CreatePlanDimensionsLicenseResponse3$inboundSchema = z29.pipe(
|
|
16383
|
+
z29.object({
|
|
16384
|
+
match: z29.record(z29.string(), string5()),
|
|
16385
|
+
priority: optional3(number2()),
|
|
16386
|
+
tier_behavior: literal3("graduated"),
|
|
16387
|
+
tiers: z29.array(
|
|
16388
|
+
z29.lazy(() => CreatePlanDimensionsLicenseTierResponse2$inboundSchema)
|
|
16389
|
+
)
|
|
16390
|
+
}),
|
|
16391
|
+
z29.transform((v) => {
|
|
16392
|
+
return remap(v, {
|
|
16393
|
+
"tier_behavior": "tierBehavior"
|
|
16394
|
+
});
|
|
16395
|
+
})
|
|
16396
|
+
);
|
|
16397
|
+
var CreatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
|
|
16398
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
|
|
16399
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
|
|
16400
|
+
]);
|
|
16401
|
+
var CreatePlanLicenseMultipliersResponse2$inboundSchema = z29.object({
|
|
16402
|
+
match: z29.record(z29.string(), string5()),
|
|
16403
|
+
factor: optional3(number2()),
|
|
16404
|
+
add: optional3(number2())
|
|
16405
|
+
});
|
|
16406
|
+
var CreatePlanCreditSchemaLicenseResponse2$inboundSchema = z29.pipe(
|
|
16407
|
+
z29.object({
|
|
16408
|
+
metered_feature_id: string5(),
|
|
16409
|
+
billing_units: optional3(number2()),
|
|
16410
|
+
dimensions: optional3(z29.record(
|
|
16411
|
+
z29.string(),
|
|
16412
|
+
smartUnion([
|
|
16413
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
|
|
16414
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
|
|
16415
|
+
])
|
|
16416
|
+
)),
|
|
16417
|
+
multipliers: optional3(z29.record(
|
|
16418
|
+
z29.string(),
|
|
16419
|
+
z29.lazy(() => CreatePlanLicenseMultipliersResponse2$inboundSchema)
|
|
16420
|
+
)),
|
|
16421
|
+
credit_cost: number2()
|
|
16422
|
+
}),
|
|
16423
|
+
z29.transform((v) => {
|
|
16424
|
+
return remap(v, {
|
|
16425
|
+
"metered_feature_id": "meteredFeatureId",
|
|
16426
|
+
"billing_units": "billingUnits",
|
|
16427
|
+
"credit_cost": "creditCost"
|
|
16428
|
+
});
|
|
16429
|
+
})
|
|
16430
|
+
);
|
|
16431
|
+
var CreatePlanDimensionsLicenseResponse2$inboundSchema = z29.pipe(
|
|
16432
|
+
z29.object({
|
|
16433
|
+
match: z29.record(z29.string(), string5()),
|
|
16434
|
+
priority: optional3(number2()),
|
|
16435
|
+
credit_cost: number2()
|
|
16436
|
+
}),
|
|
16437
|
+
z29.transform((v) => {
|
|
16438
|
+
return remap(v, {
|
|
16439
|
+
"credit_cost": "creditCost"
|
|
16440
|
+
});
|
|
16441
|
+
})
|
|
16442
|
+
);
|
|
16443
|
+
var CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z29.enum(
|
|
16444
|
+
CreatePlanDimensionsToLicenseResponseEnum1
|
|
16445
|
+
);
|
|
16446
|
+
var CreatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
|
|
16447
|
+
number2(),
|
|
16448
|
+
CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
|
|
16449
|
+
]);
|
|
16450
|
+
var CreatePlanDimensionsLicenseTierResponse1$inboundSchema = z29.pipe(
|
|
16451
|
+
z29.object({
|
|
16452
|
+
to: smartUnion([
|
|
16453
|
+
number2(),
|
|
16454
|
+
CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
|
|
16455
|
+
]),
|
|
16456
|
+
credit_cost: number2()
|
|
16457
|
+
}),
|
|
16458
|
+
z29.transform((v) => {
|
|
16459
|
+
return remap(v, {
|
|
16460
|
+
"credit_cost": "creditCost"
|
|
16461
|
+
});
|
|
16462
|
+
})
|
|
16463
|
+
);
|
|
16464
|
+
var CreatePlanDimensionsLicenseResponse1$inboundSchema = z29.pipe(
|
|
16465
|
+
z29.object({
|
|
16466
|
+
match: z29.record(z29.string(), string5()),
|
|
16467
|
+
priority: optional3(number2()),
|
|
16468
|
+
tier_behavior: literal3("graduated"),
|
|
16469
|
+
tiers: z29.array(
|
|
16470
|
+
z29.lazy(() => CreatePlanDimensionsLicenseTierResponse1$inboundSchema)
|
|
16471
|
+
)
|
|
16472
|
+
}),
|
|
16473
|
+
z29.transform((v) => {
|
|
16474
|
+
return remap(v, {
|
|
16475
|
+
"tier_behavior": "tierBehavior"
|
|
16476
|
+
});
|
|
16477
|
+
})
|
|
16478
|
+
);
|
|
16479
|
+
var CreatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
|
|
16480
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
|
|
16481
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
|
|
16482
|
+
]);
|
|
16483
|
+
var CreatePlanLicenseMultipliersResponse1$inboundSchema = z29.object({
|
|
16484
|
+
match: z29.record(z29.string(), string5()),
|
|
16485
|
+
factor: optional3(number2()),
|
|
16486
|
+
add: optional3(number2())
|
|
16487
|
+
});
|
|
16488
|
+
var CreatePlanToLicenseResponseEnum$inboundSchema = z29.enum(CreatePlanToLicenseResponseEnum);
|
|
16489
|
+
var CreatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), CreatePlanToLicenseResponseEnum$inboundSchema]);
|
|
16490
|
+
var CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z29.pipe(
|
|
16491
|
+
z29.object({
|
|
16492
|
+
to: smartUnion([
|
|
16493
|
+
number2(),
|
|
16494
|
+
CreatePlanToLicenseResponseEnum$inboundSchema
|
|
16495
|
+
]),
|
|
16496
|
+
credit_cost: number2()
|
|
16497
|
+
}),
|
|
16498
|
+
z29.transform((v) => {
|
|
16499
|
+
return remap(v, {
|
|
16500
|
+
"credit_cost": "creditCost"
|
|
16501
|
+
});
|
|
16502
|
+
})
|
|
16503
|
+
);
|
|
16504
|
+
var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
|
|
16505
|
+
z29.object({
|
|
16506
|
+
metered_feature_id: string5(),
|
|
16507
|
+
billing_units: optional3(number2()),
|
|
16508
|
+
dimensions: optional3(z29.record(
|
|
16509
|
+
z29.string(),
|
|
16510
|
+
smartUnion([
|
|
16511
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
|
|
16512
|
+
z29.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
|
|
16513
|
+
])
|
|
16514
|
+
)),
|
|
16515
|
+
multipliers: optional3(z29.record(
|
|
16516
|
+
z29.string(),
|
|
16517
|
+
z29.lazy(() => CreatePlanLicenseMultipliersResponse1$inboundSchema)
|
|
16518
|
+
)),
|
|
16519
|
+
tier_behavior: literal3("graduated"),
|
|
16520
|
+
tiers: z29.array(z29.lazy(
|
|
16521
|
+
() => CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema
|
|
16522
|
+
))
|
|
16523
|
+
}),
|
|
16524
|
+
z29.transform((v) => {
|
|
16525
|
+
return remap(v, {
|
|
16526
|
+
"metered_feature_id": "meteredFeatureId",
|
|
16527
|
+
"billing_units": "billingUnits",
|
|
16528
|
+
"tier_behavior": "tierBehavior"
|
|
16529
|
+
});
|
|
16530
|
+
})
|
|
16531
|
+
);
|
|
16532
|
+
var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
16533
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
16534
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
16535
|
+
]);
|
|
16536
|
+
var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
|
|
16537
|
+
markup: number2()
|
|
16538
|
+
});
|
|
16539
|
+
var CreatePlanLicenseModelMarkupsResponse$inboundSchema = z29.pipe(
|
|
16540
|
+
z29.object({
|
|
16541
|
+
markup: optional3(number2()),
|
|
16542
|
+
input_cost: optional3(number2()),
|
|
16543
|
+
output_cost: optional3(number2())
|
|
16544
|
+
}),
|
|
16545
|
+
z29.transform((v) => {
|
|
16546
|
+
return remap(v, {
|
|
16547
|
+
"input_cost": "inputCost",
|
|
16548
|
+
"output_cost": "outputCost"
|
|
16549
|
+
});
|
|
16550
|
+
})
|
|
16551
|
+
);
|
|
16552
|
+
var CreatePlanLicenseMarkupsResponse$inboundSchema = z29.pipe(
|
|
16553
|
+
z29.object({
|
|
16554
|
+
default_markup: optional3(number2()),
|
|
16555
|
+
provider_markups: z29.optional(z29.nullable(z29.record(
|
|
16556
|
+
z29.string(),
|
|
16557
|
+
z29.lazy(() => CreatePlanLicenseProviderMarkupsResponse$inboundSchema)
|
|
16558
|
+
))),
|
|
16559
|
+
model_markups: z29.optional(z29.nullable(z29.record(
|
|
16560
|
+
z29.string(),
|
|
16561
|
+
z29.lazy(() => CreatePlanLicenseModelMarkupsResponse$inboundSchema)
|
|
16562
|
+
)))
|
|
16563
|
+
}),
|
|
16564
|
+
z29.transform((v) => {
|
|
16565
|
+
return remap(v, {
|
|
16566
|
+
"default_markup": "defaultMarkup",
|
|
16567
|
+
"provider_markups": "providerMarkups",
|
|
16568
|
+
"model_markups": "modelMarkups"
|
|
16569
|
+
});
|
|
16570
|
+
})
|
|
16571
|
+
);
|
|
16572
|
+
var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
|
|
16573
|
+
z29.object({
|
|
16574
|
+
credit_schema: optional3(z29.array(smartUnion([
|
|
16575
|
+
z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
16576
|
+
z29.lazy(
|
|
16577
|
+
() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
16578
|
+
)
|
|
16579
|
+
]))),
|
|
16580
|
+
markups: optional3(z29.lazy(
|
|
16581
|
+
() => CreatePlanLicenseMarkupsResponse$inboundSchema
|
|
16582
|
+
))
|
|
16583
|
+
}),
|
|
16584
|
+
z29.transform((v) => {
|
|
16585
|
+
return remap(v, {
|
|
16586
|
+
"credit_schema": "creditSchema"
|
|
16587
|
+
});
|
|
16588
|
+
})
|
|
16589
|
+
);
|
|
16590
|
+
var CreatePlanLicensePlanItemResponse$inboundSchema = z29.pipe(
|
|
16591
|
+
z29.object({
|
|
16592
|
+
threshold_billing: z29.optional(z29.nullable(z29.lazy(
|
|
16593
|
+
() => CreatePlanLicenseThresholdBillingResponse$inboundSchema
|
|
16594
|
+
))),
|
|
16595
|
+
feature_id: string5(),
|
|
16596
|
+
included: optional3(number2()),
|
|
16597
|
+
unlimited: optional3(boolean2()),
|
|
16598
|
+
pooled: z29._default(boolean2(), false),
|
|
16599
|
+
reset: optional3(z29.lazy(
|
|
16600
|
+
() => CreatePlanLicenseResetResponse$inboundSchema
|
|
16601
|
+
)),
|
|
16602
|
+
price: optional3(z29.lazy(
|
|
16603
|
+
() => CreatePlanLicensePriceResponse$inboundSchema
|
|
16604
|
+
)),
|
|
16605
|
+
proration: optional3(z29.lazy(
|
|
16606
|
+
() => CreatePlanLicenseProrationResponse$inboundSchema
|
|
16607
|
+
)),
|
|
16608
|
+
rollover: optional3(z29.lazy(
|
|
16609
|
+
() => CreatePlanLicenseRolloverResponse$inboundSchema
|
|
16610
|
+
)),
|
|
16611
|
+
expiry: optional3(z29.lazy(
|
|
16612
|
+
() => CreatePlanLicenseExpiryResponse$inboundSchema
|
|
16613
|
+
)),
|
|
16614
|
+
feature_override: optional3(z29.lazy(
|
|
16615
|
+
() => CreatePlanLicenseFeatureOverrideResponse$inboundSchema
|
|
16616
|
+
))
|
|
16617
|
+
}),
|
|
16618
|
+
z29.transform((v) => {
|
|
16619
|
+
return remap(v, {
|
|
16620
|
+
"threshold_billing": "thresholdBilling",
|
|
16621
|
+
"feature_id": "featureId",
|
|
16622
|
+
"feature_override": "featureOverride"
|
|
16623
|
+
});
|
|
16624
|
+
})
|
|
16625
|
+
);
|
|
16626
|
+
var CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseRemoveItemBillingMethodResponse);
|
|
16627
|
+
var CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum2);
|
|
16628
|
+
var CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum1);
|
|
16629
|
+
var CreatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
|
|
16630
|
+
CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
|
|
16631
|
+
CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
|
|
16632
|
+
]);
|
|
16633
|
+
var CreatePlanLicensePlanItemFilterResponse$inboundSchema = z29.pipe(
|
|
16634
|
+
z29.object({
|
|
16635
|
+
feature_id: optional3(string5()),
|
|
16636
|
+
billing_method: optional3(
|
|
16637
|
+
CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
|
|
16638
|
+
),
|
|
16639
|
+
interval: optional3(
|
|
16640
|
+
smartUnion([
|
|
16641
|
+
CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
|
|
16642
|
+
CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
|
|
16643
|
+
])
|
|
16644
|
+
),
|
|
16645
|
+
interval_count: optional3(number2()),
|
|
16646
|
+
included: optional3(number2())
|
|
16647
|
+
}),
|
|
16648
|
+
z29.transform((v) => {
|
|
16649
|
+
return remap(v, {
|
|
16650
|
+
"feature_id": "featureId",
|
|
16651
|
+
"billing_method": "billingMethod",
|
|
16652
|
+
"interval_count": "intervalCount"
|
|
16653
|
+
});
|
|
16654
|
+
})
|
|
16655
|
+
);
|
|
16656
|
+
var CreatePlanLicenseCustomizeResponse$inboundSchema = z29.pipe(
|
|
16657
|
+
z29.object({
|
|
16658
|
+
price: z29.optional(
|
|
16659
|
+
z29.nullable(
|
|
16660
|
+
z29.lazy(() => CreatePlanLicenseBasePriceResponse$inboundSchema)
|
|
16661
|
+
)
|
|
16662
|
+
),
|
|
16663
|
+
add_items: optional3(
|
|
16664
|
+
z29.array(z29.lazy(() => CreatePlanLicensePlanItemResponse$inboundSchema))
|
|
16665
|
+
),
|
|
16666
|
+
remove_items: optional3(
|
|
16667
|
+
z29.array(
|
|
16668
|
+
z29.lazy(() => CreatePlanLicensePlanItemFilterResponse$inboundSchema)
|
|
16669
|
+
)
|
|
16670
|
+
)
|
|
16671
|
+
}),
|
|
16672
|
+
z29.transform((v) => {
|
|
16673
|
+
return remap(v, {
|
|
16674
|
+
"add_items": "addItems",
|
|
16675
|
+
"remove_items": "removeItems"
|
|
16676
|
+
});
|
|
16677
|
+
})
|
|
16678
|
+
);
|
|
16679
|
+
var CreatePlanLicenseResponse$inboundSchema = z29.pipe(
|
|
16680
|
+
z29.object({
|
|
16681
|
+
license_plan_id: string5(),
|
|
16682
|
+
version: number2(),
|
|
16683
|
+
version_slug: optional3(string5()),
|
|
16684
|
+
included: number2(),
|
|
16685
|
+
prepaid_only: boolean2(),
|
|
16686
|
+
customize: optional3(
|
|
16687
|
+
z29.lazy(() => CreatePlanLicenseCustomizeResponse$inboundSchema)
|
|
16688
|
+
),
|
|
16689
|
+
metadata: optional3(z29.record(z29.string(), z29.any())),
|
|
16690
|
+
plan: optional3(Plan$inboundSchema)
|
|
16691
|
+
}),
|
|
16692
|
+
z29.transform((v) => {
|
|
16693
|
+
return remap(v, {
|
|
16694
|
+
"license_plan_id": "licensePlanId",
|
|
16695
|
+
"version_slug": "versionSlug",
|
|
16696
|
+
"prepaid_only": "prepaidOnly"
|
|
16697
|
+
});
|
|
16698
|
+
})
|
|
16699
|
+
);
|
|
16073
16700
|
var CreatePlanResponse$inboundSchema = z29.pipe(
|
|
16074
16701
|
z29.object({
|
|
16075
16702
|
id: string5(),
|
|
@@ -16099,6 +16726,9 @@ var CreatePlanResponse$inboundSchema = z29.pipe(
|
|
|
16099
16726
|
base_variant_id: nullable(string5()),
|
|
16100
16727
|
variant_details: optional3(
|
|
16101
16728
|
z29.lazy(() => CreatePlanVariantDetails$inboundSchema)
|
|
16729
|
+
),
|
|
16730
|
+
licenses: optional3(
|
|
16731
|
+
z29.array(z29.lazy(() => CreatePlanLicenseResponse$inboundSchema))
|
|
16102
16732
|
)
|
|
16103
16733
|
}),
|
|
16104
16734
|
z29.transform((v) => {
|
|
@@ -24221,7 +24851,7 @@ var GetPlanPriceVariantDetailsInterval = {
|
|
|
24221
24851
|
SemiAnnual: "semi_annual",
|
|
24222
24852
|
Year: "year"
|
|
24223
24853
|
};
|
|
24224
|
-
var
|
|
24854
|
+
var GetPlanVariantDetailsResetInterval = {
|
|
24225
24855
|
OneOff: "one_off",
|
|
24226
24856
|
Minute: "minute",
|
|
24227
24857
|
Hour: "hour",
|
|
@@ -24236,7 +24866,7 @@ var GetPlanVariantDetailsTierBehavior = {
|
|
|
24236
24866
|
Graduated: "graduated",
|
|
24237
24867
|
Volume: "volume"
|
|
24238
24868
|
};
|
|
24239
|
-
var
|
|
24869
|
+
var GetPlanVariantDetailsAddItemPriceInterval = {
|
|
24240
24870
|
OneOff: "one_off",
|
|
24241
24871
|
Week: "week",
|
|
24242
24872
|
Month: "month",
|
|
@@ -24244,17 +24874,17 @@ var GetPlanAddItemPriceInterval = {
|
|
|
24244
24874
|
SemiAnnual: "semi_annual",
|
|
24245
24875
|
Year: "year"
|
|
24246
24876
|
};
|
|
24247
|
-
var
|
|
24877
|
+
var GetPlanVariantDetailsAddItemBillingMethod = {
|
|
24248
24878
|
Prepaid: "prepaid",
|
|
24249
24879
|
UsageBased: "usage_based"
|
|
24250
24880
|
};
|
|
24251
|
-
var
|
|
24881
|
+
var GetPlanVariantDetailsOnIncrease = {
|
|
24252
24882
|
BillImmediately: "bill_immediately",
|
|
24253
24883
|
ProrateImmediately: "prorate_immediately",
|
|
24254
24884
|
ProrateNextCycle: "prorate_next_cycle",
|
|
24255
24885
|
BillNextCycle: "bill_next_cycle"
|
|
24256
24886
|
};
|
|
24257
|
-
var
|
|
24887
|
+
var GetPlanVariantDetailsOnDecrease = {
|
|
24258
24888
|
Prorate: "prorate",
|
|
24259
24889
|
ProrateImmediately: "prorate_immediately",
|
|
24260
24890
|
ProrateNextCycle: "prorate_next_cycle",
|
|
@@ -24280,11 +24910,11 @@ var GetPlanDimensionsToVariantDetailsEnum1 = {
|
|
|
24280
24910
|
var GetPlanToVariantDetailsEnum = {
|
|
24281
24911
|
Inf: "inf"
|
|
24282
24912
|
};
|
|
24283
|
-
var
|
|
24913
|
+
var GetPlanVariantDetailsRemoveItemBillingMethod = {
|
|
24284
24914
|
Prepaid: "prepaid",
|
|
24285
24915
|
UsageBased: "usage_based"
|
|
24286
24916
|
};
|
|
24287
|
-
var
|
|
24917
|
+
var GetPlanIntervalVariantDetailsRemoveItemEnum2 = {
|
|
24288
24918
|
OneOff: "one_off",
|
|
24289
24919
|
Minute: "minute",
|
|
24290
24920
|
Hour: "hour",
|
|
@@ -24295,7 +24925,7 @@ var GetPlanIntervalRemoveItemEnum2 = {
|
|
|
24295
24925
|
SemiAnnual: "semi_annual",
|
|
24296
24926
|
Year: "year"
|
|
24297
24927
|
};
|
|
24298
|
-
var
|
|
24928
|
+
var GetPlanIntervalVariantDetailsRemoveItemEnum1 = {
|
|
24299
24929
|
OneOff: "one_off",
|
|
24300
24930
|
Week: "week",
|
|
24301
24931
|
Month: "month",
|
|
@@ -25055,7 +25685,7 @@ var GetPlanVariantDetailsAdditionalCurrency$inboundSchema = z56.object({
|
|
|
25055
25685
|
currency: string5(),
|
|
25056
25686
|
amount: number2()
|
|
25057
25687
|
});
|
|
25058
|
-
var
|
|
25688
|
+
var GetPlanVariantDetailsBasePrice$inboundSchema = z56.pipe(
|
|
25059
25689
|
z56.object({
|
|
25060
25690
|
amount: number2(),
|
|
25061
25691
|
interval: GetPlanPriceVariantDetailsInterval$inboundSchema,
|
|
@@ -25074,10 +25704,10 @@ var GetPlanBasePrice$inboundSchema = z56.pipe(
|
|
|
25074
25704
|
var GetPlanVariantDetailsThresholdBilling$inboundSchema = z56.object({
|
|
25075
25705
|
threshold: number2()
|
|
25076
25706
|
});
|
|
25077
|
-
var
|
|
25707
|
+
var GetPlanVariantDetailsResetInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsResetInterval);
|
|
25078
25708
|
var GetPlanVariantDetailsReset$inboundSchema = z56.pipe(
|
|
25079
25709
|
z56.object({
|
|
25080
|
-
interval:
|
|
25710
|
+
interval: GetPlanVariantDetailsResetInterval$inboundSchema,
|
|
25081
25711
|
interval_count: z56._default(number2(), 1)
|
|
25082
25712
|
}),
|
|
25083
25713
|
z56.transform((v) => {
|
|
@@ -25086,7 +25716,7 @@ var GetPlanVariantDetailsReset$inboundSchema = z56.pipe(
|
|
|
25086
25716
|
});
|
|
25087
25717
|
})
|
|
25088
25718
|
);
|
|
25089
|
-
var
|
|
25719
|
+
var GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z56.object({
|
|
25090
25720
|
currency: string5(),
|
|
25091
25721
|
amount: number2()
|
|
25092
25722
|
});
|
|
@@ -25120,24 +25750,24 @@ var GetPlanVariantDetailsPriceTier$inboundSchema = z56.pipe(
|
|
|
25120
25750
|
})
|
|
25121
25751
|
);
|
|
25122
25752
|
var GetPlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(GetPlanVariantDetailsTierBehavior);
|
|
25123
|
-
var
|
|
25124
|
-
var
|
|
25753
|
+
var GetPlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemPriceInterval);
|
|
25754
|
+
var GetPlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemBillingMethod);
|
|
25125
25755
|
var GetPlanVariantDetailsPrice$inboundSchema = z56.pipe(
|
|
25126
25756
|
z56.object({
|
|
25127
25757
|
amount: optional3(number2()),
|
|
25128
|
-
additional_currencies: optional3(
|
|
25129
|
-
|
|
25130
|
-
),
|
|
25131
|
-
tiers: optional3(
|
|
25132
|
-
|
|
25133
|
-
),
|
|
25758
|
+
additional_currencies: optional3(z56.array(z56.lazy(
|
|
25759
|
+
() => GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
|
|
25760
|
+
))),
|
|
25761
|
+
tiers: optional3(z56.array(z56.lazy(
|
|
25762
|
+
() => GetPlanVariantDetailsPriceTier$inboundSchema
|
|
25763
|
+
))),
|
|
25134
25764
|
tier_behavior: optional3(
|
|
25135
25765
|
GetPlanVariantDetailsTierBehavior$inboundSchema
|
|
25136
25766
|
),
|
|
25137
|
-
interval:
|
|
25767
|
+
interval: GetPlanVariantDetailsAddItemPriceInterval$inboundSchema,
|
|
25138
25768
|
interval_count: z56._default(number2(), 1),
|
|
25139
25769
|
billing_units: z56._default(number2(), 1),
|
|
25140
|
-
billing_method:
|
|
25770
|
+
billing_method: GetPlanVariantDetailsAddItemBillingMethod$inboundSchema,
|
|
25141
25771
|
max_purchase: z56.optional(z56.nullable(number2()))
|
|
25142
25772
|
}),
|
|
25143
25773
|
z56.transform((v) => {
|
|
@@ -25151,12 +25781,12 @@ var GetPlanVariantDetailsPrice$inboundSchema = z56.pipe(
|
|
|
25151
25781
|
});
|
|
25152
25782
|
})
|
|
25153
25783
|
);
|
|
25154
|
-
var
|
|
25155
|
-
var
|
|
25156
|
-
var
|
|
25784
|
+
var GetPlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnIncrease);
|
|
25785
|
+
var GetPlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnDecrease);
|
|
25786
|
+
var GetPlanVariantDetailsProration$inboundSchema = z56.pipe(
|
|
25157
25787
|
z56.object({
|
|
25158
|
-
on_increase:
|
|
25159
|
-
on_decrease:
|
|
25788
|
+
on_increase: GetPlanVariantDetailsOnIncrease$inboundSchema,
|
|
25789
|
+
on_decrease: GetPlanVariantDetailsOnDecrease$inboundSchema
|
|
25160
25790
|
}),
|
|
25161
25791
|
z56.transform((v) => {
|
|
25162
25792
|
return remap(v, {
|
|
@@ -25427,7 +26057,7 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
|
|
|
25427
26057
|
});
|
|
25428
26058
|
})
|
|
25429
26059
|
);
|
|
25430
|
-
var
|
|
26060
|
+
var GetPlanVariantDetailsPlanItem$inboundSchema = z56.pipe(
|
|
25431
26061
|
z56.object({
|
|
25432
26062
|
threshold_billing: z56.optional(z56.nullable(z56.lazy(
|
|
25433
26063
|
() => GetPlanVariantDetailsThresholdBilling$inboundSchema
|
|
@@ -25442,7 +26072,9 @@ var GetPlanPlanItem$inboundSchema = z56.pipe(
|
|
|
25442
26072
|
price: optional3(
|
|
25443
26073
|
z56.lazy(() => GetPlanVariantDetailsPrice$inboundSchema)
|
|
25444
26074
|
),
|
|
25445
|
-
proration: optional3(
|
|
26075
|
+
proration: optional3(
|
|
26076
|
+
z56.lazy(() => GetPlanVariantDetailsProration$inboundSchema)
|
|
26077
|
+
),
|
|
25446
26078
|
rollover: optional3(
|
|
25447
26079
|
z56.lazy(() => GetPlanVariantDetailsRollover$inboundSchema)
|
|
25448
26080
|
),
|
|
@@ -25461,23 +26093,23 @@ var GetPlanPlanItem$inboundSchema = z56.pipe(
|
|
|
25461
26093
|
});
|
|
25462
26094
|
})
|
|
25463
26095
|
);
|
|
25464
|
-
var
|
|
25465
|
-
var
|
|
25466
|
-
var
|
|
25467
|
-
var
|
|
25468
|
-
|
|
25469
|
-
|
|
26096
|
+
var GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsRemoveItemBillingMethod);
|
|
26097
|
+
var GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum2);
|
|
26098
|
+
var GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum1);
|
|
26099
|
+
var GetPlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
|
|
26100
|
+
GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
|
|
26101
|
+
GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
|
|
25470
26102
|
]);
|
|
25471
|
-
var
|
|
26103
|
+
var GetPlanVariantDetailsPlanItemFilter$inboundSchema = z56.pipe(
|
|
25472
26104
|
z56.object({
|
|
25473
26105
|
feature_id: optional3(string5()),
|
|
25474
26106
|
billing_method: optional3(
|
|
25475
|
-
|
|
26107
|
+
GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema
|
|
25476
26108
|
),
|
|
25477
26109
|
interval: optional3(
|
|
25478
26110
|
smartUnion([
|
|
25479
|
-
|
|
25480
|
-
|
|
26111
|
+
GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
|
|
26112
|
+
GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
|
|
25481
26113
|
])
|
|
25482
26114
|
),
|
|
25483
26115
|
interval_count: optional3(number2()),
|
|
@@ -25701,6 +26333,96 @@ var GetPlanIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
25701
26333
|
SemiAnnual: "semi_annual",
|
|
25702
26334
|
Year: "year"
|
|
25703
26335
|
};
|
|
26336
|
+
var GetPlanPriceLicenseInterval = {
|
|
26337
|
+
OneOff: "one_off",
|
|
26338
|
+
Week: "week",
|
|
26339
|
+
Month: "month",
|
|
26340
|
+
Quarter: "quarter",
|
|
26341
|
+
SemiAnnual: "semi_annual",
|
|
26342
|
+
Year: "year"
|
|
26343
|
+
};
|
|
26344
|
+
var GetPlanLicenseResetInterval = {
|
|
26345
|
+
OneOff: "one_off",
|
|
26346
|
+
Minute: "minute",
|
|
26347
|
+
Hour: "hour",
|
|
26348
|
+
Day: "day",
|
|
26349
|
+
Week: "week",
|
|
26350
|
+
Month: "month",
|
|
26351
|
+
Quarter: "quarter",
|
|
26352
|
+
SemiAnnual: "semi_annual",
|
|
26353
|
+
Year: "year"
|
|
26354
|
+
};
|
|
26355
|
+
var GetPlanLicenseTierBehavior = {
|
|
26356
|
+
Graduated: "graduated",
|
|
26357
|
+
Volume: "volume"
|
|
26358
|
+
};
|
|
26359
|
+
var GetPlanLicenseAddItemPriceInterval = {
|
|
26360
|
+
OneOff: "one_off",
|
|
26361
|
+
Week: "week",
|
|
26362
|
+
Month: "month",
|
|
26363
|
+
Quarter: "quarter",
|
|
26364
|
+
SemiAnnual: "semi_annual",
|
|
26365
|
+
Year: "year"
|
|
26366
|
+
};
|
|
26367
|
+
var GetPlanLicenseAddItemBillingMethod = {
|
|
26368
|
+
Prepaid: "prepaid",
|
|
26369
|
+
UsageBased: "usage_based"
|
|
26370
|
+
};
|
|
26371
|
+
var GetPlanLicenseOnIncrease = {
|
|
26372
|
+
BillImmediately: "bill_immediately",
|
|
26373
|
+
ProrateImmediately: "prorate_immediately",
|
|
26374
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
26375
|
+
BillNextCycle: "bill_next_cycle"
|
|
26376
|
+
};
|
|
26377
|
+
var GetPlanLicenseOnDecrease = {
|
|
26378
|
+
Prorate: "prorate",
|
|
26379
|
+
ProrateImmediately: "prorate_immediately",
|
|
26380
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
26381
|
+
None: "none",
|
|
26382
|
+
NoProrations: "no_prorations"
|
|
26383
|
+
};
|
|
26384
|
+
var GetPlanLicenseExpiryDurationType = {
|
|
26385
|
+
Month: "month",
|
|
26386
|
+
Forever: "forever"
|
|
26387
|
+
};
|
|
26388
|
+
var GetPlanLicenseDuration = {
|
|
26389
|
+
Day: "day",
|
|
26390
|
+
Week: "week",
|
|
26391
|
+
Month: "month",
|
|
26392
|
+
Year: "year"
|
|
26393
|
+
};
|
|
26394
|
+
var GetPlanDimensionsToLicenseEnum2 = {
|
|
26395
|
+
Inf: "inf"
|
|
26396
|
+
};
|
|
26397
|
+
var GetPlanDimensionsToLicenseEnum1 = {
|
|
26398
|
+
Inf: "inf"
|
|
26399
|
+
};
|
|
26400
|
+
var GetPlanToLicenseEnum = {
|
|
26401
|
+
Inf: "inf"
|
|
26402
|
+
};
|
|
26403
|
+
var GetPlanLicenseRemoveItemBillingMethod = {
|
|
26404
|
+
Prepaid: "prepaid",
|
|
26405
|
+
UsageBased: "usage_based"
|
|
26406
|
+
};
|
|
26407
|
+
var GetPlanIntervalLicenseRemoveItemEnum2 = {
|
|
26408
|
+
OneOff: "one_off",
|
|
26409
|
+
Minute: "minute",
|
|
26410
|
+
Hour: "hour",
|
|
26411
|
+
Day: "day",
|
|
26412
|
+
Week: "week",
|
|
26413
|
+
Month: "month",
|
|
26414
|
+
Quarter: "quarter",
|
|
26415
|
+
SemiAnnual: "semi_annual",
|
|
26416
|
+
Year: "year"
|
|
26417
|
+
};
|
|
26418
|
+
var GetPlanIntervalLicenseRemoveItemEnum1 = {
|
|
26419
|
+
OneOff: "one_off",
|
|
26420
|
+
Week: "week",
|
|
26421
|
+
Month: "month",
|
|
26422
|
+
Quarter: "quarter",
|
|
26423
|
+
SemiAnnual: "semi_annual",
|
|
26424
|
+
Year: "year"
|
|
26425
|
+
};
|
|
25704
26426
|
var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
|
|
25705
26427
|
z57.object({
|
|
25706
26428
|
feature_id: string5(),
|
|
@@ -26229,11 +26951,15 @@ var GetPlanRemoveLicense$inboundSchema = z57.pipe(
|
|
|
26229
26951
|
});
|
|
26230
26952
|
})
|
|
26231
26953
|
);
|
|
26232
|
-
var
|
|
26954
|
+
var GetPlanVariantDetailsCustomize$inboundSchema = z57.pipe(
|
|
26233
26955
|
z57.object({
|
|
26234
|
-
price: z57.optional(z57.nullable(
|
|
26235
|
-
add_items: optional3(
|
|
26236
|
-
|
|
26956
|
+
price: z57.optional(z57.nullable(GetPlanVariantDetailsBasePrice$inboundSchema)),
|
|
26957
|
+
add_items: optional3(
|
|
26958
|
+
z57.array(GetPlanVariantDetailsPlanItem$inboundSchema)
|
|
26959
|
+
),
|
|
26960
|
+
remove_items: optional3(
|
|
26961
|
+
z57.array(GetPlanVariantDetailsPlanItemFilter$inboundSchema)
|
|
26962
|
+
),
|
|
26237
26963
|
free_trial: z57.optional(z57.nullable(GetPlanFreeTrialParams$inboundSchema)),
|
|
26238
26964
|
billing_controls: optional3(
|
|
26239
26965
|
z57.lazy(() => GetPlanVariantDetailsBillingControls$inboundSchema)
|
|
@@ -26259,7 +26985,9 @@ var GetPlanCustomize$inboundSchema = z57.pipe(
|
|
|
26259
26985
|
var GetPlanVariantDetails$inboundSchema = z57.pipe(
|
|
26260
26986
|
z57.object({
|
|
26261
26987
|
base_plan_id: string5(),
|
|
26262
|
-
customize: optional3(
|
|
26988
|
+
customize: optional3(
|
|
26989
|
+
z57.lazy(() => GetPlanVariantDetailsCustomize$inboundSchema)
|
|
26990
|
+
)
|
|
26263
26991
|
}),
|
|
26264
26992
|
z57.transform((v) => {
|
|
26265
26993
|
return remap(v, {
|
|
@@ -26267,6 +26995,464 @@ var GetPlanVariantDetails$inboundSchema = z57.pipe(
|
|
|
26267
26995
|
});
|
|
26268
26996
|
})
|
|
26269
26997
|
);
|
|
26998
|
+
var GetPlanPriceLicenseInterval$inboundSchema = inboundSchema(GetPlanPriceLicenseInterval);
|
|
26999
|
+
var GetPlanLicenseAdditionalCurrency$inboundSchema = z57.object({
|
|
27000
|
+
currency: string5(),
|
|
27001
|
+
amount: number2()
|
|
27002
|
+
});
|
|
27003
|
+
var GetPlanLicenseBasePrice$inboundSchema = z57.pipe(
|
|
27004
|
+
z57.object({
|
|
27005
|
+
amount: number2(),
|
|
27006
|
+
interval: GetPlanPriceLicenseInterval$inboundSchema,
|
|
27007
|
+
interval_count: z57._default(number2(), 1),
|
|
27008
|
+
additional_currencies: optional3(
|
|
27009
|
+
z57.array(z57.lazy(() => GetPlanLicenseAdditionalCurrency$inboundSchema))
|
|
27010
|
+
)
|
|
27011
|
+
}),
|
|
27012
|
+
z57.transform((v) => {
|
|
27013
|
+
return remap(v, {
|
|
27014
|
+
"interval_count": "intervalCount",
|
|
27015
|
+
"additional_currencies": "additionalCurrencies"
|
|
27016
|
+
});
|
|
27017
|
+
})
|
|
27018
|
+
);
|
|
27019
|
+
var GetPlanLicenseThresholdBilling$inboundSchema = z57.object({
|
|
27020
|
+
threshold: number2()
|
|
27021
|
+
});
|
|
27022
|
+
var GetPlanLicenseResetInterval$inboundSchema = inboundSchema(GetPlanLicenseResetInterval);
|
|
27023
|
+
var GetPlanLicenseReset$inboundSchema = z57.pipe(
|
|
27024
|
+
z57.object({
|
|
27025
|
+
interval: GetPlanLicenseResetInterval$inboundSchema,
|
|
27026
|
+
interval_count: z57._default(number2(), 1)
|
|
27027
|
+
}),
|
|
27028
|
+
z57.transform((v) => {
|
|
27029
|
+
return remap(v, {
|
|
27030
|
+
"interval_count": "intervalCount"
|
|
27031
|
+
});
|
|
27032
|
+
})
|
|
27033
|
+
);
|
|
27034
|
+
var GetPlanLicenseAddItemAdditionalCurrency$inboundSchema = z57.object({
|
|
27035
|
+
currency: string5(),
|
|
27036
|
+
amount: number2()
|
|
27037
|
+
});
|
|
27038
|
+
var GetPlanLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
|
|
27039
|
+
var GetPlanLicenseTierAdditionalCurrency$inboundSchema = z57.pipe(
|
|
27040
|
+
z57.object({
|
|
27041
|
+
currency: string5(),
|
|
27042
|
+
amount: optional3(number2()),
|
|
27043
|
+
flat_amount: optional3(number2())
|
|
27044
|
+
}),
|
|
27045
|
+
z57.transform((v) => {
|
|
27046
|
+
return remap(v, {
|
|
27047
|
+
"flat_amount": "flatAmount"
|
|
27048
|
+
});
|
|
27049
|
+
})
|
|
27050
|
+
);
|
|
27051
|
+
var GetPlanLicensePriceTier$inboundSchema = z57.pipe(
|
|
27052
|
+
z57.object({
|
|
27053
|
+
to: smartUnion([number2(), string5()]),
|
|
27054
|
+
amount: number2(),
|
|
27055
|
+
flat_amount: optional3(number2()),
|
|
27056
|
+
additional_currencies: optional3(
|
|
27057
|
+
z57.array(z57.lazy(() => GetPlanLicenseTierAdditionalCurrency$inboundSchema))
|
|
27058
|
+
)
|
|
27059
|
+
}),
|
|
27060
|
+
z57.transform((v) => {
|
|
27061
|
+
return remap(v, {
|
|
27062
|
+
"flat_amount": "flatAmount",
|
|
27063
|
+
"additional_currencies": "additionalCurrencies"
|
|
27064
|
+
});
|
|
27065
|
+
})
|
|
27066
|
+
);
|
|
27067
|
+
var GetPlanLicenseTierBehavior$inboundSchema = inboundSchema(GetPlanLicenseTierBehavior);
|
|
27068
|
+
var GetPlanLicenseAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanLicenseAddItemPriceInterval);
|
|
27069
|
+
var GetPlanLicenseAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseAddItemBillingMethod);
|
|
27070
|
+
var GetPlanLicensePrice$inboundSchema = z57.pipe(
|
|
27071
|
+
z57.object({
|
|
27072
|
+
amount: optional3(number2()),
|
|
27073
|
+
additional_currencies: optional3(z57.array(z57.lazy(
|
|
27074
|
+
() => GetPlanLicenseAddItemAdditionalCurrency$inboundSchema
|
|
27075
|
+
))),
|
|
27076
|
+
tiers: optional3(z57.array(z57.lazy(
|
|
27077
|
+
() => GetPlanLicensePriceTier$inboundSchema
|
|
27078
|
+
))),
|
|
27079
|
+
tier_behavior: optional3(GetPlanLicenseTierBehavior$inboundSchema),
|
|
27080
|
+
interval: GetPlanLicenseAddItemPriceInterval$inboundSchema,
|
|
27081
|
+
interval_count: z57._default(number2(), 1),
|
|
27082
|
+
billing_units: z57._default(number2(), 1),
|
|
27083
|
+
billing_method: GetPlanLicenseAddItemBillingMethod$inboundSchema,
|
|
27084
|
+
max_purchase: z57.optional(z57.nullable(number2()))
|
|
27085
|
+
}),
|
|
27086
|
+
z57.transform((v) => {
|
|
27087
|
+
return remap(v, {
|
|
27088
|
+
"additional_currencies": "additionalCurrencies",
|
|
27089
|
+
"tier_behavior": "tierBehavior",
|
|
27090
|
+
"interval_count": "intervalCount",
|
|
27091
|
+
"billing_units": "billingUnits",
|
|
27092
|
+
"billing_method": "billingMethod",
|
|
27093
|
+
"max_purchase": "maxPurchase"
|
|
27094
|
+
});
|
|
27095
|
+
})
|
|
27096
|
+
);
|
|
27097
|
+
var GetPlanLicenseOnIncrease$inboundSchema = inboundSchema(GetPlanLicenseOnIncrease);
|
|
27098
|
+
var GetPlanLicenseOnDecrease$inboundSchema = inboundSchema(GetPlanLicenseOnDecrease);
|
|
27099
|
+
var GetPlanLicenseProration$inboundSchema = z57.pipe(
|
|
27100
|
+
z57.object({
|
|
27101
|
+
on_increase: GetPlanLicenseOnIncrease$inboundSchema,
|
|
27102
|
+
on_decrease: GetPlanLicenseOnDecrease$inboundSchema
|
|
27103
|
+
}),
|
|
27104
|
+
z57.transform((v) => {
|
|
27105
|
+
return remap(v, {
|
|
27106
|
+
"on_increase": "onIncrease",
|
|
27107
|
+
"on_decrease": "onDecrease"
|
|
27108
|
+
});
|
|
27109
|
+
})
|
|
27110
|
+
);
|
|
27111
|
+
var GetPlanLicenseExpiryDurationType$inboundSchema = inboundSchema(GetPlanLicenseExpiryDurationType);
|
|
27112
|
+
var GetPlanLicenseRollover$inboundSchema = z57.pipe(
|
|
27113
|
+
z57.object({
|
|
27114
|
+
max: optional3(number2()),
|
|
27115
|
+
max_percentage: optional3(number2()),
|
|
27116
|
+
expiry_duration_type: GetPlanLicenseExpiryDurationType$inboundSchema,
|
|
27117
|
+
expiry_duration_length: optional3(number2())
|
|
27118
|
+
}),
|
|
27119
|
+
z57.transform((v) => {
|
|
27120
|
+
return remap(v, {
|
|
27121
|
+
"max_percentage": "maxPercentage",
|
|
27122
|
+
"expiry_duration_type": "expiryDurationType",
|
|
27123
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
27124
|
+
});
|
|
27125
|
+
})
|
|
27126
|
+
);
|
|
27127
|
+
var GetPlanLicenseDuration$inboundSchema = inboundSchema(GetPlanLicenseDuration);
|
|
27128
|
+
var GetPlanLicenseExpiry$inboundSchema = z57.object({
|
|
27129
|
+
duration: GetPlanLicenseDuration$inboundSchema,
|
|
27130
|
+
length: number2()
|
|
27131
|
+
});
|
|
27132
|
+
var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
|
|
27133
|
+
z57.object({
|
|
27134
|
+
match: z57.record(z57.string(), string5()),
|
|
27135
|
+
priority: optional3(number2()),
|
|
27136
|
+
credit_cost: number2()
|
|
27137
|
+
}),
|
|
27138
|
+
z57.transform((v) => {
|
|
27139
|
+
return remap(v, {
|
|
27140
|
+
"credit_cost": "creditCost"
|
|
27141
|
+
});
|
|
27142
|
+
})
|
|
27143
|
+
);
|
|
27144
|
+
var GetPlanDimensionsToLicenseEnum2$inboundSchema = z57.enum(GetPlanDimensionsToLicenseEnum2);
|
|
27145
|
+
var GetPlanDimensionsLicenseToUnion2$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum2$inboundSchema]);
|
|
27146
|
+
var GetPlanDimensionsLicenseTier2$inboundSchema = z57.pipe(
|
|
27147
|
+
z57.object({
|
|
27148
|
+
to: smartUnion([
|
|
27149
|
+
number2(),
|
|
27150
|
+
GetPlanDimensionsToLicenseEnum2$inboundSchema
|
|
27151
|
+
]),
|
|
27152
|
+
credit_cost: number2()
|
|
27153
|
+
}),
|
|
27154
|
+
z57.transform((v) => {
|
|
27155
|
+
return remap(v, {
|
|
27156
|
+
"credit_cost": "creditCost"
|
|
27157
|
+
});
|
|
27158
|
+
})
|
|
27159
|
+
);
|
|
27160
|
+
var GetPlanDimensionsLicense3$inboundSchema = z57.pipe(
|
|
27161
|
+
z57.object({
|
|
27162
|
+
match: z57.record(z57.string(), string5()),
|
|
27163
|
+
priority: optional3(number2()),
|
|
27164
|
+
tier_behavior: literal3("graduated"),
|
|
27165
|
+
tiers: z57.array(z57.lazy(() => GetPlanDimensionsLicenseTier2$inboundSchema))
|
|
27166
|
+
}),
|
|
27167
|
+
z57.transform((v) => {
|
|
27168
|
+
return remap(v, {
|
|
27169
|
+
"tier_behavior": "tierBehavior"
|
|
27170
|
+
});
|
|
27171
|
+
})
|
|
27172
|
+
);
|
|
27173
|
+
var GetPlanLicenseDimensionsUnion2$inboundSchema = smartUnion([
|
|
27174
|
+
z57.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
|
|
27175
|
+
z57.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
|
|
27176
|
+
]);
|
|
27177
|
+
var GetPlanLicenseMultipliers2$inboundSchema = z57.object({
|
|
27178
|
+
match: z57.record(z57.string(), string5()),
|
|
27179
|
+
factor: optional3(number2()),
|
|
27180
|
+
add: optional3(number2())
|
|
27181
|
+
});
|
|
27182
|
+
var GetPlanCreditSchemaLicense2$inboundSchema = z57.pipe(
|
|
27183
|
+
z57.object({
|
|
27184
|
+
metered_feature_id: string5(),
|
|
27185
|
+
billing_units: optional3(number2()),
|
|
27186
|
+
dimensions: optional3(z57.record(
|
|
27187
|
+
z57.string(),
|
|
27188
|
+
smartUnion([
|
|
27189
|
+
z57.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
|
|
27190
|
+
z57.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
|
|
27191
|
+
])
|
|
27192
|
+
)),
|
|
27193
|
+
multipliers: optional3(z57.record(
|
|
27194
|
+
z57.string(),
|
|
27195
|
+
z57.lazy(() => GetPlanLicenseMultipliers2$inboundSchema)
|
|
27196
|
+
)),
|
|
27197
|
+
credit_cost: number2()
|
|
27198
|
+
}),
|
|
27199
|
+
z57.transform((v) => {
|
|
27200
|
+
return remap(v, {
|
|
27201
|
+
"metered_feature_id": "meteredFeatureId",
|
|
27202
|
+
"billing_units": "billingUnits",
|
|
27203
|
+
"credit_cost": "creditCost"
|
|
27204
|
+
});
|
|
27205
|
+
})
|
|
27206
|
+
);
|
|
27207
|
+
var GetPlanDimensionsLicense2$inboundSchema = z57.pipe(
|
|
27208
|
+
z57.object({
|
|
27209
|
+
match: z57.record(z57.string(), string5()),
|
|
27210
|
+
priority: optional3(number2()),
|
|
27211
|
+
credit_cost: number2()
|
|
27212
|
+
}),
|
|
27213
|
+
z57.transform((v) => {
|
|
27214
|
+
return remap(v, {
|
|
27215
|
+
"credit_cost": "creditCost"
|
|
27216
|
+
});
|
|
27217
|
+
})
|
|
27218
|
+
);
|
|
27219
|
+
var GetPlanDimensionsToLicenseEnum1$inboundSchema = z57.enum(GetPlanDimensionsToLicenseEnum1);
|
|
27220
|
+
var GetPlanDimensionsLicenseToUnion1$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum1$inboundSchema]);
|
|
27221
|
+
var GetPlanDimensionsLicenseTier1$inboundSchema = z57.pipe(
|
|
27222
|
+
z57.object({
|
|
27223
|
+
to: smartUnion([
|
|
27224
|
+
number2(),
|
|
27225
|
+
GetPlanDimensionsToLicenseEnum1$inboundSchema
|
|
27226
|
+
]),
|
|
27227
|
+
credit_cost: number2()
|
|
27228
|
+
}),
|
|
27229
|
+
z57.transform((v) => {
|
|
27230
|
+
return remap(v, {
|
|
27231
|
+
"credit_cost": "creditCost"
|
|
27232
|
+
});
|
|
27233
|
+
})
|
|
27234
|
+
);
|
|
27235
|
+
var GetPlanDimensionsLicense1$inboundSchema = z57.pipe(
|
|
27236
|
+
z57.object({
|
|
27237
|
+
match: z57.record(z57.string(), string5()),
|
|
27238
|
+
priority: optional3(number2()),
|
|
27239
|
+
tier_behavior: literal3("graduated"),
|
|
27240
|
+
tiers: z57.array(z57.lazy(() => GetPlanDimensionsLicenseTier1$inboundSchema))
|
|
27241
|
+
}),
|
|
27242
|
+
z57.transform((v) => {
|
|
27243
|
+
return remap(v, {
|
|
27244
|
+
"tier_behavior": "tierBehavior"
|
|
27245
|
+
});
|
|
27246
|
+
})
|
|
27247
|
+
);
|
|
27248
|
+
var GetPlanLicenseDimensionsUnion1$inboundSchema = smartUnion([
|
|
27249
|
+
z57.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
|
|
27250
|
+
z57.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
|
|
27251
|
+
]);
|
|
27252
|
+
var GetPlanLicenseMultipliers1$inboundSchema = z57.object({
|
|
27253
|
+
match: z57.record(z57.string(), string5()),
|
|
27254
|
+
factor: optional3(number2()),
|
|
27255
|
+
add: optional3(number2())
|
|
27256
|
+
});
|
|
27257
|
+
var GetPlanToLicenseEnum$inboundSchema = z57.enum(GetPlanToLicenseEnum);
|
|
27258
|
+
var GetPlanLicenseFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]);
|
|
27259
|
+
var GetPlanLicenseFeatureOverrideTier$inboundSchema = z57.pipe(
|
|
27260
|
+
z57.object({
|
|
27261
|
+
to: smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]),
|
|
27262
|
+
credit_cost: number2()
|
|
27263
|
+
}),
|
|
27264
|
+
z57.transform((v) => {
|
|
27265
|
+
return remap(v, {
|
|
27266
|
+
"credit_cost": "creditCost"
|
|
27267
|
+
});
|
|
27268
|
+
})
|
|
27269
|
+
);
|
|
27270
|
+
var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
|
|
27271
|
+
z57.object({
|
|
27272
|
+
metered_feature_id: string5(),
|
|
27273
|
+
billing_units: optional3(number2()),
|
|
27274
|
+
dimensions: optional3(z57.record(
|
|
27275
|
+
z57.string(),
|
|
27276
|
+
smartUnion([
|
|
27277
|
+
z57.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
|
|
27278
|
+
z57.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
|
|
27279
|
+
])
|
|
27280
|
+
)),
|
|
27281
|
+
multipliers: optional3(z57.record(
|
|
27282
|
+
z57.string(),
|
|
27283
|
+
z57.lazy(() => GetPlanLicenseMultipliers1$inboundSchema)
|
|
27284
|
+
)),
|
|
27285
|
+
tier_behavior: literal3("graduated"),
|
|
27286
|
+
tiers: z57.array(z57.lazy(
|
|
27287
|
+
() => GetPlanLicenseFeatureOverrideTier$inboundSchema
|
|
27288
|
+
))
|
|
27289
|
+
}),
|
|
27290
|
+
z57.transform((v) => {
|
|
27291
|
+
return remap(v, {
|
|
27292
|
+
"metered_feature_id": "meteredFeatureId",
|
|
27293
|
+
"billing_units": "billingUnits",
|
|
27294
|
+
"tier_behavior": "tierBehavior"
|
|
27295
|
+
});
|
|
27296
|
+
})
|
|
27297
|
+
);
|
|
27298
|
+
var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
|
|
27299
|
+
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
27300
|
+
z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
|
|
27301
|
+
]);
|
|
27302
|
+
var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
|
|
27303
|
+
markup: number2()
|
|
27304
|
+
});
|
|
27305
|
+
var GetPlanLicenseModelMarkups$inboundSchema = z57.pipe(
|
|
27306
|
+
z57.object({
|
|
27307
|
+
markup: optional3(number2()),
|
|
27308
|
+
input_cost: optional3(number2()),
|
|
27309
|
+
output_cost: optional3(number2())
|
|
27310
|
+
}),
|
|
27311
|
+
z57.transform((v) => {
|
|
27312
|
+
return remap(v, {
|
|
27313
|
+
"input_cost": "inputCost",
|
|
27314
|
+
"output_cost": "outputCost"
|
|
27315
|
+
});
|
|
27316
|
+
})
|
|
27317
|
+
);
|
|
27318
|
+
var GetPlanLicenseMarkups$inboundSchema = z57.pipe(
|
|
27319
|
+
z57.object({
|
|
27320
|
+
default_markup: optional3(number2()),
|
|
27321
|
+
provider_markups: z57.optional(z57.nullable(z57.record(
|
|
27322
|
+
z57.string(),
|
|
27323
|
+
z57.lazy(() => GetPlanLicenseProviderMarkups$inboundSchema)
|
|
27324
|
+
))),
|
|
27325
|
+
model_markups: z57.optional(z57.nullable(z57.record(
|
|
27326
|
+
z57.string(),
|
|
27327
|
+
z57.lazy(() => GetPlanLicenseModelMarkups$inboundSchema)
|
|
27328
|
+
)))
|
|
27329
|
+
}),
|
|
27330
|
+
z57.transform((v) => {
|
|
27331
|
+
return remap(v, {
|
|
27332
|
+
"default_markup": "defaultMarkup",
|
|
27333
|
+
"provider_markups": "providerMarkups",
|
|
27334
|
+
"model_markups": "modelMarkups"
|
|
27335
|
+
});
|
|
27336
|
+
})
|
|
27337
|
+
);
|
|
27338
|
+
var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
|
|
27339
|
+
z57.object({
|
|
27340
|
+
credit_schema: optional3(z57.array(smartUnion([
|
|
27341
|
+
z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
|
|
27342
|
+
z57.lazy(
|
|
27343
|
+
() => GetPlanCreditSchemaLicense2$inboundSchema
|
|
27344
|
+
)
|
|
27345
|
+
]))),
|
|
27346
|
+
markups: optional3(z57.lazy(
|
|
27347
|
+
() => GetPlanLicenseMarkups$inboundSchema
|
|
27348
|
+
))
|
|
27349
|
+
}),
|
|
27350
|
+
z57.transform((v) => {
|
|
27351
|
+
return remap(v, {
|
|
27352
|
+
"credit_schema": "creditSchema"
|
|
27353
|
+
});
|
|
27354
|
+
})
|
|
27355
|
+
);
|
|
27356
|
+
var GetPlanLicensePlanItem$inboundSchema = z57.pipe(
|
|
27357
|
+
z57.object({
|
|
27358
|
+
threshold_billing: z57.optional(
|
|
27359
|
+
z57.nullable(z57.lazy(() => GetPlanLicenseThresholdBilling$inboundSchema))
|
|
27360
|
+
),
|
|
27361
|
+
feature_id: string5(),
|
|
27362
|
+
included: optional3(number2()),
|
|
27363
|
+
unlimited: optional3(boolean2()),
|
|
27364
|
+
pooled: z57._default(boolean2(), false),
|
|
27365
|
+
reset: optional3(z57.lazy(() => GetPlanLicenseReset$inboundSchema)),
|
|
27366
|
+
price: optional3(z57.lazy(() => GetPlanLicensePrice$inboundSchema)),
|
|
27367
|
+
proration: optional3(
|
|
27368
|
+
z57.lazy(() => GetPlanLicenseProration$inboundSchema)
|
|
27369
|
+
),
|
|
27370
|
+
rollover: optional3(
|
|
27371
|
+
z57.lazy(() => GetPlanLicenseRollover$inboundSchema)
|
|
27372
|
+
),
|
|
27373
|
+
expiry: optional3(z57.lazy(() => GetPlanLicenseExpiry$inboundSchema)),
|
|
27374
|
+
feature_override: optional3(
|
|
27375
|
+
z57.lazy(() => GetPlanLicenseFeatureOverride$inboundSchema)
|
|
27376
|
+
)
|
|
27377
|
+
}),
|
|
27378
|
+
z57.transform((v) => {
|
|
27379
|
+
return remap(v, {
|
|
27380
|
+
"threshold_billing": "thresholdBilling",
|
|
27381
|
+
"feature_id": "featureId",
|
|
27382
|
+
"feature_override": "featureOverride"
|
|
27383
|
+
});
|
|
27384
|
+
})
|
|
27385
|
+
);
|
|
27386
|
+
var GetPlanLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseRemoveItemBillingMethod);
|
|
27387
|
+
var GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum2);
|
|
27388
|
+
var GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum1);
|
|
27389
|
+
var GetPlanLicenseIntervalUnion$inboundSchema = smartUnion([
|
|
27390
|
+
GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
|
|
27391
|
+
GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
|
|
27392
|
+
]);
|
|
27393
|
+
var GetPlanLicensePlanItemFilter$inboundSchema = z57.pipe(
|
|
27394
|
+
z57.object({
|
|
27395
|
+
feature_id: optional3(string5()),
|
|
27396
|
+
billing_method: optional3(
|
|
27397
|
+
GetPlanLicenseRemoveItemBillingMethod$inboundSchema
|
|
27398
|
+
),
|
|
27399
|
+
interval: optional3(
|
|
27400
|
+
smartUnion([
|
|
27401
|
+
GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
|
|
27402
|
+
GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
|
|
27403
|
+
])
|
|
27404
|
+
),
|
|
27405
|
+
interval_count: optional3(number2()),
|
|
27406
|
+
included: optional3(number2())
|
|
27407
|
+
}),
|
|
27408
|
+
z57.transform((v) => {
|
|
27409
|
+
return remap(v, {
|
|
27410
|
+
"feature_id": "featureId",
|
|
27411
|
+
"billing_method": "billingMethod",
|
|
27412
|
+
"interval_count": "intervalCount"
|
|
27413
|
+
});
|
|
27414
|
+
})
|
|
27415
|
+
);
|
|
27416
|
+
var GetPlanLicenseCustomize$inboundSchema = z57.pipe(
|
|
27417
|
+
z57.object({
|
|
27418
|
+
price: z57.optional(
|
|
27419
|
+
z57.nullable(z57.lazy(() => GetPlanLicenseBasePrice$inboundSchema))
|
|
27420
|
+
),
|
|
27421
|
+
add_items: optional3(
|
|
27422
|
+
z57.array(z57.lazy(() => GetPlanLicensePlanItem$inboundSchema))
|
|
27423
|
+
),
|
|
27424
|
+
remove_items: optional3(
|
|
27425
|
+
z57.array(z57.lazy(() => GetPlanLicensePlanItemFilter$inboundSchema))
|
|
27426
|
+
)
|
|
27427
|
+
}),
|
|
27428
|
+
z57.transform((v) => {
|
|
27429
|
+
return remap(v, {
|
|
27430
|
+
"add_items": "addItems",
|
|
27431
|
+
"remove_items": "removeItems"
|
|
27432
|
+
});
|
|
27433
|
+
})
|
|
27434
|
+
);
|
|
27435
|
+
var GetPlanLicense$inboundSchema = z57.pipe(
|
|
27436
|
+
z57.object({
|
|
27437
|
+
license_plan_id: string5(),
|
|
27438
|
+
version: number2(),
|
|
27439
|
+
version_slug: optional3(string5()),
|
|
27440
|
+
included: number2(),
|
|
27441
|
+
prepaid_only: boolean2(),
|
|
27442
|
+
customize: optional3(
|
|
27443
|
+
z57.lazy(() => GetPlanLicenseCustomize$inboundSchema)
|
|
27444
|
+
),
|
|
27445
|
+
metadata: optional3(z57.record(z57.string(), z57.any())),
|
|
27446
|
+
plan: optional3(Plan$inboundSchema)
|
|
27447
|
+
}),
|
|
27448
|
+
z57.transform((v) => {
|
|
27449
|
+
return remap(v, {
|
|
27450
|
+
"license_plan_id": "licensePlanId",
|
|
27451
|
+
"version_slug": "versionSlug",
|
|
27452
|
+
"prepaid_only": "prepaidOnly"
|
|
27453
|
+
});
|
|
27454
|
+
})
|
|
27455
|
+
);
|
|
26270
27456
|
var GetPlanResponse$inboundSchema = z57.pipe(
|
|
26271
27457
|
z57.object({
|
|
26272
27458
|
id: string5(),
|
|
@@ -26294,6 +27480,9 @@ var GetPlanResponse$inboundSchema = z57.pipe(
|
|
|
26294
27480
|
base_variant_id: nullable(string5()),
|
|
26295
27481
|
variant_details: optional3(
|
|
26296
27482
|
z57.lazy(() => GetPlanVariantDetails$inboundSchema)
|
|
27483
|
+
),
|
|
27484
|
+
licenses: optional3(
|
|
27485
|
+
z57.array(z57.lazy(() => GetPlanLicense$inboundSchema))
|
|
26297
27486
|
)
|
|
26298
27487
|
}),
|
|
26299
27488
|
z57.transform((v) => {
|
|
@@ -42016,6 +43205,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
|
|
|
42016
43205
|
|
|
42017
43206
|
// ../sdk/src/models/reissue-invoice-op.ts
|
|
42018
43207
|
var z98 = __toESM(require("zod/v4-mini"), 1);
|
|
43208
|
+
var ReissueInvoiceIssueMethod = {
|
|
43209
|
+
Draft: "draft",
|
|
43210
|
+
Finalize: "finalize",
|
|
43211
|
+
Send: "send"
|
|
43212
|
+
};
|
|
42019
43213
|
var PaymentMethodType = {
|
|
42020
43214
|
Card: "card",
|
|
42021
43215
|
CustomerBalance: "customer_balance",
|
|
@@ -42082,6 +43276,7 @@ var ReissueInvoiceStatus = {
|
|
|
42082
43276
|
Complete: "complete",
|
|
42083
43277
|
Incomplete: "incomplete"
|
|
42084
43278
|
};
|
|
43279
|
+
var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
|
|
42085
43280
|
var CustomField$outboundSchema = z98.object({
|
|
42086
43281
|
name: z98.string(),
|
|
42087
43282
|
value: z98.string()
|
|
@@ -42673,6 +43868,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
|
|
|
42673
43868
|
invoiceTemplateId: z98.optional(z98.string()),
|
|
42674
43869
|
netTermsDays: z98.optional(z98.int()),
|
|
42675
43870
|
preview: z98.optional(z98.boolean()),
|
|
43871
|
+
issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
|
|
42676
43872
|
updateCustomerEmail: z98.optional(z98.string()),
|
|
42677
43873
|
invoice: z98.optional(
|
|
42678
43874
|
z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
|
|
@@ -42685,6 +43881,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
|
|
|
42685
43881
|
invoiceId: "invoice_id",
|
|
42686
43882
|
invoiceTemplateId: "invoice_template_id",
|
|
42687
43883
|
netTermsDays: "net_terms_days",
|
|
43884
|
+
issueMethod: "issue_method",
|
|
42688
43885
|
updateCustomerEmail: "update_customer_email"
|
|
42689
43886
|
});
|
|
42690
43887
|
})
|
|
@@ -48214,7 +49411,7 @@ var UpdatePlanDimensionsToItemRequestBodyEnum1 = {
|
|
|
48214
49411
|
var UpdatePlanToItemRequestBodyEnum = {
|
|
48215
49412
|
Inf: "inf"
|
|
48216
49413
|
};
|
|
48217
|
-
var
|
|
49414
|
+
var UpdatePlanPriceLicenseIntervalRequestBody = {
|
|
48218
49415
|
OneOff: "one_off",
|
|
48219
49416
|
Week: "week",
|
|
48220
49417
|
Month: "month",
|
|
@@ -48222,7 +49419,7 @@ var UpdatePlanPriceLicenseInterval = {
|
|
|
48222
49419
|
SemiAnnual: "semi_annual",
|
|
48223
49420
|
Year: "year"
|
|
48224
49421
|
};
|
|
48225
|
-
var
|
|
49422
|
+
var UpdatePlanLicenseResetIntervalRequestBody = {
|
|
48226
49423
|
OneOff: "one_off",
|
|
48227
49424
|
Minute: "minute",
|
|
48228
49425
|
Hour: "hour",
|
|
@@ -48233,11 +49430,11 @@ var UpdatePlanLicenseResetInterval = {
|
|
|
48233
49430
|
SemiAnnual: "semi_annual",
|
|
48234
49431
|
Year: "year"
|
|
48235
49432
|
};
|
|
48236
|
-
var
|
|
49433
|
+
var UpdatePlanLicenseTierBehaviorRequestBody = {
|
|
48237
49434
|
Graduated: "graduated",
|
|
48238
49435
|
Volume: "volume"
|
|
48239
49436
|
};
|
|
48240
|
-
var
|
|
49437
|
+
var UpdatePlanLicenseAddItemPriceIntervalRequestBody = {
|
|
48241
49438
|
OneOff: "one_off",
|
|
48242
49439
|
Week: "week",
|
|
48243
49440
|
Month: "month",
|
|
@@ -48245,47 +49442,47 @@ var UpdatePlanLicenseAddItemPriceInterval = {
|
|
|
48245
49442
|
SemiAnnual: "semi_annual",
|
|
48246
49443
|
Year: "year"
|
|
48247
49444
|
};
|
|
48248
|
-
var
|
|
49445
|
+
var UpdatePlanLicenseAddItemBillingMethodRequestBody = {
|
|
48249
49446
|
Prepaid: "prepaid",
|
|
48250
49447
|
UsageBased: "usage_based"
|
|
48251
49448
|
};
|
|
48252
|
-
var
|
|
49449
|
+
var UpdatePlanLicenseOnIncreaseRequestBody = {
|
|
48253
49450
|
BillImmediately: "bill_immediately",
|
|
48254
49451
|
ProrateImmediately: "prorate_immediately",
|
|
48255
49452
|
ProrateNextCycle: "prorate_next_cycle",
|
|
48256
49453
|
BillNextCycle: "bill_next_cycle"
|
|
48257
49454
|
};
|
|
48258
|
-
var
|
|
49455
|
+
var UpdatePlanLicenseOnDecreaseRequestBody = {
|
|
48259
49456
|
Prorate: "prorate",
|
|
48260
49457
|
ProrateImmediately: "prorate_immediately",
|
|
48261
49458
|
ProrateNextCycle: "prorate_next_cycle",
|
|
48262
49459
|
None: "none",
|
|
48263
49460
|
NoProrations: "no_prorations"
|
|
48264
49461
|
};
|
|
48265
|
-
var
|
|
49462
|
+
var UpdatePlanLicenseExpiryDurationTypeRequestBody = {
|
|
48266
49463
|
Month: "month",
|
|
48267
49464
|
Forever: "forever"
|
|
48268
49465
|
};
|
|
48269
|
-
var
|
|
49466
|
+
var UpdatePlanLicenseDurationRequestBody = {
|
|
48270
49467
|
Day: "day",
|
|
48271
49468
|
Week: "week",
|
|
48272
49469
|
Month: "month",
|
|
48273
49470
|
Year: "year"
|
|
48274
49471
|
};
|
|
48275
|
-
var
|
|
49472
|
+
var UpdatePlanDimensionsToLicenseRequestBodyEnum2 = {
|
|
48276
49473
|
Inf: "inf"
|
|
48277
49474
|
};
|
|
48278
|
-
var
|
|
49475
|
+
var UpdatePlanDimensionsToLicenseRequestBodyEnum1 = {
|
|
48279
49476
|
Inf: "inf"
|
|
48280
49477
|
};
|
|
48281
|
-
var
|
|
49478
|
+
var UpdatePlanToLicenseRequestBodyEnum = {
|
|
48282
49479
|
Inf: "inf"
|
|
48283
49480
|
};
|
|
48284
|
-
var
|
|
49481
|
+
var UpdatePlanLicenseRemoveItemBillingMethodRequestBody = {
|
|
48285
49482
|
Prepaid: "prepaid",
|
|
48286
49483
|
UsageBased: "usage_based"
|
|
48287
49484
|
};
|
|
48288
|
-
var
|
|
49485
|
+
var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2 = {
|
|
48289
49486
|
OneOff: "one_off",
|
|
48290
49487
|
Minute: "minute",
|
|
48291
49488
|
Hour: "hour",
|
|
@@ -48296,7 +49493,7 @@ var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
|
|
|
48296
49493
|
SemiAnnual: "semi_annual",
|
|
48297
49494
|
Year: "year"
|
|
48298
49495
|
};
|
|
48299
|
-
var
|
|
49496
|
+
var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1 = {
|
|
48300
49497
|
OneOff: "one_off",
|
|
48301
49498
|
Week: "week",
|
|
48302
49499
|
Month: "month",
|
|
@@ -48827,19 +50024,21 @@ var UpdatePlanItemPlanItem$outboundSchema = z113.pipe(
|
|
|
48827
50024
|
});
|
|
48828
50025
|
})
|
|
48829
50026
|
);
|
|
48830
|
-
var
|
|
48831
|
-
|
|
50027
|
+
var UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema = z113.enum(
|
|
50028
|
+
UpdatePlanPriceLicenseIntervalRequestBody
|
|
50029
|
+
);
|
|
50030
|
+
var UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z113.object({
|
|
48832
50031
|
currency: z113.string(),
|
|
48833
50032
|
amount: z113.number()
|
|
48834
50033
|
});
|
|
48835
|
-
var
|
|
50034
|
+
var UpdatePlanLicenseBasePriceRequestBody$outboundSchema = z113.pipe(
|
|
48836
50035
|
z113.object({
|
|
48837
50036
|
amount: z113.number(),
|
|
48838
|
-
interval:
|
|
50037
|
+
interval: UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema,
|
|
48839
50038
|
intervalCount: z113._default(z113.number(), 1),
|
|
48840
|
-
additionalCurrencies: z113.optional(
|
|
48841
|
-
|
|
48842
|
-
)
|
|
50039
|
+
additionalCurrencies: z113.optional(z113.array(z113.lazy(
|
|
50040
|
+
() => UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
|
|
50041
|
+
)))
|
|
48843
50042
|
}),
|
|
48844
50043
|
z113.transform((v) => {
|
|
48845
50044
|
return remap(v, {
|
|
@@ -48848,13 +50047,15 @@ var UpdatePlanLicenseBasePrice$outboundSchema = z113.pipe(
|
|
|
48848
50047
|
});
|
|
48849
50048
|
})
|
|
48850
50049
|
);
|
|
48851
|
-
var
|
|
50050
|
+
var UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema = z113.object({
|
|
48852
50051
|
threshold: z113.number()
|
|
48853
50052
|
});
|
|
48854
|
-
var
|
|
48855
|
-
|
|
50053
|
+
var UpdatePlanLicenseResetIntervalRequestBody$outboundSchema = z113.enum(
|
|
50054
|
+
UpdatePlanLicenseResetIntervalRequestBody
|
|
50055
|
+
);
|
|
50056
|
+
var UpdatePlanLicenseResetRequestBody$outboundSchema = z113.pipe(
|
|
48856
50057
|
z113.object({
|
|
48857
|
-
interval:
|
|
50058
|
+
interval: UpdatePlanLicenseResetIntervalRequestBody$outboundSchema,
|
|
48858
50059
|
intervalCount: z113._default(z113.number(), 1)
|
|
48859
50060
|
}),
|
|
48860
50061
|
z113.transform((v) => {
|
|
@@ -48863,12 +50064,12 @@ var UpdatePlanLicenseReset$outboundSchema = z113.pipe(
|
|
|
48863
50064
|
});
|
|
48864
50065
|
})
|
|
48865
50066
|
);
|
|
48866
|
-
var
|
|
50067
|
+
var UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema = z113.object({
|
|
48867
50068
|
currency: z113.string(),
|
|
48868
50069
|
amount: z113.number()
|
|
48869
50070
|
});
|
|
48870
|
-
var
|
|
48871
|
-
var
|
|
50071
|
+
var UpdatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z113.number(), z113.string()]);
|
|
50072
|
+
var UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z113.pipe(
|
|
48872
50073
|
z113.object({
|
|
48873
50074
|
currency: z113.string(),
|
|
48874
50075
|
amount: z113.optional(z113.number()),
|
|
@@ -48880,13 +50081,13 @@ var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z113.pipe(
|
|
|
48880
50081
|
});
|
|
48881
50082
|
})
|
|
48882
50083
|
);
|
|
48883
|
-
var
|
|
50084
|
+
var UpdatePlanLicensePriceTierRequestBody$outboundSchema = z113.pipe(
|
|
48884
50085
|
z113.object({
|
|
48885
50086
|
to: smartUnion([z113.number(), z113.string()]),
|
|
48886
50087
|
amount: z113.optional(z113.number()),
|
|
48887
50088
|
flatAmount: z113.optional(z113.number()),
|
|
48888
50089
|
additionalCurrencies: z113.optional(z113.array(z113.lazy(
|
|
48889
|
-
() =>
|
|
50090
|
+
() => UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
|
|
48890
50091
|
)))
|
|
48891
50092
|
}),
|
|
48892
50093
|
z113.transform((v) => {
|
|
@@ -48896,27 +50097,27 @@ var UpdatePlanLicensePriceTier$outboundSchema = z113.pipe(
|
|
|
48896
50097
|
});
|
|
48897
50098
|
})
|
|
48898
50099
|
);
|
|
48899
|
-
var
|
|
48900
|
-
|
|
48901
|
-
UpdatePlanLicenseAddItemPriceInterval
|
|
50100
|
+
var UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema = z113.enum(
|
|
50101
|
+
UpdatePlanLicenseTierBehaviorRequestBody
|
|
48902
50102
|
);
|
|
48903
|
-
var
|
|
48904
|
-
|
|
48905
|
-
|
|
48906
|
-
var UpdatePlanLicensePrice$outboundSchema = z113.pipe(
|
|
50103
|
+
var UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseAddItemPriceIntervalRequestBody);
|
|
50104
|
+
var UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseAddItemBillingMethodRequestBody);
|
|
50105
|
+
var UpdatePlanLicensePriceRequestBody$outboundSchema = z113.pipe(
|
|
48907
50106
|
z113.object({
|
|
48908
50107
|
amount: z113.optional(z113.number()),
|
|
48909
50108
|
additionalCurrencies: z113.optional(z113.array(z113.lazy(
|
|
48910
|
-
() =>
|
|
50109
|
+
() => UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema
|
|
48911
50110
|
))),
|
|
48912
50111
|
tiers: z113.optional(z113.array(z113.lazy(
|
|
48913
|
-
() =>
|
|
50112
|
+
() => UpdatePlanLicensePriceTierRequestBody$outboundSchema
|
|
48914
50113
|
))),
|
|
48915
|
-
tierBehavior: z113.optional(
|
|
48916
|
-
|
|
50114
|
+
tierBehavior: z113.optional(
|
|
50115
|
+
UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema
|
|
50116
|
+
),
|
|
50117
|
+
interval: UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema,
|
|
48917
50118
|
intervalCount: z113._default(z113.number(), 1),
|
|
48918
50119
|
billingUnits: z113._default(z113.number(), 1),
|
|
48919
|
-
billingMethod:
|
|
50120
|
+
billingMethod: UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema,
|
|
48920
50121
|
maxPurchase: z113.optional(z113.nullable(z113.number()))
|
|
48921
50122
|
}),
|
|
48922
50123
|
z113.transform((v) => {
|
|
@@ -48930,12 +50131,16 @@ var UpdatePlanLicensePrice$outboundSchema = z113.pipe(
|
|
|
48930
50131
|
});
|
|
48931
50132
|
})
|
|
48932
50133
|
);
|
|
48933
|
-
var
|
|
48934
|
-
|
|
48935
|
-
|
|
50134
|
+
var UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema = z113.enum(
|
|
50135
|
+
UpdatePlanLicenseOnIncreaseRequestBody
|
|
50136
|
+
);
|
|
50137
|
+
var UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema = z113.enum(
|
|
50138
|
+
UpdatePlanLicenseOnDecreaseRequestBody
|
|
50139
|
+
);
|
|
50140
|
+
var UpdatePlanLicenseProrationRequestBody$outboundSchema = z113.pipe(
|
|
48936
50141
|
z113.object({
|
|
48937
|
-
onIncrease:
|
|
48938
|
-
onDecrease:
|
|
50142
|
+
onIncrease: UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema,
|
|
50143
|
+
onDecrease: UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema
|
|
48939
50144
|
}),
|
|
48940
50145
|
z113.transform((v) => {
|
|
48941
50146
|
return remap(v, {
|
|
@@ -48944,12 +50149,14 @@ var UpdatePlanLicenseProration$outboundSchema = z113.pipe(
|
|
|
48944
50149
|
});
|
|
48945
50150
|
})
|
|
48946
50151
|
);
|
|
48947
|
-
var
|
|
48948
|
-
|
|
50152
|
+
var UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z113.enum(
|
|
50153
|
+
UpdatePlanLicenseExpiryDurationTypeRequestBody
|
|
50154
|
+
);
|
|
50155
|
+
var UpdatePlanLicenseRolloverRequestBody$outboundSchema = z113.pipe(
|
|
48949
50156
|
z113.object({
|
|
48950
50157
|
max: z113.optional(z113.number()),
|
|
48951
50158
|
maxPercentage: z113.optional(z113.number()),
|
|
48952
|
-
expiryDurationType:
|
|
50159
|
+
expiryDurationType: UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
|
|
48953
50160
|
expiryDurationLength: z113.optional(z113.number())
|
|
48954
50161
|
}),
|
|
48955
50162
|
z113.transform((v) => {
|
|
@@ -48960,13 +50167,13 @@ var UpdatePlanLicenseRollover$outboundSchema = z113.pipe(
|
|
|
48960
50167
|
});
|
|
48961
50168
|
})
|
|
48962
50169
|
);
|
|
48963
|
-
var
|
|
48964
|
-
var
|
|
48965
|
-
duration:
|
|
50170
|
+
var UpdatePlanLicenseDurationRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseDurationRequestBody);
|
|
50171
|
+
var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z113.object({
|
|
50172
|
+
duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
|
|
48966
50173
|
length: z113.number()
|
|
48967
50174
|
});
|
|
48968
50175
|
var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
48969
|
-
var
|
|
50176
|
+
var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z113.pipe(
|
|
48970
50177
|
z113.object({
|
|
48971
50178
|
match: z113.record(
|
|
48972
50179
|
z113.string(),
|
|
@@ -48982,13 +50189,18 @@ var UpdatePlanDimensionsLicense4$outboundSchema = z113.pipe(
|
|
|
48982
50189
|
})
|
|
48983
50190
|
);
|
|
48984
50191
|
var UpdatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
48985
|
-
var
|
|
48986
|
-
|
|
48987
|
-
|
|
50192
|
+
var UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z113.enum(
|
|
50193
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum2
|
|
50194
|
+
);
|
|
50195
|
+
var UpdatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
|
|
50196
|
+
z113.number(),
|
|
50197
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
|
|
50198
|
+
]);
|
|
50199
|
+
var UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z113.pipe(
|
|
48988
50200
|
z113.object({
|
|
48989
50201
|
to: smartUnion([
|
|
48990
50202
|
z113.number(),
|
|
48991
|
-
|
|
50203
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
|
|
48992
50204
|
]),
|
|
48993
50205
|
creditCost: z113.number()
|
|
48994
50206
|
}),
|
|
@@ -48998,7 +50210,7 @@ var UpdatePlanDimensionsLicenseTier2$outboundSchema = z113.pipe(
|
|
|
48998
50210
|
});
|
|
48999
50211
|
})
|
|
49000
50212
|
);
|
|
49001
|
-
var
|
|
50213
|
+
var UpdatePlanDimensionsLicenseRequestBody3$outboundSchema = z113.pipe(
|
|
49002
50214
|
z113.object({
|
|
49003
50215
|
match: z113.record(
|
|
49004
50216
|
z113.string(),
|
|
@@ -49007,7 +50219,9 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
|
|
|
49007
50219
|
priority: z113.optional(z113.int()),
|
|
49008
50220
|
tierBehavior: z113.literal("graduated"),
|
|
49009
50221
|
tiers: z113.array(
|
|
49010
|
-
z113.lazy(
|
|
50222
|
+
z113.lazy(
|
|
50223
|
+
() => UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema
|
|
50224
|
+
)
|
|
49011
50225
|
)
|
|
49012
50226
|
}),
|
|
49013
50227
|
z113.transform((v) => {
|
|
@@ -49016,12 +50230,12 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
|
|
|
49016
50230
|
});
|
|
49017
50231
|
})
|
|
49018
50232
|
);
|
|
49019
|
-
var
|
|
49020
|
-
z113.lazy(() =>
|
|
49021
|
-
z113.lazy(() =>
|
|
50233
|
+
var UpdatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
|
|
50234
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
|
|
50235
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
|
|
49022
50236
|
]);
|
|
49023
50237
|
var UpdatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
49024
|
-
var
|
|
50238
|
+
var UpdatePlanLicenseMultipliersRequestBody2$outboundSchema = z113.object({
|
|
49025
50239
|
match: z113.record(
|
|
49026
50240
|
z113.string(),
|
|
49027
50241
|
smartUnion([z113.string(), z113.number(), z113.boolean()])
|
|
@@ -49029,20 +50243,20 @@ var UpdatePlanLicenseMultipliers2$outboundSchema = z113.object({
|
|
|
49029
50243
|
factor: z113.optional(z113.number()),
|
|
49030
50244
|
add: z113.optional(z113.number())
|
|
49031
50245
|
});
|
|
49032
|
-
var
|
|
50246
|
+
var UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z113.pipe(
|
|
49033
50247
|
z113.object({
|
|
49034
50248
|
meteredFeatureId: z113.string(),
|
|
49035
50249
|
billingUnits: z113.optional(z113.number()),
|
|
49036
50250
|
dimensions: z113.optional(z113.record(
|
|
49037
50251
|
z113.string(),
|
|
49038
50252
|
smartUnion([
|
|
49039
|
-
z113.lazy(() =>
|
|
49040
|
-
z113.lazy(() =>
|
|
50253
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
|
|
50254
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
|
|
49041
50255
|
])
|
|
49042
50256
|
)),
|
|
49043
50257
|
multipliers: z113.optional(z113.record(
|
|
49044
50258
|
z113.string(),
|
|
49045
|
-
z113.lazy(() =>
|
|
50259
|
+
z113.lazy(() => UpdatePlanLicenseMultipliersRequestBody2$outboundSchema)
|
|
49046
50260
|
)),
|
|
49047
50261
|
creditCost: z113.number()
|
|
49048
50262
|
}),
|
|
@@ -49055,7 +50269,7 @@ var UpdatePlanCreditSchemaLicense2$outboundSchema = z113.pipe(
|
|
|
49055
50269
|
})
|
|
49056
50270
|
);
|
|
49057
50271
|
var UpdatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
49058
|
-
var
|
|
50272
|
+
var UpdatePlanDimensionsLicenseRequestBody2$outboundSchema = z113.pipe(
|
|
49059
50273
|
z113.object({
|
|
49060
50274
|
match: z113.record(
|
|
49061
50275
|
z113.string(),
|
|
@@ -49071,13 +50285,18 @@ var UpdatePlanDimensionsLicense2$outboundSchema = z113.pipe(
|
|
|
49071
50285
|
})
|
|
49072
50286
|
);
|
|
49073
50287
|
var UpdatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
49074
|
-
var
|
|
49075
|
-
|
|
49076
|
-
|
|
50288
|
+
var UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z113.enum(
|
|
50289
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum1
|
|
50290
|
+
);
|
|
50291
|
+
var UpdatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
|
|
50292
|
+
z113.number(),
|
|
50293
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
|
|
50294
|
+
]);
|
|
50295
|
+
var UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z113.pipe(
|
|
49077
50296
|
z113.object({
|
|
49078
50297
|
to: smartUnion([
|
|
49079
50298
|
z113.number(),
|
|
49080
|
-
|
|
50299
|
+
UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
|
|
49081
50300
|
]),
|
|
49082
50301
|
creditCost: z113.number()
|
|
49083
50302
|
}),
|
|
@@ -49087,7 +50306,7 @@ var UpdatePlanDimensionsLicenseTier1$outboundSchema = z113.pipe(
|
|
|
49087
50306
|
});
|
|
49088
50307
|
})
|
|
49089
50308
|
);
|
|
49090
|
-
var
|
|
50309
|
+
var UpdatePlanDimensionsLicenseRequestBody1$outboundSchema = z113.pipe(
|
|
49091
50310
|
z113.object({
|
|
49092
50311
|
match: z113.record(
|
|
49093
50312
|
z113.string(),
|
|
@@ -49096,7 +50315,9 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
|
|
|
49096
50315
|
priority: z113.optional(z113.int()),
|
|
49097
50316
|
tierBehavior: z113.literal("graduated"),
|
|
49098
50317
|
tiers: z113.array(
|
|
49099
|
-
z113.lazy(
|
|
50318
|
+
z113.lazy(
|
|
50319
|
+
() => UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema
|
|
50320
|
+
)
|
|
49100
50321
|
)
|
|
49101
50322
|
}),
|
|
49102
50323
|
z113.transform((v) => {
|
|
@@ -49105,12 +50326,12 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
|
|
|
49105
50326
|
});
|
|
49106
50327
|
})
|
|
49107
50328
|
);
|
|
49108
|
-
var
|
|
49109
|
-
z113.lazy(() =>
|
|
49110
|
-
z113.lazy(() =>
|
|
50329
|
+
var UpdatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
|
|
50330
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
|
|
50331
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
|
|
49111
50332
|
]);
|
|
49112
50333
|
var UpdatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
|
|
49113
|
-
var
|
|
50334
|
+
var UpdatePlanLicenseMultipliersRequestBody1$outboundSchema = z113.object({
|
|
49114
50335
|
match: z113.record(
|
|
49115
50336
|
z113.string(),
|
|
49116
50337
|
smartUnion([z113.string(), z113.number(), z113.boolean()])
|
|
@@ -49118,11 +50339,17 @@ var UpdatePlanLicenseMultipliers1$outboundSchema = z113.object({
|
|
|
49118
50339
|
factor: z113.optional(z113.number()),
|
|
49119
50340
|
add: z113.optional(z113.number())
|
|
49120
50341
|
});
|
|
49121
|
-
var
|
|
49122
|
-
var
|
|
49123
|
-
|
|
50342
|
+
var UpdatePlanToLicenseRequestBodyEnum$outboundSchema = z113.enum(UpdatePlanToLicenseRequestBodyEnum);
|
|
50343
|
+
var UpdatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
|
|
50344
|
+
z113.number(),
|
|
50345
|
+
UpdatePlanToLicenseRequestBodyEnum$outboundSchema
|
|
50346
|
+
]);
|
|
50347
|
+
var UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z113.pipe(
|
|
49124
50348
|
z113.object({
|
|
49125
|
-
to: smartUnion([
|
|
50349
|
+
to: smartUnion([
|
|
50350
|
+
z113.number(),
|
|
50351
|
+
UpdatePlanToLicenseRequestBodyEnum$outboundSchema
|
|
50352
|
+
]),
|
|
49126
50353
|
creditCost: z113.number()
|
|
49127
50354
|
}),
|
|
49128
50355
|
z113.transform((v) => {
|
|
@@ -49131,24 +50358,24 @@ var UpdatePlanLicenseFeatureOverrideTier$outboundSchema = z113.pipe(
|
|
|
49131
50358
|
});
|
|
49132
50359
|
})
|
|
49133
50360
|
);
|
|
49134
|
-
var
|
|
50361
|
+
var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z113.pipe(
|
|
49135
50362
|
z113.object({
|
|
49136
50363
|
meteredFeatureId: z113.string(),
|
|
49137
50364
|
billingUnits: z113.optional(z113.number()),
|
|
49138
50365
|
dimensions: z113.optional(z113.record(
|
|
49139
50366
|
z113.string(),
|
|
49140
50367
|
smartUnion([
|
|
49141
|
-
z113.lazy(() =>
|
|
49142
|
-
z113.lazy(() =>
|
|
50368
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
|
|
50369
|
+
z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
|
|
49143
50370
|
])
|
|
49144
50371
|
)),
|
|
49145
50372
|
multipliers: z113.optional(z113.record(
|
|
49146
50373
|
z113.string(),
|
|
49147
|
-
z113.lazy(() =>
|
|
50374
|
+
z113.lazy(() => UpdatePlanLicenseMultipliersRequestBody1$outboundSchema)
|
|
49148
50375
|
)),
|
|
49149
50376
|
tierBehavior: z113.literal("graduated"),
|
|
49150
50377
|
tiers: z113.array(z113.lazy(
|
|
49151
|
-
() =>
|
|
50378
|
+
() => UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
|
|
49152
50379
|
))
|
|
49153
50380
|
}),
|
|
49154
50381
|
z113.transform((v) => {
|
|
@@ -49159,14 +50386,14 @@ var UpdatePlanCreditSchemaLicense1$outboundSchema = z113.pipe(
|
|
|
49159
50386
|
});
|
|
49160
50387
|
})
|
|
49161
50388
|
);
|
|
49162
|
-
var
|
|
49163
|
-
z113.lazy(() =>
|
|
49164
|
-
z113.lazy(() =>
|
|
50389
|
+
var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
|
|
50390
|
+
z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
50391
|
+
z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
|
|
49165
50392
|
]);
|
|
49166
|
-
var
|
|
50393
|
+
var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z113.object({
|
|
49167
50394
|
markup: z113.number()
|
|
49168
50395
|
});
|
|
49169
|
-
var
|
|
50396
|
+
var UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema = z113.pipe(
|
|
49170
50397
|
z113.object({
|
|
49171
50398
|
markup: z113.optional(z113.number()),
|
|
49172
50399
|
inputCost: z113.optional(z113.number()),
|
|
@@ -49179,16 +50406,16 @@ var UpdatePlanLicenseModelMarkups$outboundSchema = z113.pipe(
|
|
|
49179
50406
|
});
|
|
49180
50407
|
})
|
|
49181
50408
|
);
|
|
49182
|
-
var
|
|
50409
|
+
var UpdatePlanLicenseMarkupsRequestBody$outboundSchema = z113.pipe(
|
|
49183
50410
|
z113.object({
|
|
49184
50411
|
defaultMarkup: z113.optional(z113.number()),
|
|
49185
50412
|
providerMarkups: z113.optional(z113.nullable(z113.record(
|
|
49186
50413
|
z113.string(),
|
|
49187
|
-
z113.lazy(() =>
|
|
50414
|
+
z113.lazy(() => UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
|
|
49188
50415
|
))),
|
|
49189
50416
|
modelMarkups: z113.optional(z113.nullable(z113.record(
|
|
49190
50417
|
z113.string(),
|
|
49191
|
-
z113.lazy(() =>
|
|
50418
|
+
z113.lazy(() => UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema)
|
|
49192
50419
|
)))
|
|
49193
50420
|
}),
|
|
49194
50421
|
z113.transform((v) => {
|
|
@@ -49199,16 +50426,16 @@ var UpdatePlanLicenseMarkups$outboundSchema = z113.pipe(
|
|
|
49199
50426
|
});
|
|
49200
50427
|
})
|
|
49201
50428
|
);
|
|
49202
|
-
var
|
|
50429
|
+
var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z113.pipe(
|
|
49203
50430
|
z113.object({
|
|
49204
50431
|
creditSchema: z113.optional(z113.array(smartUnion([
|
|
49205
|
-
z113.lazy(() =>
|
|
50432
|
+
z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
|
|
49206
50433
|
z113.lazy(
|
|
49207
|
-
() =>
|
|
50434
|
+
() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
|
|
49208
50435
|
)
|
|
49209
50436
|
]))),
|
|
49210
50437
|
markups: z113.optional(z113.lazy(
|
|
49211
|
-
() =>
|
|
50438
|
+
() => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
|
|
49212
50439
|
))
|
|
49213
50440
|
}),
|
|
49214
50441
|
z113.transform((v) => {
|
|
@@ -49217,29 +50444,33 @@ var UpdatePlanLicenseFeatureOverride$outboundSchema = z113.pipe(
|
|
|
49217
50444
|
});
|
|
49218
50445
|
})
|
|
49219
50446
|
);
|
|
49220
|
-
var
|
|
50447
|
+
var UpdatePlanLicensePlanItemRequestBody$outboundSchema = z113.pipe(
|
|
49221
50448
|
z113.object({
|
|
49222
|
-
thresholdBilling: z113.optional(
|
|
49223
|
-
|
|
49224
|
-
|
|
49225
|
-
)
|
|
49226
|
-
),
|
|
50449
|
+
thresholdBilling: z113.optional(z113.nullable(z113.lazy(
|
|
50450
|
+
() => UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema
|
|
50451
|
+
))),
|
|
49227
50452
|
featureId: z113.string(),
|
|
49228
50453
|
included: z113.optional(z113.number()),
|
|
49229
50454
|
unlimited: z113.optional(z113.boolean()),
|
|
49230
50455
|
pooled: z113._default(z113.boolean(), false),
|
|
49231
|
-
reset: z113.optional(z113.lazy(
|
|
49232
|
-
|
|
49233
|
-
|
|
49234
|
-
|
|
49235
|
-
|
|
49236
|
-
|
|
49237
|
-
|
|
49238
|
-
|
|
49239
|
-
|
|
49240
|
-
|
|
49241
|
-
|
|
49242
|
-
)
|
|
50456
|
+
reset: z113.optional(z113.lazy(
|
|
50457
|
+
() => UpdatePlanLicenseResetRequestBody$outboundSchema
|
|
50458
|
+
)),
|
|
50459
|
+
price: z113.optional(z113.lazy(
|
|
50460
|
+
() => UpdatePlanLicensePriceRequestBody$outboundSchema
|
|
50461
|
+
)),
|
|
50462
|
+
proration: z113.optional(z113.lazy(
|
|
50463
|
+
() => UpdatePlanLicenseProrationRequestBody$outboundSchema
|
|
50464
|
+
)),
|
|
50465
|
+
rollover: z113.optional(z113.lazy(
|
|
50466
|
+
() => UpdatePlanLicenseRolloverRequestBody$outboundSchema
|
|
50467
|
+
)),
|
|
50468
|
+
expiry: z113.optional(z113.lazy(
|
|
50469
|
+
() => UpdatePlanLicenseExpiryRequestBody$outboundSchema
|
|
50470
|
+
)),
|
|
50471
|
+
featureOverride: z113.optional(z113.lazy(
|
|
50472
|
+
() => UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema
|
|
50473
|
+
))
|
|
49243
50474
|
}),
|
|
49244
50475
|
z113.transform((v) => {
|
|
49245
50476
|
return remap(v, {
|
|
@@ -49249,29 +50480,23 @@ var UpdatePlanLicensePlanItem$outboundSchema = z113.pipe(
|
|
|
49249
50480
|
});
|
|
49250
50481
|
})
|
|
49251
50482
|
);
|
|
49252
|
-
var
|
|
49253
|
-
|
|
49254
|
-
);
|
|
49255
|
-
var
|
|
49256
|
-
|
|
49257
|
-
|
|
49258
|
-
var UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z113.enum(
|
|
49259
|
-
UpdatePlanIntervalLicenseRemoveItemEnum1
|
|
49260
|
-
);
|
|
49261
|
-
var UpdatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
|
|
49262
|
-
UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
|
|
49263
|
-
UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
|
|
50483
|
+
var UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseRemoveItemBillingMethodRequestBody);
|
|
50484
|
+
var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema = z113.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2);
|
|
50485
|
+
var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema = z113.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1);
|
|
50486
|
+
var UpdatePlanLicenseIntervalRequestBodyUnion$outboundSchema = smartUnion([
|
|
50487
|
+
UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
|
|
50488
|
+
UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
|
|
49264
50489
|
]);
|
|
49265
|
-
var
|
|
50490
|
+
var UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema = z113.pipe(
|
|
49266
50491
|
z113.object({
|
|
49267
50492
|
featureId: z113.optional(z113.string()),
|
|
49268
50493
|
billingMethod: z113.optional(
|
|
49269
|
-
|
|
50494
|
+
UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema
|
|
49270
50495
|
),
|
|
49271
50496
|
interval: z113.optional(
|
|
49272
50497
|
smartUnion([
|
|
49273
|
-
|
|
49274
|
-
|
|
50498
|
+
UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
|
|
50499
|
+
UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
|
|
49275
50500
|
])
|
|
49276
50501
|
),
|
|
49277
50502
|
intervalCount: z113.optional(z113.int()),
|
|
@@ -49285,17 +50510,17 @@ var UpdatePlanLicensePlanItemFilter$outboundSchema = z113.pipe(
|
|
|
49285
50510
|
});
|
|
49286
50511
|
})
|
|
49287
50512
|
);
|
|
49288
|
-
var
|
|
50513
|
+
var UpdatePlanLicenseCustomizeRequestBody$outboundSchema = z113.pipe(
|
|
49289
50514
|
z113.object({
|
|
49290
|
-
price: z113.optional(
|
|
49291
|
-
|
|
49292
|
-
),
|
|
49293
|
-
addItems: z113.optional(
|
|
49294
|
-
|
|
49295
|
-
),
|
|
49296
|
-
removeItems: z113.optional(
|
|
49297
|
-
|
|
49298
|
-
)
|
|
50515
|
+
price: z113.optional(z113.nullable(z113.lazy(
|
|
50516
|
+
() => UpdatePlanLicenseBasePriceRequestBody$outboundSchema
|
|
50517
|
+
))),
|
|
50518
|
+
addItems: z113.optional(z113.array(z113.lazy(
|
|
50519
|
+
() => UpdatePlanLicensePlanItemRequestBody$outboundSchema
|
|
50520
|
+
))),
|
|
50521
|
+
removeItems: z113.optional(z113.array(z113.lazy(
|
|
50522
|
+
() => UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema
|
|
50523
|
+
)))
|
|
49299
50524
|
}),
|
|
49300
50525
|
z113.transform((v) => {
|
|
49301
50526
|
return remap(v, {
|
|
@@ -49304,15 +50529,15 @@ var UpdatePlanLicenseCustomize$outboundSchema = z113.pipe(
|
|
|
49304
50529
|
});
|
|
49305
50530
|
})
|
|
49306
50531
|
);
|
|
49307
|
-
var
|
|
50532
|
+
var UpdatePlanLicenseRequest$outboundSchema = z113.pipe(
|
|
49308
50533
|
z113.object({
|
|
49309
50534
|
licensePlanId: z113.string(),
|
|
49310
50535
|
versionSlug: z113.optional(z113.string()),
|
|
49311
50536
|
included: z113.optional(z113.int()),
|
|
49312
50537
|
prepaidOnly: z113.optional(z113.boolean()),
|
|
49313
|
-
customize: z113.optional(
|
|
49314
|
-
|
|
49315
|
-
),
|
|
50538
|
+
customize: z113.optional(z113.nullable(z113.lazy(
|
|
50539
|
+
() => UpdatePlanLicenseCustomizeRequestBody$outboundSchema
|
|
50540
|
+
))),
|
|
49316
50541
|
metadata: z113.optional(z113.record(z113.string(), z113.any()))
|
|
49317
50542
|
}),
|
|
49318
50543
|
z113.transform((v) => {
|
|
@@ -51001,7 +52226,7 @@ var UpdatePlanParams$outboundSchema = z114.pipe(
|
|
|
51001
52226
|
z114.nullable(UpdatePlanBasePriceRequestBody$outboundSchema)
|
|
51002
52227
|
),
|
|
51003
52228
|
items: z114.optional(z114.array(UpdatePlanItemPlanItem$outboundSchema)),
|
|
51004
|
-
licenses: z114.optional(z114.array(
|
|
52229
|
+
licenses: z114.optional(z114.array(UpdatePlanLicenseRequest$outboundSchema)),
|
|
51005
52230
|
freeTrial: z114.optional(
|
|
51006
52231
|
z114.nullable(UpdatePlanFreeTrialParamsRequestBody$outboundSchema)
|
|
51007
52232
|
),
|
|
@@ -51309,17 +52534,17 @@ var UpdatePlanVariantDetailsAddItemPriceInterval = {
|
|
|
51309
52534
|
SemiAnnual: "semi_annual",
|
|
51310
52535
|
Year: "year"
|
|
51311
52536
|
};
|
|
51312
|
-
var
|
|
52537
|
+
var UpdatePlanVariantDetailsAddItemBillingMethod = {
|
|
51313
52538
|
Prepaid: "prepaid",
|
|
51314
52539
|
UsageBased: "usage_based"
|
|
51315
52540
|
};
|
|
51316
|
-
var
|
|
52541
|
+
var UpdatePlanVariantDetailsOnIncrease = {
|
|
51317
52542
|
BillImmediately: "bill_immediately",
|
|
51318
52543
|
ProrateImmediately: "prorate_immediately",
|
|
51319
52544
|
ProrateNextCycle: "prorate_next_cycle",
|
|
51320
52545
|
BillNextCycle: "bill_next_cycle"
|
|
51321
52546
|
};
|
|
51322
|
-
var
|
|
52547
|
+
var UpdatePlanVariantDetailsOnDecrease = {
|
|
51323
52548
|
Prorate: "prorate",
|
|
51324
52549
|
ProrateImmediately: "prorate_immediately",
|
|
51325
52550
|
ProrateNextCycle: "prorate_next_cycle",
|
|
@@ -51345,7 +52570,7 @@ var UpdatePlanDimensionsToVariantDetailsEnum1 = {
|
|
|
51345
52570
|
var UpdatePlanToVariantDetailsEnum = {
|
|
51346
52571
|
Inf: "inf"
|
|
51347
52572
|
};
|
|
51348
|
-
var
|
|
52573
|
+
var UpdatePlanVariantDetailsRemoveItemBillingMethod = {
|
|
51349
52574
|
Prepaid: "prepaid",
|
|
51350
52575
|
UsageBased: "usage_based"
|
|
51351
52576
|
};
|
|
@@ -51440,7 +52665,7 @@ var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval = {
|
|
|
51440
52665
|
SemiAnnual: "semi_annual",
|
|
51441
52666
|
Year: "year"
|
|
51442
52667
|
};
|
|
51443
|
-
var
|
|
52668
|
+
var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod = {
|
|
51444
52669
|
Prepaid: "prepaid",
|
|
51445
52670
|
UsageBased: "usage_based"
|
|
51446
52671
|
};
|
|
@@ -51457,7 +52682,7 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
|
|
|
51457
52682
|
None: "none",
|
|
51458
52683
|
NoProrations: "no_prorations"
|
|
51459
52684
|
};
|
|
51460
|
-
var
|
|
52685
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
|
|
51461
52686
|
Month: "month",
|
|
51462
52687
|
Forever: "forever"
|
|
51463
52688
|
};
|
|
@@ -52044,7 +53269,7 @@ var UpdatePlanVariantDetailsAdditionalCurrency$inboundSchema = z115.object(
|
|
|
52044
53269
|
amount: number2()
|
|
52045
53270
|
}
|
|
52046
53271
|
);
|
|
52047
|
-
var
|
|
53272
|
+
var UpdatePlanVariantDetailsBasePrice$inboundSchema = z115.pipe(
|
|
52048
53273
|
z115.object({
|
|
52049
53274
|
amount: number2(),
|
|
52050
53275
|
interval: UpdatePlanPriceVariantDetailsInterval$inboundSchema,
|
|
@@ -52075,7 +53300,7 @@ var UpdatePlanVariantDetailsReset$inboundSchema = z115.pipe(
|
|
|
52075
53300
|
});
|
|
52076
53301
|
})
|
|
52077
53302
|
);
|
|
52078
|
-
var
|
|
53303
|
+
var UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z115.object({
|
|
52079
53304
|
currency: string5(),
|
|
52080
53305
|
amount: number2()
|
|
52081
53306
|
});
|
|
@@ -52110,12 +53335,12 @@ var UpdatePlanVariantDetailsPriceTier$inboundSchema = z115.pipe(
|
|
|
52110
53335
|
);
|
|
52111
53336
|
var UpdatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(UpdatePlanVariantDetailsTierBehavior);
|
|
52112
53337
|
var UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemPriceInterval);
|
|
52113
|
-
var
|
|
53338
|
+
var UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemBillingMethod);
|
|
52114
53339
|
var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
|
|
52115
53340
|
z115.object({
|
|
52116
53341
|
amount: optional3(number2()),
|
|
52117
53342
|
additional_currencies: optional3(z115.array(z115.lazy(
|
|
52118
|
-
() =>
|
|
53343
|
+
() => UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
|
|
52119
53344
|
))),
|
|
52120
53345
|
tiers: optional3(z115.array(z115.lazy(
|
|
52121
53346
|
() => UpdatePlanVariantDetailsPriceTier$inboundSchema
|
|
@@ -52126,7 +53351,7 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
|
|
|
52126
53351
|
interval: UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
|
|
52127
53352
|
interval_count: z115._default(number2(), 1),
|
|
52128
53353
|
billing_units: z115._default(number2(), 1),
|
|
52129
|
-
billing_method:
|
|
53354
|
+
billing_method: UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
|
|
52130
53355
|
max_purchase: z115.optional(z115.nullable(number2()))
|
|
52131
53356
|
}),
|
|
52132
53357
|
z115.transform((v) => {
|
|
@@ -52140,12 +53365,12 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
|
|
|
52140
53365
|
});
|
|
52141
53366
|
})
|
|
52142
53367
|
);
|
|
52143
|
-
var
|
|
52144
|
-
var
|
|
52145
|
-
var
|
|
53368
|
+
var UpdatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnIncrease);
|
|
53369
|
+
var UpdatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnDecrease);
|
|
53370
|
+
var UpdatePlanVariantDetailsProration$inboundSchema = z115.pipe(
|
|
52146
53371
|
z115.object({
|
|
52147
|
-
on_increase:
|
|
52148
|
-
on_decrease:
|
|
53372
|
+
on_increase: UpdatePlanVariantDetailsOnIncrease$inboundSchema,
|
|
53373
|
+
on_decrease: UpdatePlanVariantDetailsOnDecrease$inboundSchema
|
|
52149
53374
|
}),
|
|
52150
53375
|
z115.transform((v) => {
|
|
52151
53376
|
return remap(v, {
|
|
@@ -52420,7 +53645,7 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z115.pipe(
|
|
|
52420
53645
|
});
|
|
52421
53646
|
})
|
|
52422
53647
|
);
|
|
52423
|
-
var
|
|
53648
|
+
var UpdatePlanVariantDetailsPlanItem$inboundSchema = z115.pipe(
|
|
52424
53649
|
z115.object({
|
|
52425
53650
|
threshold_billing: z115.optional(z115.nullable(z115.lazy(
|
|
52426
53651
|
() => UpdatePlanVariantDetailsThresholdBilling$inboundSchema
|
|
@@ -52436,7 +53661,7 @@ var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
|
|
|
52436
53661
|
() => UpdatePlanVariantDetailsPrice$inboundSchema
|
|
52437
53662
|
)),
|
|
52438
53663
|
proration: optional3(z115.lazy(
|
|
52439
|
-
() =>
|
|
53664
|
+
() => UpdatePlanVariantDetailsProration$inboundSchema
|
|
52440
53665
|
)),
|
|
52441
53666
|
rollover: optional3(z115.lazy(
|
|
52442
53667
|
() => UpdatePlanVariantDetailsRollover$inboundSchema
|
|
@@ -52456,18 +53681,18 @@ var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
|
|
|
52456
53681
|
});
|
|
52457
53682
|
})
|
|
52458
53683
|
);
|
|
52459
|
-
var
|
|
53684
|
+
var UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsRemoveItemBillingMethod);
|
|
52460
53685
|
var UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum2);
|
|
52461
53686
|
var UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum1);
|
|
52462
53687
|
var UpdatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
|
|
52463
53688
|
UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
|
|
52464
53689
|
UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
|
|
52465
53690
|
]);
|
|
52466
|
-
var
|
|
53691
|
+
var UpdatePlanVariantDetailsPlanItemFilter$inboundSchema = z115.pipe(
|
|
52467
53692
|
z115.object({
|
|
52468
53693
|
feature_id: optional3(string5()),
|
|
52469
53694
|
billing_method: optional3(
|
|
52470
|
-
|
|
53695
|
+
UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
|
|
52471
53696
|
),
|
|
52472
53697
|
interval: optional3(
|
|
52473
53698
|
smartUnion([
|
|
@@ -52644,7 +53869,7 @@ var UpdatePlanVariantDetailsBillingControls$inboundSchema = z115.pipe(
|
|
|
52644
53869
|
})
|
|
52645
53870
|
);
|
|
52646
53871
|
var UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema = inboundSchema(UpdatePlanPriceVariantDetailsUpsertLicenseInterval);
|
|
52647
|
-
var
|
|
53872
|
+
var UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema = z115.object({
|
|
52648
53873
|
currency: string5(),
|
|
52649
53874
|
amount: number2()
|
|
52650
53875
|
});
|
|
@@ -52654,7 +53879,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z115.pipe(
|
|
|
52654
53879
|
interval: UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema,
|
|
52655
53880
|
interval_count: z115._default(number2(), 1),
|
|
52656
53881
|
additional_currencies: optional3(z115.array(z115.lazy(
|
|
52657
|
-
() =>
|
|
53882
|
+
() => UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema
|
|
52658
53883
|
)))
|
|
52659
53884
|
}),
|
|
52660
53885
|
z115.transform((v) => {
|
|
@@ -52664,7 +53889,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z115.pipe(
|
|
|
52664
53889
|
});
|
|
52665
53890
|
})
|
|
52666
53891
|
);
|
|
52667
|
-
var
|
|
53892
|
+
var UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema = z115.object({
|
|
52668
53893
|
threshold: number2()
|
|
52669
53894
|
});
|
|
52670
53895
|
var UpdatePlanVariantDetailsUpsertLicenseResetInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseResetInterval);
|
|
@@ -52679,12 +53904,12 @@ var UpdatePlanVariantDetailsUpsertLicenseReset$inboundSchema = z115.pipe(
|
|
|
52679
53904
|
});
|
|
52680
53905
|
})
|
|
52681
53906
|
);
|
|
52682
|
-
var
|
|
53907
|
+
var UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema = z115.object({
|
|
52683
53908
|
currency: string5(),
|
|
52684
53909
|
amount: number2()
|
|
52685
53910
|
});
|
|
52686
53911
|
var UpdatePlanVariantDetailsUpsertLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
|
|
52687
|
-
var
|
|
53912
|
+
var UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema = z115.pipe(
|
|
52688
53913
|
z115.object({
|
|
52689
53914
|
currency: string5(),
|
|
52690
53915
|
amount: optional3(number2()),
|
|
@@ -52702,7 +53927,7 @@ var UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema = z115.pipe(
|
|
|
52702
53927
|
amount: number2(),
|
|
52703
53928
|
flat_amount: optional3(number2()),
|
|
52704
53929
|
additional_currencies: optional3(z115.array(z115.lazy(
|
|
52705
|
-
() =>
|
|
53930
|
+
() => UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema
|
|
52706
53931
|
)))
|
|
52707
53932
|
}),
|
|
52708
53933
|
z115.transform((v) => {
|
|
@@ -52716,14 +53941,14 @@ var UpdatePlanVariantDetailsUpsertLicenseTierBehavior$inboundSchema = inboundSch
|
|
|
52716
53941
|
var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(
|
|
52717
53942
|
UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval
|
|
52718
53943
|
);
|
|
52719
|
-
var
|
|
52720
|
-
|
|
53944
|
+
var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(
|
|
53945
|
+
UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod
|
|
52721
53946
|
);
|
|
52722
53947
|
var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z115.pipe(
|
|
52723
53948
|
z115.object({
|
|
52724
53949
|
amount: optional3(number2()),
|
|
52725
53950
|
additional_currencies: optional3(z115.array(z115.lazy(
|
|
52726
|
-
() =>
|
|
53951
|
+
() => UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema
|
|
52727
53952
|
))),
|
|
52728
53953
|
tiers: optional3(z115.array(z115.lazy(
|
|
52729
53954
|
() => UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema
|
|
@@ -52734,7 +53959,7 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z115.pipe(
|
|
|
52734
53959
|
interval: UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema,
|
|
52735
53960
|
interval_count: z115._default(number2(), 1),
|
|
52736
53961
|
billing_units: z115._default(number2(), 1),
|
|
52737
|
-
billing_method:
|
|
53962
|
+
billing_method: UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema,
|
|
52738
53963
|
max_purchase: z115.optional(z115.nullable(number2()))
|
|
52739
53964
|
}),
|
|
52740
53965
|
z115.transform((v) => {
|
|
@@ -52762,12 +53987,14 @@ var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z115.pipe(
|
|
|
52762
53987
|
});
|
|
52763
53988
|
})
|
|
52764
53989
|
);
|
|
52765
|
-
var
|
|
53990
|
+
var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
|
|
53991
|
+
UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
|
|
53992
|
+
);
|
|
52766
53993
|
var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z115.pipe(
|
|
52767
53994
|
z115.object({
|
|
52768
53995
|
max: optional3(number2()),
|
|
52769
53996
|
max_percentage: optional3(number2()),
|
|
52770
|
-
expiry_duration_type:
|
|
53997
|
+
expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
|
|
52771
53998
|
expiry_duration_length: optional3(number2())
|
|
52772
53999
|
}),
|
|
52773
54000
|
z115.transform((v) => {
|
|
@@ -52807,7 +54034,7 @@ var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum1 = {
|
|
|
52807
54034
|
var UpdatePlanToVariantDetailsUpsertLicenseEnum = {
|
|
52808
54035
|
Inf: "inf"
|
|
52809
54036
|
};
|
|
52810
|
-
var
|
|
54037
|
+
var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod = {
|
|
52811
54038
|
Prepaid: "prepaid",
|
|
52812
54039
|
UsageBased: "usage_based"
|
|
52813
54040
|
};
|
|
@@ -52830,6 +54057,96 @@ var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum1 = {
|
|
|
52830
54057
|
SemiAnnual: "semi_annual",
|
|
52831
54058
|
Year: "year"
|
|
52832
54059
|
};
|
|
54060
|
+
var UpdatePlanPriceLicenseIntervalResponse = {
|
|
54061
|
+
OneOff: "one_off",
|
|
54062
|
+
Week: "week",
|
|
54063
|
+
Month: "month",
|
|
54064
|
+
Quarter: "quarter",
|
|
54065
|
+
SemiAnnual: "semi_annual",
|
|
54066
|
+
Year: "year"
|
|
54067
|
+
};
|
|
54068
|
+
var UpdatePlanLicenseResetIntervalResponse = {
|
|
54069
|
+
OneOff: "one_off",
|
|
54070
|
+
Minute: "minute",
|
|
54071
|
+
Hour: "hour",
|
|
54072
|
+
Day: "day",
|
|
54073
|
+
Week: "week",
|
|
54074
|
+
Month: "month",
|
|
54075
|
+
Quarter: "quarter",
|
|
54076
|
+
SemiAnnual: "semi_annual",
|
|
54077
|
+
Year: "year"
|
|
54078
|
+
};
|
|
54079
|
+
var UpdatePlanLicenseTierBehaviorResponse = {
|
|
54080
|
+
Graduated: "graduated",
|
|
54081
|
+
Volume: "volume"
|
|
54082
|
+
};
|
|
54083
|
+
var UpdatePlanLicenseAddItemPriceIntervalResponse = {
|
|
54084
|
+
OneOff: "one_off",
|
|
54085
|
+
Week: "week",
|
|
54086
|
+
Month: "month",
|
|
54087
|
+
Quarter: "quarter",
|
|
54088
|
+
SemiAnnual: "semi_annual",
|
|
54089
|
+
Year: "year"
|
|
54090
|
+
};
|
|
54091
|
+
var UpdatePlanLicenseAddItemBillingMethodResponse = {
|
|
54092
|
+
Prepaid: "prepaid",
|
|
54093
|
+
UsageBased: "usage_based"
|
|
54094
|
+
};
|
|
54095
|
+
var UpdatePlanLicenseOnIncreaseResponse = {
|
|
54096
|
+
BillImmediately: "bill_immediately",
|
|
54097
|
+
ProrateImmediately: "prorate_immediately",
|
|
54098
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
54099
|
+
BillNextCycle: "bill_next_cycle"
|
|
54100
|
+
};
|
|
54101
|
+
var UpdatePlanLicenseOnDecreaseResponse = {
|
|
54102
|
+
Prorate: "prorate",
|
|
54103
|
+
ProrateImmediately: "prorate_immediately",
|
|
54104
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
54105
|
+
None: "none",
|
|
54106
|
+
NoProrations: "no_prorations"
|
|
54107
|
+
};
|
|
54108
|
+
var UpdatePlanLicenseExpiryDurationTypeResponse = {
|
|
54109
|
+
Month: "month",
|
|
54110
|
+
Forever: "forever"
|
|
54111
|
+
};
|
|
54112
|
+
var UpdatePlanLicenseDurationResponse = {
|
|
54113
|
+
Day: "day",
|
|
54114
|
+
Week: "week",
|
|
54115
|
+
Month: "month",
|
|
54116
|
+
Year: "year"
|
|
54117
|
+
};
|
|
54118
|
+
var UpdatePlanDimensionsToLicenseResponseEnum2 = {
|
|
54119
|
+
Inf: "inf"
|
|
54120
|
+
};
|
|
54121
|
+
var UpdatePlanDimensionsToLicenseResponseEnum1 = {
|
|
54122
|
+
Inf: "inf"
|
|
54123
|
+
};
|
|
54124
|
+
var UpdatePlanToLicenseResponseEnum = {
|
|
54125
|
+
Inf: "inf"
|
|
54126
|
+
};
|
|
54127
|
+
var UpdatePlanLicenseRemoveItemBillingMethodResponse = {
|
|
54128
|
+
Prepaid: "prepaid",
|
|
54129
|
+
UsageBased: "usage_based"
|
|
54130
|
+
};
|
|
54131
|
+
var UpdatePlanIntervalLicenseRemoveItemResponseEnum2 = {
|
|
54132
|
+
OneOff: "one_off",
|
|
54133
|
+
Minute: "minute",
|
|
54134
|
+
Hour: "hour",
|
|
54135
|
+
Day: "day",
|
|
54136
|
+
Week: "week",
|
|
54137
|
+
Month: "month",
|
|
54138
|
+
Quarter: "quarter",
|
|
54139
|
+
SemiAnnual: "semi_annual",
|
|
54140
|
+
Year: "year"
|
|
54141
|
+
};
|
|
54142
|
+
var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
|
|
54143
|
+
OneOff: "one_off",
|
|
54144
|
+
Week: "week",
|
|
54145
|
+
Month: "month",
|
|
54146
|
+
Quarter: "quarter",
|
|
54147
|
+
SemiAnnual: "semi_annual",
|
|
54148
|
+
Year: "year"
|
|
54149
|
+
};
|
|
52833
54150
|
var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z116.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
|
|
52834
54151
|
var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
|
|
52835
54152
|
number2(),
|
|
@@ -53042,7 +54359,7 @@ var UpdatePlanVariantDetailsUpsertLicenseModelMarkups$inboundSchema = z116.pipe(
|
|
|
53042
54359
|
});
|
|
53043
54360
|
})
|
|
53044
54361
|
);
|
|
53045
|
-
var
|
|
54362
|
+
var UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema = z116.pipe(
|
|
53046
54363
|
z116.object({
|
|
53047
54364
|
default_markup: optional3(number2()),
|
|
53048
54365
|
provider_markups: z116.optional(z116.nullable(z116.record(
|
|
@@ -53066,7 +54383,7 @@ var UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema = z116.pipe(
|
|
|
53066
54383
|
});
|
|
53067
54384
|
})
|
|
53068
54385
|
);
|
|
53069
|
-
var
|
|
54386
|
+
var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z116.pipe(
|
|
53070
54387
|
z116.object({
|
|
53071
54388
|
credit_schema: optional3(z116.array(smartUnion([
|
|
53072
54389
|
z116.lazy(
|
|
@@ -53077,7 +54394,7 @@ var UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
|
|
|
53077
54394
|
)
|
|
53078
54395
|
]))),
|
|
53079
54396
|
markups: optional3(z116.lazy(
|
|
53080
|
-
() =>
|
|
54397
|
+
() => UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema
|
|
53081
54398
|
))
|
|
53082
54399
|
}),
|
|
53083
54400
|
z116.transform((v) => {
|
|
@@ -53090,7 +54407,7 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
|
|
|
53090
54407
|
z116.object({
|
|
53091
54408
|
threshold_billing: z116.optional(
|
|
53092
54409
|
z116.nullable(
|
|
53093
|
-
|
|
54410
|
+
UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema
|
|
53094
54411
|
)
|
|
53095
54412
|
),
|
|
53096
54413
|
feature_id: string5(),
|
|
@@ -53112,11 +54429,9 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
|
|
|
53112
54429
|
expiry: optional3(
|
|
53113
54430
|
UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
|
|
53114
54431
|
),
|
|
53115
|
-
feature_override: optional3(
|
|
53116
|
-
|
|
53117
|
-
|
|
53118
|
-
)
|
|
53119
|
-
)
|
|
54432
|
+
feature_override: optional3(z116.lazy(
|
|
54433
|
+
() => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
|
|
54434
|
+
))
|
|
53120
54435
|
}),
|
|
53121
54436
|
z116.transform((v) => {
|
|
53122
54437
|
return remap(v, {
|
|
@@ -53126,8 +54441,8 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
|
|
|
53126
54441
|
});
|
|
53127
54442
|
})
|
|
53128
54443
|
);
|
|
53129
|
-
var
|
|
53130
|
-
|
|
54444
|
+
var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(
|
|
54445
|
+
UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod
|
|
53131
54446
|
);
|
|
53132
54447
|
var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2$inboundSchema = inboundSchema(
|
|
53133
54448
|
UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2
|
|
@@ -53143,7 +54458,7 @@ var UpdatePlanUpsertLicensePlanItemFilterResponse$inboundSchema = z116.pipe(
|
|
|
53143
54458
|
z116.object({
|
|
53144
54459
|
feature_id: optional3(string5()),
|
|
53145
54460
|
billing_method: optional3(
|
|
53146
|
-
|
|
54461
|
+
UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema
|
|
53147
54462
|
),
|
|
53148
54463
|
interval: optional3(
|
|
53149
54464
|
smartUnion([
|
|
@@ -53210,14 +54525,16 @@ var UpdatePlanRemoveLicenseResponse$inboundSchema = z116.pipe(
|
|
|
53210
54525
|
});
|
|
53211
54526
|
})
|
|
53212
54527
|
);
|
|
53213
|
-
var
|
|
54528
|
+
var UpdatePlanVariantDetailsCustomize$inboundSchema = z116.pipe(
|
|
53214
54529
|
z116.object({
|
|
53215
|
-
price: z116.optional(
|
|
54530
|
+
price: z116.optional(
|
|
54531
|
+
z116.nullable(UpdatePlanVariantDetailsBasePrice$inboundSchema)
|
|
54532
|
+
),
|
|
53216
54533
|
add_items: optional3(
|
|
53217
|
-
z116.array(
|
|
54534
|
+
z116.array(UpdatePlanVariantDetailsPlanItem$inboundSchema)
|
|
53218
54535
|
),
|
|
53219
54536
|
remove_items: optional3(
|
|
53220
|
-
z116.array(
|
|
54537
|
+
z116.array(UpdatePlanVariantDetailsPlanItemFilter$inboundSchema)
|
|
53221
54538
|
),
|
|
53222
54539
|
free_trial: z116.optional(
|
|
53223
54540
|
z116.nullable(UpdatePlanFreeTrialParamsResponse$inboundSchema)
|
|
@@ -53247,7 +54564,7 @@ var UpdatePlanVariantDetails$inboundSchema = z116.pipe(
|
|
|
53247
54564
|
z116.object({
|
|
53248
54565
|
base_plan_id: string5(),
|
|
53249
54566
|
customize: optional3(
|
|
53250
|
-
z116.lazy(() =>
|
|
54567
|
+
z116.lazy(() => UpdatePlanVariantDetailsCustomize$inboundSchema)
|
|
53251
54568
|
)
|
|
53252
54569
|
}),
|
|
53253
54570
|
z116.transform((v) => {
|
|
@@ -53256,6 +54573,493 @@ var UpdatePlanVariantDetails$inboundSchema = z116.pipe(
|
|
|
53256
54573
|
});
|
|
53257
54574
|
})
|
|
53258
54575
|
);
|
|
54576
|
+
var UpdatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceLicenseIntervalResponse);
|
|
54577
|
+
var UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z116.object({
|
|
54578
|
+
currency: string5(),
|
|
54579
|
+
amount: number2()
|
|
54580
|
+
});
|
|
54581
|
+
var UpdatePlanLicenseBasePriceResponse$inboundSchema = z116.pipe(
|
|
54582
|
+
z116.object({
|
|
54583
|
+
amount: number2(),
|
|
54584
|
+
interval: UpdatePlanPriceLicenseIntervalResponse$inboundSchema,
|
|
54585
|
+
interval_count: z116._default(number2(), 1),
|
|
54586
|
+
additional_currencies: optional3(z116.array(z116.lazy(
|
|
54587
|
+
() => UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema
|
|
54588
|
+
)))
|
|
54589
|
+
}),
|
|
54590
|
+
z116.transform((v) => {
|
|
54591
|
+
return remap(v, {
|
|
54592
|
+
"interval_count": "intervalCount",
|
|
54593
|
+
"additional_currencies": "additionalCurrencies"
|
|
54594
|
+
});
|
|
54595
|
+
})
|
|
54596
|
+
);
|
|
54597
|
+
var UpdatePlanLicenseThresholdBillingResponse$inboundSchema = z116.object({
|
|
54598
|
+
threshold: number2()
|
|
54599
|
+
});
|
|
54600
|
+
var UpdatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseResetIntervalResponse);
|
|
54601
|
+
var UpdatePlanLicenseResetResponse$inboundSchema = z116.pipe(
|
|
54602
|
+
z116.object({
|
|
54603
|
+
interval: UpdatePlanLicenseResetIntervalResponse$inboundSchema,
|
|
54604
|
+
interval_count: z116._default(number2(), 1)
|
|
54605
|
+
}),
|
|
54606
|
+
z116.transform((v) => {
|
|
54607
|
+
return remap(v, {
|
|
54608
|
+
"interval_count": "intervalCount"
|
|
54609
|
+
});
|
|
54610
|
+
})
|
|
54611
|
+
);
|
|
54612
|
+
var UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z116.object({
|
|
54613
|
+
currency: string5(),
|
|
54614
|
+
amount: number2()
|
|
54615
|
+
});
|
|
54616
|
+
var UpdatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
|
|
54617
|
+
var UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z116.pipe(
|
|
54618
|
+
z116.object({
|
|
54619
|
+
currency: string5(),
|
|
54620
|
+
amount: optional3(number2()),
|
|
54621
|
+
flat_amount: optional3(number2())
|
|
54622
|
+
}),
|
|
54623
|
+
z116.transform((v) => {
|
|
54624
|
+
return remap(v, {
|
|
54625
|
+
"flat_amount": "flatAmount"
|
|
54626
|
+
});
|
|
54627
|
+
})
|
|
54628
|
+
);
|
|
54629
|
+
var UpdatePlanLicensePriceTierResponse$inboundSchema = z116.pipe(
|
|
54630
|
+
z116.object({
|
|
54631
|
+
to: smartUnion([number2(), string5()]),
|
|
54632
|
+
amount: number2(),
|
|
54633
|
+
flat_amount: optional3(number2()),
|
|
54634
|
+
additional_currencies: optional3(z116.array(z116.lazy(
|
|
54635
|
+
() => UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
|
|
54636
|
+
)))
|
|
54637
|
+
}),
|
|
54638
|
+
z116.transform((v) => {
|
|
54639
|
+
return remap(v, {
|
|
54640
|
+
"flat_amount": "flatAmount",
|
|
54641
|
+
"additional_currencies": "additionalCurrencies"
|
|
54642
|
+
});
|
|
54643
|
+
})
|
|
54644
|
+
);
|
|
54645
|
+
var UpdatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanLicenseTierBehaviorResponse);
|
|
54646
|
+
var UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemPriceIntervalResponse);
|
|
54647
|
+
var UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemBillingMethodResponse);
|
|
54648
|
+
var UpdatePlanLicensePriceResponse$inboundSchema = z116.pipe(
|
|
54649
|
+
z116.object({
|
|
54650
|
+
amount: optional3(number2()),
|
|
54651
|
+
additional_currencies: optional3(z116.array(z116.lazy(
|
|
54652
|
+
() => UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
|
|
54653
|
+
))),
|
|
54654
|
+
tiers: optional3(z116.array(z116.lazy(
|
|
54655
|
+
() => UpdatePlanLicensePriceTierResponse$inboundSchema
|
|
54656
|
+
))),
|
|
54657
|
+
tier_behavior: optional3(
|
|
54658
|
+
UpdatePlanLicenseTierBehaviorResponse$inboundSchema
|
|
54659
|
+
),
|
|
54660
|
+
interval: UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
|
|
54661
|
+
interval_count: z116._default(number2(), 1),
|
|
54662
|
+
billing_units: z116._default(number2(), 1),
|
|
54663
|
+
billing_method: UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
|
|
54664
|
+
max_purchase: z116.optional(z116.nullable(number2()))
|
|
54665
|
+
}),
|
|
54666
|
+
z116.transform((v) => {
|
|
54667
|
+
return remap(v, {
|
|
54668
|
+
"additional_currencies": "additionalCurrencies",
|
|
54669
|
+
"tier_behavior": "tierBehavior",
|
|
54670
|
+
"interval_count": "intervalCount",
|
|
54671
|
+
"billing_units": "billingUnits",
|
|
54672
|
+
"billing_method": "billingMethod",
|
|
54673
|
+
"max_purchase": "maxPurchase"
|
|
54674
|
+
});
|
|
54675
|
+
})
|
|
54676
|
+
);
|
|
54677
|
+
var UpdatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnIncreaseResponse);
|
|
54678
|
+
var UpdatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnDecreaseResponse);
|
|
54679
|
+
var UpdatePlanLicenseProrationResponse$inboundSchema = z116.pipe(
|
|
54680
|
+
z116.object({
|
|
54681
|
+
on_increase: UpdatePlanLicenseOnIncreaseResponse$inboundSchema,
|
|
54682
|
+
on_decrease: UpdatePlanLicenseOnDecreaseResponse$inboundSchema
|
|
54683
|
+
}),
|
|
54684
|
+
z116.transform((v) => {
|
|
54685
|
+
return remap(v, {
|
|
54686
|
+
"on_increase": "onIncrease",
|
|
54687
|
+
"on_decrease": "onDecrease"
|
|
54688
|
+
});
|
|
54689
|
+
})
|
|
54690
|
+
);
|
|
54691
|
+
var UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanLicenseExpiryDurationTypeResponse);
|
|
54692
|
+
var UpdatePlanLicenseRolloverResponse$inboundSchema = z116.pipe(
|
|
54693
|
+
z116.object({
|
|
54694
|
+
max: optional3(number2()),
|
|
54695
|
+
max_percentage: optional3(number2()),
|
|
54696
|
+
expiry_duration_type: UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
|
|
54697
|
+
expiry_duration_length: optional3(number2())
|
|
54698
|
+
}),
|
|
54699
|
+
z116.transform((v) => {
|
|
54700
|
+
return remap(v, {
|
|
54701
|
+
"max_percentage": "maxPercentage",
|
|
54702
|
+
"expiry_duration_type": "expiryDurationType",
|
|
54703
|
+
"expiry_duration_length": "expiryDurationLength"
|
|
54704
|
+
});
|
|
54705
|
+
})
|
|
54706
|
+
);
|
|
54707
|
+
var UpdatePlanLicenseDurationResponse$inboundSchema = inboundSchema(UpdatePlanLicenseDurationResponse);
|
|
54708
|
+
var UpdatePlanLicenseExpiryResponse$inboundSchema = z116.object({
|
|
54709
|
+
duration: UpdatePlanLicenseDurationResponse$inboundSchema,
|
|
54710
|
+
length: number2()
|
|
54711
|
+
});
|
|
54712
|
+
var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z116.pipe(
|
|
54713
|
+
z116.object({
|
|
54714
|
+
match: z116.record(z116.string(), string5()),
|
|
54715
|
+
priority: optional3(number2()),
|
|
54716
|
+
credit_cost: number2()
|
|
54717
|
+
}),
|
|
54718
|
+
z116.transform((v) => {
|
|
54719
|
+
return remap(v, {
|
|
54720
|
+
"credit_cost": "creditCost"
|
|
54721
|
+
});
|
|
54722
|
+
})
|
|
54723
|
+
);
|
|
54724
|
+
var UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z116.enum(
|
|
54725
|
+
UpdatePlanDimensionsToLicenseResponseEnum2
|
|
54726
|
+
);
|
|
54727
|
+
var UpdatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
|
|
54728
|
+
number2(),
|
|
54729
|
+
UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
|
|
54730
|
+
]);
|
|
54731
|
+
var UpdatePlanDimensionsLicenseTierResponse2$inboundSchema = z116.pipe(
|
|
54732
|
+
z116.object({
|
|
54733
|
+
to: smartUnion([
|
|
54734
|
+
number2(),
|
|
54735
|
+
UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
|
|
54736
|
+
]),
|
|
54737
|
+
credit_cost: number2()
|
|
54738
|
+
}),
|
|
54739
|
+
z116.transform((v) => {
|
|
54740
|
+
return remap(v, {
|
|
54741
|
+
"credit_cost": "creditCost"
|
|
54742
|
+
});
|
|
54743
|
+
})
|
|
54744
|
+
);
|
|
54745
|
+
var UpdatePlanDimensionsLicenseResponse3$inboundSchema = z116.pipe(
|
|
54746
|
+
z116.object({
|
|
54747
|
+
match: z116.record(z116.string(), string5()),
|
|
54748
|
+
priority: optional3(number2()),
|
|
54749
|
+
tier_behavior: literal3("graduated"),
|
|
54750
|
+
tiers: z116.array(
|
|
54751
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseTierResponse2$inboundSchema)
|
|
54752
|
+
)
|
|
54753
|
+
}),
|
|
54754
|
+
z116.transform((v) => {
|
|
54755
|
+
return remap(v, {
|
|
54756
|
+
"tier_behavior": "tierBehavior"
|
|
54757
|
+
});
|
|
54758
|
+
})
|
|
54759
|
+
);
|
|
54760
|
+
var UpdatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
|
|
54761
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
|
|
54762
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
|
|
54763
|
+
]);
|
|
54764
|
+
var UpdatePlanLicenseMultipliersResponse2$inboundSchema = z116.object({
|
|
54765
|
+
match: z116.record(z116.string(), string5()),
|
|
54766
|
+
factor: optional3(number2()),
|
|
54767
|
+
add: optional3(number2())
|
|
54768
|
+
});
|
|
54769
|
+
var UpdatePlanCreditSchemaLicenseResponse2$inboundSchema = z116.pipe(
|
|
54770
|
+
z116.object({
|
|
54771
|
+
metered_feature_id: string5(),
|
|
54772
|
+
billing_units: optional3(number2()),
|
|
54773
|
+
dimensions: optional3(z116.record(
|
|
54774
|
+
z116.string(),
|
|
54775
|
+
smartUnion([
|
|
54776
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
|
|
54777
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
|
|
54778
|
+
])
|
|
54779
|
+
)),
|
|
54780
|
+
multipliers: optional3(z116.record(
|
|
54781
|
+
z116.string(),
|
|
54782
|
+
z116.lazy(() => UpdatePlanLicenseMultipliersResponse2$inboundSchema)
|
|
54783
|
+
)),
|
|
54784
|
+
credit_cost: number2()
|
|
54785
|
+
}),
|
|
54786
|
+
z116.transform((v) => {
|
|
54787
|
+
return remap(v, {
|
|
54788
|
+
"metered_feature_id": "meteredFeatureId",
|
|
54789
|
+
"billing_units": "billingUnits",
|
|
54790
|
+
"credit_cost": "creditCost"
|
|
54791
|
+
});
|
|
54792
|
+
})
|
|
54793
|
+
);
|
|
54794
|
+
var UpdatePlanDimensionsLicenseResponse2$inboundSchema = z116.pipe(
|
|
54795
|
+
z116.object({
|
|
54796
|
+
match: z116.record(z116.string(), string5()),
|
|
54797
|
+
priority: optional3(number2()),
|
|
54798
|
+
credit_cost: number2()
|
|
54799
|
+
}),
|
|
54800
|
+
z116.transform((v) => {
|
|
54801
|
+
return remap(v, {
|
|
54802
|
+
"credit_cost": "creditCost"
|
|
54803
|
+
});
|
|
54804
|
+
})
|
|
54805
|
+
);
|
|
54806
|
+
var UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z116.enum(
|
|
54807
|
+
UpdatePlanDimensionsToLicenseResponseEnum1
|
|
54808
|
+
);
|
|
54809
|
+
var UpdatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
|
|
54810
|
+
number2(),
|
|
54811
|
+
UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
|
|
54812
|
+
]);
|
|
54813
|
+
var UpdatePlanDimensionsLicenseTierResponse1$inboundSchema = z116.pipe(
|
|
54814
|
+
z116.object({
|
|
54815
|
+
to: smartUnion([
|
|
54816
|
+
number2(),
|
|
54817
|
+
UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
|
|
54818
|
+
]),
|
|
54819
|
+
credit_cost: number2()
|
|
54820
|
+
}),
|
|
54821
|
+
z116.transform((v) => {
|
|
54822
|
+
return remap(v, {
|
|
54823
|
+
"credit_cost": "creditCost"
|
|
54824
|
+
});
|
|
54825
|
+
})
|
|
54826
|
+
);
|
|
54827
|
+
var UpdatePlanDimensionsLicenseResponse1$inboundSchema = z116.pipe(
|
|
54828
|
+
z116.object({
|
|
54829
|
+
match: z116.record(z116.string(), string5()),
|
|
54830
|
+
priority: optional3(number2()),
|
|
54831
|
+
tier_behavior: literal3("graduated"),
|
|
54832
|
+
tiers: z116.array(
|
|
54833
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseTierResponse1$inboundSchema)
|
|
54834
|
+
)
|
|
54835
|
+
}),
|
|
54836
|
+
z116.transform((v) => {
|
|
54837
|
+
return remap(v, {
|
|
54838
|
+
"tier_behavior": "tierBehavior"
|
|
54839
|
+
});
|
|
54840
|
+
})
|
|
54841
|
+
);
|
|
54842
|
+
var UpdatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
|
|
54843
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
|
|
54844
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
|
|
54845
|
+
]);
|
|
54846
|
+
var UpdatePlanLicenseMultipliersResponse1$inboundSchema = z116.object({
|
|
54847
|
+
match: z116.record(z116.string(), string5()),
|
|
54848
|
+
factor: optional3(number2()),
|
|
54849
|
+
add: optional3(number2())
|
|
54850
|
+
});
|
|
54851
|
+
var UpdatePlanToLicenseResponseEnum$inboundSchema = z116.enum(UpdatePlanToLicenseResponseEnum);
|
|
54852
|
+
var UpdatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), UpdatePlanToLicenseResponseEnum$inboundSchema]);
|
|
54853
|
+
var UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z116.pipe(
|
|
54854
|
+
z116.object({
|
|
54855
|
+
to: smartUnion([
|
|
54856
|
+
number2(),
|
|
54857
|
+
UpdatePlanToLicenseResponseEnum$inboundSchema
|
|
54858
|
+
]),
|
|
54859
|
+
credit_cost: number2()
|
|
54860
|
+
}),
|
|
54861
|
+
z116.transform((v) => {
|
|
54862
|
+
return remap(v, {
|
|
54863
|
+
"credit_cost": "creditCost"
|
|
54864
|
+
});
|
|
54865
|
+
})
|
|
54866
|
+
);
|
|
54867
|
+
var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z116.pipe(
|
|
54868
|
+
z116.object({
|
|
54869
|
+
metered_feature_id: string5(),
|
|
54870
|
+
billing_units: optional3(number2()),
|
|
54871
|
+
dimensions: optional3(z116.record(
|
|
54872
|
+
z116.string(),
|
|
54873
|
+
smartUnion([
|
|
54874
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
|
|
54875
|
+
z116.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
|
|
54876
|
+
])
|
|
54877
|
+
)),
|
|
54878
|
+
multipliers: optional3(z116.record(
|
|
54879
|
+
z116.string(),
|
|
54880
|
+
z116.lazy(() => UpdatePlanLicenseMultipliersResponse1$inboundSchema)
|
|
54881
|
+
)),
|
|
54882
|
+
tier_behavior: literal3("graduated"),
|
|
54883
|
+
tiers: z116.array(z116.lazy(
|
|
54884
|
+
() => UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema
|
|
54885
|
+
))
|
|
54886
|
+
}),
|
|
54887
|
+
z116.transform((v) => {
|
|
54888
|
+
return remap(v, {
|
|
54889
|
+
"metered_feature_id": "meteredFeatureId",
|
|
54890
|
+
"billing_units": "billingUnits",
|
|
54891
|
+
"tier_behavior": "tierBehavior"
|
|
54892
|
+
});
|
|
54893
|
+
})
|
|
54894
|
+
);
|
|
54895
|
+
var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
|
|
54896
|
+
z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
54897
|
+
z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
|
|
54898
|
+
]);
|
|
54899
|
+
var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z116.object({
|
|
54900
|
+
markup: number2()
|
|
54901
|
+
});
|
|
54902
|
+
var UpdatePlanLicenseModelMarkupsResponse$inboundSchema = z116.pipe(
|
|
54903
|
+
z116.object({
|
|
54904
|
+
markup: optional3(number2()),
|
|
54905
|
+
input_cost: optional3(number2()),
|
|
54906
|
+
output_cost: optional3(number2())
|
|
54907
|
+
}),
|
|
54908
|
+
z116.transform((v) => {
|
|
54909
|
+
return remap(v, {
|
|
54910
|
+
"input_cost": "inputCost",
|
|
54911
|
+
"output_cost": "outputCost"
|
|
54912
|
+
});
|
|
54913
|
+
})
|
|
54914
|
+
);
|
|
54915
|
+
var UpdatePlanLicenseMarkupsResponse$inboundSchema = z116.pipe(
|
|
54916
|
+
z116.object({
|
|
54917
|
+
default_markup: optional3(number2()),
|
|
54918
|
+
provider_markups: z116.optional(z116.nullable(z116.record(
|
|
54919
|
+
z116.string(),
|
|
54920
|
+
z116.lazy(() => UpdatePlanLicenseProviderMarkupsResponse$inboundSchema)
|
|
54921
|
+
))),
|
|
54922
|
+
model_markups: z116.optional(z116.nullable(z116.record(
|
|
54923
|
+
z116.string(),
|
|
54924
|
+
z116.lazy(() => UpdatePlanLicenseModelMarkupsResponse$inboundSchema)
|
|
54925
|
+
)))
|
|
54926
|
+
}),
|
|
54927
|
+
z116.transform((v) => {
|
|
54928
|
+
return remap(v, {
|
|
54929
|
+
"default_markup": "defaultMarkup",
|
|
54930
|
+
"provider_markups": "providerMarkups",
|
|
54931
|
+
"model_markups": "modelMarkups"
|
|
54932
|
+
});
|
|
54933
|
+
})
|
|
54934
|
+
);
|
|
54935
|
+
var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
|
|
54936
|
+
z116.object({
|
|
54937
|
+
credit_schema: optional3(z116.array(smartUnion([
|
|
54938
|
+
z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
|
|
54939
|
+
z116.lazy(
|
|
54940
|
+
() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
|
|
54941
|
+
)
|
|
54942
|
+
]))),
|
|
54943
|
+
markups: optional3(z116.lazy(
|
|
54944
|
+
() => UpdatePlanLicenseMarkupsResponse$inboundSchema
|
|
54945
|
+
))
|
|
54946
|
+
}),
|
|
54947
|
+
z116.transform((v) => {
|
|
54948
|
+
return remap(v, {
|
|
54949
|
+
"credit_schema": "creditSchema"
|
|
54950
|
+
});
|
|
54951
|
+
})
|
|
54952
|
+
);
|
|
54953
|
+
var UpdatePlanLicensePlanItemResponse$inboundSchema = z116.pipe(
|
|
54954
|
+
z116.object({
|
|
54955
|
+
threshold_billing: z116.optional(z116.nullable(z116.lazy(
|
|
54956
|
+
() => UpdatePlanLicenseThresholdBillingResponse$inboundSchema
|
|
54957
|
+
))),
|
|
54958
|
+
feature_id: string5(),
|
|
54959
|
+
included: optional3(number2()),
|
|
54960
|
+
unlimited: optional3(boolean2()),
|
|
54961
|
+
pooled: z116._default(boolean2(), false),
|
|
54962
|
+
reset: optional3(z116.lazy(
|
|
54963
|
+
() => UpdatePlanLicenseResetResponse$inboundSchema
|
|
54964
|
+
)),
|
|
54965
|
+
price: optional3(z116.lazy(
|
|
54966
|
+
() => UpdatePlanLicensePriceResponse$inboundSchema
|
|
54967
|
+
)),
|
|
54968
|
+
proration: optional3(z116.lazy(
|
|
54969
|
+
() => UpdatePlanLicenseProrationResponse$inboundSchema
|
|
54970
|
+
)),
|
|
54971
|
+
rollover: optional3(z116.lazy(
|
|
54972
|
+
() => UpdatePlanLicenseRolloverResponse$inboundSchema
|
|
54973
|
+
)),
|
|
54974
|
+
expiry: optional3(z116.lazy(
|
|
54975
|
+
() => UpdatePlanLicenseExpiryResponse$inboundSchema
|
|
54976
|
+
)),
|
|
54977
|
+
feature_override: optional3(z116.lazy(
|
|
54978
|
+
() => UpdatePlanLicenseFeatureOverrideResponse$inboundSchema
|
|
54979
|
+
))
|
|
54980
|
+
}),
|
|
54981
|
+
z116.transform((v) => {
|
|
54982
|
+
return remap(v, {
|
|
54983
|
+
"threshold_billing": "thresholdBilling",
|
|
54984
|
+
"feature_id": "featureId",
|
|
54985
|
+
"feature_override": "featureOverride"
|
|
54986
|
+
});
|
|
54987
|
+
})
|
|
54988
|
+
);
|
|
54989
|
+
var UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseRemoveItemBillingMethodResponse);
|
|
54990
|
+
var UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum2);
|
|
54991
|
+
var UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum1);
|
|
54992
|
+
var UpdatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
|
|
54993
|
+
UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
|
|
54994
|
+
UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
|
|
54995
|
+
]);
|
|
54996
|
+
var UpdatePlanLicensePlanItemFilterResponse$inboundSchema = z116.pipe(
|
|
54997
|
+
z116.object({
|
|
54998
|
+
feature_id: optional3(string5()),
|
|
54999
|
+
billing_method: optional3(
|
|
55000
|
+
UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
|
|
55001
|
+
),
|
|
55002
|
+
interval: optional3(
|
|
55003
|
+
smartUnion([
|
|
55004
|
+
UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
|
|
55005
|
+
UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
|
|
55006
|
+
])
|
|
55007
|
+
),
|
|
55008
|
+
interval_count: optional3(number2()),
|
|
55009
|
+
included: optional3(number2())
|
|
55010
|
+
}),
|
|
55011
|
+
z116.transform((v) => {
|
|
55012
|
+
return remap(v, {
|
|
55013
|
+
"feature_id": "featureId",
|
|
55014
|
+
"billing_method": "billingMethod",
|
|
55015
|
+
"interval_count": "intervalCount"
|
|
55016
|
+
});
|
|
55017
|
+
})
|
|
55018
|
+
);
|
|
55019
|
+
var UpdatePlanLicenseCustomizeResponse$inboundSchema = z116.pipe(
|
|
55020
|
+
z116.object({
|
|
55021
|
+
price: z116.optional(
|
|
55022
|
+
z116.nullable(
|
|
55023
|
+
z116.lazy(() => UpdatePlanLicenseBasePriceResponse$inboundSchema)
|
|
55024
|
+
)
|
|
55025
|
+
),
|
|
55026
|
+
add_items: optional3(
|
|
55027
|
+
z116.array(z116.lazy(() => UpdatePlanLicensePlanItemResponse$inboundSchema))
|
|
55028
|
+
),
|
|
55029
|
+
remove_items: optional3(
|
|
55030
|
+
z116.array(
|
|
55031
|
+
z116.lazy(() => UpdatePlanLicensePlanItemFilterResponse$inboundSchema)
|
|
55032
|
+
)
|
|
55033
|
+
)
|
|
55034
|
+
}),
|
|
55035
|
+
z116.transform((v) => {
|
|
55036
|
+
return remap(v, {
|
|
55037
|
+
"add_items": "addItems",
|
|
55038
|
+
"remove_items": "removeItems"
|
|
55039
|
+
});
|
|
55040
|
+
})
|
|
55041
|
+
);
|
|
55042
|
+
var UpdatePlanLicenseResponse$inboundSchema = z116.pipe(
|
|
55043
|
+
z116.object({
|
|
55044
|
+
license_plan_id: string5(),
|
|
55045
|
+
version: number2(),
|
|
55046
|
+
version_slug: optional3(string5()),
|
|
55047
|
+
included: number2(),
|
|
55048
|
+
prepaid_only: boolean2(),
|
|
55049
|
+
customize: optional3(
|
|
55050
|
+
z116.lazy(() => UpdatePlanLicenseCustomizeResponse$inboundSchema)
|
|
55051
|
+
),
|
|
55052
|
+
metadata: optional3(z116.record(z116.string(), z116.any())),
|
|
55053
|
+
plan: optional3(Plan$inboundSchema)
|
|
55054
|
+
}),
|
|
55055
|
+
z116.transform((v) => {
|
|
55056
|
+
return remap(v, {
|
|
55057
|
+
"license_plan_id": "licensePlanId",
|
|
55058
|
+
"version_slug": "versionSlug",
|
|
55059
|
+
"prepaid_only": "prepaidOnly"
|
|
55060
|
+
});
|
|
55061
|
+
})
|
|
55062
|
+
);
|
|
53259
55063
|
var UpdatePlanResponse$inboundSchema = z116.pipe(
|
|
53260
55064
|
z116.object({
|
|
53261
55065
|
id: string5(),
|
|
@@ -53285,6 +55089,9 @@ var UpdatePlanResponse$inboundSchema = z116.pipe(
|
|
|
53285
55089
|
base_variant_id: nullable(string5()),
|
|
53286
55090
|
variant_details: optional3(
|
|
53287
55091
|
z116.lazy(() => UpdatePlanVariantDetails$inboundSchema)
|
|
55092
|
+
),
|
|
55093
|
+
licenses: optional3(
|
|
55094
|
+
z116.array(z116.lazy(() => UpdatePlanLicenseResponse$inboundSchema))
|
|
53288
55095
|
)
|
|
53289
55096
|
}),
|
|
53290
55097
|
z116.transform((v) => {
|
|
@@ -54439,7 +56246,10 @@ var APIPromise = class {
|
|
|
54439
56246
|
[Symbol.toStringTag] = "APIPromise";
|
|
54440
56247
|
constructor(p) {
|
|
54441
56248
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
54442
|
-
this.#unwrapped = p instanceof Promise ?
|
|
56249
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
56250
|
+
}
|
|
56251
|
+
#getUnwrapped() {
|
|
56252
|
+
return this.#unwrapped ??= this.#promise.then(([value]) => value);
|
|
54443
56253
|
}
|
|
54444
56254
|
then(onfulfilled, onrejected) {
|
|
54445
56255
|
return this.#promise.then(
|
|
@@ -54448,10 +56258,10 @@ var APIPromise = class {
|
|
|
54448
56258
|
);
|
|
54449
56259
|
}
|
|
54450
56260
|
catch(onrejected) {
|
|
54451
|
-
return this.#
|
|
56261
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
54452
56262
|
}
|
|
54453
56263
|
finally(onfinally) {
|
|
54454
|
-
return this.#
|
|
56264
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
54455
56265
|
}
|
|
54456
56266
|
$inspect() {
|
|
54457
56267
|
return this.#promise;
|