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/index.d.ts
CHANGED
@@ -68,6 +68,7 @@ export declare const BantrSdk: {
|
|
68
68
|
limit: number;
|
69
69
|
cursor: number;
|
70
70
|
code?: string | undefined;
|
71
|
+
orgWorkspaceId?: number | null | undefined;
|
71
72
|
direction?: "asc" | "desc" | undefined;
|
72
73
|
listExpired?: boolean | undefined;
|
73
74
|
};
|
@@ -78,6 +79,7 @@ export declare const BantrSdk: {
|
|
78
79
|
direction: "asc" | "desc";
|
79
80
|
listExpired: boolean;
|
80
81
|
code?: string | undefined;
|
82
|
+
orgWorkspaceId?: number | null | undefined;
|
81
83
|
};
|
82
84
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
83
85
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -100,25 +102,27 @@ export declare const BantrSdk: {
|
|
100
102
|
};
|
101
103
|
_input_in: {
|
102
104
|
authorization?: string | undefined;
|
103
|
-
description: string;
|
104
105
|
code: string;
|
106
|
+
description: string;
|
105
107
|
appliesWhen: "purchase";
|
106
108
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
107
109
|
amountType: "flat-rate" | "percentage";
|
108
110
|
amountValue: number;
|
109
111
|
validFrom: Date | null;
|
110
112
|
validUntil: Date | null;
|
113
|
+
orgWorkspaceId?: number | null | undefined;
|
111
114
|
};
|
112
115
|
_input_out: {
|
113
116
|
authorization?: string | undefined;
|
114
|
-
description: string;
|
115
117
|
code: string;
|
118
|
+
description: string;
|
116
119
|
appliesWhen: "purchase";
|
117
120
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
118
121
|
amountType: "flat-rate" | "percentage";
|
119
122
|
amountValue: number;
|
120
123
|
validFrom: Date | null;
|
121
124
|
validUntil: Date | null;
|
125
|
+
orgWorkspaceId?: number | null | undefined;
|
122
126
|
};
|
123
127
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
124
128
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -141,8 +145,8 @@ export declare const BantrSdk: {
|
|
141
145
|
_input_in: {
|
142
146
|
authorization?: string | undefined;
|
143
147
|
id: number;
|
144
|
-
description: string;
|
145
148
|
code: string;
|
149
|
+
description: string;
|
146
150
|
appliesWhen: "purchase";
|
147
151
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
148
152
|
amountType: "flat-rate" | "percentage";
|
@@ -150,12 +154,13 @@ export declare const BantrSdk: {
|
|
150
154
|
validFrom: Date | null;
|
151
155
|
validUntil: Date | null;
|
152
156
|
usageLimit: number | null;
|
157
|
+
orgWorkspaceId?: number | null | undefined;
|
153
158
|
};
|
154
159
|
_input_out: {
|
155
160
|
authorization?: string | undefined;
|
156
161
|
id: number;
|
157
|
-
description: string;
|
158
162
|
code: string;
|
163
|
+
description: string;
|
159
164
|
appliesWhen: "purchase";
|
160
165
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
161
166
|
amountType: "flat-rate" | "percentage";
|
@@ -163,6 +168,7 @@ export declare const BantrSdk: {
|
|
163
168
|
validFrom: Date | null;
|
164
169
|
validUntil: Date | null;
|
165
170
|
usageLimit: number | null;
|
171
|
+
orgWorkspaceId?: number | null | undefined;
|
166
172
|
};
|
167
173
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
168
174
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -202,29 +208,29 @@ export declare const BantrSdk: {
|
|
202
208
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
203
209
|
_input_in: {
|
204
210
|
id: number;
|
205
|
-
code: string;
|
206
211
|
appliesWhen: "purchase";
|
207
212
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
208
213
|
productValue: number;
|
214
|
+
code?: string | undefined;
|
209
215
|
};
|
210
216
|
_input_out: {
|
211
217
|
id: number;
|
212
|
-
code: string;
|
213
218
|
appliesWhen: "purchase";
|
214
219
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
215
220
|
productValue: number;
|
221
|
+
code?: string | undefined;
|
216
222
|
};
|
217
223
|
_output_in: {
|
218
|
-
description: string;
|
219
224
|
code: string;
|
225
|
+
description: string;
|
220
226
|
amountType: "flat-rate" | "percentage";
|
221
227
|
amountValue: number;
|
222
228
|
reducedValue: number;
|
223
229
|
newValue: number;
|
224
230
|
};
|
225
231
|
_output_out: {
|
226
|
-
description: string;
|
227
232
|
code: string;
|
233
|
+
description: string;
|
228
234
|
amountType: "flat-rate" | "percentage";
|
229
235
|
amountValue: number;
|
230
236
|
reducedValue: number;
|
@@ -255,19 +261,19 @@ export declare const BantrSdk: {
|
|
255
261
|
authorization?: string | undefined;
|
256
262
|
description: string;
|
257
263
|
freeAgentId: number;
|
258
|
-
leagueId?: number | undefined;
|
259
|
-
cancelPath?: string | undefined;
|
260
264
|
code?: string | undefined;
|
265
|
+
leagueId?: number | undefined;
|
261
266
|
paymentMode?: "session" | "intent" | undefined;
|
267
|
+
cancelPath?: string | undefined;
|
262
268
|
};
|
263
269
|
_input_out: {
|
264
270
|
authorization?: string | undefined;
|
265
271
|
description: string;
|
266
|
-
paymentMode: "session" | "intent";
|
267
272
|
freeAgentId: number;
|
273
|
+
paymentMode: "session" | "intent";
|
274
|
+
code?: string | undefined;
|
268
275
|
leagueId?: number | undefined;
|
269
276
|
cancelPath?: string | undefined;
|
270
|
-
code?: string | undefined;
|
271
277
|
};
|
272
278
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
273
279
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -303,25 +309,25 @@ export declare const BantrSdk: {
|
|
303
309
|
};
|
304
310
|
_input_in: {
|
305
311
|
authorization?: string | undefined;
|
306
|
-
teamId: number;
|
307
312
|
leagueId: number;
|
313
|
+
teamId: number;
|
308
314
|
};
|
309
315
|
_input_out: {
|
310
316
|
authorization?: string | undefined;
|
311
|
-
teamId: number;
|
312
317
|
leagueId: number;
|
318
|
+
teamId: number;
|
313
319
|
};
|
314
320
|
_output_in: {
|
315
|
-
memberId: number;
|
316
321
|
id: number;
|
317
322
|
deletedAt: Date | null;
|
323
|
+
memberId: number;
|
324
|
+
totalPaid: number;
|
318
325
|
member: {
|
319
326
|
id: number;
|
320
327
|
email: string;
|
321
328
|
firstName: string | null;
|
322
329
|
lastName: string | null;
|
323
330
|
};
|
324
|
-
totalPaid: number;
|
325
331
|
payments: {
|
326
332
|
id: number;
|
327
333
|
createdAt: string | Date;
|
@@ -332,16 +338,16 @@ export declare const BantrSdk: {
|
|
332
338
|
}[];
|
333
339
|
}[];
|
334
340
|
_output_out: {
|
335
|
-
memberId: number;
|
336
341
|
id: number;
|
337
342
|
deletedAt: Date | null;
|
343
|
+
memberId: number;
|
344
|
+
totalPaid: number;
|
338
345
|
member: {
|
339
346
|
id: number;
|
340
347
|
email: string;
|
341
348
|
firstName: string | null;
|
342
349
|
lastName: string | null;
|
343
350
|
};
|
344
|
-
totalPaid: number;
|
345
351
|
payments: {
|
346
352
|
id: number;
|
347
353
|
createdAt: string | Date;
|
@@ -451,21 +457,21 @@ export declare const BantrSdk: {
|
|
451
457
|
};
|
452
458
|
_input_in: {
|
453
459
|
authorization?: string | undefined;
|
454
|
-
teamId: number;
|
455
460
|
leagueId: number;
|
461
|
+
teamId: number;
|
456
462
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
457
|
-
paymentAmount?: number | undefined;
|
458
463
|
code?: string | undefined;
|
459
464
|
paymentMode?: "session" | "intent" | undefined;
|
465
|
+
paymentAmount?: number | undefined;
|
460
466
|
};
|
461
467
|
_input_out: {
|
462
468
|
authorization?: string | undefined;
|
463
|
-
teamId: number;
|
464
469
|
leagueId: number;
|
465
|
-
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
466
470
|
paymentMode: "session" | "intent";
|
467
|
-
|
471
|
+
teamId: number;
|
472
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
468
473
|
code?: string | undefined;
|
474
|
+
paymentAmount?: number | undefined;
|
469
475
|
};
|
470
476
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
471
477
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -636,16 +642,85 @@ export declare const BantrSdk: {
|
|
636
642
|
};
|
637
643
|
_input_in: {
|
638
644
|
authorization?: string | undefined;
|
639
|
-
provider: "
|
645
|
+
provider: "apple" | "google";
|
640
646
|
};
|
641
647
|
_input_out: {
|
642
648
|
authorization?: string | undefined;
|
643
|
-
provider: "
|
649
|
+
provider: "apple" | "google";
|
644
650
|
};
|
645
651
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
646
652
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
647
653
|
}, import("../api-type/src/types/auth").MemberAuthResponse>;
|
648
654
|
}>;
|
655
|
+
organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
656
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
657
|
+
meta: object;
|
658
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
659
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
660
|
+
}>, {
|
661
|
+
fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
|
662
|
+
_config: import("@trpc/server").RootConfig<{
|
663
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
664
|
+
meta: object;
|
665
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
666
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
667
|
+
}>;
|
668
|
+
_meta: object;
|
669
|
+
_ctx_out: {
|
670
|
+
req: import("http").IncomingMessage;
|
671
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
672
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
673
|
+
};
|
674
|
+
_input_in: {
|
675
|
+
authorization?: string | undefined;
|
676
|
+
workspaceId?: number | undefined;
|
677
|
+
};
|
678
|
+
_input_out: {
|
679
|
+
authorization?: string | undefined;
|
680
|
+
workspaceId?: number | undefined;
|
681
|
+
};
|
682
|
+
_output_in: {
|
683
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
684
|
+
extraTechnologyFeePercent: number;
|
685
|
+
extraTechnologyFeeLabel: string | null;
|
686
|
+
};
|
687
|
+
_output_out: {
|
688
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
689
|
+
extraTechnologyFeePercent: number;
|
690
|
+
extraTechnologyFeeLabel: string | null;
|
691
|
+
};
|
692
|
+
}, unknown>;
|
693
|
+
updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
|
694
|
+
_config: import("@trpc/server").RootConfig<{
|
695
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
696
|
+
meta: object;
|
697
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
698
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
699
|
+
}>;
|
700
|
+
_meta: object;
|
701
|
+
_ctx_out: {
|
702
|
+
req: import("http").IncomingMessage;
|
703
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
704
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
705
|
+
};
|
706
|
+
_input_in: {
|
707
|
+
authorization?: string | undefined;
|
708
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
709
|
+
extraTechnologyFeePercent: number;
|
710
|
+
extraTechnologyFeeLabel: string | null;
|
711
|
+
workspaceId?: number | undefined;
|
712
|
+
};
|
713
|
+
_input_out: {
|
714
|
+
authorization?: string | undefined;
|
715
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
716
|
+
extraTechnologyFeePercent: number;
|
717
|
+
extraTechnologyFeeLabel: string | null;
|
718
|
+
workspaceId?: number | undefined;
|
719
|
+
};
|
720
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
721
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
722
|
+
}, void>;
|
723
|
+
}>;
|
649
724
|
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
650
725
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
651
726
|
meta: object;
|
@@ -669,17 +744,17 @@ export declare const BantrSdk: {
|
|
669
744
|
authorization?: string | undefined;
|
670
745
|
memberId: number;
|
671
746
|
pickupId: number;
|
672
|
-
cancelPath?: string | undefined;
|
673
747
|
code?: string | undefined;
|
674
748
|
paymentMode?: "session" | "intent" | undefined;
|
749
|
+
cancelPath?: string | undefined;
|
675
750
|
};
|
676
751
|
_input_out: {
|
677
752
|
authorization?: string | undefined;
|
753
|
+
paymentMode: "session" | "intent";
|
678
754
|
memberId: number;
|
679
755
|
pickupId: number;
|
680
|
-
paymentMode: "session" | "intent";
|
681
|
-
cancelPath?: string | undefined;
|
682
756
|
code?: string | undefined;
|
757
|
+
cancelPath?: string | undefined;
|
683
758
|
};
|
684
759
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
685
760
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -687,6 +762,57 @@ export declare const BantrSdk: {
|
|
687
762
|
eventName: string;
|
688
763
|
}>;
|
689
764
|
}>;
|
765
|
+
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
766
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
767
|
+
meta: object;
|
768
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
769
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
770
|
+
}>, {
|
771
|
+
info: import("@trpc/server").BuildProcedure<"mutation", {
|
772
|
+
_config: import("@trpc/server").RootConfig<{
|
773
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
774
|
+
meta: object;
|
775
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
776
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
777
|
+
}>;
|
778
|
+
_meta: object;
|
779
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
780
|
+
_input_in: {
|
781
|
+
id: number;
|
782
|
+
appliesWhen: "purchase";
|
783
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
784
|
+
productValue: number;
|
785
|
+
code?: string | undefined;
|
786
|
+
};
|
787
|
+
_input_out: {
|
788
|
+
id: number;
|
789
|
+
appliesWhen: "purchase";
|
790
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
791
|
+
productValue: number;
|
792
|
+
code?: string | undefined;
|
793
|
+
};
|
794
|
+
_output_in: {
|
795
|
+
discountApplied: number;
|
796
|
+
totalWithTax: number;
|
797
|
+
totalTax: number;
|
798
|
+
otherTaxLabel: string;
|
799
|
+
otherTax: number;
|
800
|
+
otherTaxPercent: number;
|
801
|
+
code?: string | undefined;
|
802
|
+
description?: string | undefined;
|
803
|
+
};
|
804
|
+
_output_out: {
|
805
|
+
discountApplied: number;
|
806
|
+
totalWithTax: number;
|
807
|
+
totalTax: number;
|
808
|
+
otherTaxLabel: string;
|
809
|
+
otherTax: number;
|
810
|
+
otherTaxPercent: number;
|
811
|
+
code?: string | undefined;
|
812
|
+
description?: string | undefined;
|
813
|
+
};
|
814
|
+
}, unknown>;
|
815
|
+
}>;
|
690
816
|
}>, unknown> & import("@trpc/react-query/dist/createTRPCReact").DecoratedProcedureRecord<{
|
691
817
|
discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
692
818
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -736,6 +862,7 @@ export declare const BantrSdk: {
|
|
736
862
|
limit: number;
|
737
863
|
cursor: number;
|
738
864
|
code?: string | undefined;
|
865
|
+
orgWorkspaceId?: number | null | undefined;
|
739
866
|
direction?: "asc" | "desc" | undefined;
|
740
867
|
listExpired?: boolean | undefined;
|
741
868
|
};
|
@@ -746,6 +873,7 @@ export declare const BantrSdk: {
|
|
746
873
|
direction: "asc" | "desc";
|
747
874
|
listExpired: boolean;
|
748
875
|
code?: string | undefined;
|
876
|
+
orgWorkspaceId?: number | null | undefined;
|
749
877
|
};
|
750
878
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
751
879
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -768,25 +896,27 @@ export declare const BantrSdk: {
|
|
768
896
|
};
|
769
897
|
_input_in: {
|
770
898
|
authorization?: string | undefined;
|
771
|
-
description: string;
|
772
899
|
code: string;
|
900
|
+
description: string;
|
773
901
|
appliesWhen: "purchase";
|
774
902
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
775
903
|
amountType: "flat-rate" | "percentage";
|
776
904
|
amountValue: number;
|
777
905
|
validFrom: Date | null;
|
778
906
|
validUntil: Date | null;
|
907
|
+
orgWorkspaceId?: number | null | undefined;
|
779
908
|
};
|
780
909
|
_input_out: {
|
781
910
|
authorization?: string | undefined;
|
782
|
-
description: string;
|
783
911
|
code: string;
|
912
|
+
description: string;
|
784
913
|
appliesWhen: "purchase";
|
785
914
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
786
915
|
amountType: "flat-rate" | "percentage";
|
787
916
|
amountValue: number;
|
788
917
|
validFrom: Date | null;
|
789
918
|
validUntil: Date | null;
|
919
|
+
orgWorkspaceId?: number | null | undefined;
|
790
920
|
};
|
791
921
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
792
922
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -809,8 +939,8 @@ export declare const BantrSdk: {
|
|
809
939
|
_input_in: {
|
810
940
|
authorization?: string | undefined;
|
811
941
|
id: number;
|
812
|
-
description: string;
|
813
942
|
code: string;
|
943
|
+
description: string;
|
814
944
|
appliesWhen: "purchase";
|
815
945
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
816
946
|
amountType: "flat-rate" | "percentage";
|
@@ -818,12 +948,13 @@ export declare const BantrSdk: {
|
|
818
948
|
validFrom: Date | null;
|
819
949
|
validUntil: Date | null;
|
820
950
|
usageLimit: number | null;
|
951
|
+
orgWorkspaceId?: number | null | undefined;
|
821
952
|
};
|
822
953
|
_input_out: {
|
823
954
|
authorization?: string | undefined;
|
824
955
|
id: number;
|
825
|
-
description: string;
|
826
956
|
code: string;
|
957
|
+
description: string;
|
827
958
|
appliesWhen: "purchase";
|
828
959
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
829
960
|
amountType: "flat-rate" | "percentage";
|
@@ -831,6 +962,7 @@ export declare const BantrSdk: {
|
|
831
962
|
validFrom: Date | null;
|
832
963
|
validUntil: Date | null;
|
833
964
|
usageLimit: number | null;
|
965
|
+
orgWorkspaceId?: number | null | undefined;
|
834
966
|
};
|
835
967
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
836
968
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -870,29 +1002,29 @@ export declare const BantrSdk: {
|
|
870
1002
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
871
1003
|
_input_in: {
|
872
1004
|
id: number;
|
873
|
-
code: string;
|
874
1005
|
appliesWhen: "purchase";
|
875
1006
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
876
1007
|
productValue: number;
|
1008
|
+
code?: string | undefined;
|
877
1009
|
};
|
878
1010
|
_input_out: {
|
879
1011
|
id: number;
|
880
|
-
code: string;
|
881
1012
|
appliesWhen: "purchase";
|
882
1013
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
883
1014
|
productValue: number;
|
1015
|
+
code?: string | undefined;
|
884
1016
|
};
|
885
1017
|
_output_in: {
|
886
|
-
description: string;
|
887
1018
|
code: string;
|
1019
|
+
description: string;
|
888
1020
|
amountType: "flat-rate" | "percentage";
|
889
1021
|
amountValue: number;
|
890
1022
|
reducedValue: number;
|
891
1023
|
newValue: number;
|
892
1024
|
};
|
893
1025
|
_output_out: {
|
894
|
-
description: string;
|
895
1026
|
code: string;
|
1027
|
+
description: string;
|
896
1028
|
amountType: "flat-rate" | "percentage";
|
897
1029
|
amountValue: number;
|
898
1030
|
reducedValue: number;
|
@@ -923,19 +1055,19 @@ export declare const BantrSdk: {
|
|
923
1055
|
authorization?: string | undefined;
|
924
1056
|
description: string;
|
925
1057
|
freeAgentId: number;
|
926
|
-
leagueId?: number | undefined;
|
927
|
-
cancelPath?: string | undefined;
|
928
1058
|
code?: string | undefined;
|
1059
|
+
leagueId?: number | undefined;
|
929
1060
|
paymentMode?: "session" | "intent" | undefined;
|
1061
|
+
cancelPath?: string | undefined;
|
930
1062
|
};
|
931
1063
|
_input_out: {
|
932
1064
|
authorization?: string | undefined;
|
933
1065
|
description: string;
|
934
|
-
paymentMode: "session" | "intent";
|
935
1066
|
freeAgentId: number;
|
1067
|
+
paymentMode: "session" | "intent";
|
1068
|
+
code?: string | undefined;
|
936
1069
|
leagueId?: number | undefined;
|
937
1070
|
cancelPath?: string | undefined;
|
938
|
-
code?: string | undefined;
|
939
1071
|
};
|
940
1072
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
941
1073
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -971,25 +1103,25 @@ export declare const BantrSdk: {
|
|
971
1103
|
};
|
972
1104
|
_input_in: {
|
973
1105
|
authorization?: string | undefined;
|
974
|
-
teamId: number;
|
975
1106
|
leagueId: number;
|
1107
|
+
teamId: number;
|
976
1108
|
};
|
977
1109
|
_input_out: {
|
978
1110
|
authorization?: string | undefined;
|
979
|
-
teamId: number;
|
980
1111
|
leagueId: number;
|
1112
|
+
teamId: number;
|
981
1113
|
};
|
982
1114
|
_output_in: {
|
983
|
-
memberId: number;
|
984
1115
|
id: number;
|
985
1116
|
deletedAt: Date | null;
|
1117
|
+
memberId: number;
|
1118
|
+
totalPaid: number;
|
986
1119
|
member: {
|
987
1120
|
id: number;
|
988
1121
|
email: string;
|
989
1122
|
firstName: string | null;
|
990
1123
|
lastName: string | null;
|
991
1124
|
};
|
992
|
-
totalPaid: number;
|
993
1125
|
payments: {
|
994
1126
|
id: number;
|
995
1127
|
createdAt: string | Date;
|
@@ -1000,16 +1132,16 @@ export declare const BantrSdk: {
|
|
1000
1132
|
}[];
|
1001
1133
|
}[];
|
1002
1134
|
_output_out: {
|
1003
|
-
memberId: number;
|
1004
1135
|
id: number;
|
1005
1136
|
deletedAt: Date | null;
|
1137
|
+
memberId: number;
|
1138
|
+
totalPaid: number;
|
1006
1139
|
member: {
|
1007
1140
|
id: number;
|
1008
1141
|
email: string;
|
1009
1142
|
firstName: string | null;
|
1010
1143
|
lastName: string | null;
|
1011
1144
|
};
|
1012
|
-
totalPaid: number;
|
1013
1145
|
payments: {
|
1014
1146
|
id: number;
|
1015
1147
|
createdAt: string | Date;
|
@@ -1119,21 +1251,21 @@ export declare const BantrSdk: {
|
|
1119
1251
|
};
|
1120
1252
|
_input_in: {
|
1121
1253
|
authorization?: string | undefined;
|
1122
|
-
teamId: number;
|
1123
1254
|
leagueId: number;
|
1255
|
+
teamId: number;
|
1124
1256
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1125
|
-
paymentAmount?: number | undefined;
|
1126
1257
|
code?: string | undefined;
|
1127
1258
|
paymentMode?: "session" | "intent" | undefined;
|
1259
|
+
paymentAmount?: number | undefined;
|
1128
1260
|
};
|
1129
1261
|
_input_out: {
|
1130
1262
|
authorization?: string | undefined;
|
1131
|
-
teamId: number;
|
1132
1263
|
leagueId: number;
|
1133
|
-
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1134
1264
|
paymentMode: "session" | "intent";
|
1135
|
-
|
1265
|
+
teamId: number;
|
1266
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1136
1267
|
code?: string | undefined;
|
1268
|
+
paymentAmount?: number | undefined;
|
1137
1269
|
};
|
1138
1270
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1139
1271
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1304,16 +1436,85 @@ export declare const BantrSdk: {
|
|
1304
1436
|
};
|
1305
1437
|
_input_in: {
|
1306
1438
|
authorization?: string | undefined;
|
1307
|
-
provider: "
|
1439
|
+
provider: "apple" | "google";
|
1308
1440
|
};
|
1309
1441
|
_input_out: {
|
1310
1442
|
authorization?: string | undefined;
|
1311
|
-
provider: "
|
1443
|
+
provider: "apple" | "google";
|
1312
1444
|
};
|
1313
1445
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1314
1446
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1315
1447
|
}, import("../api-type/src/types/auth").MemberAuthResponse>;
|
1316
1448
|
}>;
|
1449
|
+
organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1450
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1451
|
+
meta: object;
|
1452
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1453
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1454
|
+
}>, {
|
1455
|
+
fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
|
1456
|
+
_config: import("@trpc/server").RootConfig<{
|
1457
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1458
|
+
meta: object;
|
1459
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1460
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1461
|
+
}>;
|
1462
|
+
_meta: object;
|
1463
|
+
_ctx_out: {
|
1464
|
+
req: import("http").IncomingMessage;
|
1465
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1466
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1467
|
+
};
|
1468
|
+
_input_in: {
|
1469
|
+
authorization?: string | undefined;
|
1470
|
+
workspaceId?: number | undefined;
|
1471
|
+
};
|
1472
|
+
_input_out: {
|
1473
|
+
authorization?: string | undefined;
|
1474
|
+
workspaceId?: number | undefined;
|
1475
|
+
};
|
1476
|
+
_output_in: {
|
1477
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1478
|
+
extraTechnologyFeePercent: number;
|
1479
|
+
extraTechnologyFeeLabel: string | null;
|
1480
|
+
};
|
1481
|
+
_output_out: {
|
1482
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1483
|
+
extraTechnologyFeePercent: number;
|
1484
|
+
extraTechnologyFeeLabel: string | null;
|
1485
|
+
};
|
1486
|
+
}, unknown>;
|
1487
|
+
updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
|
1488
|
+
_config: import("@trpc/server").RootConfig<{
|
1489
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1490
|
+
meta: object;
|
1491
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1492
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1493
|
+
}>;
|
1494
|
+
_meta: object;
|
1495
|
+
_ctx_out: {
|
1496
|
+
req: import("http").IncomingMessage;
|
1497
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1498
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1499
|
+
};
|
1500
|
+
_input_in: {
|
1501
|
+
authorization?: string | undefined;
|
1502
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1503
|
+
extraTechnologyFeePercent: number;
|
1504
|
+
extraTechnologyFeeLabel: string | null;
|
1505
|
+
workspaceId?: number | undefined;
|
1506
|
+
};
|
1507
|
+
_input_out: {
|
1508
|
+
authorization?: string | undefined;
|
1509
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1510
|
+
extraTechnologyFeePercent: number;
|
1511
|
+
extraTechnologyFeeLabel: string | null;
|
1512
|
+
workspaceId?: number | undefined;
|
1513
|
+
};
|
1514
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1515
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1516
|
+
}, void>;
|
1517
|
+
}>;
|
1317
1518
|
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1318
1519
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1319
1520
|
meta: object;
|
@@ -1337,17 +1538,17 @@ export declare const BantrSdk: {
|
|
1337
1538
|
authorization?: string | undefined;
|
1338
1539
|
memberId: number;
|
1339
1540
|
pickupId: number;
|
1340
|
-
cancelPath?: string | undefined;
|
1341
1541
|
code?: string | undefined;
|
1342
1542
|
paymentMode?: "session" | "intent" | undefined;
|
1543
|
+
cancelPath?: string | undefined;
|
1343
1544
|
};
|
1344
1545
|
_input_out: {
|
1345
1546
|
authorization?: string | undefined;
|
1547
|
+
paymentMode: "session" | "intent";
|
1346
1548
|
memberId: number;
|
1347
1549
|
pickupId: number;
|
1348
|
-
paymentMode: "session" | "intent";
|
1349
|
-
cancelPath?: string | undefined;
|
1350
1550
|
code?: string | undefined;
|
1551
|
+
cancelPath?: string | undefined;
|
1351
1552
|
};
|
1352
1553
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1353
1554
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1355,6 +1556,57 @@ export declare const BantrSdk: {
|
|
1355
1556
|
eventName: string;
|
1356
1557
|
}>;
|
1357
1558
|
}>;
|
1559
|
+
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1560
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1561
|
+
meta: object;
|
1562
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1563
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1564
|
+
}>, {
|
1565
|
+
info: import("@trpc/server").BuildProcedure<"mutation", {
|
1566
|
+
_config: import("@trpc/server").RootConfig<{
|
1567
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1568
|
+
meta: object;
|
1569
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1570
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1571
|
+
}>;
|
1572
|
+
_meta: object;
|
1573
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1574
|
+
_input_in: {
|
1575
|
+
id: number;
|
1576
|
+
appliesWhen: "purchase";
|
1577
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1578
|
+
productValue: number;
|
1579
|
+
code?: string | undefined;
|
1580
|
+
};
|
1581
|
+
_input_out: {
|
1582
|
+
id: number;
|
1583
|
+
appliesWhen: "purchase";
|
1584
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1585
|
+
productValue: number;
|
1586
|
+
code?: string | undefined;
|
1587
|
+
};
|
1588
|
+
_output_in: {
|
1589
|
+
discountApplied: number;
|
1590
|
+
totalWithTax: number;
|
1591
|
+
totalTax: number;
|
1592
|
+
otherTaxLabel: string;
|
1593
|
+
otherTax: number;
|
1594
|
+
otherTaxPercent: number;
|
1595
|
+
code?: string | undefined;
|
1596
|
+
description?: string | undefined;
|
1597
|
+
};
|
1598
|
+
_output_out: {
|
1599
|
+
discountApplied: number;
|
1600
|
+
totalWithTax: number;
|
1601
|
+
totalTax: number;
|
1602
|
+
otherTaxLabel: string;
|
1603
|
+
otherTax: number;
|
1604
|
+
otherTaxPercent: number;
|
1605
|
+
code?: string | undefined;
|
1606
|
+
description?: string | undefined;
|
1607
|
+
};
|
1608
|
+
}, unknown>;
|
1609
|
+
}>;
|
1358
1610
|
}, null, "">;
|
1359
1611
|
createTRPCClientQuery: (options?: {
|
1360
1612
|
useLocalUrl?: boolean;
|
@@ -1406,6 +1658,7 @@ export declare const BantrSdk: {
|
|
1406
1658
|
limit: number;
|
1407
1659
|
cursor: number;
|
1408
1660
|
code?: string | undefined;
|
1661
|
+
orgWorkspaceId?: number | null | undefined;
|
1409
1662
|
direction?: "asc" | "desc" | undefined;
|
1410
1663
|
listExpired?: boolean | undefined;
|
1411
1664
|
};
|
@@ -1416,6 +1669,7 @@ export declare const BantrSdk: {
|
|
1416
1669
|
direction: "asc" | "desc";
|
1417
1670
|
listExpired: boolean;
|
1418
1671
|
code?: string | undefined;
|
1672
|
+
orgWorkspaceId?: number | null | undefined;
|
1419
1673
|
};
|
1420
1674
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1421
1675
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1440,25 +1694,27 @@ export declare const BantrSdk: {
|
|
1440
1694
|
};
|
1441
1695
|
_input_in: {
|
1442
1696
|
authorization?: string | undefined;
|
1443
|
-
description: string;
|
1444
1697
|
code: string;
|
1698
|
+
description: string;
|
1445
1699
|
appliesWhen: "purchase";
|
1446
1700
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1447
1701
|
amountType: "flat-rate" | "percentage";
|
1448
1702
|
amountValue: number;
|
1449
1703
|
validFrom: Date | null;
|
1450
1704
|
validUntil: Date | null;
|
1705
|
+
orgWorkspaceId?: number | null | undefined;
|
1451
1706
|
};
|
1452
1707
|
_input_out: {
|
1453
1708
|
authorization?: string | undefined;
|
1454
|
-
description: string;
|
1455
1709
|
code: string;
|
1710
|
+
description: string;
|
1456
1711
|
appliesWhen: "purchase";
|
1457
1712
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1458
1713
|
amountType: "flat-rate" | "percentage";
|
1459
1714
|
amountValue: number;
|
1460
1715
|
validFrom: Date | null;
|
1461
1716
|
validUntil: Date | null;
|
1717
|
+
orgWorkspaceId?: number | null | undefined;
|
1462
1718
|
};
|
1463
1719
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1464
1720
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1483,8 +1739,8 @@ export declare const BantrSdk: {
|
|
1483
1739
|
_input_in: {
|
1484
1740
|
authorization?: string | undefined;
|
1485
1741
|
id: number;
|
1486
|
-
description: string;
|
1487
1742
|
code: string;
|
1743
|
+
description: string;
|
1488
1744
|
appliesWhen: "purchase";
|
1489
1745
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1490
1746
|
amountType: "flat-rate" | "percentage";
|
@@ -1492,12 +1748,13 @@ export declare const BantrSdk: {
|
|
1492
1748
|
validFrom: Date | null;
|
1493
1749
|
validUntil: Date | null;
|
1494
1750
|
usageLimit: number | null;
|
1751
|
+
orgWorkspaceId?: number | null | undefined;
|
1495
1752
|
};
|
1496
1753
|
_input_out: {
|
1497
1754
|
authorization?: string | undefined;
|
1498
1755
|
id: number;
|
1499
|
-
description: string;
|
1500
1756
|
code: string;
|
1757
|
+
description: string;
|
1501
1758
|
appliesWhen: "purchase";
|
1502
1759
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1503
1760
|
amountType: "flat-rate" | "percentage";
|
@@ -1505,6 +1762,7 @@ export declare const BantrSdk: {
|
|
1505
1762
|
validFrom: Date | null;
|
1506
1763
|
validUntil: Date | null;
|
1507
1764
|
usageLimit: number | null;
|
1765
|
+
orgWorkspaceId?: number | null | undefined;
|
1508
1766
|
};
|
1509
1767
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1510
1768
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1548,29 +1806,29 @@ export declare const BantrSdk: {
|
|
1548
1806
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1549
1807
|
_input_in: {
|
1550
1808
|
id: number;
|
1551
|
-
code: string;
|
1552
1809
|
appliesWhen: "purchase";
|
1553
1810
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1554
1811
|
productValue: number;
|
1812
|
+
code?: string | undefined;
|
1555
1813
|
};
|
1556
1814
|
_input_out: {
|
1557
1815
|
id: number;
|
1558
|
-
code: string;
|
1559
1816
|
appliesWhen: "purchase";
|
1560
1817
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1561
1818
|
productValue: number;
|
1819
|
+
code?: string | undefined;
|
1562
1820
|
};
|
1563
1821
|
_output_in: {
|
1564
|
-
description: string;
|
1565
1822
|
code: string;
|
1823
|
+
description: string;
|
1566
1824
|
amountType: "flat-rate" | "percentage";
|
1567
1825
|
amountValue: number;
|
1568
1826
|
reducedValue: number;
|
1569
1827
|
newValue: number;
|
1570
1828
|
};
|
1571
1829
|
_output_out: {
|
1572
|
-
description: string;
|
1573
1830
|
code: string;
|
1831
|
+
description: string;
|
1574
1832
|
amountType: "flat-rate" | "percentage";
|
1575
1833
|
amountValue: number;
|
1576
1834
|
reducedValue: number;
|
@@ -1598,19 +1856,19 @@ export declare const BantrSdk: {
|
|
1598
1856
|
authorization?: string | undefined;
|
1599
1857
|
description: string;
|
1600
1858
|
freeAgentId: number;
|
1601
|
-
leagueId?: number | undefined;
|
1602
|
-
cancelPath?: string | undefined;
|
1603
1859
|
code?: string | undefined;
|
1860
|
+
leagueId?: number | undefined;
|
1604
1861
|
paymentMode?: "session" | "intent" | undefined;
|
1862
|
+
cancelPath?: string | undefined;
|
1605
1863
|
};
|
1606
1864
|
_input_out: {
|
1607
1865
|
authorization?: string | undefined;
|
1608
1866
|
description: string;
|
1609
|
-
paymentMode: "session" | "intent";
|
1610
1867
|
freeAgentId: number;
|
1868
|
+
paymentMode: "session" | "intent";
|
1869
|
+
code?: string | undefined;
|
1611
1870
|
leagueId?: number | undefined;
|
1612
1871
|
cancelPath?: string | undefined;
|
1613
|
-
code?: string | undefined;
|
1614
1872
|
};
|
1615
1873
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1616
1874
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1643,25 +1901,25 @@ export declare const BantrSdk: {
|
|
1643
1901
|
};
|
1644
1902
|
_input_in: {
|
1645
1903
|
authorization?: string | undefined;
|
1646
|
-
teamId: number;
|
1647
1904
|
leagueId: number;
|
1905
|
+
teamId: number;
|
1648
1906
|
};
|
1649
1907
|
_input_out: {
|
1650
1908
|
authorization?: string | undefined;
|
1651
|
-
teamId: number;
|
1652
1909
|
leagueId: number;
|
1910
|
+
teamId: number;
|
1653
1911
|
};
|
1654
1912
|
_output_in: {
|
1655
|
-
memberId: number;
|
1656
1913
|
id: number;
|
1657
1914
|
deletedAt: Date | null;
|
1915
|
+
memberId: number;
|
1916
|
+
totalPaid: number;
|
1658
1917
|
member: {
|
1659
1918
|
id: number;
|
1660
1919
|
email: string;
|
1661
1920
|
firstName: string | null;
|
1662
1921
|
lastName: string | null;
|
1663
1922
|
};
|
1664
|
-
totalPaid: number;
|
1665
1923
|
payments: {
|
1666
1924
|
id: number;
|
1667
1925
|
createdAt: string | Date;
|
@@ -1672,16 +1930,16 @@ export declare const BantrSdk: {
|
|
1672
1930
|
}[];
|
1673
1931
|
}[];
|
1674
1932
|
_output_out: {
|
1675
|
-
memberId: number;
|
1676
1933
|
id: number;
|
1677
1934
|
deletedAt: Date | null;
|
1935
|
+
memberId: number;
|
1936
|
+
totalPaid: number;
|
1678
1937
|
member: {
|
1679
1938
|
id: number;
|
1680
1939
|
email: string;
|
1681
1940
|
firstName: string | null;
|
1682
1941
|
lastName: string | null;
|
1683
1942
|
};
|
1684
|
-
totalPaid: number;
|
1685
1943
|
payments: {
|
1686
1944
|
id: number;
|
1687
1945
|
createdAt: string | Date;
|
@@ -1799,21 +2057,21 @@ export declare const BantrSdk: {
|
|
1799
2057
|
};
|
1800
2058
|
_input_in: {
|
1801
2059
|
authorization?: string | undefined;
|
1802
|
-
teamId: number;
|
1803
2060
|
leagueId: number;
|
2061
|
+
teamId: number;
|
1804
2062
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1805
|
-
paymentAmount?: number | undefined;
|
1806
2063
|
code?: string | undefined;
|
1807
2064
|
paymentMode?: "session" | "intent" | undefined;
|
2065
|
+
paymentAmount?: number | undefined;
|
1808
2066
|
};
|
1809
2067
|
_input_out: {
|
1810
2068
|
authorization?: string | undefined;
|
1811
|
-
teamId: number;
|
1812
2069
|
leagueId: number;
|
1813
|
-
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1814
2070
|
paymentMode: "session" | "intent";
|
1815
|
-
|
2071
|
+
teamId: number;
|
2072
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1816
2073
|
code?: string | undefined;
|
2074
|
+
paymentAmount?: number | undefined;
|
1817
2075
|
};
|
1818
2076
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1819
2077
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1993,17 +2251,85 @@ export declare const BantrSdk: {
|
|
1993
2251
|
};
|
1994
2252
|
_input_in: {
|
1995
2253
|
authorization?: string | undefined;
|
1996
|
-
provider: "
|
2254
|
+
provider: "apple" | "google";
|
1997
2255
|
};
|
1998
2256
|
_input_out: {
|
1999
2257
|
authorization?: string | undefined;
|
2000
|
-
provider: "
|
2258
|
+
provider: "apple" | "google";
|
2001
2259
|
};
|
2002
2260
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2003
2261
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2004
2262
|
}, import("../api-type/src/types/auth").MemberAuthResponse>>;
|
2005
2263
|
};
|
2006
2264
|
};
|
2265
|
+
organization: {
|
2266
|
+
fetchStripeFee: {
|
2267
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
2268
|
+
_config: import("@trpc/server").RootConfig<{
|
2269
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2270
|
+
meta: object;
|
2271
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2272
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2273
|
+
}>;
|
2274
|
+
_meta: object;
|
2275
|
+
_ctx_out: {
|
2276
|
+
req: import("http").IncomingMessage;
|
2277
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2278
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2279
|
+
};
|
2280
|
+
_input_in: {
|
2281
|
+
authorization?: string | undefined;
|
2282
|
+
workspaceId?: number | undefined;
|
2283
|
+
};
|
2284
|
+
_input_out: {
|
2285
|
+
authorization?: string | undefined;
|
2286
|
+
workspaceId?: number | undefined;
|
2287
|
+
};
|
2288
|
+
_output_in: {
|
2289
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
2290
|
+
extraTechnologyFeePercent: number;
|
2291
|
+
extraTechnologyFeeLabel: string | null;
|
2292
|
+
};
|
2293
|
+
_output_out: {
|
2294
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
2295
|
+
extraTechnologyFeePercent: number;
|
2296
|
+
extraTechnologyFeeLabel: string | null;
|
2297
|
+
};
|
2298
|
+
}, unknown>>;
|
2299
|
+
};
|
2300
|
+
updateStripeFee: {
|
2301
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2302
|
+
_config: import("@trpc/server").RootConfig<{
|
2303
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2304
|
+
meta: object;
|
2305
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2306
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2307
|
+
}>;
|
2308
|
+
_meta: object;
|
2309
|
+
_ctx_out: {
|
2310
|
+
req: import("http").IncomingMessage;
|
2311
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2312
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2313
|
+
};
|
2314
|
+
_input_in: {
|
2315
|
+
authorization?: string | undefined;
|
2316
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
2317
|
+
extraTechnologyFeePercent: number;
|
2318
|
+
extraTechnologyFeeLabel: string | null;
|
2319
|
+
workspaceId?: number | undefined;
|
2320
|
+
};
|
2321
|
+
_input_out: {
|
2322
|
+
authorization?: string | undefined;
|
2323
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
2324
|
+
extraTechnologyFeePercent: number;
|
2325
|
+
extraTechnologyFeeLabel: string | null;
|
2326
|
+
workspaceId?: number | undefined;
|
2327
|
+
};
|
2328
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2329
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2330
|
+
}, void>>;
|
2331
|
+
};
|
2332
|
+
};
|
2007
2333
|
pickupPayments: {
|
2008
2334
|
registrationCheckout: {
|
2009
2335
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
@@ -2023,17 +2349,17 @@ export declare const BantrSdk: {
|
|
2023
2349
|
authorization?: string | undefined;
|
2024
2350
|
memberId: number;
|
2025
2351
|
pickupId: number;
|
2026
|
-
cancelPath?: string | undefined;
|
2027
2352
|
code?: string | undefined;
|
2028
2353
|
paymentMode?: "session" | "intent" | undefined;
|
2354
|
+
cancelPath?: string | undefined;
|
2029
2355
|
};
|
2030
2356
|
_input_out: {
|
2031
2357
|
authorization?: string | undefined;
|
2358
|
+
paymentMode: "session" | "intent";
|
2032
2359
|
memberId: number;
|
2033
2360
|
pickupId: number;
|
2034
|
-
paymentMode: "session" | "intent";
|
2035
|
-
cancelPath?: string | undefined;
|
2036
2361
|
code?: string | undefined;
|
2362
|
+
cancelPath?: string | undefined;
|
2037
2363
|
};
|
2038
2364
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2039
2365
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -2042,6 +2368,54 @@ export declare const BantrSdk: {
|
|
2042
2368
|
}>>;
|
2043
2369
|
};
|
2044
2370
|
};
|
2371
|
+
product: {
|
2372
|
+
info: {
|
2373
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2374
|
+
_config: import("@trpc/server").RootConfig<{
|
2375
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2376
|
+
meta: object;
|
2377
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2378
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2379
|
+
}>;
|
2380
|
+
_meta: object;
|
2381
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2382
|
+
_input_in: {
|
2383
|
+
id: number;
|
2384
|
+
appliesWhen: "purchase";
|
2385
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
2386
|
+
productValue: number;
|
2387
|
+
code?: string | undefined;
|
2388
|
+
};
|
2389
|
+
_input_out: {
|
2390
|
+
id: number;
|
2391
|
+
appliesWhen: "purchase";
|
2392
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
2393
|
+
productValue: number;
|
2394
|
+
code?: string | undefined;
|
2395
|
+
};
|
2396
|
+
_output_in: {
|
2397
|
+
discountApplied: number;
|
2398
|
+
totalWithTax: number;
|
2399
|
+
totalTax: number;
|
2400
|
+
otherTaxLabel: string;
|
2401
|
+
otherTax: number;
|
2402
|
+
otherTaxPercent: number;
|
2403
|
+
code?: string | undefined;
|
2404
|
+
description?: string | undefined;
|
2405
|
+
};
|
2406
|
+
_output_out: {
|
2407
|
+
discountApplied: number;
|
2408
|
+
totalWithTax: number;
|
2409
|
+
totalTax: number;
|
2410
|
+
otherTaxLabel: string;
|
2411
|
+
otherTax: number;
|
2412
|
+
otherTaxPercent: number;
|
2413
|
+
code?: string | undefined;
|
2414
|
+
description?: string | undefined;
|
2415
|
+
};
|
2416
|
+
}, unknown>>;
|
2417
|
+
};
|
2418
|
+
};
|
2045
2419
|
};
|
2046
2420
|
};
|
2047
2421
|
export default BantrSdk;
|