@deliverart/sdk-js-subscription 2.22.0 → 2.22.1
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/index.cjs +2 -2
- package/dist/index.d.cts +25 -25
- package/dist/index.d.ts +25 -25
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -14261,14 +14261,14 @@ var subscriptionConsumptionSchema = subscriptionBaseSchema.extend({
|
|
|
14261
14261
|
credits: external_exports.coerce.number().int(),
|
|
14262
14262
|
autoRenewalExtensionCredits: external_exports.coerce.number().int().nullable(),
|
|
14263
14263
|
autoRenewalThreshold: external_exports.coerce.number().int().nullable(),
|
|
14264
|
-
|
|
14264
|
+
availableCredits: external_exports.boolean()
|
|
14265
14265
|
});
|
|
14266
14266
|
var subscriptionConsumptionDetailsSchema = subscriptionDetailsBaseSchema.extend({
|
|
14267
14267
|
type: external_exports.literal("consumption"),
|
|
14268
14268
|
credits: external_exports.coerce.number().int(),
|
|
14269
14269
|
autoRenewalExtensionCredits: external_exports.coerce.number().int().nullable(),
|
|
14270
14270
|
autoRenewalThreshold: external_exports.coerce.number().int().nullable(),
|
|
14271
|
-
|
|
14271
|
+
availableCredits: external_exports.boolean()
|
|
14272
14272
|
});
|
|
14273
14273
|
var subscriptionTimeBasedSchema = subscriptionBaseSchema.extend({
|
|
14274
14274
|
type: external_exports.literal("time_based"),
|
package/dist/index.d.cts
CHANGED
|
@@ -165,7 +165,7 @@ declare const subscriptionConsumptionSchema: z.ZodObject<{
|
|
|
165
165
|
credits: z.ZodCoercedNumber<unknown>;
|
|
166
166
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
167
167
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
168
|
-
|
|
168
|
+
availableCredits: z.ZodBoolean;
|
|
169
169
|
}, z.core.$strip>;
|
|
170
170
|
type SubscriptionConsumption = z.infer<typeof subscriptionConsumptionSchema>;
|
|
171
171
|
declare const subscriptionConsumptionDetailsSchema: z.ZodObject<{
|
|
@@ -201,7 +201,7 @@ declare const subscriptionConsumptionDetailsSchema: z.ZodObject<{
|
|
|
201
201
|
credits: z.ZodCoercedNumber<unknown>;
|
|
202
202
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
203
203
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
204
|
-
|
|
204
|
+
availableCredits: z.ZodBoolean;
|
|
205
205
|
}, z.core.$strip>;
|
|
206
206
|
type SubscriptionConsumptionDetails = z.infer<typeof subscriptionConsumptionDetailsSchema>;
|
|
207
207
|
declare const subscriptionTimeBasedSchema: z.ZodObject<{
|
|
@@ -335,7 +335,7 @@ declare const subscriptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
335
335
|
credits: z.ZodCoercedNumber<unknown>;
|
|
336
336
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
337
337
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
338
|
-
|
|
338
|
+
availableCredits: z.ZodBoolean;
|
|
339
339
|
}, z.core.$strip>, z.ZodObject<{
|
|
340
340
|
id: z.ZodString;
|
|
341
341
|
status: z.ZodEnum<{
|
|
@@ -433,7 +433,7 @@ declare const subscriptionDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
433
433
|
credits: z.ZodCoercedNumber<unknown>;
|
|
434
434
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
435
435
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
436
|
-
|
|
436
|
+
availableCredits: z.ZodBoolean;
|
|
437
437
|
}, z.core.$strip>, z.ZodObject<{
|
|
438
438
|
id: z.ZodString;
|
|
439
439
|
status: z.ZodEnum<{
|
|
@@ -1919,7 +1919,7 @@ declare const getSubscriptionsResponseSchema: z.ZodObject<{
|
|
|
1919
1919
|
credits: z.ZodCoercedNumber<unknown>;
|
|
1920
1920
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1921
1921
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1922
|
-
|
|
1922
|
+
availableCredits: z.ZodBoolean;
|
|
1923
1923
|
}, z.core.$strip>, z.ZodObject<{
|
|
1924
1924
|
id: z.ZodString;
|
|
1925
1925
|
status: z.ZodEnum<{
|
|
@@ -1995,7 +1995,7 @@ declare const getSubscriptionConsumptionListResponseSchema: z.ZodObject<{
|
|
|
1995
1995
|
credits: z.ZodCoercedNumber<unknown>;
|
|
1996
1996
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1997
1997
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1998
|
-
|
|
1998
|
+
availableCredits: z.ZodBoolean;
|
|
1999
1999
|
}, z.core.$strip>>;
|
|
2000
2000
|
pagination: z.ZodObject<{
|
|
2001
2001
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3171,7 +3171,7 @@ declare const createSubscriptionConsumptionResponseSchema: z.ZodObject<{
|
|
|
3171
3171
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3172
3172
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3173
3173
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3174
|
-
|
|
3174
|
+
availableCredits: z.ZodBoolean;
|
|
3175
3175
|
}, z.core.$strip>;
|
|
3176
3176
|
type CreateSubscriptionConsumptionResponse = z.infer<typeof createSubscriptionConsumptionResponseSchema>;
|
|
3177
3177
|
declare class CreateSubscriptionConsumption extends AbstractApiRequest<typeof createSubscriptionConsumptionInputSchema, typeof createSubscriptionConsumptionResponseSchema> {
|
|
@@ -3218,7 +3218,7 @@ declare class CreateSubscriptionConsumption extends AbstractApiRequest<typeof cr
|
|
|
3218
3218
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3219
3219
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3220
3220
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3221
|
-
|
|
3221
|
+
availableCredits: z.ZodBoolean;
|
|
3222
3222
|
}, z.core.$strip>;
|
|
3223
3223
|
readonly querySchema: undefined;
|
|
3224
3224
|
readonly headersSchema: undefined;
|
|
@@ -3276,7 +3276,7 @@ declare const getSubscriptionConsumptionDetailsResponseSchema: z.ZodObject<{
|
|
|
3276
3276
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3277
3277
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3278
3278
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3279
|
-
|
|
3279
|
+
availableCredits: z.ZodBoolean;
|
|
3280
3280
|
}, z.core.$strip>;
|
|
3281
3281
|
type GetSubscriptionConsumptionDetailsResponse = z.infer<typeof getSubscriptionConsumptionDetailsResponseSchema>;
|
|
3282
3282
|
declare class GetSubscriptionConsumptionDetails extends AbstractApiRequest<typeof getSubscriptionConsumptionDetailsInputSchema, typeof getSubscriptionConsumptionDetailsResponseSchema> {
|
|
@@ -3317,7 +3317,7 @@ declare class GetSubscriptionConsumptionDetails extends AbstractApiRequest<typeo
|
|
|
3317
3317
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3318
3318
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3319
3319
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3320
|
-
|
|
3320
|
+
availableCredits: z.ZodBoolean;
|
|
3321
3321
|
}, z.core.$strip>;
|
|
3322
3322
|
readonly querySchema: undefined;
|
|
3323
3323
|
readonly headersSchema: undefined;
|
|
@@ -3368,7 +3368,7 @@ declare class GetSubscriptionConsumptionList extends AbstractApiRequest<typeof g
|
|
|
3368
3368
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3369
3369
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3370
3370
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3371
|
-
|
|
3371
|
+
availableCredits: z.ZodBoolean;
|
|
3372
3372
|
}, z.core.$strip>>;
|
|
3373
3373
|
pagination: z.ZodObject<{
|
|
3374
3374
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3473,7 +3473,7 @@ declare class GetSubscriptionConsumptionList extends AbstractApiRequest<typeof g
|
|
|
3473
3473
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3474
3474
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3475
3475
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3476
|
-
|
|
3476
|
+
availableCredits: z.ZodBoolean;
|
|
3477
3477
|
}, z.core.$strip>;
|
|
3478
3478
|
readonly paginationDefaultEnabled = true;
|
|
3479
3479
|
constructor(options?: {
|
|
@@ -3522,7 +3522,7 @@ declare const updateSubscriptionConsumptionResponseSchema: z.ZodObject<{
|
|
|
3522
3522
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3523
3523
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3524
3524
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3525
|
-
|
|
3525
|
+
availableCredits: z.ZodBoolean;
|
|
3526
3526
|
}, z.core.$strip>;
|
|
3527
3527
|
type UpdateSubscriptionConsumptionResponse = z.infer<typeof updateSubscriptionConsumptionResponseSchema>;
|
|
3528
3528
|
declare class UpdateSubscriptionConsumption extends AbstractApiRequest<typeof updateSubscriptionConsumptionInputSchema, typeof updateSubscriptionConsumptionResponseSchema> {
|
|
@@ -3568,7 +3568,7 @@ declare class UpdateSubscriptionConsumption extends AbstractApiRequest<typeof up
|
|
|
3568
3568
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3569
3569
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3570
3570
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3571
|
-
|
|
3571
|
+
availableCredits: z.ZodBoolean;
|
|
3572
3572
|
}, z.core.$strip>;
|
|
3573
3573
|
readonly querySchema: undefined;
|
|
3574
3574
|
readonly headersSchema: undefined;
|
|
@@ -4933,7 +4933,7 @@ declare const assignSubscriptionPlanResponseSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
4933
4933
|
credits: z.ZodCoercedNumber<unknown>;
|
|
4934
4934
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
4935
4935
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
4936
|
-
|
|
4936
|
+
availableCredits: z.ZodBoolean;
|
|
4937
4937
|
}, z.core.$strip>, z.ZodObject<{
|
|
4938
4938
|
id: z.ZodString;
|
|
4939
4939
|
status: z.ZodEnum<{
|
|
@@ -5042,7 +5042,7 @@ declare class AssignSubscriptionPlan extends AbstractApiRequest<typeof assignSub
|
|
|
5042
5042
|
credits: z.ZodCoercedNumber<unknown>;
|
|
5043
5043
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
5044
5044
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
5045
|
-
|
|
5045
|
+
availableCredits: z.ZodBoolean;
|
|
5046
5046
|
}, z.core.$strip>, z.ZodObject<{
|
|
5047
5047
|
id: z.ZodString;
|
|
5048
5048
|
status: z.ZodEnum<{
|
|
@@ -8512,7 +8512,7 @@ declare const getSubscriptionDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8512
8512
|
credits: z.ZodCoercedNumber<unknown>;
|
|
8513
8513
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8514
8514
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8515
|
-
|
|
8515
|
+
availableCredits: z.ZodBoolean;
|
|
8516
8516
|
}, z.core.$strip>, z.ZodObject<{
|
|
8517
8517
|
id: z.ZodString;
|
|
8518
8518
|
status: z.ZodEnum<{
|
|
@@ -8617,7 +8617,7 @@ declare class GetSubscriptionDetails extends AbstractApiRequest<typeof getSubscr
|
|
|
8617
8617
|
credits: z.ZodCoercedNumber<unknown>;
|
|
8618
8618
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8619
8619
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8620
|
-
|
|
8620
|
+
availableCredits: z.ZodBoolean;
|
|
8621
8621
|
}, z.core.$strip>, z.ZodObject<{
|
|
8622
8622
|
id: z.ZodString;
|
|
8623
8623
|
status: z.ZodEnum<{
|
|
@@ -8872,7 +8872,7 @@ declare class GetSubscriptions extends AbstractApiRequest<typeof getSubscription
|
|
|
8872
8872
|
credits: z.ZodCoercedNumber<unknown>;
|
|
8873
8873
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8874
8874
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8875
|
-
|
|
8875
|
+
availableCredits: z.ZodBoolean;
|
|
8876
8876
|
}, z.core.$strip>, z.ZodObject<{
|
|
8877
8877
|
id: z.ZodString;
|
|
8878
8878
|
status: z.ZodEnum<{
|
|
@@ -9023,7 +9023,7 @@ declare class GetSubscriptions extends AbstractApiRequest<typeof getSubscription
|
|
|
9023
9023
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9024
9024
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9025
9025
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9026
|
-
|
|
9026
|
+
availableCredits: z.ZodBoolean;
|
|
9027
9027
|
}, z.core.$strip>, z.ZodObject<{
|
|
9028
9028
|
id: z.ZodString;
|
|
9029
9029
|
status: z.ZodEnum<{
|
|
@@ -9128,7 +9128,7 @@ declare const getSubscriptionsFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDis
|
|
|
9128
9128
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9129
9129
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9130
9130
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9131
|
-
|
|
9131
|
+
availableCredits: z.ZodBoolean;
|
|
9132
9132
|
}, z.core.$strip>, z.ZodObject<{
|
|
9133
9133
|
id: z.ZodString;
|
|
9134
9134
|
status: z.ZodEnum<{
|
|
@@ -9229,7 +9229,7 @@ declare class GetSubscriptionsFromPointOfSale extends AbstractApiRequest<typeof
|
|
|
9229
9229
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9230
9230
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9231
9231
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9232
|
-
|
|
9232
|
+
availableCredits: z.ZodBoolean;
|
|
9233
9233
|
}, z.core.$strip>, z.ZodObject<{
|
|
9234
9234
|
id: z.ZodString;
|
|
9235
9235
|
status: z.ZodEnum<{
|
|
@@ -9371,7 +9371,7 @@ declare class GetSubscriptionsFromPointOfSale extends AbstractApiRequest<typeof
|
|
|
9371
9371
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9372
9372
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9373
9373
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9374
|
-
|
|
9374
|
+
availableCredits: z.ZodBoolean;
|
|
9375
9375
|
}, z.core.$strip>, z.ZodObject<{
|
|
9376
9376
|
id: z.ZodString;
|
|
9377
9377
|
status: z.ZodEnum<{
|
|
@@ -9481,7 +9481,7 @@ declare const updateSubscriptionResponseSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
9481
9481
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9482
9482
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9483
9483
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9484
|
-
|
|
9484
|
+
availableCredits: z.ZodBoolean;
|
|
9485
9485
|
}, z.core.$strip>, z.ZodObject<{
|
|
9486
9486
|
id: z.ZodString;
|
|
9487
9487
|
status: z.ZodEnum<{
|
|
@@ -9589,7 +9589,7 @@ declare class UpdateSubscription extends AbstractApiRequest<typeof updateSubscri
|
|
|
9589
9589
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9590
9590
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9591
9591
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9592
|
-
|
|
9592
|
+
availableCredits: z.ZodBoolean;
|
|
9593
9593
|
}, z.core.$strip>, z.ZodObject<{
|
|
9594
9594
|
id: z.ZodString;
|
|
9595
9595
|
status: z.ZodEnum<{
|
package/dist/index.d.ts
CHANGED
|
@@ -165,7 +165,7 @@ declare const subscriptionConsumptionSchema: z.ZodObject<{
|
|
|
165
165
|
credits: z.ZodCoercedNumber<unknown>;
|
|
166
166
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
167
167
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
168
|
-
|
|
168
|
+
availableCredits: z.ZodBoolean;
|
|
169
169
|
}, z.core.$strip>;
|
|
170
170
|
type SubscriptionConsumption = z.infer<typeof subscriptionConsumptionSchema>;
|
|
171
171
|
declare const subscriptionConsumptionDetailsSchema: z.ZodObject<{
|
|
@@ -201,7 +201,7 @@ declare const subscriptionConsumptionDetailsSchema: z.ZodObject<{
|
|
|
201
201
|
credits: z.ZodCoercedNumber<unknown>;
|
|
202
202
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
203
203
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
204
|
-
|
|
204
|
+
availableCredits: z.ZodBoolean;
|
|
205
205
|
}, z.core.$strip>;
|
|
206
206
|
type SubscriptionConsumptionDetails = z.infer<typeof subscriptionConsumptionDetailsSchema>;
|
|
207
207
|
declare const subscriptionTimeBasedSchema: z.ZodObject<{
|
|
@@ -335,7 +335,7 @@ declare const subscriptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
335
335
|
credits: z.ZodCoercedNumber<unknown>;
|
|
336
336
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
337
337
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
338
|
-
|
|
338
|
+
availableCredits: z.ZodBoolean;
|
|
339
339
|
}, z.core.$strip>, z.ZodObject<{
|
|
340
340
|
id: z.ZodString;
|
|
341
341
|
status: z.ZodEnum<{
|
|
@@ -433,7 +433,7 @@ declare const subscriptionDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
433
433
|
credits: z.ZodCoercedNumber<unknown>;
|
|
434
434
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
435
435
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
436
|
-
|
|
436
|
+
availableCredits: z.ZodBoolean;
|
|
437
437
|
}, z.core.$strip>, z.ZodObject<{
|
|
438
438
|
id: z.ZodString;
|
|
439
439
|
status: z.ZodEnum<{
|
|
@@ -1919,7 +1919,7 @@ declare const getSubscriptionsResponseSchema: z.ZodObject<{
|
|
|
1919
1919
|
credits: z.ZodCoercedNumber<unknown>;
|
|
1920
1920
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1921
1921
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1922
|
-
|
|
1922
|
+
availableCredits: z.ZodBoolean;
|
|
1923
1923
|
}, z.core.$strip>, z.ZodObject<{
|
|
1924
1924
|
id: z.ZodString;
|
|
1925
1925
|
status: z.ZodEnum<{
|
|
@@ -1995,7 +1995,7 @@ declare const getSubscriptionConsumptionListResponseSchema: z.ZodObject<{
|
|
|
1995
1995
|
credits: z.ZodCoercedNumber<unknown>;
|
|
1996
1996
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1997
1997
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1998
|
-
|
|
1998
|
+
availableCredits: z.ZodBoolean;
|
|
1999
1999
|
}, z.core.$strip>>;
|
|
2000
2000
|
pagination: z.ZodObject<{
|
|
2001
2001
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3171,7 +3171,7 @@ declare const createSubscriptionConsumptionResponseSchema: z.ZodObject<{
|
|
|
3171
3171
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3172
3172
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3173
3173
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3174
|
-
|
|
3174
|
+
availableCredits: z.ZodBoolean;
|
|
3175
3175
|
}, z.core.$strip>;
|
|
3176
3176
|
type CreateSubscriptionConsumptionResponse = z.infer<typeof createSubscriptionConsumptionResponseSchema>;
|
|
3177
3177
|
declare class CreateSubscriptionConsumption extends AbstractApiRequest<typeof createSubscriptionConsumptionInputSchema, typeof createSubscriptionConsumptionResponseSchema> {
|
|
@@ -3218,7 +3218,7 @@ declare class CreateSubscriptionConsumption extends AbstractApiRequest<typeof cr
|
|
|
3218
3218
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3219
3219
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3220
3220
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3221
|
-
|
|
3221
|
+
availableCredits: z.ZodBoolean;
|
|
3222
3222
|
}, z.core.$strip>;
|
|
3223
3223
|
readonly querySchema: undefined;
|
|
3224
3224
|
readonly headersSchema: undefined;
|
|
@@ -3276,7 +3276,7 @@ declare const getSubscriptionConsumptionDetailsResponseSchema: z.ZodObject<{
|
|
|
3276
3276
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3277
3277
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3278
3278
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3279
|
-
|
|
3279
|
+
availableCredits: z.ZodBoolean;
|
|
3280
3280
|
}, z.core.$strip>;
|
|
3281
3281
|
type GetSubscriptionConsumptionDetailsResponse = z.infer<typeof getSubscriptionConsumptionDetailsResponseSchema>;
|
|
3282
3282
|
declare class GetSubscriptionConsumptionDetails extends AbstractApiRequest<typeof getSubscriptionConsumptionDetailsInputSchema, typeof getSubscriptionConsumptionDetailsResponseSchema> {
|
|
@@ -3317,7 +3317,7 @@ declare class GetSubscriptionConsumptionDetails extends AbstractApiRequest<typeo
|
|
|
3317
3317
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3318
3318
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3319
3319
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3320
|
-
|
|
3320
|
+
availableCredits: z.ZodBoolean;
|
|
3321
3321
|
}, z.core.$strip>;
|
|
3322
3322
|
readonly querySchema: undefined;
|
|
3323
3323
|
readonly headersSchema: undefined;
|
|
@@ -3368,7 +3368,7 @@ declare class GetSubscriptionConsumptionList extends AbstractApiRequest<typeof g
|
|
|
3368
3368
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3369
3369
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3370
3370
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3371
|
-
|
|
3371
|
+
availableCredits: z.ZodBoolean;
|
|
3372
3372
|
}, z.core.$strip>>;
|
|
3373
3373
|
pagination: z.ZodObject<{
|
|
3374
3374
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3473,7 +3473,7 @@ declare class GetSubscriptionConsumptionList extends AbstractApiRequest<typeof g
|
|
|
3473
3473
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3474
3474
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3475
3475
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3476
|
-
|
|
3476
|
+
availableCredits: z.ZodBoolean;
|
|
3477
3477
|
}, z.core.$strip>;
|
|
3478
3478
|
readonly paginationDefaultEnabled = true;
|
|
3479
3479
|
constructor(options?: {
|
|
@@ -3522,7 +3522,7 @@ declare const updateSubscriptionConsumptionResponseSchema: z.ZodObject<{
|
|
|
3522
3522
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3523
3523
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3524
3524
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3525
|
-
|
|
3525
|
+
availableCredits: z.ZodBoolean;
|
|
3526
3526
|
}, z.core.$strip>;
|
|
3527
3527
|
type UpdateSubscriptionConsumptionResponse = z.infer<typeof updateSubscriptionConsumptionResponseSchema>;
|
|
3528
3528
|
declare class UpdateSubscriptionConsumption extends AbstractApiRequest<typeof updateSubscriptionConsumptionInputSchema, typeof updateSubscriptionConsumptionResponseSchema> {
|
|
@@ -3568,7 +3568,7 @@ declare class UpdateSubscriptionConsumption extends AbstractApiRequest<typeof up
|
|
|
3568
3568
|
credits: z.ZodCoercedNumber<unknown>;
|
|
3569
3569
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3570
3570
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3571
|
-
|
|
3571
|
+
availableCredits: z.ZodBoolean;
|
|
3572
3572
|
}, z.core.$strip>;
|
|
3573
3573
|
readonly querySchema: undefined;
|
|
3574
3574
|
readonly headersSchema: undefined;
|
|
@@ -4933,7 +4933,7 @@ declare const assignSubscriptionPlanResponseSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
4933
4933
|
credits: z.ZodCoercedNumber<unknown>;
|
|
4934
4934
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
4935
4935
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
4936
|
-
|
|
4936
|
+
availableCredits: z.ZodBoolean;
|
|
4937
4937
|
}, z.core.$strip>, z.ZodObject<{
|
|
4938
4938
|
id: z.ZodString;
|
|
4939
4939
|
status: z.ZodEnum<{
|
|
@@ -5042,7 +5042,7 @@ declare class AssignSubscriptionPlan extends AbstractApiRequest<typeof assignSub
|
|
|
5042
5042
|
credits: z.ZodCoercedNumber<unknown>;
|
|
5043
5043
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
5044
5044
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
5045
|
-
|
|
5045
|
+
availableCredits: z.ZodBoolean;
|
|
5046
5046
|
}, z.core.$strip>, z.ZodObject<{
|
|
5047
5047
|
id: z.ZodString;
|
|
5048
5048
|
status: z.ZodEnum<{
|
|
@@ -8512,7 +8512,7 @@ declare const getSubscriptionDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8512
8512
|
credits: z.ZodCoercedNumber<unknown>;
|
|
8513
8513
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8514
8514
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8515
|
-
|
|
8515
|
+
availableCredits: z.ZodBoolean;
|
|
8516
8516
|
}, z.core.$strip>, z.ZodObject<{
|
|
8517
8517
|
id: z.ZodString;
|
|
8518
8518
|
status: z.ZodEnum<{
|
|
@@ -8617,7 +8617,7 @@ declare class GetSubscriptionDetails extends AbstractApiRequest<typeof getSubscr
|
|
|
8617
8617
|
credits: z.ZodCoercedNumber<unknown>;
|
|
8618
8618
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8619
8619
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8620
|
-
|
|
8620
|
+
availableCredits: z.ZodBoolean;
|
|
8621
8621
|
}, z.core.$strip>, z.ZodObject<{
|
|
8622
8622
|
id: z.ZodString;
|
|
8623
8623
|
status: z.ZodEnum<{
|
|
@@ -8872,7 +8872,7 @@ declare class GetSubscriptions extends AbstractApiRequest<typeof getSubscription
|
|
|
8872
8872
|
credits: z.ZodCoercedNumber<unknown>;
|
|
8873
8873
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8874
8874
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
8875
|
-
|
|
8875
|
+
availableCredits: z.ZodBoolean;
|
|
8876
8876
|
}, z.core.$strip>, z.ZodObject<{
|
|
8877
8877
|
id: z.ZodString;
|
|
8878
8878
|
status: z.ZodEnum<{
|
|
@@ -9023,7 +9023,7 @@ declare class GetSubscriptions extends AbstractApiRequest<typeof getSubscription
|
|
|
9023
9023
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9024
9024
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9025
9025
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9026
|
-
|
|
9026
|
+
availableCredits: z.ZodBoolean;
|
|
9027
9027
|
}, z.core.$strip>, z.ZodObject<{
|
|
9028
9028
|
id: z.ZodString;
|
|
9029
9029
|
status: z.ZodEnum<{
|
|
@@ -9128,7 +9128,7 @@ declare const getSubscriptionsFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDis
|
|
|
9128
9128
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9129
9129
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9130
9130
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9131
|
-
|
|
9131
|
+
availableCredits: z.ZodBoolean;
|
|
9132
9132
|
}, z.core.$strip>, z.ZodObject<{
|
|
9133
9133
|
id: z.ZodString;
|
|
9134
9134
|
status: z.ZodEnum<{
|
|
@@ -9229,7 +9229,7 @@ declare class GetSubscriptionsFromPointOfSale extends AbstractApiRequest<typeof
|
|
|
9229
9229
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9230
9230
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9231
9231
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9232
|
-
|
|
9232
|
+
availableCredits: z.ZodBoolean;
|
|
9233
9233
|
}, z.core.$strip>, z.ZodObject<{
|
|
9234
9234
|
id: z.ZodString;
|
|
9235
9235
|
status: z.ZodEnum<{
|
|
@@ -9371,7 +9371,7 @@ declare class GetSubscriptionsFromPointOfSale extends AbstractApiRequest<typeof
|
|
|
9371
9371
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9372
9372
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9373
9373
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9374
|
-
|
|
9374
|
+
availableCredits: z.ZodBoolean;
|
|
9375
9375
|
}, z.core.$strip>, z.ZodObject<{
|
|
9376
9376
|
id: z.ZodString;
|
|
9377
9377
|
status: z.ZodEnum<{
|
|
@@ -9481,7 +9481,7 @@ declare const updateSubscriptionResponseSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
9481
9481
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9482
9482
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9483
9483
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9484
|
-
|
|
9484
|
+
availableCredits: z.ZodBoolean;
|
|
9485
9485
|
}, z.core.$strip>, z.ZodObject<{
|
|
9486
9486
|
id: z.ZodString;
|
|
9487
9487
|
status: z.ZodEnum<{
|
|
@@ -9589,7 +9589,7 @@ declare class UpdateSubscription extends AbstractApiRequest<typeof updateSubscri
|
|
|
9589
9589
|
credits: z.ZodCoercedNumber<unknown>;
|
|
9590
9590
|
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9591
9591
|
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
9592
|
-
|
|
9592
|
+
availableCredits: z.ZodBoolean;
|
|
9593
9593
|
}, z.core.$strip>, z.ZodObject<{
|
|
9594
9594
|
id: z.ZodString;
|
|
9595
9595
|
status: z.ZodEnum<{
|
package/dist/index.js
CHANGED
|
@@ -13953,14 +13953,14 @@ var subscriptionConsumptionSchema = subscriptionBaseSchema.extend({
|
|
|
13953
13953
|
credits: external_exports.coerce.number().int(),
|
|
13954
13954
|
autoRenewalExtensionCredits: external_exports.coerce.number().int().nullable(),
|
|
13955
13955
|
autoRenewalThreshold: external_exports.coerce.number().int().nullable(),
|
|
13956
|
-
|
|
13956
|
+
availableCredits: external_exports.boolean()
|
|
13957
13957
|
});
|
|
13958
13958
|
var subscriptionConsumptionDetailsSchema = subscriptionDetailsBaseSchema.extend({
|
|
13959
13959
|
type: external_exports.literal("consumption"),
|
|
13960
13960
|
credits: external_exports.coerce.number().int(),
|
|
13961
13961
|
autoRenewalExtensionCredits: external_exports.coerce.number().int().nullable(),
|
|
13962
13962
|
autoRenewalThreshold: external_exports.coerce.number().int().nullable(),
|
|
13963
|
-
|
|
13963
|
+
availableCredits: external_exports.boolean()
|
|
13964
13964
|
});
|
|
13965
13965
|
var subscriptionTimeBasedSchema = subscriptionBaseSchema.extend({
|
|
13966
13966
|
type: external_exports.literal("time_based"),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-subscription",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Subscription Management",
|
|
4
|
-
"version": "2.22.
|
|
4
|
+
"version": "2.22.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.22.
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.22.1",
|
|
22
|
+
"@deliverart/sdk-js-point-of-sale": "2.22.1",
|
|
23
|
+
"@deliverart/sdk-js-global-types": "2.22.1"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|