bantr-api-client 1.5.1 → 11.0.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 +1 -1
- package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +16 -0
- package/api-type/src/trpcRouter/league_payments.router.d.ts +8 -8
- package/api-type/src/trpcRouter/product.router.d.ts +2 -2
- package/api-type/src/trpcRouter/router.d.ts +1221 -455
- package/api-type/src/trpcRouter/team.d.ts +191 -0
- package/api-type/src/trpcRouter/transaction.router.d.ts +176 -0
- package/dist/src/index.d.ts +2026 -867
- package/dist/src/provider.d.ts +1214 -448
- package/dist/src/query.d.ts +444 -51
- package/package.json +1 -1
- package/tsconfig.json +1 -1
package/dist/src/index.d.ts
CHANGED
@@ -35,9 +35,9 @@ export declare const BantrSdk: {
|
|
35
35
|
}>;
|
36
36
|
_meta: object;
|
37
37
|
_ctx_out: {
|
38
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
38
39
|
req: import("http").IncomingMessage;
|
39
40
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
40
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
41
41
|
};
|
42
42
|
_input_in: {
|
43
43
|
authorization?: string | undefined;
|
@@ -59,27 +59,27 @@ export declare const BantrSdk: {
|
|
59
59
|
}>;
|
60
60
|
_meta: object;
|
61
61
|
_ctx_out: {
|
62
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
62
63
|
req: import("http").IncomingMessage;
|
63
64
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
64
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
65
65
|
};
|
66
66
|
_input_in: {
|
67
67
|
authorization?: string | undefined;
|
68
68
|
limit: number;
|
69
69
|
cursor: number;
|
70
|
-
code?: string | undefined;
|
71
70
|
orgWorkspaceId?: number | null | undefined;
|
71
|
+
code?: string | undefined;
|
72
72
|
direction?: "asc" | "desc" | undefined;
|
73
73
|
listExpired?: boolean | undefined;
|
74
74
|
};
|
75
75
|
_input_out: {
|
76
76
|
authorization?: string | undefined;
|
77
77
|
limit: number;
|
78
|
-
cursor: number;
|
79
78
|
direction: "asc" | "desc";
|
79
|
+
cursor: number;
|
80
80
|
listExpired: boolean;
|
81
|
-
code?: string | undefined;
|
82
81
|
orgWorkspaceId?: number | null | undefined;
|
82
|
+
code?: string | undefined;
|
83
83
|
};
|
84
84
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
85
85
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -96,14 +96,14 @@ export declare const BantrSdk: {
|
|
96
96
|
}>;
|
97
97
|
_meta: object;
|
98
98
|
_ctx_out: {
|
99
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
99
100
|
req: import("http").IncomingMessage;
|
100
101
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
101
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
102
102
|
};
|
103
103
|
_input_in: {
|
104
104
|
authorization?: string | undefined;
|
105
|
-
code: string;
|
106
105
|
description: string;
|
106
|
+
code: string;
|
107
107
|
appliesWhen: "purchase";
|
108
108
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
109
109
|
amountType: "flat-rate" | "percentage";
|
@@ -114,8 +114,8 @@ export declare const BantrSdk: {
|
|
114
114
|
};
|
115
115
|
_input_out: {
|
116
116
|
authorization?: string | undefined;
|
117
|
-
code: string;
|
118
117
|
description: string;
|
118
|
+
code: string;
|
119
119
|
appliesWhen: "purchase";
|
120
120
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
121
121
|
amountType: "flat-rate" | "percentage";
|
@@ -138,15 +138,15 @@ export declare const BantrSdk: {
|
|
138
138
|
}>;
|
139
139
|
_meta: object;
|
140
140
|
_ctx_out: {
|
141
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
141
142
|
req: import("http").IncomingMessage;
|
142
143
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
143
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
144
144
|
};
|
145
145
|
_input_in: {
|
146
146
|
authorization?: string | undefined;
|
147
147
|
id: number;
|
148
|
-
code: string;
|
149
148
|
description: string;
|
149
|
+
code: string;
|
150
150
|
appliesWhen: "purchase";
|
151
151
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
152
152
|
amountType: "flat-rate" | "percentage";
|
@@ -159,8 +159,8 @@ export declare const BantrSdk: {
|
|
159
159
|
_input_out: {
|
160
160
|
authorization?: string | undefined;
|
161
161
|
id: number;
|
162
|
-
code: string;
|
163
162
|
description: string;
|
163
|
+
code: string;
|
164
164
|
appliesWhen: "purchase";
|
165
165
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
166
166
|
amountType: "flat-rate" | "percentage";
|
@@ -182,9 +182,9 @@ export declare const BantrSdk: {
|
|
182
182
|
}>;
|
183
183
|
_meta: object;
|
184
184
|
_ctx_out: {
|
185
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
185
186
|
req: import("http").IncomingMessage;
|
186
187
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
187
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
188
188
|
};
|
189
189
|
_input_in: {
|
190
190
|
authorization?: string | undefined;
|
@@ -221,16 +221,16 @@ export declare const BantrSdk: {
|
|
221
221
|
code?: string | undefined;
|
222
222
|
};
|
223
223
|
_output_in: {
|
224
|
-
code: string;
|
225
224
|
description: string;
|
225
|
+
code: string;
|
226
226
|
amountType: "flat-rate" | "percentage";
|
227
227
|
amountValue: number;
|
228
228
|
reducedValue: number;
|
229
229
|
newValue: number;
|
230
230
|
};
|
231
231
|
_output_out: {
|
232
|
-
code: string;
|
233
232
|
description: string;
|
233
|
+
code: string;
|
234
234
|
amountType: "flat-rate" | "percentage";
|
235
235
|
amountValue: number;
|
236
236
|
reducedValue: number;
|
@@ -253,26 +253,26 @@ export declare const BantrSdk: {
|
|
253
253
|
}>;
|
254
254
|
_meta: object;
|
255
255
|
_ctx_out: {
|
256
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
256
257
|
req: import("http").IncomingMessage;
|
257
258
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
258
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
259
259
|
};
|
260
260
|
_input_in: {
|
261
261
|
authorization?: string | undefined;
|
262
262
|
description: string;
|
263
263
|
freeAgentId: number;
|
264
|
-
code?: string | undefined;
|
265
264
|
leagueId?: number | undefined;
|
265
|
+
code?: string | undefined;
|
266
266
|
paymentMode?: "session" | "intent" | undefined;
|
267
267
|
cancelPath?: string | undefined;
|
268
268
|
};
|
269
269
|
_input_out: {
|
270
270
|
authorization?: string | undefined;
|
271
271
|
description: string;
|
272
|
-
freeAgentId: number;
|
273
272
|
paymentMode: "session" | "intent";
|
274
|
-
|
273
|
+
freeAgentId: number;
|
275
274
|
leagueId?: number | undefined;
|
275
|
+
code?: string | undefined;
|
276
276
|
cancelPath?: string | undefined;
|
277
277
|
};
|
278
278
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -284,6 +284,22 @@ export declare const BantrSdk: {
|
|
284
284
|
customerId: string;
|
285
285
|
orgPublishableKey: string | undefined;
|
286
286
|
orgStripeAccountId: string;
|
287
|
+
paymentIntent: {
|
288
|
+
intent: import("stripe").Stripe.Response<import("stripe").Stripe.PaymentIntent>;
|
289
|
+
discountAndFee: {
|
290
|
+
discountApplied: number;
|
291
|
+
discountedAmount: number;
|
292
|
+
priceAmount: number;
|
293
|
+
otherTaxLabel: string;
|
294
|
+
otherTaxPercent: number;
|
295
|
+
otherTax: number;
|
296
|
+
bantrTax: number;
|
297
|
+
stripeTax: number;
|
298
|
+
totalTax: number;
|
299
|
+
totalWithTax: number;
|
300
|
+
transferAmount: number;
|
301
|
+
};
|
302
|
+
};
|
287
303
|
} | {
|
288
304
|
redirectUrl: string;
|
289
305
|
}>;
|
@@ -303,58 +319,58 @@ export declare const BantrSdk: {
|
|
303
319
|
}>;
|
304
320
|
_meta: object;
|
305
321
|
_ctx_out: {
|
322
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
306
323
|
req: import("http").IncomingMessage;
|
307
324
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
308
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
309
325
|
};
|
310
326
|
_input_in: {
|
311
327
|
authorization?: string | undefined;
|
312
|
-
leagueId: number;
|
313
328
|
teamId: number;
|
329
|
+
leagueId: number;
|
314
330
|
};
|
315
331
|
_input_out: {
|
316
332
|
authorization?: string | undefined;
|
317
|
-
leagueId: number;
|
318
333
|
teamId: number;
|
334
|
+
leagueId: number;
|
319
335
|
};
|
320
336
|
_output_in: {
|
321
337
|
id: number;
|
322
338
|
deletedAt: Date | null;
|
323
|
-
memberId: number;
|
324
|
-
totalPaid: number;
|
325
339
|
member: {
|
326
340
|
id: number;
|
327
|
-
email: string;
|
328
341
|
firstName: string | null;
|
329
342
|
lastName: string | null;
|
343
|
+
email: string;
|
330
344
|
};
|
345
|
+
memberId: number;
|
346
|
+
totalPaid: number;
|
331
347
|
payments: {
|
332
348
|
id: number;
|
333
349
|
createdAt: string | Date;
|
334
|
-
price: number;
|
335
350
|
payerId: number;
|
336
351
|
amountApplied: number | null;
|
337
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
352
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
353
|
+
price: number;
|
338
354
|
}[];
|
339
355
|
}[];
|
340
356
|
_output_out: {
|
341
357
|
id: number;
|
342
358
|
deletedAt: Date | null;
|
343
|
-
memberId: number;
|
344
|
-
totalPaid: number;
|
345
359
|
member: {
|
346
360
|
id: number;
|
347
|
-
email: string;
|
348
361
|
firstName: string | null;
|
349
362
|
lastName: string | null;
|
363
|
+
email: string;
|
350
364
|
};
|
365
|
+
memberId: number;
|
366
|
+
totalPaid: number;
|
351
367
|
payments: {
|
352
368
|
id: number;
|
353
369
|
createdAt: string | Date;
|
354
|
-
price: number;
|
355
370
|
payerId: number;
|
356
371
|
amountApplied: number | null;
|
357
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
372
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
373
|
+
price: number;
|
358
374
|
}[];
|
359
375
|
}[];
|
360
376
|
}, unknown>;
|
@@ -367,22 +383,22 @@ export declare const BantrSdk: {
|
|
367
383
|
}>;
|
368
384
|
_meta: object;
|
369
385
|
_ctx_out: {
|
386
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
370
387
|
req: import("http").IncomingMessage;
|
371
388
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
372
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
373
389
|
};
|
374
390
|
_input_in: {
|
375
391
|
authorization?: string | undefined;
|
376
392
|
leagueId: number;
|
393
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
377
394
|
price: number;
|
378
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
379
395
|
teamRosterId: number;
|
380
396
|
};
|
381
397
|
_input_out: {
|
382
398
|
authorization?: string | undefined;
|
383
399
|
leagueId: number;
|
400
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
384
401
|
price: number;
|
385
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
386
402
|
teamRosterId: number;
|
387
403
|
};
|
388
404
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -397,22 +413,22 @@ export declare const BantrSdk: {
|
|
397
413
|
}>;
|
398
414
|
_meta: object;
|
399
415
|
_ctx_out: {
|
416
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
400
417
|
req: import("http").IncomingMessage;
|
401
418
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
402
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
403
419
|
};
|
404
420
|
_input_in: {
|
405
421
|
authorization?: string | undefined;
|
406
422
|
id: number;
|
423
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
407
424
|
price: number;
|
408
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
409
425
|
teamRosterId: number;
|
410
426
|
};
|
411
427
|
_input_out: {
|
412
428
|
authorization?: string | undefined;
|
413
429
|
id: number;
|
430
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
414
431
|
price: number;
|
415
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
416
432
|
teamRosterId: number;
|
417
433
|
};
|
418
434
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -427,9 +443,9 @@ export declare const BantrSdk: {
|
|
427
443
|
}>;
|
428
444
|
_meta: object;
|
429
445
|
_ctx_out: {
|
446
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
430
447
|
req: import("http").IncomingMessage;
|
431
448
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
432
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
433
449
|
};
|
434
450
|
_input_in: {
|
435
451
|
authorization?: string | undefined;
|
@@ -451,14 +467,14 @@ export declare const BantrSdk: {
|
|
451
467
|
}>;
|
452
468
|
_meta: object;
|
453
469
|
_ctx_out: {
|
470
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
454
471
|
req: import("http").IncomingMessage;
|
455
472
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
456
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
457
473
|
};
|
458
474
|
_input_in: {
|
459
475
|
authorization?: string | undefined;
|
460
|
-
leagueId: number;
|
461
476
|
teamId: number;
|
477
|
+
leagueId: number;
|
462
478
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
463
479
|
code?: string | undefined;
|
464
480
|
paymentMode?: "session" | "intent" | undefined;
|
@@ -466,10 +482,10 @@ export declare const BantrSdk: {
|
|
466
482
|
};
|
467
483
|
_input_out: {
|
468
484
|
authorization?: string | undefined;
|
469
|
-
leagueId: number;
|
470
|
-
paymentMode: "session" | "intent";
|
471
485
|
teamId: number;
|
486
|
+
leagueId: number;
|
472
487
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
488
|
+
paymentMode: "session" | "intent";
|
473
489
|
code?: string | undefined;
|
474
490
|
paymentAmount?: number | undefined;
|
475
491
|
};
|
@@ -636,17 +652,17 @@ export declare const BantrSdk: {
|
|
636
652
|
}>;
|
637
653
|
_meta: object;
|
638
654
|
_ctx_out: {
|
655
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
639
656
|
req: import("http").IncomingMessage;
|
640
657
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
641
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
642
658
|
};
|
643
659
|
_input_in: {
|
644
660
|
authorization?: string | undefined;
|
645
|
-
provider: "
|
661
|
+
provider: "google" | "apple";
|
646
662
|
};
|
647
663
|
_input_out: {
|
648
664
|
authorization?: string | undefined;
|
649
|
-
provider: "
|
665
|
+
provider: "google" | "apple";
|
650
666
|
};
|
651
667
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
652
668
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -667,9 +683,9 @@ export declare const BantrSdk: {
|
|
667
683
|
}>;
|
668
684
|
_meta: object;
|
669
685
|
_ctx_out: {
|
686
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
670
687
|
req: import("http").IncomingMessage;
|
671
688
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
672
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
673
689
|
};
|
674
690
|
_input_in: {
|
675
691
|
authorization?: string | undefined;
|
@@ -699,9 +715,9 @@ export declare const BantrSdk: {
|
|
699
715
|
}>;
|
700
716
|
_meta: object;
|
701
717
|
_ctx_out: {
|
718
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
702
719
|
req: import("http").IncomingMessage;
|
703
720
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
704
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
705
721
|
};
|
706
722
|
_input_in: {
|
707
723
|
authorization?: string | undefined;
|
@@ -736,9 +752,9 @@ export declare const BantrSdk: {
|
|
736
752
|
}>;
|
737
753
|
_meta: object;
|
738
754
|
_ctx_out: {
|
755
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
739
756
|
req: import("http").IncomingMessage;
|
740
757
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
741
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
742
758
|
};
|
743
759
|
_input_in: {
|
744
760
|
authorization?: string | undefined;
|
@@ -750,8 +766,8 @@ export declare const BantrSdk: {
|
|
750
766
|
};
|
751
767
|
_input_out: {
|
752
768
|
authorization?: string | undefined;
|
753
|
-
paymentMode: "session" | "intent";
|
754
769
|
memberId: number;
|
770
|
+
paymentMode: "session" | "intent";
|
755
771
|
pickupId: number;
|
756
772
|
code?: string | undefined;
|
757
773
|
cancelPath?: string | undefined;
|
@@ -798,8 +814,8 @@ export declare const BantrSdk: {
|
|
798
814
|
otherTaxLabel: string;
|
799
815
|
otherTax: number;
|
800
816
|
otherTaxPercent: number;
|
801
|
-
code?: string | undefined;
|
802
817
|
description?: string | undefined;
|
818
|
+
code?: string | undefined;
|
803
819
|
};
|
804
820
|
_output_out: {
|
805
821
|
discountApplied: number;
|
@@ -808,19 +824,18 @@ export declare const BantrSdk: {
|
|
808
824
|
otherTaxLabel: string;
|
809
825
|
otherTax: number;
|
810
826
|
otherTaxPercent: number;
|
811
|
-
code?: string | undefined;
|
812
827
|
description?: string | undefined;
|
828
|
+
code?: string | undefined;
|
813
829
|
};
|
814
830
|
}, unknown>;
|
815
831
|
}>;
|
816
|
-
|
817
|
-
discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
832
|
+
team: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
818
833
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
819
834
|
meta: object;
|
820
835
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
821
836
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
822
837
|
}>, {
|
823
|
-
|
838
|
+
getInvitedMembers: import("@trpc/server").BuildProcedure<"query", {
|
824
839
|
_config: import("@trpc/server").RootConfig<{
|
825
840
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
826
841
|
meta: object;
|
@@ -829,22 +844,25 @@ export declare const BantrSdk: {
|
|
829
844
|
}>;
|
830
845
|
_meta: object;
|
831
846
|
_ctx_out: {
|
847
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
832
848
|
req: import("http").IncomingMessage;
|
833
849
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
834
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
835
850
|
};
|
836
851
|
_input_in: {
|
837
852
|
authorization?: string | undefined;
|
838
|
-
|
853
|
+
teamId: number;
|
839
854
|
};
|
840
855
|
_input_out: {
|
841
856
|
authorization?: string | undefined;
|
842
|
-
|
857
|
+
teamId: number;
|
843
858
|
};
|
844
859
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
845
860
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
846
|
-
}, import("../api-type/src/
|
847
|
-
|
861
|
+
}, (import("../api-type/src/models/team_roster").TeamRoster & {
|
862
|
+
member: Pick<import("../api-type/src/models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
863
|
+
invites: Pick<import("../api-type/src/models/invite").Invite, "isActive">[];
|
864
|
+
})[]>;
|
865
|
+
getInvitedByOrganization: import("@trpc/server").BuildProcedure<"query", {
|
848
866
|
_config: import("@trpc/server").RootConfig<{
|
849
867
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
850
868
|
meta: object;
|
@@ -853,35 +871,27 @@ export declare const BantrSdk: {
|
|
853
871
|
}>;
|
854
872
|
_meta: object;
|
855
873
|
_ctx_out: {
|
874
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
856
875
|
req: import("http").IncomingMessage;
|
857
876
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
858
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
859
877
|
};
|
860
878
|
_input_in: {
|
861
879
|
authorization?: string | undefined;
|
862
|
-
|
863
|
-
|
864
|
-
code?: string | undefined;
|
865
|
-
orgWorkspaceId?: number | null | undefined;
|
866
|
-
direction?: "asc" | "desc" | undefined;
|
867
|
-
listExpired?: boolean | undefined;
|
880
|
+
teamId: number;
|
881
|
+
organizationId: number;
|
868
882
|
};
|
869
883
|
_input_out: {
|
870
884
|
authorization?: string | undefined;
|
871
|
-
|
872
|
-
|
873
|
-
direction: "asc" | "desc";
|
874
|
-
listExpired: boolean;
|
875
|
-
code?: string | undefined;
|
876
|
-
orgWorkspaceId?: number | null | undefined;
|
885
|
+
teamId: number;
|
886
|
+
organizationId: number;
|
877
887
|
};
|
878
888
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
879
889
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
880
|
-
}, {
|
881
|
-
|
882
|
-
|
883
|
-
}>;
|
884
|
-
|
890
|
+
}, (import("../api-type/src/models/team_roster").TeamRoster & {
|
891
|
+
member: Pick<import("../api-type/src/models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
892
|
+
invites: Pick<import("../api-type/src/models/invite").Invite, "isActive">[];
|
893
|
+
})[]>;
|
894
|
+
createInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
885
895
|
_config: import("@trpc/server").RootConfig<{
|
886
896
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
887
897
|
meta: object;
|
@@ -890,40 +900,36 @@ export declare const BantrSdk: {
|
|
890
900
|
}>;
|
891
901
|
_meta: object;
|
892
902
|
_ctx_out: {
|
903
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
893
904
|
req: import("http").IncomingMessage;
|
894
905
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
895
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
896
906
|
};
|
897
907
|
_input_in: {
|
898
908
|
authorization?: string | undefined;
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
orgWorkspaceId?: number | null | undefined;
|
909
|
+
teamId: number;
|
910
|
+
invites: {
|
911
|
+
firstName: string;
|
912
|
+
lastName: string;
|
913
|
+
email: string;
|
914
|
+
}[];
|
915
|
+
leagueId?: number | undefined;
|
916
|
+
organizationId?: number | undefined;
|
908
917
|
};
|
909
918
|
_input_out: {
|
910
919
|
authorization?: string | undefined;
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
orgWorkspaceId?: number | null | undefined;
|
920
|
+
teamId: number;
|
921
|
+
invites: {
|
922
|
+
firstName: string;
|
923
|
+
lastName: string;
|
924
|
+
email: string;
|
925
|
+
}[];
|
926
|
+
leagueId?: number | undefined;
|
927
|
+
organizationId?: number | undefined;
|
920
928
|
};
|
921
929
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
922
930
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
923
|
-
},
|
924
|
-
|
925
|
-
}>;
|
926
|
-
update: import("@trpc/server").BuildProcedure<"mutation", {
|
931
|
+
}, void>;
|
932
|
+
createInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
927
933
|
_config: import("@trpc/server").RootConfig<{
|
928
934
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
929
935
|
meta: object;
|
@@ -932,42 +938,36 @@ export declare const BantrSdk: {
|
|
932
938
|
}>;
|
933
939
|
_meta: object;
|
934
940
|
_ctx_out: {
|
941
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
935
942
|
req: import("http").IncomingMessage;
|
936
943
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
937
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
938
944
|
};
|
939
945
|
_input_in: {
|
940
946
|
authorization?: string | undefined;
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
validUntil: Date | null;
|
950
|
-
usageLimit: number | null;
|
951
|
-
orgWorkspaceId?: number | null | undefined;
|
947
|
+
teamId: number;
|
948
|
+
invites: {
|
949
|
+
firstName: string;
|
950
|
+
lastName: string;
|
951
|
+
email: string;
|
952
|
+
}[];
|
953
|
+
leagueId?: number | undefined;
|
954
|
+
organizationId?: number | undefined;
|
952
955
|
};
|
953
956
|
_input_out: {
|
954
957
|
authorization?: string | undefined;
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
validUntil: Date | null;
|
964
|
-
usageLimit: number | null;
|
965
|
-
orgWorkspaceId?: number | null | undefined;
|
958
|
+
teamId: number;
|
959
|
+
invites: {
|
960
|
+
firstName: string;
|
961
|
+
lastName: string;
|
962
|
+
email: string;
|
963
|
+
}[];
|
964
|
+
leagueId?: number | undefined;
|
965
|
+
organizationId?: number | undefined;
|
966
966
|
};
|
967
967
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
968
968
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
969
969
|
}, void>;
|
970
|
-
|
970
|
+
cancelInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
971
971
|
_config: import("@trpc/server").RootConfig<{
|
972
972
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
973
973
|
meta: object;
|
@@ -976,22 +976,24 @@ export declare const BantrSdk: {
|
|
976
976
|
}>;
|
977
977
|
_meta: object;
|
978
978
|
_ctx_out: {
|
979
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
979
980
|
req: import("http").IncomingMessage;
|
980
981
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
981
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
982
982
|
};
|
983
983
|
_input_in: {
|
984
984
|
authorization?: string | undefined;
|
985
|
-
|
985
|
+
teamId: number;
|
986
|
+
inviteId: number;
|
986
987
|
};
|
987
988
|
_input_out: {
|
988
989
|
authorization?: string | undefined;
|
989
|
-
|
990
|
+
teamId: number;
|
991
|
+
inviteId: number;
|
990
992
|
};
|
991
993
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
992
994
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
993
995
|
}, void>;
|
994
|
-
|
996
|
+
cancelInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
995
997
|
_config: import("@trpc/server").RootConfig<{
|
996
998
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
997
999
|
meta: object;
|
@@ -999,46 +1001,32 @@ export declare const BantrSdk: {
|
|
999
1001
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1000
1002
|
}>;
|
1001
1003
|
_meta: object;
|
1002
|
-
_ctx_out:
|
1004
|
+
_ctx_out: {
|
1005
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1006
|
+
req: import("http").IncomingMessage;
|
1007
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1008
|
+
};
|
1003
1009
|
_input_in: {
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
productValue: number;
|
1008
|
-
code?: string | undefined;
|
1010
|
+
authorization?: string | undefined;
|
1011
|
+
teamId: number;
|
1012
|
+
inviteId: number;
|
1009
1013
|
};
|
1010
1014
|
_input_out: {
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
productValue: number;
|
1015
|
-
code?: string | undefined;
|
1016
|
-
};
|
1017
|
-
_output_in: {
|
1018
|
-
code: string;
|
1019
|
-
description: string;
|
1020
|
-
amountType: "flat-rate" | "percentage";
|
1021
|
-
amountValue: number;
|
1022
|
-
reducedValue: number;
|
1023
|
-
newValue: number;
|
1024
|
-
};
|
1025
|
-
_output_out: {
|
1026
|
-
code: string;
|
1027
|
-
description: string;
|
1028
|
-
amountType: "flat-rate" | "percentage";
|
1029
|
-
amountValue: number;
|
1030
|
-
reducedValue: number;
|
1031
|
-
newValue: number;
|
1015
|
+
authorization?: string | undefined;
|
1016
|
+
teamId: number;
|
1017
|
+
inviteId: number;
|
1032
1018
|
};
|
1033
|
-
|
1019
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1020
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1021
|
+
}, void>;
|
1034
1022
|
}>;
|
1035
|
-
|
1023
|
+
transaction: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1036
1024
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1037
1025
|
meta: object;
|
1038
1026
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1039
1027
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1040
1028
|
}>, {
|
1041
|
-
|
1029
|
+
list: import("@trpc/server").BuildProcedure<"query", {
|
1042
1030
|
_config: import("@trpc/server").RootConfig<{
|
1043
1031
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1044
1032
|
meta: object;
|
@@ -1047,48 +1035,39 @@ export declare const BantrSdk: {
|
|
1047
1035
|
}>;
|
1048
1036
|
_meta: object;
|
1049
1037
|
_ctx_out: {
|
1038
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1050
1039
|
req: import("http").IncomingMessage;
|
1051
1040
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1052
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1053
1041
|
};
|
1054
1042
|
_input_in: {
|
1055
1043
|
authorization?: string | undefined;
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1044
|
+
limit: number;
|
1045
|
+
page: number;
|
1046
|
+
direction: "asc" | "desc";
|
1047
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1048
|
+
search?: string | undefined;
|
1049
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1050
|
+
orgWorkspaceId?: number | undefined;
|
1062
1051
|
};
|
1063
1052
|
_input_out: {
|
1064
1053
|
authorization?: string | undefined;
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1054
|
+
limit: number;
|
1055
|
+
page: number;
|
1056
|
+
direction: "asc" | "desc";
|
1057
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1058
|
+
search?: string | undefined;
|
1059
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1060
|
+
orgWorkspaceId?: number | undefined;
|
1071
1061
|
};
|
1072
1062
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1073
1063
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1074
1064
|
}, {
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
orgPublishableKey: string | undefined;
|
1080
|
-
orgStripeAccountId: string;
|
1081
|
-
} | {
|
1082
|
-
redirectUrl: string;
|
1065
|
+
items: import("../api-type/src/models/transaction").Transaction[];
|
1066
|
+
curPage: number;
|
1067
|
+
hasPrev: boolean;
|
1068
|
+
hasNext: boolean;
|
1083
1069
|
}>;
|
1084
|
-
|
1085
|
-
leaguePayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1086
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1087
|
-
meta: object;
|
1088
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
1089
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
1090
|
-
}>, {
|
1091
|
-
trackUsersAndPayments: import("@trpc/server").BuildProcedure<"query", {
|
1070
|
+
info: import("@trpc/server").BuildProcedure<"query", {
|
1092
1071
|
_config: import("@trpc/server").RootConfig<{
|
1093
1072
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1094
1073
|
meta: object;
|
@@ -1097,62 +1076,64 @@ export declare const BantrSdk: {
|
|
1097
1076
|
}>;
|
1098
1077
|
_meta: object;
|
1099
1078
|
_ctx_out: {
|
1079
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1100
1080
|
req: import("http").IncomingMessage;
|
1101
1081
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1102
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1103
1082
|
};
|
1104
1083
|
_input_in: {
|
1105
1084
|
authorization?: string | undefined;
|
1106
|
-
|
1107
|
-
teamId: number;
|
1085
|
+
transactionId: number;
|
1108
1086
|
};
|
1109
1087
|
_input_out: {
|
1110
1088
|
authorization?: string | undefined;
|
1111
|
-
|
1112
|
-
teamId: number;
|
1089
|
+
transactionId: number;
|
1113
1090
|
};
|
1114
|
-
_output_in:
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1091
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1092
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1093
|
+
}, {
|
1094
|
+
stripeTransfers: import("../api-type/src/models/stripe_transfer").StripeTransfer[];
|
1095
|
+
id: number;
|
1096
|
+
payerId: number;
|
1097
|
+
payer?: import("../api-type/src/models/member").Member;
|
1098
|
+
paymentMethod: import("../api-type/src/modules/transaction/transaction.schema").TRANSACTION_METHOD_ENUM;
|
1099
|
+
discountCodeId: number | null;
|
1100
|
+
discountCode?: import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode;
|
1101
|
+
documentAmount: number;
|
1102
|
+
discountedAmount: number;
|
1103
|
+
organizerFee: number;
|
1104
|
+
bantrFee: number;
|
1105
|
+
stripeFee: number;
|
1106
|
+
chargedAmount: number;
|
1107
|
+
paidAmount: number;
|
1108
|
+
transferAmount: number;
|
1109
|
+
refundedAmount: number;
|
1110
|
+
transferSent: boolean;
|
1111
|
+
currency: import("../api-type/src/constants").VALID_CURRENCY_CODES;
|
1112
|
+
status: import("../api-type/src/modules/transaction/transaction.schema").TRANSACTION_STATUS_ENUM;
|
1113
|
+
expiresAt: Date | null;
|
1114
|
+
lastStatusUpdateAt: Date | null;
|
1115
|
+
leaguePaymentId: number | null;
|
1116
|
+
leaguePayment?: import("../api-type/src/models/league_payment").LeaguePayment;
|
1117
|
+
league?: import("../api-type/src/models/league").League;
|
1118
|
+
pickupPaymentId: number | null;
|
1119
|
+
pickupPayment?: import("../api-type/src/models/pickup_payments").PickupPayment;
|
1120
|
+
pickup?: import("../api-type/src/models/pickup").Pickup;
|
1121
|
+
freeAgentPaymentId: number | null;
|
1122
|
+
freeAgentPayment?: import("../api-type/src/models/free_agent_payment").FreeAgentPayment;
|
1123
|
+
orgFreeAgent?: import("../api-type/src/models/organization_free_agent").OrgFreeAgent;
|
1124
|
+
organizationId: number;
|
1125
|
+
organization?: import("../api-type/src/models/organization").Organization;
|
1126
|
+
orgWorkspaceId: number | null;
|
1127
|
+
orgWorkspace?: import("../api-type/src/models/organization_workspace").OrgWorkspace;
|
1128
|
+
transactionEvents?: import("../api-type/src/models/transaction_event").TransactionEvent[];
|
1129
|
+
stripeTransactions?: import("../api-type/src/models/stripe_transaction").StripeTransaction[];
|
1130
|
+
updatedAt: Date;
|
1131
|
+
createdAt: Date;
|
1132
|
+
deletedAt: Date | null;
|
1133
|
+
QueryBuilderType: import("objection-js-soft-delete").SoftDeleteQueryBuilder<import("../api-type/src/models/transaction").Transaction, import("../api-type/src/models/transaction").Transaction[]> & import("objection").QueryBuilder<import("../api-type/src/models/transaction").Transaction, import("../api-type/src/models/transaction").Transaction[]>;
|
1134
|
+
$modelClass: import("objection").ModelClass<import("../api-type/src/models/transaction").Transaction>;
|
1135
|
+
}>;
|
1136
|
+
refund: import("@trpc/server").BuildProcedure<"mutation", {
|
1156
1137
|
_config: import("@trpc/server").RootConfig<{
|
1157
1138
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1158
1139
|
meta: object;
|
@@ -1161,28 +1142,24 @@ export declare const BantrSdk: {
|
|
1161
1142
|
}>;
|
1162
1143
|
_meta: object;
|
1163
1144
|
_ctx_out: {
|
1145
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1164
1146
|
req: import("http").IncomingMessage;
|
1165
1147
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1166
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1167
1148
|
};
|
1168
1149
|
_input_in: {
|
1169
1150
|
authorization?: string | undefined;
|
1170
|
-
|
1171
|
-
|
1172
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1173
|
-
teamRosterId: number;
|
1151
|
+
transactionId: number;
|
1152
|
+
amount: number;
|
1174
1153
|
};
|
1175
1154
|
_input_out: {
|
1176
1155
|
authorization?: string | undefined;
|
1177
|
-
|
1178
|
-
|
1179
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1180
|
-
teamRosterId: number;
|
1156
|
+
transactionId: number;
|
1157
|
+
amount: number;
|
1181
1158
|
};
|
1182
1159
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1183
1160
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1184
|
-
},
|
1185
|
-
|
1161
|
+
}, void>;
|
1162
|
+
export: import("@trpc/server").BuildProcedure<"mutation", {
|
1186
1163
|
_config: import("@trpc/server").RootConfig<{
|
1187
1164
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1188
1165
|
meta: object;
|
@@ -1191,28 +1168,42 @@ export declare const BantrSdk: {
|
|
1191
1168
|
}>;
|
1192
1169
|
_meta: object;
|
1193
1170
|
_ctx_out: {
|
1171
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1194
1172
|
req: import("http").IncomingMessage;
|
1195
1173
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1196
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1197
1174
|
};
|
1198
1175
|
_input_in: {
|
1199
1176
|
authorization?: string | undefined;
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1177
|
+
limit: number;
|
1178
|
+
page: number;
|
1179
|
+
direction: "asc" | "desc";
|
1180
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1181
|
+
search?: string | undefined;
|
1182
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1183
|
+
orgWorkspaceId?: number | undefined;
|
1204
1184
|
};
|
1205
1185
|
_input_out: {
|
1206
1186
|
authorization?: string | undefined;
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1187
|
+
limit: number;
|
1188
|
+
page: number;
|
1189
|
+
direction: "asc" | "desc";
|
1190
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1191
|
+
search?: string | undefined;
|
1192
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1193
|
+
orgWorkspaceId?: number | undefined;
|
1211
1194
|
};
|
1212
1195
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1213
1196
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1214
|
-
},
|
1215
|
-
|
1197
|
+
}, string>;
|
1198
|
+
}>;
|
1199
|
+
}>, unknown> & import("@trpc/react-query/dist/createTRPCReact").DecoratedProcedureRecord<{
|
1200
|
+
discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1201
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1202
|
+
meta: object;
|
1203
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1204
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1205
|
+
}>, {
|
1206
|
+
get: import("@trpc/server").BuildProcedure<"mutation", {
|
1216
1207
|
_config: import("@trpc/server").RootConfig<{
|
1217
1208
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1218
1209
|
meta: object;
|
@@ -1221,9 +1212,9 @@ export declare const BantrSdk: {
|
|
1221
1212
|
}>;
|
1222
1213
|
_meta: object;
|
1223
1214
|
_ctx_out: {
|
1215
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1224
1216
|
req: import("http").IncomingMessage;
|
1225
1217
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1226
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1227
1218
|
};
|
1228
1219
|
_input_in: {
|
1229
1220
|
authorization?: string | undefined;
|
@@ -1235,8 +1226,8 @@ export declare const BantrSdk: {
|
|
1235
1226
|
};
|
1236
1227
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1237
1228
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1238
|
-
},
|
1239
|
-
|
1229
|
+
}, import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode>;
|
1230
|
+
list: import("@trpc/server").BuildProcedure<"query", {
|
1240
1231
|
_config: import("@trpc/server").RootConfig<{
|
1241
1232
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1242
1233
|
meta: object;
|
@@ -1245,69 +1236,77 @@ export declare const BantrSdk: {
|
|
1245
1236
|
}>;
|
1246
1237
|
_meta: object;
|
1247
1238
|
_ctx_out: {
|
1239
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1248
1240
|
req: import("http").IncomingMessage;
|
1249
1241
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1250
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1251
1242
|
};
|
1252
1243
|
_input_in: {
|
1253
1244
|
authorization?: string | undefined;
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1245
|
+
limit: number;
|
1246
|
+
cursor: number;
|
1247
|
+
orgWorkspaceId?: number | null | undefined;
|
1257
1248
|
code?: string | undefined;
|
1258
|
-
|
1259
|
-
|
1249
|
+
direction?: "asc" | "desc" | undefined;
|
1250
|
+
listExpired?: boolean | undefined;
|
1260
1251
|
};
|
1261
1252
|
_input_out: {
|
1262
1253
|
authorization?: string | undefined;
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1254
|
+
limit: number;
|
1255
|
+
direction: "asc" | "desc";
|
1256
|
+
cursor: number;
|
1257
|
+
listExpired: boolean;
|
1258
|
+
orgWorkspaceId?: number | null | undefined;
|
1267
1259
|
code?: string | undefined;
|
1268
|
-
paymentAmount?: number | undefined;
|
1269
1260
|
};
|
1270
1261
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1271
1262
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1272
1263
|
}, {
|
1273
|
-
|
1264
|
+
items: import("objection").Page<import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode>;
|
1265
|
+
nextCursor: number | undefined;
|
1274
1266
|
}>;
|
1275
|
-
|
1276
|
-
oauth: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1277
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1278
|
-
meta: object;
|
1279
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
1280
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
1281
|
-
}>, {
|
1282
|
-
googleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
1267
|
+
create: import("@trpc/server").BuildProcedure<"mutation", {
|
1283
1268
|
_config: import("@trpc/server").RootConfig<{
|
1284
1269
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1285
1270
|
meta: object;
|
1286
1271
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1287
1272
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1288
1273
|
}>;
|
1289
|
-
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1290
|
-
_input_in: typeof import("@trpc/server").unsetMarker;
|
1291
|
-
_input_out: typeof import("@trpc/server").unsetMarker;
|
1292
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
1293
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
1294
1274
|
_meta: object;
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1275
|
+
_ctx_out: {
|
1276
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1277
|
+
req: import("http").IncomingMessage;
|
1278
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1279
|
+
};
|
1280
|
+
_input_in: {
|
1281
|
+
authorization?: string | undefined;
|
1282
|
+
description: string;
|
1283
|
+
code: string;
|
1284
|
+
appliesWhen: "purchase";
|
1285
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1286
|
+
amountType: "flat-rate" | "percentage";
|
1287
|
+
amountValue: number;
|
1288
|
+
validFrom: Date | null;
|
1289
|
+
validUntil: Date | null;
|
1290
|
+
orgWorkspaceId?: number | null | undefined;
|
1291
|
+
};
|
1292
|
+
_input_out: {
|
1293
|
+
authorization?: string | undefined;
|
1294
|
+
description: string;
|
1295
|
+
code: string;
|
1296
|
+
appliesWhen: "purchase";
|
1297
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1298
|
+
amountType: "flat-rate" | "percentage";
|
1299
|
+
amountValue: number;
|
1300
|
+
validFrom: Date | null;
|
1301
|
+
validUntil: Date | null;
|
1302
|
+
orgWorkspaceId?: number | null | undefined;
|
1303
|
+
};
|
1306
1304
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1307
1305
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1306
|
+
}, {
|
1307
|
+
id: number;
|
1308
|
+
}>;
|
1309
|
+
update: import("@trpc/server").BuildProcedure<"mutation", {
|
1311
1310
|
_config: import("@trpc/server").RootConfig<{
|
1312
1311
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1313
1312
|
meta: object;
|
@@ -1315,55 +1314,43 @@ export declare const BantrSdk: {
|
|
1315
1314
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1316
1315
|
}>;
|
1317
1316
|
_meta: object;
|
1318
|
-
_ctx_out:
|
1317
|
+
_ctx_out: {
|
1318
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1319
|
+
req: import("http").IncomingMessage;
|
1320
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1321
|
+
};
|
1319
1322
|
_input_in: {
|
1323
|
+
authorization?: string | undefined;
|
1324
|
+
id: number;
|
1325
|
+
description: string;
|
1320
1326
|
code: string;
|
1321
|
-
|
1327
|
+
appliesWhen: "purchase";
|
1328
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1329
|
+
amountType: "flat-rate" | "percentage";
|
1330
|
+
amountValue: number;
|
1331
|
+
validFrom: Date | null;
|
1332
|
+
validUntil: Date | null;
|
1333
|
+
usageLimit: number | null;
|
1334
|
+
orgWorkspaceId?: number | null | undefined;
|
1322
1335
|
};
|
1323
1336
|
_input_out: {
|
1337
|
+
authorization?: string | undefined;
|
1338
|
+
id: number;
|
1339
|
+
description: string;
|
1324
1340
|
code: string;
|
1325
|
-
|
1341
|
+
appliesWhen: "purchase";
|
1342
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1343
|
+
amountType: "flat-rate" | "percentage";
|
1344
|
+
amountValue: number;
|
1345
|
+
validFrom: Date | null;
|
1346
|
+
validUntil: Date | null;
|
1347
|
+
usageLimit: number | null;
|
1348
|
+
orgWorkspaceId?: number | null | undefined;
|
1326
1349
|
};
|
1327
1350
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1328
1351
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1329
|
-
},
|
1330
|
-
|
1331
|
-
refreshToken: string;
|
1332
|
-
accountStatus: string;
|
1333
|
-
redirectTeamId?: number | null;
|
1334
|
-
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
1335
|
-
memberId: number;
|
1336
|
-
bio: string | null;
|
1337
|
-
city?: string;
|
1338
|
-
street?: string;
|
1339
|
-
state?: string;
|
1340
|
-
avatar: string | null;
|
1341
|
-
teams: import("../api-type/src/models/team").Team[];
|
1342
|
-
favoriteTeam: number | undefined | null;
|
1343
|
-
zip: string | undefined;
|
1344
|
-
phoneNumber: string | null;
|
1345
|
-
gender?: string;
|
1346
|
-
birthday: string | null;
|
1347
|
-
location: string | null;
|
1348
|
-
email: string;
|
1349
|
-
firstName: string | null;
|
1350
|
-
lastName: string | null;
|
1351
|
-
}>;
|
1352
|
-
appleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
1353
|
-
_config: import("@trpc/server").RootConfig<{
|
1354
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1355
|
-
meta: object;
|
1356
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
1357
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
1358
|
-
}>;
|
1359
|
-
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1360
|
-
_input_in: typeof import("@trpc/server").unsetMarker;
|
1361
|
-
_input_out: typeof import("@trpc/server").unsetMarker;
|
1362
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
1363
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
1364
|
-
_meta: object;
|
1365
|
-
}, string>;
|
1366
|
-
appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
1352
|
+
}, void>;
|
1353
|
+
delete: import("@trpc/server").BuildProcedure<"mutation", {
|
1367
1354
|
_config: import("@trpc/server").RootConfig<{
|
1368
1355
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1369
1356
|
meta: object;
|
@@ -1371,17 +1358,23 @@ export declare const BantrSdk: {
|
|
1371
1358
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1372
1359
|
}>;
|
1373
1360
|
_meta: object;
|
1374
|
-
_ctx_out:
|
1361
|
+
_ctx_out: {
|
1362
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1363
|
+
req: import("http").IncomingMessage;
|
1364
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1365
|
+
};
|
1375
1366
|
_input_in: {
|
1376
|
-
|
1367
|
+
authorization?: string | undefined;
|
1368
|
+
id: number;
|
1377
1369
|
};
|
1378
1370
|
_input_out: {
|
1379
|
-
|
1371
|
+
authorization?: string | undefined;
|
1372
|
+
id: number;
|
1380
1373
|
};
|
1381
1374
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1382
1375
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1383
1376
|
}, void>;
|
1384
|
-
|
1377
|
+
check: import("@trpc/server").BuildProcedure<"mutation", {
|
1385
1378
|
_config: import("@trpc/server").RootConfig<{
|
1386
1379
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1387
1380
|
meta: object;
|
@@ -1391,37 +1384,44 @@ export declare const BantrSdk: {
|
|
1391
1384
|
_meta: object;
|
1392
1385
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1393
1386
|
_input_in: {
|
1394
|
-
|
1387
|
+
id: number;
|
1388
|
+
appliesWhen: "purchase";
|
1389
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1390
|
+
productValue: number;
|
1391
|
+
code?: string | undefined;
|
1395
1392
|
};
|
1396
1393
|
_input_out: {
|
1397
|
-
|
1394
|
+
id: number;
|
1395
|
+
appliesWhen: "purchase";
|
1396
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1397
|
+
productValue: number;
|
1398
|
+
code?: string | undefined;
|
1398
1399
|
};
|
1399
|
-
_output_in:
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
revokeAccessToken: import("@trpc/server").BuildProcedure<"mutation", {
|
1400
|
+
_output_in: {
|
1401
|
+
description: string;
|
1402
|
+
code: string;
|
1403
|
+
amountType: "flat-rate" | "percentage";
|
1404
|
+
amountValue: number;
|
1405
|
+
reducedValue: number;
|
1406
|
+
newValue: number;
|
1407
|
+
};
|
1408
|
+
_output_out: {
|
1409
|
+
description: string;
|
1410
|
+
code: string;
|
1411
|
+
amountType: "flat-rate" | "percentage";
|
1412
|
+
amountValue: number;
|
1413
|
+
reducedValue: number;
|
1414
|
+
newValue: number;
|
1415
|
+
};
|
1416
|
+
}, unknown>;
|
1417
|
+
}>;
|
1418
|
+
freeAgentPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1419
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1420
|
+
meta: object;
|
1421
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1422
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1423
|
+
}>, {
|
1424
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
1425
1425
|
_config: import("@trpc/server").RootConfig<{
|
1426
1426
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1427
1427
|
meta: object;
|
@@ -1430,29 +1430,64 @@ export declare const BantrSdk: {
|
|
1430
1430
|
}>;
|
1431
1431
|
_meta: object;
|
1432
1432
|
_ctx_out: {
|
1433
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1433
1434
|
req: import("http").IncomingMessage;
|
1434
1435
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1435
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1436
1436
|
};
|
1437
1437
|
_input_in: {
|
1438
1438
|
authorization?: string | undefined;
|
1439
|
-
|
1439
|
+
description: string;
|
1440
|
+
freeAgentId: number;
|
1441
|
+
leagueId?: number | undefined;
|
1442
|
+
code?: string | undefined;
|
1443
|
+
paymentMode?: "session" | "intent" | undefined;
|
1444
|
+
cancelPath?: string | undefined;
|
1440
1445
|
};
|
1441
1446
|
_input_out: {
|
1442
1447
|
authorization?: string | undefined;
|
1443
|
-
|
1448
|
+
description: string;
|
1449
|
+
paymentMode: "session" | "intent";
|
1450
|
+
freeAgentId: number;
|
1451
|
+
leagueId?: number | undefined;
|
1452
|
+
code?: string | undefined;
|
1453
|
+
cancelPath?: string | undefined;
|
1444
1454
|
};
|
1445
1455
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1446
1456
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1447
|
-
},
|
1457
|
+
}, {
|
1458
|
+
ephemeralKey: string | undefined;
|
1459
|
+
paymentIntentClientSecret: string;
|
1460
|
+
paymentIntentId: string;
|
1461
|
+
customerId: string;
|
1462
|
+
orgPublishableKey: string | undefined;
|
1463
|
+
orgStripeAccountId: string;
|
1464
|
+
paymentIntent: {
|
1465
|
+
intent: import("stripe").Stripe.Response<import("stripe").Stripe.PaymentIntent>;
|
1466
|
+
discountAndFee: {
|
1467
|
+
discountApplied: number;
|
1468
|
+
discountedAmount: number;
|
1469
|
+
priceAmount: number;
|
1470
|
+
otherTaxLabel: string;
|
1471
|
+
otherTaxPercent: number;
|
1472
|
+
otherTax: number;
|
1473
|
+
bantrTax: number;
|
1474
|
+
stripeTax: number;
|
1475
|
+
totalTax: number;
|
1476
|
+
totalWithTax: number;
|
1477
|
+
transferAmount: number;
|
1478
|
+
};
|
1479
|
+
};
|
1480
|
+
} | {
|
1481
|
+
redirectUrl: string;
|
1482
|
+
}>;
|
1448
1483
|
}>;
|
1449
|
-
|
1484
|
+
leaguePayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1450
1485
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1451
1486
|
meta: object;
|
1452
1487
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1453
1488
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1454
1489
|
}>, {
|
1455
|
-
|
1490
|
+
trackUsersAndPayments: import("@trpc/server").BuildProcedure<"query", {
|
1456
1491
|
_config: import("@trpc/server").RootConfig<{
|
1457
1492
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1458
1493
|
meta: object;
|
@@ -1461,30 +1496,62 @@ export declare const BantrSdk: {
|
|
1461
1496
|
}>;
|
1462
1497
|
_meta: object;
|
1463
1498
|
_ctx_out: {
|
1499
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1464
1500
|
req: import("http").IncomingMessage;
|
1465
1501
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1466
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1467
1502
|
};
|
1468
1503
|
_input_in: {
|
1469
1504
|
authorization?: string | undefined;
|
1470
|
-
|
1505
|
+
teamId: number;
|
1506
|
+
leagueId: number;
|
1471
1507
|
};
|
1472
1508
|
_input_out: {
|
1473
1509
|
authorization?: string | undefined;
|
1474
|
-
|
1510
|
+
teamId: number;
|
1511
|
+
leagueId: number;
|
1475
1512
|
};
|
1476
1513
|
_output_in: {
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1514
|
+
id: number;
|
1515
|
+
deletedAt: Date | null;
|
1516
|
+
member: {
|
1517
|
+
id: number;
|
1518
|
+
firstName: string | null;
|
1519
|
+
lastName: string | null;
|
1520
|
+
email: string;
|
1521
|
+
};
|
1522
|
+
memberId: number;
|
1523
|
+
totalPaid: number;
|
1524
|
+
payments: {
|
1525
|
+
id: number;
|
1526
|
+
createdAt: string | Date;
|
1527
|
+
payerId: number;
|
1528
|
+
amountApplied: number | null;
|
1529
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1530
|
+
price: number;
|
1531
|
+
}[];
|
1532
|
+
}[];
|
1481
1533
|
_output_out: {
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1534
|
+
id: number;
|
1535
|
+
deletedAt: Date | null;
|
1536
|
+
member: {
|
1537
|
+
id: number;
|
1538
|
+
firstName: string | null;
|
1539
|
+
lastName: string | null;
|
1540
|
+
email: string;
|
1541
|
+
};
|
1542
|
+
memberId: number;
|
1543
|
+
totalPaid: number;
|
1544
|
+
payments: {
|
1545
|
+
id: number;
|
1546
|
+
createdAt: string | Date;
|
1547
|
+
payerId: number;
|
1548
|
+
amountApplied: number | null;
|
1549
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1550
|
+
price: number;
|
1551
|
+
}[];
|
1552
|
+
}[];
|
1486
1553
|
}, unknown>;
|
1487
|
-
|
1554
|
+
insertOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
1488
1555
|
_config: import("@trpc/server").RootConfig<{
|
1489
1556
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1490
1557
|
meta: object;
|
@@ -1493,35 +1560,28 @@ export declare const BantrSdk: {
|
|
1493
1560
|
}>;
|
1494
1561
|
_meta: object;
|
1495
1562
|
_ctx_out: {
|
1563
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1496
1564
|
req: import("http").IncomingMessage;
|
1497
1565
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1498
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1499
1566
|
};
|
1500
1567
|
_input_in: {
|
1501
1568
|
authorization?: string | undefined;
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1569
|
+
leagueId: number;
|
1570
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1571
|
+
price: number;
|
1572
|
+
teamRosterId: number;
|
1506
1573
|
};
|
1507
1574
|
_input_out: {
|
1508
1575
|
authorization?: string | undefined;
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1576
|
+
leagueId: number;
|
1577
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1578
|
+
price: number;
|
1579
|
+
teamRosterId: number;
|
1513
1580
|
};
|
1514
1581
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1515
1582
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1516
|
-
},
|
1517
|
-
|
1518
|
-
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1519
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1520
|
-
meta: object;
|
1521
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
1522
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
1523
|
-
}>, {
|
1524
|
-
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
1583
|
+
}, null>;
|
1584
|
+
updateOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
1525
1585
|
_config: import("@trpc/server").RootConfig<{
|
1526
1586
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1527
1587
|
meta: object;
|
@@ -1530,39 +1590,28 @@ export declare const BantrSdk: {
|
|
1530
1590
|
}>;
|
1531
1591
|
_meta: object;
|
1532
1592
|
_ctx_out: {
|
1593
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1533
1594
|
req: import("http").IncomingMessage;
|
1534
1595
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1535
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1536
1596
|
};
|
1537
1597
|
_input_in: {
|
1538
1598
|
authorization?: string | undefined;
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
cancelPath?: string | undefined;
|
1599
|
+
id: number;
|
1600
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1601
|
+
price: number;
|
1602
|
+
teamRosterId: number;
|
1544
1603
|
};
|
1545
1604
|
_input_out: {
|
1546
1605
|
authorization?: string | undefined;
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
cancelPath?: string | undefined;
|
1606
|
+
id: number;
|
1607
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1608
|
+
price: number;
|
1609
|
+
teamRosterId: number;
|
1552
1610
|
};
|
1553
1611
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1554
1612
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1555
|
-
},
|
1556
|
-
|
1557
|
-
}>;
|
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", {
|
1613
|
+
}, null>;
|
1614
|
+
deleteOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
1566
1615
|
_config: import("@trpc/server").RootConfig<{
|
1567
1616
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1568
1617
|
meta: object;
|
@@ -1570,50 +1619,1121 @@ export declare const BantrSdk: {
|
|
1570
1619
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1571
1620
|
}>;
|
1572
1621
|
_meta: object;
|
1573
|
-
_ctx_out:
|
1622
|
+
_ctx_out: {
|
1623
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1624
|
+
req: import("http").IncomingMessage;
|
1625
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1626
|
+
};
|
1574
1627
|
_input_in: {
|
1628
|
+
authorization?: string | undefined;
|
1575
1629
|
id: number;
|
1576
|
-
appliesWhen: "purchase";
|
1577
|
-
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1578
|
-
productValue: number;
|
1579
|
-
code?: string | undefined;
|
1580
1630
|
};
|
1581
1631
|
_input_out: {
|
1632
|
+
authorization?: string | undefined;
|
1582
1633
|
id: number;
|
1583
|
-
appliesWhen: "purchase";
|
1584
|
-
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1585
|
-
productValue: number;
|
1586
|
-
code?: string | undefined;
|
1587
1634
|
};
|
1588
|
-
_output_in:
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1635
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1636
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1637
|
+
}, null>;
|
1638
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
1639
|
+
_config: import("@trpc/server").RootConfig<{
|
1640
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1641
|
+
meta: object;
|
1642
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1643
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1644
|
+
}>;
|
1645
|
+
_meta: object;
|
1646
|
+
_ctx_out: {
|
1647
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1648
|
+
req: import("http").IncomingMessage;
|
1649
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1650
|
+
};
|
1651
|
+
_input_in: {
|
1652
|
+
authorization?: string | undefined;
|
1653
|
+
teamId: number;
|
1654
|
+
leagueId: number;
|
1655
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1595
1656
|
code?: string | undefined;
|
1596
|
-
|
1657
|
+
paymentMode?: "session" | "intent" | undefined;
|
1658
|
+
paymentAmount?: number | undefined;
|
1597
1659
|
};
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
otherTaxPercent: number;
|
1660
|
+
_input_out: {
|
1661
|
+
authorization?: string | undefined;
|
1662
|
+
teamId: number;
|
1663
|
+
leagueId: number;
|
1664
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1665
|
+
paymentMode: "session" | "intent";
|
1605
1666
|
code?: string | undefined;
|
1606
|
-
|
1667
|
+
paymentAmount?: number | undefined;
|
1607
1668
|
};
|
1608
|
-
|
1669
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1670
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1671
|
+
}, {
|
1672
|
+
eventName: string;
|
1673
|
+
}>;
|
1609
1674
|
}>;
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1675
|
+
oauth: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1676
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1677
|
+
meta: object;
|
1678
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1679
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1680
|
+
}>, {
|
1681
|
+
googleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
1682
|
+
_config: import("@trpc/server").RootConfig<{
|
1683
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1684
|
+
meta: object;
|
1685
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1686
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1687
|
+
}>;
|
1688
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1689
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
1690
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
1691
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1692
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1693
|
+
_meta: object;
|
1694
|
+
}, string>;
|
1695
|
+
googleCallback: import("@trpc/server").BuildProcedure<"query", {
|
1696
|
+
_config: import("@trpc/server").RootConfig<{
|
1697
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1698
|
+
meta: object;
|
1699
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1700
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1701
|
+
}>;
|
1702
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1703
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
1704
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
1705
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1706
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1707
|
+
_meta: object;
|
1708
|
+
}, void>;
|
1709
|
+
googleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
1710
|
+
_config: import("@trpc/server").RootConfig<{
|
1711
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1712
|
+
meta: object;
|
1713
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1714
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1715
|
+
}>;
|
1716
|
+
_meta: object;
|
1717
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1718
|
+
_input_in: {
|
1719
|
+
code: string;
|
1720
|
+
idToken?: string | undefined;
|
1721
|
+
};
|
1722
|
+
_input_out: {
|
1723
|
+
code: string;
|
1724
|
+
idToken?: string | undefined;
|
1725
|
+
};
|
1726
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1727
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1728
|
+
}, {
|
1729
|
+
accessToken: string;
|
1730
|
+
refreshToken: string;
|
1731
|
+
accountStatus: string;
|
1732
|
+
redirectTeamId?: number | null;
|
1733
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
1734
|
+
memberId: number;
|
1735
|
+
bio: string | null;
|
1736
|
+
city?: string;
|
1737
|
+
street?: string;
|
1738
|
+
state?: string;
|
1739
|
+
avatar: string | null;
|
1740
|
+
teams: import("../api-type/src/models/team").Team[];
|
1741
|
+
favoriteTeam: number | undefined | null;
|
1742
|
+
zip: string | undefined;
|
1743
|
+
phoneNumber: string | null;
|
1744
|
+
gender?: string;
|
1745
|
+
birthday: string | null;
|
1746
|
+
location: string | null;
|
1747
|
+
email: string;
|
1748
|
+
firstName: string | null;
|
1749
|
+
lastName: string | null;
|
1750
|
+
}>;
|
1751
|
+
appleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
1752
|
+
_config: import("@trpc/server").RootConfig<{
|
1753
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1754
|
+
meta: object;
|
1755
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1756
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1757
|
+
}>;
|
1758
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1759
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
1760
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
1761
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1762
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1763
|
+
_meta: object;
|
1764
|
+
}, string>;
|
1765
|
+
appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
1766
|
+
_config: import("@trpc/server").RootConfig<{
|
1767
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1768
|
+
meta: object;
|
1769
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1770
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1771
|
+
}>;
|
1772
|
+
_meta: object;
|
1773
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1774
|
+
_input_in: {
|
1775
|
+
code: string;
|
1776
|
+
};
|
1777
|
+
_input_out: {
|
1778
|
+
code: string;
|
1779
|
+
};
|
1780
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1781
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1782
|
+
}, void>;
|
1783
|
+
appleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
1784
|
+
_config: import("@trpc/server").RootConfig<{
|
1785
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1786
|
+
meta: object;
|
1787
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1788
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1789
|
+
}>;
|
1790
|
+
_meta: object;
|
1791
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1792
|
+
_input_in: {
|
1793
|
+
idToken: string;
|
1794
|
+
};
|
1795
|
+
_input_out: {
|
1796
|
+
idToken: string;
|
1797
|
+
};
|
1798
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1799
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1800
|
+
}, {
|
1801
|
+
accessToken: string;
|
1802
|
+
refreshToken: string;
|
1803
|
+
accountStatus: string;
|
1804
|
+
redirectTeamId?: number | null;
|
1805
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
1806
|
+
memberId: number;
|
1807
|
+
bio: string | null;
|
1808
|
+
city?: string;
|
1809
|
+
street?: string;
|
1810
|
+
state?: string;
|
1811
|
+
avatar: string | null;
|
1812
|
+
teams: import("../api-type/src/models/team").Team[];
|
1813
|
+
favoriteTeam: number | undefined | null;
|
1814
|
+
zip: string | undefined;
|
1815
|
+
phoneNumber: string | null;
|
1816
|
+
gender?: string;
|
1817
|
+
birthday: string | null;
|
1818
|
+
location: string | null;
|
1819
|
+
email: string;
|
1820
|
+
firstName: string | null;
|
1821
|
+
lastName: string | null;
|
1822
|
+
}>;
|
1823
|
+
revokeAccessToken: import("@trpc/server").BuildProcedure<"mutation", {
|
1824
|
+
_config: import("@trpc/server").RootConfig<{
|
1825
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1826
|
+
meta: object;
|
1827
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1828
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1829
|
+
}>;
|
1830
|
+
_meta: object;
|
1831
|
+
_ctx_out: {
|
1832
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1833
|
+
req: import("http").IncomingMessage;
|
1834
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1835
|
+
};
|
1836
|
+
_input_in: {
|
1837
|
+
authorization?: string | undefined;
|
1838
|
+
provider: "google" | "apple";
|
1839
|
+
};
|
1840
|
+
_input_out: {
|
1841
|
+
authorization?: string | undefined;
|
1842
|
+
provider: "google" | "apple";
|
1843
|
+
};
|
1844
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1845
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1846
|
+
}, import("../api-type/src/types/auth").MemberAuthResponse>;
|
1847
|
+
}>;
|
1848
|
+
organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1849
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1850
|
+
meta: object;
|
1851
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1852
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1853
|
+
}>, {
|
1854
|
+
fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
|
1855
|
+
_config: import("@trpc/server").RootConfig<{
|
1856
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1857
|
+
meta: object;
|
1858
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1859
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1860
|
+
}>;
|
1861
|
+
_meta: object;
|
1862
|
+
_ctx_out: {
|
1863
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1864
|
+
req: import("http").IncomingMessage;
|
1865
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1866
|
+
};
|
1867
|
+
_input_in: {
|
1868
|
+
authorization?: string | undefined;
|
1869
|
+
workspaceId?: number | undefined;
|
1870
|
+
};
|
1871
|
+
_input_out: {
|
1872
|
+
authorization?: string | undefined;
|
1873
|
+
workspaceId?: number | undefined;
|
1874
|
+
};
|
1875
|
+
_output_in: {
|
1876
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1877
|
+
extraTechnologyFeePercent: number;
|
1878
|
+
extraTechnologyFeeLabel: string | null;
|
1879
|
+
};
|
1880
|
+
_output_out: {
|
1881
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1882
|
+
extraTechnologyFeePercent: number;
|
1883
|
+
extraTechnologyFeeLabel: string | null;
|
1884
|
+
};
|
1885
|
+
}, unknown>;
|
1886
|
+
updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
|
1887
|
+
_config: import("@trpc/server").RootConfig<{
|
1888
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1889
|
+
meta: object;
|
1890
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1891
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1892
|
+
}>;
|
1893
|
+
_meta: object;
|
1894
|
+
_ctx_out: {
|
1895
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1896
|
+
req: import("http").IncomingMessage;
|
1897
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1898
|
+
};
|
1899
|
+
_input_in: {
|
1900
|
+
authorization?: string | undefined;
|
1901
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1902
|
+
extraTechnologyFeePercent: number;
|
1903
|
+
extraTechnologyFeeLabel: string | null;
|
1904
|
+
workspaceId?: number | undefined;
|
1905
|
+
};
|
1906
|
+
_input_out: {
|
1907
|
+
authorization?: string | undefined;
|
1908
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
1909
|
+
extraTechnologyFeePercent: number;
|
1910
|
+
extraTechnologyFeeLabel: string | null;
|
1911
|
+
workspaceId?: number | undefined;
|
1912
|
+
};
|
1913
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1914
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1915
|
+
}, void>;
|
1916
|
+
}>;
|
1917
|
+
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1918
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1919
|
+
meta: object;
|
1920
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1921
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1922
|
+
}>, {
|
1923
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
1924
|
+
_config: import("@trpc/server").RootConfig<{
|
1925
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1926
|
+
meta: object;
|
1927
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1928
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1929
|
+
}>;
|
1930
|
+
_meta: object;
|
1931
|
+
_ctx_out: {
|
1932
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1933
|
+
req: import("http").IncomingMessage;
|
1934
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1935
|
+
};
|
1936
|
+
_input_in: {
|
1937
|
+
authorization?: string | undefined;
|
1938
|
+
memberId: number;
|
1939
|
+
pickupId: number;
|
1940
|
+
code?: string | undefined;
|
1941
|
+
paymentMode?: "session" | "intent" | undefined;
|
1942
|
+
cancelPath?: string | undefined;
|
1943
|
+
};
|
1944
|
+
_input_out: {
|
1945
|
+
authorization?: string | undefined;
|
1946
|
+
memberId: number;
|
1947
|
+
paymentMode: "session" | "intent";
|
1948
|
+
pickupId: number;
|
1949
|
+
code?: string | undefined;
|
1950
|
+
cancelPath?: string | undefined;
|
1951
|
+
};
|
1952
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1953
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1954
|
+
}, {
|
1955
|
+
eventName: string;
|
1956
|
+
}>;
|
1957
|
+
}>;
|
1958
|
+
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1959
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1960
|
+
meta: object;
|
1961
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1962
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1963
|
+
}>, {
|
1964
|
+
info: import("@trpc/server").BuildProcedure<"mutation", {
|
1965
|
+
_config: import("@trpc/server").RootConfig<{
|
1966
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1967
|
+
meta: object;
|
1968
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1969
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1970
|
+
}>;
|
1971
|
+
_meta: object;
|
1972
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1973
|
+
_input_in: {
|
1974
|
+
id: number;
|
1975
|
+
appliesWhen: "purchase";
|
1976
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1977
|
+
productValue: number;
|
1978
|
+
code?: string | undefined;
|
1979
|
+
};
|
1980
|
+
_input_out: {
|
1981
|
+
id: number;
|
1982
|
+
appliesWhen: "purchase";
|
1983
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1984
|
+
productValue: number;
|
1985
|
+
code?: string | undefined;
|
1986
|
+
};
|
1987
|
+
_output_in: {
|
1988
|
+
discountApplied: number;
|
1989
|
+
totalWithTax: number;
|
1990
|
+
totalTax: number;
|
1991
|
+
otherTaxLabel: string;
|
1992
|
+
otherTax: number;
|
1993
|
+
otherTaxPercent: number;
|
1994
|
+
description?: string | undefined;
|
1995
|
+
code?: string | undefined;
|
1996
|
+
};
|
1997
|
+
_output_out: {
|
1998
|
+
discountApplied: number;
|
1999
|
+
totalWithTax: number;
|
2000
|
+
totalTax: number;
|
2001
|
+
otherTaxLabel: string;
|
2002
|
+
otherTax: number;
|
2003
|
+
otherTaxPercent: number;
|
2004
|
+
description?: string | undefined;
|
2005
|
+
code?: string | undefined;
|
2006
|
+
};
|
2007
|
+
}, unknown>;
|
2008
|
+
}>;
|
2009
|
+
team: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
2010
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2011
|
+
meta: object;
|
2012
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2013
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2014
|
+
}>, {
|
2015
|
+
getInvitedMembers: import("@trpc/server").BuildProcedure<"query", {
|
2016
|
+
_config: import("@trpc/server").RootConfig<{
|
2017
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2018
|
+
meta: object;
|
2019
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2020
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2021
|
+
}>;
|
2022
|
+
_meta: object;
|
2023
|
+
_ctx_out: {
|
2024
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2025
|
+
req: import("http").IncomingMessage;
|
2026
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2027
|
+
};
|
2028
|
+
_input_in: {
|
2029
|
+
authorization?: string | undefined;
|
2030
|
+
teamId: number;
|
2031
|
+
};
|
2032
|
+
_input_out: {
|
2033
|
+
authorization?: string | undefined;
|
2034
|
+
teamId: number;
|
2035
|
+
};
|
2036
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2037
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2038
|
+
}, (import("../api-type/src/models/team_roster").TeamRoster & {
|
2039
|
+
member: Pick<import("../api-type/src/models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
2040
|
+
invites: Pick<import("../api-type/src/models/invite").Invite, "isActive">[];
|
2041
|
+
})[]>;
|
2042
|
+
getInvitedByOrganization: import("@trpc/server").BuildProcedure<"query", {
|
2043
|
+
_config: import("@trpc/server").RootConfig<{
|
2044
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2045
|
+
meta: object;
|
2046
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2047
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2048
|
+
}>;
|
2049
|
+
_meta: object;
|
2050
|
+
_ctx_out: {
|
2051
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2052
|
+
req: import("http").IncomingMessage;
|
2053
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2054
|
+
};
|
2055
|
+
_input_in: {
|
2056
|
+
authorization?: string | undefined;
|
2057
|
+
teamId: number;
|
2058
|
+
organizationId: number;
|
2059
|
+
};
|
2060
|
+
_input_out: {
|
2061
|
+
authorization?: string | undefined;
|
2062
|
+
teamId: number;
|
2063
|
+
organizationId: number;
|
2064
|
+
};
|
2065
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2066
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2067
|
+
}, (import("../api-type/src/models/team_roster").TeamRoster & {
|
2068
|
+
member: Pick<import("../api-type/src/models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
2069
|
+
invites: Pick<import("../api-type/src/models/invite").Invite, "isActive">[];
|
2070
|
+
})[]>;
|
2071
|
+
createInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
2072
|
+
_config: import("@trpc/server").RootConfig<{
|
2073
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2074
|
+
meta: object;
|
2075
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2076
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2077
|
+
}>;
|
2078
|
+
_meta: object;
|
2079
|
+
_ctx_out: {
|
2080
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2081
|
+
req: import("http").IncomingMessage;
|
2082
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2083
|
+
};
|
2084
|
+
_input_in: {
|
2085
|
+
authorization?: string | undefined;
|
2086
|
+
teamId: number;
|
2087
|
+
invites: {
|
2088
|
+
firstName: string;
|
2089
|
+
lastName: string;
|
2090
|
+
email: string;
|
2091
|
+
}[];
|
2092
|
+
leagueId?: number | undefined;
|
2093
|
+
organizationId?: number | undefined;
|
2094
|
+
};
|
2095
|
+
_input_out: {
|
2096
|
+
authorization?: string | undefined;
|
2097
|
+
teamId: number;
|
2098
|
+
invites: {
|
2099
|
+
firstName: string;
|
2100
|
+
lastName: string;
|
2101
|
+
email: string;
|
2102
|
+
}[];
|
2103
|
+
leagueId?: number | undefined;
|
2104
|
+
organizationId?: number | undefined;
|
2105
|
+
};
|
2106
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2107
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2108
|
+
}, void>;
|
2109
|
+
createInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
2110
|
+
_config: import("@trpc/server").RootConfig<{
|
2111
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2112
|
+
meta: object;
|
2113
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2114
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2115
|
+
}>;
|
2116
|
+
_meta: object;
|
2117
|
+
_ctx_out: {
|
2118
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2119
|
+
req: import("http").IncomingMessage;
|
2120
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2121
|
+
};
|
2122
|
+
_input_in: {
|
2123
|
+
authorization?: string | undefined;
|
2124
|
+
teamId: number;
|
2125
|
+
invites: {
|
2126
|
+
firstName: string;
|
2127
|
+
lastName: string;
|
2128
|
+
email: string;
|
2129
|
+
}[];
|
2130
|
+
leagueId?: number | undefined;
|
2131
|
+
organizationId?: number | undefined;
|
2132
|
+
};
|
2133
|
+
_input_out: {
|
2134
|
+
authorization?: string | undefined;
|
2135
|
+
teamId: number;
|
2136
|
+
invites: {
|
2137
|
+
firstName: string;
|
2138
|
+
lastName: string;
|
2139
|
+
email: string;
|
2140
|
+
}[];
|
2141
|
+
leagueId?: number | undefined;
|
2142
|
+
organizationId?: number | undefined;
|
2143
|
+
};
|
2144
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2145
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2146
|
+
}, void>;
|
2147
|
+
cancelInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
2148
|
+
_config: import("@trpc/server").RootConfig<{
|
2149
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2150
|
+
meta: object;
|
2151
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2152
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2153
|
+
}>;
|
2154
|
+
_meta: object;
|
2155
|
+
_ctx_out: {
|
2156
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2157
|
+
req: import("http").IncomingMessage;
|
2158
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2159
|
+
};
|
2160
|
+
_input_in: {
|
2161
|
+
authorization?: string | undefined;
|
2162
|
+
teamId: number;
|
2163
|
+
inviteId: number;
|
2164
|
+
};
|
2165
|
+
_input_out: {
|
2166
|
+
authorization?: string | undefined;
|
2167
|
+
teamId: number;
|
2168
|
+
inviteId: number;
|
2169
|
+
};
|
2170
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2171
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2172
|
+
}, void>;
|
2173
|
+
cancelInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
2174
|
+
_config: import("@trpc/server").RootConfig<{
|
2175
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2176
|
+
meta: object;
|
2177
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2178
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2179
|
+
}>;
|
2180
|
+
_meta: object;
|
2181
|
+
_ctx_out: {
|
2182
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2183
|
+
req: import("http").IncomingMessage;
|
2184
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2185
|
+
};
|
2186
|
+
_input_in: {
|
2187
|
+
authorization?: string | undefined;
|
2188
|
+
teamId: number;
|
2189
|
+
inviteId: number;
|
2190
|
+
};
|
2191
|
+
_input_out: {
|
2192
|
+
authorization?: string | undefined;
|
2193
|
+
teamId: number;
|
2194
|
+
inviteId: number;
|
2195
|
+
};
|
2196
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2197
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2198
|
+
}, void>;
|
2199
|
+
}>;
|
2200
|
+
transaction: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
2201
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2202
|
+
meta: object;
|
2203
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2204
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2205
|
+
}>, {
|
2206
|
+
list: import("@trpc/server").BuildProcedure<"query", {
|
2207
|
+
_config: import("@trpc/server").RootConfig<{
|
2208
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2209
|
+
meta: object;
|
2210
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2211
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2212
|
+
}>;
|
2213
|
+
_meta: object;
|
2214
|
+
_ctx_out: {
|
2215
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2216
|
+
req: import("http").IncomingMessage;
|
2217
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2218
|
+
};
|
2219
|
+
_input_in: {
|
2220
|
+
authorization?: string | undefined;
|
2221
|
+
limit: number;
|
2222
|
+
page: number;
|
2223
|
+
direction: "asc" | "desc";
|
2224
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
2225
|
+
search?: string | undefined;
|
2226
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
2227
|
+
orgWorkspaceId?: number | undefined;
|
2228
|
+
};
|
2229
|
+
_input_out: {
|
2230
|
+
authorization?: string | undefined;
|
2231
|
+
limit: number;
|
2232
|
+
page: number;
|
2233
|
+
direction: "asc" | "desc";
|
2234
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
2235
|
+
search?: string | undefined;
|
2236
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
2237
|
+
orgWorkspaceId?: number | undefined;
|
2238
|
+
};
|
2239
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2240
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2241
|
+
}, {
|
2242
|
+
items: import("../api-type/src/models/transaction").Transaction[];
|
2243
|
+
curPage: number;
|
2244
|
+
hasPrev: boolean;
|
2245
|
+
hasNext: boolean;
|
2246
|
+
}>;
|
2247
|
+
info: import("@trpc/server").BuildProcedure<"query", {
|
2248
|
+
_config: import("@trpc/server").RootConfig<{
|
2249
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2250
|
+
meta: object;
|
2251
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2252
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2253
|
+
}>;
|
2254
|
+
_meta: object;
|
2255
|
+
_ctx_out: {
|
2256
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2257
|
+
req: import("http").IncomingMessage;
|
2258
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2259
|
+
};
|
2260
|
+
_input_in: {
|
2261
|
+
authorization?: string | undefined;
|
2262
|
+
transactionId: number;
|
2263
|
+
};
|
2264
|
+
_input_out: {
|
2265
|
+
authorization?: string | undefined;
|
2266
|
+
transactionId: number;
|
2267
|
+
};
|
2268
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2269
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2270
|
+
}, {
|
2271
|
+
stripeTransfers: import("../api-type/src/models/stripe_transfer").StripeTransfer[];
|
2272
|
+
id: number;
|
2273
|
+
payerId: number;
|
2274
|
+
payer?: import("../api-type/src/models/member").Member;
|
2275
|
+
paymentMethod: import("../api-type/src/modules/transaction/transaction.schema").TRANSACTION_METHOD_ENUM;
|
2276
|
+
discountCodeId: number | null;
|
2277
|
+
discountCode?: import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode;
|
2278
|
+
documentAmount: number;
|
2279
|
+
discountedAmount: number;
|
2280
|
+
organizerFee: number;
|
2281
|
+
bantrFee: number;
|
2282
|
+
stripeFee: number;
|
2283
|
+
chargedAmount: number;
|
2284
|
+
paidAmount: number;
|
2285
|
+
transferAmount: number;
|
2286
|
+
refundedAmount: number;
|
2287
|
+
transferSent: boolean;
|
2288
|
+
currency: import("../api-type/src/constants").VALID_CURRENCY_CODES;
|
2289
|
+
status: import("../api-type/src/modules/transaction/transaction.schema").TRANSACTION_STATUS_ENUM;
|
2290
|
+
expiresAt: Date | null;
|
2291
|
+
lastStatusUpdateAt: Date | null;
|
2292
|
+
leaguePaymentId: number | null;
|
2293
|
+
leaguePayment?: import("../api-type/src/models/league_payment").LeaguePayment;
|
2294
|
+
league?: import("../api-type/src/models/league").League;
|
2295
|
+
pickupPaymentId: number | null;
|
2296
|
+
pickupPayment?: import("../api-type/src/models/pickup_payments").PickupPayment;
|
2297
|
+
pickup?: import("../api-type/src/models/pickup").Pickup;
|
2298
|
+
freeAgentPaymentId: number | null;
|
2299
|
+
freeAgentPayment?: import("../api-type/src/models/free_agent_payment").FreeAgentPayment;
|
2300
|
+
orgFreeAgent?: import("../api-type/src/models/organization_free_agent").OrgFreeAgent;
|
2301
|
+
organizationId: number;
|
2302
|
+
organization?: import("../api-type/src/models/organization").Organization;
|
2303
|
+
orgWorkspaceId: number | null;
|
2304
|
+
orgWorkspace?: import("../api-type/src/models/organization_workspace").OrgWorkspace;
|
2305
|
+
transactionEvents?: import("../api-type/src/models/transaction_event").TransactionEvent[];
|
2306
|
+
stripeTransactions?: import("../api-type/src/models/stripe_transaction").StripeTransaction[];
|
2307
|
+
updatedAt: Date;
|
2308
|
+
createdAt: Date;
|
2309
|
+
deletedAt: Date | null;
|
2310
|
+
QueryBuilderType: import("objection-js-soft-delete").SoftDeleteQueryBuilder<import("../api-type/src/models/transaction").Transaction, import("../api-type/src/models/transaction").Transaction[]> & import("objection").QueryBuilder<import("../api-type/src/models/transaction").Transaction, import("../api-type/src/models/transaction").Transaction[]>;
|
2311
|
+
$modelClass: import("objection").ModelClass<import("../api-type/src/models/transaction").Transaction>;
|
2312
|
+
}>;
|
2313
|
+
refund: import("@trpc/server").BuildProcedure<"mutation", {
|
2314
|
+
_config: import("@trpc/server").RootConfig<{
|
2315
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2316
|
+
meta: object;
|
2317
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2318
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2319
|
+
}>;
|
2320
|
+
_meta: object;
|
2321
|
+
_ctx_out: {
|
2322
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2323
|
+
req: import("http").IncomingMessage;
|
2324
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2325
|
+
};
|
2326
|
+
_input_in: {
|
2327
|
+
authorization?: string | undefined;
|
2328
|
+
transactionId: number;
|
2329
|
+
amount: number;
|
2330
|
+
};
|
2331
|
+
_input_out: {
|
2332
|
+
authorization?: string | undefined;
|
2333
|
+
transactionId: number;
|
2334
|
+
amount: number;
|
2335
|
+
};
|
2336
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2337
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2338
|
+
}, void>;
|
2339
|
+
export: import("@trpc/server").BuildProcedure<"mutation", {
|
2340
|
+
_config: import("@trpc/server").RootConfig<{
|
2341
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2342
|
+
meta: object;
|
2343
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2344
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2345
|
+
}>;
|
2346
|
+
_meta: object;
|
2347
|
+
_ctx_out: {
|
2348
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2349
|
+
req: import("http").IncomingMessage;
|
2350
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2351
|
+
};
|
2352
|
+
_input_in: {
|
2353
|
+
authorization?: string | undefined;
|
2354
|
+
limit: number;
|
2355
|
+
page: number;
|
2356
|
+
direction: "asc" | "desc";
|
2357
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
2358
|
+
search?: string | undefined;
|
2359
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
2360
|
+
orgWorkspaceId?: number | undefined;
|
2361
|
+
};
|
2362
|
+
_input_out: {
|
2363
|
+
authorization?: string | undefined;
|
2364
|
+
limit: number;
|
2365
|
+
page: number;
|
2366
|
+
direction: "asc" | "desc";
|
2367
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
2368
|
+
search?: string | undefined;
|
2369
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
2370
|
+
orgWorkspaceId?: number | undefined;
|
2371
|
+
};
|
2372
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2373
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2374
|
+
}, string>;
|
2375
|
+
}>;
|
2376
|
+
}, null, "">;
|
2377
|
+
createTRPCClientQuery: (options?: {
|
2378
|
+
useLocalUrl?: boolean;
|
2379
|
+
customUrl?: string;
|
2380
|
+
}) => {
|
2381
|
+
discountCode: {
|
2382
|
+
get: {
|
2383
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2384
|
+
_config: import("@trpc/server").RootConfig<{
|
2385
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2386
|
+
meta: object;
|
2387
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2388
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2389
|
+
}>;
|
2390
|
+
_meta: object;
|
2391
|
+
_ctx_out: {
|
2392
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2393
|
+
req: import("http").IncomingMessage;
|
2394
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2395
|
+
};
|
2396
|
+
_input_in: {
|
2397
|
+
authorization?: string | undefined;
|
2398
|
+
id: number;
|
2399
|
+
};
|
2400
|
+
_input_out: {
|
2401
|
+
authorization?: string | undefined;
|
2402
|
+
id: number;
|
2403
|
+
};
|
2404
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2405
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2406
|
+
}, import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode>>;
|
2407
|
+
};
|
2408
|
+
list: {
|
2409
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
2410
|
+
_config: import("@trpc/server").RootConfig<{
|
2411
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2412
|
+
meta: object;
|
2413
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2414
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2415
|
+
}>;
|
2416
|
+
_meta: object;
|
2417
|
+
_ctx_out: {
|
2418
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2419
|
+
req: import("http").IncomingMessage;
|
2420
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2421
|
+
};
|
2422
|
+
_input_in: {
|
2423
|
+
authorization?: string | undefined;
|
2424
|
+
limit: number;
|
2425
|
+
cursor: number;
|
2426
|
+
orgWorkspaceId?: number | null | undefined;
|
2427
|
+
code?: string | undefined;
|
2428
|
+
direction?: "asc" | "desc" | undefined;
|
2429
|
+
listExpired?: boolean | undefined;
|
2430
|
+
};
|
2431
|
+
_input_out: {
|
2432
|
+
authorization?: string | undefined;
|
2433
|
+
limit: number;
|
2434
|
+
direction: "asc" | "desc";
|
2435
|
+
cursor: number;
|
2436
|
+
listExpired: boolean;
|
2437
|
+
orgWorkspaceId?: number | null | undefined;
|
2438
|
+
code?: string | undefined;
|
2439
|
+
};
|
2440
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2441
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2442
|
+
}, {
|
2443
|
+
items: import("objection").Page<import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode>;
|
2444
|
+
nextCursor: number | undefined;
|
2445
|
+
}>>;
|
2446
|
+
};
|
2447
|
+
create: {
|
2448
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2449
|
+
_config: import("@trpc/server").RootConfig<{
|
2450
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2451
|
+
meta: object;
|
2452
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2453
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2454
|
+
}>;
|
2455
|
+
_meta: object;
|
2456
|
+
_ctx_out: {
|
2457
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2458
|
+
req: import("http").IncomingMessage;
|
2459
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2460
|
+
};
|
2461
|
+
_input_in: {
|
2462
|
+
authorization?: string | undefined;
|
2463
|
+
description: string;
|
2464
|
+
code: string;
|
2465
|
+
appliesWhen: "purchase";
|
2466
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
2467
|
+
amountType: "flat-rate" | "percentage";
|
2468
|
+
amountValue: number;
|
2469
|
+
validFrom: Date | null;
|
2470
|
+
validUntil: Date | null;
|
2471
|
+
orgWorkspaceId?: number | null | undefined;
|
2472
|
+
};
|
2473
|
+
_input_out: {
|
2474
|
+
authorization?: string | undefined;
|
2475
|
+
description: string;
|
2476
|
+
code: string;
|
2477
|
+
appliesWhen: "purchase";
|
2478
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
2479
|
+
amountType: "flat-rate" | "percentage";
|
2480
|
+
amountValue: number;
|
2481
|
+
validFrom: Date | null;
|
2482
|
+
validUntil: Date | null;
|
2483
|
+
orgWorkspaceId?: number | null | undefined;
|
2484
|
+
};
|
2485
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2486
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2487
|
+
}, {
|
2488
|
+
id: number;
|
2489
|
+
}>>;
|
2490
|
+
};
|
2491
|
+
update: {
|
2492
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2493
|
+
_config: import("@trpc/server").RootConfig<{
|
2494
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2495
|
+
meta: object;
|
2496
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2497
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2498
|
+
}>;
|
2499
|
+
_meta: object;
|
2500
|
+
_ctx_out: {
|
2501
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2502
|
+
req: import("http").IncomingMessage;
|
2503
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2504
|
+
};
|
2505
|
+
_input_in: {
|
2506
|
+
authorization?: string | undefined;
|
2507
|
+
id: number;
|
2508
|
+
description: string;
|
2509
|
+
code: string;
|
2510
|
+
appliesWhen: "purchase";
|
2511
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
2512
|
+
amountType: "flat-rate" | "percentage";
|
2513
|
+
amountValue: number;
|
2514
|
+
validFrom: Date | null;
|
2515
|
+
validUntil: Date | null;
|
2516
|
+
usageLimit: number | null;
|
2517
|
+
orgWorkspaceId?: number | null | undefined;
|
2518
|
+
};
|
2519
|
+
_input_out: {
|
2520
|
+
authorization?: string | undefined;
|
2521
|
+
id: number;
|
2522
|
+
description: string;
|
2523
|
+
code: string;
|
2524
|
+
appliesWhen: "purchase";
|
2525
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
2526
|
+
amountType: "flat-rate" | "percentage";
|
2527
|
+
amountValue: number;
|
2528
|
+
validFrom: Date | null;
|
2529
|
+
validUntil: Date | null;
|
2530
|
+
usageLimit: number | null;
|
2531
|
+
orgWorkspaceId?: number | null | undefined;
|
2532
|
+
};
|
2533
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2534
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2535
|
+
}, void>>;
|
2536
|
+
};
|
2537
|
+
delete: {
|
2538
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2539
|
+
_config: import("@trpc/server").RootConfig<{
|
2540
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2541
|
+
meta: object;
|
2542
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2543
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2544
|
+
}>;
|
2545
|
+
_meta: object;
|
2546
|
+
_ctx_out: {
|
2547
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2548
|
+
req: import("http").IncomingMessage;
|
2549
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2550
|
+
};
|
2551
|
+
_input_in: {
|
2552
|
+
authorization?: string | undefined;
|
2553
|
+
id: number;
|
2554
|
+
};
|
2555
|
+
_input_out: {
|
2556
|
+
authorization?: string | undefined;
|
2557
|
+
id: number;
|
2558
|
+
};
|
2559
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2560
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2561
|
+
}, void>>;
|
2562
|
+
};
|
2563
|
+
check: {
|
2564
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2565
|
+
_config: import("@trpc/server").RootConfig<{
|
2566
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2567
|
+
meta: object;
|
2568
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2569
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2570
|
+
}>;
|
2571
|
+
_meta: object;
|
2572
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2573
|
+
_input_in: {
|
2574
|
+
id: number;
|
2575
|
+
appliesWhen: "purchase";
|
2576
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
2577
|
+
productValue: number;
|
2578
|
+
code?: string | undefined;
|
2579
|
+
};
|
2580
|
+
_input_out: {
|
2581
|
+
id: number;
|
2582
|
+
appliesWhen: "purchase";
|
2583
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
2584
|
+
productValue: number;
|
2585
|
+
code?: string | undefined;
|
2586
|
+
};
|
2587
|
+
_output_in: {
|
2588
|
+
description: string;
|
2589
|
+
code: string;
|
2590
|
+
amountType: "flat-rate" | "percentage";
|
2591
|
+
amountValue: number;
|
2592
|
+
reducedValue: number;
|
2593
|
+
newValue: number;
|
2594
|
+
};
|
2595
|
+
_output_out: {
|
2596
|
+
description: string;
|
2597
|
+
code: string;
|
2598
|
+
amountType: "flat-rate" | "percentage";
|
2599
|
+
amountValue: number;
|
2600
|
+
reducedValue: number;
|
2601
|
+
newValue: number;
|
2602
|
+
};
|
2603
|
+
}, unknown>>;
|
2604
|
+
};
|
2605
|
+
};
|
2606
|
+
freeAgentPayments: {
|
2607
|
+
registrationCheckout: {
|
2608
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2609
|
+
_config: import("@trpc/server").RootConfig<{
|
2610
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2611
|
+
meta: object;
|
2612
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2613
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2614
|
+
}>;
|
2615
|
+
_meta: object;
|
2616
|
+
_ctx_out: {
|
2617
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2618
|
+
req: import("http").IncomingMessage;
|
2619
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2620
|
+
};
|
2621
|
+
_input_in: {
|
2622
|
+
authorization?: string | undefined;
|
2623
|
+
description: string;
|
2624
|
+
freeAgentId: number;
|
2625
|
+
leagueId?: number | undefined;
|
2626
|
+
code?: string | undefined;
|
2627
|
+
paymentMode?: "session" | "intent" | undefined;
|
2628
|
+
cancelPath?: string | undefined;
|
2629
|
+
};
|
2630
|
+
_input_out: {
|
2631
|
+
authorization?: string | undefined;
|
2632
|
+
description: string;
|
2633
|
+
paymentMode: "session" | "intent";
|
2634
|
+
freeAgentId: number;
|
2635
|
+
leagueId?: number | undefined;
|
2636
|
+
code?: string | undefined;
|
2637
|
+
cancelPath?: string | undefined;
|
2638
|
+
};
|
2639
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2640
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2641
|
+
}, {
|
2642
|
+
ephemeralKey: string | undefined;
|
2643
|
+
paymentIntentClientSecret: string;
|
2644
|
+
paymentIntentId: string;
|
2645
|
+
customerId: string;
|
2646
|
+
orgPublishableKey: string | undefined;
|
2647
|
+
orgStripeAccountId: string;
|
2648
|
+
paymentIntent: {
|
2649
|
+
intent: import("stripe").Stripe.Response<import("stripe").Stripe.PaymentIntent>;
|
2650
|
+
discountAndFee: {
|
2651
|
+
discountApplied: number;
|
2652
|
+
discountedAmount: number;
|
2653
|
+
priceAmount: number;
|
2654
|
+
otherTaxLabel: string;
|
2655
|
+
otherTaxPercent: number;
|
2656
|
+
otherTax: number;
|
2657
|
+
bantrTax: number;
|
2658
|
+
stripeTax: number;
|
2659
|
+
totalTax: number;
|
2660
|
+
totalWithTax: number;
|
2661
|
+
transferAmount: number;
|
2662
|
+
};
|
2663
|
+
};
|
2664
|
+
} | {
|
2665
|
+
redirectUrl: string;
|
2666
|
+
}>>;
|
2667
|
+
};
|
2668
|
+
};
|
2669
|
+
leaguePayments: {
|
2670
|
+
trackUsersAndPayments: {
|
2671
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
2672
|
+
_config: import("@trpc/server").RootConfig<{
|
2673
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2674
|
+
meta: object;
|
2675
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2676
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2677
|
+
}>;
|
2678
|
+
_meta: object;
|
2679
|
+
_ctx_out: {
|
2680
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2681
|
+
req: import("http").IncomingMessage;
|
2682
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2683
|
+
};
|
2684
|
+
_input_in: {
|
2685
|
+
authorization?: string | undefined;
|
2686
|
+
teamId: number;
|
2687
|
+
leagueId: number;
|
2688
|
+
};
|
2689
|
+
_input_out: {
|
2690
|
+
authorization?: string | undefined;
|
2691
|
+
teamId: number;
|
2692
|
+
leagueId: number;
|
2693
|
+
};
|
2694
|
+
_output_in: {
|
2695
|
+
id: number;
|
2696
|
+
deletedAt: Date | null;
|
2697
|
+
member: {
|
2698
|
+
id: number;
|
2699
|
+
firstName: string | null;
|
2700
|
+
lastName: string | null;
|
2701
|
+
email: string;
|
2702
|
+
};
|
2703
|
+
memberId: number;
|
2704
|
+
totalPaid: number;
|
2705
|
+
payments: {
|
2706
|
+
id: number;
|
2707
|
+
createdAt: string | Date;
|
2708
|
+
payerId: number;
|
2709
|
+
amountApplied: number | null;
|
2710
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
2711
|
+
price: number;
|
2712
|
+
}[];
|
2713
|
+
}[];
|
2714
|
+
_output_out: {
|
2715
|
+
id: number;
|
2716
|
+
deletedAt: Date | null;
|
2717
|
+
member: {
|
2718
|
+
id: number;
|
2719
|
+
firstName: string | null;
|
2720
|
+
lastName: string | null;
|
2721
|
+
email: string;
|
2722
|
+
};
|
2723
|
+
memberId: number;
|
2724
|
+
totalPaid: number;
|
2725
|
+
payments: {
|
2726
|
+
id: number;
|
2727
|
+
createdAt: string | Date;
|
2728
|
+
payerId: number;
|
2729
|
+
amountApplied: number | null;
|
2730
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
2731
|
+
price: number;
|
2732
|
+
}[];
|
2733
|
+
}[];
|
2734
|
+
}, unknown>>;
|
2735
|
+
};
|
2736
|
+
insertOfflinePayment: {
|
1617
2737
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1618
2738
|
_config: import("@trpc/server").RootConfig<{
|
1619
2739
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -1623,24 +2743,30 @@ export declare const BantrSdk: {
|
|
1623
2743
|
}>;
|
1624
2744
|
_meta: object;
|
1625
2745
|
_ctx_out: {
|
2746
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1626
2747
|
req: import("http").IncomingMessage;
|
1627
2748
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1628
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1629
2749
|
};
|
1630
2750
|
_input_in: {
|
1631
2751
|
authorization?: string | undefined;
|
1632
|
-
|
2752
|
+
leagueId: number;
|
2753
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
2754
|
+
price: number;
|
2755
|
+
teamRosterId: number;
|
1633
2756
|
};
|
1634
2757
|
_input_out: {
|
1635
2758
|
authorization?: string | undefined;
|
1636
|
-
|
2759
|
+
leagueId: number;
|
2760
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
2761
|
+
price: number;
|
2762
|
+
teamRosterId: number;
|
1637
2763
|
};
|
1638
2764
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1639
2765
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1640
|
-
},
|
2766
|
+
}, null>>;
|
1641
2767
|
};
|
1642
|
-
|
1643
|
-
|
2768
|
+
updateOfflinePayment: {
|
2769
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1644
2770
|
_config: import("@trpc/server").RootConfig<{
|
1645
2771
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1646
2772
|
meta: object;
|
@@ -1649,36 +2775,29 @@ export declare const BantrSdk: {
|
|
1649
2775
|
}>;
|
1650
2776
|
_meta: object;
|
1651
2777
|
_ctx_out: {
|
2778
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1652
2779
|
req: import("http").IncomingMessage;
|
1653
2780
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1654
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1655
2781
|
};
|
1656
2782
|
_input_in: {
|
1657
2783
|
authorization?: string | undefined;
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
direction?: "asc" | "desc" | undefined;
|
1663
|
-
listExpired?: boolean | undefined;
|
2784
|
+
id: number;
|
2785
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
2786
|
+
price: number;
|
2787
|
+
teamRosterId: number;
|
1664
2788
|
};
|
1665
2789
|
_input_out: {
|
1666
2790
|
authorization?: string | undefined;
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
code?: string | undefined;
|
1672
|
-
orgWorkspaceId?: number | null | undefined;
|
2791
|
+
id: number;
|
2792
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
2793
|
+
price: number;
|
2794
|
+
teamRosterId: number;
|
1673
2795
|
};
|
1674
2796
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1675
2797
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1676
|
-
},
|
1677
|
-
items: import("objection").Page<import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode>;
|
1678
|
-
nextCursor: number | undefined;
|
1679
|
-
}>>;
|
2798
|
+
}, null>>;
|
1680
2799
|
};
|
1681
|
-
|
2800
|
+
deleteOfflinePayment: {
|
1682
2801
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1683
2802
|
_config: import("@trpc/server").RootConfig<{
|
1684
2803
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -1688,41 +2807,23 @@ export declare const BantrSdk: {
|
|
1688
2807
|
}>;
|
1689
2808
|
_meta: object;
|
1690
2809
|
_ctx_out: {
|
2810
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1691
2811
|
req: import("http").IncomingMessage;
|
1692
2812
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1693
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1694
2813
|
};
|
1695
2814
|
_input_in: {
|
1696
2815
|
authorization?: string | undefined;
|
1697
|
-
|
1698
|
-
description: string;
|
1699
|
-
appliesWhen: "purchase";
|
1700
|
-
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1701
|
-
amountType: "flat-rate" | "percentage";
|
1702
|
-
amountValue: number;
|
1703
|
-
validFrom: Date | null;
|
1704
|
-
validUntil: Date | null;
|
1705
|
-
orgWorkspaceId?: number | null | undefined;
|
2816
|
+
id: number;
|
1706
2817
|
};
|
1707
2818
|
_input_out: {
|
1708
2819
|
authorization?: string | undefined;
|
1709
|
-
|
1710
|
-
description: string;
|
1711
|
-
appliesWhen: "purchase";
|
1712
|
-
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1713
|
-
amountType: "flat-rate" | "percentage";
|
1714
|
-
amountValue: number;
|
1715
|
-
validFrom: Date | null;
|
1716
|
-
validUntil: Date | null;
|
1717
|
-
orgWorkspaceId?: number | null | undefined;
|
2820
|
+
id: number;
|
1718
2821
|
};
|
1719
2822
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1720
2823
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1721
|
-
},
|
1722
|
-
id: number;
|
1723
|
-
}>>;
|
2824
|
+
}, null>>;
|
1724
2825
|
};
|
1725
|
-
|
2826
|
+
registrationCheckout: {
|
1726
2827
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1727
2828
|
_config: import("@trpc/server").RootConfig<{
|
1728
2829
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -1732,43 +2833,37 @@ export declare const BantrSdk: {
|
|
1732
2833
|
}>;
|
1733
2834
|
_meta: object;
|
1734
2835
|
_ctx_out: {
|
2836
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1735
2837
|
req: import("http").IncomingMessage;
|
1736
2838
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1737
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1738
2839
|
};
|
1739
2840
|
_input_in: {
|
1740
2841
|
authorization?: string | undefined;
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
amountValue: number;
|
1748
|
-
validFrom: Date | null;
|
1749
|
-
validUntil: Date | null;
|
1750
|
-
usageLimit: number | null;
|
1751
|
-
orgWorkspaceId?: number | null | undefined;
|
2842
|
+
teamId: number;
|
2843
|
+
leagueId: number;
|
2844
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
2845
|
+
code?: string | undefined;
|
2846
|
+
paymentMode?: "session" | "intent" | undefined;
|
2847
|
+
paymentAmount?: number | undefined;
|
1752
2848
|
};
|
1753
2849
|
_input_out: {
|
1754
2850
|
authorization?: string | undefined;
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
amountValue: number;
|
1762
|
-
validFrom: Date | null;
|
1763
|
-
validUntil: Date | null;
|
1764
|
-
usageLimit: number | null;
|
1765
|
-
orgWorkspaceId?: number | null | undefined;
|
2851
|
+
teamId: number;
|
2852
|
+
leagueId: number;
|
2853
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
2854
|
+
paymentMode: "session" | "intent";
|
2855
|
+
code?: string | undefined;
|
2856
|
+
paymentAmount?: number | undefined;
|
1766
2857
|
};
|
1767
2858
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1768
2859
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1769
|
-
},
|
2860
|
+
}, {
|
2861
|
+
eventName: string;
|
2862
|
+
}>>;
|
1770
2863
|
};
|
1771
|
-
|
2864
|
+
};
|
2865
|
+
oauth: {
|
2866
|
+
googleAuth: {
|
1772
2867
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1773
2868
|
_config: import("@trpc/server").RootConfig<{
|
1774
2869
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -1776,25 +2871,31 @@ export declare const BantrSdk: {
|
|
1776
2871
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1777
2872
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1778
2873
|
}>;
|
2874
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2875
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
2876
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
2877
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2878
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1779
2879
|
_meta: object;
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
2880
|
+
}, string>>;
|
2881
|
+
};
|
2882
|
+
googleCallback: {
|
2883
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
2884
|
+
_config: import("@trpc/server").RootConfig<{
|
2885
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2886
|
+
meta: object;
|
2887
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2888
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2889
|
+
}>;
|
2890
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2891
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
2892
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
1793
2893
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1794
2894
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2895
|
+
_meta: object;
|
1795
2896
|
}, void>>;
|
1796
2897
|
};
|
1797
|
-
|
2898
|
+
googleMobileCallback: {
|
1798
2899
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1799
2900
|
_config: import("@trpc/server").RootConfig<{
|
1800
2901
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -1805,40 +2906,56 @@ export declare const BantrSdk: {
|
|
1805
2906
|
_meta: object;
|
1806
2907
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1807
2908
|
_input_in: {
|
1808
|
-
id: number;
|
1809
|
-
appliesWhen: "purchase";
|
1810
|
-
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1811
|
-
productValue: number;
|
1812
|
-
code?: string | undefined;
|
1813
|
-
};
|
1814
|
-
_input_out: {
|
1815
|
-
id: number;
|
1816
|
-
appliesWhen: "purchase";
|
1817
|
-
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1818
|
-
productValue: number;
|
1819
|
-
code?: string | undefined;
|
1820
|
-
};
|
1821
|
-
_output_in: {
|
1822
2909
|
code: string;
|
1823
|
-
|
1824
|
-
amountType: "flat-rate" | "percentage";
|
1825
|
-
amountValue: number;
|
1826
|
-
reducedValue: number;
|
1827
|
-
newValue: number;
|
2910
|
+
idToken?: string | undefined;
|
1828
2911
|
};
|
1829
|
-
|
2912
|
+
_input_out: {
|
1830
2913
|
code: string;
|
1831
|
-
|
1832
|
-
amountType: "flat-rate" | "percentage";
|
1833
|
-
amountValue: number;
|
1834
|
-
reducedValue: number;
|
1835
|
-
newValue: number;
|
2914
|
+
idToken?: string | undefined;
|
1836
2915
|
};
|
1837
|
-
|
2916
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2917
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2918
|
+
}, {
|
2919
|
+
accessToken: string;
|
2920
|
+
refreshToken: string;
|
2921
|
+
accountStatus: string;
|
2922
|
+
redirectTeamId?: number | null;
|
2923
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
2924
|
+
memberId: number;
|
2925
|
+
bio: string | null;
|
2926
|
+
city?: string;
|
2927
|
+
street?: string;
|
2928
|
+
state?: string;
|
2929
|
+
avatar: string | null;
|
2930
|
+
teams: import("../api-type/src/models/team").Team[];
|
2931
|
+
favoriteTeam: number | undefined | null;
|
2932
|
+
zip: string | undefined;
|
2933
|
+
phoneNumber: string | null;
|
2934
|
+
gender?: string;
|
2935
|
+
birthday: string | null;
|
2936
|
+
location: string | null;
|
2937
|
+
email: string;
|
2938
|
+
firstName: string | null;
|
2939
|
+
lastName: string | null;
|
2940
|
+
}>>;
|
2941
|
+
};
|
2942
|
+
appleAuth: {
|
2943
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2944
|
+
_config: import("@trpc/server").RootConfig<{
|
2945
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2946
|
+
meta: object;
|
2947
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2948
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2949
|
+
}>;
|
2950
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2951
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
2952
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
2953
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2954
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2955
|
+
_meta: object;
|
2956
|
+
}, string>>;
|
1838
2957
|
};
|
1839
|
-
|
1840
|
-
freeAgentPayments: {
|
1841
|
-
registrationCheckout: {
|
2958
|
+
appleCallback: {
|
1842
2959
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1843
2960
|
_config: import("@trpc/server").RootConfig<{
|
1844
2961
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -1847,46 +2964,19 @@ export declare const BantrSdk: {
|
|
1847
2964
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1848
2965
|
}>;
|
1849
2966
|
_meta: object;
|
1850
|
-
_ctx_out:
|
1851
|
-
req: import("http").IncomingMessage;
|
1852
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1853
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1854
|
-
};
|
2967
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1855
2968
|
_input_in: {
|
1856
|
-
|
1857
|
-
description: string;
|
1858
|
-
freeAgentId: number;
|
1859
|
-
code?: string | undefined;
|
1860
|
-
leagueId?: number | undefined;
|
1861
|
-
paymentMode?: "session" | "intent" | undefined;
|
1862
|
-
cancelPath?: string | undefined;
|
2969
|
+
code: string;
|
1863
2970
|
};
|
1864
2971
|
_input_out: {
|
1865
|
-
|
1866
|
-
description: string;
|
1867
|
-
freeAgentId: number;
|
1868
|
-
paymentMode: "session" | "intent";
|
1869
|
-
code?: string | undefined;
|
1870
|
-
leagueId?: number | undefined;
|
1871
|
-
cancelPath?: string | undefined;
|
2972
|
+
code: string;
|
1872
2973
|
};
|
1873
2974
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1874
2975
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1875
|
-
},
|
1876
|
-
ephemeralKey: string | undefined;
|
1877
|
-
paymentIntentClientSecret: string;
|
1878
|
-
paymentIntentId: string;
|
1879
|
-
customerId: string;
|
1880
|
-
orgPublishableKey: string | undefined;
|
1881
|
-
orgStripeAccountId: string;
|
1882
|
-
} | {
|
1883
|
-
redirectUrl: string;
|
1884
|
-
}>>;
|
2976
|
+
}, void>>;
|
1885
2977
|
};
|
1886
|
-
|
1887
|
-
|
1888
|
-
trackUsersAndPayments: {
|
1889
|
-
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
2978
|
+
appleMobileCallback: {
|
2979
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1890
2980
|
_config: import("@trpc/server").RootConfig<{
|
1891
2981
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1892
2982
|
meta: object;
|
@@ -1894,64 +2984,40 @@ export declare const BantrSdk: {
|
|
1894
2984
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1895
2985
|
}>;
|
1896
2986
|
_meta: object;
|
1897
|
-
_ctx_out:
|
1898
|
-
req: import("http").IncomingMessage;
|
1899
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1900
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1901
|
-
};
|
2987
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1902
2988
|
_input_in: {
|
1903
|
-
|
1904
|
-
leagueId: number;
|
1905
|
-
teamId: number;
|
2989
|
+
idToken: string;
|
1906
2990
|
};
|
1907
2991
|
_input_out: {
|
1908
|
-
|
1909
|
-
leagueId: number;
|
1910
|
-
teamId: number;
|
2992
|
+
idToken: string;
|
1911
2993
|
};
|
1912
|
-
_output_in:
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
member: {
|
1938
|
-
id: number;
|
1939
|
-
email: string;
|
1940
|
-
firstName: string | null;
|
1941
|
-
lastName: string | null;
|
1942
|
-
};
|
1943
|
-
payments: {
|
1944
|
-
id: number;
|
1945
|
-
createdAt: string | Date;
|
1946
|
-
price: number;
|
1947
|
-
payerId: number;
|
1948
|
-
amountApplied: number | null;
|
1949
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1950
|
-
}[];
|
1951
|
-
}[];
|
1952
|
-
}, unknown>>;
|
2994
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2995
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2996
|
+
}, {
|
2997
|
+
accessToken: string;
|
2998
|
+
refreshToken: string;
|
2999
|
+
accountStatus: string;
|
3000
|
+
redirectTeamId?: number | null;
|
3001
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
3002
|
+
memberId: number;
|
3003
|
+
bio: string | null;
|
3004
|
+
city?: string;
|
3005
|
+
street?: string;
|
3006
|
+
state?: string;
|
3007
|
+
avatar: string | null;
|
3008
|
+
teams: import("../api-type/src/models/team").Team[];
|
3009
|
+
favoriteTeam: number | undefined | null;
|
3010
|
+
zip: string | undefined;
|
3011
|
+
phoneNumber: string | null;
|
3012
|
+
gender?: string;
|
3013
|
+
birthday: string | null;
|
3014
|
+
location: string | null;
|
3015
|
+
email: string;
|
3016
|
+
firstName: string | null;
|
3017
|
+
lastName: string | null;
|
3018
|
+
}>>;
|
1953
3019
|
};
|
1954
|
-
|
3020
|
+
revokeAccessToken: {
|
1955
3021
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1956
3022
|
_config: import("@trpc/server").RootConfig<{
|
1957
3023
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -1961,30 +3027,26 @@ export declare const BantrSdk: {
|
|
1961
3027
|
}>;
|
1962
3028
|
_meta: object;
|
1963
3029
|
_ctx_out: {
|
3030
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1964
3031
|
req: import("http").IncomingMessage;
|
1965
3032
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1966
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1967
3033
|
};
|
1968
3034
|
_input_in: {
|
1969
3035
|
authorization?: string | undefined;
|
1970
|
-
|
1971
|
-
price: number;
|
1972
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1973
|
-
teamRosterId: number;
|
3036
|
+
provider: "google" | "apple";
|
1974
3037
|
};
|
1975
3038
|
_input_out: {
|
1976
3039
|
authorization?: string | undefined;
|
1977
|
-
|
1978
|
-
price: number;
|
1979
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1980
|
-
teamRosterId: number;
|
3040
|
+
provider: "google" | "apple";
|
1981
3041
|
};
|
1982
3042
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1983
3043
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1984
|
-
},
|
3044
|
+
}, import("../api-type/src/types/auth").MemberAuthResponse>>;
|
1985
3045
|
};
|
1986
|
-
|
1987
|
-
|
3046
|
+
};
|
3047
|
+
organization: {
|
3048
|
+
fetchStripeFee: {
|
3049
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
1988
3050
|
_config: import("@trpc/server").RootConfig<{
|
1989
3051
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1990
3052
|
meta: object;
|
@@ -1993,29 +3055,31 @@ export declare const BantrSdk: {
|
|
1993
3055
|
}>;
|
1994
3056
|
_meta: object;
|
1995
3057
|
_ctx_out: {
|
3058
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1996
3059
|
req: import("http").IncomingMessage;
|
1997
3060
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1998
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
1999
3061
|
};
|
2000
3062
|
_input_in: {
|
2001
3063
|
authorization?: string | undefined;
|
2002
|
-
|
2003
|
-
price: number;
|
2004
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
2005
|
-
teamRosterId: number;
|
3064
|
+
workspaceId?: number | undefined;
|
2006
3065
|
};
|
2007
3066
|
_input_out: {
|
2008
3067
|
authorization?: string | undefined;
|
2009
|
-
|
2010
|
-
price: number;
|
2011
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
2012
|
-
teamRosterId: number;
|
3068
|
+
workspaceId?: number | undefined;
|
2013
3069
|
};
|
2014
|
-
_output_in:
|
2015
|
-
|
2016
|
-
|
3070
|
+
_output_in: {
|
3071
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
3072
|
+
extraTechnologyFeePercent: number;
|
3073
|
+
extraTechnologyFeeLabel: string | null;
|
3074
|
+
};
|
3075
|
+
_output_out: {
|
3076
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
3077
|
+
extraTechnologyFeePercent: number;
|
3078
|
+
extraTechnologyFeeLabel: string | null;
|
3079
|
+
};
|
3080
|
+
}, unknown>>;
|
2017
3081
|
};
|
2018
|
-
|
3082
|
+
updateStripeFee: {
|
2019
3083
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2020
3084
|
_config: import("@trpc/server").RootConfig<{
|
2021
3085
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -2025,22 +3089,30 @@ export declare const BantrSdk: {
|
|
2025
3089
|
}>;
|
2026
3090
|
_meta: object;
|
2027
3091
|
_ctx_out: {
|
3092
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2028
3093
|
req: import("http").IncomingMessage;
|
2029
3094
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2030
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
2031
3095
|
};
|
2032
3096
|
_input_in: {
|
2033
3097
|
authorization?: string | undefined;
|
2034
|
-
|
3098
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
3099
|
+
extraTechnologyFeePercent: number;
|
3100
|
+
extraTechnologyFeeLabel: string | null;
|
3101
|
+
workspaceId?: number | undefined;
|
2035
3102
|
};
|
2036
3103
|
_input_out: {
|
2037
3104
|
authorization?: string | undefined;
|
2038
|
-
|
3105
|
+
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
3106
|
+
extraTechnologyFeePercent: number;
|
3107
|
+
extraTechnologyFeeLabel: string | null;
|
3108
|
+
workspaceId?: number | undefined;
|
2039
3109
|
};
|
2040
3110
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2041
3111
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2042
|
-
},
|
3112
|
+
}, void>>;
|
2043
3113
|
};
|
3114
|
+
};
|
3115
|
+
pickupPayments: {
|
2044
3116
|
registrationCheckout: {
|
2045
3117
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2046
3118
|
_config: import("@trpc/server").RootConfig<{
|
@@ -2051,27 +3123,25 @@ export declare const BantrSdk: {
|
|
2051
3123
|
}>;
|
2052
3124
|
_meta: object;
|
2053
3125
|
_ctx_out: {
|
3126
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2054
3127
|
req: import("http").IncomingMessage;
|
2055
3128
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2056
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
2057
3129
|
};
|
2058
3130
|
_input_in: {
|
2059
3131
|
authorization?: string | undefined;
|
2060
|
-
|
2061
|
-
|
2062
|
-
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
3132
|
+
memberId: number;
|
3133
|
+
pickupId: number;
|
2063
3134
|
code?: string | undefined;
|
2064
3135
|
paymentMode?: "session" | "intent" | undefined;
|
2065
|
-
|
3136
|
+
cancelPath?: string | undefined;
|
2066
3137
|
};
|
2067
3138
|
_input_out: {
|
2068
3139
|
authorization?: string | undefined;
|
2069
|
-
|
3140
|
+
memberId: number;
|
2070
3141
|
paymentMode: "session" | "intent";
|
2071
|
-
|
2072
|
-
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
3142
|
+
pickupId: number;
|
2073
3143
|
code?: string | undefined;
|
2074
|
-
|
3144
|
+
cancelPath?: string | undefined;
|
2075
3145
|
};
|
2076
3146
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2077
3147
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -2080,8 +3150,8 @@ export declare const BantrSdk: {
|
|
2080
3150
|
}>>;
|
2081
3151
|
};
|
2082
3152
|
};
|
2083
|
-
|
2084
|
-
|
3153
|
+
product: {
|
3154
|
+
info: {
|
2085
3155
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2086
3156
|
_config: import("@trpc/server").RootConfig<{
|
2087
3157
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -2089,15 +3159,47 @@ export declare const BantrSdk: {
|
|
2089
3159
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
2090
3160
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
2091
3161
|
}>;
|
2092
|
-
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2093
|
-
_input_in: typeof import("@trpc/server").unsetMarker;
|
2094
|
-
_input_out: typeof import("@trpc/server").unsetMarker;
|
2095
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
2096
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
2097
3162
|
_meta: object;
|
2098
|
-
|
3163
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
3164
|
+
_input_in: {
|
3165
|
+
id: number;
|
3166
|
+
appliesWhen: "purchase";
|
3167
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
3168
|
+
productValue: number;
|
3169
|
+
code?: string | undefined;
|
3170
|
+
};
|
3171
|
+
_input_out: {
|
3172
|
+
id: number;
|
3173
|
+
appliesWhen: "purchase";
|
3174
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
3175
|
+
productValue: number;
|
3176
|
+
code?: string | undefined;
|
3177
|
+
};
|
3178
|
+
_output_in: {
|
3179
|
+
discountApplied: number;
|
3180
|
+
totalWithTax: number;
|
3181
|
+
totalTax: number;
|
3182
|
+
otherTaxLabel: string;
|
3183
|
+
otherTax: number;
|
3184
|
+
otherTaxPercent: number;
|
3185
|
+
description?: string | undefined;
|
3186
|
+
code?: string | undefined;
|
3187
|
+
};
|
3188
|
+
_output_out: {
|
3189
|
+
discountApplied: number;
|
3190
|
+
totalWithTax: number;
|
3191
|
+
totalTax: number;
|
3192
|
+
otherTaxLabel: string;
|
3193
|
+
otherTax: number;
|
3194
|
+
otherTaxPercent: number;
|
3195
|
+
description?: string | undefined;
|
3196
|
+
code?: string | undefined;
|
3197
|
+
};
|
3198
|
+
}, unknown>>;
|
2099
3199
|
};
|
2100
|
-
|
3200
|
+
};
|
3201
|
+
team: {
|
3202
|
+
getInvitedMembers: {
|
2101
3203
|
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
2102
3204
|
_config: import("@trpc/server").RootConfig<{
|
2103
3205
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -2105,16 +3207,29 @@ export declare const BantrSdk: {
|
|
2105
3207
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
2106
3208
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
2107
3209
|
}>;
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
3210
|
+
_meta: object;
|
3211
|
+
_ctx_out: {
|
3212
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
3213
|
+
req: import("http").IncomingMessage;
|
3214
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
3215
|
+
};
|
3216
|
+
_input_in: {
|
3217
|
+
authorization?: string | undefined;
|
3218
|
+
teamId: number;
|
3219
|
+
};
|
3220
|
+
_input_out: {
|
3221
|
+
authorization?: string | undefined;
|
3222
|
+
teamId: number;
|
3223
|
+
};
|
2111
3224
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2112
3225
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2113
|
-
|
2114
|
-
|
3226
|
+
}, (import("../api-type/src/models/team_roster").TeamRoster & {
|
3227
|
+
member: Pick<import("../api-type/src/models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
3228
|
+
invites: Pick<import("../api-type/src/models/invite").Invite, "isActive">[];
|
3229
|
+
})[]>>;
|
2115
3230
|
};
|
2116
|
-
|
2117
|
-
|
3231
|
+
getInvitedByOrganization: {
|
3232
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
2118
3233
|
_config: import("@trpc/server").RootConfig<{
|
2119
3234
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2120
3235
|
meta: object;
|
@@ -2122,42 +3237,29 @@ export declare const BantrSdk: {
|
|
2122
3237
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
2123
3238
|
}>;
|
2124
3239
|
_meta: object;
|
2125
|
-
_ctx_out:
|
3240
|
+
_ctx_out: {
|
3241
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
3242
|
+
req: import("http").IncomingMessage;
|
3243
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
3244
|
+
};
|
2126
3245
|
_input_in: {
|
2127
|
-
|
2128
|
-
|
3246
|
+
authorization?: string | undefined;
|
3247
|
+
teamId: number;
|
3248
|
+
organizationId: number;
|
2129
3249
|
};
|
2130
3250
|
_input_out: {
|
2131
|
-
|
2132
|
-
|
3251
|
+
authorization?: string | undefined;
|
3252
|
+
teamId: number;
|
3253
|
+
organizationId: number;
|
2133
3254
|
};
|
2134
3255
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2135
3256
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2136
|
-
}, {
|
2137
|
-
|
2138
|
-
|
2139
|
-
|
2140
|
-
redirectTeamId?: number | null;
|
2141
|
-
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
2142
|
-
memberId: number;
|
2143
|
-
bio: string | null;
|
2144
|
-
city?: string;
|
2145
|
-
street?: string;
|
2146
|
-
state?: string;
|
2147
|
-
avatar: string | null;
|
2148
|
-
teams: import("../api-type/src/models/team").Team[];
|
2149
|
-
favoriteTeam: number | undefined | null;
|
2150
|
-
zip: string | undefined;
|
2151
|
-
phoneNumber: string | null;
|
2152
|
-
gender?: string;
|
2153
|
-
birthday: string | null;
|
2154
|
-
location: string | null;
|
2155
|
-
email: string;
|
2156
|
-
firstName: string | null;
|
2157
|
-
lastName: string | null;
|
2158
|
-
}>>;
|
3257
|
+
}, (import("../api-type/src/models/team_roster").TeamRoster & {
|
3258
|
+
member: Pick<import("../api-type/src/models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
3259
|
+
invites: Pick<import("../api-type/src/models/invite").Invite, "isActive">[];
|
3260
|
+
})[]>>;
|
2159
3261
|
};
|
2160
|
-
|
3262
|
+
createInviteByCaptain: {
|
2161
3263
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2162
3264
|
_config: import("@trpc/server").RootConfig<{
|
2163
3265
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -2165,15 +3267,39 @@ export declare const BantrSdk: {
|
|
2165
3267
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
2166
3268
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
2167
3269
|
}>;
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
3270
|
+
_meta: object;
|
3271
|
+
_ctx_out: {
|
3272
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
3273
|
+
req: import("http").IncomingMessage;
|
3274
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
3275
|
+
};
|
3276
|
+
_input_in: {
|
3277
|
+
authorization?: string | undefined;
|
3278
|
+
teamId: number;
|
3279
|
+
invites: {
|
3280
|
+
firstName: string;
|
3281
|
+
lastName: string;
|
3282
|
+
email: string;
|
3283
|
+
}[];
|
3284
|
+
leagueId?: number | undefined;
|
3285
|
+
organizationId?: number | undefined;
|
3286
|
+
};
|
3287
|
+
_input_out: {
|
3288
|
+
authorization?: string | undefined;
|
3289
|
+
teamId: number;
|
3290
|
+
invites: {
|
3291
|
+
firstName: string;
|
3292
|
+
lastName: string;
|
3293
|
+
email: string;
|
3294
|
+
}[];
|
3295
|
+
leagueId?: number | undefined;
|
3296
|
+
organizationId?: number | undefined;
|
3297
|
+
};
|
2171
3298
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2172
3299
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2173
|
-
|
2174
|
-
}, string>>;
|
3300
|
+
}, void>>;
|
2175
3301
|
};
|
2176
|
-
|
3302
|
+
createInviteByOrganization: {
|
2177
3303
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2178
3304
|
_config: import("@trpc/server").RootConfig<{
|
2179
3305
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -2182,18 +3308,38 @@ export declare const BantrSdk: {
|
|
2182
3308
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
2183
3309
|
}>;
|
2184
3310
|
_meta: object;
|
2185
|
-
_ctx_out:
|
3311
|
+
_ctx_out: {
|
3312
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
3313
|
+
req: import("http").IncomingMessage;
|
3314
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
3315
|
+
};
|
2186
3316
|
_input_in: {
|
2187
|
-
|
3317
|
+
authorization?: string | undefined;
|
3318
|
+
teamId: number;
|
3319
|
+
invites: {
|
3320
|
+
firstName: string;
|
3321
|
+
lastName: string;
|
3322
|
+
email: string;
|
3323
|
+
}[];
|
3324
|
+
leagueId?: number | undefined;
|
3325
|
+
organizationId?: number | undefined;
|
2188
3326
|
};
|
2189
3327
|
_input_out: {
|
2190
|
-
|
3328
|
+
authorization?: string | undefined;
|
3329
|
+
teamId: number;
|
3330
|
+
invites: {
|
3331
|
+
firstName: string;
|
3332
|
+
lastName: string;
|
3333
|
+
email: string;
|
3334
|
+
}[];
|
3335
|
+
leagueId?: number | undefined;
|
3336
|
+
organizationId?: number | undefined;
|
2191
3337
|
};
|
2192
3338
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2193
3339
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2194
3340
|
}, void>>;
|
2195
3341
|
};
|
2196
|
-
|
3342
|
+
cancelInviteByCaptain: {
|
2197
3343
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2198
3344
|
_config: import("@trpc/server").RootConfig<{
|
2199
3345
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -2202,40 +3348,26 @@ export declare const BantrSdk: {
|
|
2202
3348
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
2203
3349
|
}>;
|
2204
3350
|
_meta: object;
|
2205
|
-
_ctx_out:
|
3351
|
+
_ctx_out: {
|
3352
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
3353
|
+
req: import("http").IncomingMessage;
|
3354
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
3355
|
+
};
|
2206
3356
|
_input_in: {
|
2207
|
-
|
3357
|
+
authorization?: string | undefined;
|
3358
|
+
teamId: number;
|
3359
|
+
inviteId: number;
|
2208
3360
|
};
|
2209
3361
|
_input_out: {
|
2210
|
-
|
3362
|
+
authorization?: string | undefined;
|
3363
|
+
teamId: number;
|
3364
|
+
inviteId: number;
|
2211
3365
|
};
|
2212
3366
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2213
3367
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2214
|
-
},
|
2215
|
-
accessToken: string;
|
2216
|
-
refreshToken: string;
|
2217
|
-
accountStatus: string;
|
2218
|
-
redirectTeamId?: number | null;
|
2219
|
-
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
2220
|
-
memberId: number;
|
2221
|
-
bio: string | null;
|
2222
|
-
city?: string;
|
2223
|
-
street?: string;
|
2224
|
-
state?: string;
|
2225
|
-
avatar: string | null;
|
2226
|
-
teams: import("../api-type/src/models/team").Team[];
|
2227
|
-
favoriteTeam: number | undefined | null;
|
2228
|
-
zip: string | undefined;
|
2229
|
-
phoneNumber: string | null;
|
2230
|
-
gender?: string;
|
2231
|
-
birthday: string | null;
|
2232
|
-
location: string | null;
|
2233
|
-
email: string;
|
2234
|
-
firstName: string | null;
|
2235
|
-
lastName: string | null;
|
2236
|
-
}>>;
|
3368
|
+
}, void>>;
|
2237
3369
|
};
|
2238
|
-
|
3370
|
+
cancelInviteByOrganization: {
|
2239
3371
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2240
3372
|
_config: import("@trpc/server").RootConfig<{
|
2241
3373
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -2245,25 +3377,27 @@ export declare const BantrSdk: {
|
|
2245
3377
|
}>;
|
2246
3378
|
_meta: object;
|
2247
3379
|
_ctx_out: {
|
3380
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2248
3381
|
req: import("http").IncomingMessage;
|
2249
3382
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2250
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
2251
3383
|
};
|
2252
3384
|
_input_in: {
|
2253
3385
|
authorization?: string | undefined;
|
2254
|
-
|
3386
|
+
teamId: number;
|
3387
|
+
inviteId: number;
|
2255
3388
|
};
|
2256
3389
|
_input_out: {
|
2257
3390
|
authorization?: string | undefined;
|
2258
|
-
|
3391
|
+
teamId: number;
|
3392
|
+
inviteId: number;
|
2259
3393
|
};
|
2260
3394
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2261
3395
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2262
|
-
},
|
3396
|
+
}, void>>;
|
2263
3397
|
};
|
2264
3398
|
};
|
2265
|
-
|
2266
|
-
|
3399
|
+
transaction: {
|
3400
|
+
list: {
|
2267
3401
|
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
2268
3402
|
_config: import("@trpc/server").RootConfig<{
|
2269
3403
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -2273,32 +3407,41 @@ export declare const BantrSdk: {
|
|
2273
3407
|
}>;
|
2274
3408
|
_meta: object;
|
2275
3409
|
_ctx_out: {
|
3410
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2276
3411
|
req: import("http").IncomingMessage;
|
2277
3412
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2278
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
2279
3413
|
};
|
2280
3414
|
_input_in: {
|
2281
3415
|
authorization?: string | undefined;
|
2282
|
-
|
3416
|
+
limit: number;
|
3417
|
+
page: number;
|
3418
|
+
direction: "asc" | "desc";
|
3419
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
3420
|
+
search?: string | undefined;
|
3421
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
3422
|
+
orgWorkspaceId?: number | undefined;
|
2283
3423
|
};
|
2284
3424
|
_input_out: {
|
2285
3425
|
authorization?: string | undefined;
|
2286
|
-
|
2287
|
-
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2292
|
-
|
2293
|
-
_output_out: {
|
2294
|
-
technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
|
2295
|
-
extraTechnologyFeePercent: number;
|
2296
|
-
extraTechnologyFeeLabel: string | null;
|
3426
|
+
limit: number;
|
3427
|
+
page: number;
|
3428
|
+
direction: "asc" | "desc";
|
3429
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
3430
|
+
search?: string | undefined;
|
3431
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
3432
|
+
orgWorkspaceId?: number | undefined;
|
2297
3433
|
};
|
2298
|
-
|
3434
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
3435
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
3436
|
+
}, {
|
3437
|
+
items: import("../api-type/src/models/transaction").Transaction[];
|
3438
|
+
curPage: number;
|
3439
|
+
hasPrev: boolean;
|
3440
|
+
hasNext: boolean;
|
3441
|
+
}>>;
|
2299
3442
|
};
|
2300
|
-
|
2301
|
-
|
3443
|
+
info: {
|
3444
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
2302
3445
|
_config: import("@trpc/server").RootConfig<{
|
2303
3446
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2304
3447
|
meta: object;
|
@@ -2307,31 +3450,65 @@ export declare const BantrSdk: {
|
|
2307
3450
|
}>;
|
2308
3451
|
_meta: object;
|
2309
3452
|
_ctx_out: {
|
3453
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2310
3454
|
req: import("http").IncomingMessage;
|
2311
3455
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2312
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
2313
3456
|
};
|
2314
3457
|
_input_in: {
|
2315
3458
|
authorization?: string | undefined;
|
2316
|
-
|
2317
|
-
extraTechnologyFeePercent: number;
|
2318
|
-
extraTechnologyFeeLabel: string | null;
|
2319
|
-
workspaceId?: number | undefined;
|
3459
|
+
transactionId: number;
|
2320
3460
|
};
|
2321
3461
|
_input_out: {
|
2322
3462
|
authorization?: string | undefined;
|
2323
|
-
|
2324
|
-
extraTechnologyFeePercent: number;
|
2325
|
-
extraTechnologyFeeLabel: string | null;
|
2326
|
-
workspaceId?: number | undefined;
|
3463
|
+
transactionId: number;
|
2327
3464
|
};
|
2328
3465
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2329
3466
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2330
|
-
},
|
3467
|
+
}, {
|
3468
|
+
stripeTransfers: import("../api-type/src/models/stripe_transfer").StripeTransfer[];
|
3469
|
+
id: number;
|
3470
|
+
payerId: number;
|
3471
|
+
payer?: import("../api-type/src/models/member").Member;
|
3472
|
+
paymentMethod: import("../api-type/src/modules/transaction/transaction.schema").TRANSACTION_METHOD_ENUM;
|
3473
|
+
discountCodeId: number | null;
|
3474
|
+
discountCode?: import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode;
|
3475
|
+
documentAmount: number;
|
3476
|
+
discountedAmount: number;
|
3477
|
+
organizerFee: number;
|
3478
|
+
bantrFee: number;
|
3479
|
+
stripeFee: number;
|
3480
|
+
chargedAmount: number;
|
3481
|
+
paidAmount: number;
|
3482
|
+
transferAmount: number;
|
3483
|
+
refundedAmount: number;
|
3484
|
+
transferSent: boolean;
|
3485
|
+
currency: import("../api-type/src/constants").VALID_CURRENCY_CODES;
|
3486
|
+
status: import("../api-type/src/modules/transaction/transaction.schema").TRANSACTION_STATUS_ENUM;
|
3487
|
+
expiresAt: Date | null;
|
3488
|
+
lastStatusUpdateAt: Date | null;
|
3489
|
+
leaguePaymentId: number | null;
|
3490
|
+
leaguePayment?: import("../api-type/src/models/league_payment").LeaguePayment;
|
3491
|
+
league?: import("../api-type/src/models/league").League;
|
3492
|
+
pickupPaymentId: number | null;
|
3493
|
+
pickupPayment?: import("../api-type/src/models/pickup_payments").PickupPayment;
|
3494
|
+
pickup?: import("../api-type/src/models/pickup").Pickup;
|
3495
|
+
freeAgentPaymentId: number | null;
|
3496
|
+
freeAgentPayment?: import("../api-type/src/models/free_agent_payment").FreeAgentPayment;
|
3497
|
+
orgFreeAgent?: import("../api-type/src/models/organization_free_agent").OrgFreeAgent;
|
3498
|
+
organizationId: number;
|
3499
|
+
organization?: import("../api-type/src/models/organization").Organization;
|
3500
|
+
orgWorkspaceId: number | null;
|
3501
|
+
orgWorkspace?: import("../api-type/src/models/organization_workspace").OrgWorkspace;
|
3502
|
+
transactionEvents?: import("../api-type/src/models/transaction_event").TransactionEvent[];
|
3503
|
+
stripeTransactions?: import("../api-type/src/models/stripe_transaction").StripeTransaction[];
|
3504
|
+
updatedAt: Date;
|
3505
|
+
createdAt: Date;
|
3506
|
+
deletedAt: Date | null;
|
3507
|
+
QueryBuilderType: import("objection-js-soft-delete").SoftDeleteQueryBuilder<import("../api-type/src/models/transaction").Transaction, import("../api-type/src/models/transaction").Transaction[]> & import("objection").QueryBuilder<import("../api-type/src/models/transaction").Transaction, import("../api-type/src/models/transaction").Transaction[]>;
|
3508
|
+
$modelClass: import("objection").ModelClass<import("../api-type/src/models/transaction").Transaction>;
|
3509
|
+
}>>;
|
2331
3510
|
};
|
2332
|
-
|
2333
|
-
pickupPayments: {
|
2334
|
-
registrationCheckout: {
|
3511
|
+
refund: {
|
2335
3512
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2336
3513
|
_config: import("@trpc/server").RootConfig<{
|
2337
3514
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -2341,35 +3518,25 @@ export declare const BantrSdk: {
|
|
2341
3518
|
}>;
|
2342
3519
|
_meta: object;
|
2343
3520
|
_ctx_out: {
|
3521
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
2344
3522
|
req: import("http").IncomingMessage;
|
2345
3523
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2346
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
2347
3524
|
};
|
2348
3525
|
_input_in: {
|
2349
3526
|
authorization?: string | undefined;
|
2350
|
-
|
2351
|
-
|
2352
|
-
code?: string | undefined;
|
2353
|
-
paymentMode?: "session" | "intent" | undefined;
|
2354
|
-
cancelPath?: string | undefined;
|
3527
|
+
transactionId: number;
|
3528
|
+
amount: number;
|
2355
3529
|
};
|
2356
3530
|
_input_out: {
|
2357
3531
|
authorization?: string | undefined;
|
2358
|
-
|
2359
|
-
|
2360
|
-
pickupId: number;
|
2361
|
-
code?: string | undefined;
|
2362
|
-
cancelPath?: string | undefined;
|
3532
|
+
transactionId: number;
|
3533
|
+
amount: number;
|
2363
3534
|
};
|
2364
3535
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
2365
3536
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
2366
|
-
},
|
2367
|
-
eventName: string;
|
2368
|
-
}>>;
|
3537
|
+
}, void>>;
|
2369
3538
|
};
|
2370
|
-
|
2371
|
-
product: {
|
2372
|
-
info: {
|
3539
|
+
export: {
|
2373
3540
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
2374
3541
|
_config: import("@trpc/server").RootConfig<{
|
2375
3542
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -2378,42 +3545,34 @@ export declare const BantrSdk: {
|
|
2378
3545
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
2379
3546
|
}>;
|
2380
3547
|
_meta: object;
|
2381
|
-
_ctx_out:
|
3548
|
+
_ctx_out: {
|
3549
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
3550
|
+
req: import("http").IncomingMessage;
|
3551
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
3552
|
+
};
|
2382
3553
|
_input_in: {
|
2383
|
-
|
2384
|
-
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
3554
|
+
authorization?: string | undefined;
|
3555
|
+
limit: number;
|
3556
|
+
page: number;
|
3557
|
+
direction: "asc" | "desc";
|
3558
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
3559
|
+
search?: string | undefined;
|
3560
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
3561
|
+
orgWorkspaceId?: number | undefined;
|
2388
3562
|
};
|
2389
3563
|
_input_out: {
|
2390
|
-
|
2391
|
-
|
2392
|
-
|
2393
|
-
|
2394
|
-
|
2395
|
-
|
2396
|
-
|
2397
|
-
|
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;
|
3564
|
+
authorization?: string | undefined;
|
3565
|
+
limit: number;
|
3566
|
+
page: number;
|
3567
|
+
direction: "asc" | "desc";
|
3568
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
3569
|
+
search?: string | undefined;
|
3570
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
3571
|
+
orgWorkspaceId?: number | undefined;
|
2415
3572
|
};
|
2416
|
-
|
3573
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
3574
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
3575
|
+
}, string>>;
|
2417
3576
|
};
|
2418
3577
|
};
|
2419
3578
|
};
|