bantr-api-client 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,26 +132,30 @@ 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";
136
140
  amountValue: number;
137
141
  validFrom: Date | null;
138
142
  validUntil: Date | null;
143
+ usageLimit: number | null;
144
+ orgWorkspaceId?: number | null | undefined;
139
145
  };
140
146
  _input_out: {
141
147
  authorization?: string | undefined;
142
148
  id: number;
143
- description: string;
144
149
  code: string;
150
+ description: string;
145
151
  appliesWhen: "purchase";
146
152
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
147
153
  amountType: "flat-rate" | "percentage";
148
154
  amountValue: number;
149
155
  validFrom: Date | null;
150
156
  validUntil: Date | null;
157
+ usageLimit: number | null;
158
+ orgWorkspaceId?: number | null | undefined;
151
159
  };
152
160
  _output_in: typeof import("@trpc/server").unsetMarker;
153
161
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -187,29 +195,29 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
187
195
  _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
188
196
  _input_in: {
189
197
  id: number;
190
- code: string;
191
198
  appliesWhen: "purchase";
192
199
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
193
200
  productValue: number;
201
+ code?: string | undefined;
194
202
  };
195
203
  _input_out: {
196
204
  id: number;
197
- code: string;
198
205
  appliesWhen: "purchase";
199
206
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
200
207
  productValue: number;
208
+ code?: string | undefined;
201
209
  };
202
210
  _output_in: {
203
- description: string;
204
211
  code: string;
212
+ description: string;
205
213
  amountType: "flat-rate" | "percentage";
206
214
  amountValue: number;
207
215
  reducedValue: number;
208
216
  newValue: number;
209
217
  };
210
218
  _output_out: {
211
- description: string;
212
219
  code: string;
220
+ description: string;
213
221
  amountType: "flat-rate" | "percentage";
214
222
  amountValue: number;
215
223
  reducedValue: number;
@@ -240,19 +248,19 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
240
248
  authorization?: string | undefined;
241
249
  description: string;
242
250
  freeAgentId: number;
243
- leagueId?: number | undefined;
244
- cancelPath?: string | undefined;
245
251
  code?: string | undefined;
252
+ leagueId?: number | undefined;
246
253
  paymentMode?: "session" | "intent" | undefined;
254
+ cancelPath?: string | undefined;
247
255
  };
248
256
  _input_out: {
249
257
  authorization?: string | undefined;
250
258
  description: string;
251
- paymentMode: "session" | "intent";
252
259
  freeAgentId: number;
260
+ paymentMode: "session" | "intent";
261
+ code?: string | undefined;
253
262
  leagueId?: number | undefined;
254
263
  cancelPath?: string | undefined;
255
- code?: string | undefined;
256
264
  };
257
265
  _output_in: typeof import("@trpc/server").unsetMarker;
258
266
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -298,40 +306,40 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
298
306
  };
299
307
  _output_in: {
300
308
  id: number;
301
- deletedAt: Date | null;
302
309
  memberId: number;
310
+ deletedAt: Date | null;
303
311
  member: {
304
- email: string;
305
312
  id: number;
313
+ email: string;
306
314
  firstName: string | null;
307
315
  lastName: string | null;
308
316
  };
309
317
  totalPaid: number;
310
318
  payments: {
311
- payerId: number;
312
319
  id: number;
313
- price: number;
314
320
  createdAt: string | Date;
321
+ price: number;
322
+ payerId: number;
315
323
  amountApplied: number | null;
316
324
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
317
325
  }[];
318
326
  }[];
319
327
  _output_out: {
320
328
  id: number;
321
- deletedAt: Date | null;
322
329
  memberId: number;
330
+ deletedAt: Date | null;
323
331
  member: {
324
- email: string;
325
332
  id: number;
333
+ email: string;
326
334
  firstName: string | null;
327
335
  lastName: string | null;
328
336
  };
329
337
  totalPaid: number;
330
338
  payments: {
331
- payerId: number;
332
339
  id: number;
333
- price: number;
334
340
  createdAt: string | Date;
341
+ price: number;
342
+ payerId: number;
335
343
  amountApplied: number | null;
336
344
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
337
345
  }[];
@@ -352,15 +360,15 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
352
360
  };
353
361
  _input_in: {
354
362
  authorization?: string | undefined;
355
- price: number;
356
363
  leagueId: number;
364
+ price: number;
357
365
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
358
366
  teamRosterId: number;
359
367
  };
