bantr-api-client 1.3.1 → 1.5.0
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/api-type/src/trpcRouter/discount_code.router.d.ts +21 -13
- package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +4 -4
- package/api-type/src/trpcRouter/league_payments.router.d.ts +16 -14
- package/api-type/src/trpcRouter/oauth.router.d.ts +3 -3
- package/api-type/src/trpcRouter/organization.router.d.ts +69 -0
- package/api-type/src/trpcRouter/pickup_payments.router.d.ts +4 -4
- package/api-type/src/trpcRouter/product.router.d.ts +49 -0
- package/api-type/src/trpcRouter/router.d.ts +310 -54
- package/dist/src/index.d.ts +461 -81
- package/dist/src/provider.d.ts +310 -54
- package/dist/src/query.d.ts +151 -27
- package/package.json +1 -1
@@ -52,6 +52,7 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
52
52
|
limit: number;
|
53
53
|
cursor: number;
|
54
54
|
code?: string | undefined;
|
55
|
+
orgWorkspaceId?: number | null | undefined;
|
55
56
|
direction?: "asc" | "desc" | undefined;
|
56
57
|
listExpired?: boolean | undefined;
|
57
58
|
};
|
@@ -62,6 +63,7 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
62
63
|
direction: "asc" | "desc";
|
63
64
|
listExpired: boolean;
|
64
65
|
code?: string | undefined;
|
66
|
+
orgWorkspaceId?: number | null | undefined;
|
65
67
|
};
|
66
68
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
67
69
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -84,25 +86,27 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
84
86
|
};
|
85
87
|
_input_in: {
|
86
88
|
authorization?: string | undefined;
|
87
|
-
description: string;
|
88
89
|
code: string;
|
90
|
+
description: string;
|
89
91
|
appliesWhen: "purchase";
|
90
92
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
91
93
|
amountType: "flat-rate" | "percentage";
|
92
94
|
amountValue: number;
|
93
95
|
validFrom: Date | null;
|
94
96
|
validUntil: Date | null;
|
97
|
+
orgWorkspaceId?: number | null | undefined;
|
95
98
|
};
|
96
99
|
_input_out: {
|
97
100
|
authorization?: string | undefined;
|
98
|
-
description: string;
|
99
101
|
code: string;
|
102
|
+
description: string;
|
100
103
|
appliesWhen: "purchase";
|
101
104
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
102
105
|
amountType: "flat-rate" | "percentage";
|
103
106
|
amountValue: number;
|
104
107
|
validFrom: Date | null;
|
105
108
|
validUntil: Date | null;
|
109
|
+
orgWorkspaceId?: number | null | undefined;
|
106
110
|
};
|
107
111
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
108
112
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -125,26 +129,30 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
125
129
|
_input_in: {
|
126
130
|
authorization?: string | undefined;
|
127
131
|
id: number;
|
128
|
-
description: string;
|
129
132
|
code: string;
|
133
|
+
description: string;
|
130
134
|
appliesWhen: "purchase";
|
131
135
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
132
136
|
amountType: "flat-rate" | "percentage";
|
133
137
|
amountValue: number;
|
134
138
|
validFrom: Date | null;
|
135
139
|
validUntil: Date | null;
|
140
|
+
usageLimit: number | null;
|
141
|
+
orgWorkspaceId?: number | null | undefined;
|
136
142
|
};
|
137
143
|
_input_out: {
|
138
144
|
authorization?: string | undefined;
|
139
145
|
id: number;
|
140
|
-
description: string;
|
141
146
|
code: string;
|
147
|
+
description: string;
|
142
148
|
appliesWhen: "purchase";
|
143
149
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
144
150
|
amountType: "flat-rate" | "percentage";
|
145
151
|
amountValue: number;
|
146
152
|
validFrom: Date | null;
|
147
153
|
validUntil: Date | null;
|
154
|
+
usageLimit: number | null;
|
155
|
+
orgWorkspaceId?: number | null | undefined;
|
148
156
|
};
|
149
157
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
150
158
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -184,29 +192,29 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
184
192
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
185
193
|
_input_in: {
|
186
194
|
id: number;
|
187
|
-
code: string;
|
188
195
|
appliesWhen: "purchase";
|
189
196
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
190
197
|
productValue: number;
|
198
|
+
code?: string | undefined;
|
191
199
|
};
|
192
200
|
_input_out: {
|
193
201
|
id: number;
|
194
|
-
code: string;
|
195
202
|
appliesWhen: "purchase";
|
196
203
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
197
204
|
productValue: number;
|
205
|
+
code?: string | undefined;
|
198
206
|
};
|
199
207
|
_output_in: {
|
200
|
-
description: string;
|
201
208
|
code: string;
|
209
|
+
description: string;
|
202
210
|
amountType: "flat-rate" | "percentage";
|
203
211
|
amountValue: number;
|
204
212
|
reducedValue: number;
|
205
213
|
newValue: number;
|
206
214
|
};
|
207
215
|
_output_out: {
|
208
|
-
description: string;
|
209
216
|
code: string;
|
217
|
+
description: string;
|
210
218
|
amountType: "flat-rate" | "percentage";
|
211
219
|
amountValue: number;
|
212
220
|
reducedValue: number;
|
@@ -237,19 +245,19 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
237
245
|
authorization?: string | undefined;
|
238
246
|
description: string;
|
239
247
|
freeAgentId: number;
|
240
|
-
leagueId?: number | undefined;
|
241
|
-
cancelPath?: string | undefined;
|
242
248
|
code?: string | undefined;
|
249
|
+
leagueId?: number | undefined;
|
243
250
|
paymentMode?: "session" | "intent" | undefined;
|
251
|
+
cancelPath?: string | undefined;
|
244
252
|
};
|
245
253
|
_input_out: {
|
246
254
|
authorization?: string | undefined;
|
247
255
|
description: string;
|
248
|
-
paymentMode: "session" | "intent";
|
249
256
|
freeAgentId: number;
|
257
|
+
paymentMode: "session" | "intent";
|
258
|
+
code?: string | undefined;
|
250
259
|
leagueId?: number | undefined;
|
251
260
|
cancelPath?: string | undefined;
|
252
|
-
code?: string | undefined;
|
253
261
|
};
|
254
262
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
255
263
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -295,40 +303,40 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
295
303
|
};
|
296
304
|
_output_in: {
|
297
305
|
id: number;
|
298
|
-
deletedAt: Date | null;
|
299
306
|
memberId: number;
|
307
|
+
deletedAt: Date | null;
|
300
308
|
member: {
|
301
|
-
email: string;
|
302
309
|
id: number;
|
310
|
+
email: string;
|
303
311
|
firstName: string | null;
|
304
312
|
lastName: string | null;
|
305
313
|
};
|
306
314
|
totalPaid: number;
|
307
315
|
payments: {
|
308
|
-
payerId: number;
|
309
316
|
id: number;
|
310
|
-
price: number;
|
311
317
|
createdAt: string | Date;
|
318
|
+
price: number;
|
319
|
+
payerId: number;
|
312
320
|
amountApplied: number | null;
|
313
321
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
314
322
|
}[];
|
315
323
|
}[];
|
316
324
|
_output_out: {
|
317
325
|
id: number;
|
318
|
-
deletedAt: Date | null;
|
319
326
|
memberId: number;
|
327
|
+
deletedAt: Date | null;
|
320
328
|
member: {
|
321
|
-
email: string;
|
322
329
|
id: number;
|
330
|
+
email: string;
|
323
331
|
firstName: string | null;
|
324
332
|
lastName: string | null;
|
325
333
|
};
|
326
334
|
totalPaid: number;
|
327
335
|
payments: {
|
328
|
-
payerId: number;
|
329
336
|
id: number;
|
330
|
-
price: number;
|
331
337
|
createdAt: string | Date;
|
338
|
+
price: number;
|
339
|
+
payerId: number;
|
332
340
|
amountApplied: number | null;
|
333
341
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
334
342
|
}[];
|
@@ -349,15 +357,15 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
349
357
|
};
|
350
358
|
_input_in: {
|
351
359
|
authorization?: string | undefined;
|
352
|
-
price: number;
|
353
360
|
leagueId: number;
|
361
|
+
price: number;
|
354
362
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
355
363
|
teamRosterId: number;
|
356
364
|
};
|
357
365
|
_input_out: {
|
358
366
|
authorization?: string | undefined;
|
359
|
-
price: number;
|
360
367
|
leagueId: number;
|
368
|
+
price: number;
|
361
369
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
362
370
|
teamRosterId: number;
|
363
371
|
};
|
@@ -438,14 +446,16 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
438
446
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
439
447
|
code?: string | undefined;
|
440
448
|
paymentMode?: "session" | "intent" | undefined;
|
449
|
+
paymentAmount?: number | undefined;
|
441
450
|
};
|
442
451
|
_input_out: {
|
443
452
|
authorization?: string | undefined;
|
444
453
|
leagueId: number;
|
454
|
+
paymentMode: "session" | "intent";
|
445
455
|
teamId: number;
|
446
456
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
447
|
-
paymentMode: "session" | "intent";
|
448
457
|
code?: string | undefined;
|
458
|
+
paymentAmount?: number | undefined;
|
449
459
|
};
|
450
460
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
451
461
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -626,6 +636,75 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
626
636
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
627
637
|
}, import("../types/auth").MemberAuthResponse>;
|
628
638
|
}>;
|
639
|
+
organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
640
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
641
|
+
meta: object;
|
642
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
643
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
644
|
+
}>, {
|
645
|
+
fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
|
646
|
+
_config: import("@trpc/server").RootConfig<{
|
647
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
648
|
+
meta: object;
|
649
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
650
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
651
|
+
}>;
|
652
|
+
_meta: object;
|
653
|
+
_ctx_out: {
|
654
|
+
req: import("http").IncomingMessage;
|
655
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
656
|
+
user: import("../types/auth").TJwtPayload;
|
657
|
+
};
|
658
|
+
_input_in: {
|
659
|
+
authorization?: string | undefined;
|
660
|
+
workspaceId?: number | undefined;
|
661
|
+
};
|
662
|
+
_input_out: {
|
663
|
+
authorization?: string | undefined;
|
664
|
+
workspaceId?: number | undefined;
|
665
|
+
};
|
666
|
+
_output_in: {
|
667
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
668
|
+
extraTechnologyFeePercent: number;
|
669
|
+
extraTechnologyFeeLabel: string | null;
|
670
|
+
};
|
671
|
+
_output_out: {
|
672
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
673
|
+
extraTechnologyFeePercent: number;
|
674
|
+
extraTechnologyFeeLabel: string | null;
|
675
|
+
};
|
676
|
+
}, unknown>;
|
677
|
+
updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
|
678
|
+
_config: import("@trpc/server").RootConfig<{
|
679
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
680
|
+
meta: object;
|
681
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
682
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
683
|
+
}>;
|
684
|
+
_meta: object;
|
685
|
+
_ctx_out: {
|
686
|
+
req: import("http").IncomingMessage;
|
687
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
688
|
+
user: import("../types/auth").TJwtPayload;
|
689
|
+
};
|
690
|
+
_input_in: {
|
691
|
+
authorization?: string | undefined;
|
692
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
693
|
+
extraTechnologyFeePercent: number;
|
694
|
+
extraTechnologyFeeLabel: string | null;
|
695
|
+
workspaceId?: number | undefined;
|
696
|
+
};
|
697
|
+
_input_out: {
|
698
|
+
authorization?: string | undefined;
|
699
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
700
|
+
extraTechnologyFeePercent: number;
|
701
|
+
extraTechnologyFeeLabel: string | null;
|
702
|
+
workspaceId?: number | undefined;
|
703
|
+
};
|
704
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
705
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
706
|
+
}, void>;
|
707
|
+
}>;
|
629
708
|
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
630
709
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
631
710
|
meta: object;
|
@@ -647,19 +726,19 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
647
726
|
};
|
648
727
|
_input_in: {
|
649
728
|
authorization?: string | undefined;
|
650
|
-
pickupId: number;
|
651
729
|
memberId: number;
|
652
|
-
|
730
|
+
pickupId: number;
|
653
731
|
code?: string | undefined;
|
654
732
|
paymentMode?: "session" | "intent" | undefined;
|
733
|
+
cancelPath?: string | undefined;
|
655
734
|
};
|
656
735
|
_input_out: {
|
657
736
|
authorization?: string | undefined;
|
658
|
-
pickupId: number;
|
659
737
|
memberId: number;
|
660
738
|
paymentMode: "session" | "intent";
|
661
|
-
|
739
|
+
pickupId: number;
|
662
740
|
code?: string | undefined;
|
741
|
+
cancelPath?: string | undefined;
|
663
742
|
};
|
664
743
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
665
744
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -667,6 +746,55 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
667
746
|
eventName: string;
|
668
747
|
}>;
|
669
748
|
}>;
|
749
|
+
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
750
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
751
|
+
meta: object;
|
752
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
753
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
754
|
+
}>, {
|
755
|
+
info: import("@trpc/server").BuildProcedure<"mutation", {
|
756
|
+
_config: import("@trpc/server").RootConfig<{
|
757
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
758
|
+
meta: object;
|
759
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
760
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
761
|
+
}>;
|
762
|
+
_meta: object;
|
763
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
764
|
+
_input_in: {
|
765
|
+
id: number;
|
766
|
+
appliesWhen: "purchase";
|
767
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
768
|
+
productValue: number;
|
769
|
+
code?: string | undefined;
|
770
|
+
};
|
771
|
+
_input_out: {
|
772
|
+
id: number;
|
773
|
+
appliesWhen: "purchase";
|
774
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
775
|
+
productValue: number;
|
776
|
+
code?: string | undefined;
|
777
|
+
};
|
778
|
+
_output_in: {
|
779
|
+
discountApplied: number;
|
780
|
+
totalWithTax: number;
|
781
|
+
totalTax: number;
|
782
|
+
otherTaxLabel: string;
|
783
|
+
otherTax: number;
|
784
|
+
code?: string | undefined;
|
785
|
+
description?: string | undefined;
|
786
|
+
};
|
787
|
+
_output_out: {
|
788
|
+
discountApplied: number;
|
789
|
+
totalWithTax: number;
|
790
|
+
totalTax: number;
|
791
|
+
otherTaxLabel: string;
|
792
|
+
otherTax: number;
|
793
|
+
code?: string | undefined;
|
794
|
+
description?: string | undefined;
|
795
|
+
};
|
796
|
+
}, unknown>;
|
797
|
+
}>;
|
670
798
|
}>;
|
671
799
|
export declare const createTrpcCaller: import("@trpc/server").RouterCaller<import("@trpc/server/dist/core/router").RouterDef<import("@trpc/server").RootConfig<{
|
672
800
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -722,6 +850,7 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
722
850
|
limit: number;
|
723
851
|
cursor: number;
|
724
852
|
code?: string | undefined;
|
853
|
+
orgWorkspaceId?: number | null | undefined;
|
725
854
|
direction?: "asc" | "desc" | undefined;
|
726
855
|
listExpired?: boolean | undefined;
|
727
856
|
};
|
@@ -732,6 +861,7 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
732
861
|
direction: "asc" | "desc";
|
733
862
|
listExpired: boolean;
|
734
863
|
code?: string | undefined;
|
864
|
+
orgWorkspaceId?: number | null | undefined;
|
735
865
|
};
|
736
866
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
737
867
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -754,25 +884,27 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
754
884
|
};
|
755
885
|
_input_in: {
|
756
886
|
authorization?: string | undefined;
|
757
|
-
description: string;
|
758
887
|
code: string;
|
888
|
+
description: string;
|
759
889
|
appliesWhen: "purchase";
|
760
890
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
761
891
|
amountType: "flat-rate" | "percentage";
|
762
892
|
amountValue: number;
|
763
893
|
validFrom: Date | null;
|
764
894
|
validUntil: Date | null;
|
895
|
+
orgWorkspaceId?: number | null | undefined;
|
765
896
|
};
|
766
897
|
_input_out: {
|
767
898
|
authorization?: string | undefined;
|
768
|
-
description: string;
|
769
899
|
code: string;
|
900
|
+
description: string;
|
770
901
|
appliesWhen: "purchase";
|
771
902
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
772
903
|
amountType: "flat-rate" | "percentage";
|
773
904
|
amountValue: number;
|
774
905
|
validFrom: Date | null;
|
775
906
|
validUntil: Date | null;
|
907
|
+
orgWorkspaceId?: number | null | undefined;
|
776
908
|
};
|
777
909
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
778
910
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -795,26 +927,30 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
795
927
|
_input_in: {
|
796
928
|
authorization?: string | undefined;
|
797
929
|
id: number;
|
798
|
-
description: string;
|
799
930
|
code: string;
|
931
|
+
description: string;
|
800
932
|
appliesWhen: "purchase";
|
801
933
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
802
934
|
amountType: "flat-rate" | "percentage";
|
803
935
|
amountValue: number;
|
804
936
|
validFrom: Date | null;
|
805
937
|
validUntil: Date | null;
|
938
|
+
usageLimit: number | null;
|
939
|
+
orgWorkspaceId?: number | null | undefined;
|
806
940
|
};
|
807
941
|
_input_out: {
|
808
942
|
authorization?: string | undefined;
|
809
943
|
id: number;
|
810
|
-
description: string;
|
811
944
|
code: string;
|
945
|
+
description: string;
|
812
946
|
appliesWhen: "purchase";
|
813
947
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
814
948
|
amountType: "flat-rate" | "percentage";
|
815
949
|
amountValue: number;
|
816
950
|
validFrom: Date | null;
|
817
951
|
validUntil: Date | null;
|
952
|
+
usageLimit: number | null;
|
953
|
+
orgWorkspaceId?: number | null | undefined;
|
818
954
|
};
|
819
955
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
820
956
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -854,29 +990,29 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
854
990
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
855
991
|
_input_in: {
|
856
992
|
id: number;
|
857
|
-
code: string;
|
858
993
|
appliesWhen: "purchase";
|
859
994
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
860
995
|
productValue: number;
|
996
|
+
code?: string | undefined;
|
861
997
|
};
|
862
998
|
_input_out: {
|
863
999
|
id: number;
|
864
|
-
code: string;
|
865
1000
|
appliesWhen: "purchase";
|
866
1001
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
867
1002
|
productValue: number;
|
1003
|
+
code?: string | undefined;
|
868
1004
|
};
|
869
1005
|
_output_in: {
|
870
|
-
description: string;
|
871
1006
|
code: string;
|
1007
|
+
description: string;
|
872
1008
|
amountType: "flat-rate" | "percentage";
|
873
1009
|
amountValue: number;
|
874
1010
|
reducedValue: number;
|
875
1011
|
newValue: number;
|
876
1012
|
};
|
877
1013
|
_output_out: {
|
878
|
-
description: string;
|
879
1014
|
code: string;
|
1015
|
+
description: string;
|
880
1016
|
amountType: "flat-rate" | "percentage";
|
881
1017
|
amountValue: number;
|
882
1018
|
reducedValue: number;
|
@@ -907,19 +1043,19 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
907
1043
|
authorization?: string | undefined;
|
908
1044
|
description: string;
|
909
1045
|
freeAgentId: number;
|
910
|
-
leagueId?: number | undefined;
|
911
|
-
cancelPath?: string | undefined;
|
912
1046
|
code?: string | undefined;
|
1047
|
+
leagueId?: number | undefined;
|
913
1048
|
paymentMode?: "session" | "intent" | undefined;
|
1049
|
+
cancelPath?: string | undefined;
|
914
1050
|
};
|
915
1051
|
_input_out: {
|
916
1052
|
authorization?: string | undefined;
|
917
1053
|
description: string;
|
918
|
-
paymentMode: "session" | "intent";
|
919
1054
|
freeAgentId: number;
|
1055
|
+
paymentMode: "session" | "intent";
|
1056
|
+
code?: string | undefined;
|
920
1057
|
leagueId?: number | undefined;
|
921
1058
|
cancelPath?: string | undefined;
|
922
|
-
code?: string | undefined;
|
923
1059
|
};
|
924
1060
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
925
1061
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -965,40 +1101,40 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
965
1101
|
};
|
966
1102
|
_output_in: {
|
967
1103
|
id: number;
|
968
|
-
deletedAt: Date | null;
|
969
1104
|
memberId: number;
|
1105
|
+
deletedAt: Date | null;
|
970
1106
|
member: {
|
971
|
-
email: string;
|
972
1107
|
id: number;
|
1108
|
+
email: string;
|
973
1109
|
firstName: string | null;
|
974
1110
|
lastName: string | null;
|
975
1111
|
};
|
976
1112
|
totalPaid: number;
|
977
1113
|
payments: {
|
978
|
-
payerId: number;
|
979
1114
|
id: number;
|
980
|
-
price: number;
|
981
1115
|
createdAt: string | Date;
|
1116
|
+
price: number;
|
1117
|
+
payerId: number;
|
982
1118
|
amountApplied: number | null;
|
983
1119
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
984
1120
|
}[];
|
985
1121
|
}[];
|
986
1122
|
_output_out: {
|
987
1123
|
id: number;
|
988
|
-
deletedAt: Date | null;
|
989
1124
|
memberId: number;
|
1125
|
+
deletedAt: Date | null;
|
990
1126
|
member: {
|
991
|
-
email: string;
|
992
1127
|
id: number;
|
1128
|
+
email: string;
|
993
1129
|
firstName: string | null;
|
994
1130
|
lastName: string | null;
|
995
1131
|
};
|
996
1132
|
totalPaid: number;
|
997
1133
|
payments: {
|
998
|
-
payerId: number;
|
999
1134
|
id: number;
|
1000
|
-
price: number;
|
1001
1135
|
createdAt: string | Date;
|
1136
|
+
price: number;
|
1137
|
+
payerId: number;
|
1002
1138
|
amountApplied: number | null;
|
1003
1139
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1004
1140
|
}[];
|
@@ -1019,15 +1155,15 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1019
1155
|
};
|
1020
1156
|
_input_in: {
|
1021
1157
|
authorization?: string | undefined;
|
1022
|
-
price: number;
|
1023
1158
|
leagueId: number;
|
1159
|
+
price: number;
|
1024
1160
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1025
1161
|
teamRosterId: number;
|
1026
1162
|
};
|
1027
1163
|
_input_out: {
|
1028
1164
|
authorization?: string | undefined;
|
1029
|
-
price: number;
|
1030
1165
|
leagueId: number;
|
1166
|
+
price: number;
|
1031
1167
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1032
1168
|
teamRosterId: number;
|
1033
1169
|
};
|
@@ -1108,14 +1244,16 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1108
1244
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1109
1245
|
code?: string | undefined;
|
1110
1246
|
paymentMode?: "session" | "intent" | undefined;
|
1247
|
+
paymentAmount?: number | undefined;
|
1111
1248
|
};
|
1112
1249
|
_input_out: {
|
1113
1250
|
authorization?: string | undefined;
|
1114
1251
|
leagueId: number;
|
1252
|
+
paymentMode: "session" | "intent";
|
1115
1253
|
teamId: number;
|
1116
1254
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1117
|
-
paymentMode: "session" | "intent";
|
1118
1255
|
code?: string | undefined;
|
1256
|
+
paymentAmount?: number | undefined;
|
1119
1257
|
};
|
1120
1258
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1121
1259
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1296,6 +1434,75 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1296
1434
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1297
1435
|
}, import("../types/auth").MemberAuthResponse>;
|
1298
1436
|
}>;
|
1437
|
+
organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1438
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1439
|
+
meta: object;
|
1440
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1441
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1442
|
+
}>, {
|
1443
|
+
fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
|
1444
|
+
_config: import("@trpc/server").RootConfig<{
|
1445
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1446
|
+
meta: object;
|
1447
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1448
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1449
|
+
}>;
|
1450
|
+
_meta: object;
|
1451
|
+
_ctx_out: {
|
1452
|
+
req: import("http").IncomingMessage;
|
1453
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1454
|
+
user: import("../types/auth").TJwtPayload;
|
1455
|
+
};
|
1456
|
+
_input_in: {
|
1457
|
+
authorization?: string | undefined;
|
1458
|
+
workspaceId?: number | undefined;
|
1459
|
+
};
|
1460
|
+
_input_out: {
|
1461
|
+
authorization?: string | undefined;
|
1462
|
+
workspaceId?: number | undefined;
|
1463
|
+
};
|
1464
|
+
_output_in: {
|
1465
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1466
|
+
extraTechnologyFeePercent: number;
|
1467
|
+
extraTechnologyFeeLabel: string | null;
|
1468
|
+
};
|
1469
|
+
_output_out: {
|
1470
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1471
|
+
extraTechnologyFeePercent: number;
|
1472
|
+
extraTechnologyFeeLabel: string | null;
|
1473
|
+
};
|
1474
|
+
}, unknown>;
|
1475
|
+
updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
|
1476
|
+
_config: import("@trpc/server").RootConfig<{
|
1477
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1478
|
+
meta: object;
|
1479
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1480
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1481
|
+
}>;
|
1482
|
+
_meta: object;
|
1483
|
+
_ctx_out: {
|
1484
|
+
req: import("http").IncomingMessage;
|
1485
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1486
|
+
user: import("../types/auth").TJwtPayload;
|
1487
|
+
};
|
1488
|
+
_input_in: {
|
1489
|
+
authorization?: string | undefined;
|
1490
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1491
|
+
extraTechnologyFeePercent: number;
|
1492
|
+
extraTechnologyFeeLabel: string | null;
|
1493
|
+
workspaceId?: number | undefined;
|
1494
|
+
};
|
1495
|
+
_input_out: {
|
1496
|
+
authorization?: string | undefined;
|
1497
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1498
|
+
extraTechnologyFeePercent: number;
|
1499
|
+
extraTechnologyFeeLabel: string | null;
|
1500
|
+
workspaceId?: number | undefined;
|
1501
|
+
};
|
1502
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1503
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1504
|
+
}, void>;
|
1505
|
+
}>;
|
1299
1506
|
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1300
1507
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1301
1508
|
meta: object;
|
@@ -1317,19 +1524,19 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1317
1524
|
};
|
1318
1525
|
_input_in: {
|
1319
1526
|
authorization?: string | undefined;
|
1320
|
-
pickupId: number;
|
1321
1527
|
memberId: number;
|
1322
|
-
|
1528
|
+
pickupId: number;
|
1323
1529
|
code?: string | undefined;
|
1324
1530
|
paymentMode?: "session" | "intent" | undefined;
|
1531
|
+
cancelPath?: string | undefined;
|
1325
1532
|
};
|
1326
1533
|
_input_out: {
|
1327
1534
|
authorization?: string | undefined;
|
1328
|
-
pickupId: number;
|
1329
1535
|
memberId: number;
|
1330
1536
|
paymentMode: "session" | "intent";
|
1331
|
-
|
1537
|
+
pickupId: number;
|
1332
1538
|
code?: string | undefined;
|
1539
|
+
cancelPath?: string | undefined;
|
1333
1540
|
};
|
1334
1541
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1335
1542
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1337,6 +1544,55 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1337
1544
|
eventName: string;
|
1338
1545
|
}>;
|
1339
1546
|
}>;
|
1547
|
+
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1548
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1549
|
+
meta: object;
|
1550
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1551
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1552
|
+
}>, {
|
1553
|
+
info: import("@trpc/server").BuildProcedure<"mutation", {
|
1554
|
+
_config: import("@trpc/server").RootConfig<{
|
1555
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1556
|
+
meta: object;
|
1557
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1558
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1559
|
+
}>;
|
1560
|
+
_meta: object;
|
1561
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1562
|
+
_input_in: {
|
1563
|
+
id: number;
|
1564
|
+
appliesWhen: "purchase";
|
1565
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1566
|
+
productValue: number;
|
1567
|
+
code?: string | undefined;
|
1568
|
+
};
|
1569
|
+
_input_out: {
|
1570
|
+
id: number;
|
1571
|
+
appliesWhen: "purchase";
|
1572
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1573
|
+
productValue: number;
|
1574
|
+
code?: string | undefined;
|
1575
|
+
};
|
1576
|
+
_output_in: {
|
1577
|
+
discountApplied: number;
|
1578
|
+
totalWithTax: number;
|
1579
|
+
totalTax: number;
|
1580
|
+
otherTaxLabel: string;
|
1581
|
+
otherTax: number;
|
1582
|
+
code?: string | undefined;
|
1583
|
+
description?: string | undefined;
|
1584
|
+
};
|
1585
|
+
_output_out: {
|
1586
|
+
discountApplied: number;
|
1587
|
+
totalWithTax: number;
|
1588
|
+
totalTax: number;
|
1589
|
+
otherTaxLabel: string;
|
1590
|
+
otherTax: number;
|
1591
|
+
code?: string | undefined;
|
1592
|
+
description?: string | undefined;
|
1593
|
+
};
|
1594
|
+
}, unknown>;
|
1595
|
+
}>;
|
1340
1596
|
}, {
|
1341
1597
|
queries: {};
|
1342
1598
|
mutations: {};
|