shred-api-client 2.0.12 → 2.0.14
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.d.mts +45 -45
- package/dist/index.d.ts +45 -45
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -219,7 +219,7 @@ declare const SubscriptionTypeSchema: z.ZodNativeEnum<typeof Type>;
|
|
|
219
219
|
declare const PlanSchema: z.ZodObject<{
|
|
220
220
|
id: z.ZodString;
|
|
221
221
|
currency: z.ZodString;
|
|
222
|
-
price: z.
|
|
222
|
+
price: z.ZodNumber;
|
|
223
223
|
interval: z.ZodString;
|
|
224
224
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
225
225
|
subscriptionItemId: z.ZodString;
|
|
@@ -227,14 +227,14 @@ declare const PlanSchema: z.ZodObject<{
|
|
|
227
227
|
id: string;
|
|
228
228
|
metadata: Record<string, string>;
|
|
229
229
|
interval: string;
|
|
230
|
-
price:
|
|
230
|
+
price: number;
|
|
231
231
|
currency: string;
|
|
232
232
|
subscriptionItemId: string;
|
|
233
233
|
}, {
|
|
234
234
|
id: string;
|
|
235
235
|
metadata: Record<string, string>;
|
|
236
236
|
interval: string;
|
|
237
|
-
price:
|
|
237
|
+
price: number;
|
|
238
238
|
currency: string;
|
|
239
239
|
subscriptionItemId: string;
|
|
240
240
|
}>;
|
|
@@ -251,12 +251,11 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
251
251
|
description: string;
|
|
252
252
|
subtitle: string;
|
|
253
253
|
}>, "many">;
|
|
254
|
-
percentOff: z.ZodDefault<z.ZodNumber>;
|
|
255
254
|
metadata: z.ZodAny;
|
|
256
255
|
plans: z.ZodArray<z.ZodObject<{
|
|
257
256
|
id: z.ZodString;
|
|
258
257
|
currency: z.ZodString;
|
|
259
|
-
price: z.
|
|
258
|
+
price: z.ZodNumber;
|
|
260
259
|
interval: z.ZodString;
|
|
261
260
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
262
261
|
subscriptionItemId: z.ZodString;
|
|
@@ -264,17 +263,18 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
264
263
|
id: string;
|
|
265
264
|
metadata: Record<string, string>;
|
|
266
265
|
interval: string;
|
|
267
|
-
price:
|
|
266
|
+
price: number;
|
|
268
267
|
currency: string;
|
|
269
268
|
subscriptionItemId: string;
|
|
270
269
|
}, {
|
|
271
270
|
id: string;
|
|
272
271
|
metadata: Record<string, string>;
|
|
273
272
|
interval: string;
|
|
274
|
-
price:
|
|
273
|
+
price: number;
|
|
275
274
|
currency: string;
|
|
276
275
|
subscriptionItemId: string;
|
|
277
276
|
}>, "many">;
|
|
277
|
+
percentOff: z.ZodDefault<z.ZodNumber>;
|
|
278
278
|
}, "strip", z.ZodTypeAny, {
|
|
279
279
|
id: string;
|
|
280
280
|
name: string;
|
|
@@ -282,15 +282,15 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
282
282
|
description: string;
|
|
283
283
|
subtitle: string;
|
|
284
284
|
}[];
|
|
285
|
-
percentOff: number;
|
|
286
285
|
plans: {
|
|
287
286
|
id: string;
|
|
288
287
|
metadata: Record<string, string>;
|
|
289
288
|
interval: string;
|
|
290
|
-
price:
|
|
289
|
+
price: number;
|
|
291
290
|
currency: string;
|
|
292
291
|
subscriptionItemId: string;
|
|
293
292
|
}[];
|
|
293
|
+
percentOff: number;
|
|
294
294
|
metadata?: any;
|
|
295
295
|
}, {
|
|
296
296
|
id: string;
|
|
@@ -303,7 +303,7 @@ declare const ProductSchema: z.ZodObject<{
|
|
|
303
303
|
id: string;
|
|
304
304
|
metadata: Record<string, string>;
|
|
305
305
|
interval: string;
|
|
306
|
-
price:
|
|
306
|
+
price: number;
|
|
307
307
|
currency: string;
|
|
308
308
|
subscriptionItemId: string;
|
|
309
309
|
}[];
|
|
@@ -363,12 +363,11 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
363
363
|
description: string;
|
|
364
364
|
subtitle: string;
|
|
365
365
|
}>, "many">;
|
|
366
|
-
percentOff: z.ZodDefault<z.ZodNumber>;
|
|
367
366
|
metadata: z.ZodAny;
|
|
368
367
|
plans: z.ZodArray<z.ZodObject<{
|
|
369
368
|
id: z.ZodString;
|
|
370
369
|
currency: z.ZodString;
|
|
371
|
-
price: z.
|
|
370
|
+
price: z.ZodNumber;
|
|
372
371
|
interval: z.ZodString;
|
|
373
372
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
374
373
|
subscriptionItemId: z.ZodString;
|
|
@@ -376,17 +375,18 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
376
375
|
id: string;
|
|
377
376
|
metadata: Record<string, string>;
|
|
378
377
|
interval: string;
|
|
379
|
-
price:
|
|
378
|
+
price: number;
|
|
380
379
|
currency: string;
|
|
381
380
|
subscriptionItemId: string;
|
|
382
381
|
}, {
|
|
383
382
|
id: string;
|
|
384
383
|
metadata: Record<string, string>;
|
|
385
384
|
interval: string;
|
|
386
|
-
price:
|
|
385
|
+
price: number;
|
|
387
386
|
currency: string;
|
|
388
387
|
subscriptionItemId: string;
|
|
389
388
|
}>, "many">;
|
|
389
|
+
percentOff: z.ZodDefault<z.ZodNumber>;
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
391
|
id: string;
|
|
392
392
|
name: string;
|
|
@@ -394,15 +394,15 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
394
394
|
description: string;
|
|
395
395
|
subtitle: string;
|
|
396
396
|
}[];
|
|
397
|
-
percentOff: number;
|
|
398
397
|
plans: {
|
|
399
398
|
id: string;
|
|
400
399
|
metadata: Record<string, string>;
|
|
401
400
|
interval: string;
|
|
402
|
-
price:
|
|
401
|
+
price: number;
|
|
403
402
|
currency: string;
|
|
404
403
|
subscriptionItemId: string;
|
|
405
404
|
}[];
|
|
405
|
+
percentOff: number;
|
|
406
406
|
metadata?: any;
|
|
407
407
|
}, {
|
|
408
408
|
id: string;
|
|
@@ -415,7 +415,7 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
415
415
|
id: string;
|
|
416
416
|
metadata: Record<string, string>;
|
|
417
417
|
interval: string;
|
|
418
|
-
price:
|
|
418
|
+
price: number;
|
|
419
419
|
currency: string;
|
|
420
420
|
subscriptionItemId: string;
|
|
421
421
|
}[];
|
|
@@ -426,7 +426,7 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
426
426
|
plan: z.ZodOptional<z.ZodObject<{
|
|
427
427
|
id: z.ZodString;
|
|
428
428
|
currency: z.ZodString;
|
|
429
|
-
price: z.
|
|
429
|
+
price: z.ZodNumber;
|
|
430
430
|
interval: z.ZodString;
|
|
431
431
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
432
432
|
subscriptionItemId: z.ZodString;
|
|
@@ -434,14 +434,14 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
434
434
|
id: string;
|
|
435
435
|
metadata: Record<string, string>;
|
|
436
436
|
interval: string;
|
|
437
|
-
price:
|
|
437
|
+
price: number;
|
|
438
438
|
currency: string;
|
|
439
439
|
subscriptionItemId: string;
|
|
440
440
|
}, {
|
|
441
441
|
id: string;
|
|
442
442
|
metadata: Record<string, string>;
|
|
443
443
|
interval: string;
|
|
444
|
-
price:
|
|
444
|
+
price: number;
|
|
445
445
|
currency: string;
|
|
446
446
|
subscriptionItemId: string;
|
|
447
447
|
}>>;
|
|
@@ -455,15 +455,15 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
455
455
|
description: string;
|
|
456
456
|
subtitle: string;
|
|
457
457
|
}[];
|
|
458
|
-
percentOff: number;
|
|
459
458
|
plans: {
|
|
460
459
|
id: string;
|
|
461
460
|
metadata: Record<string, string>;
|
|
462
461
|
interval: string;
|
|
463
|
-
price:
|
|
462
|
+
price: number;
|
|
464
463
|
currency: string;
|
|
465
464
|
subscriptionItemId: string;
|
|
466
465
|
}[];
|
|
466
|
+
percentOff: number;
|
|
467
467
|
metadata?: any;
|
|
468
468
|
};
|
|
469
469
|
type?: Type | undefined;
|
|
@@ -477,7 +477,7 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
477
477
|
id: string;
|
|
478
478
|
metadata: Record<string, string>;
|
|
479
479
|
interval: string;
|
|
480
|
-
price:
|
|
480
|
+
price: number;
|
|
481
481
|
currency: string;
|
|
482
482
|
subscriptionItemId: string;
|
|
483
483
|
} | undefined;
|
|
@@ -495,7 +495,7 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
495
495
|
id: string;
|
|
496
496
|
metadata: Record<string, string>;
|
|
497
497
|
interval: string;
|
|
498
|
-
price:
|
|
498
|
+
price: number;
|
|
499
499
|
currency: string;
|
|
500
500
|
subscriptionItemId: string;
|
|
501
501
|
}[];
|
|
@@ -513,7 +513,7 @@ declare const SubscriptionSchema: z.ZodObject<{
|
|
|
513
513
|
id: string;
|
|
514
514
|
metadata: Record<string, string>;
|
|
515
515
|
interval: string;
|
|
516
|
-
price:
|
|
516
|
+
price: number;
|
|
517
517
|
currency: string;
|
|
518
518
|
subscriptionItemId: string;
|
|
519
519
|
} | undefined;
|
|
@@ -911,12 +911,11 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
911
911
|
description: string;
|
|
912
912
|
subtitle: string;
|
|
913
913
|
}>, "many">;
|
|
914
|
-
percentOff: z.ZodDefault<z.ZodNumber>;
|
|
915
914
|
metadata: z.ZodAny;
|
|
916
915
|
plans: z.ZodArray<z.ZodObject<{
|
|
917
916
|
id: z.ZodString;
|
|
918
917
|
currency: z.ZodString;
|
|
919
|
-
price: z.
|
|
918
|
+
price: z.ZodNumber;
|
|
920
919
|
interval: z.ZodString;
|
|
921
920
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
922
921
|
subscriptionItemId: z.ZodString;
|
|
@@ -924,17 +923,18 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
924
923
|
id: string;
|
|
925
924
|
metadata: Record<string, string>;
|
|
926
925
|
interval: string;
|
|
927
|
-
price:
|
|
926
|
+
price: number;
|
|
928
927
|
currency: string;
|
|
929
928
|
subscriptionItemId: string;
|
|
930
929
|
}, {
|
|
931
930
|
id: string;
|
|
932
931
|
metadata: Record<string, string>;
|
|
933
932
|
interval: string;
|
|
934
|
-
price:
|
|
933
|
+
price: number;
|
|
935
934
|
currency: string;
|
|
936
935
|
subscriptionItemId: string;
|
|
937
936
|
}>, "many">;
|
|
937
|
+
percentOff: z.ZodDefault<z.ZodNumber>;
|
|
938
938
|
}, "strip", z.ZodTypeAny, {
|
|
939
939
|
id: string;
|
|
940
940
|
name: string;
|
|
@@ -942,15 +942,15 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
942
942
|
description: string;
|
|
943
943
|
subtitle: string;
|
|
944
944
|
}[];
|
|
945
|
-
percentOff: number;
|
|
946
945
|
plans: {
|
|
947
946
|
id: string;
|
|
948
947
|
metadata: Record<string, string>;
|
|
949
948
|
interval: string;
|
|
950
|
-
price:
|
|
949
|
+
price: number;
|
|
951
950
|
currency: string;
|
|
952
951
|
subscriptionItemId: string;
|
|
953
952
|
}[];
|
|
953
|
+
percentOff: number;
|
|
954
954
|
metadata?: any;
|
|
955
955
|
}, {
|
|
956
956
|
id: string;
|
|
@@ -963,7 +963,7 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
963
963
|
id: string;
|
|
964
964
|
metadata: Record<string, string>;
|
|
965
965
|
interval: string;
|
|
966
|
-
price:
|
|
966
|
+
price: number;
|
|
967
967
|
currency: string;
|
|
968
968
|
subscriptionItemId: string;
|
|
969
969
|
}[];
|
|
@@ -974,7 +974,7 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
974
974
|
plan: z.ZodOptional<z.ZodObject<{
|
|
975
975
|
id: z.ZodString;
|
|
976
976
|
currency: z.ZodString;
|
|
977
|
-
price: z.
|
|
977
|
+
price: z.ZodNumber;
|
|
978
978
|
interval: z.ZodString;
|
|
979
979
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
980
980
|
subscriptionItemId: z.ZodString;
|
|
@@ -982,14 +982,14 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
982
982
|
id: string;
|
|
983
983
|
metadata: Record<string, string>;
|
|
984
984
|
interval: string;
|
|
985
|
-
price:
|
|
985
|
+
price: number;
|
|
986
986
|
currency: string;
|
|
987
987
|
subscriptionItemId: string;
|
|
988
988
|
}, {
|
|
989
989
|
id: string;
|
|
990
990
|
metadata: Record<string, string>;
|
|
991
991
|
interval: string;
|
|
992
|
-
price:
|
|
992
|
+
price: number;
|
|
993
993
|
currency: string;
|
|
994
994
|
subscriptionItemId: string;
|
|
995
995
|
}>>;
|
|
@@ -1003,15 +1003,15 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1003
1003
|
description: string;
|
|
1004
1004
|
subtitle: string;
|
|
1005
1005
|
}[];
|
|
1006
|
-
percentOff: number;
|
|
1007
1006
|
plans: {
|
|
1008
1007
|
id: string;
|
|
1009
1008
|
metadata: Record<string, string>;
|
|
1010
1009
|
interval: string;
|
|
1011
|
-
price:
|
|
1010
|
+
price: number;
|
|
1012
1011
|
currency: string;
|
|
1013
1012
|
subscriptionItemId: string;
|
|
1014
1013
|
}[];
|
|
1014
|
+
percentOff: number;
|
|
1015
1015
|
metadata?: any;
|
|
1016
1016
|
};
|
|
1017
1017
|
type?: Type | undefined;
|
|
@@ -1025,7 +1025,7 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1025
1025
|
id: string;
|
|
1026
1026
|
metadata: Record<string, string>;
|
|
1027
1027
|
interval: string;
|
|
1028
|
-
price:
|
|
1028
|
+
price: number;
|
|
1029
1029
|
currency: string;
|
|
1030
1030
|
subscriptionItemId: string;
|
|
1031
1031
|
} | undefined;
|
|
@@ -1043,7 +1043,7 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1043
1043
|
id: string;
|
|
1044
1044
|
metadata: Record<string, string>;
|
|
1045
1045
|
interval: string;
|
|
1046
|
-
price:
|
|
1046
|
+
price: number;
|
|
1047
1047
|
currency: string;
|
|
1048
1048
|
subscriptionItemId: string;
|
|
1049
1049
|
}[];
|
|
@@ -1061,7 +1061,7 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1061
1061
|
id: string;
|
|
1062
1062
|
metadata: Record<string, string>;
|
|
1063
1063
|
interval: string;
|
|
1064
|
-
price:
|
|
1064
|
+
price: number;
|
|
1065
1065
|
currency: string;
|
|
1066
1066
|
subscriptionItemId: string;
|
|
1067
1067
|
} | undefined;
|
|
@@ -1097,15 +1097,15 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1097
1097
|
description: string;
|
|
1098
1098
|
subtitle: string;
|
|
1099
1099
|
}[];
|
|
1100
|
-
percentOff: number;
|
|
1101
1100
|
plans: {
|
|
1102
1101
|
id: string;
|
|
1103
1102
|
metadata: Record<string, string>;
|
|
1104
1103
|
interval: string;
|
|
1105
|
-
price:
|
|
1104
|
+
price: number;
|
|
1106
1105
|
currency: string;
|
|
1107
1106
|
subscriptionItemId: string;
|
|
1108
1107
|
}[];
|
|
1108
|
+
percentOff: number;
|
|
1109
1109
|
metadata?: any;
|
|
1110
1110
|
};
|
|
1111
1111
|
type?: Type | undefined;
|
|
@@ -1119,7 +1119,7 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1119
1119
|
id: string;
|
|
1120
1120
|
metadata: Record<string, string>;
|
|
1121
1121
|
interval: string;
|
|
1122
|
-
price:
|
|
1122
|
+
price: number;
|
|
1123
1123
|
currency: string;
|
|
1124
1124
|
subscriptionItemId: string;
|
|
1125
1125
|
} | undefined;
|
|
@@ -1159,7 +1159,7 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1159
1159
|
id: string;
|
|
1160
1160
|
metadata: Record<string, string>;
|
|
1161
1161
|
interval: string;
|
|
1162
|
-
price:
|
|
1162
|
+
price: number;
|
|
1163
1163
|
currency: string;
|
|
1164
1164
|
subscriptionItemId: string;
|
|
1165
1165
|
}[];
|
|
@@ -1177,7 +1177,7 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1177
1177
|
id: string;
|
|
1178
1178
|
metadata: Record<string, string>;
|
|
1179
1179
|
interval: string;
|
|
1180
|
-
price:
|
|
1180
|
+
price: number;
|
|
1181
1181
|
currency: string;
|
|
1182
1182
|
subscriptionItemId: string;
|
|
1183
1183
|
} | undefined;
|