@offerkit/sdk 0.2.3 → 0.2.5
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.cjs +1898 -0
- package/dist/index.d.cts +3246 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +551 -313
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +238 -140
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -6
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,30 +1094,50 @@ 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>>;
|
|
1063
1103
|
bulk: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1064
1104
|
campaignId: z.ZodString;
|
|
1065
1105
|
count: z.ZodNumber;
|
|
1106
|
+
discount: z.ZodOptional<z.ZodObject<{
|
|
1107
|
+
type: z.ZodEnum<{
|
|
1108
|
+
AMOUNT: "AMOUNT";
|
|
1109
|
+
PERCENTAGE: "PERCENTAGE";
|
|
1110
|
+
}>;
|
|
1111
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1112
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
1113
|
+
maxDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
1114
|
+
appliesTo: z.ZodOptional<z.ZodObject<{
|
|
1115
|
+
productIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1116
|
+
collectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1117
|
+
}, z.core.$strip>>;
|
|
1118
|
+
}, z.core.$strip>>;
|
|
1119
|
+
giftBalance: z.ZodOptional<z.ZodNumber>;
|
|
1066
1120
|
}, z.core.$strip>, z.ZodObject<{
|
|
1067
1121
|
campaignId: z.ZodString;
|
|
1068
1122
|
generated: z.ZodNumber;
|
|
1069
1123
|
jobId: z.ZodOptional<z.ZodString>;
|
|
1070
1124
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1071
1125
|
validate: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1126
|
+
params: z.ZodObject<{
|
|
1127
|
+
code: z.ZodString;
|
|
1128
|
+
}, z.core.$strip>;
|
|
1129
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
1130
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
1131
|
+
amount: z.ZodNumber;
|
|
1132
|
+
currency: z.ZodString;
|
|
1133
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1134
|
+
productId: z.ZodString;
|
|
1135
|
+
collectionId: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
quantity: z.ZodNumber;
|
|
1137
|
+
unitPrice: z.ZodNumber;
|
|
1138
|
+
}, z.core.$strip>>>;
|
|
1139
|
+
}, z.core.$strip>>;
|
|
1140
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
1083
1141
|
}, z.core.$strip>>;
|
|
1084
1142
|
}, z.core.$strip>, z.ZodObject<{
|
|
1085
1143
|
valid: z.ZodBoolean;
|
|
@@ -1087,13 +1145,16 @@ declare const contract: {
|
|
|
1087
1145
|
message: z.ZodOptional<z.ZodString>;
|
|
1088
1146
|
explanations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1089
1147
|
code: z.ZodEnum<{
|
|
1148
|
+
campaign_inactive: "campaign_inactive";
|
|
1090
1149
|
currency_mismatch: "currency_mismatch";
|
|
1150
|
+
no_discount_effect: "no_discount_effect";
|
|
1091
1151
|
exclusivity_lost: "exclusivity_lost";
|
|
1092
1152
|
zero_after_running_total: "zero_after_running_total";
|
|
1093
1153
|
voucher_not_found: "voucher_not_found";
|
|
1094
1154
|
voucher_disabled: "voucher_disabled";
|
|
1095
1155
|
voucher_expired: "voucher_expired";
|
|
1096
1156
|
redemption_limit_reached: "redemption_limit_reached";
|
|
1157
|
+
validation_failed: "validation_failed";
|
|
1097
1158
|
gift_balance_zero: "gift_balance_zero";
|
|
1098
1159
|
order_required: "order_required";
|
|
1099
1160
|
gift_card_stacking_unsupported: "gift_card_stacking_unsupported";
|
|
@@ -1183,21 +1244,25 @@ declare const contract: {
|
|
|
1183
1244
|
}, z.core.$strip>>;
|
|
1184
1245
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1185
1246
|
redeem: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1247
|
+
params: z.ZodObject<{
|
|
1248
|
+
code: z.ZodString;
|
|
1249
|
+
}, z.core.$strip>;
|
|
1250
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
1251
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
1252
|
+
amount: z.ZodNumber;
|
|
1253
|
+
currency: z.ZodString;
|
|
1254
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1255
|
+
productId: z.ZodString;
|
|
1256
|
+
collectionId: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
quantity: z.ZodNumber;
|
|
1258
|
+
unitPrice: z.ZodNumber;
|
|
1259
|
+
}, z.core.$strip>>>;
|
|
1260
|
+
}, z.core.$strip>>;
|
|
1261
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
1262
|
+
orderId: z.ZodOptional<z.ZodString>;
|
|
1263
|
+
externalOrderId: z.ZodOptional<z.ZodString>;
|
|
1264
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1197
1265
|
}, z.core.$strip>>;
|
|
1198
|
-
orderId: z.ZodOptional<z.ZodString>;
|
|
1199
|
-
externalOrderId: z.ZodOptional<z.ZodString>;
|
|
1200
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1201
1266
|
}, z.core.$strip>, z.ZodObject<{
|
|
1202
1267
|
ok: z.ZodBoolean;
|
|
1203
1268
|
redemptionId: z.ZodOptional<z.ZodString>;
|
|
@@ -1224,13 +1289,16 @@ declare const contract: {
|
|
|
1224
1289
|
message: z.ZodOptional<z.ZodString>;
|
|
1225
1290
|
explanations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1226
1291
|
code: z.ZodEnum<{
|
|
1292
|
+
campaign_inactive: "campaign_inactive";
|
|
1227
1293
|
currency_mismatch: "currency_mismatch";
|
|
1294
|
+
no_discount_effect: "no_discount_effect";
|
|
1228
1295
|
exclusivity_lost: "exclusivity_lost";
|
|
1229
1296
|
zero_after_running_total: "zero_after_running_total";
|
|
1230
1297
|
voucher_not_found: "voucher_not_found";
|
|
1231
1298
|
voucher_disabled: "voucher_disabled";
|
|
1232
1299
|
voucher_expired: "voucher_expired";
|
|
1233
1300
|
redemption_limit_reached: "redemption_limit_reached";
|
|
1301
|
+
validation_failed: "validation_failed";
|
|
1234
1302
|
gift_balance_zero: "gift_balance_zero";
|
|
1235
1303
|
order_required: "order_required";
|
|
1236
1304
|
gift_card_stacking_unsupported: "gift_card_stacking_unsupported";
|
|
@@ -1289,13 +1357,16 @@ declare const contract: {
|
|
|
1289
1357
|
message: z.ZodOptional<z.ZodString>;
|
|
1290
1358
|
explanations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1291
1359
|
code: z.ZodEnum<{
|
|
1360
|
+
campaign_inactive: "campaign_inactive";
|
|
1292
1361
|
currency_mismatch: "currency_mismatch";
|
|
1362
|
+
no_discount_effect: "no_discount_effect";
|
|
1293
1363
|
exclusivity_lost: "exclusivity_lost";
|
|
1294
1364
|
zero_after_running_total: "zero_after_running_total";
|
|
1295
1365
|
voucher_not_found: "voucher_not_found";
|
|
1296
1366
|
voucher_disabled: "voucher_disabled";
|
|
1297
1367
|
voucher_expired: "voucher_expired";
|
|
1298
1368
|
redemption_limit_reached: "redemption_limit_reached";
|
|
1369
|
+
validation_failed: "validation_failed";
|
|
1299
1370
|
gift_balance_zero: "gift_balance_zero";
|
|
1300
1371
|
order_required: "order_required";
|
|
1301
1372
|
gift_card_stacking_unsupported: "gift_card_stacking_unsupported";
|
|
@@ -1307,7 +1378,9 @@ declare const contract: {
|
|
|
1307
1378
|
}, z.core.$strip>>>;
|
|
1308
1379
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1309
1380
|
transactions: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1310
|
-
|
|
1381
|
+
params: z.ZodObject<{
|
|
1382
|
+
code: z.ZodString;
|
|
1383
|
+
}, z.core.$strip>;
|
|
1311
1384
|
}, z.core.$strip>, z.ZodObject<{
|
|
1312
1385
|
data: z.ZodArray<z.ZodObject<{
|
|
1313
1386
|
id: z.ZodString;
|
|
@@ -1348,7 +1421,9 @@ declare const contract: {
|
|
|
1348
1421
|
prev: z.ZodOptional<z.ZodString>;
|
|
1349
1422
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1350
1423
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1351
|
-
|
|
1424
|
+
params: z.ZodObject<{
|
|
1425
|
+
id: z.ZodString;
|
|
1426
|
+
}, z.core.$strip>;
|
|
1352
1427
|
}, z.core.$strip>, z.ZodObject<{
|
|
1353
1428
|
id: z.ZodString;
|
|
1354
1429
|
name: z.ZodString;
|
|
@@ -1388,17 +1463,21 @@ declare const contract: {
|
|
|
1388
1463
|
updatedAt: z.ZodString;
|
|
1389
1464
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1390
1465
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1466
|
+
params: z.ZodObject<{
|
|
1467
|
+
id: z.ZodString;
|
|
1468
|
+
}, z.core.$strip>;
|
|
1469
|
+
body: z.ZodObject<{
|
|
1470
|
+
patch: z.ZodObject<{
|
|
1471
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1473
|
+
rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1474
|
+
appliesTo: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1475
|
+
promotion: "promotion";
|
|
1476
|
+
voucher: "voucher";
|
|
1477
|
+
earn: "earn";
|
|
1478
|
+
reward: "reward";
|
|
1479
|
+
}>>>;
|
|
1480
|
+
}, z.core.$strip>;
|
|
1402
1481
|
}, z.core.$strip>;
|
|
1403
1482
|
}, z.core.$strip>, z.ZodObject<{
|
|
1404
1483
|
id: z.ZodString;
|
|
@@ -1415,7 +1494,9 @@ declare const contract: {
|
|
|
1415
1494
|
updatedAt: z.ZodString;
|
|
1416
1495
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1417
1496
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1418
|
-
|
|
1497
|
+
params: z.ZodObject<{
|
|
1498
|
+
id: z.ZodString;
|
|
1499
|
+
}, z.core.$strip>;
|
|
1419
1500
|
}, z.core.$strip>, z.ZodObject<{
|
|
1420
1501
|
ok: z.ZodLiteral<true>;
|
|
1421
1502
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1439,7 +1520,9 @@ declare const contract: {
|
|
|
1439
1520
|
prev: z.ZodOptional<z.ZodString>;
|
|
1440
1521
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1441
1522
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1442
|
-
|
|
1523
|
+
params: z.ZodObject<{
|
|
1524
|
+
id: z.ZodString;
|
|
1525
|
+
}, z.core.$strip>;
|
|
1443
1526
|
}, z.core.$strip>, z.ZodObject<{
|
|
1444
1527
|
id: z.ZodString;
|
|
1445
1528
|
key: z.ZodString;
|
|
@@ -1464,11 +1547,15 @@ declare const contract: {
|
|
|
1464
1547
|
updatedAt: z.ZodString;
|
|
1465
1548
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1466
1549
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1550
|
+
params: z.ZodObject<{
|
|
1551
|
+
id: z.ZodString;
|
|
1552
|
+
}, z.core.$strip>;
|
|
1553
|
+
body: z.ZodObject<{
|
|
1554
|
+
patch: z.ZodObject<{
|
|
1555
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1557
|
+
payloadSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1558
|
+
}, z.core.$strip>;
|
|
1472
1559
|
}, z.core.$strip>;
|
|
1473
1560
|
}, z.core.$strip>, z.ZodObject<{
|
|
1474
1561
|
id: z.ZodString;
|
|
@@ -1480,7 +1567,9 @@ declare const contract: {
|
|
|
1480
1567
|
updatedAt: z.ZodString;
|
|
1481
1568
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1482
1569
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1483
|
-
|
|
1570
|
+
params: z.ZodObject<{
|
|
1571
|
+
id: z.ZodString;
|
|
1572
|
+
}, z.core.$strip>;
|
|
1484
1573
|
}, z.core.$strip>, z.ZodObject<{
|
|
1485
1574
|
ok: z.ZodLiteral<true>;
|
|
1486
1575
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1503,7 +1592,9 @@ declare const contract: {
|
|
|
1503
1592
|
prev: z.ZodOptional<z.ZodString>;
|
|
1504
1593
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1505
1594
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1506
|
-
|
|
1595
|
+
params: z.ZodObject<{
|
|
1596
|
+
id: z.ZodString;
|
|
1597
|
+
}, z.core.$strip>;
|
|
1507
1598
|
}, z.core.$strip>, z.ZodObject<{
|
|
1508
1599
|
id: z.ZodString;
|
|
1509
1600
|
campaignId: z.ZodString;
|
|
@@ -1525,10 +1616,14 @@ declare const contract: {
|
|
|
1525
1616
|
updatedAt: z.ZodString;
|
|
1526
1617
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1527
1618
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1619
|
+
params: z.ZodObject<{
|
|
1620
|
+
id: z.ZodString;
|
|
1621
|
+
}, z.core.$strip>;
|
|
1622
|
+
body: z.ZodObject<{
|
|
1623
|
+
patch: z.ZodObject<{
|
|
1624
|
+
pointsExpiryDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1625
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1626
|
+
}, z.core.$strip>;
|
|
1532
1627
|
}, z.core.$strip>;
|
|
1533
1628
|
}, z.core.$strip>, z.ZodObject<{
|
|
1534
1629
|
id: z.ZodString;
|
|
@@ -1539,14 +1634,18 @@ declare const contract: {
|
|
|
1539
1634
|
updatedAt: z.ZodString;
|
|
1540
1635
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1541
1636
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1542
|
-
|
|
1637
|
+
params: z.ZodObject<{
|
|
1638
|
+
id: z.ZodString;
|
|
1639
|
+
}, z.core.$strip>;
|
|
1543
1640
|
}, z.core.$strip>, z.ZodObject<{
|
|
1544
1641
|
ok: z.ZodLiteral<true>;
|
|
1545
1642
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1546
1643
|
};
|
|
1547
1644
|
tiers: {
|
|
1548
1645
|
list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1549
|
-
|
|
1646
|
+
params: z.ZodObject<{
|
|
1647
|
+
programId: z.ZodString;
|
|
1648
|
+
}, z.core.$strip>;
|
|
1550
1649
|
}, z.core.$strip>, z.ZodObject<{
|
|
1551
1650
|
data: z.ZodArray<z.ZodObject<{
|
|
1552
1651
|
id: z.ZodString;
|
|
@@ -1572,14 +1671,18 @@ declare const contract: {
|
|
|
1572
1671
|
sortOrder: z.ZodNumber;
|
|
1573
1672
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1574
1673
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1578
|
-
threshold: z.ZodOptional<z.ZodNumber>;
|
|
1579
|
-
earnMultiplier: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1580
|
-
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1674
|
+
params: z.ZodObject<{
|
|
1675
|
+
id: z.ZodString;
|
|
1581
1676
|
}, z.core.$strip>;
|
|
1582
|
-
|
|
1677
|
+
body: z.ZodObject<{
|
|
1678
|
+
patch: z.ZodObject<{
|
|
1679
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
1681
|
+
earnMultiplier: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1682
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1683
|
+
}, z.core.$strip>;
|
|
1684
|
+
}, z.core.$strip>;
|
|
1685
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1583
1686
|
id: z.ZodString;
|
|
1584
1687
|
programId: z.ZodString;
|
|
1585
1688
|
name: z.ZodString;
|
|
@@ -1588,14 +1691,18 @@ declare const contract: {
|
|
|
1588
1691
|
sortOrder: z.ZodNumber;
|
|
1589
1692
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1590
1693
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1591
|
-
|
|
1694
|
+
params: z.ZodObject<{
|
|
1695
|
+
id: z.ZodString;
|
|
1696
|
+
}, z.core.$strip>;
|
|
1592
1697
|
}, z.core.$strip>, z.ZodObject<{
|
|
1593
1698
|
ok: z.ZodLiteral<true>;
|
|
1594
1699
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1595
1700
|
};
|
|
1596
1701
|
earningRules: {
|
|
1597
1702
|
list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1598
|
-
|
|
1703
|
+
params: z.ZodObject<{
|
|
1704
|
+
programId: z.ZodString;
|
|
1705
|
+
}, z.core.$strip>;
|
|
1599
1706
|
}, z.core.$strip>, z.ZodObject<{
|
|
1600
1707
|
data: z.ZodArray<z.ZodObject<{
|
|
1601
1708
|
id: z.ZodString;
|
|
@@ -1657,24 +1764,28 @@ declare const contract: {
|
|
|
1657
1764
|
}>;
|
|
1658
1765
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1659
1766
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1767
|
+
params: z.ZodObject<{
|
|
1768
|
+
id: z.ZodString;
|
|
1769
|
+
}, z.core.$strip>;
|
|
1770
|
+
body: z.ZodObject<{
|
|
1771
|
+
patch: z.ZodObject<{
|
|
1772
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1773
|
+
active: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1774
|
+
yes: "yes";
|
|
1775
|
+
no: "no";
|
|
1776
|
+
}>>>;
|
|
1777
|
+
validationRuleId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1778
|
+
formula: z.ZodOptional<z.ZodObject<{
|
|
1779
|
+
kind: z.ZodEnum<{
|
|
1780
|
+
custom: "custom";
|
|
1781
|
+
fixed: "fixed";
|
|
1782
|
+
per_cents: "per_cents";
|
|
1783
|
+
}>;
|
|
1784
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1785
|
+
divisor: z.ZodOptional<z.ZodNumber>;
|
|
1786
|
+
}, z.core.$strip>>;
|
|
1787
|
+
event: z.ZodOptional<z.ZodString>;
|
|
1788
|
+
}, z.core.$strip>;
|
|
1678
1789
|
}, z.core.$strip>;
|
|
1679
1790
|
}, z.core.$strip>, z.ZodObject<{
|
|
1680
1791
|
id: z.ZodString;
|
|
@@ -1697,14 +1808,18 @@ declare const contract: {
|
|
|
1697
1808
|
}>;
|
|
1698
1809
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1699
1810
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1700
|
-
|
|
1811
|
+
params: z.ZodObject<{
|
|
1812
|
+
id: z.ZodString;
|
|
1813
|
+
}, z.core.$strip>;
|
|
1701
1814
|
}, z.core.$strip>, z.ZodObject<{
|
|
1702
1815
|
ok: z.ZodLiteral<true>;
|
|
1703
1816
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1704
1817
|
};
|
|
1705
1818
|
rewards: {
|
|
1706
1819
|
list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1707
|
-
|
|
1820
|
+
params: z.ZodObject<{
|
|
1821
|
+
programId: z.ZodString;
|
|
1822
|
+
}, z.core.$strip>;
|
|
1708
1823
|
}, z.core.$strip>, z.ZodObject<{
|
|
1709
1824
|
data: z.ZodArray<z.ZodObject<{
|
|
1710
1825
|
id: z.ZodString;
|
|
@@ -1784,30 +1899,34 @@ declare const contract: {
|
|
|
1784
1899
|
}, z.core.$strip>;
|
|
1785
1900
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1786
1901
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
AMOUNT: "AMOUNT";
|
|
1800
|
-
PERCENTAGE: "PERCENTAGE";
|
|
1902
|
+
params: z.ZodObject<{
|
|
1903
|
+
id: z.ZodString;
|
|
1904
|
+
}, z.core.$strip>;
|
|
1905
|
+
body: z.ZodObject<{
|
|
1906
|
+
patch: z.ZodObject<{
|
|
1907
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1908
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1909
|
+
payload: z.ZodOptional<z.ZodObject<{
|
|
1910
|
+
kind: z.ZodEnum<{
|
|
1911
|
+
custom: "custom";
|
|
1912
|
+
discount: "discount";
|
|
1913
|
+
gift_card: "gift_card";
|
|
1801
1914
|
}>;
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1915
|
+
discount: z.ZodOptional<z.ZodObject<{
|
|
1916
|
+
type: z.ZodEnum<{
|
|
1917
|
+
AMOUNT: "AMOUNT";
|
|
1918
|
+
PERCENTAGE: "PERCENTAGE";
|
|
1919
|
+
}>;
|
|
1920
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1921
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
1922
|
+
maxDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
1923
|
+
}, z.core.$strip>>;
|
|
1924
|
+
creditCents: z.ZodOptional<z.ZodNumber>;
|
|
1925
|
+
typeKey: z.ZodOptional<z.ZodString>;
|
|
1926
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1805
1927
|
}, 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>;
|
|
1928
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
1929
|
+
}, z.core.$strip>;
|
|
1811
1930
|
}, z.core.$strip>;
|
|
1812
1931
|
}, z.core.$strip>, z.ZodObject<{
|
|
1813
1932
|
id: z.ZodString;
|
|
@@ -1836,16 +1955,22 @@ declare const contract: {
|
|
|
1836
1955
|
}, z.core.$strip>;
|
|
1837
1956
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1838
1957
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1839
|
-
|
|
1958
|
+
params: z.ZodObject<{
|
|
1959
|
+
id: z.ZodString;
|
|
1960
|
+
}, z.core.$strip>;
|
|
1840
1961
|
}, z.core.$strip>, z.ZodObject<{
|
|
1841
1962
|
ok: z.ZodLiteral<true>;
|
|
1842
1963
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1843
1964
|
};
|
|
1844
1965
|
members: {
|
|
1845
1966
|
list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1967
|
+
params: z.ZodObject<{
|
|
1968
|
+
programId: z.ZodString;
|
|
1969
|
+
}, z.core.$strip>;
|
|
1970
|
+
query: z.ZodObject<{
|
|
1971
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1972
|
+
limit: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
1973
|
+
}, z.core.$strip>;
|
|
1849
1974
|
}, z.core.$strip>, z.ZodObject<{
|
|
1850
1975
|
data: z.ZodArray<z.ZodObject<{
|
|
1851
1976
|
id: z.ZodString;
|
|
@@ -1860,7 +1985,9 @@ declare const contract: {
|
|
|
1860
1985
|
prev: z.ZodOptional<z.ZodString>;
|
|
1861
1986
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1862
1987
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1863
|
-
|
|
1988
|
+
params: z.ZodObject<{
|
|
1989
|
+
id: z.ZodString;
|
|
1990
|
+
}, z.core.$strip>;
|
|
1864
1991
|
}, z.core.$strip>, z.ZodObject<{
|
|
1865
1992
|
id: z.ZodString;
|
|
1866
1993
|
customerId: z.ZodString;
|
|
@@ -1944,7 +2071,9 @@ declare const contract: {
|
|
|
1944
2071
|
message: z.ZodOptional<z.ZodString>;
|
|
1945
2072
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1946
2073
|
history: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1947
|
-
|
|
2074
|
+
params: z.ZodObject<{
|
|
2075
|
+
id: z.ZodString;
|
|
2076
|
+
}, z.core.$strip>;
|
|
1948
2077
|
}, z.core.$strip>, z.ZodObject<{
|
|
1949
2078
|
data: z.ZodArray<z.ZodObject<{
|
|
1950
2079
|
id: z.ZodString;
|
|
@@ -2031,7 +2160,9 @@ declare const contract: {
|
|
|
2031
2160
|
prev: z.ZodOptional<z.ZodString>;
|
|
2032
2161
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2033
2162
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2034
|
-
|
|
2163
|
+
params: z.ZodObject<{
|
|
2164
|
+
id: z.ZodString;
|
|
2165
|
+
}, z.core.$strip>;
|
|
2035
2166
|
}, z.core.$strip>, z.ZodObject<{
|
|
2036
2167
|
id: z.ZodString;
|
|
2037
2168
|
campaignId: z.ZodString;
|
|
@@ -2185,54 +2316,58 @@ declare const contract: {
|
|
|
2185
2316
|
updatedAt: z.ZodString;
|
|
2186
2317
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2187
2318
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
AMOUNT: "AMOUNT";
|
|
2201
|
-
PERCENTAGE: "PERCENTAGE";
|
|
2319
|
+
params: z.ZodObject<{
|
|
2320
|
+
id: z.ZodString;
|
|
2321
|
+
}, z.core.$strip>;
|
|
2322
|
+
body: z.ZodObject<{
|
|
2323
|
+
patch: z.ZodObject<{
|
|
2324
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2325
|
+
referrerReward: z.ZodOptional<z.ZodObject<{
|
|
2326
|
+
kind: z.ZodEnum<{
|
|
2327
|
+
custom: "custom";
|
|
2328
|
+
discount: "discount";
|
|
2329
|
+
gift_card: "gift_card";
|
|
2330
|
+
loyalty_points: "loyalty_points";
|
|
2202
2331
|
}>;
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2332
|
+
discount: z.ZodOptional<z.ZodObject<{
|
|
2333
|
+
type: z.ZodEnum<{
|
|
2334
|
+
AMOUNT: "AMOUNT";
|
|
2335
|
+
PERCENTAGE: "PERCENTAGE";
|
|
2336
|
+
}>;
|
|
2337
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
2338
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
2339
|
+
maxDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
2340
|
+
}, z.core.$strip>>;
|
|
2341
|
+
creditCents: z.ZodOptional<z.ZodNumber>;
|
|
2342
|
+
loyaltyProgramId: z.ZodOptional<z.ZodString>;
|
|
2343
|
+
loyaltyPoints: z.ZodOptional<z.ZodNumber>;
|
|
2344
|
+
typeKey: z.ZodOptional<z.ZodString>;
|
|
2345
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2206
2346
|
}, 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";
|
|
2347
|
+
refereeReward: z.ZodOptional<z.ZodObject<{
|
|
2348
|
+
kind: z.ZodEnum<{
|
|
2349
|
+
custom: "custom";
|
|
2350
|
+
discount: "discount";
|
|
2351
|
+
gift_card: "gift_card";
|
|
2352
|
+
loyalty_points: "loyalty_points";
|
|
2224
2353
|
}>;
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2354
|
+
discount: z.ZodOptional<z.ZodObject<{
|
|
2355
|
+
type: z.ZodEnum<{
|
|
2356
|
+
AMOUNT: "AMOUNT";
|
|
2357
|
+
PERCENTAGE: "PERCENTAGE";
|
|
2358
|
+
}>;
|
|
2359
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
2360
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
2361
|
+
maxDiscountAmount: z.ZodOptional<z.ZodNumber>;
|
|
2362
|
+
}, z.core.$strip>>;
|
|
2363
|
+
creditCents: z.ZodOptional<z.ZodNumber>;
|
|
2364
|
+
loyaltyProgramId: z.ZodOptional<z.ZodString>;
|
|
2365
|
+
loyaltyPoints: z.ZodOptional<z.ZodNumber>;
|
|
2366
|
+
typeKey: z.ZodOptional<z.ZodString>;
|
|
2367
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2228
2368
|
}, 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>>;
|
|
2369
|
+
codeLength: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2370
|
+
}, z.core.$strip>;
|
|
2236
2371
|
}, z.core.$strip>;
|
|
2237
2372
|
}, z.core.$strip>, z.ZodObject<{
|
|
2238
2373
|
id: z.ZodString;
|
|
@@ -2287,15 +2422,21 @@ declare const contract: {
|
|
|
2287
2422
|
updatedAt: z.ZodString;
|
|
2288
2423
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2289
2424
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2290
|
-
|
|
2425
|
+
params: z.ZodObject<{
|
|
2426
|
+
id: z.ZodString;
|
|
2427
|
+
}, z.core.$strip>;
|
|
2291
2428
|
}, z.core.$strip>, z.ZodObject<{
|
|
2292
2429
|
ok: z.ZodLiteral<true>;
|
|
2293
2430
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2294
2431
|
};
|
|
2295
2432
|
listCodes: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2433
|
+
params: z.ZodObject<{
|
|
2434
|
+
programId: z.ZodString;
|
|
2435
|
+
}, z.core.$strip>;
|
|
2436
|
+
query: z.ZodObject<{
|
|
2437
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2438
|
+
limit: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
2439
|
+
}, z.core.$strip>;
|
|
2299
2440
|
}, z.core.$strip>, z.ZodObject<{
|
|
2300
2441
|
data: z.ZodArray<z.ZodObject<{
|
|
2301
2442
|
id: z.ZodString;
|
|
@@ -2310,9 +2451,13 @@ declare const contract: {
|
|
|
2310
2451
|
prev: z.ZodOptional<z.ZodString>;
|
|
2311
2452
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2312
2453
|
listConversions: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2454
|
+
params: z.ZodObject<{
|
|
2455
|
+
codeId: z.ZodString;
|
|
2456
|
+
}, z.core.$strip>;
|
|
2457
|
+
query: z.ZodObject<{
|
|
2458
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2459
|
+
limit: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
2460
|
+
}, z.core.$strip>;
|
|
2316
2461
|
}, z.core.$strip>, z.ZodObject<{
|
|
2317
2462
|
data: z.ZodArray<z.ZodObject<{
|
|
2318
2463
|
id: z.ZodString;
|
|
@@ -2352,8 +2497,59 @@ declare const contract: {
|
|
|
2352
2497
|
next: z.ZodOptional<z.ZodString>;
|
|
2353
2498
|
prev: z.ZodOptional<z.ZodString>;
|
|
2354
2499
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2500
|
+
listProgramConversions: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2501
|
+
params: z.ZodObject<{
|
|
2502
|
+
programId: z.ZodString;
|
|
2503
|
+
}, z.core.$strip>;
|
|
2504
|
+
query: z.ZodObject<{
|
|
2505
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2506
|
+
limit: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
2507
|
+
}, z.core.$strip>;
|
|
2508
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2509
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2510
|
+
id: z.ZodString;
|
|
2511
|
+
codeId: z.ZodString;
|
|
2512
|
+
refereeCustomerId: z.ZodString;
|
|
2513
|
+
status: z.ZodEnum<{
|
|
2514
|
+
converted: "converted";
|
|
2515
|
+
rejected: "rejected";
|
|
2516
|
+
}>;
|
|
2517
|
+
convertedAt: z.ZodString;
|
|
2518
|
+
conversionEventId: z.ZodNullable<z.ZodString>;
|
|
2519
|
+
referrerOutcome: z.ZodObject<{
|
|
2520
|
+
kind: z.ZodEnum<{
|
|
2521
|
+
custom: "custom";
|
|
2522
|
+
discount: "discount";
|
|
2523
|
+
gift_card: "gift_card";
|
|
2524
|
+
loyalty_points: "loyalty_points";
|
|
2525
|
+
}>;
|
|
2526
|
+
voucherCode: z.ZodOptional<z.ZodString>;
|
|
2527
|
+
loyaltyTransactionId: z.ZodOptional<z.ZodString>;
|
|
2528
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2529
|
+
}, z.core.$strip>;
|
|
2530
|
+
refereeOutcome: z.ZodObject<{
|
|
2531
|
+
kind: z.ZodEnum<{
|
|
2532
|
+
custom: "custom";
|
|
2533
|
+
discount: "discount";
|
|
2534
|
+
gift_card: "gift_card";
|
|
2535
|
+
loyalty_points: "loyalty_points";
|
|
2536
|
+
}>;
|
|
2537
|
+
voucherCode: z.ZodOptional<z.ZodString>;
|
|
2538
|
+
loyaltyTransactionId: z.ZodOptional<z.ZodString>;
|
|
2539
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2540
|
+
}, z.core.$strip>;
|
|
2541
|
+
createdAt: z.ZodString;
|
|
2542
|
+
updatedAt: z.ZodString;
|
|
2543
|
+
code: z.ZodString;
|
|
2544
|
+
referrerCustomerId: z.ZodString;
|
|
2545
|
+
}, z.core.$strip>>;
|
|
2546
|
+
next: z.ZodOptional<z.ZodString>;
|
|
2547
|
+
prev: z.ZodOptional<z.ZodString>;
|
|
2548
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2355
2549
|
getByCode: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2356
|
-
|
|
2550
|
+
params: z.ZodObject<{
|
|
2551
|
+
code: z.ZodString;
|
|
2552
|
+
}, z.core.$strip>;
|
|
2357
2553
|
}, z.core.$strip>, z.ZodObject<{
|
|
2358
2554
|
id: z.ZodString;
|
|
2359
2555
|
programId: z.ZodString;
|
|
@@ -2441,7 +2637,9 @@ declare const contract: {
|
|
|
2441
2637
|
token: z.ZodString;
|
|
2442
2638
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2443
2639
|
revoke: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2444
|
-
|
|
2640
|
+
params: z.ZodObject<{
|
|
2641
|
+
id: z.ZodString;
|
|
2642
|
+
}, z.core.$strip>;
|
|
2445
2643
|
}, z.core.$strip>, z.ZodObject<{
|
|
2446
2644
|
ok: z.ZodLiteral<true>;
|
|
2447
2645
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -2460,7 +2658,9 @@ declare const contract: {
|
|
|
2460
2658
|
}, z.core.$strip>>;
|
|
2461
2659
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2462
2660
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2463
|
-
|
|
2661
|
+
params: z.ZodObject<{
|
|
2662
|
+
id: z.ZodString;
|
|
2663
|
+
}, z.core.$strip>;
|
|
2464
2664
|
}, z.core.$strip>, z.ZodObject<{
|
|
2465
2665
|
id: z.ZodString;
|
|
2466
2666
|
name: z.ZodString;
|
|
@@ -2488,12 +2688,16 @@ declare const contract: {
|
|
|
2488
2688
|
secret: z.ZodString;
|
|
2489
2689
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2490
2690
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2691
|
+
params: z.ZodObject<{
|
|
2692
|
+
id: z.ZodString;
|
|
2693
|
+
}, z.core.$strip>;
|
|
2694
|
+
body: z.ZodObject<{
|
|
2695
|
+
patch: z.ZodObject<{
|
|
2696
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2697
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2698
|
+
events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2699
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
2700
|
+
}, z.core.$strip>;
|
|
2497
2701
|
}, z.core.$strip>;
|
|
2498
2702
|
}, z.core.$strip>, z.ZodObject<{
|
|
2499
2703
|
id: z.ZodString;
|
|
@@ -2506,13 +2710,19 @@ declare const contract: {
|
|
|
2506
2710
|
updatedAt: z.ZodString;
|
|
2507
2711
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2508
2712
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2509
|
-
|
|
2713
|
+
params: z.ZodObject<{
|
|
2714
|
+
id: z.ZodString;
|
|
2715
|
+
}, z.core.$strip>;
|
|
2510
2716
|
}, z.core.$strip>, z.ZodObject<{
|
|
2511
2717
|
ok: z.ZodLiteral<true>;
|
|
2512
2718
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2513
2719
|
deliveries: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2514
|
-
|
|
2515
|
-
|
|
2720
|
+
params: z.ZodObject<{
|
|
2721
|
+
id: z.ZodString;
|
|
2722
|
+
}, z.core.$strip>;
|
|
2723
|
+
query: z.ZodObject<{
|
|
2724
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
2725
|
+
}, z.core.$strip>;
|
|
2516
2726
|
}, z.core.$strip>, z.ZodObject<{
|
|
2517
2727
|
data: z.ZodArray<z.ZodObject<{
|
|
2518
2728
|
id: z.ZodString;
|
|
@@ -2535,7 +2745,9 @@ declare const contract: {
|
|
|
2535
2745
|
}, z.core.$strip>>;
|
|
2536
2746
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2537
2747
|
replay: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2538
|
-
|
|
2748
|
+
params: z.ZodObject<{
|
|
2749
|
+
id: z.ZodString;
|
|
2750
|
+
}, z.core.$strip>;
|
|
2539
2751
|
}, z.core.$strip>, z.ZodObject<{
|
|
2540
2752
|
ok: z.ZodLiteral<true>;
|
|
2541
2753
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -2557,7 +2769,9 @@ declare const contract: {
|
|
|
2557
2769
|
prev: z.ZodOptional<z.ZodString>;
|
|
2558
2770
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2559
2771
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2560
|
-
|
|
2772
|
+
params: z.ZodObject<{
|
|
2773
|
+
id: z.ZodString;
|
|
2774
|
+
}, z.core.$strip>;
|
|
2561
2775
|
}, z.core.$strip>, z.ZodObject<{
|
|
2562
2776
|
id: z.ZodString;
|
|
2563
2777
|
type: z.ZodString;
|
|
@@ -2634,7 +2848,9 @@ declare const contract: {
|
|
|
2634
2848
|
password: z.ZodString;
|
|
2635
2849
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2636
2850
|
resetPassword: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2637
|
-
|
|
2851
|
+
params: z.ZodObject<{
|
|
2852
|
+
id: z.ZodString;
|
|
2853
|
+
}, z.core.$strip>;
|
|
2638
2854
|
}, z.core.$strip>, z.ZodObject<{
|
|
2639
2855
|
id: z.ZodString;
|
|
2640
2856
|
email: z.ZodString;
|
|
@@ -2649,11 +2865,15 @@ declare const contract: {
|
|
|
2649
2865
|
password: z.ZodString;
|
|
2650
2866
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2651
2867
|
setRole: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2868
|
+
params: z.ZodObject<{
|
|
2869
|
+
id: z.ZodString;
|
|
2870
|
+
}, z.core.$strip>;
|
|
2871
|
+
body: z.ZodObject<{
|
|
2872
|
+
role: z.ZodEnum<{
|
|
2873
|
+
admin: "admin";
|
|
2874
|
+
member: "member";
|
|
2875
|
+
}>;
|
|
2876
|
+
}, z.core.$strip>;
|
|
2657
2877
|
}, z.core.$strip>, z.ZodObject<{
|
|
2658
2878
|
id: z.ZodString;
|
|
2659
2879
|
email: z.ZodString;
|
|
@@ -2667,7 +2887,9 @@ declare const contract: {
|
|
|
2667
2887
|
createdAt: z.ZodString;
|
|
2668
2888
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2669
2889
|
disable: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2670
|
-
|
|
2890
|
+
params: z.ZodObject<{
|
|
2891
|
+
id: z.ZodString;
|
|
2892
|
+
}, z.core.$strip>;
|
|
2671
2893
|
}, z.core.$strip>, z.ZodObject<{
|
|
2672
2894
|
id: z.ZodString;
|
|
2673
2895
|
email: z.ZodString;
|
|
@@ -2681,7 +2903,9 @@ declare const contract: {
|
|
|
2681
2903
|
createdAt: z.ZodString;
|
|
2682
2904
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2683
2905
|
enable: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2684
|
-
|
|
2906
|
+
params: z.ZodObject<{
|
|
2907
|
+
id: z.ZodString;
|
|
2908
|
+
}, z.core.$strip>;
|
|
2685
2909
|
}, z.core.$strip>, z.ZodObject<{
|
|
2686
2910
|
id: z.ZodString;
|
|
2687
2911
|
email: z.ZodString;
|
|
@@ -2736,7 +2960,9 @@ declare const contract: {
|
|
|
2736
2960
|
prev: z.ZodOptional<z.ZodString>;
|
|
2737
2961
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2738
2962
|
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2739
|
-
|
|
2963
|
+
params: z.ZodObject<{
|
|
2964
|
+
id: z.ZodString;
|
|
2965
|
+
}, z.core.$strip>;
|
|
2740
2966
|
}, z.core.$strip>, z.ZodObject<{
|
|
2741
2967
|
id: z.ZodString;
|
|
2742
2968
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -2806,16 +3032,20 @@ declare const contract: {
|
|
|
2806
3032
|
updatedAt: z.ZodString;
|
|
2807
3033
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2808
3034
|
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
3035
|
+
params: z.ZodObject<{
|
|
3036
|
+
id: z.ZodString;
|
|
3037
|
+
}, z.core.$strip>;
|
|
3038
|
+
body: z.ZodObject<{
|
|
3039
|
+
patch: z.ZodObject<{
|
|
3040
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
3041
|
+
CREATED: "CREATED";
|
|
3042
|
+
PAID: "PAID";
|
|
3043
|
+
CANCELED: "CANCELED";
|
|
3044
|
+
FULFILLED: "FULFILLED";
|
|
3045
|
+
}>>;
|
|
3046
|
+
discountAmount: z.ZodOptional<z.ZodNumber>;
|
|
3047
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3048
|
+
}, z.core.$strip>;
|
|
2819
3049
|
}, z.core.$strip>;
|
|
2820
3050
|
}, z.core.$strip>, z.ZodObject<{
|
|
2821
3051
|
id: z.ZodString;
|
|
@@ -2842,7 +3072,9 @@ declare const contract: {
|
|
|
2842
3072
|
updatedAt: z.ZodString;
|
|
2843
3073
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2844
3074
|
cancel: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2845
|
-
|
|
3075
|
+
params: z.ZodObject<{
|
|
3076
|
+
id: z.ZodString;
|
|
3077
|
+
}, z.core.$strip>;
|
|
2846
3078
|
}, z.core.$strip>, z.ZodObject<{
|
|
2847
3079
|
id: z.ZodString;
|
|
2848
3080
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -2868,7 +3100,9 @@ declare const contract: {
|
|
|
2868
3100
|
updatedAt: z.ZodString;
|
|
2869
3101
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2870
3102
|
fulfill: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2871
|
-
|
|
3103
|
+
params: z.ZodObject<{
|
|
3104
|
+
id: z.ZodString;
|
|
3105
|
+
}, z.core.$strip>;
|
|
2872
3106
|
}, z.core.$strip>, z.ZodObject<{
|
|
2873
3107
|
id: z.ZodString;
|
|
2874
3108
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -2894,12 +3128,16 @@ declare const contract: {
|
|
|
2894
3128
|
updatedAt: z.ZodString;
|
|
2895
3129
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2896
3130
|
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2897
|
-
|
|
3131
|
+
params: z.ZodObject<{
|
|
3132
|
+
id: z.ZodString;
|
|
3133
|
+
}, z.core.$strip>;
|
|
2898
3134
|
}, z.core.$strip>, z.ZodObject<{
|
|
2899
3135
|
ok: z.ZodLiteral<true>;
|
|
2900
3136
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2901
3137
|
redemptions: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2902
|
-
|
|
3138
|
+
params: z.ZodObject<{
|
|
3139
|
+
id: z.ZodString;
|
|
3140
|
+
}, z.core.$strip>;
|
|
2903
3141
|
}, z.core.$strip>, z.ZodObject<{
|
|
2904
3142
|
data: z.ZodArray<z.ZodObject<{
|
|
2905
3143
|
id: z.ZodString;
|