@offerkit/sdk 0.2.3 → 0.2.4
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/README.md +84 -0
- package/dist/index.d.mts +478 -312
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +219 -139
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -4
package/dist/index.d.mts
CHANGED
|
@@ -51,7 +51,9 @@ declare const contract: {
|
|
|
51
51
|
prev: z.ZodOptional<z.ZodString>;
|
|
52
52
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
53
53
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
54
|
-
|
|
54
|
+
params: z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
55
57
|
}, z.core.$strip>, z.ZodObject<{
|
|
56
58
|
id: z.ZodString;
|
|
57
59
|
email: z.ZodNullable<z.ZodString>;
|
|
@@ -76,7 +78,9 @@ declare const contract: {
|
|
|
76
78
|
updatedAt: z.ZodString;
|
|
77
79
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
78
80
|
getByExternalId: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
79
|
-
|
|
81
|
+
params: z.ZodObject<{
|
|
82
|
+
externalId: z.ZodString;
|
|
83
|
+
}, z.core.$strip>;
|
|
80
84
|
}, z.core.$strip>, z.ZodObject<{
|
|
81
85
|
id: z.ZodString;
|
|
82
86
|
email: z.ZodNullable<z.ZodString>;
|
|
@@ -178,21 +182,25 @@ declare const contract: {
|
|
|
178
182
|
created: z.ZodBoolean;
|
|
179
183
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
180
184
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
185
|
+
params: z.ZodObject<{
|
|
186
|
+
id: z.ZodString;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
body: z.ZodObject<{
|
|
189
|
+
patch: z.ZodObject<{
|
|
190
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
191
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
192
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
193
|
+
externalId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
194
|
+
address: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
195
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
196
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
197
|
+
city: z.ZodOptional<z.ZodString>;
|
|
198
|
+
state: z.ZodOptional<z.ZodString>;
|
|
199
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
200
|
+
country: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strip>>>;
|
|
202
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
203
|
+
}, z.core.$strip>;
|
|
196
204
|
}, z.core.$strip>;
|
|
197
205
|
}, z.core.$strip>, z.ZodObject<{
|
|
198
206
|
id: z.ZodString;
|
|
@@ -218,7 +226,9 @@ declare const contract: {
|
|
|
218
226
|
updatedAt: z.ZodString;
|
|
219
227
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
220
228
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
221
|
-
|
|
229
|
+
params: z.ZodObject<{
|
|
230
|
+
id: z.ZodString;
|
|
231
|
+
}, z.core.$strip>;
|
|
222
232
|
}, z.core.$strip>, z.ZodObject<{
|
|
223
233
|
ok: z.ZodLiteral<true>;
|
|
224
234
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -241,7 +251,9 @@ declare const contract: {
|
|
|
241
251
|
prev: z.ZodOptional<z.ZodString>;
|
|
242
252
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
243
253
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
244
|
-
|
|
254
|
+
params: z.ZodObject<{
|
|
255
|
+
id: z.ZodString;
|
|
256
|
+
}, z.core.$strip>;
|
|
245
257
|
}, z.core.$strip>, z.ZodObject<{
|
|
246
258
|
id: z.ZodString;
|
|
247
259
|
name: z.ZodString;
|
|
@@ -263,11 +275,15 @@ declare const contract: {
|
|
|
263
275
|
updatedAt: z.ZodString;
|
|
264
276
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
265
277
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
278
|
+
params: z.ZodObject<{
|
|
279
|
+
id: z.ZodString;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
body: z.ZodObject<{
|
|
282
|
+
patch: z.ZodObject<{
|
|
283
|
+
name: z.ZodOptional<z.ZodString>;
|
|
284
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
285
|
+
rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
286
|
+
}, z.core.$strip>;
|
|
271
287
|
}, z.core.$strip>;
|
|
272
288
|
}, z.core.$strip>, z.ZodObject<{
|
|
273
289
|
id: z.ZodString;
|
|
@@ -278,7 +294,9 @@ declare const contract: {
|
|
|
278
294
|
updatedAt: z.ZodString;
|
|
279
295
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
280
296
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
281
|
-
|
|
297
|
+
params: z.ZodObject<{
|
|
298
|
+
id: z.ZodString;
|
|
299
|
+
}, z.core.$strip>;
|
|
282
300
|
}, z.core.$strip>, z.ZodObject<{
|
|
283
301
|
ok: z.ZodLiteral<true>;
|
|
284
302
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -362,7 +380,9 @@ declare const contract: {
|
|
|
362
380
|
prev: z.ZodOptional<z.ZodString>;
|
|
363
381
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
364
382
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
365
|
-
|
|
383
|
+
params: z.ZodObject<{
|
|
384
|
+
id: z.ZodString;
|
|
385
|
+
}, z.core.$strip>;
|
|
366
386
|
}, z.core.$strip>, z.ZodObject<{
|
|
367
387
|
id: z.ZodString;
|
|
368
388
|
name: z.ZodString;
|
|
@@ -473,35 +493,39 @@ declare const contract: {
|
|
|
473
493
|
updatedAt: z.ZodString;
|
|
474
494
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
475
495
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
496
|
+
params: z.ZodObject<{
|
|
497
|
+
id: z.ZodString;
|
|
498
|
+
}, z.core.$strip>;
|
|
499
|
+
body: z.ZodObject<{
|
|
500
|
+
patch: z.ZodObject<{
|
|
501
|
+
name: z.ZodOptional<z.ZodString>;
|
|
502
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
503
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
504
|
+
codeConfig: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
505
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
506
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
507
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
508
|
+
charset: z.ZodOptional<z.ZodEnum<{
|
|
509
|
+
alphanumeric: "alphanumeric";
|
|
510
|
+
uppercase: "uppercase";
|
|
511
|
+
lowercase: "lowercase";
|
|
512
|
+
numeric: "numeric";
|
|
513
|
+
}>>;
|
|
514
|
+
excludeConfusable: z.ZodOptional<z.ZodBoolean>;
|
|
515
|
+
}, z.core.$strip>>>;
|
|
516
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
517
|
+
timezone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
518
|
+
startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
519
|
+
endDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
520
|
+
validationRuleId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
521
|
+
autoApply: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
522
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
523
|
+
draft: "draft";
|
|
524
|
+
active: "active";
|
|
525
|
+
paused: "paused";
|
|
526
|
+
ended: "ended";
|
|
490
527
|
}>>;
|
|
491
|
-
|
|
492
|
-
}, z.core.$strip>>>;
|
|
493
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
494
|
-
timezone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
495
|
-
startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
496
|
-
endDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
497
|
-
validationRuleId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
498
|
-
autoApply: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
499
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
500
|
-
draft: "draft";
|
|
501
|
-
active: "active";
|
|
502
|
-
paused: "paused";
|
|
503
|
-
ended: "ended";
|
|
504
|
-
}>>;
|
|
528
|
+
}, z.core.$strip>;
|
|
505
529
|
}, z.core.$strip>;
|
|
506
530
|
}, z.core.$strip>, z.ZodObject<{
|
|
507
531
|
id: z.ZodString;
|
|
@@ -544,7 +568,9 @@ declare const contract: {
|
|
|
544
568
|
updatedAt: z.ZodString;
|
|
545
569
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
546
570
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
547
|
-
|
|
571
|
+
params: z.ZodObject<{
|
|
572
|
+
id: z.ZodString;
|
|
573
|
+
}, z.core.$strip>;
|
|
548
574
|
}, z.core.$strip>, z.ZodObject<{
|
|
549
575
|
ok: z.ZodLiteral<true>;
|
|
550
576
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -653,34 +679,38 @@ declare const contract: {
|
|
|
653
679
|
updatedAt: z.ZodString;
|
|
654
680
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
655
681
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
682
|
+
params: z.ZodObject<{
|
|
683
|
+
id: z.ZodString;
|
|
684
|
+
}, z.core.$strip>;
|
|
685
|
+
body: z.ZodObject<{
|
|
686
|
+
patch: z.ZodObject<{
|
|
687
|
+
name: z.ZodOptional<z.ZodString>;
|
|
688
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
689
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
690
|
+
active: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
691
|
+
startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
692
|
+
endDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
693
|
+
validationRuleId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
694
|
+
effect: z.ZodOptional<z.ZodObject<{
|
|
695
|
+
type: z.ZodEnum<{
|
|
696
|
+
AMOUNT: "AMOUNT";
|
|
697
|
+
PERCENTAGE: "PERCENTAGE";
|
|
698
|
+
}>;
|
|
699
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
700
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
701
|
+
maxDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
702
|
+
appliesTo: z.ZodOptional<z.ZodObject<{
|
|
703
|
+
productIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
704
|
+
collectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
705
|
+
}, z.core.$strip>>;
|
|
676
706
|
}, z.core.$strip>>;
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
707
|
+
customRewards: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
708
|
+
typeKey: z.ZodString;
|
|
709
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
710
|
+
}, z.core.$strip>>>>;
|
|
711
|
+
priority: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
712
|
+
exclusive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
713
|
+
}, z.core.$strip>;
|
|
684
714
|
}, z.core.$strip>;
|
|
685
715
|
}, z.core.$strip>, z.ZodObject<{
|
|
686
716
|
id: z.ZodString;
|
|
@@ -715,7 +745,9 @@ declare const contract: {
|
|
|
715
745
|
updatedAt: z.ZodString;
|
|
716
746
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
717
747
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
718
|
-
|
|
748
|
+
params: z.ZodObject<{
|
|
749
|
+
id: z.ZodString;
|
|
750
|
+
}, z.core.$strip>;
|
|
719
751
|
}, z.core.$strip>, z.ZodObject<{
|
|
720
752
|
ok: z.ZodLiteral<true>;
|
|
721
753
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -877,7 +909,9 @@ declare const contract: {
|
|
|
877
909
|
prev: z.ZodOptional<z.ZodString>;
|
|
878
910
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
879
911
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
880
|
-
|
|
912
|
+
params: z.ZodObject<{
|
|
913
|
+
code: z.ZodString;
|
|
914
|
+
}, z.core.$strip>;
|
|
881
915
|
}, z.core.$strip>, z.ZodObject<{
|
|
882
916
|
id: z.ZodString;
|
|
883
917
|
code: z.ZodString;
|
|
@@ -987,35 +1021,39 @@ declare const contract: {
|
|
|
987
1021
|
updatedAt: z.ZodString;
|
|
988
1022
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
989
1023
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1024
|
+
params: z.ZodObject<{
|
|
1025
|
+
code: z.ZodString;
|
|
1026
|
+
}, z.core.$strip>;
|
|
1027
|
+
body: z.ZodObject<{
|
|
1028
|
+
patch: z.ZodObject<{
|
|
1029
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1030
|
+
startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1031
|
+
endDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1032
|
+
campaignId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1033
|
+
customRewards: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1034
|
+
typeKey: z.ZodString;
|
|
1035
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1036
|
+
}, z.core.$strip>>>>;
|
|
1037
|
+
priority: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1038
|
+
exclusive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1039
|
+
customerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1040
|
+
discount: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1041
|
+
type: z.ZodEnum<{
|
|
1042
|
+
AMOUNT: "AMOUNT";
|
|
1043
|
+
PERCENTAGE: "PERCENTAGE";
|
|
1044
|
+
}>;
|
|
1045
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1046
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
1047
|
+
maxDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
1048
|
+
appliesTo: z.ZodOptional<z.ZodObject<{
|
|
1049
|
+
productIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1050
|
+
collectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1051
|
+
}, z.core.$strip>>;
|
|
1052
|
+
}, z.core.$strip>>>;
|
|
1053
|
+
giftBalance: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1054
|
+
redemptionLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1055
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
1056
|
+
}, z.core.$strip>;
|
|
1019
1057
|
}, z.core.$strip>;
|
|
1020
1058
|
}, z.core.$strip>, z.ZodObject<{
|
|
1021
1059
|
id: z.ZodString;
|
|
@@ -1056,7 +1094,9 @@ declare const contract: {
|
|
|
1056
1094
|
updatedAt: z.ZodString;
|
|
1057
1095
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1058
1096
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1059
|
-
|
|
1097
|
+
params: z.ZodObject<{
|
|
1098
|
+
code: z.ZodString;
|
|
1099
|
+
}, z.core.$strip>;
|
|
1060
1100
|
}, z.core.$strip>, z.ZodObject<{
|
|
1061
1101
|
ok: z.ZodLiteral<true>;
|
|
1062
1102
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1069,17 +1109,21 @@ declare const contract: {
|
|
|
1069
1109
|
jobId: z.ZodOptional<z.ZodString>;
|
|
1070
1110
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1071
1111
|
validate: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1112
|
+
params: z.ZodObject<{
|
|
1113
|
+
code: z.ZodString;
|
|
1114
|
+
}, z.core.$strip>;
|
|
1115
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
1116
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
1117
|
+
amount: z.ZodNumber;
|
|
1118
|
+
currency: z.ZodString;
|
|
1119
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1120
|
+
productId: z.ZodString;
|
|
1121
|
+
collectionId: z.ZodOptional<z.ZodString>;
|
|
1122
|
+
quantity: z.ZodNumber;
|
|
1123
|
+
unitPrice: z.ZodNumber;
|
|
1124
|
+
}, z.core.$strip>>>;
|
|
1125
|
+
}, z.core.$strip>>;
|
|
1126
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
1083
1127
|
}, z.core.$strip>>;
|
|
1084
1128
|
}, z.core.$strip>, z.ZodObject<{
|
|
1085
1129
|
valid: z.ZodBoolean;
|
|
@@ -1183,21 +1227,25 @@ declare const contract: {
|
|
|
1183
1227
|
}, z.core.$strip>>;
|
|
1184
1228
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1185
1229
|
redeem: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1230
|
+
params: z.ZodObject<{
|
|
1231
|
+
code: z.ZodString;
|
|
1232
|
+
}, z.core.$strip>;
|
|
1233
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
1234
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
1235
|
+
amount: z.ZodNumber;
|
|
1236
|
+
currency: z.ZodString;
|
|
1237
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1238
|
+
productId: z.ZodString;
|
|
1239
|
+
collectionId: z.ZodOptional<z.ZodString>;
|
|
1240
|
+
quantity: z.ZodNumber;
|
|
1241
|
+
unitPrice: z.ZodNumber;
|
|
1242
|
+
}, z.core.$strip>>>;
|
|
1243
|
+
}, z.core.$strip>>;
|
|
1244
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
1245
|
+
orderId: z.ZodOptional<z.ZodString>;
|
|
1246
|
+
externalOrderId: z.ZodOptional<z.ZodString>;
|
|
1247
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1197
1248
|
}, z.core.$strip>>;
|
|
1198
|
-
orderId: z.ZodOptional<z.ZodString>;
|
|
1199
|
-
externalOrderId: z.ZodOptional<z.ZodString>;
|
|
1200
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1201
1249
|
}, z.core.$strip>, z.ZodObject<{
|
|
1202
1250
|
ok: z.ZodBoolean;
|
|
1203
1251
|
redemptionId: z.ZodOptional<z.ZodString>;
|
|
@@ -1307,7 +1355,9 @@ declare const contract: {
|
|
|
1307
1355
|
}, z.core.$strip>>>;
|
|
1308
1356
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1309
1357
|
transactions: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1310
|
-
|
|
1358
|
+
params: z.ZodObject<{
|
|
1359
|
+
code: z.ZodString;
|
|
1360
|
+
}, z.core.$strip>;
|
|
1311
1361
|
}, z.core.$strip>, z.ZodObject<{
|
|
1312
1362
|
data: z.ZodArray<z.ZodObject<{
|
|
1313
1363
|
id: z.ZodString;
|
|
@@ -1348,7 +1398,9 @@ declare const contract: {
|
|
|
1348
1398
|
prev: z.ZodOptional<z.ZodString>;
|
|
1349
1399
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1350
1400
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1351
|
-
|
|
1401
|
+
params: z.ZodObject<{
|
|
1402
|
+
id: z.ZodString;
|
|
1403
|
+
}, z.core.$strip>;
|
|
1352
1404
|
}, z.core.$strip>, z.ZodObject<{
|
|
1353
1405
|
id: z.ZodString;
|
|
1354
1406
|
name: z.ZodString;
|
|
@@ -1388,17 +1440,21 @@ declare const contract: {
|
|
|
1388
1440
|
updatedAt: z.ZodString;
|
|
1389
1441
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1390
1442
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1443
|
+
params: z.ZodObject<{
|
|
1444
|
+
id: z.ZodString;
|
|
1445
|
+
}, z.core.$strip>;
|
|
1446
|
+
body: z.ZodObject<{
|
|
1447
|
+
patch: z.ZodObject<{
|
|
1448
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1449
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1450
|
+
rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1451
|
+
appliesTo: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1452
|
+
promotion: "promotion";
|
|
1453
|
+
voucher: "voucher";
|
|
1454
|
+
earn: "earn";
|
|
1455
|
+
reward: "reward";
|
|
1456
|
+
}>>>;
|
|
1457
|
+
}, z.core.$strip>;
|
|
1402
1458
|
}, z.core.$strip>;
|
|
1403
1459
|
}, z.core.$strip>, z.ZodObject<{
|
|
1404
1460
|
id: z.ZodString;
|
|
@@ -1415,7 +1471,9 @@ declare const contract: {
|
|
|
1415
1471
|
updatedAt: z.ZodString;
|
|
1416
1472
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1417
1473
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1418
|
-
|
|
1474
|
+
params: z.ZodObject<{
|
|
1475
|
+
id: z.ZodString;
|
|
1476
|
+
}, z.core.$strip>;
|
|
1419
1477
|
}, z.core.$strip>, z.ZodObject<{
|
|
1420
1478
|
ok: z.ZodLiteral<true>;
|
|
1421
1479
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1439,7 +1497,9 @@ declare const contract: {
|
|
|
1439
1497
|
prev: z.ZodOptional<z.ZodString>;
|
|
1440
1498
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1441
1499
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1442
|
-
|
|
1500
|
+
params: z.ZodObject<{
|
|
1501
|
+
id: z.ZodString;
|
|
1502
|
+
}, z.core.$strip>;
|
|
1443
1503
|
}, z.core.$strip>, z.ZodObject<{
|
|
1444
1504
|
id: z.ZodString;
|
|
1445
1505
|
key: z.ZodString;
|
|
@@ -1464,11 +1524,15 @@ declare const contract: {
|
|
|
1464
1524
|
updatedAt: z.ZodString;
|
|
1465
1525
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1466
1526
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1527
|
+
params: z.ZodObject<{
|
|
1528
|
+
id: z.ZodString;
|
|
1529
|
+
}, z.core.$strip>;
|
|
1530
|
+
body: z.ZodObject<{
|
|
1531
|
+
patch: z.ZodObject<{
|
|
1532
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1533
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1534
|
+
payloadSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1535
|
+
}, z.core.$strip>;
|
|
1472
1536
|
}, z.core.$strip>;
|
|
1473
1537
|
}, z.core.$strip>, z.ZodObject<{
|
|
1474
1538
|
id: z.ZodString;
|
|
@@ -1480,7 +1544,9 @@ declare const contract: {
|
|
|
1480
1544
|
updatedAt: z.ZodString;
|
|
1481
1545
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1482
1546
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1483
|
-
|
|
1547
|
+
params: z.ZodObject<{
|
|
1548
|
+
id: z.ZodString;
|
|
1549
|
+
}, z.core.$strip>;
|
|
1484
1550
|
}, z.core.$strip>, z.ZodObject<{
|
|
1485
1551
|
ok: z.ZodLiteral<true>;
|
|
1486
1552
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1503,7 +1569,9 @@ declare const contract: {
|
|
|
1503
1569
|
prev: z.ZodOptional<z.ZodString>;
|
|
1504
1570
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1505
1571
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1506
|
-
|
|
1572
|
+
params: z.ZodObject<{
|
|
1573
|
+
id: z.ZodString;
|
|
1574
|
+
}, z.core.$strip>;
|
|
1507
1575
|
}, z.core.$strip>, z.ZodObject<{
|
|
1508
1576
|
id: z.ZodString;
|
|
1509
1577
|
campaignId: z.ZodString;
|
|
@@ -1525,10 +1593,14 @@ declare const contract: {
|
|
|
1525
1593
|
updatedAt: z.ZodString;
|
|
1526
1594
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1527
1595
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1596
|
+
params: z.ZodObject<{
|
|
1597
|
+
id: z.ZodString;
|
|
1598
|
+
}, z.core.$strip>;
|
|
1599
|
+
body: z.ZodObject<{
|
|
1600
|
+
patch: z.ZodObject<{
|
|
1601
|
+
pointsExpiryDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1602
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1603
|
+
}, z.core.$strip>;
|
|
1532
1604
|
}, z.core.$strip>;
|
|
1533
1605
|
}, z.core.$strip>, z.ZodObject<{
|
|
1534
1606
|
id: z.ZodString;
|
|
@@ -1539,14 +1611,18 @@ declare const contract: {
|
|
|
1539
1611
|
updatedAt: z.ZodString;
|
|
1540
1612
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1541
1613
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1542
|
-
|
|
1614
|
+
params: z.ZodObject<{
|
|
1615
|
+
id: z.ZodString;
|
|
1616
|
+
}, z.core.$strip>;
|
|
1543
1617
|
}, z.core.$strip>, z.ZodObject<{
|
|
1544
1618
|
ok: z.ZodLiteral<true>;
|
|
1545
1619
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1546
1620
|
};
|
|
1547
1621
|
tiers: {
|
|
1548
1622
|
list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1549
|
-
|
|
1623
|
+
params: z.ZodObject<{
|
|
1624
|
+
programId: z.ZodString;
|
|
1625
|
+
}, z.core.$strip>;
|
|
1550
1626
|
}, z.core.$strip>, z.ZodObject<{
|
|
1551
1627
|
data: z.ZodArray<z.ZodObject<{
|
|
1552
1628
|
id: z.ZodString;
|
|
@@ -1572,12 +1648,16 @@ declare const contract: {
|
|
|
1572
1648
|
sortOrder: z.ZodNumber;
|
|
1573
1649
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1574
1650
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1651
|
+
params: z.ZodObject<{
|
|
1652
|
+
id: z.ZodString;
|
|
1653
|
+
}, z.core.$strip>;
|
|
1654
|
+
body: z.ZodObject<{
|
|
1655
|
+
patch: z.ZodObject<{
|
|
1656
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
1658
|
+
earnMultiplier: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1659
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1660
|
+
}, z.core.$strip>;
|
|
1581
1661
|
}, z.core.$strip>;
|
|
1582
1662
|
}, z.core.$strip>, z.ZodObject<{
|
|
1583
1663
|
id: z.ZodString;
|
|
@@ -1588,14 +1668,18 @@ declare const contract: {
|
|
|
1588
1668
|
sortOrder: z.ZodNumber;
|
|
1589
1669
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1590
1670
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1591
|
-
|
|
1671
|
+
params: z.ZodObject<{
|
|
1672
|
+
id: z.ZodString;
|
|
1673
|
+
}, z.core.$strip>;
|
|
1592
1674
|
}, z.core.$strip>, z.ZodObject<{
|
|
1593
1675
|
ok: z.ZodLiteral<true>;
|
|
1594
1676
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1595
1677
|
};
|
|
1596
1678
|
earningRules: {
|
|
1597
1679
|
list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1598
|
-
|
|
1680
|
+
params: z.ZodObject<{
|
|
1681
|
+
programId: z.ZodString;
|
|
1682
|
+
}, z.core.$strip>;
|
|
1599
1683
|
}, z.core.$strip>, z.ZodObject<{
|
|
1600
1684
|
data: z.ZodArray<z.ZodObject<{
|
|
1601
1685
|
id: z.ZodString;
|
|
@@ -1657,24 +1741,28 @@ declare const contract: {
|
|
|
1657
1741
|
}>;
|
|
1658
1742
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1659
1743
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1744
|
+
params: z.ZodObject<{
|
|
1745
|
+
id: z.ZodString;
|
|
1746
|
+
}, z.core.$strip>;
|
|
1747
|
+
body: z.ZodObject<{
|
|
1748
|
+
patch: z.ZodObject<{
|
|
1749
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1750
|
+
active: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1751
|
+
yes: "yes";
|
|
1752
|
+
no: "no";
|
|
1753
|
+
}>>>;
|
|
1754
|
+
validationRuleId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1755
|
+
formula: z.ZodOptional<z.ZodObject<{
|
|
1756
|
+
kind: z.ZodEnum<{
|
|
1757
|
+
custom: "custom";
|
|
1758
|
+
fixed: "fixed";
|
|
1759
|
+
per_cents: "per_cents";
|
|
1760
|
+
}>;
|
|
1761
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1762
|
+
divisor: z.ZodOptional<z.ZodNumber>;
|
|
1763
|
+
}, z.core.$strip>>;
|
|
1764
|
+
event: z.ZodOptional<z.ZodString>;
|
|
1765
|
+
}, z.core.$strip>;
|
|
1678
1766
|
}, z.core.$strip>;
|
|
1679
1767
|
}, z.core.$strip>, z.ZodObject<{
|
|
1680
1768
|
id: z.ZodString;
|
|
@@ -1697,14 +1785,18 @@ declare const contract: {
|
|
|
1697
1785
|
}>;
|
|
1698
1786
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1699
1787
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1700
|
-
|
|
1788
|
+
params: z.ZodObject<{
|
|
1789
|
+
id: z.ZodString;
|
|
1790
|
+
}, z.core.$strip>;
|
|
1701
1791
|
}, z.core.$strip>, z.ZodObject<{
|
|
1702
1792
|
ok: z.ZodLiteral<true>;
|
|
1703
1793
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1704
1794
|
};
|
|
1705
1795
|
rewards: {
|
|
1706
1796
|
list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1707
|
-
|
|
1797
|
+
params: z.ZodObject<{
|
|
1798
|
+
programId: z.ZodString;
|
|
1799
|
+
}, z.core.$strip>;
|
|
1708
1800
|
}, z.core.$strip>, z.ZodObject<{
|
|
1709
1801
|
data: z.ZodArray<z.ZodObject<{
|
|
1710
1802
|
id: z.ZodString;
|
|
@@ -1784,30 +1876,34 @@ declare const contract: {
|
|
|
1784
1876
|
}, z.core.$strip>;
|
|
1785
1877
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1786
1878
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
AMOUNT: "AMOUNT";
|
|
1800
|
-
PERCENTAGE: "PERCENTAGE";
|
|
1879
|
+
params: z.ZodObject<{
|
|
1880
|
+
id: z.ZodString;
|
|
1881
|
+
}, z.core.$strip>;
|
|
1882
|
+
body: z.ZodObject<{
|
|
1883
|
+
patch: z.ZodObject<{
|
|
1884
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1885
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1886
|
+
payload: z.ZodOptional<z.ZodObject<{
|
|
1887
|
+
kind: z.ZodEnum<{
|
|
1888
|
+
custom: "custom";
|
|
1889
|
+
discount: "discount";
|
|
1890
|
+
gift_card: "gift_card";
|
|
1801
1891
|
}>;
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1892
|
+
discount: z.ZodOptional<z.ZodObject<{
|
|
1893
|
+
type: z.ZodEnum<{
|
|
1894
|
+
AMOUNT: "AMOUNT";
|
|
1895
|
+
PERCENTAGE: "PERCENTAGE";
|
|
1896
|
+
}>;
|
|
1897
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1898
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
1899
|
+
maxDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
1900
|
+
}, z.core.$strip>>;
|
|
1901
|
+
creditCents: z.ZodOptional<z.ZodNumber>;
|
|
1902
|
+
typeKey: z.ZodOptional<z.ZodString>;
|
|
1903
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1805
1904
|
}, z.core.$strip>>;
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1809
|
-
}, z.core.$strip>>;
|
|
1810
|
-
cost: z.ZodOptional<z.ZodNumber>;
|
|
1905
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
1906
|
+
}, z.core.$strip>;
|
|
1811
1907
|
}, z.core.$strip>;
|
|
1812
1908
|
}, z.core.$strip>, z.ZodObject<{
|
|
1813
1909
|
id: z.ZodString;
|
|
@@ -1836,16 +1932,22 @@ declare const contract: {
|
|
|
1836
1932
|
}, z.core.$strip>;
|
|
1837
1933
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1838
1934
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1839
|
-
|
|
1935
|
+
params: z.ZodObject<{
|
|
1936
|
+
id: z.ZodString;
|
|
1937
|
+
}, z.core.$strip>;
|
|
1840
1938
|
}, z.core.$strip>, z.ZodObject<{
|
|
1841
1939
|
ok: z.ZodLiteral<true>;
|
|
1842
1940
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1843
1941
|
};
|
|
1844
1942
|
members: {
|
|
1845
1943
|
list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1944
|
+
params: z.ZodObject<{
|
|
1945
|
+
programId: z.ZodString;
|
|
1946
|
+
}, z.core.$strip>;
|
|
1947
|
+
query: z.ZodObject<{
|
|
1948
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1949
|
+
limit: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
1950
|
+
}, z.core.$strip>;
|
|
1849
1951
|
}, z.core.$strip>, z.ZodObject<{
|
|
1850
1952
|
data: z.ZodArray<z.ZodObject<{
|
|
1851
1953
|
id: z.ZodString;
|
|
@@ -1860,7 +1962,9 @@ declare const contract: {
|
|
|
1860
1962
|
prev: z.ZodOptional<z.ZodString>;
|
|
1861
1963
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1862
1964
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1863
|
-
|
|
1965
|
+
params: z.ZodObject<{
|
|
1966
|
+
id: z.ZodString;
|
|
1967
|
+
}, z.core.$strip>;
|
|
1864
1968
|
}, z.core.$strip>, z.ZodObject<{
|
|
1865
1969
|
id: z.ZodString;
|
|
1866
1970
|
customerId: z.ZodString;
|
|
@@ -1944,7 +2048,9 @@ declare const contract: {
|
|
|
1944
2048
|
message: z.ZodOptional<z.ZodString>;
|
|
1945
2049
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1946
2050
|
history: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1947
|
-
|
|
2051
|
+
params: z.ZodObject<{
|
|
2052
|
+
id: z.ZodString;
|
|
2053
|
+
}, z.core.$strip>;
|
|
1948
2054
|
}, z.core.$strip>, z.ZodObject<{
|
|
1949
2055
|
data: z.ZodArray<z.ZodObject<{
|
|
1950
2056
|
id: z.ZodString;
|
|
@@ -2031,7 +2137,9 @@ declare const contract: {
|
|
|
2031
2137
|
prev: z.ZodOptional<z.ZodString>;
|
|
2032
2138
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2033
2139
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2034
|
-
|
|
2140
|
+
params: z.ZodObject<{
|
|
2141
|
+
id: z.ZodString;
|
|
2142
|
+
}, z.core.$strip>;
|
|
2035
2143
|
}, z.core.$strip>, z.ZodObject<{
|
|
2036
2144
|
id: z.ZodString;
|
|
2037
2145
|
campaignId: z.ZodString;
|
|
@@ -2185,54 +2293,58 @@ declare const contract: {
|
|
|
2185
2293
|
updatedAt: z.ZodString;
|
|
2186
2294
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2187
2295
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
AMOUNT: "AMOUNT";
|
|
2201
|
-
PERCENTAGE: "PERCENTAGE";
|
|
2296
|
+
params: z.ZodObject<{
|
|
2297
|
+
id: z.ZodString;
|
|
2298
|
+
}, z.core.$strip>;
|
|
2299
|
+
body: z.ZodObject<{
|
|
2300
|
+
patch: z.ZodObject<{
|
|
2301
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2302
|
+
referrerReward: z.ZodOptional<z.ZodObject<{
|
|
2303
|
+
kind: z.ZodEnum<{
|
|
2304
|
+
custom: "custom";
|
|
2305
|
+
discount: "discount";
|
|
2306
|
+
gift_card: "gift_card";
|
|
2307
|
+
loyalty_points: "loyalty_points";
|
|
2202
2308
|
}>;
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2309
|
+
discount: z.ZodOptional<z.ZodObject<{
|
|
2310
|
+
type: z.ZodEnum<{
|
|
2311
|
+
AMOUNT: "AMOUNT";
|
|
2312
|
+
PERCENTAGE: "PERCENTAGE";
|
|
2313
|
+
}>;
|
|
2314
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
2315
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
2316
|
+
maxDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
2317
|
+
}, z.core.$strip>>;
|
|
2318
|
+
creditCents: z.ZodOptional<z.ZodNumber>;
|
|
2319
|
+
loyaltyProgramId: z.ZodOptional<z.ZodString>;
|
|
2320
|
+
loyaltyPoints: z.ZodOptional<z.ZodNumber>;
|
|
2321
|
+
typeKey: z.ZodOptional<z.ZodString>;
|
|
2322
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2206
2323
|
}, z.core.$strip>>;
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
refereeReward: z.ZodOptional<z.ZodObject<{
|
|
2214
|
-
kind: z.ZodEnum<{
|
|
2215
|
-
custom: "custom";
|
|
2216
|
-
discount: "discount";
|
|
2217
|
-
gift_card: "gift_card";
|
|
2218
|
-
loyalty_points: "loyalty_points";
|
|
2219
|
-
}>;
|
|
2220
|
-
discount: z.ZodOptional<z.ZodObject<{
|
|
2221
|
-
type: z.ZodEnum<{
|
|
2222
|
-
AMOUNT: "AMOUNT";
|
|
2223
|
-
PERCENTAGE: "PERCENTAGE";
|
|
2324
|
+
refereeReward: z.ZodOptional<z.ZodObject<{
|
|
2325
|
+
kind: z.ZodEnum<{
|
|
2326
|
+
custom: "custom";
|
|
2327
|
+
discount: "discount";
|
|
2328
|
+
gift_card: "gift_card";
|
|
2329
|
+
loyalty_points: "loyalty_points";
|
|
2224
2330
|
}>;
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2331
|
+
discount: z.ZodOptional<z.ZodObject<{
|
|
2332
|
+
type: z.ZodEnum<{
|
|
2333
|
+
AMOUNT: "AMOUNT";
|
|
2334
|
+
PERCENTAGE: "PERCENTAGE";
|
|
2335
|
+
}>;
|
|
2336
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
2337
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
2338
|
+
maxDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
2339
|
+
}, z.core.$strip>>;
|
|
2340
|
+
creditCents: z.ZodOptional<z.ZodNumber>;
|
|
2341
|
+
loyaltyProgramId: z.ZodOptional<z.ZodString>;
|
|
2342
|
+
loyaltyPoints: z.ZodOptional<z.ZodNumber>;
|
|
2343
|
+
typeKey: z.ZodOptional<z.ZodString>;
|
|
2344
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2228
2345
|
}, z.core.$strip>>;
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
loyaltyPoints: z.ZodOptional<z.ZodNumber>;
|
|
2232
|
-
typeKey: z.ZodOptional<z.ZodString>;
|
|
2233
|
-
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2234
|
-
}, z.core.$strip>>;
|
|
2235
|
-
codeLength: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2346
|
+
codeLength: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2347
|
+
}, z.core.$strip>;
|
|
2236
2348
|
}, z.core.$strip>;
|
|
2237
2349
|
}, z.core.$strip>, z.ZodObject<{
|
|
2238
2350
|
id: z.ZodString;
|
|
@@ -2287,15 +2399,21 @@ declare const contract: {
|
|
|
2287
2399
|
updatedAt: z.ZodString;
|
|
2288
2400
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2289
2401
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2290
|
-
|
|
2402
|
+
params: z.ZodObject<{
|
|
2403
|
+
id: z.ZodString;
|
|
2404
|
+
}, z.core.$strip>;
|
|
2291
2405
|
}, z.core.$strip>, z.ZodObject<{
|
|
2292
2406
|
ok: z.ZodLiteral<true>;
|
|
2293
2407
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2294
2408
|
};
|
|
2295
2409
|
listCodes: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2410
|
+
params: z.ZodObject<{
|
|
2411
|
+
programId: z.ZodString;
|
|
2412
|
+
}, z.core.$strip>;
|
|
2413
|
+
query: z.ZodObject<{
|
|
2414
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2415
|
+
limit: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
2416
|
+
}, z.core.$strip>;
|
|
2299
2417
|
}, z.core.$strip>, z.ZodObject<{
|
|
2300
2418
|
data: z.ZodArray<z.ZodObject<{
|
|
2301
2419
|
id: z.ZodString;
|
|
@@ -2310,9 +2428,13 @@ declare const contract: {
|
|
|
2310
2428
|
prev: z.ZodOptional<z.ZodString>;
|
|
2311
2429
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2312
2430
|
listConversions: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2431
|
+
params: z.ZodObject<{
|
|
2432
|
+
codeId: z.ZodString;
|
|
2433
|
+
}, z.core.$strip>;
|
|
2434
|
+
query: z.ZodObject<{
|
|
2435
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2436
|
+
limit: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
2437
|
+
}, z.core.$strip>;
|
|
2316
2438
|
}, z.core.$strip>, z.ZodObject<{
|
|
2317
2439
|
data: z.ZodArray<z.ZodObject<{
|
|
2318
2440
|
id: z.ZodString;
|
|
@@ -2353,7 +2475,9 @@ declare const contract: {
|
|
|
2353
2475
|
prev: z.ZodOptional<z.ZodString>;
|
|
2354
2476
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2355
2477
|
getByCode: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2356
|
-
|
|
2478
|
+
params: z.ZodObject<{
|
|
2479
|
+
code: z.ZodString;
|
|
2480
|
+
}, z.core.$strip>;
|
|
2357
2481
|
}, z.core.$strip>, z.ZodObject<{
|
|
2358
2482
|
id: z.ZodString;
|
|
2359
2483
|
programId: z.ZodString;
|
|
@@ -2441,7 +2565,9 @@ declare const contract: {
|
|
|
2441
2565
|
token: z.ZodString;
|
|
2442
2566
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2443
2567
|
revoke: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2444
|
-
|
|
2568
|
+
params: z.ZodObject<{
|
|
2569
|
+
id: z.ZodString;
|
|
2570
|
+
}, z.core.$strip>;
|
|
2445
2571
|
}, z.core.$strip>, z.ZodObject<{
|
|
2446
2572
|
ok: z.ZodLiteral<true>;
|
|
2447
2573
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -2460,7 +2586,9 @@ declare const contract: {
|
|
|
2460
2586
|
}, z.core.$strip>>;
|
|
2461
2587
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2462
2588
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2463
|
-
|
|
2589
|
+
params: z.ZodObject<{
|
|
2590
|
+
id: z.ZodString;
|
|
2591
|
+
}, z.core.$strip>;
|
|
2464
2592
|
}, z.core.$strip>, z.ZodObject<{
|
|
2465
2593
|
id: z.ZodString;
|
|
2466
2594
|
name: z.ZodString;
|
|
@@ -2488,12 +2616,16 @@ declare const contract: {
|
|
|
2488
2616
|
secret: z.ZodString;
|
|
2489
2617
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2490
2618
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2619
|
+
params: z.ZodObject<{
|
|
2620
|
+
id: z.ZodString;
|
|
2621
|
+
}, z.core.$strip>;
|
|
2622
|
+
body: z.ZodObject<{
|
|
2623
|
+
patch: z.ZodObject<{
|
|
2624
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2625
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2626
|
+
events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2627
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
2628
|
+
}, z.core.$strip>;
|
|
2497
2629
|
}, z.core.$strip>;
|
|
2498
2630
|
}, z.core.$strip>, z.ZodObject<{
|
|
2499
2631
|
id: z.ZodString;
|
|
@@ -2506,13 +2638,19 @@ declare const contract: {
|
|
|
2506
2638
|
updatedAt: z.ZodString;
|
|
2507
2639
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2508
2640
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2509
|
-
|
|
2641
|
+
params: z.ZodObject<{
|
|
2642
|
+
id: z.ZodString;
|
|
2643
|
+
}, z.core.$strip>;
|
|
2510
2644
|
}, z.core.$strip>, z.ZodObject<{
|
|
2511
2645
|
ok: z.ZodLiteral<true>;
|
|
2512
2646
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2513
2647
|
deliveries: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2514
|
-
|
|
2515
|
-
|
|
2648
|
+
params: z.ZodObject<{
|
|
2649
|
+
id: z.ZodString;
|
|
2650
|
+
}, z.core.$strip>;
|
|
2651
|
+
query: z.ZodObject<{
|
|
2652
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
2653
|
+
}, z.core.$strip>;
|
|
2516
2654
|
}, z.core.$strip>, z.ZodObject<{
|
|
2517
2655
|
data: z.ZodArray<z.ZodObject<{
|
|
2518
2656
|
id: z.ZodString;
|
|
@@ -2535,7 +2673,9 @@ declare const contract: {
|
|
|
2535
2673
|
}, z.core.$strip>>;
|
|
2536
2674
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2537
2675
|
replay: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2538
|
-
|
|
2676
|
+
params: z.ZodObject<{
|
|
2677
|
+
id: z.ZodString;
|
|
2678
|
+
}, z.core.$strip>;
|
|
2539
2679
|
}, z.core.$strip>, z.ZodObject<{
|
|
2540
2680
|
ok: z.ZodLiteral<true>;
|
|
2541
2681
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -2557,7 +2697,9 @@ declare const contract: {
|
|
|
2557
2697
|
prev: z.ZodOptional<z.ZodString>;
|
|
2558
2698
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2559
2699
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2560
|
-
|
|
2700
|
+
params: z.ZodObject<{
|
|
2701
|
+
id: z.ZodString;
|
|
2702
|
+
}, z.core.$strip>;
|
|
2561
2703
|
}, z.core.$strip>, z.ZodObject<{
|
|
2562
2704
|
id: z.ZodString;
|
|
2563
2705
|
type: z.ZodString;
|
|
@@ -2634,7 +2776,9 @@ declare const contract: {
|
|
|
2634
2776
|
password: z.ZodString;
|
|
2635
2777
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2636
2778
|
resetPassword: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2637
|
-
|
|
2779
|
+
params: z.ZodObject<{
|
|
2780
|
+
id: z.ZodString;
|
|
2781
|
+
}, z.core.$strip>;
|
|
2638
2782
|
}, z.core.$strip>, z.ZodObject<{
|
|
2639
2783
|
id: z.ZodString;
|
|
2640
2784
|
email: z.ZodString;
|
|
@@ -2649,11 +2793,15 @@ declare const contract: {
|
|
|
2649
2793
|
password: z.ZodString;
|
|
2650
2794
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2651
2795
|
setRole: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2796
|
+
params: z.ZodObject<{
|
|
2797
|
+
id: z.ZodString;
|
|
2798
|
+
}, z.core.$strip>;
|
|
2799
|
+
body: z.ZodObject<{
|
|
2800
|
+
role: z.ZodEnum<{
|
|
2801
|
+
admin: "admin";
|
|
2802
|
+
member: "member";
|
|
2803
|
+
}>;
|
|
2804
|
+
}, z.core.$strip>;
|
|
2657
2805
|
}, z.core.$strip>, z.ZodObject<{
|
|
2658
2806
|
id: z.ZodString;
|
|
2659
2807
|
email: z.ZodString;
|
|
@@ -2667,7 +2815,9 @@ declare const contract: {
|
|
|
2667
2815
|
createdAt: z.ZodString;
|
|
2668
2816
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2669
2817
|
disable: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2670
|
-
|
|
2818
|
+
params: z.ZodObject<{
|
|
2819
|
+
id: z.ZodString;
|
|
2820
|
+
}, z.core.$strip>;
|
|
2671
2821
|
}, z.core.$strip>, z.ZodObject<{
|
|
2672
2822
|
id: z.ZodString;
|
|
2673
2823
|
email: z.ZodString;
|
|
@@ -2681,7 +2831,9 @@ declare const contract: {
|
|
|
2681
2831
|
createdAt: z.ZodString;
|
|
2682
2832
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2683
2833
|
enable: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2684
|
-
|
|
2834
|
+
params: z.ZodObject<{
|
|
2835
|
+
id: z.ZodString;
|
|
2836
|
+
}, z.core.$strip>;
|
|
2685
2837
|
}, z.core.$strip>, z.ZodObject<{
|
|
2686
2838
|
id: z.ZodString;
|
|
2687
2839
|
email: z.ZodString;
|
|
@@ -2736,7 +2888,9 @@ declare const contract: {
|
|
|
2736
2888
|
prev: z.ZodOptional<z.ZodString>;
|
|
2737
2889
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2738
2890
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2739
|
-
|
|
2891
|
+
params: z.ZodObject<{
|
|
2892
|
+
id: z.ZodString;
|
|
2893
|
+
}, z.core.$strip>;
|
|
2740
2894
|
}, z.core.$strip>, z.ZodObject<{
|
|
2741
2895
|
id: z.ZodString;
|
|
2742
2896
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -2806,16 +2960,20 @@ declare const contract: {
|
|
|
2806
2960
|
updatedAt: z.ZodString;
|
|
2807
2961
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2808
2962
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2963
|
+
params: z.ZodObject<{
|
|
2964
|
+
id: z.ZodString;
|
|
2965
|
+
}, z.core.$strip>;
|
|
2966
|
+
body: z.ZodObject<{
|
|
2967
|
+
patch: z.ZodObject<{
|
|
2968
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2969
|
+
CREATED: "CREATED";
|
|
2970
|
+
PAID: "PAID";
|
|
2971
|
+
CANCELED: "CANCELED";
|
|
2972
|
+
FULFILLED: "FULFILLED";
|
|
2973
|
+
}>>;
|
|
2974
|
+
discountAmount: z.ZodOptional<z.ZodNumber>;
|
|
2975
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2976
|
+
}, z.core.$strip>;
|
|
2819
2977
|
}, z.core.$strip>;
|
|
2820
2978
|
}, z.core.$strip>, z.ZodObject<{
|
|
2821
2979
|
id: z.ZodString;
|
|
@@ -2842,7 +3000,9 @@ declare const contract: {
|
|
|
2842
3000
|
updatedAt: z.ZodString;
|
|
2843
3001
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2844
3002
|
cancel: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2845
|
-
|
|
3003
|
+
params: z.ZodObject<{
|
|
3004
|
+
id: z.ZodString;
|
|
3005
|
+
}, z.core.$strip>;
|
|
2846
3006
|
}, z.core.$strip>, z.ZodObject<{
|
|
2847
3007
|
id: z.ZodString;
|
|
2848
3008
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -2868,7 +3028,9 @@ declare const contract: {
|
|
|
2868
3028
|
updatedAt: z.ZodString;
|
|
2869
3029
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2870
3030
|
fulfill: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2871
|
-
|
|
3031
|
+
params: z.ZodObject<{
|
|
3032
|
+
id: z.ZodString;
|
|
3033
|
+
}, z.core.$strip>;
|
|
2872
3034
|
}, z.core.$strip>, z.ZodObject<{
|
|
2873
3035
|
id: z.ZodString;
|
|
2874
3036
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -2894,12 +3056,16 @@ declare const contract: {
|
|
|
2894
3056
|
updatedAt: z.ZodString;
|
|
2895
3057
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2896
3058
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2897
|
-
|
|
3059
|
+
params: z.ZodObject<{
|
|
3060
|
+
id: z.ZodString;
|
|
3061
|
+
}, z.core.$strip>;
|
|
2898
3062
|
}, z.core.$strip>, z.ZodObject<{
|
|
2899
3063
|
ok: z.ZodLiteral<true>;
|
|
2900
3064
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2901
3065
|
redemptions: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2902
|
-
|
|
3066
|
+
params: z.ZodObject<{
|
|
3067
|
+
id: z.ZodString;
|
|
3068
|
+
}, z.core.$strip>;
|
|
2903
3069
|
}, z.core.$strip>, z.ZodObject<{
|
|
2904
3070
|
data: z.ZodArray<z.ZodObject<{
|
|
2905
3071
|
id: z.ZodString;
|