bantr-api-client 1.4.0 → 1.5.1
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 +13 -7
- package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +2 -2
- package/api-type/src/trpcRouter/league_payments.router.d.ts +11 -11
- 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 +1 -1
- package/api-type/src/trpcRouter/product.router.d.ts +51 -0
- package/api-type/src/trpcRouter/router.d.ts +308 -56
- package/dist/src/index.d.ts +458 -84
- package/dist/src/provider.d.ts +308 -56
- package/dist/src/query.d.ts +150 -28
- 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,25 +296,25 @@ 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;
|
304
309
|
deletedAt: Date | null;
|
310
|
+
memberId: number;
|
311
|
+
totalPaid: number;
|
305
312
|
member: {
|
306
313
|
id: number;
|
307
314
|
email: string;
|
308
315
|
firstName: string | null;
|
309
316
|
lastName: string | null;
|
310
317
|
};
|
311
|
-
totalPaid: number;
|
312
318
|
payments: {
|
313
319
|
id: number;
|
314
320
|
createdAt: string | Date;
|
@@ -319,16 +325,16 @@ 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;
|
324
329
|
deletedAt: Date | null;
|
330
|
+
memberId: number;
|
331
|
+
totalPaid: number;
|
325
332
|
member: {
|
326
333
|
id: number;
|
327
334
|
email: string;
|
328
335
|
firstName: string | null;
|
329
336
|
lastName: string | null;
|
330
337
|
};
|
331
|
-
totalPaid: number;
|
332
338
|
payments: {
|
333
339
|
id: number;
|
334
340
|
createdAt: string | Date;
|
@@ -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;
|
740
|
+
paymentMode: "session" | "intent";
|
665
741
|
memberId: number;
|
666
742
|
pickupId: number;
|
667
|
-
paymentMode: "session" | "intent";
|
668
|
-
cancelPath?: string | undefined;
|
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,57 @@ 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
|
+
otherTaxPercent: number;
|
788
|
+
code?: string | undefined;
|
789
|
+
description?: string | undefined;
|
790
|
+
};
|
791
|
+
_output_out: {
|
792
|
+
discountApplied: number;
|
793
|
+
totalWithTax: number;
|
794
|
+
totalTax: number;
|
795
|
+
otherTaxLabel: string;
|
796
|
+
otherTax: number;
|
797
|
+
otherTaxPercent: number;
|
798
|
+
code?: string | undefined;
|
799
|
+
description?: string | undefined;
|
800
|
+
};
|
801
|
+
}, unknown>;
|
802
|
+
}>;
|
677
803
|
}>, unknown> & import("@trpc/react-query/dist/createTRPCReact").DecoratedProcedureRecord<{
|
678
804
|
discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
679
805
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -723,6 +849,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
723
849
|
limit: number;
|
724
850
|
cursor: number;
|
725
851
|
code?: string | undefined;
|
852
|
+
orgWorkspaceId?: number | null | undefined;
|
726
853
|
direction?: "asc" | "desc" | undefined;
|
727
854
|
listExpired?: boolean | undefined;
|
728
855
|
};
|
@@ -733,6 +860,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
733
860
|
direction: "asc" | "desc";
|
734
861
|
listExpired: boolean;
|
735
862
|
code?: string | undefined;
|
863
|
+
orgWorkspaceId?: number | null | undefined;
|
736
864
|
};
|
737
865
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
738
866
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -755,25 +883,27 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
755
883
|
};
|
756
884
|
_input_in: {
|
757
885
|
authorization?: string | undefined;
|
758
|
-
description: string;
|
759
886
|
code: string;
|
887
|
+
description: string;
|
760
888
|
appliesWhen: "purchase";
|
761
889
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
762
890
|
amountType: "flat-rate" | "percentage";
|
763
891
|
amountValue: number;
|
764
892
|
validFrom: Date | null;
|
765
893
|
validUntil: Date | null;
|
894
|
+
orgWorkspaceId?: number | null | undefined;
|
766
895
|
};
|
767
896
|
_input_out: {
|
768
897
|
authorization?: string | undefined;
|
769
|
-
description: string;
|
770
898
|
code: string;
|
899
|
+
description: string;
|
771
900
|
appliesWhen: "purchase";
|
772
901
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
773
902
|
amountType: "flat-rate" | "percentage";
|
774
903
|
amountValue: number;
|
775
904
|
validFrom: Date | null;
|
776
905
|
validUntil: Date | null;
|
906
|
+
orgWorkspaceId?: number | null | undefined;
|
777
907
|
};
|
778
908
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
779
909
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -796,8 +926,8 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
796
926
|
_input_in: {
|
797
927
|
authorization?: string | undefined;
|
798
928
|
id: number;
|
799
|
-
description: string;
|
800
929
|
code: string;
|
930
|
+
description: string;
|
801
931
|
appliesWhen: "purchase";
|
802
932
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
803
933
|
amountType: "flat-rate" | "percentage";
|
@@ -805,12 +935,13 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
805
935
|
validFrom: Date | null;
|
806
936
|
validUntil: Date | null;
|
807
937
|
usageLimit: number | null;
|
938
|
+
orgWorkspaceId?: number | null | undefined;
|
808
939
|
};
|
809
940
|
_input_out: {
|
810
941
|
authorization?: string | undefined;
|
811
942
|
id: number;
|
812
|
-
description: string;
|
813
943
|
code: string;
|
944
|
+
description: string;
|
814
945
|
appliesWhen: "purchase";
|
815
946
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
816
947
|
amountType: "flat-rate" | "percentage";
|
@@ -818,6 +949,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
818
949
|
validFrom: Date | null;
|
819
950
|
validUntil: Date | null;
|
820
951
|
usageLimit: number | null;
|
952
|
+
orgWorkspaceId?: number | null | undefined;
|
821
953
|
};
|
822
954
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
823
955
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -857,29 +989,29 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
857
989
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
858
990
|
_input_in: {
|
859
991
|
id: number;
|
860
|
-
code: string;
|
861
992
|
appliesWhen: "purchase";
|
862
993
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
863
994
|
productValue: number;
|
995
|
+
code?: string | undefined;
|
864
996
|
};
|
865
997
|
_input_out: {
|
866
998
|
id: number;
|
867
|
-
code: string;
|
868
999
|
appliesWhen: "purchase";
|
869
1000
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
870
1001
|
productValue: number;
|
1002
|
+
code?: string | undefined;
|
871
1003
|
};
|
872
1004
|
_output_in: {
|
873
|
-
description: string;
|
874
1005
|
code: string;
|
1006
|
+
description: string;
|
875
1007
|
amountType: "flat-rate" | "percentage";
|
876
1008
|
amountValue: number;
|
877
1009
|
reducedValue: number;
|
878
1010
|
newValue: number;
|
879
1011
|
};
|
880
1012
|
_output_out: {
|
881
|
-
description: string;
|
882
1013
|
code: string;
|
1014
|
+
description: string;
|
883
1015
|
amountType: "flat-rate" | "percentage";
|
884
1016
|
amountValue: number;
|
885
1017
|
reducedValue: number;
|
@@ -910,19 +1042,19 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
910
1042
|
authorization?: string | undefined;
|
911
1043
|
description: string;
|
912
1044
|
freeAgentId: number;
|
913
|
-
leagueId?: number | undefined;
|
914
|
-
cancelPath?: string | undefined;
|
915
1045
|
code?: string | undefined;
|
1046
|
+
leagueId?: number | undefined;
|
916
1047
|
paymentMode?: "session" | "intent" | undefined;
|
1048
|
+
cancelPath?: string | undefined;
|
917
1049
|
};
|
918
1050
|
_input_out: {
|
919
1051
|
authorization?: string | undefined;
|
920
1052
|
description: string;
|
921
|
-
paymentMode: "session" | "intent";
|
922
1053
|
freeAgentId: number;
|
1054
|
+
paymentMode: "session" | "intent";
|
1055
|
+
code?: string | undefined;
|
923
1056
|
leagueId?: number | undefined;
|
924
1057
|
cancelPath?: string | undefined;
|
925
|
-
code?: string | undefined;
|
926
1058
|
};
|
927
1059
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
928
1060
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -958,25 +1090,25 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
958
1090
|
};
|
959
1091
|
_input_in: {
|
960
1092
|
authorization?: string | undefined;
|
961
|
-
teamId: number;
|
962
1093
|
leagueId: number;
|
1094
|
+
teamId: number;
|
963
1095
|
};
|
964
1096
|
_input_out: {
|
965
1097
|
authorization?: string | undefined;
|
966
|
-
teamId: number;
|
967
1098
|
leagueId: number;
|
1099
|
+
teamId: number;
|
968
1100
|
};
|
969
1101
|
_output_in: {
|
970
|
-
memberId: number;
|
971
1102
|
id: number;
|
972
1103
|
deletedAt: Date | null;
|
1104
|
+
memberId: number;
|
1105
|
+
totalPaid: number;
|
973
1106
|
member: {
|
974
1107
|
id: number;
|
975
1108
|
email: string;
|
976
1109
|
firstName: string | null;
|
977
1110
|
lastName: string | null;
|
978
1111
|
};
|
979
|
-
totalPaid: number;
|
980
1112
|
payments: {
|
981
1113
|
id: number;
|
982
1114
|
createdAt: string | Date;
|
@@ -987,16 +1119,16 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
987
1119
|
}[];
|
988
1120
|
}[];
|
989
1121
|
_output_out: {
|
990
|
-
memberId: number;
|
991
1122
|
id: number;
|
992
1123
|
deletedAt: Date | null;
|
1124
|
+
memberId: number;
|
1125
|
+
totalPaid: number;
|
993
1126
|
member: {
|
994
1127
|
id: number;
|
995
1128
|
email: string;
|
996
1129
|
firstName: string | null;
|
997
1130
|
lastName: string | null;
|
998
1131
|
};
|
999
|
-
totalPaid: number;
|
1000
1132
|
payments: {
|
1001
1133
|
id: number;
|
1002
1134
|
createdAt: string | Date;
|
@@ -1106,21 +1238,21 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1106
1238
|
};
|
1107
1239
|
_input_in: {
|
1108
1240
|
authorization?: string | undefined;
|
1109
|
-
teamId: number;
|
1110
1241
|
leagueId: number;
|
1242
|
+
teamId: number;
|
1111
1243
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1112
|
-
paymentAmount?: number | undefined;
|
1113
1244
|
code?: string | undefined;
|
1114
1245
|
paymentMode?: "session" | "intent" | undefined;
|
1246
|
+
paymentAmount?: number | undefined;
|
1115
1247
|
};
|
1116
1248
|
_input_out: {
|
1117
1249
|
authorization?: string | undefined;
|
1118
|
-
teamId: number;
|
1119
1250
|
leagueId: number;
|
1120
|
-
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1121
1251
|
paymentMode: "session" | "intent";
|
1122
|
-
|
1252
|
+
teamId: number;
|
1253
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1123
1254
|
code?: string | undefined;
|
1255
|
+
paymentAmount?: number | undefined;
|
1124
1256
|
};
|
1125
1257
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1126
1258
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1291,16 +1423,85 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1291
1423
|
};
|
1292
1424
|
_input_in: {
|
1293
1425
|
authorization?: string | undefined;
|
1294
|
-
provider: "
|
1426
|
+
provider: "apple" | "google";
|
1295
1427
|
};
|
1296
1428
|
_input_out: {
|
1297
1429
|
authorization?: string | undefined;
|
1298
|
-
provider: "
|
1430
|
+
provider: "apple" | "google";
|
1299
1431
|
};
|
1300
1432
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1301
1433
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1302
1434
|
}, import("../api-type/src/types/auth").MemberAuthResponse>;
|
1303
1435
|
}>;
|
1436
|
+
organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1437
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1438
|
+
meta: object;
|
1439
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1440
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1441
|
+
}>, {
|
1442
|
+
fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
|
1443
|
+
_config: import("@trpc/server").RootConfig<{
|
1444
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1445
|
+
meta: object;
|
1446
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1447
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1448
|
+
}>;
|
1449
|
+
_meta: object;
|
1450
|
+
_ctx_out: {
|
1451
|
+
req: import("http").IncomingMessage;
|
1452
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1453
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1454
|
+
};
|
1455
|
+
_input_in: {
|
1456
|
+
authorization?: string | undefined;
|
1457
|
+
workspaceId?: number | undefined;
|
1458
|
+
};
|
1459
|
+
_input_out: {
|
1460
|
+
authorization?: string | undefined;
|
1461
|
+
workspaceId?: number | undefined;
|
1462
|
+
};
|
1463
|
+
_output_in: {
|
1464
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1465
|
+
extraTechnologyFeePercent: number;
|
1466
|
+
extraTechnologyFeeLabel: string | null;
|
1467
|
+
};
|
1468
|
+
_output_out: {
|
1469
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1470
|
+
extraTechnologyFeePercent: number;
|
1471
|
+
extraTechnologyFeeLabel: string | null;
|
1472
|
+
};
|
1473
|
+
}, unknown>;
|
1474
|
+
updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
|
1475
|
+
_config: import("@trpc/server").RootConfig<{
|
1476
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1477
|
+
meta: object;
|
1478
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1479
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1480
|
+
}>;
|
1481
|
+
_meta: object;
|
1482
|
+
_ctx_out: {
|
1483
|
+
req: import("http").IncomingMessage;
|
1484
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1485
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1486
|
+
};
|
1487
|
+
_input_in: {
|
1488
|
+
authorization?: string | undefined;
|
1489
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1490
|
+
extraTechnologyFeePercent: number;
|
1491
|
+
extraTechnologyFeeLabel: string | null;
|
1492
|
+
workspaceId?: number | undefined;
|
1493
|
+
};
|
1494
|
+
_input_out: {
|
1495
|
+
authorization?: string | undefined;
|
1496
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1497
|
+
extraTechnologyFeePercent: number;
|
1498
|
+
extraTechnologyFeeLabel: string | null;
|
1499
|
+
workspaceId?: number | undefined;
|
1500
|
+
};
|
1501
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1502
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1503
|
+
}, void>;
|
1504
|
+
}>;
|
1304
1505
|
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1305
1506
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1306
1507
|
meta: object;
|
@@ -1324,17 +1525,17 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1324
1525
|
authorization?: string | undefined;
|
1325
1526
|
memberId: number;
|
1326
1527
|
pickupId: number;
|
1327
|
-
cancelPath?: string | undefined;
|
1328
1528
|
code?: string | undefined;
|
1329
1529
|
paymentMode?: "session" | "intent" | undefined;
|
1530
|
+
cancelPath?: string | undefined;
|
1330
1531
|
};
|
1331
1532
|
_input_out: {
|
1332
1533
|
authorization?: string | undefined;
|
1534
|
+
paymentMode: "session" | "intent";
|
1333
1535
|
memberId: number;
|
1334
1536
|
pickupId: number;
|
1335
|
-
paymentMode: "session" | "intent";
|
1336
|
-
cancelPath?: string | undefined;
|
1337
1537
|
code?: string | undefined;
|
1538
|
+
cancelPath?: string | undefined;
|
1338
1539
|
};
|
1339
1540
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1340
1541
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1342,6 +1543,57 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1342
1543
|
eventName: string;
|
1343
1544
|
}>;
|
1344
1545
|
}>;
|
1546
|
+
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1547
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1548
|
+
meta: object;
|
1549
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1550
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1551
|
+
}>, {
|
1552
|
+
info: import("@trpc/server").BuildProcedure<"mutation", {
|
1553
|
+
_config: import("@trpc/server").RootConfig<{
|
1554
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1555
|
+
meta: object;
|
1556
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1557
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1558
|
+
}>;
|
1559
|
+
_meta: object;
|
1560
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1561
|
+
_input_in: {
|
1562
|
+
id: number;
|
1563
|
+
appliesWhen: "purchase";
|
1564
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1565
|
+
productValue: number;
|
1566
|
+
code?: string | undefined;
|
1567
|
+
};
|
1568
|
+
_input_out: {
|
1569
|
+
id: number;
|
1570
|
+
appliesWhen: "purchase";
|
1571
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1572
|
+
productValue: number;
|
1573
|
+
code?: string | undefined;
|
1574
|
+
};
|
1575
|
+
_output_in: {
|
1576
|
+
discountApplied: number;
|
1577
|
+
totalWithTax: number;
|
1578
|
+
totalTax: number;
|
1579
|
+
otherTaxLabel: string;
|
1580
|
+
otherTax: number;
|
1581
|
+
otherTaxPercent: 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
|
+
otherTaxPercent: number;
|
1592
|
+
code?: string | undefined;
|
1593
|
+
description?: string | undefined;
|
1594
|
+
};
|
1595
|
+
}, unknown>;
|
1596
|
+
}>;
|
1345
1597
|
}, null, "">;
|
1346
1598
|
export declare const TRPCProvider: ({ children, useLocalUrl, customUrl, queryClientConfig, queryClient, }: {
|
1347
1599
|
children: ReactNode;
|