bantr-api-client 1.4.0 → 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 +14 -8
- package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +3 -3
- package/api-type/src/trpcRouter/league_payments.router.d.ts +9 -9
- package/api-type/src/trpcRouter/organization.router.d.ts +69 -0
- package/api-type/src/trpcRouter/product.router.d.ts +49 -0
- package/api-type/src/trpcRouter/router.d.ts +300 -52
- package/dist/src/index.d.ts +446 -78
- package/dist/src/provider.d.ts +300 -52
- package/dist/src/query.d.ts +146 -26
- package/package.json +1 -1
package/dist/src/provider.d.ts
CHANGED
@@ -55,6 +55,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
55
55
|
limit: number;
|
56
56
|
cursor: number;
|
57
57
|
code?: string | undefined;
|
58
|
+
orgWorkspaceId?: number | null | undefined;
|
58
59
|
direction?: "asc" | "desc" | undefined;
|
59
60
|
listExpired?: boolean | undefined;
|
60
61
|
};
|
@@ -65,6 +66,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
65
66
|
direction: "asc" | "desc";
|
66
67
|
listExpired: boolean;
|
67
68
|
code?: string | undefined;
|
69
|
+
orgWorkspaceId?: number | null | undefined;
|
68
70
|
};
|
69
71
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
70
72
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -87,25 +89,27 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
87
89
|
};
|
88
90
|
_input_in: {
|
89
91
|
authorization?: string | undefined;
|
90
|
-
description: string;
|
91
92
|
code: string;
|
93
|
+
description: string;
|
92
94
|
appliesWhen: "purchase";
|
93
95
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
94
96
|
amountType: "flat-rate" | "percentage";
|
95
97
|
amountValue: number;
|
96
98
|
validFrom: Date | null;
|
97
99
|
validUntil: Date | null;
|
100
|
+
orgWorkspaceId?: number | null | undefined;
|
98
101
|
};
|
99
102
|
_input_out: {
|
100
103
|
authorization?: string | undefined;
|
101
|
-
description: string;
|
102
104
|
code: string;
|
105
|
+
description: string;
|
103
106
|
appliesWhen: "purchase";
|
104
107
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
105
108
|
amountType: "flat-rate" | "percentage";
|
106
109
|
amountValue: number;
|
107
110
|
validFrom: Date | null;
|
108
111
|
validUntil: Date | null;
|
112
|
+
orgWorkspaceId?: number | null | undefined;
|
109
113
|
};
|
110
114
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
111
115
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -128,8 +132,8 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
128
132
|
_input_in: {
|
129
133
|
authorization?: string | undefined;
|
130
134
|
id: number;
|
131
|
-
description: string;
|
132
135
|
code: string;
|
136
|
+
description: string;
|
133
137
|
appliesWhen: "purchase";
|
134
138
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
135
139
|
amountType: "flat-rate" | "percentage";
|
@@ -137,12 +141,13 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
137
141
|
validFrom: Date | null;
|
138
142
|
validUntil: Date | null;
|
139
143
|
usageLimit: number | null;
|
144
|
+
orgWorkspaceId?: number | null | undefined;
|
140
145
|
};
|
141
146
|
_input_out: {
|
142
147
|
authorization?: string | undefined;
|
143
148
|
id: number;
|
144
|
-
description: string;
|
145
149
|
code: string;
|
150
|
+
description: string;
|
146
151
|
appliesWhen: "purchase";
|
147
152
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
148
153
|
amountType: "flat-rate" | "percentage";
|
@@ -150,6 +155,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
150
155
|
validFrom: Date | null;
|
151
156
|
validUntil: Date | null;
|
152
157
|
usageLimit: number | null;
|
158
|
+
orgWorkspaceId?: number | null | undefined;
|
153
159
|
};
|
154
160
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
155
161
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -189,29 +195,29 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
189
195
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
190
196
|
_input_in: {
|
191
197
|
id: number;
|
192
|
-
code: string;
|
193
198
|
appliesWhen: "purchase";
|
194
199
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
195
200
|
productValue: number;
|
201
|
+
code?: string | undefined;
|
196
202
|
};
|
197
203
|
_input_out: {
|
198
204
|
id: number;
|
199
|
-
code: string;
|
200
205
|
appliesWhen: "purchase";
|
201
206
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
202
207
|
productValue: number;
|
208
|
+
code?: string | undefined;
|
203
209
|
};
|
204
210
|
_output_in: {
|
205
|
-
description: string;
|
206
211
|
code: string;
|
212
|
+
description: string;
|
207
213
|
amountType: "flat-rate" | "percentage";
|
208
214
|
amountValue: number;
|
209
215
|
reducedValue: number;
|
210
216
|
newValue: number;
|
211
217
|
};
|
212
218
|
_output_out: {
|
213
|
-
description: string;
|
214
219
|
code: string;
|
220
|
+
description: string;
|
215
221
|
amountType: "flat-rate" | "percentage";
|
216
222
|
amountValue: number;
|
217
223
|
reducedValue: number;
|
@@ -242,19 +248,19 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
242
248
|
authorization?: string | undefined;
|
243
249
|
description: string;
|
244
250
|
freeAgentId: number;
|
245
|
-
leagueId?: number | undefined;
|
246
|
-
cancelPath?: string | undefined;
|
247
251
|
code?: string | undefined;
|
252
|
+
leagueId?: number | undefined;
|
248
253
|
paymentMode?: "session" | "intent" | undefined;
|
254
|
+
cancelPath?: string | undefined;
|
249
255
|
};
|
250
256
|
_input_out: {
|
251
257
|
authorization?: string | undefined;
|
252
258
|
description: string;
|
253
|
-
paymentMode: "session" | "intent";
|
254
259
|
freeAgentId: number;
|
260
|
+
paymentMode: "session" | "intent";
|
261
|
+
code?: string | undefined;
|
255
262
|
leagueId?: number | undefined;
|
256
263
|
cancelPath?: string | undefined;
|
257
|
-
code?: string | undefined;
|
258
264
|
};
|
259
265
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
260
266
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -290,17 +296,17 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
290
296
|
};
|
291
297
|
_input_in: {
|
292
298
|
authorization?: string | undefined;
|
293
|
-
teamId: number;
|
294
299
|
leagueId: number;
|
300
|
+
teamId: number;
|
295
301
|
};
|
296
302
|
_input_out: {
|
297
303
|
authorization?: string | undefined;
|
298
|
-
teamId: number;
|
299
304
|
leagueId: number;
|
305
|
+
teamId: number;
|
300
306
|
};
|
301
307
|
_output_in: {
|
302
|
-
memberId: number;
|
303
308
|
id: number;
|
309
|
+
memberId: number;
|
304
310
|
deletedAt: Date | null;
|
305
311
|
member: {
|
306
312
|
id: number;
|
@@ -319,8 +325,8 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
319
325
|
}[];
|
320
326
|
}[];
|
321
327
|
_output_out: {
|
322
|
-
memberId: number;
|
323
328
|
id: number;
|
329
|
+
memberId: number;
|
324
330
|
deletedAt: Date | null;
|
325
331
|
member: {
|
326
332
|
id: number;
|
@@ -438,21 +444,21 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
438
444
|
};
|
439
445
|
_input_in: {
|
440
446
|
authorization?: string | undefined;
|
441
|
-
teamId: number;
|
442
447
|
leagueId: number;
|
448
|
+
teamId: number;
|
443
449
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
444
|
-
paymentAmount?: number | undefined;
|
445
450
|
code?: string | undefined;
|
446
451
|
paymentMode?: "session" | "intent" | undefined;
|
452
|
+
paymentAmount?: number | undefined;
|
447
453
|
};
|
448
454
|
_input_out: {
|
449
455
|
authorization?: string | undefined;
|
450
|
-
teamId: number;
|
451
456
|
leagueId: number;
|
452
|
-
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
453
457
|
paymentMode: "session" | "intent";
|
454
|
-
|
458
|
+
teamId: number;
|
459
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
455
460
|
code?: string | undefined;
|
461
|
+
paymentAmount?: number | undefined;
|
456
462
|
};
|
457
463
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
458
464
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -623,16 +629,85 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
623
629
|
};
|
624
630
|
_input_in: {
|
625
631
|
authorization?: string | undefined;
|
626
|
-
provider: "
|
632
|
+
provider: "apple" | "google";
|
627
633
|
};
|
628
634
|
_input_out: {
|
629
635
|
authorization?: string | undefined;
|
630
|
-
provider: "
|
636
|
+
provider: "apple" | "google";
|
631
637
|
};
|
632
638
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
633
639
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
634
640
|
}, import("../api-type/src/types/auth").MemberAuthResponse>;
|
635
641
|
}>;
|
642
|
+
organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
643
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
644
|
+
meta: object;
|
645
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
646
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
647
|
+
}>, {
|
648
|
+
fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
|
649
|
+
_config: import("@trpc/server").RootConfig<{
|
650
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
651
|
+
meta: object;
|
652
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
653
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
654
|
+
}>;
|
655
|
+
_meta: object;
|
656
|
+
_ctx_out: {
|
657
|
+
req: import("http").IncomingMessage;
|
658
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
659
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
660
|
+
};
|
661
|
+
_input_in: {
|
662
|
+
authorization?: string | undefined;
|
663
|
+
workspaceId?: number | undefined;
|
664
|
+
};
|
665
|
+
_input_out: {
|
666
|
+
authorization?: string | undefined;
|
667
|
+
workspaceId?: number | undefined;
|
668
|
+
};
|
669
|
+
_output_in: {
|
670
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
671
|
+
extraTechnologyFeePercent: number;
|
672
|
+
extraTechnologyFeeLabel: string | null;
|
673
|
+
};
|
674
|
+
_output_out: {
|
675
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
676
|
+
extraTechnologyFeePercent: number;
|
677
|
+
extraTechnologyFeeLabel: string | null;
|
678
|
+
};
|
679
|
+
}, unknown>;
|
680
|
+
updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
|
681
|
+
_config: import("@trpc/server").RootConfig<{
|
682
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
683
|
+
meta: object;
|
684
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
685
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
686
|
+
}>;
|
687
|
+
_meta: object;
|
688
|
+
_ctx_out: {
|
689
|
+
req: import("http").IncomingMessage;
|
690
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
691
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
692
|
+
};
|
693
|
+
_input_in: {
|
694
|
+
authorization?: string | undefined;
|
695
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
696
|
+
extraTechnologyFeePercent: number;
|
697
|
+
extraTechnologyFeeLabel: string | null;
|
698
|
+
workspaceId?: number | undefined;
|
699
|
+
};
|
700
|
+
_input_out: {
|
701
|
+
authorization?: string | undefined;
|
702
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
703
|
+
extraTechnologyFeePercent: number;
|
704
|
+
extraTechnologyFeeLabel: string | null;
|
705
|
+
workspaceId?: number | undefined;
|
706
|
+
};
|
707
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
708
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
709
|
+
}, void>;
|
710
|
+
}>;
|
636
711
|
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
637
712
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
638
713
|
meta: object;
|
@@ -656,17 +731,17 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
656
731
|
authorization?: string | undefined;
|
657
732
|
memberId: number;
|
658
733
|
pickupId: number;
|
659
|
-
cancelPath?: string | undefined;
|
660
734
|
code?: string | undefined;
|
661
735
|
paymentMode?: "session" | "intent" | undefined;
|
736
|
+
cancelPath?: string | undefined;
|
662
737
|
};
|
663
738
|
_input_out: {
|
664
739
|
authorization?: string | undefined;
|
665
740
|
memberId: number;
|
666
|
-
pickupId: number;
|
667
741
|
paymentMode: "session" | "intent";
|
668
|
-
|
742
|
+
pickupId: number;
|
669
743
|
code?: string | undefined;
|
744
|
+
cancelPath?: string | undefined;
|
670
745
|
};
|
671
746
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
672
747
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -674,6 +749,55 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
674
749
|
eventName: string;
|
675
750
|
}>;
|
676
751
|
}>;
|
752
|
+
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
753
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
754
|
+
meta: object;
|
755
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
756
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
757
|
+
}>, {
|
758
|
+
info: import("@trpc/server").BuildProcedure<"mutation", {
|
759
|
+
_config: import("@trpc/server").RootConfig<{
|
760
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
761
|
+
meta: object;
|
762
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
763
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
764
|
+
}>;
|
765
|
+
_meta: object;
|
766
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
767
|
+
_input_in: {
|
768
|
+
id: number;
|
769
|
+
appliesWhen: "purchase";
|
770
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
771
|
+
productValue: number;
|
772
|
+
code?: string | undefined;
|
773
|
+
};
|
774
|
+
_input_out: {
|
775
|
+
id: number;
|
776
|
+
appliesWhen: "purchase";
|
777
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
778
|
+
productValue: number;
|
779
|
+
code?: string | undefined;
|
780
|
+
};
|
781
|
+
_output_in: {
|
782
|
+
discountApplied: number;
|
783
|
+
totalWithTax: number;
|
784
|
+
totalTax: number;
|
785
|
+
otherTaxLabel: string;
|
786
|
+
otherTax: number;
|
787
|
+
code?: string | undefined;
|
788
|
+
description?: string | undefined;
|
789
|
+
};
|
790
|
+
_output_out: {
|
791
|
+
discountApplied: number;
|
792
|
+
totalWithTax: number;
|
793
|
+
totalTax: number;
|
794
|
+
otherTaxLabel: string;
|
795
|
+
otherTax: number;
|
796
|
+
code?: string | undefined;
|
797
|
+
description?: string | undefined;
|
798
|
+
};
|
799
|
+
}, unknown>;
|
800
|
+
}>;
|
677
801
|
}>, unknown> & import("@trpc/react-query/dist/createTRPCReact").DecoratedProcedureRecord<{
|
678
802
|
discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
679
803
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -723,6 +847,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
723
847
|
limit: number;
|
724
848
|
cursor: number;
|
725
849
|
code?: string | undefined;
|
850
|
+
orgWorkspaceId?: number | null | undefined;
|
726
851
|
direction?: "asc" | "desc" | undefined;
|
727
852
|
listExpired?: boolean | undefined;
|
728
853
|
};
|
@@ -733,6 +858,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
733
858
|
direction: "asc" | "desc";
|
734
859
|
listExpired: boolean;
|
735
860
|
code?: string | undefined;
|
861
|
+
orgWorkspaceId?: number | null | undefined;
|
736
862
|
};
|
737
863
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
738
864
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -755,25 +881,27 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
755
881
|
};
|
756
882
|
_input_in: {
|
757
883
|
authorization?: string | undefined;
|
758
|
-
description: string;
|
759
884
|
code: string;
|
885
|
+
description: string;
|
760
886
|
appliesWhen: "purchase";
|
761
887
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
762
888
|
amountType: "flat-rate" | "percentage";
|
763
889
|
amountValue: number;
|
764
890
|
validFrom: Date | null;
|
765
891
|
validUntil: Date | null;
|
892
|
+
orgWorkspaceId?: number | null | undefined;
|
766
893
|
};
|
767
894
|
_input_out: {
|
768
895
|
authorization?: string | undefined;
|
769
|
-
description: string;
|
770
896
|
code: string;
|
897
|
+
description: string;
|
771
898
|
appliesWhen: "purchase";
|
772
899
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
773
900
|
amountType: "flat-rate" | "percentage";
|
774
901
|
amountValue: number;
|
775
902
|
validFrom: Date | null;
|
776
903
|
validUntil: Date | null;
|
904
|
+
orgWorkspaceId?: number | null | undefined;
|
777
905
|
};
|
778
906
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
779
907
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -796,8 +924,8 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
796
924
|
_input_in: {
|
797
925
|
authorization?: string | undefined;
|
798
926
|
id: number;
|
799
|
-
description: string;
|
800
927
|
code: string;
|
928
|
+
description: string;
|
801
929
|
appliesWhen: "purchase";
|
802
930
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
803
931
|
amountType: "flat-rate" | "percentage";
|
@@ -805,12 +933,13 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
805
933
|
validFrom: Date | null;
|
806
934
|
validUntil: Date | null;
|
807
935
|
usageLimit: number | null;
|
936
|
+
orgWorkspaceId?: number | null | undefined;
|
808
937
|
};
|
809
938
|
_input_out: {
|
810
939
|
authorization?: string | undefined;
|
811
940
|
id: number;
|
812
|
-
description: string;
|
813
941
|
code: string;
|
942
|
+
description: string;
|
814
943
|
appliesWhen: "purchase";
|
815
944
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
816
945
|
amountType: "flat-rate" | "percentage";
|
@@ -818,6 +947,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
818
947
|
validFrom: Date | null;
|
819
948
|
validUntil: Date | null;
|
820
949
|
usageLimit: number | null;
|
950
|
+
orgWorkspaceId?: number | null | undefined;
|
821
951
|
};
|
822
952
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
823
953
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -857,29 +987,29 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
857
987
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
858
988
|
_input_in: {
|
859
989
|
id: number;
|
860
|
-
code: string;
|
861
990
|
appliesWhen: "purchase";
|
862
991
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
863
992
|
productValue: number;
|
993
|
+
code?: string | undefined;
|
864
994
|
};
|
865
995
|
_input_out: {
|
866
996
|
id: number;
|
867
|
-
code: string;
|
868
997
|
appliesWhen: "purchase";
|
869
998
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
870
999
|
productValue: number;
|
1000
|
+
code?: string | undefined;
|
871
1001
|
};
|
872
1002
|
_output_in: {
|
873
|
-
description: string;
|
874
1003
|
code: string;
|
1004
|
+
description: string;
|
875
1005
|
amountType: "flat-rate" | "percentage";
|
876
1006
|
amountValue: number;
|
877
1007
|
reducedValue: number;
|
878
1008
|
newValue: number;
|
879
1009
|
};
|
880
1010
|
_output_out: {
|
881
|
-
description: string;
|
882
1011
|
code: string;
|
1012
|
+
description: string;
|
883
1013
|
amountType: "flat-rate" | "percentage";
|
884
1014
|
amountValue: number;
|
885
1015
|
reducedValue: number;
|
@@ -910,19 +1040,19 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
910
1040
|
authorization?: string | undefined;
|
911
1041
|
description: string;
|
912
1042
|
freeAgentId: number;
|
913
|
-
leagueId?: number | undefined;
|
914
|
-
cancelPath?: string | undefined;
|
915
1043
|
code?: string | undefined;
|
1044
|
+
leagueId?: number | undefined;
|
916
1045
|
paymentMode?: "session" | "intent" | undefined;
|
1046
|
+
cancelPath?: string | undefined;
|
917
1047
|
};
|
918
1048
|
_input_out: {
|
919
1049
|
authorization?: string | undefined;
|
920
1050
|
description: string;
|
921
|
-
paymentMode: "session" | "intent";
|
922
1051
|
freeAgentId: number;
|
1052
|
+
paymentMode: "session" | "intent";
|
1053
|
+
code?: string | undefined;
|
923
1054
|
leagueId?: number | undefined;
|
924
1055
|
cancelPath?: string | undefined;
|
925
|
-
code?: string | undefined;
|
926
1056
|
};
|
927
1057
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
928
1058
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -958,17 +1088,17 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
958
1088
|
};
|
959
1089
|
_input_in: {
|
960
1090
|
authorization?: string | undefined;
|
961
|
-
teamId: number;
|
962
1091
|
leagueId: number;
|
1092
|
+
teamId: number;
|
963
1093
|
};
|
964
1094
|
_input_out: {
|
965
1095
|
authorization?: string | undefined;
|
966
|
-
teamId: number;
|
967
1096
|
leagueId: number;
|
1097
|
+
teamId: number;
|
968
1098
|
};
|
969
1099
|
_output_in: {
|
970
|
-
memberId: number;
|
971
1100
|
id: number;
|
1101
|
+
memberId: number;
|
972
1102
|
deletedAt: Date | null;
|
973
1103
|
member: {
|
974
1104
|
id: number;
|
@@ -987,8 +1117,8 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
987
1117
|
}[];
|
988
1118
|
}[];
|
989
1119
|
_output_out: {
|
990
|
-
memberId: number;
|
991
1120
|
id: number;
|
1121
|
+
memberId: number;
|
992
1122
|
deletedAt: Date | null;
|
993
1123
|
member: {
|
994
1124
|
id: number;
|
@@ -1106,21 +1236,21 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1106
1236
|
};
|
1107
1237
|
_input_in: {
|
1108
1238
|
authorization?: string | undefined;
|
1109
|
-
teamId: number;
|
1110
1239
|
leagueId: number;
|
1240
|
+
teamId: number;
|
1111
1241
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1112
|
-
paymentAmount?: number | undefined;
|
1113
1242
|
code?: string | undefined;
|
1114
1243
|
paymentMode?: "session" | "intent" | undefined;
|
1244
|
+
paymentAmount?: number | undefined;
|
1115
1245
|
};
|
1116
1246
|
_input_out: {
|
1117
1247
|
authorization?: string | undefined;
|
1118
|
-
teamId: number;
|
1119
1248
|
leagueId: number;
|
1120
|
-
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1121
1249
|
paymentMode: "session" | "intent";
|
1122
|
-
|
1250
|
+
teamId: number;
|
1251
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1123
1252
|
code?: string | undefined;
|
1253
|
+
paymentAmount?: number | undefined;
|
1124
1254
|
};
|
1125
1255
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1126
1256
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1291,16 +1421,85 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1291
1421
|
};
|
1292
1422
|
_input_in: {
|
1293
1423
|
authorization?: string | undefined;
|
1294
|
-
provider: "
|
1424
|
+
provider: "apple" | "google";
|
1295
1425
|
};
|
1296
1426
|
_input_out: {
|
1297
1427
|
authorization?: string | undefined;
|
1298
|
-
provider: "
|
1428
|
+
provider: "apple" | "google";
|
1299
1429
|
};
|
1300
1430
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1301
1431
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1302
1432
|
}, import("../api-type/src/types/auth").MemberAuthResponse>;
|
1303
1433
|
}>;
|
1434
|
+
organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1435
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1436
|
+
meta: object;
|
1437
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1438
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1439
|
+
}>, {
|
1440
|
+
fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
|
1441
|
+
_config: import("@trpc/server").RootConfig<{
|
1442
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1443
|
+
meta: object;
|
1444
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1445
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1446
|
+
}>;
|
1447
|
+
_meta: object;
|
1448
|
+
_ctx_out: {
|
1449
|
+
req: import("http").IncomingMessage;
|
1450
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1451
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1452
|
+
};
|
1453
|
+
_input_in: {
|
1454
|
+
authorization?: string | undefined;
|
1455
|
+
workspaceId?: number | undefined;
|
1456
|
+
};
|
1457
|
+
_input_out: {
|
1458
|
+
authorization?: string | undefined;
|
1459
|
+
workspaceId?: number | undefined;
|
1460
|
+
};
|
1461
|
+
_output_in: {
|
1462
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1463
|
+
extraTechnologyFeePercent: number;
|
1464
|
+
extraTechnologyFeeLabel: string | null;
|
1465
|
+
};
|
1466
|
+
_output_out: {
|
1467
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1468
|
+
extraTechnologyFeePercent: number;
|
1469
|
+
extraTechnologyFeeLabel: string | null;
|
1470
|
+
};
|
1471
|
+
}, unknown>;
|
1472
|
+
updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
|
1473
|
+
_config: import("@trpc/server").RootConfig<{
|
1474
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1475
|
+
meta: object;
|
1476
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1477
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1478
|
+
}>;
|
1479
|
+
_meta: object;
|
1480
|
+
_ctx_out: {
|
1481
|
+
req: import("http").IncomingMessage;
|
1482
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1483
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1484
|
+
};
|
1485
|
+
_input_in: {
|
1486
|
+
authorization?: string | undefined;
|
1487
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1488
|
+
extraTechnologyFeePercent: number;
|
1489
|
+
extraTechnologyFeeLabel: string | null;
|
1490
|
+
workspaceId?: number | undefined;
|
1491
|
+
};
|
1492
|
+
_input_out: {
|
1493
|
+
authorization?: string | undefined;
|
1494
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1495
|
+
extraTechnologyFeePercent: number;
|
1496
|
+
extraTechnologyFeeLabel: string | null;
|
1497
|
+
workspaceId?: number | undefined;
|
1498
|
+
};
|
1499
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1500
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1501
|
+
}, void>;
|
1502
|
+
}>;
|
1304
1503
|
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1305
1504
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1306
1505
|
meta: object;
|
@@ -1324,17 +1523,17 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1324
1523
|
authorization?: string | undefined;
|
1325
1524
|
memberId: number;
|
1326
1525
|
pickupId: number;
|
1327
|
-
cancelPath?: string | undefined;
|
1328
1526
|
code?: string | undefined;
|
1329
1527
|
paymentMode?: "session" | "intent" | undefined;
|
1528
|
+
cancelPath?: string | undefined;
|
1330
1529
|
};
|
1331
1530
|
_input_out: {
|
1332
1531
|
authorization?: string | undefined;
|
1333
1532
|
memberId: number;
|
1334
|
-
pickupId: number;
|
1335
1533
|
paymentMode: "session" | "intent";
|
1336
|
-
|
1534
|
+
pickupId: number;
|
1337
1535
|
code?: string | undefined;
|
1536
|
+
cancelPath?: string | undefined;
|
1338
1537
|
};
|
1339
1538
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1340
1539
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1342,6 +1541,55 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1342
1541
|
eventName: string;
|
1343
1542
|
}>;
|
1344
1543
|
}>;
|
1544
|
+
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1545
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1546
|
+
meta: object;
|
1547
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1548
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1549
|
+
}>, {
|
1550
|
+
info: import("@trpc/server").BuildProcedure<"mutation", {
|
1551
|
+
_config: import("@trpc/server").RootConfig<{
|
1552
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1553
|
+
meta: object;
|
1554
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1555
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1556
|
+
}>;
|
1557
|
+
_meta: object;
|
1558
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1559
|
+
_input_in: {
|
1560
|
+
id: number;
|
1561
|
+
appliesWhen: "purchase";
|
1562
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1563
|
+
productValue: number;
|
1564
|
+
code?: string | undefined;
|
1565
|
+
};
|
1566
|
+
_input_out: {
|
1567
|
+
id: number;
|
1568
|
+
appliesWhen: "purchase";
|
1569
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1570
|
+
productValue: number;
|
1571
|
+
code?: string | undefined;
|
1572
|
+
};
|
1573
|
+
_output_in: {
|
1574
|
+
discountApplied: number;
|
1575
|
+
totalWithTax: number;
|
1576
|
+
totalTax: number;
|
1577
|
+
otherTaxLabel: string;
|
1578
|
+
otherTax: number;
|
1579
|
+
code?: string | undefined;
|
1580
|
+
description?: string | undefined;
|
1581
|
+
};
|
1582
|
+
_output_out: {
|
1583
|
+
discountApplied: number;
|
1584
|
+
totalWithTax: number;
|
1585
|
+
totalTax: number;
|
1586
|
+
otherTaxLabel: string;
|
1587
|
+
otherTax: number;
|
1588
|
+
code?: string | undefined;
|
1589
|
+
description?: string | undefined;
|
1590
|
+
};
|
1591
|
+
}, unknown>;
|
1592
|
+
}>;
|
1345
1593
|
}, null, "">;
|
1346
1594
|
export declare const TRPCProvider: ({ children, useLocalUrl, customUrl, queryClientConfig, queryClient, }: {
|
1347
1595
|
children: ReactNode;
|