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