360
368
  _input_out: {
361
369
  authorization?: string | undefined;
362
- price: number;
363
370
  leagueId: number;
371
+ price: number;
364
372
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
365
373
  teamRosterId: number;
366
374
  };
@@ -441,14 +449,16 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
441
449
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
442
450
  code?: string | undefined;
443
451
  paymentMode?: "session" | "intent" | undefined;
452
+ paymentAmount?: number | undefined;
444
453
  };
445
454
  _input_out: {
446
455
  authorization?: string | undefined;
447
456
  leagueId: number;
457
+ paymentMode: "session" | "intent";
448
458
  teamId: number;
449
459
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
450
- paymentMode: "session" | "intent";
451
460
  code?: string | undefined;
461
+ paymentAmount?: number | undefined;
452
462
  };
453
463
  _output_in: typeof import("@trpc/server").unsetMarker;
454
464
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -629,6 +639,75 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
629
639
  _output_out: typeof import("@trpc/server").unsetMarker;
630
640
  }, import("../api-type/src/types/auth").MemberAuthResponse>;
631
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
+ }>;
632
711
  pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
633
712
  ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
634
713
  meta: object;
@@ -650,19 +729,19 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
650
729
  };
651
730
  _input_in: {
652
731
  authorization?: string | undefined;
653
- pickupId: number;
654
732
  memberId: number;
655
- cancelPath?: string | undefined;
733
+ pickupId: number;
656
734
  code?: string | undefined;
657
735
  paymentMode?: "session" | "intent" | undefined;
736
+ cancelPath?: string | undefined;
658
737
  };
659
738
  _input_out: {
660
739
  authorization?: string | undefined;
661
- pickupId: number;
662
740
  memberId: number;
663
741
  paymentMode: "session" | "intent";
664
- cancelPath?: string | undefined;
742
+ pickupId: number;
665
743
  code?: string | undefined;
744
+ cancelPath?: string | undefined;
666
745
  };
667
746
  _output_in: typeof import("@trpc/server").unsetMarker;
668
747
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -670,6 +749,55 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
670
749
  eventName: string;
671
750
  }>;
672
751
  }>;
752
+ product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
753
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
754
+ meta: object;
755
+ errorShape: import("@trpc/server").DefaultErrorShape;
756
+ transformer: import("@trpc/server").DefaultDataTransformer;
757
+ }>, {
758
+ info: import("@trpc/server").BuildProcedure<"mutation", {
759
+ _config: import("@trpc/server").RootConfig<{
760
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
761
+ meta: object;
762
+ errorShape: import("@trpc/server").DefaultErrorShape;
763
+ transformer: import("@trpc/server").DefaultDataTransformer;
764
+ }>;
765
+ _meta: object;
766
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
767
+ _input_in: {
768
+ id: number;
769
+ appliesWhen: "purchase";
770
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
771
+ productValue: number;
772
+ code?: string | undefined;
773
+ };
774
+ _input_out: {
775
+ id: number;
776
+ appliesWhen: "purchase";
777
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
778
+ productValue: number;
779
+ code?: string | undefined;
780
+ };
781
+ _output_in: {
782
+ discountApplied: number;
783
+ totalWithTax: number;
784
+ totalTax: number;
785
+ otherTaxLabel: string;
786
+ otherTax: number;
787
+ code?: string | undefined;
788
+ description?: string | undefined;
789
+ };
790
+ _output_out: {
791
+ discountApplied: number;
792
+ totalWithTax: number;
793
+ totalTax: number;
794
+ otherTaxLabel: string;
795
+ otherTax: number;
796
+ code?: string | undefined;
797
+ description?: string | undefined;
798
+ };
799
+ }, unknown>;
800
+ }>;
673
801
  }>, unknown> & import("@trpc/react-query/dist/createTRPCReact").DecoratedProcedureRecord<{
674
802
  discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
675
803
  ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
@@ -719,6 +847,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
719
847
  limit: number;
720
848
  cursor: number;
721
849
  code?: string | undefined;
850
+ orgWorkspaceId?: number | null | undefined;
722
851
  direction?: "asc" | "desc" | undefined;
723
852
  listExpired?: boolean | undefined;
724
853
  };
@@ -729,6 +858,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
729
858
  direction: "asc" | "desc";
730
859
  listExpired: boolean;
