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
@@ -19,9 +19,9 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
19
19
|
}>;
|
20
20
|
_meta: object;
|
21
21
|
_ctx_out: {
|
22
|
+
user: import("../types/auth").TJwtPayload;
|
22
23
|
req: import("http").IncomingMessage;
|
23
24
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
24
|
-
user: import("../types/auth").TJwtPayload;
|
25
25
|
};
|
26
26
|
_input_in: {
|
27
27
|
authorization?: string | undefined;
|
@@ -43,27 +43,27 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
43
43
|
}>;
|
44
44
|
_meta: object;
|
45
45
|
_ctx_out: {
|
46
|
+
user: import("../types/auth").TJwtPayload;
|
46
47
|
req: import("http").IncomingMessage;
|
47
48
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
48
|
-
user: import("../types/auth").TJwtPayload;
|
49
49
|
};
|
50
50
|
_input_in: {
|
51
51
|
authorization?: string | undefined;
|
52
52
|
limit: number;
|
53
53
|
cursor: number;
|
54
|
-
code?: string | undefined;
|
55
54
|
orgWorkspaceId?: number | null | undefined;
|
55
|
+
code?: string | undefined;
|
56
56
|
direction?: "asc" | "desc" | undefined;
|
57
57
|
listExpired?: boolean | undefined;
|
58
58
|
};
|
59
59
|
_input_out: {
|
60
60
|
authorization?: string | undefined;
|
61
61
|
limit: number;
|
62
|
-
cursor: number;
|
63
62
|
direction: "asc" | "desc";
|
63
|
+
cursor: number;
|
64
64
|
listExpired: boolean;
|
65
|
-
code?: string | undefined;
|
66
65
|
orgWorkspaceId?: number | null | undefined;
|
66
|
+
code?: string | undefined;
|
67
67
|
};
|
68
68
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
69
69
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -80,14 +80,14 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
80
80
|
}>;
|
81
81
|
_meta: object;
|
82
82
|
_ctx_out: {
|
83
|
+
user: import("../types/auth").TJwtPayload;
|
83
84
|
req: import("http").IncomingMessage;
|
84
85
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
85
|
-
user: import("../types/auth").TJwtPayload;
|
86
86
|
};
|
87
87
|
_input_in: {
|
88
88
|
authorization?: string | undefined;
|
89
|
-
code: string;
|
90
89
|
description: string;
|
90
|
+
code: string;
|
91
91
|
appliesWhen: "purchase";
|
92
92
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
93
93
|
amountType: "flat-rate" | "percentage";
|
@@ -98,8 +98,8 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
98
98
|
};
|
99
99
|
_input_out: {
|
100
100
|
authorization?: string | undefined;
|
101
|
-
code: string;
|
102
101
|
description: string;
|
102
|
+
code: string;
|
103
103
|
appliesWhen: "purchase";
|
104
104
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
105
105
|
amountType: "flat-rate" | "percentage";
|
@@ -122,15 +122,15 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
122
122
|
}>;
|
123
123
|
_meta: object;
|
124
124
|
_ctx_out: {
|
125
|
+
user: import("../types/auth").TJwtPayload;
|
125
126
|
req: import("http").IncomingMessage;
|
126
127
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
127
|
-
user: import("../types/auth").TJwtPayload;
|
128
128
|
};
|
129
129
|
_input_in: {
|
130
130
|
authorization?: string | undefined;
|
131
131
|
id: number;
|
132
|
-
code: string;
|
133
132
|
description: string;
|
133
|
+
code: string;
|
134
134
|
appliesWhen: "purchase";
|
135
135
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
136
136
|
amountType: "flat-rate" | "percentage";
|
@@ -143,8 +143,8 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
143
143
|
_input_out: {
|
144
144
|
authorization?: string | undefined;
|
145
145
|
id: number;
|
146
|
-
code: string;
|
147
146
|
description: string;
|
147
|
+
code: string;
|
148
148
|
appliesWhen: "purchase";
|
149
149
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
150
150
|
amountType: "flat-rate" | "percentage";
|
@@ -166,9 +166,9 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
166
166
|
}>;
|
167
167
|
_meta: object;
|
168
168
|
_ctx_out: {
|
169
|
+
user: import("../types/auth").TJwtPayload;
|
169
170
|
req: import("http").IncomingMessage;
|
170
171
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
171
|
-
user: import("../types/auth").TJwtPayload;
|
172
172
|
};
|
173
173
|
_input_in: {
|
174
174
|
authorization?: string | undefined;
|
@@ -205,16 +205,16 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
205
205
|
code?: string | undefined;
|
206
206
|
};
|
207
207
|
_output_in: {
|
208
|
-
code: string;
|
209
208
|
description: string;
|
209
|
+
code: string;
|
210
210
|
amountType: "flat-rate" | "percentage";
|
211
211
|
amountValue: number;
|
212
212
|
reducedValue: number;
|
213
213
|
newValue: number;
|
214
214
|
};
|
215
215
|
_output_out: {
|
216
|
-
code: string;
|
217
216
|
description: string;
|
217
|
+
code: string;
|
218
218
|
amountType: "flat-rate" | "percentage";
|
219
219
|
amountValue: number;
|
220
220
|
reducedValue: number;
|
@@ -237,26 +237,26 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
237
237
|
}>;
|
238
238
|
_meta: object;
|
239
239
|
_ctx_out: {
|
240
|
+
user: import("../types/auth").TJwtPayload;
|
240
241
|
req: import("http").IncomingMessage;
|
241
242
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
242
|
-
user: import("../types/auth").TJwtPayload;
|
243
243
|
};
|
244
244
|
_input_in: {
|
245
245
|
authorization?: string | undefined;
|
246
246
|
description: string;
|
247
247
|
freeAgentId: number;
|
248
|
-
code?: string | undefined;
|
249
248
|
leagueId?: number | undefined;
|
249
|
+
code?: string | undefined;
|
250
250
|
paymentMode?: "session" | "intent" | undefined;
|
251
251
|
cancelPath?: string | undefined;
|
252
252
|
};
|
253
253
|
_input_out: {
|
254
254
|
authorization?: string | undefined;
|
255
255
|
description: string;
|
256
|
-
freeAgentId: number;
|
257
256
|
paymentMode: "session" | "intent";
|
258
|
-
|
257
|
+
freeAgentId: number;
|
259
258
|
leagueId?: number | undefined;
|
259
|
+
code?: string | undefined;
|
260
260
|
cancelPath?: string | undefined;
|
261
261
|
};
|
262
262
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -268,6 +268,22 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
268
268
|
customerId: string;
|
269
269
|
orgPublishableKey: string | undefined;
|
270
270
|
orgStripeAccountId: string;
|
271
|
+
paymentIntent: {
|
272
|
+
intent: import("stripe").Stripe.Response<import("stripe").Stripe.PaymentIntent>;
|
273
|
+
discountAndFee: {
|
274
|
+
discountApplied: number;
|
275
|
+
discountedAmount: number;
|
276
|
+
priceAmount: number;
|
277
|
+
otherTaxLabel: string;
|
278
|
+
otherTaxPercent: number;
|
279
|
+
otherTax: number;
|
280
|
+
bantrTax: number;
|
281
|
+
stripeTax: number;
|
282
|
+
totalTax: number;
|
283
|
+
totalWithTax: number;
|
284
|
+
transferAmount: number;
|
285
|
+
};
|
286
|
+
};
|
271
287
|
} | {
|
272
288
|
redirectUrl: string;
|
273
289
|
}>;
|
@@ -287,58 +303,58 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
287
303
|
}>;
|
288
304
|
_meta: object;
|
289
305
|
_ctx_out: {
|
306
|
+
user: import("../types/auth").TJwtPayload;
|
290
307
|
req: import("http").IncomingMessage;
|
291
308
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
292
|
-
user: import("../types/auth").TJwtPayload;
|
293
309
|
};
|
294
310
|
_input_in: {
|
295
311
|
authorization?: string | undefined;
|
296
|
-
leagueId: number;
|
297
312
|
teamId: number;
|
313
|
+
leagueId: number;
|
298
314
|
};
|
299
315
|
_input_out: {
|
300
316
|
authorization?: string | undefined;
|
301
|
-
leagueId: number;
|
302
317
|
teamId: number;
|
318
|
+
leagueId: number;
|
303
319
|
};
|
304
320
|
_output_in: {
|
305
321
|
id: number;
|
306
322
|
deletedAt: Date | null;
|
307
|
-
memberId: number;
|
308
|
-
totalPaid: number;
|
309
323
|
member: {
|
310
324
|
id: number;
|
311
|
-
email: string;
|
312
325
|
firstName: string | null;
|
313
326
|
lastName: string | null;
|
327
|
+
email: string;
|
314
328
|
};
|
329
|
+
memberId: number;
|
330
|
+
totalPaid: number;
|
315
331
|
payments: {
|
316
332
|
id: number;
|
317
333
|
createdAt: string | Date;
|
318
|
-
price: number;
|
319
334
|
payerId: number;
|
320
335
|
amountApplied: number | null;
|
321
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
336
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
337
|
+
price: number;
|
322
338
|
}[];
|
323
339
|
}[];
|
324
340
|
_output_out: {
|
325
341
|
id: number;
|
326
342
|
deletedAt: Date | null;
|
327
|
-
memberId: number;
|
328
|
-
totalPaid: number;
|
329
343
|
member: {
|
330
344
|
id: number;
|
331
|
-
email: string;
|
332
345
|
firstName: string | null;
|
333
346
|
lastName: string | null;
|
347
|
+
email: string;
|
334
348
|
};
|
349
|
+
memberId: number;
|
350
|
+
totalPaid: number;
|
335
351
|
payments: {
|
336
352
|
id: number;
|
337
353
|
createdAt: string | Date;
|
338
|
-
price: number;
|
339
354
|
payerId: number;
|
340
355
|
amountApplied: number | null;
|
341
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
356
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
357
|
+
price: number;
|
342
358
|
}[];
|
343
359
|
}[];
|
344
360
|
}, unknown>;
|
@@ -351,22 +367,22 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
351
367
|
}>;
|
352
368
|
_meta: object;
|
353
369
|
_ctx_out: {
|
370
|
+
user: import("../types/auth").TJwtPayload;
|
354
371
|
req: import("http").IncomingMessage;
|
355
372
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
356
|
-
user: import("../types/auth").TJwtPayload;
|
357
373
|
};
|
358
374
|
_input_in: {
|
359
375
|
authorization?: string | undefined;
|
360
376
|
leagueId: number;
|
377
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
361
378
|
price: number;
|
362
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
363
379
|
teamRosterId: number;
|
364
380
|
};
|
365
381
|
_input_out: {
|
366
382
|
authorization?: string | undefined;
|
367
383
|
leagueId: number;
|
384
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
368
385
|
price: number;
|
369
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
370
386
|
teamRosterId: number;
|
371
387
|
};
|
372
388
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -381,22 +397,22 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
381
397
|
}>;
|
382
398
|
_meta: object;
|
383
399
|
_ctx_out: {
|
400
|
+
user: import("../types/auth").TJwtPayload;
|
384
401
|
req: import("http").IncomingMessage;
|
385
402
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
386
|
-
user: import("../types/auth").TJwtPayload;
|
387
403
|
};
|
388
404
|
_input_in: {
|
389
405
|
authorization?: string | undefined;
|
390
406
|
id: number;
|
407
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
391
408
|
price: number;
|
392
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
393
409
|
teamRosterId: number;
|
394
410
|
};
|
395
411
|
_input_out: {
|
396
412
|
authorization?: string | undefined;
|
397
413
|
id: number;
|
414
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
398
415
|
price: number;
|
399
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
400
416
|
teamRosterId: number;
|
401
417
|
};
|
402
418
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -411,9 +427,9 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
411
427
|
}>;
|
412
428
|
_meta: object;
|
413
429
|
_ctx_out: {
|
430
|
+
user: import("../types/auth").TJwtPayload;
|
414
431
|
req: import("http").IncomingMessage;
|
415
432
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
416
|
-
user: import("../types/auth").TJwtPayload;
|
417
433
|
};
|
418
434
|
_input_in: {
|
419
435
|
authorization?: string | undefined;
|
@@ -435,14 +451,14 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
435
451
|
}>;
|
436
452
|
_meta: object;
|
437
453
|
_ctx_out: {
|
454
|
+
user: import("../types/auth").TJwtPayload;
|
438
455
|
req: import("http").IncomingMessage;
|
439
456
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
440
|
-
user: import("../types/auth").TJwtPayload;
|
441
457
|
};
|
442
458
|
_input_in: {
|
443
459
|
authorization?: string | undefined;
|
444
|
-
leagueId: number;
|
445
460
|
teamId: number;
|
461
|
+
leagueId: number;
|
446
462
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
447
463
|
code?: string | undefined;
|
448
464
|
paymentMode?: "session" | "intent" | undefined;
|
@@ -450,10 +466,10 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
450
466
|
};
|
451
467
|
_input_out: {
|
452
468
|
authorization?: string | undefined;
|
453
|
-
leagueId: number;
|
454
|
-
paymentMode: "session" | "intent";
|
455
469
|
teamId: number;
|
470
|
+
leagueId: number;
|
456
471
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
472
|
+
paymentMode: "session" | "intent";
|
457
473
|
code?: string | undefined;
|
458
474
|
paymentAmount?: number | undefined;
|
459
475
|
};
|
@@ -620,17 +636,17 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
620
636
|
}>;
|
621
637
|
_meta: object;
|
622
638
|
_ctx_out: {
|
639
|
+
user: import("../types/auth").TJwtPayload;
|
623
640
|
req: import("http").IncomingMessage;
|
624
641
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
625
|
-
user: import("../types/auth").TJwtPayload;
|
626
642
|
};
|
627
643
|
_input_in: {
|
628
644
|
authorization?: string | undefined;
|
629
|
-
provider: "
|
645
|
+
provider: "google" | "apple";
|
630
646
|
};
|
631
647
|
_input_out: {
|
632
648
|
authorization?: string | undefined;
|
633
|
-
provider: "
|
649
|
+
provider: "google" | "apple";
|
634
650
|
};
|
635
651
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
636
652
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -651,9 +667,9 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
651
667
|
}>;
|
652
668
|
_meta: object;
|
653
669
|
_ctx_out: {
|
670
|
+
user: import("../types/auth").TJwtPayload;
|
654
671
|
req: import("http").IncomingMessage;
|
655
672
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
656
|
-
user: import("../types/auth").TJwtPayload;
|
657
673
|
};
|
658
674
|
_input_in: {
|
659
675
|
authorization?: string | undefined;
|
@@ -683,9 +699,9 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
683
699
|
}>;
|
684
700
|
_meta: object;
|
685
701
|
_ctx_out: {
|
702
|
+
user: import("../types/auth").TJwtPayload;
|
686
703
|
req: import("http").IncomingMessage;
|
687
704
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
688
|
-
user: import("../types/auth").TJwtPayload;
|
689
705
|
};
|
690
706
|
_input_in: {
|
691
707
|
authorization?: string | undefined;
|
@@ -720,9 +736,9 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
720
736
|
}>;
|
721
737
|
_meta: object;
|
722
738
|
_ctx_out: {
|
739
|
+
user: import("../types/auth").TJwtPayload;
|
723
740
|
req: import("http").IncomingMessage;
|
724
741
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
725
|
-
user: import("../types/auth").TJwtPayload;
|
726
742
|
};
|
727
743
|
_input_in: {
|
728
744
|
authorization?: string | undefined;
|
@@ -734,8 +750,8 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
734
750
|
};
|
735
751
|
_input_out: {
|
736
752
|
authorization?: string | undefined;
|
737
|
-
paymentMode: "session" | "intent";
|
738
753
|
memberId: number;
|
754
|
+
paymentMode: "session" | "intent";
|
739
755
|
pickupId: number;
|
740
756
|
code?: string | undefined;
|
741
757
|
cancelPath?: string | undefined;
|
@@ -782,8 +798,8 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
782
798
|
otherTaxLabel: string;
|
783
799
|
otherTax: number;
|
784
800
|
otherTaxPercent: number;
|
785
|
-
code?: string | undefined;
|
786
801
|
description?: string | undefined;
|
802
|
+
code?: string | undefined;
|
787
803
|
};
|
788
804
|
_output_out: {
|
789
805
|
discountApplied: number;
|
@@ -792,25 +808,18 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
792
808
|
otherTaxLabel: string;
|
793
809
|
otherTax: number;
|
794
810
|
otherTaxPercent: number;
|
795
|
-
code?: string | undefined;
|
796
811
|
description?: string | undefined;
|
812
|
+
code?: string | undefined;
|
797
813
|
};
|
798
814
|
}, unknown>;
|
799
815
|
}>;
|
800
|
-
|
801
|
-
export declare const createTrpcCaller: import("@trpc/server").RouterCaller<import("@trpc/server/dist/core/router").RouterDef<import("@trpc/server").RootConfig<{
|
802
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
803
|
-
meta: object;
|
804
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
805
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
806
|
-
}>, {
|
807
|
-
discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
816
|
+
team: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
808
817
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
809
818
|
meta: object;
|
810
819
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
811
820
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
812
821
|
}>, {
|
813
|
-
|
822
|
+
getInvitedMembers: import("@trpc/server").BuildProcedure<"query", {
|
814
823
|
_config: import("@trpc/server").RootConfig<{
|
815
824
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
816
825
|
meta: object;
|
@@ -819,22 +828,25 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
819
828
|
}>;
|
820
829
|
_meta: object;
|
821
830
|
_ctx_out: {
|
831
|
+
user: import("../types/auth").TJwtPayload;
|
822
832
|
req: import("http").IncomingMessage;
|
823
833
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
824
|
-
user: import("../types/auth").TJwtPayload;
|
825
834
|
};
|
826
835
|
_input_in: {
|
827
836
|
authorization?: string | undefined;
|
828
|
-
|
837
|
+
teamId: number;
|
829
838
|
};
|
830
839
|
_input_out: {
|
831
840
|
authorization?: string | undefined;
|
832
|
-
|
841
|
+
teamId: number;
|
833
842
|
};
|
834
843
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
835
844
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
836
|
-
}, import("../
|
837
|
-
|
845
|
+
}, (import("../models/team_roster").TeamRoster & {
|
846
|
+
member: Pick<import("../models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
847
|
+
invites: Pick<import("../models/invite").Invite, "isActive">[];
|
848
|
+
})[]>;
|
849
|
+
getInvitedByOrganization: import("@trpc/server").BuildProcedure<"query", {
|
838
850
|
_config: import("@trpc/server").RootConfig<{
|
839
851
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
840
852
|
meta: object;
|
@@ -843,35 +855,27 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
843
855
|
}>;
|
844
856
|
_meta: object;
|
845
857
|
_ctx_out: {
|
858
|
+
user: import("../types/auth").TJwtPayload;
|
846
859
|
req: import("http").IncomingMessage;
|
847
860
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
848
|
-
user: import("../types/auth").TJwtPayload;
|
849
861
|
};
|
850
862
|
_input_in: {
|
851
863
|
authorization?: string | undefined;
|
852
|
-
|
853
|
-
|
854
|
-
code?: string | undefined;
|
855
|
-
orgWorkspaceId?: number | null | undefined;
|
856
|
-
direction?: "asc" | "desc" | undefined;
|
857
|
-
listExpired?: boolean | undefined;
|
864
|
+
teamId: number;
|
865
|
+
organizationId: number;
|
858
866
|
};
|
859
867
|
_input_out: {
|
860
868
|
authorization?: string | undefined;
|
861
|
-
|
862
|
-
|
863
|
-
direction: "asc" | "desc";
|
864
|
-
listExpired: boolean;
|
865
|
-
code?: string | undefined;
|
866
|
-
orgWorkspaceId?: number | null | undefined;
|
869
|
+
teamId: number;
|
870
|
+
organizationId: number;
|
867
871
|
};
|
868
872
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
869
873
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
870
|
-
}, {
|
871
|
-
|
872
|
-
|
873
|
-
}>;
|
874
|
-
|
874
|
+
}, (import("../models/team_roster").TeamRoster & {
|
875
|
+
member: Pick<import("../models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
876
|
+
invites: Pick<import("../models/invite").Invite, "isActive">[];
|
877
|
+
})[]>;
|
878
|
+
createInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
875
879
|
_config: import("@trpc/server").RootConfig<{
|
876
880
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
877
881
|
meta: object;
|
@@ -880,40 +884,36 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
880
884
|
}>;
|
881
885
|
_meta: object;
|
882
886
|
_ctx_out: {
|
887
|
+
user: import("../types/auth").TJwtPayload;
|
883
888
|
req: import("http").IncomingMessage;
|
884
889
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
885
|
-
user: import("../types/auth").TJwtPayload;
|
886
890
|
};
|
887
891
|
_input_in: {
|
888
892
|
authorization?: string | undefined;
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
orgWorkspaceId?: number | null | undefined;
|
893
|
+
teamId: number;
|
894
|
+
invites: {
|
895
|
+
firstName: string;
|
896
|
+
lastName: string;
|
897
|
+
email: string;
|
898
|
+
}[];
|
899
|
+
leagueId?: number | undefined;
|
900
|
+
organizationId?: number | undefined;
|
898
901
|
};
|
899
902
|
_input_out: {
|
900
903
|
authorization?: string | undefined;
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
orgWorkspaceId?: number | null | undefined;
|
904
|
+
teamId: number;
|
905
|
+
invites: {
|
906
|
+
firstName: string;
|
907
|
+
lastName: string;
|
908
|
+
email: string;
|
909
|
+
}[];
|
910
|
+
leagueId?: number | undefined;
|
911
|
+
organizationId?: number | undefined;
|
910
912
|
};
|
911
913
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
912
914
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
913
|
-
},
|
914
|
-
|
915
|
-
}>;
|
916
|
-
update: import("@trpc/server").BuildProcedure<"mutation", {
|
915
|
+
}, void>;
|
916
|
+
createInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
917
917
|
_config: import("@trpc/server").RootConfig<{
|
918
918
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
919
919
|
meta: object;
|
@@ -922,42 +922,36 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
922
922
|
}>;
|
923
923
|
_meta: object;
|
924
924
|
_ctx_out: {
|
925
|
+
user: import("../types/auth").TJwtPayload;
|
925
926
|
req: import("http").IncomingMessage;
|
926
927
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
927
|
-
user: import("../types/auth").TJwtPayload;
|
928
928
|
};
|
929
929
|
_input_in: {
|
930
930
|
authorization?: string | undefined;
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
validUntil: Date | null;
|
940
|
-
usageLimit: number | null;
|
941
|
-
orgWorkspaceId?: number | null | undefined;
|
931
|
+
teamId: number;
|
932
|
+
invites: {
|
933
|
+
firstName: string;
|
934
|
+
lastName: string;
|
935
|
+
email: string;
|
936
|
+
}[];
|
937
|
+
leagueId?: number | undefined;
|
938
|
+
organizationId?: number | undefined;
|
942
939
|
};
|
943
940
|
_input_out: {
|
944
941
|
authorization?: string | undefined;
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
validUntil: Date | null;
|
954
|
-
usageLimit: number | null;
|
955
|
-
orgWorkspaceId?: number | null | undefined;
|
942
|
+
teamId: number;
|
943
|
+
invites: {
|
944
|
+
firstName: string;
|
945
|
+
lastName: string;
|
946
|
+
email: string;
|
947
|
+
}[];
|
948
|
+
leagueId?: number | undefined;
|
949
|
+
organizationId?: number | undefined;
|
956
950
|
};
|
957
951
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
958
952
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
959
953
|
}, void>;
|
960
|
-
|
954
|
+
cancelInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
961
955
|
_config: import("@trpc/server").RootConfig<{
|
962
956
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
963
957
|
meta: object;
|
@@ -966,22 +960,24 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
966
960
|
}>;
|
967
961
|
_meta: object;
|
968
962
|
_ctx_out: {
|
963
|
+
user: import("../types/auth").TJwtPayload;
|
969
964
|
req: import("http").IncomingMessage;
|
970
965
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
971
|
-
user: import("../types/auth").TJwtPayload;
|
972
966
|
};
|
973
967
|
_input_in: {
|
974
968
|
authorization?: string | undefined;
|
975
|
-
|
969
|
+
teamId: number;
|
970
|
+
inviteId: number;
|
976
971
|
};
|
977
972
|
_input_out: {
|
978
973
|
authorization?: string | undefined;
|
979
|
-
|
974
|
+
teamId: number;
|
975
|
+
inviteId: number;
|
980
976
|
};
|
981
977
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
982
978
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
983
979
|
}, void>;
|
984
|
-
|
980
|
+
cancelInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
985
981
|
_config: import("@trpc/server").RootConfig<{
|
986
982
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
987
983
|
meta: object;
|
@@ -989,46 +985,32 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
989
985
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
990
986
|
}>;
|
991
987
|
_meta: object;
|
992
|
-
_ctx_out:
|
988
|
+
_ctx_out: {
|
989
|
+
user: import("../types/auth").TJwtPayload;
|
990
|
+
req: import("http").IncomingMessage;
|
991
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
992
|
+
};
|
993
993
|
_input_in: {
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
productValue: number;
|
998
|
-
code?: string | undefined;
|
994
|
+
authorization?: string | undefined;
|
995
|
+
teamId: number;
|
996
|
+
inviteId: number;
|
999
997
|
};
|
1000
998
|
_input_out: {
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
productValue: number;
|
1005
|
-
code?: string | undefined;
|
1006
|
-
};
|
1007
|
-
_output_in: {
|
1008
|
-
code: string;
|
1009
|
-
description: string;
|
1010
|
-
amountType: "flat-rate" | "percentage";
|
1011
|
-
amountValue: number;
|
1012
|
-
reducedValue: number;
|
1013
|
-
newValue: number;
|
1014
|
-
};
|
1015
|
-
_output_out: {
|
1016
|
-
code: string;
|
1017
|
-
description: string;
|
1018
|
-
amountType: "flat-rate" | "percentage";
|
1019
|
-
amountValue: number;
|
1020
|
-
reducedValue: number;
|
1021
|
-
newValue: number;
|
999
|
+
authorization?: string | undefined;
|
1000
|
+
teamId: number;
|
1001
|
+
inviteId: number;
|
1022
1002
|
};
|
1023
|
-
|
1003
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1004
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1005
|
+
}, void>;
|
1024
1006
|
}>;
|
1025
|
-
|
1007
|
+
transaction: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1026
1008
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1027
1009
|
meta: object;
|
1028
1010
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1029
1011
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1030
1012
|
}>, {
|
1031
|
-
|
1013
|
+
list: import("@trpc/server").BuildProcedure<"query", {
|
1032
1014
|
_config: import("@trpc/server").RootConfig<{
|
1033
1015
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1034
1016
|
meta: object;
|
@@ -1037,48 +1019,39 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1037
1019
|
}>;
|
1038
1020
|
_meta: object;
|
1039
1021
|
_ctx_out: {
|
1022
|
+
user: import("../types/auth").TJwtPayload;
|
1040
1023
|
req: import("http").IncomingMessage;
|
1041
1024
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1042
|
-
user: import("../types/auth").TJwtPayload;
|
1043
1025
|
};
|
1044
1026
|
_input_in: {
|
1045
1027
|
authorization?: string | undefined;
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1028
|
+
limit: number;
|
1029
|
+
page: number;
|
1030
|
+
direction: "asc" | "desc";
|
1031
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1032
|
+
search?: string | undefined;
|
1033
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1034
|
+
orgWorkspaceId?: number | undefined;
|
1052
1035
|
};
|
1053
1036
|
_input_out: {
|
1054
1037
|
authorization?: string | undefined;
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1038
|
+
limit: number;
|
1039
|
+
page: number;
|
1040
|
+
direction: "asc" | "desc";
|
1041
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1042
|
+
search?: string | undefined;
|
1043
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1044
|
+
orgWorkspaceId?: number | undefined;
|
1061
1045
|
};
|
1062
1046
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1063
1047
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1064
1048
|
}, {
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
orgPublishableKey: string | undefined;
|
1070
|
-
orgStripeAccountId: string;
|
1071
|
-
} | {
|
1072
|
-
redirectUrl: string;
|
1049
|
+
items: import("../models/transaction").Transaction[];
|
1050
|
+
curPage: number;
|
1051
|
+
hasPrev: boolean;
|
1052
|
+
hasNext: boolean;
|
1073
1053
|
}>;
|
1074
|
-
|
1075
|
-
leaguePayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1076
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1077
|
-
meta: object;
|
1078
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
1079
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
1080
|
-
}>, {
|
1081
|
-
trackUsersAndPayments: import("@trpc/server").BuildProcedure<"query", {
|
1054
|
+
info: import("@trpc/server").BuildProcedure<"query", {
|
1082
1055
|
_config: import("@trpc/server").RootConfig<{
|
1083
1056
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1084
1057
|
meta: object;
|
@@ -1087,62 +1060,64 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1087
1060
|
}>;
|
1088
1061
|
_meta: object;
|
1089
1062
|
_ctx_out: {
|
1063
|
+
user: import("../types/auth").TJwtPayload;
|
1090
1064
|
req: import("http").IncomingMessage;
|
1091
1065
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1092
|
-
user: import("../types/auth").TJwtPayload;
|
1093
1066
|
};
|
1094
1067
|
_input_in: {
|
1095
1068
|
authorization?: string | undefined;
|
1096
|
-
|
1097
|
-
teamId: number;
|
1069
|
+
transactionId: number;
|
1098
1070
|
};
|
1099
1071
|
_input_out: {
|
1100
1072
|
authorization?: string | undefined;
|
1101
|
-
|
1102
|
-
teamId: number;
|
1073
|
+
transactionId: number;
|
1103
1074
|
};
|
1104
|
-
_output_in:
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
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
|
-
|
1075
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1076
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1077
|
+
}, {
|
1078
|
+
stripeTransfers: import("../models/stripe_transfer").StripeTransfer[];
|
1079
|
+
id: number;
|
1080
|
+
payerId: number;
|
1081
|
+
payer?: import("../models/member").Member;
|
1082
|
+
paymentMethod: import("../modules/transaction/transaction.schema").TRANSACTION_METHOD_ENUM;
|
1083
|
+
discountCodeId: number | null;
|
1084
|
+
discountCode?: import("../modules/discount_code/discount_code.model").DiscountCode;
|
1085
|
+
documentAmount: number;
|
1086
|
+
discountedAmount: number;
|
1087
|
+
organizerFee: number;
|
1088
|
+
bantrFee: number;
|
1089
|
+
stripeFee: number;
|
1090
|
+
chargedAmount: number;
|
1091
|
+
paidAmount: number;
|
1092
|
+
transferAmount: number;
|
1093
|
+
refundedAmount: number;
|
1094
|
+
transferSent: boolean;
|
1095
|
+
currency: import("../constants").VALID_CURRENCY_CODES;
|
1096
|
+
status: import("../modules/transaction/transaction.schema").TRANSACTION_STATUS_ENUM;
|
1097
|
+
expiresAt: Date | null;
|
1098
|
+
lastStatusUpdateAt: Date | null;
|
1099
|
+
leaguePaymentId: number | null;
|
1100
|
+
leaguePayment?: import("../models/league_payment").LeaguePayment;
|
1101
|
+
league?: import("../models/league").League;
|
1102
|
+
pickupPaymentId: number | null;
|
1103
|
+
pickupPayment?: import("../models/pickup_payments").PickupPayment;
|
1104
|
+
pickup?: import("../models/pickup").Pickup;
|
1105
|
+
freeAgentPaymentId: number | null;
|
1106
|
+
freeAgentPayment?: import("../models/free_agent_payment").FreeAgentPayment;
|
1107
|
+
orgFreeAgent?: import("../models/organization_free_agent").OrgFreeAgent;
|
1108
|
+
organizationId: number;
|
1109
|
+
organization?: import("../models/organization").Organization;
|
1110
|
+
orgWorkspaceId: number | null;
|
1111
|
+
orgWorkspace?: import("../models/organization_workspace").OrgWorkspace;
|
1112
|
+
transactionEvents?: import("../models/transaction_event").TransactionEvent[];
|
1113
|
+
stripeTransactions?: import("../models/stripe_transaction").StripeTransaction[];
|
1114
|
+
updatedAt: Date;
|
1115
|
+
createdAt: Date;
|
1116
|
+
deletedAt: Date | null;
|
1117
|
+
QueryBuilderType: import("objection-js-soft-delete").SoftDeleteQueryBuilder<import("../models/transaction").Transaction, import("../models/transaction").Transaction[]> & import("objection").QueryBuilder<import("../models/transaction").Transaction, import("../models/transaction").Transaction[]>;
|
1118
|
+
$modelClass: import("objection").ModelClass<import("../models/transaction").Transaction>;
|
1119
|
+
}>;
|
1120
|
+
refund: import("@trpc/server").BuildProcedure<"mutation", {
|
1146
1121
|
_config: import("@trpc/server").RootConfig<{
|
1147
1122
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1148
1123
|
meta: object;
|
@@ -1151,28 +1126,24 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1151
1126
|
}>;
|
1152
1127
|
_meta: object;
|
1153
1128
|
_ctx_out: {
|
1129
|
+
user: import("../types/auth").TJwtPayload;
|
1154
1130
|
req: import("http").IncomingMessage;
|
1155
1131
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1156
|
-
user: import("../types/auth").TJwtPayload;
|
1157
1132
|
};
|
1158
1133
|
_input_in: {
|
1159
1134
|
authorization?: string | undefined;
|
1160
|
-
|
1161
|
-
|
1162
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1163
|
-
teamRosterId: number;
|
1135
|
+
transactionId: number;
|
1136
|
+
amount: number;
|
1164
1137
|
};
|
1165
1138
|
_input_out: {
|
1166
1139
|
authorization?: string | undefined;
|
1167
|
-
|
1168
|
-
|
1169
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1170
|
-
teamRosterId: number;
|
1140
|
+
transactionId: number;
|
1141
|
+
amount: number;
|
1171
1142
|
};
|
1172
1143
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1173
1144
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1174
|
-
},
|
1175
|
-
|
1145
|
+
}, void>;
|
1146
|
+
export: import("@trpc/server").BuildProcedure<"mutation", {
|
1176
1147
|
_config: import("@trpc/server").RootConfig<{
|
1177
1148
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1178
1149
|
meta: object;
|
@@ -1181,28 +1152,48 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1181
1152
|
}>;
|
1182
1153
|
_meta: object;
|
1183
1154
|
_ctx_out: {
|
1155
|
+
user: import("../types/auth").TJwtPayload;
|
1184
1156
|
req: import("http").IncomingMessage;
|
1185
1157
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1186
|
-
user: import("../types/auth").TJwtPayload;
|
1187
1158
|
};
|
1188
1159
|
_input_in: {
|
1189
1160
|
authorization?: string | undefined;
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1161
|
+
limit: number;
|
1162
|
+
page: number;
|
1163
|
+
direction: "asc" | "desc";
|
1164
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1165
|
+
search?: string | undefined;
|
1166
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1167
|
+
orgWorkspaceId?: number | undefined;
|
1194
1168
|
};
|
1195
1169
|
_input_out: {
|
1196
1170
|
authorization?: string | undefined;
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1171
|
+
limit: number;
|
1172
|
+
page: number;
|
1173
|
+
direction: "asc" | "desc";
|
1174
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1175
|
+
search?: string | undefined;
|
1176
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1177
|
+
orgWorkspaceId?: number | undefined;
|
1201
1178
|
};
|
1202
1179
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1203
1180
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1204
|
-
},
|
1205
|
-
|
1181
|
+
}, string>;
|
1182
|
+
}>;
|
1183
|
+
}>;
|
1184
|
+
export declare const createTrpcCaller: import("@trpc/server").RouterCaller<import("@trpc/server/dist/core/router").RouterDef<import("@trpc/server").RootConfig<{
|
1185
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1186
|
+
meta: object;
|
1187
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1188
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1189
|
+
}>, {
|
1190
|
+
discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1191
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1192
|
+
meta: object;
|
1193
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1194
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1195
|
+
}>, {
|
1196
|
+
get: import("@trpc/server").BuildProcedure<"mutation", {
|
1206
1197
|
_config: import("@trpc/server").RootConfig<{
|
1207
1198
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1208
1199
|
meta: object;
|
@@ -1211,9 +1202,9 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1211
1202
|
}>;
|
1212
1203
|
_meta: object;
|
1213
1204
|
_ctx_out: {
|
1205
|
+
user: import("../types/auth").TJwtPayload;
|
1214
1206
|
req: import("http").IncomingMessage;
|
1215
1207
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1216
|
-
user: import("../types/auth").TJwtPayload;
|
1217
1208
|
};
|
1218
1209
|
_input_in: {
|
1219
1210
|
authorization?: string | undefined;
|
@@ -1225,8 +1216,8 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1225
1216
|
};
|
1226
1217
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1227
1218
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1228
|
-
},
|
1229
|
-
|
1219
|
+
}, import("../modules/discount_code/discount_code.model").DiscountCode>;
|
1220
|
+
list: import("@trpc/server").BuildProcedure<"query", {
|
1230
1221
|
_config: import("@trpc/server").RootConfig<{
|
1231
1222
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1232
1223
|
meta: object;
|
@@ -1235,69 +1226,810 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1235
1226
|
}>;
|
1236
1227
|
_meta: object;
|
1237
1228
|
_ctx_out: {
|
1229
|
+
user: import("../types/auth").TJwtPayload;
|
1238
1230
|
req: import("http").IncomingMessage;
|
1239
1231
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1240
|
-
user: import("../types/auth").TJwtPayload;
|
1241
1232
|
};
|
1242
1233
|
_input_in: {
|
1243
1234
|
authorization?: string | undefined;
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1235
|
+
limit: number;
|
1236
|
+
cursor: number;
|
1237
|
+
orgWorkspaceId?: number | null | undefined;
|
1247
1238
|
code?: string | undefined;
|
1248
|
-
|
1249
|
-
|
1239
|
+
direction?: "asc" | "desc" | undefined;
|
1240
|
+
listExpired?: boolean | undefined;
|
1250
1241
|
};
|
1251
1242
|
_input_out: {
|
1252
1243
|
authorization?: string | undefined;
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1244
|
+
limit: number;
|
1245
|
+
direction: "asc" | "desc";
|
1246
|
+
cursor: number;
|
1247
|
+
listExpired: boolean;
|
1248
|
+
orgWorkspaceId?: number | null | undefined;
|
1257
1249
|
code?: string | undefined;
|
1258
|
-
paymentAmount?: number | undefined;
|
1259
1250
|
};
|
1260
1251
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1261
1252
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1262
1253
|
}, {
|
1263
|
-
|
1254
|
+
items: import("objection").Page<import("../modules/discount_code/discount_code.model").DiscountCode>;
|
1255
|
+
nextCursor: number | undefined;
|
1264
1256
|
}>;
|
1265
|
-
|
1266
|
-
oauth: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1267
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1268
|
-
meta: object;
|
1269
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
1270
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
1271
|
-
}>, {
|
1272
|
-
googleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
1257
|
+
create: import("@trpc/server").BuildProcedure<"mutation", {
|
1273
1258
|
_config: import("@trpc/server").RootConfig<{
|
1274
1259
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1275
1260
|
meta: object;
|
1276
1261
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1277
1262
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1278
1263
|
}>;
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1264
|
+
_meta: object;
|
1265
|
+
_ctx_out: {
|
1266
|
+
user: import("../types/auth").TJwtPayload;
|
1267
|
+
req: import("http").IncomingMessage;
|
1268
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1269
|
+
};
|
1270
|
+
_input_in: {
|
1271
|
+
authorization?: string | undefined;
|
1272
|
+
description: string;
|
1273
|
+
code: string;
|
1274
|
+
appliesWhen: "purchase";
|
1275
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1276
|
+
amountType: "flat-rate" | "percentage";
|
1277
|
+
amountValue: number;
|
1278
|
+
validFrom: Date | null;
|
1279
|
+
validUntil: Date | null;
|
1280
|
+
orgWorkspaceId?: number | null | undefined;
|
1281
|
+
};
|
1282
|
+
_input_out: {
|
1283
|
+
authorization?: string | undefined;
|
1284
|
+
description: string;
|
1285
|
+
code: string;
|
1286
|
+
appliesWhen: "purchase";
|
1287
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1288
|
+
amountType: "flat-rate" | "percentage";
|
1289
|
+
amountValue: number;
|
1290
|
+
validFrom: Date | null;
|
1291
|
+
validUntil: Date | null;
|
1292
|
+
orgWorkspaceId?: number | null | undefined;
|
1293
|
+
};
|
1282
1294
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1283
1295
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1296
|
+
}, {
|
1297
|
+
id: number;
|
1298
|
+
}>;
|
1299
|
+
update: import("@trpc/server").BuildProcedure<"mutation", {
|
1300
|
+
_config: import("@trpc/server").RootConfig<{
|
1301
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1302
|
+
meta: object;
|
1303
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1304
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1305
|
+
}>;
|
1284
1306
|
_meta: object;
|
1285
|
-
|
1286
|
-
|
1307
|
+
_ctx_out: {
|
1308
|
+
user: import("../types/auth").TJwtPayload;
|
1309
|
+
req: import("http").IncomingMessage;
|
1310
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1311
|
+
};
|
1312
|
+
_input_in: {
|
1313
|
+
authorization?: string | undefined;
|
1314
|
+
id: number;
|
1315
|
+
description: string;
|
1316
|
+
code: string;
|
1317
|
+
appliesWhen: "purchase";
|
1318
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1319
|
+
amountType: "flat-rate" | "percentage";
|
1320
|
+
amountValue: number;
|
1321
|
+
validFrom: Date | null;
|
1322
|
+
validUntil: Date | null;
|
1323
|
+
usageLimit: number | null;
|
1324
|
+
orgWorkspaceId?: number | null | undefined;
|
1325
|
+
};
|
1326
|
+
_input_out: {
|
1327
|
+
authorization?: string | undefined;
|
1328
|
+
id: number;
|
1329
|
+
description: string;
|
1330
|
+
code: string;
|
1331
|
+
appliesWhen: "purchase";
|
1332
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1333
|
+
amountType: "flat-rate" | "percentage";
|
1334
|
+
amountValue: number;
|
1335
|
+
validFrom: Date | null;
|
1336
|
+
validUntil: Date | null;
|
1337
|
+
usageLimit: number | null;
|
1338
|
+
orgWorkspaceId?: number | null | undefined;
|
1339
|
+
};
|
1340
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1341
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1342
|
+
}, void>;
|
1343
|
+
delete: import("@trpc/server").BuildProcedure<"mutation", {
|
1287
1344
|
_config: import("@trpc/server").RootConfig<{
|
1288
1345
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1289
1346
|
meta: object;
|
1290
1347
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1291
1348
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1292
1349
|
}>;
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1350
|
+
_meta: object;
|
1351
|
+
_ctx_out: {
|
1352
|
+
user: import("../types/auth").TJwtPayload;
|
1353
|
+
req: import("http").IncomingMessage;
|
1354
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1355
|
+
};
|
1356
|
+
_input_in: {
|
1357
|
+
authorization?: string | undefined;
|
1358
|
+
id: number;
|
1359
|
+
};
|
1360
|
+
_input_out: {
|
1361
|
+
authorization?: string | undefined;
|
1362
|
+
id: number;
|
1363
|
+
};
|
1364
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1365
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1366
|
+
}, void>;
|
1367
|
+
check: import("@trpc/server").BuildProcedure<"mutation", {
|
1368
|
+
_config: import("@trpc/server").RootConfig<{
|
1369
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1370
|
+
meta: object;
|
1371
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1372
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1373
|
+
}>;
|
1374
|
+
_meta: object;
|
1375
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1376
|
+
_input_in: {
|
1377
|
+
id: number;
|
1378
|
+
appliesWhen: "purchase";
|
1379
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1380
|
+
productValue: number;
|
1381
|
+
code?: string | undefined;
|
1382
|
+
};
|
1383
|
+
_input_out: {
|
1384
|
+
id: number;
|
1385
|
+
appliesWhen: "purchase";
|
1386
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1387
|
+
productValue: number;
|
1388
|
+
code?: string | undefined;
|
1389
|
+
};
|
1390
|
+
_output_in: {
|
1391
|
+
description: string;
|
1392
|
+
code: string;
|
1393
|
+
amountType: "flat-rate" | "percentage";
|
1394
|
+
amountValue: number;
|
1395
|
+
reducedValue: number;
|
1396
|
+
newValue: number;
|
1397
|
+
};
|
1398
|
+
_output_out: {
|
1399
|
+
description: string;
|
1400
|
+
code: string;
|
1401
|
+
amountType: "flat-rate" | "percentage";
|
1402
|
+
amountValue: number;
|
1403
|
+
reducedValue: number;
|
1404
|
+
newValue: number;
|
1405
|
+
};
|
1406
|
+
}, unknown>;
|
1407
|
+
}>;
|
1408
|
+
freeAgentPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1409
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1410
|
+
meta: object;
|
1411
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1412
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1413
|
+
}>, {
|
1414
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
1415
|
+
_config: import("@trpc/server").RootConfig<{
|
1416
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1417
|
+
meta: object;
|
1418
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1419
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1420
|
+
}>;
|
1421
|
+
_meta: object;
|
1422
|
+
_ctx_out: {
|
1423
|
+
user: import("../types/auth").TJwtPayload;
|
1424
|
+
req: import("http").IncomingMessage;
|
1425
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1426
|
+
};
|
1427
|
+
_input_in: {
|
1428
|
+
authorization?: string | undefined;
|
1429
|
+
description: string;
|
1430
|
+
freeAgentId: number;
|
1431
|
+
leagueId?: number | undefined;
|
1432
|
+
code?: string | undefined;
|
1433
|
+
paymentMode?: "session" | "intent" | undefined;
|
1434
|
+
cancelPath?: string | undefined;
|
1435
|
+
};
|
1436
|
+
_input_out: {
|
1437
|
+
authorization?: string | undefined;
|
1438
|
+
description: string;
|
1439
|
+
paymentMode: "session" | "intent";
|
1440
|
+
freeAgentId: number;
|
1441
|
+
leagueId?: number | undefined;
|
1442
|
+
code?: string | undefined;
|
1443
|
+
cancelPath?: string | undefined;
|
1444
|
+
};
|
1445
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1446
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1447
|
+
}, {
|
1448
|
+
ephemeralKey: string | undefined;
|
1449
|
+
paymentIntentClientSecret: string;
|
1450
|
+
paymentIntentId: string;
|
1451
|
+
customerId: string;
|
1452
|
+
orgPublishableKey: string | undefined;
|
1453
|
+
orgStripeAccountId: string;
|
1454
|
+
paymentIntent: {
|
1455
|
+
intent: import("stripe").Stripe.Response<import("stripe").Stripe.PaymentIntent>;
|
1456
|
+
discountAndFee: {
|
1457
|
+
discountApplied: number;
|
1458
|
+
discountedAmount: number;
|
1459
|
+
priceAmount: number;
|
1460
|
+
otherTaxLabel: string;
|
1461
|
+
otherTaxPercent: number;
|
1462
|
+
otherTax: number;
|
1463
|
+
bantrTax: number;
|
1464
|
+
stripeTax: number;
|
1465
|
+
totalTax: number;
|
1466
|
+
totalWithTax: number;
|
1467
|
+
transferAmount: number;
|
1468
|
+
};
|
1469
|
+
};
|
1470
|
+
} | {
|
1471
|
+
redirectUrl: string;
|
1472
|
+
}>;
|
1473
|
+
}>;
|
1474
|
+
leaguePayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1475
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1476
|
+
meta: object;
|
1477
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1478
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1479
|
+
}>, {
|
1480
|
+
trackUsersAndPayments: import("@trpc/server").BuildProcedure<"query", {
|
1481
|
+
_config: import("@trpc/server").RootConfig<{
|
1482
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1483
|
+
meta: object;
|
1484
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1485
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1486
|
+
}>;
|
1487
|
+
_meta: object;
|
1488
|
+
_ctx_out: {
|
1489
|
+
user: import("../types/auth").TJwtPayload;
|
1490
|
+
req: import("http").IncomingMessage;
|
1491
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1492
|
+
};
|
1493
|
+
_input_in: {
|
1494
|
+
authorization?: string | undefined;
|
1495
|
+
teamId: number;
|
1496
|
+
leagueId: number;
|
1497
|
+
};
|
1498
|
+
_input_out: {
|
1499
|
+
authorization?: string | undefined;
|
1500
|
+
teamId: number;
|
1501
|
+
leagueId: number;
|
1502
|
+
};
|
1503
|
+
_output_in: {
|
1504
|
+
id: number;
|
1505
|
+
deletedAt: Date | null;
|
1506
|
+
member: {
|
1507
|
+
id: number;
|
1508
|
+
firstName: string | null;
|
1509
|
+
lastName: string | null;
|
1510
|
+
email: string;
|
1511
|
+
};
|
1512
|
+
memberId: number;
|
1513
|
+
totalPaid: number;
|
1514
|
+
payments: {
|
1515
|
+
id: number;
|
1516
|
+
createdAt: string | Date;
|
1517
|
+
payerId: number;
|
1518
|
+
amountApplied: number | null;
|
1519
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1520
|
+
price: number;
|
1521
|
+
}[];
|
1522
|
+
}[];
|
1523
|
+
_output_out: {
|
1524
|
+
id: number;
|
1525
|
+
deletedAt: Date | null;
|
1526
|
+
member: {
|
1527
|
+
id: number;
|
1528
|
+
firstName: string | null;
|
1529
|
+
lastName: string | null;
|
1530
|
+
email: string;
|
1531
|
+
};
|
1532
|
+
memberId: number;
|
1533
|
+
totalPaid: number;
|
1534
|
+
payments: {
|
1535
|
+
id: number;
|
1536
|
+
createdAt: string | Date;
|
1537
|
+
payerId: number;
|
1538
|
+
amountApplied: number | null;
|
1539
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1540
|
+
price: number;
|
1541
|
+
}[];
|
1542
|
+
}[];
|
1543
|
+
}, unknown>;
|
1544
|
+
insertOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
1545
|
+
_config: import("@trpc/server").RootConfig<{
|
1546
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1547
|
+
meta: object;
|
1548
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1549
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1550
|
+
}>;
|
1551
|
+
_meta: object;
|
1552
|
+
_ctx_out: {
|
1553
|
+
user: import("../types/auth").TJwtPayload;
|
1554
|
+
req: import("http").IncomingMessage;
|
1555
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1556
|
+
};
|
1557
|
+
_input_in: {
|
1558
|
+
authorization?: string | undefined;
|
1559
|
+
leagueId: number;
|
1560
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1561
|
+
price: number;
|
1562
|
+
teamRosterId: number;
|
1563
|
+
};
|
1564
|
+
_input_out: {
|
1565
|
+
authorization?: string | undefined;
|
1566
|
+
leagueId: number;
|
1567
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1568
|
+
price: number;
|
1569
|
+
teamRosterId: number;
|
1570
|
+
};
|
1571
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1572
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1573
|
+
}, null>;
|
1574
|
+
updateOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
1575
|
+
_config: import("@trpc/server").RootConfig<{
|
1576
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1577
|
+
meta: object;
|
1578
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1579
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1580
|
+
}>;
|
1581
|
+
_meta: object;
|
1582
|
+
_ctx_out: {
|
1583
|
+
user: import("../types/auth").TJwtPayload;
|
1584
|
+
req: import("http").IncomingMessage;
|
1585
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1586
|
+
};
|
1587
|
+
_input_in: {
|
1588
|
+
authorization?: string | undefined;
|
1589
|
+
id: number;
|
1590
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1591
|
+
price: number;
|
1592
|
+
teamRosterId: number;
|
1593
|
+
};
|
1594
|
+
_input_out: {
|
1595
|
+
authorization?: string | undefined;
|
1596
|
+
id: number;
|
1597
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1598
|
+
price: number;
|
1599
|
+
teamRosterId: number;
|
1600
|
+
};
|
1601
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1602
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1603
|
+
}, null>;
|
1604
|
+
deleteOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
1605
|
+
_config: import("@trpc/server").RootConfig<{
|
1606
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1607
|
+
meta: object;
|
1608
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1609
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1610
|
+
}>;
|
1611
|
+
_meta: object;
|
1612
|
+
_ctx_out: {
|
1613
|
+
user: import("../types/auth").TJwtPayload;
|
1614
|
+
req: import("http").IncomingMessage;
|
1615
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1616
|
+
};
|
1617
|
+
_input_in: {
|
1618
|
+
authorization?: string | undefined;
|
1619
|
+
id: number;
|
1620
|
+
};
|
1621
|
+
_input_out: {
|
1622
|
+
authorization?: string | undefined;
|
1623
|
+
id: number;
|
1624
|
+
};
|
1625
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1626
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1627
|
+
}, null>;
|
1628
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
1629
|
+
_config: import("@trpc/server").RootConfig<{
|
1630
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1631
|
+
meta: object;
|
1632
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1633
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1634
|
+
}>;
|
1635
|
+
_meta: object;
|
1636
|
+
_ctx_out: {
|
1637
|
+
user: import("../types/auth").TJwtPayload;
|
1638
|
+
req: import("http").IncomingMessage;
|
1639
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1640
|
+
};
|
1641
|
+
_input_in: {
|
1642
|
+
authorization?: string | undefined;
|
1643
|
+
teamId: number;
|
1644
|
+
leagueId: number;
|
1645
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1646
|
+
code?: string | undefined;
|
1647
|
+
paymentMode?: "session" | "intent" | undefined;
|
1648
|
+
paymentAmount?: number | undefined;
|
1649
|
+
};
|
1650
|
+
_input_out: {
|
1651
|
+
authorization?: string | undefined;
|
1652
|
+
teamId: number;
|
1653
|
+
leagueId: number;
|
1654
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1655
|
+
paymentMode: "session" | "intent";
|
1656
|
+
code?: string | undefined;
|
1657
|
+
paymentAmount?: number | undefined;
|
1658
|
+
};
|
1659
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1660
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1661
|
+
}, {
|
1662
|
+
eventName: string;
|
1663
|
+
}>;
|
1664
|
+
}>;
|
1665
|
+
oauth: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1666
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1667
|
+
meta: object;
|
1668
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1669
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1670
|
+
}>, {
|
1671
|
+
googleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
1672
|
+
_config: import("@trpc/server").RootConfig<{
|
1673
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1674
|
+
meta: object;
|
1675
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1676
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1677
|
+
}>;
|
1678
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1679
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
1680
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
1681
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1682
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1683
|
+
_meta: object;
|
1684
|
+
}, string>;
|
1685
|
+
googleCallback: import("@trpc/server").BuildProcedure<"query", {
|
1686
|
+
_config: import("@trpc/server").RootConfig<{
|
1687
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1688
|
+
meta: object;
|
1689
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1690
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1691
|
+
}>;
|
1692
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1693
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
1694
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
1695
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1696
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1697
|
+
_meta: object;
|
1698
|
+
}, void>;
|
1699
|
+
googleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
1700
|
+
_config: import("@trpc/server").RootConfig<{
|
1701
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1702
|
+
meta: object;
|
1703
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1704
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1705
|
+
}>;
|
1706
|
+
_meta: object;
|
1707
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1708
|
+
_input_in: {
|
1709
|
+
code: string;
|
1710
|
+
idToken?: string | undefined;
|
1711
|
+
};
|
1712
|
+
_input_out: {
|
1713
|
+
code: string;
|
1714
|
+
idToken?: string | undefined;
|
1715
|
+
};
|
1716
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1717
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1718
|
+
}, {
|
1719
|
+
accessToken: string;
|
1720
|
+
refreshToken: string;
|
1721
|
+
accountStatus: string;
|
1722
|
+
redirectTeamId?: number | null;
|
1723
|
+
authSchemas: import("../types/member").TAuthSchemas;
|
1724
|
+
memberId: number;
|
1725
|
+
bio: string | null;
|
1726
|
+
city?: string;
|
1727
|
+
street?: string;
|
1728
|
+
state?: string;
|
1729
|
+
avatar: string | null;
|
1730
|
+
teams: import("../models/team").Team[];
|
1731
|
+
favoriteTeam: number | undefined | null;
|
1732
|
+
zip: string | undefined;
|
1733
|
+
phoneNumber: string | null;
|
1734
|
+
gender?: string;
|
1735
|
+
birthday: string | null;
|
1736
|
+
location: string | null;
|
1737
|
+
email: string;
|
1738
|
+
firstName: string | null;
|
1739
|
+
lastName: string | null;
|
1740
|
+
}>;
|
1741
|
+
appleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
1742
|
+
_config: import("@trpc/server").RootConfig<{
|
1743
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1744
|
+
meta: object;
|
1745
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1746
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1747
|
+
}>;
|
1748
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1749
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
1750
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
1751
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1752
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1753
|
+
_meta: object;
|
1754
|
+
}, string>;
|
1755
|
+
appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
1756
|
+
_config: import("@trpc/server").RootConfig<{
|
1757
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1758
|
+
meta: object;
|
1759
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1760
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1761
|
+
}>;
|
1762
|
+
_meta: object;
|
1763
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1764
|
+
_input_in: {
|
1765
|
+
code: string;
|
1766
|
+
};
|
1767
|
+
_input_out: {
|
1768
|
+
code: string;
|
1769
|
+
};
|
1770
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1771
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1772
|
+
}, void>;
|
1773
|
+
appleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
1774
|
+
_config: import("@trpc/server").RootConfig<{
|
1775
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1776
|
+
meta: object;
|
1777
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1778
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1779
|
+
}>;
|
1780
|
+
_meta: object;
|
1781
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1782
|
+
_input_in: {
|
1783
|
+
idToken: string;
|
1784
|
+
};
|
1785
|
+
_input_out: {
|
1786
|
+
idToken: string;
|
1787
|
+
};
|
1788
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1789
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1790
|
+
}, {
|
1791
|
+
accessToken: string;
|
1792
|
+
refreshToken: string;
|
1793
|
+
accountStatus: string;
|
1794
|
+
redirectTeamId?: number | null;
|
1795
|
+
authSchemas: import("../types/member").TAuthSchemas;
|
1796
|
+
memberId: number;
|
1797
|
+
bio: string | null;
|
1798
|
+
city?: string;
|
1799
|
+
street?: string;
|
1800
|
+
state?: string;
|
1801
|
+
avatar: string | null;
|
1802
|
+
teams: import("../models/team").Team[];
|
1803
|
+
favoriteTeam: number | undefined | null;
|
1804
|
+
zip: string | undefined;
|
1805
|
+
phoneNumber: string | null;
|
1806
|
+
gender?: string;
|
1807
|
+
birthday: string | null;
|
1808
|
+
location: string | null;
|
1809
|
+
email: string;
|
1810
|
+
firstName: string | null;
|
1811
|
+
lastName: string | null;
|
1812
|
+
}>;
|
1813
|
+
revokeAccessToken: import("@trpc/server").BuildProcedure<"mutation", {
|
1814
|
+
_config: import("@trpc/server").RootConfig<{
|
1815
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1816
|
+
meta: object;
|
1817
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1818
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1819
|
+
}>;
|
1820
|
+
_meta: object;
|
1821
|
+
_ctx_out: {
|
1822
|
+
user: import("../types/auth").TJwtPayload;
|
1823
|
+
req: import("http").IncomingMessage;
|
1824
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1825
|
+
};
|
1826
|
+
_input_in: {
|
1827
|
+
authorization?: string | undefined;
|
1828
|
+
provider: "google" | "apple";
|
1829
|
+
};
|
1830
|
+
_input_out: {
|
1831
|
+
authorization?: string | undefined;
|
1832
|
+
provider: "google" | "apple";
|
1833
|
+
};
|
1834
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1835
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1836
|
+
}, import("../types/auth").MemberAuthResponse>;
|
1837
|
+
}>;
|
1838
|
+
organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1839
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1840
|
+
meta: object;
|
1841
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1842
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1843
|
+
}>, {
|
1844
|
+
fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
|
1845
|
+
_config: import("@trpc/server").RootConfig<{
|
1846
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1847
|
+
meta: object;
|
1848
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1849
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1850
|
+
}>;
|
1851
|
+
_meta: object;
|
1852
|
+
_ctx_out: {
|
1853
|
+
user: import("../types/auth").TJwtPayload;
|
1854
|
+
req: import("http").IncomingMessage;
|
1855
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1856
|
+
};
|
1857
|
+
_input_in: {
|
1858
|
+
authorization?: string | undefined;
|
1859
|
+
workspaceId?: number | undefined;
|
1860
|
+
};
|
1861
|
+
_input_out: {
|
1862
|
+
authorization?: string | undefined;
|
1863
|
+
workspaceId?: number | undefined;
|
1864
|
+
};
|
1865
|
+
_output_in: {
|
1866
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1867
|
+
extraTechnologyFeePercent: number;
|
1868
|
+
extraTechnologyFeeLabel: string | null;
|
1869
|
+
};
|
1870
|
+
_output_out: {
|
1871
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1872
|
+
extraTechnologyFeePercent: number;
|
1873
|
+
extraTechnologyFeeLabel: string | null;
|
1874
|
+
};
|
1875
|
+
}, unknown>;
|
1876
|
+
updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
|
1877
|
+
_config: import("@trpc/server").RootConfig<{
|
1878
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1879
|
+
meta: object;
|
1880
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1881
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1882
|
+
}>;
|
1883
|
+
_meta: object;
|
1884
|
+
_ctx_out: {
|
1885
|
+
user: import("../types/auth").TJwtPayload;
|
1886
|
+
req: import("http").IncomingMessage;
|
1887
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1888
|
+
};
|
1889
|
+
_input_in: {
|
1890
|
+
authorization?: string | undefined;
|
1891
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1892
|
+
extraTechnologyFeePercent: number;
|
1893
|
+
extraTechnologyFeeLabel: string | null;
|
1894
|
+
workspaceId?: number | undefined;
|
1895
|
+
};
|
1896
|
+
_input_out: {
|
1897
|
+
authorization?: string | undefined;
|
1898
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1899
|
+
extraTechnologyFeePercent: number;
|
1900
|
+
extraTechnologyFeeLabel: string | null;
|
1901
|
+
workspaceId?: number | undefined;
|
1902
|
+
};
|
1903
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1904
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1905
|
+
}, void>;
|
1906
|
+
}>;
|
1907
|
+
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1908
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1909
|
+
meta: object;
|
1910
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1911
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1912
|
+
}>, {
|
1913
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
1914
|
+
_config: import("@trpc/server").RootConfig<{
|
1915
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1916
|
+
meta: object;
|
1917
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1918
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1919
|
+
}>;
|
1920
|
+
_meta: object;
|
1921
|
+
_ctx_out: {
|
1922
|
+
user: import("../types/auth").TJwtPayload;
|
1923
|
+
req: import("http").IncomingMessage;
|
1924
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1925
|
+
};
|
1926
|
+
_input_in: {
|
1927
|
+
authorization?: string | undefined;
|
1928
|
+
memberId: number;
|
1929
|
+
pickupId: number;
|
1930
|
+
code?: string | undefined;
|
1931
|
+
paymentMode?: "session" | "intent" | undefined;
|
1932
|
+
cancelPath?: string | undefined;
|
1933
|
+
};
|
1934
|
+
_input_out: {
|
1935
|
+
authorization?: string | undefined;
|
1936
|
+
memberId: number;
|
1937
|
+
paymentMode: "session" | "intent";
|
1938
|
+
pickupId: number;
|
1939
|
+
code?: string | undefined;
|
1940
|
+
cancelPath?: string | undefined;
|
1941
|
+
};
|
1942
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1943
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1944
|
+
}, {
|
1945
|
+
eventName: string;
|
1946
|
+
}>;
|
1947
|
+
}>;
|
1948
|
+
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1949
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1950
|
+
meta: object;
|
1951
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1952
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1953
|
+
}>, {
|
1954
|
+
info: import("@trpc/server").BuildProcedure<"mutation", {
|
1955
|
+
_config: import("@trpc/server").RootConfig<{
|
1956
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1957
|
+
meta: object;
|
1958
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1959
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1960
|
+
}>;
|
1961
|
+
_meta: object;
|
1962
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1963
|
+
_input_in: {
|
1964
|
+
id: number;
|
1965
|
+
appliesWhen: "purchase";
|
1966
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1967
|
+
productValue: number;
|
1968
|
+
code?: string | undefined;
|
1969
|
+
};
|
1970
|
+
_input_out: {
|
1971
|
+
id: number;
|
1972
|
+
appliesWhen: "purchase";
|
1973
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1974
|
+
productValue: number;
|
1975
|
+
code?: string | undefined;
|
1976
|
+
};
|
1977
|
+
_output_in: {
|
1978
|
+
discountApplied: number;
|
1979
|
+
totalWithTax: number;
|
1980
|
+
totalTax: number;
|
1981
|
+
otherTaxLabel: string;
|
1982
|
+
otherTax: number;
|
1983
|
+
otherTaxPercent: number;
|
1984
|
+
description?: string | undefined;
|
1985
|
+
code?: string | undefined;
|
1986
|
+
};
|
1987
|
+
_output_out: {
|
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
|
+
}, unknown>;
|
1998
|
+
}>;
|
1999
|
+
team: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
2000
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2001
|
+
meta: object;
|
2002
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2003
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2004
|
+
}>, {
|
2005
|
+
getInvitedMembers: import("@trpc/server").BuildProcedure<"query", {
|
2006
|
+
_config: import("@trpc/server").RootConfig<{
|
2007
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2008
|
+
meta: object;
|
2009
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2010
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2011
|
+
}>;
|
2012
|
+
_meta: object;
|
2013
|
+
_ctx_out: {
|
2014
|
+
user: import("../types/auth").TJwtPayload;
|
2015
|
+
req: import("http").IncomingMessage;
|
2016
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2017
|
+
};
|
2018
|
+
_input_in: {
|
2019
|
+
authorization?: string | undefined;
|
2020
|
+
teamId: number;
|
2021
|
+
};
|
2022
|
+
_input_out: {
|
2023
|
+
authorization?: string | undefined;
|
2024
|
+
teamId: number;
|
2025
|
+
};
|
1296
2026
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1297
2027
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
2028
|
+
}, (import("../models/team_roster").TeamRoster & {
|
2029
|
+
member: Pick<import("../models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
2030
|
+
invites: Pick<import("../models/invite").Invite, "isActive">[];
|
2031
|
+
})[]>;
|
2032
|
+
getInvitedByOrganization: import("@trpc/server").BuildProcedure<"query", {
|
1301
2033
|
_config: import("@trpc/server").RootConfig<{
|
1302
2034
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1303
2035
|
meta: object;
|
@@ -1305,55 +2037,66 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1305
2037
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1306
2038
|
}>;
|
1307
2039
|
_meta: object;
|
1308
|
-
_ctx_out:
|
2040
|
+
_ctx_out: {
|
2041
|
+
user: import("../types/auth").TJwtPayload;
|
2042
|
+
req: import("http").IncomingMessage;
|
2043
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2044
|
+
};
|
1309
2045
|
_input_in: {
|
1310
|
-
|
1311
|
-
|
2046
|
+
authorization?: string | undefined;
|
2047
|
+
teamId: number;
|
2048
|
+
organizationId: number;
|
1312
2049
|
};
|
1313
2050
|
_input_out: {
|
1314
|
-
|
1315
|
-
|
2051
|
+
authorization?: string | undefined;
|
2052
|
+
teamId: number;
|
2053
|
+
organizationId: number;
|
1316
2054
|
};
|
1317
2055
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1318
2056
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1319
|
-
}, {
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
authSchemas: import("../types/member").TAuthSchemas;
|
1325
|
-
memberId: number;
|
1326
|
-
bio: string | null;
|
1327
|
-
city?: string;
|
1328
|
-
street?: string;
|
1329
|
-
state?: string;
|
1330
|
-
avatar: string | null;
|
1331
|
-
teams: import("../models/team").Team[];
|
1332
|
-
favoriteTeam: number | undefined | null;
|
1333
|
-
zip: string | undefined;
|
1334
|
-
phoneNumber: string | null;
|
1335
|
-
gender?: string;
|
1336
|
-
birthday: string | null;
|
1337
|
-
location: string | null;
|
1338
|
-
email: string;
|
1339
|
-
firstName: string | null;
|
1340
|
-
lastName: string | null;
|
1341
|
-
}>;
|
1342
|
-
appleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
2057
|
+
}, (import("../models/team_roster").TeamRoster & {
|
2058
|
+
member: Pick<import("../models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
2059
|
+
invites: Pick<import("../models/invite").Invite, "isActive">[];
|
2060
|
+
})[]>;
|
2061
|
+
createInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
1343
2062
|
_config: import("@trpc/server").RootConfig<{
|
1344
2063
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1345
2064
|
meta: object;
|
1346
2065
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1347
2066
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1348
2067
|
}>;
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
2068
|
+
_meta: object;
|
2069
|
+
_ctx_out: {
|
2070
|
+
user: import("../types/auth").TJwtPayload;
|
2071
|
+
req: import("http").IncomingMessage;
|
2072
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2073
|
+
};
|
2074
|
+
_input_in: {
|
2075
|
+
authorization?: string | undefined;
|
2076
|
+
teamId: number;
|
2077
|
+
invites: {
|
2078
|
+
firstName: string;
|
2079
|
+
lastName: string;
|
2080
|
+
email: string;
|
2081
|
+
}[];
|
2082
|
+
leagueId?: number | undefined;
|
2083
|
+
organizationId?: number | undefined;
|
2084
|
+
};
|
2085
|
+
_input_out: {
|
2086
|
+
authorization?: string | undefined;
|
2087
|
+
teamId: number;
|
2088
|
+
invites: {
|
2089
|
+
firstName: string;
|
2090
|
+
lastName: string;
|
2091
|
+
email: string;
|
2092
|
+
}[];
|
2093
|
+
leagueId?: number | undefined;
|
2094
|
+
organizationId?: number | undefined;
|
2095
|
+
};
|
1352
2096
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1353
2097
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1354
|
-
|
1355
|
-
|
1356
|
-
appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
2098
|
+
}, void>;
|
2099
|
+
createInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
1357
2100
|
_config: import("@trpc/server").RootConfig<{
|
1358
2101
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1359
2102
|
meta: object;
|
@@ -1361,17 +2104,37 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1361
2104
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1362
2105
|
}>;
|
1363
2106
|
_meta: object;
|
1364
|
-
_ctx_out:
|
2107
|
+
_ctx_out: {
|
2108
|
+
user: import("../types/auth").TJwtPayload;
|
2109
|
+
req: import("http").IncomingMessage;
|
2110
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2111
|
+
};
|
1365
2112
|
_input_in: {
|
1366
|
-
|
2113
|
+
authorization?: string | undefined;
|
2114
|
+
teamId: number;
|
2115
|
+
invites: {
|
2116
|
+
firstName: string;
|
2117
|
+
lastName: string;
|
2118
|
+
email: string;
|
2119
|
+
}[];
|
2120
|
+
leagueId?: number | undefined;
|
2121
|
+
organizationId?: number | undefined;
|
1367
2122
|
};
|
1368
2123
|
_input_out: {
|
1369
|
-
|
2124
|
+
authorization?: string | undefined;
|
2125
|
+
teamId: number;
|
2126
|
+
invites: {
|
2127
|
+
firstName: string;
|
2128
|
+
lastName: string;
|
2129
|
+
email: string;
|
2130
|
+
}[];
|
2131
|
+
leagueId?: number | undefined;
|
2132
|
+
organizationId?: number | undefined;
|
1370
2133
|
};
|
1371
2134
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1372
2135
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1373
2136
|
}, void>;
|
1374
|
-
|
2137
|
+
cancelInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
1375
2138
|
_config: import("@trpc/server").RootConfig<{
|
1376
2139
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1377
2140
|
meta: object;
|
@@ -1379,39 +2142,25 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1379
2142
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1380
2143
|
}>;
|
1381
2144
|
_meta: object;
|
1382
|
-
_ctx_out:
|
2145
|
+
_ctx_out: {
|
2146
|
+
user: import("../types/auth").TJwtPayload;
|
2147
|
+
req: import("http").IncomingMessage;
|
2148
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2149
|
+
};
|
1383
2150
|
_input_in: {
|
1384
|
-
|
2151
|
+
authorization?: string | undefined;
|
2152
|
+
teamId: number;
|
2153
|
+
inviteId: number;
|
1385
2154
|
};
|
1386
2155
|
_input_out: {
|
1387
|
-
|
2156
|
+
authorization?: string | undefined;
|
2157
|
+
teamId: number;
|
2158
|
+
inviteId: number;
|
1388
2159
|
};
|
1389
2160
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1390
2161
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1391
|
-
},
|
1392
|
-
|
1393
|
-
refreshToken: string;
|
1394
|
-
accountStatus: string;
|
1395
|
-
redirectTeamId?: number | null;
|
1396
|
-
authSchemas: import("../types/member").TAuthSchemas;
|
1397
|
-
memberId: number;
|
1398
|
-
bio: string | null;
|
1399
|
-
city?: string;
|
1400
|
-
street?: string;
|
1401
|
-
state?: string;
|
1402
|
-
avatar: string | null;
|
1403
|
-
teams: import("../models/team").Team[];
|
1404
|
-
favoriteTeam: number | undefined | null;
|
1405
|
-
zip: string | undefined;
|
1406
|
-
phoneNumber: string | null;
|
1407
|
-
gender?: string;
|
1408
|
-
birthday: string | null;
|
1409
|
-
location: string | null;
|
1410
|
-
email: string;
|
1411
|
-
firstName: string | null;
|
1412
|
-
lastName: string | null;
|
1413
|
-
}>;
|
1414
|
-
revokeAccessToken: import("@trpc/server").BuildProcedure<"mutation", {
|
2162
|
+
}, void>;
|
2163
|
+
cancelInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
1415
2164
|
_config: import("@trpc/server").RootConfig<{
|
1416
2165
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1417
2166
|
meta: object;
|
@@ -1420,29 +2169,31 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1420
2169
|
}>;
|
1421
2170
|
_meta: object;
|
1422
2171
|
_ctx_out: {
|
2172
|
+
user: import("../types/auth").TJwtPayload;
|
1423
2173
|
req: import("http").IncomingMessage;
|
1424
2174
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1425
|
-
user: import("../types/auth").TJwtPayload;
|
1426
2175
|
};
|
1427
2176
|
_input_in: {
|
1428
2177
|
authorization?: string | undefined;
|
1429
|
-
|
2178
|
+
teamId: number;
|
2179
|
+
inviteId: number;
|
1430
2180
|
};
|
1431
2181
|
_input_out: {
|
1432
2182
|
authorization?: string | undefined;
|
1433
|
-
|
2183
|
+
teamId: number;
|
2184
|
+
inviteId: number;
|
1434
2185
|
};
|
1435
2186
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1436
2187
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1437
|
-
},
|
2188
|
+
}, void>;
|
1438
2189
|
}>;
|
1439
|
-
|
2190
|
+
transaction: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1440
2191
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1441
2192
|
meta: object;
|
1442
2193
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1443
2194
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1444
2195
|
}>, {
|
1445
|
-
|
2196
|
+
list: import("@trpc/server").BuildProcedure<"query", {
|
1446
2197
|
_config: import("@trpc/server").RootConfig<{
|
1447
2198
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1448
2199
|
meta: object;
|
@@ -1451,30 +2202,39 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1451
2202
|
}>;
|
1452
2203
|
_meta: object;
|
1453
2204
|
_ctx_out: {
|
2205
|
+
user: import("../types/auth").TJwtPayload;
|
1454
2206
|
req: import("http").IncomingMessage;
|
1455
2207
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1456
|
-
user: import("../types/auth").TJwtPayload;
|
1457
2208
|
};
|
1458
2209
|
_input_in: {
|
1459
2210
|
authorization?: string | undefined;
|
1460
|
-
|
2211
|
+
limit: number;
|
2212
|
+
page: number;
|
2213
|
+
direction: "asc" | "desc";
|
2214
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
2215
|
+
search?: string | undefined;
|
2216
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
2217
|
+
orgWorkspaceId?: number | undefined;
|
1461
2218
|
};
|
1462
2219
|
_input_out: {
|
1463
2220
|
authorization?: string | undefined;
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
_output_out: {
|
1472
|
-
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1473
|
-
extraTechnologyFeePercent: number;
|
1474
|
-
extraTechnologyFeeLabel: string | null;
|
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;
|
1475
2228
|
};
|
1476
|
-
|
1477
|
-
|
2229
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2230
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2231
|
+
}, {
|
2232
|
+
items: import("../models/transaction").Transaction[];
|
2233
|
+
curPage: number;
|
2234
|
+
hasPrev: boolean;
|
2235
|
+
hasNext: boolean;
|
2236
|
+
}>;
|
2237
|
+
info: import("@trpc/server").BuildProcedure<"query", {
|
1478
2238
|
_config: import("@trpc/server").RootConfig<{
|
1479
2239
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1480
2240
|
meta: object;
|
@@ -1483,35 +2243,64 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1483
2243
|
}>;
|
1484
2244
|
_meta: object;
|
1485
2245
|
_ctx_out: {
|
2246
|
+
user: import("../types/auth").TJwtPayload;
|
1486
2247
|
req: import("http").IncomingMessage;
|
1487
2248
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1488
|
-
user: import("../types/auth").TJwtPayload;
|
1489
2249
|
};
|
1490
2250
|
_input_in: {
|
1491
2251
|
authorization?: string | undefined;
|
1492
|
-
|
1493
|
-
extraTechnologyFeePercent: number;
|
1494
|
-
extraTechnologyFeeLabel: string | null;
|
1495
|
-
workspaceId?: number | undefined;
|
2252
|
+
transactionId: number;
|
1496
2253
|
};
|
1497
2254
|
_input_out: {
|
1498
2255
|
authorization?: string | undefined;
|
1499
|
-
|
1500
|
-
extraTechnologyFeePercent: number;
|
1501
|
-
extraTechnologyFeeLabel: string | null;
|
1502
|
-
workspaceId?: number | undefined;
|
2256
|
+
transactionId: number;
|
1503
2257
|
};
|
1504
2258
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1505
2259
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1506
|
-
},
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
2260
|
+
}, {
|
2261
|
+
stripeTransfers: import("../models/stripe_transfer").StripeTransfer[];
|
2262
|
+
id: number;
|
2263
|
+
payerId: number;
|
2264
|
+
payer?: import("../models/member").Member;
|
2265
|
+
paymentMethod: import("../modules/transaction/transaction.schema").TRANSACTION_METHOD_ENUM;
|
2266
|
+
discountCodeId: number | null;
|
2267
|
+
discountCode?: import("../modules/discount_code/discount_code.model").DiscountCode;
|
2268
|
+
documentAmount: number;
|
2269
|
+
discountedAmount: number;
|
2270
|
+
organizerFee: number;
|
2271
|
+
bantrFee: number;
|
2272
|
+
stripeFee: number;
|
2273
|
+
chargedAmount: number;
|
2274
|
+
paidAmount: number;
|
2275
|
+
transferAmount: number;
|
2276
|
+
refundedAmount: number;
|
2277
|
+
transferSent: boolean;
|
2278
|
+
currency: import("../constants").VALID_CURRENCY_CODES;
|
2279
|
+
status: import("../modules/transaction/transaction.schema").TRANSACTION_STATUS_ENUM;
|
2280
|
+
expiresAt: Date | null;
|
2281
|
+
lastStatusUpdateAt: Date | null;
|
2282
|
+
leaguePaymentId: number | null;
|
2283
|
+
leaguePayment?: import("../models/league_payment").LeaguePayment;
|
2284
|
+
league?: import("../models/league").League;
|
2285
|
+
pickupPaymentId: number | null;
|
2286
|
+
pickupPayment?: import("../models/pickup_payments").PickupPayment;
|
2287
|
+
pickup?: import("../models/pickup").Pickup;
|
2288
|
+
freeAgentPaymentId: number | null;
|
2289
|
+
freeAgentPayment?: import("../models/free_agent_payment").FreeAgentPayment;
|
2290
|
+
orgFreeAgent?: import("../models/organization_free_agent").OrgFreeAgent;
|
2291
|
+
organizationId: number;
|
2292
|
+
organization?: import("../models/organization").Organization;
|
2293
|
+
orgWorkspaceId: number | null;
|
2294
|
+
orgWorkspace?: import("../models/organization_workspace").OrgWorkspace;
|
2295
|
+
transactionEvents?: import("../models/transaction_event").TransactionEvent[];
|
2296
|
+
stripeTransactions?: import("../models/stripe_transaction").StripeTransaction[];
|
2297
|
+
updatedAt: Date;
|
2298
|
+
createdAt: Date;
|
2299
|
+
deletedAt: Date | null;
|
2300
|
+
QueryBuilderType: import("objection-js-soft-delete").SoftDeleteQueryBuilder<import("../models/transaction").Transaction, import("../models/transaction").Transaction[]> & import("objection").QueryBuilder<import("../models/transaction").Transaction, import("../models/transaction").Transaction[]>;
|
2301
|
+
$modelClass: import("objection").ModelClass<import("../models/transaction").Transaction>;
|
2302
|
+
}>;
|
2303
|
+
refund: import("@trpc/server").BuildProcedure<"mutation", {
|
1515
2304
|
_config: import("@trpc/server").RootConfig<{
|
1516
2305
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1517
2306
|
meta: object;
|
@@ -1520,39 +2309,24 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1520
2309
|
}>;
|
1521
2310
|
_meta: object;
|
1522
2311
|
_ctx_out: {
|
2312
|
+
user: import("../types/auth").TJwtPayload;
|
1523
2313
|
req: import("http").IncomingMessage;
|
1524
2314
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1525
|
-
user: import("../types/auth").TJwtPayload;
|
1526
2315
|
};
|
1527
2316
|
_input_in: {
|
1528
2317
|
authorization?: string | undefined;
|
1529
|
-
|
1530
|
-
|
1531
|
-
code?: string | undefined;
|
1532
|
-
paymentMode?: "session" | "intent" | undefined;
|
1533
|
-
cancelPath?: string | undefined;
|
2318
|
+
transactionId: number;
|
2319
|
+
amount: number;
|
1534
2320
|
};
|
1535
2321
|
_input_out: {
|
1536
2322
|
authorization?: string | undefined;
|
1537
|
-
|
1538
|
-
|
1539
|
-
pickupId: number;
|
1540
|
-
code?: string | undefined;
|
1541
|
-
cancelPath?: string | undefined;
|
2323
|
+
transactionId: number;
|
2324
|
+
amount: number;
|
1542
2325
|
};
|
1543
2326
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1544
2327
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1545
|
-
},
|
1546
|
-
|
1547
|
-
}>;
|
1548
|
-
}>;
|
1549
|
-
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1550
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1551
|
-
meta: object;
|
1552
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
1553
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
1554
|
-
}>, {
|
1555
|
-
info: import("@trpc/server").BuildProcedure<"mutation", {
|
2328
|
+
}, void>;
|
2329
|
+
export: import("@trpc/server").BuildProcedure<"mutation", {
|
1556
2330
|
_config: import("@trpc/server").RootConfig<{
|
1557
2331
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1558
2332
|
meta: object;
|
@@ -1560,42 +2334,34 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1560
2334
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1561
2335
|
}>;
|
1562
2336
|
_meta: object;
|
1563
|
-
_ctx_out:
|
2337
|
+
_ctx_out: {
|
2338
|
+
user: import("../types/auth").TJwtPayload;
|
2339
|
+
req: import("http").IncomingMessage;
|
2340
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2341
|
+
};
|
1564
2342
|
_input_in: {
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
2343
|
+
authorization?: string | undefined;
|
2344
|
+
limit: number;
|
2345
|
+
page: number;
|
2346
|
+
direction: "asc" | "desc";
|
2347
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
2348
|
+
search?: string | undefined;
|
2349
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
2350
|
+
orgWorkspaceId?: number | undefined;
|
1570
2351
|
};
|
1571
2352
|
_input_out: {
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
totalWithTax: number;
|
1581
|
-
totalTax: number;
|
1582
|
-
otherTaxLabel: string;
|
1583
|
-
otherTax: number;
|
1584
|
-
otherTaxPercent: number;
|
1585
|
-
code?: string | undefined;
|
1586
|
-
description?: string | undefined;
|
1587
|
-
};
|
1588
|
-
_output_out: {
|
1589
|
-
discountApplied: number;
|
1590
|
-
totalWithTax: number;
|
1591
|
-
totalTax: number;
|
1592
|
-
otherTaxLabel: string;
|
1593
|
-
otherTax: number;
|
1594
|
-
otherTaxPercent: number;
|
1595
|
-
code?: string | undefined;
|
1596
|
-
description?: string | undefined;
|
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;
|
1597
2361
|
};
|
1598
|
-
|
2362
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2363
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2364
|
+
}, string>;
|
1599
2365
|
}>;
|
1600
2366
|
}, {
|
1601
2367
|
queries: {};
|