bantr-api-client 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-type/src/trpcRouter/discount_code.router.d.ts +7 -5
- package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +2 -2
- package/api-type/src/trpcRouter/league_payments.router.d.ts +11 -9
- package/api-type/src/trpcRouter/oauth.router.d.ts +3 -3
- package/api-type/src/trpcRouter/pickup_payments.router.d.ts +4 -4
- package/api-type/src/trpcRouter/router.d.ts +44 -36
- package/dist/src/index.d.ts +66 -54
- package/dist/src/provider.d.ts +44 -36
- package/dist/src/query.d.ts +22 -18
- package/package.json +1 -1
package/dist/src/provider.d.ts
CHANGED
@@ -136,6 +136,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
136
136
|
amountValue: number;
|
137
137
|
validFrom: Date | null;
|
138
138
|
validUntil: Date | null;
|
139
|
+
usageLimit: number | null;
|
139
140
|
};
|
140
141
|
_input_out: {
|
141
142
|
authorization?: string | undefined;
|
@@ -148,6 +149,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
148
149
|
amountValue: number;
|
149
150
|
validFrom: Date | null;
|
150
151
|
validUntil: Date | null;
|
152
|
+
usageLimit: number | null;
|
151
153
|
};
|
152
154
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
153
155
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -288,50 +290,50 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
288
290
|
};
|
289
291
|
_input_in: {
|
290
292
|
authorization?: string | undefined;
|
291
|
-
leagueId: number;
|
292
293
|
teamId: number;
|
294
|
+
leagueId: number;
|
293
295
|
};
|
294
296
|
_input_out: {
|
295
297
|
authorization?: string | undefined;
|
296
|
-
leagueId: number;
|
297
298
|
teamId: number;
|
299
|
+
leagueId: number;
|
298
300
|
};
|
299
301
|
_output_in: {
|
302
|
+
memberId: number;
|
300
303
|
id: number;
|
301
304
|
deletedAt: Date | null;
|
302
|
-
memberId: number;
|
303
305
|
member: {
|
304
|
-
email: string;
|
305
306
|
id: number;
|
307
|
+
email: string;
|
306
308
|
firstName: string | null;
|
307
309
|
lastName: string | null;
|
308
310
|
};
|
309
311
|
totalPaid: number;
|
310
312
|
payments: {
|
311
|
-
payerId: number;
|
312
313
|
id: number;
|
313
|
-
price: number;
|
314
314
|
createdAt: string | Date;
|
315
|
+
price: number;
|
316
|
+
payerId: number;
|
315
317
|
amountApplied: number | null;
|
316
318
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
317
319
|
}[];
|
318
320
|
}[];
|
319
321
|
_output_out: {
|
322
|
+
memberId: number;
|
320
323
|
id: number;
|
321
324
|
deletedAt: Date | null;
|
322
|
-
memberId: number;
|
323
325
|
member: {
|
324
|
-
email: string;
|
325
326
|
id: number;
|
327
|
+
email: string;
|
326
328
|
firstName: string | null;
|
327
329
|
lastName: string | null;
|
328
330
|
};
|
329
331
|
totalPaid: number;
|
330
332
|
payments: {
|
331
|
-
payerId: number;
|
332
333
|
id: number;
|
333
|
-
price: number;
|
334
334
|
createdAt: string | Date;
|
335
|
+
price: number;
|
336
|
+
payerId: number;
|
335
337
|
amountApplied: number | null;
|
336
338
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
337
339
|
}[];
|
@@ -352,15 +354,15 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
352
354
|
};
|
353
355
|
_input_in: {
|
354
356
|
authorization?: string | undefined;
|
355
|
-
price: number;
|
356
357
|
leagueId: number;
|
358
|
+
price: number;
|
357
359
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
358
360
|
teamRosterId: number;
|
359
361
|
};
|
360
362
|
_input_out: {
|
361
363
|
authorization?: string | undefined;
|
362
|
-
price: number;
|
363
364
|
leagueId: number;
|
365
|
+
price: number;
|
364
366
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
365
367
|
teamRosterId: number;
|
366
368
|
};
|
@@ -436,18 +438,20 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
436
438
|
};
|
437
439
|
_input_in: {
|
438
440
|
authorization?: string | undefined;
|
439
|
-
leagueId: number;
|
440
441
|
teamId: number;
|
442
|
+
leagueId: number;
|
441
443
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
444
|
+
paymentAmount?: number | undefined;
|
442
445
|
code?: string | undefined;
|
443
446
|
paymentMode?: "session" | "intent" | undefined;
|
444
447
|
};
|
445
448
|
_input_out: {
|
446
449
|
authorization?: string | undefined;
|
447
|
-
leagueId: number;
|
448
450
|
teamId: number;
|
451
|
+
leagueId: number;
|
449
452
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
450
453
|
paymentMode: "session" | "intent";
|
454
|
+
paymentAmount?: number | undefined;
|
451
455
|
code?: string | undefined;
|
452
456
|
};
|
453
457
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -619,11 +623,11 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
619
623
|
};
|
620
624
|
_input_in: {
|
621
625
|
authorization?: string | undefined;
|
622
|
-
provider: "
|
626
|
+
provider: "google" | "apple";
|
623
627
|
};
|
624
628
|
_input_out: {
|
625
629
|
authorization?: string | undefined;
|
626
|
-
provider: "
|
630
|
+
provider: "google" | "apple";
|
627
631
|
};
|
628
632
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
629
633
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -650,16 +654,16 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
650
654
|
};
|
651
655
|
_input_in: {
|
652
656
|
authorization?: string | undefined;
|
653
|
-
pickupId: number;
|
654
657
|
memberId: number;
|
658
|
+
pickupId: number;
|
655
659
|
cancelPath?: string | undefined;
|
656
660
|
code?: string | undefined;
|
657
661
|
paymentMode?: "session" | "intent" | undefined;
|
658
662
|
};
|
659
663
|
_input_out: {
|
660
664
|
authorization?: string | undefined;
|
661
|
-
pickupId: number;
|
662
665
|
memberId: number;
|
666
|
+
pickupId: number;
|
663
667
|
paymentMode: "session" | "intent";
|
664
668
|
cancelPath?: string | undefined;
|
665
669
|
code?: string | undefined;
|
@@ -800,6 +804,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
800
804
|
amountValue: number;
|
801
805
|
validFrom: Date | null;
|
802
806
|
validUntil: Date | null;
|
807
|
+
usageLimit: number | null;
|
803
808
|
};
|
804
809
|
_input_out: {
|
805
810
|
authorization?: string | undefined;
|
@@ -812,6 +817,7 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
812
817
|
amountValue: number;
|
813
818
|
validFrom: Date | null;
|
814
819
|
validUntil: Date | null;
|
820
|
+
usageLimit: number | null;
|
815
821
|
};
|
816
822
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
817
823
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -952,50 +958,50 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
952
958
|
};
|
953
959
|
_input_in: {
|
954
960
|
authorization?: string | undefined;
|
955
|
-
leagueId: number;
|
956
961
|
teamId: number;
|
962
|
+
leagueId: number;
|
957
963
|
};
|
958
964
|
_input_out: {
|
959
965
|
authorization?: string | undefined;
|
960
|
-
leagueId: number;
|
961
966
|
teamId: number;
|
967
|
+
leagueId: number;
|
962
968
|
};
|
963
969
|
_output_in: {
|
970
|
+
memberId: number;
|
964
971
|
id: number;
|
965
972
|
deletedAt: Date | null;
|
966
|
-
memberId: number;
|
967
973
|
member: {
|
968
|
-
email: string;
|
969
974
|
id: number;
|
975
|
+
email: string;
|
970
976
|
firstName: string | null;
|
971
977
|
lastName: string | null;
|
972
978
|
};
|
973
979
|
totalPaid: number;
|
974
980
|
payments: {
|
975
|
-
payerId: number;
|
976
981
|
id: number;
|
977
|
-
price: number;
|
978
982
|
createdAt: string | Date;
|
983
|
+
price: number;
|
984
|
+
payerId: number;
|
979
985
|
amountApplied: number | null;
|
980
986
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
981
987
|
}[];
|
982
988
|
}[];
|
983
989
|
_output_out: {
|
990
|
+
memberId: number;
|
984
991
|
id: number;
|
985
992
|
deletedAt: Date | null;
|
986
|
-
memberId: number;
|
987
993
|
member: {
|
988
|
-
email: string;
|
989
994
|
id: number;
|
995
|
+
email: string;
|
990
996
|
firstName: string | null;
|
991
997
|
lastName: string | null;
|
992
998
|
};
|
993
999
|
totalPaid: number;
|
994
1000
|
payments: {
|
995
|
-
payerId: number;
|
996
1001
|
id: number;
|
997
|
-
price: number;
|
998
1002
|
createdAt: string | Date;
|
1003
|
+
price: number;
|
1004
|
+
payerId: number;
|
999
1005
|
amountApplied: number | null;
|
1000
1006
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1001
1007
|
}[];
|
@@ -1016,15 +1022,15 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1016
1022
|
};
|
1017
1023
|
_input_in: {
|
1018
1024
|
authorization?: string | undefined;
|
1019
|
-
price: number;
|
1020
1025
|
leagueId: number;
|
1026
|
+
price: number;
|
1021
1027
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1022
1028
|
teamRosterId: number;
|
1023
1029
|
};
|
1024
1030
|
_input_out: {
|
1025
1031
|
authorization?: string | undefined;
|
1026
|
-
price: number;
|
1027
1032
|
leagueId: number;
|
1033
|
+
price: number;
|
1028
1034
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1029
1035
|
teamRosterId: number;
|
1030
1036
|
};
|
@@ -1100,18 +1106,20 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1100
1106
|
};
|
1101
1107
|
_input_in: {
|
1102
1108
|
authorization?: string | undefined;
|
1103
|
-
leagueId: number;
|
1104
1109
|
teamId: number;
|
1110
|
+
leagueId: number;
|
1105
1111
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1112
|
+
paymentAmount?: number | undefined;
|
1106
1113
|
code?: string | undefined;
|
1107
1114
|
paymentMode?: "session" | "intent" | undefined;
|
1108
1115
|
};
|
1109
1116
|
_input_out: {
|
1110
1117
|
authorization?: string | undefined;
|
1111
|
-
leagueId: number;
|
1112
1118
|
teamId: number;
|
1119
|
+
leagueId: number;
|
1113
1120
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1114
1121
|
paymentMode: "session" | "intent";
|
1122
|
+
paymentAmount?: number | undefined;
|
1115
1123
|
code?: string | undefined;
|
1116
1124
|
};
|
1117
1125
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -1283,11 +1291,11 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1283
1291
|
};
|
1284
1292
|
_input_in: {
|
1285
1293
|
authorization?: string | undefined;
|
1286
|
-
provider: "
|
1294
|
+
provider: "google" | "apple";
|
1287
1295
|
};
|
1288
1296
|
_input_out: {
|
1289
1297
|
authorization?: string | undefined;
|
1290
|
-
provider: "
|
1298
|
+
provider: "google" | "apple";
|
1291
1299
|
};
|
1292
1300
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1293
1301
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -1314,16 +1322,16 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
1314
1322
|
};
|
1315
1323
|
_input_in: {
|
1316
1324
|
authorization?: string | undefined;
|
1317
|
-
pickupId: number;
|
1318
1325
|
memberId: number;
|
1326
|
+
pickupId: number;
|
1319
1327
|
cancelPath?: string | undefined;
|
1320
1328
|
code?: string | undefined;
|
1321
1329
|
paymentMode?: "session" | "intent" | undefined;
|
1322
1330
|
};
|
1323
1331
|
_input_out: {
|
1324
1332
|
authorization?: string | undefined;
|
1325
|
-
pickupId: number;
|
1326
1333
|
memberId: number;
|
1334
|
+
pickupId: number;
|
1327
1335
|
paymentMode: "session" | "intent";
|
1328
1336
|
cancelPath?: string | undefined;
|
1329
1337
|
code?: string | undefined;
|
package/dist/src/query.d.ts
CHANGED
@@ -134,6 +134,7 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
134
134
|
amountValue: number;
|
135
135
|
validFrom: Date | null;
|
136
136
|
validUntil: Date | null;
|
137
|
+
usageLimit: number | null;
|
137
138
|
};
|
138
139
|
_input_out: {
|
139
140
|
authorization?: string | undefined;
|
@@ -146,6 +147,7 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
146
147
|
amountValue: number;
|
147
148
|
validFrom: Date | null;
|
148
149
|
validUntil: Date | null;
|
150
|
+
usageLimit: number | null;
|
149
151
|
};
|
150
152
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
151
153
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -284,50 +286,50 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
284
286
|
};
|
285
287
|
_input_in: {
|
286
288
|
authorization?: string | undefined;
|
287
|
-
leagueId: number;
|
288
289
|
teamId: number;
|
290
|
+
leagueId: number;
|
289
291
|
};
|
290
292
|
_input_out: {
|
291
293
|
authorization?: string | undefined;
|
292
|
-
leagueId: number;
|
293
294
|
teamId: number;
|
295
|
+
leagueId: number;
|
294
296
|
};
|
295
297
|
_output_in: {
|
298
|
+
memberId: number;
|
296
299
|
id: number;
|
297
300
|
deletedAt: Date | null;
|
298
|
-
memberId: number;
|
299
301
|
member: {
|
300
|
-
email: string;
|
301
302
|
id: number;
|
303
|
+
email: string;
|
302
304
|
firstName: string | null;
|
303
305
|
lastName: string | null;
|
304
306
|
};
|
305
307
|
totalPaid: number;
|
306
308
|
payments: {
|
307
|
-
payerId: number;
|
308
309
|
id: number;
|
309
|
-
price: number;
|
310
310
|
createdAt: string | Date;
|
311
|
+
price: number;
|
312
|
+
payerId: number;
|
311
313
|
amountApplied: number | null;
|
312
314
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
313
315
|
}[];
|
314
316
|
}[];
|
315
317
|
_output_out: {
|
318
|
+
memberId: number;
|
316
319
|
id: number;
|
317
320
|
deletedAt: Date | null;
|
318
|
-
memberId: number;
|
319
321
|
member: {
|
320
|
-
email: string;
|
321
322
|
id: number;
|
323
|
+
email: string;
|
322
324
|
firstName: string | null;
|
323
325
|
lastName: string | null;
|
324
326
|
};
|
325
327
|
totalPaid: number;
|
326
328
|
payments: {
|
327
|
-
payerId: number;
|
328
329
|
id: number;
|
329
|
-
price: number;
|
330
330
|
createdAt: string | Date;
|
331
|
+
price: number;
|
332
|
+
payerId: number;
|
331
333
|
amountApplied: number | null;
|
332
334
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
333
335
|
}[];
|
@@ -350,15 +352,15 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
350
352
|
};
|
351
353
|
_input_in: {
|
352
354
|
authorization?: string | undefined;
|
353
|
-
price: number;
|
354
355
|
leagueId: number;
|
356
|
+
price: number;
|
355
357
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
356
358
|
teamRosterId: number;
|
357
359
|
};
|
358
360
|
_input_out: {
|
359
361
|
authorization?: string | undefined;
|
360
|
-
price: number;
|
361
362
|
leagueId: number;
|
363
|
+
price: number;
|
362
364
|
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
363
365
|
teamRosterId: number;
|
364
366
|
};
|
@@ -440,18 +442,20 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
440
442
|
};
|
441
443
|
_input_in: {
|
442
444
|
authorization?: string | undefined;
|
443
|
-
leagueId: number;
|
444
445
|
teamId: number;
|
446
|
+
leagueId: number;
|
445
447
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
448
|
+
paymentAmount?: number | undefined;
|
446
449
|
code?: string | undefined;
|
447
450
|
paymentMode?: "session" | "intent" | undefined;
|
448
451
|
};
|
449
452
|
_input_out: {
|
450
453
|
authorization?: string | undefined;
|
451
|
-
leagueId: number;
|
452
454
|
teamId: number;
|
455
|
+
leagueId: number;
|
453
456
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
454
457
|
paymentMode: "session" | "intent";
|
458
|
+
paymentAmount?: number | undefined;
|
455
459
|
code?: string | undefined;
|
456
460
|
};
|
457
461
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -632,11 +636,11 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
632
636
|
};
|
633
637
|
_input_in: {
|
634
638
|
authorization?: string | undefined;
|
635
|
-
provider: "
|
639
|
+
provider: "google" | "apple";
|
636
640
|
};
|
637
641
|
_input_out: {
|
638
642
|
authorization?: string | undefined;
|
639
|
-
provider: "
|
643
|
+
provider: "google" | "apple";
|
640
644
|
};
|
641
645
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
642
646
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -660,16 +664,16 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
660
664
|
};
|
661
665
|
_input_in: {
|
662
666
|
authorization?: string | undefined;
|
663
|
-
pickupId: number;
|
664
667
|
memberId: number;
|
668
|
+
pickupId: number;
|
665
669
|
cancelPath?: string | undefined;
|
666
670
|
code?: string | undefined;
|
667
671
|
paymentMode?: "session" | "intent" | undefined;
|
668
672
|
};
|
669
673
|
_input_out: {
|
670
674
|
authorization?: string | undefined;
|
671
|
-
pickupId: number;
|
672
675
|
memberId: number;
|
676
|
+
pickupId: number;
|
673
677
|
paymentMode: "session" | "intent";
|
674
678
|
cancelPath?: string | undefined;
|
675
679
|
code?: string | undefined;
|