731
860
  code?: string | undefined;
861
+ orgWorkspaceId?: number | null | undefined;
732
862
  };
733
863
  _output_in: typeof import("@trpc/server").unsetMarker;
734
864
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -751,25 +881,27 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
751
881
  };
752
882
  _input_in: {
753
883
  authorization?: string | undefined;
754
- description: string;
755
884
  code: string;
885
+ description: string;
756
886
  appliesWhen: "purchase";
757
887
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
758
888
  amountType: "flat-rate" | "percentage";
759
889
  amountValue: number;
760
890
  validFrom: Date | null;
761
891
  validUntil: Date | null;
892
+ orgWorkspaceId?: number | null | undefined;
762
893
  };
763
894
  _input_out: {
764
895
  authorization?: string | undefined;
765
- description: string;
766
896
  code: string;
897
+ description: string;
767
898
  appliesWhen: "purchase";
768
899
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
769
900
  amountType: "flat-rate" | "percentage";
770
901
  amountValue: number;
771
902
  validFrom: Date | null;
772
903
  validUntil: Date | null;
904
+ orgWorkspaceId?: number | null | undefined;
773
905
  };
774
906
  _output_in: typeof import("@trpc/server").unsetMarker;
775
907
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -792,26 +924,30 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
792
924
  _input_in: {
793
925
  authorization?: string | undefined;
794
926
  id: number;
795
- description: string;
796
927
  code: string;
928
+ description: string;
797
929
  appliesWhen: "purchase";
798
930
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
799
931
  amountType: "flat-rate" | "percentage";
800
932
  amountValue: number;
801
933
  validFrom: Date | null;
802
934
  validUntil: Date | null;
935
+ usageLimit: number | null;
936
+ orgWorkspaceId?: number | null | undefined;
803
937
  };
804
938
  _input_out: {
805
939
  authorization?: string | undefined;
806
940
  id: number;
807
- description: string;
808
941
  code: string;
942
+ description: string;
809
943
  appliesWhen: "purchase";
810
944
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
811
945
  amountType: "flat-rate" | "percentage";
812
946
  amountValue: number;
813
947
  validFrom: Date | null;
814
948
  validUntil: Date | null;
949
+ usageLimit: number | null;
950
+ orgWorkspaceId?: number | null | undefined;
815
951
  };
816
952
  _output_in: typeof import("@trpc/server").unsetMarker;
817
953
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -851,29 +987,29 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
851
987
  _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
852
988
  _input_in: {
853
989
  id: number;
854
- code: string;
855
990
  appliesWhen: "purchase";
856
991
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
857
992
  productValue: number;
993
+ code?: string | undefined;
858
994
  };
859
995
  _input_out: {
860
996
  id: number;
861
- code: string;
862
997
  appliesWhen: "purchase";
863
998
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
864
999
  productValue: number;
1000
+ code?: string | undefined;
865
1001
  };
866
1002
  _output_in: {
867
- description: string;
868
1003
  code: string;
1004
+ description: string;
869
1005
  amountType: "flat-rate" | "percentage";
870
1006
  amountValue: number;
871
1007
  reducedValue: number;
872
1008
  newValue: number;
873
1009
  };
874
1010
  _output_out: {
875
- description: string;
876
1011
  code: string;
1012
+ description: string;
877
1013
  amountType: "flat-rate" | "percentage";
878
1014
  amountValue: number;
879
1015
  reducedValue: number;
@@ -904,19 +1040,19 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
904
1040
  authorization?: string | undefined;
905
1041
  description: string;
906
1042
  freeAgentId: number;
907
- leagueId?: number | undefined;
908
- cancelPath?: string | undefined;
909
1043
  code?: string | undefined;
1044
+ leagueId?: number | undefined;
910
1045
  paymentMode?: "session" | "intent" | undefined;
1046
+ cancelPath?: string | undefined;
911
1047
  };
912
1048
  _input_out: {
913
1049
  authorization?: string | undefined;
914
1050
  description: string;
915
- paymentMode: "session" | "intent";
916
1051
  freeAgentId: number;
1052
+ paymentMode: "session" | "intent";
1053
+ code?: string | undefined;
917
1054
  leagueId?: number | undefined;
918
1055
  cancelPath?: string | undefined;
919
- code?: string | undefined;
920
1056
  };
921
1057
  _output_in: typeof import("@trpc/server").unsetMarker;
