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/query.d.ts
CHANGED
@@ -14,9 +14,9 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
14
14
|
}>;
|
15
15
|
_meta: object;
|
16
16
|
_ctx_out: {
|
17
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
17
18
|
req: import("http").IncomingMessage;
|
18
19
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
19
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
20
20
|
};
|
21
21
|
_input_in: {
|
22
22
|
authorization?: string | undefined;
|
@@ -40,27 +40,27 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
40
40
|
}>;
|
41
41
|
_meta: object;
|
42
42
|
_ctx_out: {
|
43
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
43
44
|
req: import("http").IncomingMessage;
|
44
45
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
45
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
46
46
|
};
|
47
47
|
_input_in: {
|
48
48
|
authorization?: string | undefined;
|
49
49
|
limit: number;
|
50
50
|
cursor: number;
|
51
|
-
code?: string | undefined;
|
52
51
|
orgWorkspaceId?: number | null | undefined;
|
52
|
+
code?: string | undefined;
|
53
53
|
direction?: "asc" | "desc" | undefined;
|
54
54
|
listExpired?: boolean | undefined;
|
55
55
|
};
|
56
56
|
_input_out: {
|
57
57
|
authorization?: string | undefined;
|
58
58
|
limit: number;
|
59
|
-
cursor: number;
|
60
59
|
direction: "asc" | "desc";
|
60
|
+
cursor: number;
|
61
61
|
listExpired: boolean;
|
62
|
-
code?: string | undefined;
|
63
62
|
orgWorkspaceId?: number | null | undefined;
|
63
|
+
code?: string | undefined;
|
64
64
|
};
|
65
65
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
66
66
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -79,14 +79,14 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
79
79
|
}>;
|
80
80
|
_meta: object;
|
81
81
|
_ctx_out: {
|
82
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
82
83
|
req: import("http").IncomingMessage;
|
83
84
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
84
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
85
85
|
};
|
86
86
|
_input_in: {
|
87
87
|
authorization?: string | undefined;
|
88
|
-
code: string;
|
89
88
|
description: string;
|
89
|
+
code: string;
|
90
90
|
appliesWhen: "purchase";
|
91
91
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
92
92
|
amountType: "flat-rate" | "percentage";
|
@@ -97,8 +97,8 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
97
97
|
};
|
98
98
|
_input_out: {
|
99
99
|
authorization?: string | undefined;
|
100
|
-
code: string;
|
101
100
|
description: string;
|
101
|
+
code: string;
|
102
102
|
appliesWhen: "purchase";
|
103
103
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
104
104
|
amountType: "flat-rate" | "percentage";
|
@@ -123,15 +123,15 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
123
123
|
}>;
|
124
124
|
_meta: object;
|
125
125
|
_ctx_out: {
|
126
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
126
127
|
req: import("http").IncomingMessage;
|
127
128
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
128
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
129
129
|
};
|
130
130
|
_input_in: {
|
131
131
|
authorization?: string | undefined;
|
132
132
|
id: number;
|
133
|
-
code: string;
|
134
133
|
description: string;
|
134
|
+
code: string;
|
135
135
|
appliesWhen: "purchase";
|
136
136
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
137
137
|
amountType: "flat-rate" | "percentage";
|
@@ -144,8 +144,8 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
144
144
|
_input_out: {
|
145
145
|
authorization?: string | undefined;
|
146
146
|
id: number;
|
147
|
-
code: string;
|
148
147
|
description: string;
|
148
|
+
code: string;
|
149
149
|
appliesWhen: "purchase";
|
150
150
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
151
151
|
amountType: "flat-rate" | "percentage";
|
@@ -169,9 +169,9 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
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;
|
@@ -210,16 +210,16 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
210
210
|
code?: string | undefined;
|
211
211
|
};
|
212
212
|
_output_in: {
|
213
|
-
code: string;
|
214
213
|
description: string;
|
214
|
+
code: string;
|
215
215
|
amountType: "flat-rate" | "percentage";
|
216
216
|
amountValue: number;
|
217
217
|
reducedValue: number;
|
218
218
|
newValue: number;
|
219
219
|
};
|
220
220
|
_output_out: {
|
221
|
-
code: string;
|
222
221
|
description: string;
|
222
|
+
code: string;
|
223
223
|
amountType: "flat-rate" | "percentage";
|
224
224
|
amountValue: number;
|
225
225
|
reducedValue: number;
|
@@ -239,26 +239,26 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
239
239
|
}>;
|
240
240
|
_meta: object;
|
241
241
|
_ctx_out: {
|
242
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
242
243
|
req: import("http").IncomingMessage;
|
243
244
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
244
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
245
245
|
};
|
246
246
|
_input_in: {
|
247
247
|
authorization?: string | undefined;
|
248
248
|
description: string;
|
249
249
|
freeAgentId: number;
|
250
|
-
code?: string | undefined;
|
251
250
|
leagueId?: number | undefined;
|
251
|
+
code?: string | undefined;
|
252
252
|
paymentMode?: "session" | "intent" | undefined;
|
253
253
|
cancelPath?: string | undefined;
|
254
254
|
};
|
255
255
|
_input_out: {
|
256
256
|
authorization?: string | undefined;
|
257
257
|
description: string;
|
258
|
-
freeAgentId: number;
|
259
258
|
paymentMode: "session" | "intent";
|
260
|
-
|
259
|
+
freeAgentId: number;
|
261
260
|
leagueId?: number | undefined;
|
261
|
+
code?: string | undefined;
|
262
262
|
cancelPath?: string | undefined;
|
263
263
|
};
|
264
264
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -270,6 +270,22 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
270
270
|
customerId: string;
|
271
271
|
orgPublishableKey: string | undefined;
|
272
272
|
orgStripeAccountId: string;
|
273
|
+
paymentIntent: {
|
274
|
+
intent: import("stripe").Stripe.Response<import("stripe").Stripe.PaymentIntent>;
|
275
|
+
discountAndFee: {
|
276
|
+
discountApplied: number;
|
277
|
+
discountedAmount: number;
|
278
|
+
priceAmount: number;
|
279
|
+
otherTaxLabel: string;
|
280
|
+
otherTaxPercent: number;
|
281
|
+
otherTax: number;
|
282
|
+
bantrTax: number;
|
283
|
+
stripeTax: number;
|
284
|
+
totalTax: number;
|
285
|
+
totalWithTax: number;
|
286
|
+
transferAmount: number;
|
287
|
+
};
|
288
|
+
};
|
273
289
|
} | {
|
274
290
|
redirectUrl: string;
|
275
291
|
}>>;
|
@@ -286,58 +302,58 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
286
302
|
}>;
|
287
303
|
_meta: object;
|
288
304
|
_ctx_out: {
|
305
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
289
306
|
req: import("http").IncomingMessage;
|
290
307
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
291
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
292
308
|
};
|
293
309
|
_input_in: {
|
294
310
|
authorization?: string | undefined;
|
295
|
-
leagueId: number;
|
296
311
|
teamId: number;
|
312
|
+
leagueId: number;
|
297
313
|
};
|
298
314
|
_input_out: {
|
299
315
|
authorization?: string | undefined;
|
300
|
-
leagueId: number;
|
301
316
|
teamId: number;
|
317
|
+
leagueId: number;
|
302
318
|
};
|
303
319
|
_output_in: {
|
304
320
|
id: number;
|
305
321
|
deletedAt: Date | null;
|
306
|
-
memberId: number;
|
307
|
-
totalPaid: number;
|
308
322
|
member: {
|
309
323
|
id: number;
|
310
|
-
email: string;
|
311
324
|
firstName: string | null;
|
312
325
|
lastName: string | null;
|
326
|
+
email: string;
|
313
327
|
};
|
328
|
+
memberId: number;
|
329
|
+
totalPaid: number;
|
314
330
|
payments: {
|
315
331
|
id: number;
|
316
332
|
createdAt: string | Date;
|
317
|
-
price: number;
|
318
333
|
payerId: number;
|
319
334
|
amountApplied: number | null;
|
320
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
335
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
336
|
+
price: number;
|
321
337
|
}[];
|
322
338
|
}[];
|
323
339
|
_output_out: {
|
324
340
|
id: number;
|
325
341
|
deletedAt: Date | null;
|
326
|
-
memberId: number;
|
327
|
-
totalPaid: number;
|
328
342
|
member: {
|
329
343
|
id: number;
|
330
|
-
email: string;
|
331
344
|
firstName: string | null;
|
332
345
|
lastName: string | null;
|
346
|
+
email: string;
|
333
347
|
};
|
348
|
+
memberId: number;
|
349
|
+
totalPaid: number;
|
334
350
|
payments: {
|
335
351
|
id: number;
|
336
352
|
createdAt: string | Date;
|
337
|
-
price: number;
|
338
353
|
payerId: number;
|
339
354
|
amountApplied: number | null;
|
340
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
355
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
356
|
+
price: number;
|
341
357
|
}[];
|
342
358
|
}[];
|
343
359
|
}, unknown>>;
|
@@ -352,22 +368,22 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
352
368
|
}>;
|
353
369
|
_meta: object;
|
354
370
|
_ctx_out: {
|
371
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
355
372
|
req: import("http").IncomingMessage;
|
356
373
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
357
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
358
374
|
};
|
359
375
|
_input_in: {
|
360
376
|
authorization?: string | undefined;
|
361
377
|
leagueId: number;
|
378
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
362
379
|
price: number;
|
363
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
364
380
|
teamRosterId: number;
|
365
381
|
};
|
366
382
|
_input_out: {
|
367
383
|
authorization?: string | undefined;
|
368
384
|
leagueId: number;
|
385
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
369
386
|
price: number;
|
370
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
371
387
|
teamRosterId: number;
|
372
388
|
};
|
373
389
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -384,22 +400,22 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
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;
|
@@ -416,9 +432,9 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
416
432
|
}>;
|
417
433
|
_meta: object;
|
418
434
|
_ctx_out: {
|
435
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
419
436
|
req: import("http").IncomingMessage;
|
420
437
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
421
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
422
438
|
};
|
423
439
|
_input_in: {
|
424
440
|
authorization?: string | undefined;
|
@@ -442,14 +458,14 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
442
458
|
}>;
|
443
459
|
_meta: object;
|
444
460
|
_ctx_out: {
|
461
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
445
462
|
req: import("http").IncomingMessage;
|
446
463
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
447
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
448
464
|
};
|
449
465
|
_input_in: {
|
450
466
|
authorization?: string | undefined;
|
451
|
-
leagueId: number;
|
452
467
|
teamId: number;
|
468
|
+
leagueId: number;
|
453
469
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
454
470
|
code?: string | undefined;
|
455
471
|
paymentMode?: "session" | "intent" | undefined;
|
@@ -457,10 +473,10 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
457
473
|
};
|
458
474
|
_input_out: {
|
459
475
|
authorization?: string | undefined;
|
460
|
-
leagueId: number;
|
461
|
-
paymentMode: "session" | "intent";
|
462
476
|
teamId: number;
|
477
|
+
leagueId: number;
|
463
478
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
479
|
+
paymentMode: "session" | "intent";
|
464
480
|
code?: string | undefined;
|
465
481
|
paymentAmount?: number | undefined;
|
466
482
|
};
|
@@ -636,17 +652,17 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
636
652
|
}>;
|
637
653
|
_meta: object;
|
638
654
|
_ctx_out: {
|
655
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
639
656
|
req: import("http").IncomingMessage;
|
640
657
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
641
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
642
658
|
};
|
643
659
|
_input_in: {
|
644
660
|
authorization?: string | undefined;
|
645
|
-
provider: "
|
661
|
+
provider: "google" | "apple";
|
646
662
|
};
|
647
663
|
_input_out: {
|
648
664
|
authorization?: string | undefined;
|
649
|
-
provider: "
|
665
|
+
provider: "google" | "apple";
|
650
666
|
};
|
651
667
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
652
668
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -664,9 +680,9 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
664
680
|
}>;
|
665
681
|
_meta: object;
|
666
682
|
_ctx_out: {
|
683
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
667
684
|
req: import("http").IncomingMessage;
|
668
685
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
669
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
670
686
|
};
|
671
687
|
_input_in: {
|
672
688
|
authorization?: string | undefined;
|
@@ -698,9 +714,9 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
698
714
|
}>;
|
699
715
|
_meta: object;
|
700
716
|
_ctx_out: {
|
717
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
701
718
|
req: import("http").IncomingMessage;
|
702
719
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
703
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
704
720
|
};
|
705
721
|
_input_in: {
|
706
722
|
authorization?: string | undefined;
|
@@ -732,9 +748,9 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
732
748
|
}>;
|
733
749
|
_meta: object;
|
734
750
|
_ctx_out: {
|
751
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
735
752
|
req: import("http").IncomingMessage;
|
736
753
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
737
|
-
user: import("../api-type/src/types/auth").TJwtPayload;
|
738
754
|
};
|
739
755
|
_input_in: {
|
740
756
|
authorization?: string | undefined;
|
@@ -746,8 +762,8 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
746
762
|
};
|
747
763
|
_input_out: {
|
748
764
|
authorization?: string | undefined;
|
749
|
-
paymentMode: "session" | "intent";
|
750
765
|
memberId: number;
|
766
|
+
paymentMode: "session" | "intent";
|
751
767
|
pickupId: number;
|
752
768
|
code?: string | undefined;
|
753
769
|
cancelPath?: string | undefined;
|
@@ -791,8 +807,8 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
791
807
|
otherTaxLabel: string;
|
792
808
|
otherTax: number;
|
793
809
|
otherTaxPercent: number;
|
794
|
-
code?: string | undefined;
|
795
810
|
description?: string | undefined;
|
811
|
+
code?: string | undefined;
|
796
812
|
};
|
797
813
|
_output_out: {
|
798
814
|
discountApplied: number;
|
@@ -801,11 +817,388 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
801
817
|
otherTaxLabel: string;
|
802
818
|
otherTax: number;
|
803
819
|
otherTaxPercent: number;
|
804
|
-
code?: string | undefined;
|
805
820
|
description?: string | undefined;
|
821
|
+
code?: string | undefined;
|
806
822
|
};
|
807
823
|
}, unknown>>;
|
808
824
|
};
|
809
825
|
};
|
826
|
+
team: {
|
827
|
+
getInvitedMembers: {
|
828
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
829
|
+
_config: import("@trpc/server").RootConfig<{
|
830
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
831
|
+
meta: object;
|
832
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
833
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
834
|
+
}>;
|
835
|
+
_meta: object;
|
836
|
+
_ctx_out: {
|
837
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
838
|
+
req: import("http").IncomingMessage;
|
839
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
840
|
+
};
|
841
|
+
_input_in: {
|
842
|
+
authorization?: string | undefined;
|
843
|
+
teamId: number;
|
844
|
+
};
|
845
|
+
_input_out: {
|
846
|
+
authorization?: string | undefined;
|
847
|
+
teamId: number;
|
848
|
+
};
|
849
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
850
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
851
|
+
}, (import("../api-type/src/models/team_roster").TeamRoster & {
|
852
|
+
member: Pick<import("../api-type/src/models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
853
|
+
invites: Pick<import("../api-type/src/models/invite").Invite, "isActive">[];
|
854
|
+
})[]>>;
|
855
|
+
};
|
856
|
+
getInvitedByOrganization: {
|
857
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
858
|
+
_config: import("@trpc/server").RootConfig<{
|
859
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
860
|
+
meta: object;
|
861
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
862
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
863
|
+
}>;
|
864
|
+
_meta: object;
|
865
|
+
_ctx_out: {
|
866
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
867
|
+
req: import("http").IncomingMessage;
|
868
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
869
|
+
};
|
870
|
+
_input_in: {
|
871
|
+
authorization?: string | undefined;
|
872
|
+
teamId: number;
|
873
|
+
organizationId: number;
|
874
|
+
};
|
875
|
+
_input_out: {
|
876
|
+
authorization?: string | undefined;
|
877
|
+
teamId: number;
|
878
|
+
organizationId: number;
|
879
|
+
};
|
880
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
881
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
882
|
+
}, (import("../api-type/src/models/team_roster").TeamRoster & {
|
883
|
+
member: Pick<import("../api-type/src/models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
884
|
+
invites: Pick<import("../api-type/src/models/invite").Invite, "isActive">[];
|
885
|
+
})[]>>;
|
886
|
+
};
|
887
|
+
createInviteByCaptain: {
|
888
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
889
|
+
_config: import("@trpc/server").RootConfig<{
|
890
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
891
|
+
meta: object;
|
892
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
893
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
894
|
+
}>;
|
895
|
+
_meta: object;
|
896
|
+
_ctx_out: {
|
897
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
898
|
+
req: import("http").IncomingMessage;
|
899
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
900
|
+
};
|
901
|
+
_input_in: {
|
902
|
+
authorization?: string | undefined;
|
903
|
+
teamId: number;
|
904
|
+
invites: {
|
905
|
+
firstName: string;
|
906
|
+
lastName: string;
|
907
|
+
email: string;
|
908
|
+
}[];
|
909
|
+
leagueId?: number | undefined;
|
910
|
+
organizationId?: number | undefined;
|
911
|
+
};
|
912
|
+
_input_out: {
|
913
|
+
authorization?: string | undefined;
|
914
|
+
teamId: number;
|
915
|
+
invites: {
|
916
|
+
firstName: string;
|
917
|
+
lastName: string;
|
918
|
+
email: string;
|
919
|
+
}[];
|
920
|
+
leagueId?: number | undefined;
|
921
|
+
organizationId?: number | undefined;
|
922
|
+
};
|
923
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
924
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
925
|
+
}, void>>;
|
926
|
+
};
|
927
|
+
createInviteByOrganization: {
|
928
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
929
|
+
_config: import("@trpc/server").RootConfig<{
|
930
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
931
|
+
meta: object;
|
932
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
933
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
934
|
+
}>;
|
935
|
+
_meta: object;
|
936
|
+
_ctx_out: {
|
937
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
938
|
+
req: import("http").IncomingMessage;
|
939
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
940
|
+
};
|
941
|
+
_input_in: {
|
942
|
+
authorization?: string | undefined;
|
943
|
+
teamId: number;
|
944
|
+
invites: {
|
945
|
+
firstName: string;
|
946
|
+
lastName: string;
|
947
|
+
email: string;
|
948
|
+
}[];
|
949
|
+
leagueId?: number | undefined;
|
950
|
+
organizationId?: number | undefined;
|
951
|
+
};
|
952
|
+
_input_out: {
|
953
|
+
authorization?: string | undefined;
|
954
|
+
teamId: number;
|
955
|
+
invites: {
|
956
|
+
firstName: string;
|
957
|
+
lastName: string;
|
958
|
+
email: string;
|
959
|
+
}[];
|
960
|
+
leagueId?: number | undefined;
|
961
|
+
organizationId?: number | undefined;
|
962
|
+
};
|
963
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
964
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
965
|
+
}, void>>;
|
966
|
+
};
|
967
|
+
cancelInviteByCaptain: {
|
968
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
969
|
+
_config: import("@trpc/server").RootConfig<{
|
970
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
971
|
+
meta: object;
|
972
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
973
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
974
|
+
}>;
|
975
|
+
_meta: object;
|
976
|
+
_ctx_out: {
|
977
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
978
|
+
req: import("http").IncomingMessage;
|
979
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
980
|
+
};
|
981
|
+
_input_in: {
|
982
|
+
authorization?: string | undefined;
|
983
|
+
teamId: number;
|
984
|
+
inviteId: number;
|
985
|
+
};
|
986
|
+
_input_out: {
|
987
|
+
authorization?: string | undefined;
|
988
|
+
teamId: number;
|
989
|
+
inviteId: number;
|
990
|
+
};
|
991
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
992
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
993
|
+
}, void>>;
|
994
|
+
};
|
995
|
+
cancelInviteByOrganization: {
|
996
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
997
|
+
_config: import("@trpc/server").RootConfig<{
|
998
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
999
|
+
meta: object;
|
1000
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1001
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1002
|
+
}>;
|
1003
|
+
_meta: object;
|
1004
|
+
_ctx_out: {
|
1005
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1006
|
+
req: import("http").IncomingMessage;
|
1007
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1008
|
+
};
|
1009
|
+
_input_in: {
|
1010
|
+
authorization?: string | undefined;
|
1011
|
+
teamId: number;
|
1012
|
+
inviteId: number;
|
1013
|
+
};
|
1014
|
+
_input_out: {
|
1015
|
+
authorization?: string | undefined;
|
1016
|
+
teamId: number;
|
1017
|
+
inviteId: number;
|
1018
|
+
};
|
1019
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1020
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1021
|
+
}, void>>;
|
1022
|
+
};
|
1023
|
+
};
|
1024
|
+
transaction: {
|
1025
|
+
list: {
|
1026
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
1027
|
+
_config: import("@trpc/server").RootConfig<{
|
1028
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1029
|
+
meta: object;
|
1030
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1031
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1032
|
+
}>;
|
1033
|
+
_meta: object;
|
1034
|
+
_ctx_out: {
|
1035
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1036
|
+
req: import("http").IncomingMessage;
|
1037
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1038
|
+
};
|
1039
|
+
_input_in: {
|
1040
|
+
authorization?: string | undefined;
|
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;
|
1048
|
+
};
|
1049
|
+
_input_out: {
|
1050
|
+
authorization?: string | undefined;
|
1051
|
+
limit: number;
|
1052
|
+
page: number;
|
1053
|
+
direction: "asc" | "desc";
|
1054
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1055
|
+
search?: string | undefined;
|
1056
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1057
|
+
orgWorkspaceId?: number | undefined;
|
1058
|
+
};
|
1059
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1060
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1061
|
+
}, {
|
1062
|
+
items: import("../api-type/src/models/transaction").Transaction[];
|
1063
|
+
curPage: number;
|
1064
|
+
hasPrev: boolean;
|
1065
|
+
hasNext: boolean;
|
1066
|
+
}>>;
|
1067
|
+
};
|
1068
|
+
info: {
|
1069
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
1070
|
+
_config: import("@trpc/server").RootConfig<{
|
1071
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1072
|
+
meta: object;
|
1073
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1074
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1075
|
+
}>;
|
1076
|
+
_meta: object;
|
1077
|
+
_ctx_out: {
|
1078
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1079
|
+
req: import("http").IncomingMessage;
|
1080
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1081
|
+
};
|
1082
|
+
_input_in: {
|
1083
|
+
authorization?: string | undefined;
|
1084
|
+
transactionId: number;
|
1085
|
+
};
|
1086
|
+
_input_out: {
|
1087
|
+
authorization?: string | undefined;
|
1088
|
+
transactionId: number;
|
1089
|
+
};
|
1090
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1091
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1092
|
+
}, {
|
1093
|
+
stripeTransfers: import("../api-type/src/models/stripe_transfer").StripeTransfer[];
|
1094
|
+
id: number;
|
1095
|
+
payerId: number;
|
1096
|
+
payer?: import("../api-type/src/models/member").Member;
|
1097
|
+
paymentMethod: import("../api-type/src/modules/transaction/transaction.schema").TRANSACTION_METHOD_ENUM;
|
1098
|
+
discountCodeId: number | null;
|
1099
|
+
discountCode?: import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode;
|
1100
|
+
documentAmount: number;
|
1101
|
+
discountedAmount: number;
|
1102
|
+
organizerFee: number;
|
1103
|
+
bantrFee: number;
|
1104
|
+
stripeFee: number;
|
1105
|
+
chargedAmount: number;
|
1106
|
+
paidAmount: number;
|
1107
|
+
transferAmount: number;
|
1108
|
+
refundedAmount: number;
|
1109
|
+
transferSent: boolean;
|
1110
|
+
currency: import("../api-type/src/constants").VALID_CURRENCY_CODES;
|
1111
|
+
status: import("../api-type/src/modules/transaction/transaction.schema").TRANSACTION_STATUS_ENUM;
|
1112
|
+
expiresAt: Date | null;
|
1113
|
+
lastStatusUpdateAt: Date | null;
|
1114
|
+
leaguePaymentId: number | null;
|
1115
|
+
leaguePayment?: import("../api-type/src/models/league_payment").LeaguePayment;
|
1116
|
+
league?: import("../api-type/src/models/league").League;
|
1117
|
+
pickupPaymentId: number | null;
|
1118
|
+
pickupPayment?: import("../api-type/src/models/pickup_payments").PickupPayment;
|
1119
|
+
pickup?: import("../api-type/src/models/pickup").Pickup;
|
1120
|
+
freeAgentPaymentId: number | null;
|
1121
|
+
freeAgentPayment?: import("../api-type/src/models/free_agent_payment").FreeAgentPayment;
|
1122
|
+
orgFreeAgent?: import("../api-type/src/models/organization_free_agent").OrgFreeAgent;
|
1123
|
+
organizationId: number;
|
1124
|
+
organization?: import("../api-type/src/models/organization").Organization;
|
1125
|
+
orgWorkspaceId: number | null;
|
1126
|
+
orgWorkspace?: import("../api-type/src/models/organization_workspace").OrgWorkspace;
|
1127
|
+
transactionEvents?: import("../api-type/src/models/transaction_event").TransactionEvent[];
|
1128
|
+
stripeTransactions?: import("../api-type/src/models/stripe_transaction").StripeTransaction[];
|
1129
|
+
updatedAt: Date;
|
1130
|
+
createdAt: Date;
|
1131
|
+
deletedAt: Date | null;
|
1132
|
+
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[]>;
|
1133
|
+
$modelClass: import("objection").ModelClass<import("../api-type/src/models/transaction").Transaction>;
|
1134
|
+
}>>;
|
1135
|
+
};
|
1136
|
+
refund: {
|
1137
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1138
|
+
_config: import("@trpc/server").RootConfig<{
|
1139
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1140
|
+
meta: object;
|
1141
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1142
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1143
|
+
}>;
|
1144
|
+
_meta: object;
|
1145
|
+
_ctx_out: {
|
1146
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1147
|
+
req: import("http").IncomingMessage;
|
1148
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1149
|
+
};
|
1150
|
+
_input_in: {
|
1151
|
+
authorization?: string | undefined;
|
1152
|
+
transactionId: number;
|
1153
|
+
amount: number;
|
1154
|
+
};
|
1155
|
+
_input_out: {
|
1156
|
+
authorization?: string | undefined;
|
1157
|
+
transactionId: number;
|
1158
|
+
amount: number;
|
1159
|
+
};
|
1160
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1161
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1162
|
+
}, void>>;
|
1163
|
+
};
|
1164
|
+
export: {
|
1165
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1166
|
+
_config: import("@trpc/server").RootConfig<{
|
1167
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1168
|
+
meta: object;
|
1169
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1170
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1171
|
+
}>;
|
1172
|
+
_meta: object;
|
1173
|
+
_ctx_out: {
|
1174
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1175
|
+
req: import("http").IncomingMessage;
|
1176
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1177
|
+
};
|
1178
|
+
_input_in: {
|
1179
|
+
authorization?: string | undefined;
|
1180
|
+
limit: number;
|
1181
|
+
page: number;
|
1182
|
+
direction: "asc" | "desc";
|
1183
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1184
|
+
search?: string | undefined;
|
1185
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1186
|
+
orgWorkspaceId?: number | undefined;
|
1187
|
+
};
|
1188
|
+
_input_out: {
|
1189
|
+
authorization?: string | undefined;
|
1190
|
+
limit: number;
|
1191
|
+
page: number;
|
1192
|
+
direction: "asc" | "desc";
|
1193
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1194
|
+
search?: string | undefined;
|
1195
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1196
|
+
orgWorkspaceId?: number | undefined;
|
1197
|
+
};
|
1198
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1199
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1200
|
+
}, string>>;
|
1201
|
+
};
|
1202
|
+
};
|
810
1203
|
};
|
811
1204
|
export {};
|