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.
@@ -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,17 +309,17 @@ 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;
322
+ memberId: number;
317
323
  deletedAt: Date | null;
318
324
  member: {
319
325
  id: number;
@@ -332,8 +338,8 @@ export declare const BantrSdk: {
332
338
  }[];
333
339
  }[];
334
340
  _output_out: {
335
- memberId: number;
336
341
  id: number;
342
+ memberId: number;
337
343
  deletedAt: Date | null;
338
344
  member: {
339
345
  id: number;
@@ -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
- paymentAmount?: number | undefined;
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: "google" | "apple";
645
+ provider: "apple" | "google";
640
646
  };
641
647
  _input_out: {
642
648
  authorization?: string | undefined;
643
- provider: "google" | "apple";
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;
678
753
  memberId: number;
679
- pickupId: number;
680
754
  paymentMode: "session" | "intent";
681
- cancelPath?: string | undefined;
755
+ pickupId: number;
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,55 @@ 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
+ code?: string | undefined;
801
+ description?: string | undefined;
802
+ };
803
+ _output_out: {
804
+ discountApplied: number;
805
+ totalWithTax: number;
806
+ totalTax: number;
807
+ otherTaxLabel: string;
808
+ otherTax: number;
809
+ code?: string | undefined;
810
+ description?: string | undefined;
811
+ };
812
+ }, unknown>;
813
+ }>;
690
814
  }>, unknown> & import("@trpc/react-query/dist/createTRPCReact").DecoratedProcedureRecord<{
691
815
  discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
692
816
  ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
@@ -736,6 +860,7 @@ export declare const BantrSdk: {
736
860
  limit: number;
737
861
  cursor: number;
738
862
  code?: string | undefined;
863
+ orgWorkspaceId?: number | null | undefined;
739
864
  direction?: "asc" | "desc" | undefined;
740
865
  listExpired?: boolean | undefined;
741
866
  };
@@ -746,6 +871,7 @@ export declare const BantrSdk: {
746
871
  direction: "asc" | "desc";
747
872
  listExpired: boolean;
748
873
  code?: string | undefined;
874
+ orgWorkspaceId?: number | null | undefined;
749
875
  };
750
876
  _output_in: typeof import("@trpc/server").unsetMarker;
751
877
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -768,25 +894,27 @@ export declare const BantrSdk: {
768
894
  };
769
895
  _input_in: {
770
896
  authorization?: string | undefined;
771
- description: string;
772
897
  code: string;
898
+ description: string;
773
899
  appliesWhen: "purchase";
774
900
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
775
901
  amountType: "flat-rate" | "percentage";
776
902
  amountValue: number;
777
903
  validFrom: Date | null;
778
904
  validUntil: Date | null;
905
+ orgWorkspaceId?: number | null | undefined;
779
906
  };
780
907
  _input_out: {
781
908
  authorization?: string | undefined;
782
- description: string;
783
909
  code: string;
910
+ description: string;
784
911
  appliesWhen: "purchase";
785
912
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
786
913
  amountType: "flat-rate" | "percentage";
787
914
  amountValue: number;
788
915
  validFrom: Date | null;
789
916
  validUntil: Date | null;
917
+ orgWorkspaceId?: number | null | undefined;
790
918
  };
791
919
  _output_in: typeof import("@trpc/server").unsetMarker;
792
920
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -809,8 +937,8 @@ export declare const BantrSdk: {
809
937
  _input_in: {
810
938
  authorization?: string | undefined;
811
939
  id: number;
812
- description: string;
813
940
  code: string;
941
+ description: string;
814
942
  appliesWhen: "purchase";
815
943
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
816
944
  amountType: "flat-rate" | "percentage";
@@ -818,12 +946,13 @@ export declare const BantrSdk: {
818
946
  validFrom: Date | null;
819
947
  validUntil: Date | null;
820
948
  usageLimit: number | null;
949
+ orgWorkspaceId?: number | null | undefined;
821
950
  };
822
951
  _input_out: {
823
952
  authorization?: string | undefined;
824
953
  id: number;
825
- description: string;
826
954
  code: string;
955
+ description: string;
827
956
  appliesWhen: "purchase";
828
957
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
829
958
  amountType: "flat-rate" | "percentage";
@@ -831,6 +960,7 @@ export declare const BantrSdk: {
831
960
  validFrom: Date | null;
832
961
  validUntil: Date | null;
833
962
  usageLimit: number | null;
963
+ orgWorkspaceId?: number | null | undefined;
834
964
  };
835
965
  _output_in: typeof import("@trpc/server").unsetMarker;
836
966
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -870,29 +1000,29 @@ export declare const BantrSdk: {
870
1000
  _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
871
1001
  _input_in: {
872
1002
  id: number;
873
- code: string;
874
1003
  appliesWhen: "purchase";
875
1004
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
876
1005
  productValue: number;
1006
+ code?: string | undefined;
877
1007
  };
878
1008
  _input_out: {
879
1009
  id: number;
880
- code: string;
881
1010
  appliesWhen: "purchase";
882
1011
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
883
1012
  productValue: number;
1013
+ code?: string | undefined;
884
1014
  };
885
1015
  _output_in: {
886
- description: string;
887
1016
  code: string;
1017
+ description: string;
888
1018
  amountType: "flat-rate" | "percentage";
889
1019
  amountValue: number;
890
1020
  reducedValue: number;
891
1021
  newValue: number;
892
1022
  };
893
1023
  _output_out: {
894
- description: string;
895
1024
  code: string;
1025
+ description: string;
896
1026
  amountType: "flat-rate" | "percentage";
897
1027
  amountValue: number;
898
1028
  reducedValue: number;
@@ -923,19 +1053,19 @@ export declare const BantrSdk: {
923
1053
  authorization?: string | undefined;
924
1054
  description: string;
925
1055
  freeAgentId: number;
926
- leagueId?: number | undefined;
927
- cancelPath?: string | undefined;
928
1056
  code?: string | undefined;
1057
+ leagueId?: number | undefined;
929
1058
  paymentMode?: "session" | "intent" | undefined;
1059
+ cancelPath?: string | undefined;
930
1060
  };
931
1061
  _input_out: {
932
1062
  authorization?: string | undefined;
933
1063
  description: string;
934
- paymentMode: "session" | "intent";
935
1064
  freeAgentId: number;
1065
+ paymentMode: "session" | "intent";
1066
+ code?: string | undefined;
936
1067
  leagueId?: number | undefined;
937
1068
  cancelPath?: string | undefined;
938
- code?: string | undefined;
939
1069
  };
940
1070
  _output_in: typeof import("@trpc/server").unsetMarker;
941
1071
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -971,17 +1101,17 @@ export declare const BantrSdk: {
971
1101
  };
972
1102
  _input_in: {
973
1103
  authorization?: string | undefined;
974
- teamId: number;
975
1104
  leagueId: number;
1105
+ teamId: number;
976
1106
  };
977
1107
  _input_out: {
978
1108
  authorization?: string | undefined;
979
- teamId: number;
980
1109
  leagueId: number;
1110
+ teamId: number;
981
1111
  };
982
1112
  _output_in: {
983
- memberId: number;
984
1113
  id: number;
1114
+ memberId: number;
985
1115
  deletedAt: Date | null;
986
1116
  member: {
987
1117
  id: number;
@@ -1000,8 +1130,8 @@ export declare const BantrSdk: {
1000
1130
  }[];
1001
1131
  }[];
1002
1132
  _output_out: {
1003
- memberId: number;
1004
1133
  id: number;
1134
+ memberId: number;
1005
1135
  deletedAt: Date | null;
1006
1136
  member: {
1007
1137
  id: number;
@@ -1119,21 +1249,21 @@ export declare const BantrSdk: {
1119
1249
  };
1120
1250
  _input_in: {
1121
1251
  authorization?: string | undefined;
1122
- teamId: number;
1123
1252
  leagueId: number;
1253
+ teamId: number;
1124
1254
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
1125
- paymentAmount?: number | undefined;
1126
1255
  code?: string | undefined;
1127
1256
  paymentMode?: "session" | "intent" | undefined;
1257
+ paymentAmount?: number | undefined;
1128
1258
  };
1129
1259
  _input_out: {
1130
1260
  authorization?: string | undefined;
1131
- teamId: number;
1132
1261
  leagueId: number;
1133
- paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
1134
1262
  paymentMode: "session" | "intent";
1135
- paymentAmount?: number | undefined;
1263
+ teamId: number;
1264
+ paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
1136
1265
  code?: string | undefined;
1266
+ paymentAmount?: number | undefined;
1137
1267
  };
1138
1268
  _output_in: typeof import("@trpc/server").unsetMarker;
1139
1269
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -1304,16 +1434,85 @@ export declare const BantrSdk: {
1304
1434
  };
1305
1435
  _input_in: {
1306
1436
  authorization?: string | undefined;
1307
- provider: "google" | "apple";
1437
+ provider: "apple" | "google";
1308
1438
  };
1309
1439
  _input_out: {
1310
1440
  authorization?: string | undefined;
1311
- provider: "google" | "apple";
1441
+ provider: "apple" | "google";
1312
1442
  };
1313
1443
  _output_in: typeof import("@trpc/server").unsetMarker;
1314
1444
  _output_out: typeof import("@trpc/server").unsetMarker;
1315
1445
  }, import("../api-type/src/types/auth").MemberAuthResponse>;
1316
1446
  }>;
1447
+ organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
1448
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1449
+ meta: object;
1450
+ errorShape: import("@trpc/server").DefaultErrorShape;
1451
+ transformer: import("@trpc/server").DefaultDataTransformer;
1452
+ }>, {
1453
+ fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
1454
+ _config: import("@trpc/server").RootConfig<{
1455
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1456
+ meta: object;
1457
+ errorShape: import("@trpc/server").DefaultErrorShape;
1458
+ transformer: import("@trpc/server").DefaultDataTransformer;
1459
+ }>;
1460
+ _meta: object;
1461
+ _ctx_out: {
1462
+ req: import("http").IncomingMessage;
1463
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
1464
+ user: import("../api-type/src/types/auth").TJwtPayload;
1465
+ };
1466
+ _input_in: {
1467
+ authorization?: string | undefined;
1468
+ workspaceId?: number | undefined;
1469
+ };
1470
+ _input_out: {
1471
+ authorization?: string | undefined;
1472
+ workspaceId?: number | undefined;
1473
+ };
1474
+ _output_in: {
1475
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
1476
+ extraTechnologyFeePercent: number;
1477
+ extraTechnologyFeeLabel: string | null;
1478
+ };
1479
+ _output_out: {
1480
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
1481
+ extraTechnologyFeePercent: number;
1482
+ extraTechnologyFeeLabel: string | null;
1483
+ };
1484
+ }, unknown>;
1485
+ updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
1486
+ _config: import("@trpc/server").RootConfig<{
1487
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1488
+ meta: object;
1489
+ errorShape: import("@trpc/server").DefaultErrorShape;
1490
+ transformer: import("@trpc/server").DefaultDataTransformer;
1491
+ }>;
1492
+ _meta: object;
1493
+ _ctx_out: {
1494
+ req: import("http").IncomingMessage;
1495
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
1496
+ user: import("../api-type/src/types/auth").TJwtPayload;
1497
+ };
1498
+ _input_in: {
1499
+ authorization?: string | undefined;
1500
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
1501
+ extraTechnologyFeePercent: number;
1502
+ extraTechnologyFeeLabel: string | null;
1503
+ workspaceId?: number | undefined;
1504
+ };
1505
+ _input_out: {
1506
+ authorization?: string | undefined;
1507
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
1508
+ extraTechnologyFeePercent: number;
1509
+ extraTechnologyFeeLabel: string | null;
1510
+ workspaceId?: number | undefined;
1511
+ };
1512
+ _output_in: typeof import("@trpc/server").unsetMarker;
1513
+ _output_out: typeof import("@trpc/server").unsetMarker;
1514
+ }, void>;
1515
+ }>;
1317
1516
  pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
1318
1517
  ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1319
1518
  meta: object;
@@ -1337,17 +1536,17 @@ export declare const BantrSdk: {
1337
1536
  authorization?: string | undefined;
1338
1537
  memberId: number;
1339
1538
  pickupId: number;
1340
- cancelPath?: string | undefined;
1341
1539
  code?: string | undefined;
1342
1540
  paymentMode?: "session" | "intent" | undefined;
1541
+ cancelPath?: string | undefined;
1343
1542
  };
1344
1543
  _input_out: {
1345
1544
  authorization?: string | undefined;
1346
1545
  memberId: number;
1347
- pickupId: number;
1348
1546
  paymentMode: "session" | "intent";
1349
- cancelPath?: string | undefined;
1547
+ pickupId: number;
1350
1548
  code?: string | undefined;
1549
+ cancelPath?: string | undefined;
1351
1550
  };
1352
1551
  _output_in: typeof import("@trpc/server").unsetMarker;
1353
1552
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -1355,6 +1554,55 @@ export declare const BantrSdk: {
1355
1554
  eventName: string;
1356
1555
  }>;
1357
1556
  }>;
1557
+ product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
1558
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1559
+ meta: object;
1560
+ errorShape: import("@trpc/server").DefaultErrorShape;
1561
+ transformer: import("@trpc/server").DefaultDataTransformer;
1562
+ }>, {
1563
+ info: import("@trpc/server").BuildProcedure<"mutation", {
1564
+ _config: import("@trpc/server").RootConfig<{
1565
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1566
+ meta: object;
1567
+ errorShape: import("@trpc/server").DefaultErrorShape;
1568
+ transformer: import("@trpc/server").DefaultDataTransformer;
1569
+ }>;
1570
+ _meta: object;
1571
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1572
+ _input_in: {
1573
+ id: number;
1574
+ appliesWhen: "purchase";
1575
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
1576
+ productValue: number;
1577
+ code?: string | undefined;
1578
+ };
1579
+ _input_out: {
1580
+ id: number;
1581
+ appliesWhen: "purchase";
1582
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
1583
+ productValue: number;
1584
+ code?: string | undefined;
1585
+ };
1586
+ _output_in: {
1587
+ discountApplied: number;
1588
+ totalWithTax: number;
1589
+ totalTax: number;
1590
+ otherTaxLabel: string;
1591
+ otherTax: number;
1592
+ code?: string | undefined;
1593
+ description?: string | undefined;
1594
+ };
1595
+ _output_out: {
1596
+ discountApplied: number;
1597
+ totalWithTax: number;
1598
+ totalTax: number;
1599
+ otherTaxLabel: string;
1600
+ otherTax: number;
1601
+ code?: string | undefined;
1602
+ description?: string | undefined;
1603
+ };
1604
+ }, unknown>;
1605
+ }>;
1358
1606
  }, null, "">;
1359
1607
  createTRPCClientQuery: (options?: {
1360
1608
  useLocalUrl?: boolean;
@@ -1406,6 +1654,7 @@ export declare const BantrSdk: {
1406
1654
  limit: number;
1407
1655
  cursor: number;
1408
1656
  code?: string | undefined;
1657
+ orgWorkspaceId?: number | null | undefined;
1409
1658
  direction?: "asc" | "desc" | undefined;
1410
1659
  listExpired?: boolean | undefined;
1411
1660
  };
@@ -1416,6 +1665,7 @@ export declare const BantrSdk: {
1416
1665
  direction: "asc" | "desc";
1417
1666
  listExpired: boolean;
1418
1667
  code?: string | undefined;
1668
+ orgWorkspaceId?: number | null | undefined;
1419
1669
  };
1420
1670
  _output_in: typeof import("@trpc/server").unsetMarker;
1421
1671
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -1440,25 +1690,27 @@ export declare const BantrSdk: {
1440
1690
  };
1441
1691
  _input_in: {
1442
1692
  authorization?: string | undefined;
1443
- description: string;
1444
1693
  code: string;
1694
+ description: string;
1445
1695
  appliesWhen: "purchase";
1446
1696
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
1447
1697
  amountType: "flat-rate" | "percentage";
1448
1698
  amountValue: number;
1449
1699
  validFrom: Date | null;
1450
1700
  validUntil: Date | null;
1701
+ orgWorkspaceId?: number | null | undefined;
1451
1702
  };
1452
1703
  _input_out: {
1453
1704
  authorization?: string | undefined;
1454
- description: string;
1455
1705
  code: string;
1706
+ description: string;
1456
1707
  appliesWhen: "purchase";
1457
1708
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
1458
1709
  amountType: "flat-rate" | "percentage";
1459
1710
  amountValue: number;
1460
1711
  validFrom: Date | null;
1461
1712
  validUntil: Date | null;
1713
+ orgWorkspaceId?: number | null | undefined;
1462
1714
  };
1463
1715
  _output_in: typeof import("@trpc/server").unsetMarker;
1464
1716
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -1483,8 +1735,8 @@ export declare const BantrSdk: {
1483
1735
  _input_in: {
1484
1736
  authorization?: string | undefined;
1485
1737
  id: number;
1486
- description: string;
1487
1738
  code: string;
1739
+ description: string;
1488
1740
  appliesWhen: "purchase";
1489
1741
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
1490
1742
  amountType: "flat-rate" | "percentage";
@@ -1492,12 +1744,13 @@ export declare const BantrSdk: {
1492
1744
  validFrom: Date | null;
1493
1745
  validUntil: Date | null;
1494
1746
  usageLimit: number | null;
1747
+ orgWorkspaceId?: number | null | undefined;
1495
1748
  };
1496
1749
  _input_out: {
1497
1750
  authorization?: string | undefined;
1498
1751
  id: number;
1499
- description: string;
1500
1752
  code: string;
1753
+ description: string;
1501
1754
  appliesWhen: "purchase";
1502
1755
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
1503
1756
  amountType: "flat-rate" | "percentage";
@@ -1505,6 +1758,7 @@ export declare const BantrSdk: {
1505
1758
  validFrom: Date | null;
1506
1759
  validUntil: Date | null;
1507
1760
  usageLimit: number | null;
1761
+ orgWorkspaceId?: number | null | undefined;
1508
1762
  };
1509
1763
  _output_in: typeof import("@trpc/server").unsetMarker;
1510
1764
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -1548,29 +1802,29 @@ export declare const BantrSdk: {
1548
1802
  _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1549
1803
  _input_in: {
1550
1804
  id: number;
1551
- code: string;
1552
1805
  appliesWhen: "purchase";
1553
1806
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
1554
1807
  productValue: number;
1808
+ code?: string | undefined;
1555
1809
  };
1556
1810
  _input_out: {
1557
1811
  id: number;
1558
- code: string;
1559
1812
  appliesWhen: "purchase";
1560
1813
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
1561
1814
  productValue: number;
1815
+ code?: string | undefined;
1562
1816
  };
1563
1817
  _output_in: {
1564
- description: string;
1565
1818
  code: string;
1819
+ description: string;
1566
1820
  amountType: "flat-rate" | "percentage";
1567
1821
  amountValue: number;
1568
1822
  reducedValue: number;
1569
1823
  newValue: number;
1570
1824
  };
1571
1825
  _output_out: {
1572
- description: string;
1573
1826
  code: string;
1827
+ description: string;
1574
1828
  amountType: "flat-rate" | "percentage";
1575
1829
  amountValue: number;
1576
1830
  reducedValue: number;
@@ -1598,19 +1852,19 @@ export declare const BantrSdk: {
1598
1852
  authorization?: string | undefined;
1599
1853
  description: string;
1600
1854
  freeAgentId: number;
1601
- leagueId?: number | undefined;
1602
- cancelPath?: string | undefined;
1603
1855
  code?: string | undefined;
1856
+ leagueId?: number | undefined;
1604
1857
  paymentMode?: "session" | "intent" | undefined;
1858
+ cancelPath?: string | undefined;
1605
1859
  };
1606
1860
  _input_out: {
1607
1861
  authorization?: string | undefined;
1608
1862
  description: string;
1609
- paymentMode: "session" | "intent";
1610
1863
  freeAgentId: number;
1864
+ paymentMode: "session" | "intent";
1865
+ code?: string | undefined;
1611
1866
  leagueId?: number | undefined;
1612
1867
  cancelPath?: string | undefined;
1613
- code?: string | undefined;
1614
1868
  };
1615
1869
  _output_in: typeof import("@trpc/server").unsetMarker;
1616
1870
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -1643,17 +1897,17 @@ export declare const BantrSdk: {
1643
1897
  };
1644
1898
  _input_in: {
1645
1899
  authorization?: string | undefined;
1646
- teamId: number;
1647
1900
  leagueId: number;
1901
+ teamId: number;
1648
1902
  };
1649
1903
  _input_out: {
1650
1904
  authorization?: string | undefined;
1651
- teamId: number;
1652
1905
  leagueId: number;
1906
+ teamId: number;
1653
1907
  };
1654
1908
  _output_in: {
1655
- memberId: number;
1656
1909
  id: number;
1910
+ memberId: number;
1657
1911
  deletedAt: Date | null;
1658
1912
  member: {
1659
1913
  id: number;
@@ -1672,8 +1926,8 @@ export declare const BantrSdk: {
1672
1926
  }[];
1673
1927
  }[];
1674
1928
  _output_out: {
1675
- memberId: number;
1676
1929
  id: number;
1930
+ memberId: number;
1677
1931
  deletedAt: Date | null;
1678
1932
  member: {
1679
1933
  id: number;
@@ -1799,21 +2053,21 @@ export declare const BantrSdk: {
1799
2053
  };
1800
2054
  _input_in: {
1801
2055
  authorization?: string | undefined;
1802
- teamId: number;
1803
2056
  leagueId: number;
2057
+ teamId: number;
1804
2058
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
1805
- paymentAmount?: number | undefined;
1806
2059
  code?: string | undefined;
1807
2060
  paymentMode?: "session" | "intent" | undefined;
2061
+ paymentAmount?: number | undefined;
1808
2062
  };
1809
2063
  _input_out: {
1810
2064
  authorization?: string | undefined;
1811
- teamId: number;
1812
2065
  leagueId: number;
1813
- paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
1814
2066
  paymentMode: "session" | "intent";
1815
- paymentAmount?: number | undefined;
2067
+ teamId: number;
2068
+ paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
1816
2069
  code?: string | undefined;
2070
+ paymentAmount?: number | undefined;
1817
2071
  };
1818
2072
  _output_in: typeof import("@trpc/server").unsetMarker;
1819
2073
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -1993,17 +2247,85 @@ export declare const BantrSdk: {
1993
2247
  };
1994
2248
  _input_in: {
1995
2249
  authorization?: string | undefined;
1996
- provider: "google" | "apple";
2250
+ provider: "apple" | "google";
1997
2251
  };
1998
2252
  _input_out: {
1999
2253
  authorization?: string | undefined;
2000
- provider: "google" | "apple";
2254
+ provider: "apple" | "google";
2001
2255
  };
2002
2256
  _output_in: typeof import("@trpc/server").unsetMarker;
2003
2257
  _output_out: typeof import("@trpc/server").unsetMarker;
2004
2258
  }, import("../api-type/src/types/auth").MemberAuthResponse>>;
2005
2259
  };
2006
2260
  };
2261
+ organization: {
2262
+ fetchStripeFee: {
2263
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
2264
+ _config: import("@trpc/server").RootConfig<{
2265
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
2266
+ meta: object;
2267
+ errorShape: import("@trpc/server").DefaultErrorShape;
2268
+ transformer: import("@trpc/server").DefaultDataTransformer;
2269
+ }>;
2270
+ _meta: object;
2271
+ _ctx_out: {
2272
+ req: import("http").IncomingMessage;
2273
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
2274
+ user: import("../api-type/src/types/auth").TJwtPayload;
2275
+ };
2276
+ _input_in: {
2277
+ authorization?: string | undefined;
2278
+ workspaceId?: number | undefined;
2279
+ };
2280
+ _input_out: {
2281
+ authorization?: string | undefined;
2282
+ workspaceId?: number | undefined;
2283
+ };
2284
+ _output_in: {
2285
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
2286
+ extraTechnologyFeePercent: number;
2287
+ extraTechnologyFeeLabel: string | null;
2288
+ };
2289
+ _output_out: {
2290
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
2291
+ extraTechnologyFeePercent: number;
2292
+ extraTechnologyFeeLabel: string | null;
2293
+ };
2294
+ }, unknown>>;
2295
+ };
2296
+ updateStripeFee: {
2297
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
2298
+ _config: import("@trpc/server").RootConfig<{
2299
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
2300
+ meta: object;
2301
+ errorShape: import("@trpc/server").DefaultErrorShape;
2302
+ transformer: import("@trpc/server").DefaultDataTransformer;
2303
+ }>;
2304
+ _meta: object;
2305
+ _ctx_out: {
2306
+ req: import("http").IncomingMessage;
2307
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
2308
+ user: import("../api-type/src/types/auth").TJwtPayload;
2309
+ };
2310
+ _input_in: {
2311
+ authorization?: string | undefined;
2312
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
2313
+ extraTechnologyFeePercent: number;
2314
+ extraTechnologyFeeLabel: string | null;
2315
+ workspaceId?: number | undefined;
2316
+ };
2317
+ _input_out: {
2318
+ authorization?: string | undefined;
2319
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
2320
+ extraTechnologyFeePercent: number;
2321
+ extraTechnologyFeeLabel: string | null;
2322
+ workspaceId?: number | undefined;
2323
+ };
2324
+ _output_in: typeof import("@trpc/server").unsetMarker;
2325
+ _output_out: typeof import("@trpc/server").unsetMarker;
2326
+ }, void>>;
2327
+ };
2328
+ };
2007
2329
  pickupPayments: {
2008
2330
  registrationCheckout: {
2009
2331
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
@@ -2023,17 +2345,17 @@ export declare const BantrSdk: {
2023
2345
  authorization?: string | undefined;
2024
2346
  memberId: number;
2025
2347
  pickupId: number;
2026
- cancelPath?: string | undefined;
2027
2348
  code?: string | undefined;
2028
2349
  paymentMode?: "session" | "intent" | undefined;
2350
+ cancelPath?: string | undefined;
2029
2351
  };
2030
2352
  _input_out: {
2031
2353
  authorization?: string | undefined;
2032
2354
  memberId: number;
2033
- pickupId: number;
2034
2355
  paymentMode: "session" | "intent";
2035
- cancelPath?: string | undefined;
2356
+ pickupId: number;
2036
2357
  code?: string | undefined;
2358
+ cancelPath?: string | undefined;
2037
2359
  };
2038
2360
  _output_in: typeof import("@trpc/server").unsetMarker;
2039
2361
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -2042,6 +2364,52 @@ export declare const BantrSdk: {
2042
2364
  }>>;
2043
2365
  };
2044
2366
  };
2367
+ product: {
2368
+ info: {
2369
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
2370
+ _config: import("@trpc/server").RootConfig<{
2371
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
2372
+ meta: object;
2373
+ errorShape: import("@trpc/server").DefaultErrorShape;
2374
+ transformer: import("@trpc/server").DefaultDataTransformer;
2375
+ }>;
2376
+ _meta: object;
2377
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
2378
+ _input_in: {
2379
+ id: number;
2380
+ appliesWhen: "purchase";
2381
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
2382
+ productValue: number;
2383
+ code?: string | undefined;
2384
+ };
2385
+ _input_out: {
2386
+ id: number;
2387
+ appliesWhen: "purchase";
2388
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
2389
+ productValue: number;
2390
+ code?: string | undefined;
2391
+ };
2392
+ _output_in: {
2393
+ discountApplied: number;
2394
+ totalWithTax: number;
2395
+ totalTax: number;
2396
+ otherTaxLabel: string;
2397
+ otherTax: number;
2398
+ code?: string | undefined;
2399
+ description?: string | undefined;
2400
+ };
2401
+ _output_out: {
2402
+ discountApplied: number;
2403
+ totalWithTax: number;
2404
+ totalTax: number;
2405
+ otherTaxLabel: string;
2406
+ otherTax: number;
2407
+ code?: string | undefined;
2408
+ description?: string | undefined;
2409
+ };
2410
+ }, unknown>>;
2411
+ };
2412
+ };
2045
2413
  };
2046
2414
  };
2047
2415
  export default BantrSdk;