922
1058
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -962,40 +1098,40 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
962
1098
  };
963
1099
  _output_in: {
964
1100
  id: number;
965
- deletedAt: Date | null;
966
1101
  memberId: number;
1102
+ deletedAt: Date | null;
967
1103
  member: {
968
- email: string;
969
1104
  id: number;
1105
+ email: string;
970
1106
  firstName: string | null;
971
1107
  lastName: string | null;
972
1108
  };
973
1109
  totalPaid: number;
974
1110
  payments: {
975
- payerId: number;
976
1111
  id: number;
977
- price: number;
978
1112
  createdAt: string | Date;
1113
+ price: number;
1114
+ payerId: number;
979
1115
  amountApplied: number | null;
980
1116
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
981
1117
  }[];
982
1118
  }[];
983
1119
  _output_out: {
984
1120
  id: number;
985
- deletedAt: Date | null;
986
1121
  memberId: number;
1122
+ deletedAt: Date | null;
987
1123
  member: {
988
- email: string;
989
1124
  id: number;
1125
+ email: string;
990
1126
  firstName: string | null;
991
1127
  lastName: string | null;
992
1128
  };
993
1129
  totalPaid: number;
994
1130
  payments: {
995
- payerId: number;
996
1131
  id: number;
997
- price: number;
998
1132
  createdAt: string | Date;
1133
+ price: number;
1134
+ payerId: number;
999
1135
  amountApplied: number | null;
1000
1136
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
1001
1137
  }[];
@@ -1016,15 +1152,15 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
1016
1152
  };
1017
1153
  _input_in: {
1018
1154
  authorization?: string | undefined;
1019
- price: number;
1020
1155
  leagueId: number;
1156
+ price: number;
1021
1157
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
1022
1158
  teamRosterId: number;
1023
1159
  };
1024
1160
  _input_out: {
1025
1161
  authorization?: string | undefined;
1026
- price: number;
1027
1162
  leagueId: number;
1163
+ price: number;
1028
1164
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
1029
1165
  teamRosterId: number;
1030
1166
  };
@@ -1105,14 +1241,16 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
1105
1241
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
1106
1242
  code?: string | undefined;
1107
1243
  paymentMode?: "session" | "intent" | undefined;
1244
+ paymentAmount?: number | undefined;
1108
1245
  };
1109
1246
  _input_out: {
1110
1247
  authorization?: string | undefined;
1111
1248
  leagueId: number;
1249
+ paymentMode: "session" | "intent";
1112
1250
  teamId: number;
1113
1251
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
1114
- paymentMode: "session" | "intent";
1115
1252
  code?: string | undefined;
1253
+ paymentAmount?: number | undefined;
1116
1254
  };
1117
1255
  _output_in: typeof import("@trpc/server").unsetMarker;
1118
1256
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -1293,6 +1431,75 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
1293
1431
  _output_out: typeof import("@trpc/server").unsetMarker;
1294
1432
  }, import("../api-type/src/types/auth").MemberAuthResponse>;
1295
1433
  }>;
1434
+ organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
1435
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1436
+ meta: object;
1437
+ errorShape: import("@trpc/server").DefaultErrorShape;
1438
+ transformer: import("@trpc/server").DefaultDataTransformer;
1439
+ }>, {
1440
+ fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
1441
+ _config: import("@trpc/server").RootConfig<{
1442
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1443
+ meta: object;
1444
+ errorShape: import("@trpc/server").DefaultErrorShape;
1445
+ transformer: import("@trpc/server").DefaultDataTransformer;
1446
+ }>;
1447
+ _meta: object;
1448
+ _ctx_out: {
1449
+ req: import("http").IncomingMessage;
1450
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
1451
+ user: import("../api-type/src/types/auth").TJwtPayload;
1452
+ };
1453
+ _input_in: {
1454
+ authorization?: string | undefined;
1455
+ workspaceId?: number | undefined;
1456
+ };
1457
+ _input_out: {
1458
+ authorization?: string | undefined;
1459
+ workspaceId?: number | undefined;
1460
+ };
1461
+ _output_in: {
1462
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
1463
+ extraTechnologyFeePercent: number;
1464
+ extraTechnologyFeeLabel: string | null;
1465
+ };
1466
+ _output_out: {
1467
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
1468
+ extraTechnologyFeePercent: number;
1469
+ extraTechnologyFeeLabel: string | null;
1470
+ };
1471
+ }, unknown>;
1472
+ updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
1473
+ _config: import("@trpc/server").RootConfig<{
1474
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1475
+ meta: object;
1476
+ errorShape: import("@trpc/server").DefaultErrorShape;
1477
+ transformer: import("@trpc/server").DefaultDataTransformer;
1478
+ }>;
1479
+ _meta: object;
1480
+ _ctx_out: {
1481
+ req: import("http").IncomingMessage;
1482
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
1483
+ user: import("../api-type/src/types/auth").TJwtPayload;
1484
+ };
1485
+ _input_in: {
1486
+ authorization?: string | undefined;
1487
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
1488
+ extraTechnologyFeePercent: number;
1489
+ extraTechnologyFeeLabel: string | null;
1490
+ workspaceId?: number | undefined;
1491
+ };
1492
+ _input_out: {
1493
+ authorization?: string | undefined;
1494
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
1495
+ extraTechnologyFeePercent: number;
1496
+ extraTechnologyFeeLabel: string | null;
1497
+ workspaceId?: number | undefined;
1498
+ };
1499
+ _output_in: typeof import("@trpc/server").unsetMarker;
1500
+ _output_out: typeof import("@trpc/server").unsetMarker;
1501
+ }, void>;
1502
+ }>;
1296
1503
  pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
