autumn-js 1.3.48 → 1.3.49
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 +214 -17
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +214 -17
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +214 -17
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +214 -17
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +214 -17
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-JJEEJKM7.mjs → chunk-5CDM4XIN.mjs} +4 -4
- package/dist/backend/{chunk-5D6J5UMK.mjs → chunk-5DMQUWII.mjs} +1 -1
- package/dist/backend/{chunk-3T6FAZDO.mjs → chunk-BZ54HK66.mjs} +1 -1
- package/dist/backend/{chunk-RVOZXEI3.mjs → chunk-HLYVCB6M.mjs} +1 -1
- package/dist/backend/{chunk-KSYN5FLV.mjs → chunk-JPQERXWV.mjs} +214 -17
- package/dist/backend/{chunk-GBISDPPO.mjs → chunk-SS7EKOGZ.mjs} +6 -6
- package/dist/backend/{chunk-WXLAGRC4.mjs → chunk-ZJSWDKBL.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 +214 -17
- 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 +214 -17
- 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 +214 -17
- 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 +214 -17
- 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 +214 -17
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-DAI_E67X.d.mts → routeTypes-Czot4Qi-.d.mts} +232 -2
- package/dist/backend/{routeTypes-4TatmvQY.d.ts → routeTypes-D4pVj85I.d.ts} +232 -2
- package/dist/better-auth/{chunk-R7IEJQOY.mjs → chunk-57PPCUDF.mjs} +214 -17
- package/dist/better-auth/index.js +214 -17
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +214 -17
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +214 -17
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -4
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-DfpvnPRk.d.mts → customer-CZn6Nd7a.d.mts} +47 -1
- package/dist/react/{customer-B0KAd7eZ.d.ts → customer-Dt0OdihJ.d.ts} +47 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListPlans.d.mts +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/{list-plans-response-6iUDTnPQ.d.ts → list-plans-response-Bx4e7rvw.d.ts} +1 -1
- package/dist/react/{list-plans-response-BzsqJlxN.d.mts → list-plans-response-ibIt0k4N.d.mts} +1 -1
- package/dist/react/{params-CMcoADwO.d.ts → params-BGpmxI8B.d.mts} +1 -1
- package/dist/react/{params-vAoGWtk9.d.mts → params-C7_vr_BA.d.ts} +1 -1
- package/dist/react/{plan-Ct5TGTnS.d.mts → plan-CvxFKlF7.d.mts} +2 -2
- package/dist/react/{plan-Ct5TGTnS.d.ts → plan-CvxFKlF7.d.ts} +2 -2
- package/dist/sdk/index.d.mts +287 -5
- package/dist/sdk/index.d.ts +287 -5
- package/dist/sdk/index.js +317 -22
- package/dist/sdk/index.mjs +286 -21
- package/package.json +2 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -4056,7 +4056,7 @@ var BalancePrice$inboundSchema = z15.pipe(
|
|
|
4056
4056
|
})
|
|
4057
4057
|
);
|
|
4058
4058
|
var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
|
|
4059
|
-
var
|
|
4059
|
+
var BalanceAllocation$inboundSchema = z15.object({
|
|
4060
4060
|
amount: number2()
|
|
4061
4061
|
});
|
|
4062
4062
|
var Breakdown$inboundSchema = z15.pipe(
|
|
@@ -4073,7 +4073,7 @@ var Breakdown$inboundSchema = z15.pipe(
|
|
|
4073
4073
|
expires_at: nullable(number2()),
|
|
4074
4074
|
source: optional3(BalanceSource$inboundSchema),
|
|
4075
4075
|
allocation: z15.optional(
|
|
4076
|
-
z15.nullable(z15.lazy(() =>
|
|
4076
|
+
z15.nullable(z15.lazy(() => BalanceAllocation$inboundSchema))
|
|
4077
4077
|
)
|
|
4078
4078
|
}),
|
|
4079
4079
|
z15.transform((v) => {
|
|
@@ -21158,6 +21158,17 @@ var CustomerEnv = {
|
|
|
21158
21158
|
Sandbox: "sandbox",
|
|
21159
21159
|
Live: "live"
|
|
21160
21160
|
};
|
|
21161
|
+
var CustomerBalanceAllocationInterval = {
|
|
21162
|
+
OneOff: "one_off",
|
|
21163
|
+
Minute: "minute",
|
|
21164
|
+
Hour: "hour",
|
|
21165
|
+
Day: "day",
|
|
21166
|
+
Week: "week",
|
|
21167
|
+
Month: "month",
|
|
21168
|
+
Quarter: "quarter",
|
|
21169
|
+
SemiAnnual: "semi_annual",
|
|
21170
|
+
Year: "year"
|
|
21171
|
+
};
|
|
21161
21172
|
var CustomerAutoTopupInterval2 = {
|
|
21162
21173
|
Hour: "hour",
|
|
21163
21174
|
Day: "day",
|
|
@@ -21272,6 +21283,30 @@ var TaxExempt = {
|
|
|
21272
21283
|
Reverse: "reverse"
|
|
21273
21284
|
};
|
|
21274
21285
|
var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
21286
|
+
var CustomerBalanceAllocationInterval$inboundSchema = inboundSchema(CustomerBalanceAllocationInterval);
|
|
21287
|
+
var CustomerAllocation$inboundSchema = z39.pipe(
|
|
21288
|
+
z39.object({
|
|
21289
|
+
entity_id: string5(),
|
|
21290
|
+
amount: number2()
|
|
21291
|
+
}),
|
|
21292
|
+
z39.transform((v) => {
|
|
21293
|
+
return remap(v, {
|
|
21294
|
+
"entity_id": "entityId"
|
|
21295
|
+
});
|
|
21296
|
+
})
|
|
21297
|
+
);
|
|
21298
|
+
var CustomerBalanceAllocation$inboundSchema = z39.pipe(
|
|
21299
|
+
z39.object({
|
|
21300
|
+
feature_id: string5(),
|
|
21301
|
+
interval: CustomerBalanceAllocationInterval$inboundSchema,
|
|
21302
|
+
allocations: z39.array(z39.lazy(() => CustomerAllocation$inboundSchema))
|
|
21303
|
+
}),
|
|
21304
|
+
z39.transform((v) => {
|
|
21305
|
+
return remap(v, {
|
|
21306
|
+
"feature_id": "featureId"
|
|
21307
|
+
});
|
|
21308
|
+
})
|
|
21309
|
+
);
|
|
21275
21310
|
var CustomerAutoTopupInterval2$inboundSchema = inboundSchema(CustomerAutoTopupInterval2);
|
|
21276
21311
|
var CustomerPurchaseLimit2$inboundSchema = z39.pipe(
|
|
21277
21312
|
z39.object({
|
|
@@ -21413,6 +21448,9 @@ var CustomerOverageAllowed$inboundSchema = z39.pipe(
|
|
|
21413
21448
|
);
|
|
21414
21449
|
var CustomerBillingControls$inboundSchema = z39.pipe(
|
|
21415
21450
|
z39.object({
|
|
21451
|
+
balance_allocations: optional3(
|
|
21452
|
+
z39.array(z39.lazy(() => CustomerBalanceAllocation$inboundSchema))
|
|
21453
|
+
),
|
|
21416
21454
|
auto_topups: optional3(
|
|
21417
21455
|
z39.array(z39.lazy(() => CustomerAutoTopup$inboundSchema))
|
|
21418
21456
|
),
|
|
@@ -21431,6 +21469,7 @@ var CustomerBillingControls$inboundSchema = z39.pipe(
|
|
|
21431
21469
|
}),
|
|
21432
21470
|
z39.transform((v) => {
|
|
21433
21471
|
return remap(v, {
|
|
21472
|
+
"balance_allocations": "balanceAllocations",
|
|
21434
21473
|
"auto_topups": "autoTopups",
|
|
21435
21474
|
"spend_limits": "spendLimits",
|
|
21436
21475
|
"usage_limits": "usageLimits",
|
|
@@ -22443,6 +22482,17 @@ var GetCustomerEnv = {
|
|
|
22443
22482
|
Sandbox: "sandbox",
|
|
22444
22483
|
Live: "live"
|
|
22445
22484
|
};
|
|
22485
|
+
var GetCustomerBalanceAllocationInterval = {
|
|
22486
|
+
OneOff: "one_off",
|
|
22487
|
+
Minute: "minute",
|
|
22488
|
+
Hour: "hour",
|
|
22489
|
+
Day: "day",
|
|
22490
|
+
Week: "week",
|
|
22491
|
+
Month: "month",
|
|
22492
|
+
Quarter: "quarter",
|
|
22493
|
+
SemiAnnual: "semi_annual",
|
|
22494
|
+
Year: "year"
|
|
22495
|
+
};
|
|
22446
22496
|
var GetCustomerAutoTopupInterval2 = {
|
|
22447
22497
|
Hour: "hour",
|
|
22448
22498
|
Day: "day",
|
|
@@ -22568,6 +22618,30 @@ var GetCustomerParams$outboundSchema = z52.pipe(
|
|
|
22568
22618
|
})
|
|
22569
22619
|
);
|
|
22570
22620
|
var GetCustomerEnv$inboundSchema = inboundSchema(GetCustomerEnv);
|
|
22621
|
+
var GetCustomerBalanceAllocationInterval$inboundSchema = inboundSchema(GetCustomerBalanceAllocationInterval);
|
|
22622
|
+
var GetCustomerAllocation$inboundSchema = z52.pipe(
|
|
22623
|
+
z52.object({
|
|
22624
|
+
entity_id: string5(),
|
|
22625
|
+
amount: number2()
|
|
22626
|
+
}),
|
|
22627
|
+
z52.transform((v) => {
|
|
22628
|
+
return remap(v, {
|
|
22629
|
+
"entity_id": "entityId"
|
|
22630
|
+
});
|
|
22631
|
+
})
|
|
22632
|
+
);
|
|
22633
|
+
var GetCustomerBalanceAllocation$inboundSchema = z52.pipe(
|
|
22634
|
+
z52.object({
|
|
22635
|
+
feature_id: string5(),
|
|
22636
|
+
interval: GetCustomerBalanceAllocationInterval$inboundSchema,
|
|
22637
|
+
allocations: z52.array(z52.lazy(() => GetCustomerAllocation$inboundSchema))
|
|
22638
|
+
}),
|
|
22639
|
+
z52.transform((v) => {
|
|
22640
|
+
return remap(v, {
|
|
22641
|
+
"feature_id": "featureId"
|
|
22642
|
+
});
|
|
22643
|
+
})
|
|
22644
|
+
);
|
|
22571
22645
|
var GetCustomerAutoTopupInterval2$inboundSchema = inboundSchema(GetCustomerAutoTopupInterval2);
|
|
22572
22646
|
var GetCustomerPurchaseLimit2$inboundSchema = z52.pipe(
|
|
22573
22647
|
z52.object({
|
|
@@ -22709,6 +22783,9 @@ var GetCustomerOverageAllowed$inboundSchema = z52.pipe(
|
|
|
22709
22783
|
);
|
|
22710
22784
|
var GetCustomerBillingControls$inboundSchema = z52.pipe(
|
|
22711
22785
|
z52.object({
|
|
22786
|
+
balance_allocations: optional3(
|
|
22787
|
+
z52.array(z52.lazy(() => GetCustomerBalanceAllocation$inboundSchema))
|
|
22788
|
+
),
|
|
22712
22789
|
auto_topups: optional3(
|
|
22713
22790
|
z52.array(z52.lazy(() => GetCustomerAutoTopup$inboundSchema))
|
|
22714
22791
|
),
|
|
@@ -22727,6 +22804,7 @@ var GetCustomerBillingControls$inboundSchema = z52.pipe(
|
|
|
22727
22804
|
}),
|
|
22728
22805
|
z52.transform((v) => {
|
|
22729
22806
|
return remap(v, {
|
|
22807
|
+
"balance_allocations": "balanceAllocations",
|
|
22730
22808
|
"auto_topups": "autoTopups",
|
|
22731
22809
|
"spend_limits": "spendLimits",
|
|
22732
22810
|
"usage_limits": "usageLimits",
|
|
@@ -28344,6 +28422,17 @@ var ListCustomersEnv = {
|
|
|
28344
28422
|
Sandbox: "sandbox",
|
|
28345
28423
|
Live: "live"
|
|
28346
28424
|
};
|
|
28425
|
+
var ListCustomersBalanceAllocationInterval = {
|
|
28426
|
+
OneOff: "one_off",
|
|
28427
|
+
Minute: "minute",
|
|
28428
|
+
Hour: "hour",
|
|
28429
|
+
Day: "day",
|
|
28430
|
+
Week: "week",
|
|
28431
|
+
Month: "month",
|
|
28432
|
+
Quarter: "quarter",
|
|
28433
|
+
SemiAnnual: "semi_annual",
|
|
28434
|
+
Year: "year"
|
|
28435
|
+
};
|
|
28347
28436
|
var ListCustomersAutoTopupInterval2 = {
|
|
28348
28437
|
Hour: "hour",
|
|
28349
28438
|
Day: "day",
|
|
@@ -28468,6 +28557,30 @@ var ListCustomersParams$outboundSchema = z67.pipe(
|
|
|
28468
28557
|
})
|
|
28469
28558
|
);
|
|
28470
28559
|
var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
28560
|
+
var ListCustomersBalanceAllocationInterval$inboundSchema = inboundSchema(ListCustomersBalanceAllocationInterval);
|
|
28561
|
+
var ListCustomersAllocation$inboundSchema = z67.pipe(
|
|
28562
|
+
z67.object({
|
|
28563
|
+
entity_id: string5(),
|
|
28564
|
+
amount: number2()
|
|
28565
|
+
}),
|
|
28566
|
+
z67.transform((v) => {
|
|
28567
|
+
return remap(v, {
|
|
28568
|
+
"entity_id": "entityId"
|
|
28569
|
+
});
|
|
28570
|
+
})
|
|
28571
|
+
);
|
|
28572
|
+
var ListCustomersBalanceAllocation$inboundSchema = z67.pipe(
|
|
28573
|
+
z67.object({
|
|
28574
|
+
feature_id: string5(),
|
|
28575
|
+
interval: ListCustomersBalanceAllocationInterval$inboundSchema,
|
|
28576
|
+
allocations: z67.array(z67.lazy(() => ListCustomersAllocation$inboundSchema))
|
|
28577
|
+
}),
|
|
28578
|
+
z67.transform((v) => {
|
|
28579
|
+
return remap(v, {
|
|
28580
|
+
"feature_id": "featureId"
|
|
28581
|
+
});
|
|
28582
|
+
})
|
|
28583
|
+
);
|
|
28471
28584
|
var ListCustomersAutoTopupInterval2$inboundSchema = inboundSchema(ListCustomersAutoTopupInterval2);
|
|
28472
28585
|
var ListCustomersPurchaseLimit2$inboundSchema = z67.pipe(
|
|
28473
28586
|
z67.object({
|
|
@@ -28609,6 +28722,9 @@ var ListCustomersOverageAllowed$inboundSchema = z67.pipe(
|
|
|
28609
28722
|
);
|
|
28610
28723
|
var ListCustomersBillingControls$inboundSchema = z67.pipe(
|
|
28611
28724
|
z67.object({
|
|
28725
|
+
balance_allocations: optional3(
|
|
28726
|
+
z67.array(z67.lazy(() => ListCustomersBalanceAllocation$inboundSchema))
|
|
28727
|
+
),
|
|
28612
28728
|
auto_topups: optional3(
|
|
28613
28729
|
z67.array(z67.lazy(() => ListCustomersAutoTopup$inboundSchema))
|
|
28614
28730
|
),
|
|
@@ -28627,6 +28743,7 @@ var ListCustomersBillingControls$inboundSchema = z67.pipe(
|
|
|
28627
28743
|
}),
|
|
28628
28744
|
z67.transform((v) => {
|
|
28629
28745
|
return remap(v, {
|
|
28746
|
+
"balance_allocations": "balanceAllocations",
|
|
28630
28747
|
"auto_topups": "autoTopups",
|
|
28631
28748
|
"spend_limits": "spendLimits",
|
|
28632
28749
|
"usage_limits": "usageLimits",
|
|
@@ -46784,6 +46901,17 @@ var UpdateBalanceResponse$inboundSchema = z109.object({
|
|
|
46784
46901
|
|
|
46785
46902
|
// ../sdk/src/models/update-customer-op.ts
|
|
46786
46903
|
var z110 = __toESM(require("zod/v4-mini"), 1);
|
|
46904
|
+
var BalanceAllocationIntervalRequestBody = {
|
|
46905
|
+
OneOff: "one_off",
|
|
46906
|
+
Minute: "minute",
|
|
46907
|
+
Hour: "hour",
|
|
46908
|
+
Day: "day",
|
|
46909
|
+
Week: "week",
|
|
46910
|
+
Month: "month",
|
|
46911
|
+
Quarter: "quarter",
|
|
46912
|
+
SemiAnnual: "semi_annual",
|
|
46913
|
+
Year: "year"
|
|
46914
|
+
};
|
|
46787
46915
|
var UpdateCustomerAutoTopupIntervalRequestBody = {
|
|
46788
46916
|
Hour: "hour",
|
|
46789
46917
|
Day: "day",
|
|
@@ -46833,6 +46961,17 @@ var UpdateCustomerEnv = {
|
|
|
46833
46961
|
Sandbox: "sandbox",
|
|
46834
46962
|
Live: "live"
|
|
46835
46963
|
};
|
|
46964
|
+
var UpdateCustomerBalanceAllocationIntervalResponse = {
|
|
46965
|
+
OneOff: "one_off",
|
|
46966
|
+
Minute: "minute",
|
|
46967
|
+
Hour: "hour",
|
|
46968
|
+
Day: "day",
|
|
46969
|
+
Week: "week",
|
|
46970
|
+
Month: "month",
|
|
46971
|
+
Quarter: "quarter",
|
|
46972
|
+
SemiAnnual: "semi_annual",
|
|
46973
|
+
Year: "year"
|
|
46974
|
+
};
|
|
46836
46975
|
var UpdateCustomerAutoTopupIntervalResponse2 = {
|
|
46837
46976
|
Hour: "hour",
|
|
46838
46977
|
Day: "day",
|
|
@@ -46921,6 +47060,30 @@ var UpdateCustomerDimensionsToEnum1 = {
|
|
|
46921
47060
|
var UpdateCustomerToEnum = {
|
|
46922
47061
|
Inf: "inf"
|
|
46923
47062
|
};
|
|
47063
|
+
var BalanceAllocationIntervalRequestBody$outboundSchema = z110.enum(BalanceAllocationIntervalRequestBody);
|
|
47064
|
+
var AllocationRequest$outboundSchema = z110.pipe(
|
|
47065
|
+
z110.object({
|
|
47066
|
+
entityId: z110.string(),
|
|
47067
|
+
amount: z110.number()
|
|
47068
|
+
}),
|
|
47069
|
+
z110.transform((v) => {
|
|
47070
|
+
return remap(v, {
|
|
47071
|
+
entityId: "entity_id"
|
|
47072
|
+
});
|
|
47073
|
+
})
|
|
47074
|
+
);
|
|
47075
|
+
var BalanceAllocationRequest$outboundSchema = z110.pipe(
|
|
47076
|
+
z110.object({
|
|
47077
|
+
featureId: z110.string(),
|
|
47078
|
+
interval: BalanceAllocationIntervalRequestBody$outboundSchema,
|
|
47079
|
+
allocations: z110.array(z110.lazy(() => AllocationRequest$outboundSchema))
|
|
47080
|
+
}),
|
|
47081
|
+
z110.transform((v) => {
|
|
47082
|
+
return remap(v, {
|
|
47083
|
+
featureId: "feature_id"
|
|
47084
|
+
});
|
|
47085
|
+
})
|
|
47086
|
+
);
|
|
46924
47087
|
var UpdateCustomerAutoTopupIntervalRequestBody$outboundSchema = z110.enum(
|
|
46925
47088
|
UpdateCustomerAutoTopupIntervalRequestBody
|
|
46926
47089
|
);
|
|
@@ -47075,6 +47238,9 @@ var UpdateCustomerOverageAllowedRequestBody$outboundSchema = z110.pipe(
|
|
|
47075
47238
|
);
|
|
47076
47239
|
var UpdateCustomerBillingControlsRequestBody$outboundSchema = z110.pipe(
|
|
47077
47240
|
z110.object({
|
|
47241
|
+
balanceAllocations: z110.optional(
|
|
47242
|
+
z110.array(z110.lazy(() => BalanceAllocationRequest$outboundSchema))
|
|
47243
|
+
),
|
|
47078
47244
|
autoTopups: z110.optional(
|
|
47079
47245
|
z110.array(
|
|
47080
47246
|
z110.lazy(() => UpdateCustomerAutoTopupRequestBody$outboundSchema)
|
|
@@ -47106,6 +47272,7 @@ var UpdateCustomerBillingControlsRequestBody$outboundSchema = z110.pipe(
|
|
|
47106
47272
|
}),
|
|
47107
47273
|
z110.transform((v) => {
|
|
47108
47274
|
return remap(v, {
|
|
47275
|
+
balanceAllocations: "balance_allocations",
|
|
47109
47276
|
autoTopups: "auto_topups",
|
|
47110
47277
|
spendLimits: "spend_limits",
|
|
47111
47278
|
usageLimits: "usage_limits",
|
|
@@ -47230,6 +47397,32 @@ var UpdateCustomerParams$outboundSchema = z110.pipe(
|
|
|
47230
47397
|
})
|
|
47231
47398
|
);
|
|
47232
47399
|
var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
47400
|
+
var UpdateCustomerBalanceAllocationIntervalResponse$inboundSchema = inboundSchema(UpdateCustomerBalanceAllocationIntervalResponse);
|
|
47401
|
+
var UpdateCustomerAllocationResponse$inboundSchema = z110.pipe(
|
|
47402
|
+
z110.object({
|
|
47403
|
+
entity_id: string5(),
|
|
47404
|
+
amount: number2()
|
|
47405
|
+
}),
|
|
47406
|
+
z110.transform((v) => {
|
|
47407
|
+
return remap(v, {
|
|
47408
|
+
"entity_id": "entityId"
|
|
47409
|
+
});
|
|
47410
|
+
})
|
|
47411
|
+
);
|
|
47412
|
+
var UpdateCustomerBalanceAllocationResponse$inboundSchema = z110.pipe(
|
|
47413
|
+
z110.object({
|
|
47414
|
+
feature_id: string5(),
|
|
47415
|
+
interval: UpdateCustomerBalanceAllocationIntervalResponse$inboundSchema,
|
|
47416
|
+
allocations: z110.array(z110.lazy(
|
|
47417
|
+
() => UpdateCustomerAllocationResponse$inboundSchema
|
|
47418
|
+
))
|
|
47419
|
+
}),
|
|
47420
|
+
z110.transform((v) => {
|
|
47421
|
+
return remap(v, {
|
|
47422
|
+
"feature_id": "featureId"
|
|
47423
|
+
});
|
|
47424
|
+
})
|
|
47425
|
+
);
|
|
47233
47426
|
var UpdateCustomerAutoTopupIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerAutoTopupIntervalResponse2);
|
|
47234
47427
|
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z110.pipe(
|
|
47235
47428
|
z110.object({
|
|
@@ -47375,24 +47568,28 @@ var UpdateCustomerOverageAllowedResponse$inboundSchema = z110.pipe(
|
|
|
47375
47568
|
);
|
|
47376
47569
|
var UpdateCustomerBillingControlsResponse$inboundSchema = z110.pipe(
|
|
47377
47570
|
z110.object({
|
|
47378
|
-
|
|
47379
|
-
|
|
47380
|
-
),
|
|
47381
|
-
|
|
47382
|
-
|
|
47383
|
-
),
|
|
47384
|
-
|
|
47385
|
-
|
|
47386
|
-
),
|
|
47387
|
-
|
|
47388
|
-
|
|
47389
|
-
),
|
|
47390
|
-
|
|
47391
|
-
|
|
47392
|
-
)
|
|
47571
|
+
balance_allocations: optional3(z110.array(z110.lazy(
|
|
47572
|
+
() => UpdateCustomerBalanceAllocationResponse$inboundSchema
|
|
47573
|
+
))),
|
|
47574
|
+
auto_topups: optional3(z110.array(z110.lazy(
|
|
47575
|
+
() => UpdateCustomerAutoTopupResponse$inboundSchema
|
|
47576
|
+
))),
|
|
47577
|
+
spend_limits: optional3(z110.array(z110.lazy(
|
|
47578
|
+
() => UpdateCustomerSpendLimitResponse$inboundSchema
|
|
47579
|
+
))),
|
|
47580
|
+
usage_limits: optional3(z110.array(z110.lazy(
|
|
47581
|
+
() => UpdateCustomerUsageLimitResponse$inboundSchema
|
|
47582
|
+
))),
|
|
47583
|
+
usage_alerts: optional3(z110.array(z110.lazy(
|
|
47584
|
+
() => UpdateCustomerUsageAlertResponse$inboundSchema
|
|
47585
|
+
))),
|
|
47586
|
+
overage_allowed: optional3(z110.array(z110.lazy(
|
|
47587
|
+
() => UpdateCustomerOverageAllowedResponse$inboundSchema
|
|
47588
|
+
)))
|
|
47393
47589
|
}),
|
|
47394
47590
|
z110.transform((v) => {
|
|
47395
47591
|
return remap(v, {
|
|
47592
|
+
"balance_allocations": "balanceAllocations",
|
|
47396
47593
|
"auto_topups": "autoTopups",
|
|
47397
47594
|
"spend_limits": "spendLimits",
|
|
47398
47595
|
"usage_limits": "usageLimits",
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import "../../chunk-VXND2UDT.mjs";
|
|
2
2
|
import {
|
|
3
3
|
handleRouteByName
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-5CDM4XIN.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCoreHandler
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-UAR3TMWI.mjs";
|
|
10
|
-
import "../../chunk-KSYN5FLV.mjs";
|
|
11
|
-
import "../../chunk-IQQQ5P6R.mjs";
|
|
7
|
+
} from "../../chunk-SS7EKOGZ.mjs";
|
|
8
|
+
import "../../chunk-JPQERXWV.mjs";
|
|
12
9
|
import {
|
|
13
10
|
executeRoute
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
17
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
11
|
+
} from "../../chunk-MOHYGUMA.mjs";
|
|
18
12
|
import {
|
|
19
13
|
resolveIdentity
|
|
20
14
|
} from "../../chunk-TBQ27LIK.mjs";
|
|
21
15
|
import {
|
|
22
16
|
transformSdkError
|
|
23
17
|
} from "../../chunk-J44WR3QZ.mjs";
|
|
18
|
+
import "../../chunk-TSF4YCUO.mjs";
|
|
19
|
+
import "../../chunk-UAR3TMWI.mjs";
|
|
20
|
+
import "../../chunk-IQQQ5P6R.mjs";
|
|
21
|
+
import "../../chunk-OTXV5FY7.mjs";
|
|
22
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
23
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
24
24
|
import "../../chunk-N7NFYY54.mjs";
|
|
25
25
|
export {
|
|
26
26
|
createCoreHandler,
|
|
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.mjs';
|
|
|
2
2
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-TPWTIfcM.mjs';
|
|
3
3
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.mjs';
|
|
4
4
|
export { BackendErrorBody, BackendResult } from './types/responseTypes.mjs';
|
|
5
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-Czot4Qi-.mjs';
|
|
6
6
|
export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.mjs';
|
|
7
7
|
export { buildRouter } from './routes/routeBuilder.mjs';
|
|
8
8
|
export { routeConfigs } from './routes/routeConfigs.mjs';
|
|
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.js';
|
|
|
2
2
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-TPWTIfcM.js';
|
|
3
3
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.js';
|
|
4
4
|
export { BackendErrorBody, BackendResult } from './types/responseTypes.js';
|
|
5
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-D4pVj85I.js';
|
|
6
6
|
export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.js';
|
|
7
7
|
export { buildRouter } from './routes/routeBuilder.js';
|
|
8
8
|
export { routeConfigs } from './routes/routeConfigs.js';
|