1297
1504
  ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1298
1505
  meta: object;
@@ -1314,19 +1521,19 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
1314
1521
  };
1315
1522
  _input_in: {
1316
1523
  authorization?: string | undefined;
1317
- pickupId: number;
1318
1524
  memberId: number;
1319
- cancelPath?: string | undefined;
1525
+ pickupId: number;
1320
1526
  code?: string | undefined;
1321
1527
  paymentMode?: "session" | "intent" | undefined;
1528
+ cancelPath?: string | undefined;
1322
1529
  };
1323
1530
  _input_out: {
1324
1531
  authorization?: string | undefined;
1325
- pickupId: number;
1326
1532
  memberId: number;
1327
1533
  paymentMode: "session" | "intent";
1328
- cancelPath?: string | undefined;
1534
+ pickupId: number;
1329
1535
  code?: string | undefined;
1536
+ cancelPath?: string | undefined;
1330
1537
  };
1331
1538
  _output_in: typeof import("@trpc/server").unsetMarker;
1332
1539
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -1334,6 +1541,55 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
1334
1541
  eventName: string;
1335
1542
  }>;
1336
1543
  }>;
1544
+ product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
1545
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1546
+ meta: object;
1547
+ errorShape: import("@trpc/server").DefaultErrorShape;
1548
+ transformer: import("@trpc/server").DefaultDataTransformer;
1549
+ }>, {
1550
+ info: import("@trpc/server").BuildProcedure<"mutation", {
1551
+ _config: import("@trpc/server").RootConfig<{
1552
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1553
+ meta: object;
1554
+ errorShape: import("@trpc/server").DefaultErrorShape;
1555
+ transformer: import("@trpc/server").DefaultDataTransformer;
1556
+ }>;
1557
+ _meta: object;
1558
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1559
+ _input_in: {
1560
+ id: number;
1561
+ appliesWhen: "purchase";
1562
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
1563
+ productValue: number;
1564
+ code?: string | undefined;
1565
+ };
1566
+ _input_out: {
1567
+ id: number;
1568
+ appliesWhen: "purchase";
1569
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
1570
+ productValue: number;
1571
+ code?: string | undefined;
1572
+ };
1573
+ _output_in: {
1574
+ discountApplied: number;
1575
+ totalWithTax: number;
1576
+ totalTax: number;
1577
+ otherTaxLabel: string;
1578
+ otherTax: number;
1579
+ code?: string | undefined;
1580
+ description?: string | undefined;
1581
+ };
1582
+ _output_out: {
1583
+ discountApplied: number;
1584
+ totalWithTax: number;
1585
+ totalTax: number;
1586
+ otherTaxLabel: string;
1587
+ otherTax: number;
1588
+ code?: string | undefined;
1589
+ description?: string | undefined;
1590
+ };
1591
+ }, unknown>;
1592
+ }>;
1337
1593
  }, null, "">;
1338
1594
  export declare const TRPCProvider: ({ children, useLocalUrl, customUrl, queryClientConfig, queryClient, }: {
1339
1595
  children: ReactNode;