bantr-api-client 1.0.5 → 1.3.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.
@@ -0,0 +1,1344 @@
1
+ import { QueryClient, QueryClientConfig } from '@tanstack/react-query';
2
+ import React, { ReactNode } from 'react';
3
+ export declare const QueryClientContext: React.Context<QueryClient | undefined>;
4
+ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact").CreateTRPCReactBase<import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
5
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
6
+ meta: object;
7
+ errorShape: import("@trpc/server").DefaultErrorShape;
8
+ transformer: import("@trpc/server").DefaultDataTransformer;
9
+ }>, {
10
+ discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
11
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
12
+ meta: object;
13
+ errorShape: import("@trpc/server").DefaultErrorShape;
14
+ transformer: import("@trpc/server").DefaultDataTransformer;
15
+ }>, {
16
+ get: import("@trpc/server").BuildProcedure<"mutation", {
17
+ _config: import("@trpc/server").RootConfig<{
18
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
19
+ meta: object;
20
+ errorShape: import("@trpc/server").DefaultErrorShape;
21
+ transformer: import("@trpc/server").DefaultDataTransformer;
22
+ }>;
23
+ _meta: object;
24
+ _ctx_out: {
25
+ req: import("http").IncomingMessage;
26
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
27
+ user: import("../api-type/src/types/auth").TJwtPayload;
28
+ };
29
+ _input_in: {
30
+ authorization?: string | undefined;
31
+ id: number;
32
+ };
33
+ _input_out: {
34
+ authorization?: string | undefined;
35
+ id: number;
36
+ };
37
+ _output_in: typeof import("@trpc/server").unsetMarker;
38
+ _output_out: typeof import("@trpc/server").unsetMarker;
39
+ }, import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode>;
40
+ list: import("@trpc/server").BuildProcedure<"query", {
41
+ _config: import("@trpc/server").RootConfig<{
42
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
43
+ meta: object;
44
+ errorShape: import("@trpc/server").DefaultErrorShape;
45
+ transformer: import("@trpc/server").DefaultDataTransformer;
46
+ }>;
47
+ _meta: object;
48
+ _ctx_out: {
49
+ req: import("http").IncomingMessage;
50
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
51
+ user: import("../api-type/src/types/auth").TJwtPayload;
52
+ };
53
+ _input_in: {
54
+ authorization?: string | undefined;
55
+ limit: number;
56
+ cursor: number;
57
+ code?: string | undefined;
58
+ direction?: "asc" | "desc" | undefined;
59
+ listExpired?: boolean | undefined;
60
+ };
61
+ _input_out: {
62
+ authorization?: string | undefined;
63
+ limit: number;
64
+ cursor: number;
65
+ direction: "asc" | "desc";
66
+ listExpired: boolean;
67
+ code?: string | undefined;
68
+ };
69
+ _output_in: typeof import("@trpc/server").unsetMarker;
70
+ _output_out: typeof import("@trpc/server").unsetMarker;
71
+ }, {
72
+ items: import("objection").Page<import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode>;
73
+ nextCursor: number | undefined;
74
+ }>;
75
+ create: import("@trpc/server").BuildProcedure<"mutation", {
76
+ _config: import("@trpc/server").RootConfig<{
77
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
78
+ meta: object;
79
+ errorShape: import("@trpc/server").DefaultErrorShape;
80
+ transformer: import("@trpc/server").DefaultDataTransformer;
81
+ }>;
82
+ _meta: object;
83
+ _ctx_out: {
84
+ req: import("http").IncomingMessage;
85
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
86
+ user: import("../api-type/src/types/auth").TJwtPayload;
87
+ };
88
+ _input_in: {
89
+ authorization?: string | undefined;
90
+ description: string;
91
+ code: string;
92
+ appliesWhen: "purchase";
93
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
94
+ amountType: "flat-rate" | "percentage";
95
+ amountValue: number;
96
+ validFrom: Date | null;
97
+ validUntil: Date | null;
98
+ };
99
+ _input_out: {
100
+ authorization?: string | undefined;
101
+ description: string;
102
+ code: string;
103
+ appliesWhen: "purchase";
104
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
105
+ amountType: "flat-rate" | "percentage";
106
+ amountValue: number;
107
+ validFrom: Date | null;
108
+ validUntil: Date | null;
109
+ };
110
+ _output_in: typeof import("@trpc/server").unsetMarker;
111
+ _output_out: typeof import("@trpc/server").unsetMarker;
112
+ }, {
113
+ id: number;
114
+ }>;
115
+ update: import("@trpc/server").BuildProcedure<"mutation", {
116
+ _config: import("@trpc/server").RootConfig<{
117
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
118
+ meta: object;
119
+ errorShape: import("@trpc/server").DefaultErrorShape;
120
+ transformer: import("@trpc/server").DefaultDataTransformer;
121
+ }>;
122
+ _meta: object;
123
+ _ctx_out: {
124
+ req: import("http").IncomingMessage;
125
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
126
+ user: import("../api-type/src/types/auth").TJwtPayload;
127
+ };
128
+ _input_in: {
129
+ authorization?: string | undefined;
130
+ id: number;
131
+ description: string;
132
+ code: string;
133
+ appliesWhen: "purchase";
134
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
135
+ amountType: "flat-rate" | "percentage";
136
+ amountValue: number;
137
+ validFrom: Date | null;
138
+ validUntil: Date | null;
139
+ };
140
+ _input_out: {
141
+ authorization?: string | undefined;
142
+ id: number;
143
+ description: string;
144
+ code: string;
145
+ appliesWhen: "purchase";
146
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
147
+ amountType: "flat-rate" | "percentage";
148
+ amountValue: number;
149
+ validFrom: Date | null;
150
+ validUntil: Date | null;
151
+ };
152
+ _output_in: typeof import("@trpc/server").unsetMarker;
153
+ _output_out: typeof import("@trpc/server").unsetMarker;
154
+ }, void>;
155
+ delete: import("@trpc/server").BuildProcedure<"mutation", {
156
+ _config: import("@trpc/server").RootConfig<{
157
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
158
+ meta: object;
159
+ errorShape: import("@trpc/server").DefaultErrorShape;
160
+ transformer: import("@trpc/server").DefaultDataTransformer;
161
+ }>;
162
+ _meta: object;
163
+ _ctx_out: {
164
+ req: import("http").IncomingMessage;
165
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
166
+ user: import("../api-type/src/types/auth").TJwtPayload;
167
+ };
168
+ _input_in: {
169
+ authorization?: string | undefined;
170
+ id: number;
171
+ };
172
+ _input_out: {
173
+ authorization?: string | undefined;
174
+ id: number;
175
+ };
176
+ _output_in: typeof import("@trpc/server").unsetMarker;
177
+ _output_out: typeof import("@trpc/server").unsetMarker;
178
+ }, void>;
179
+ check: import("@trpc/server").BuildProcedure<"mutation", {
180
+ _config: import("@trpc/server").RootConfig<{
181
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
182
+ meta: object;
183
+ errorShape: import("@trpc/server").DefaultErrorShape;
184
+ transformer: import("@trpc/server").DefaultDataTransformer;
185
+ }>;
186
+ _meta: object;
187
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
188
+ _input_in: {
189
+ id: number;
190
+ code: string;
191
+ appliesWhen: "purchase";
192
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
193
+ productValue: number;
194
+ };
195
+ _input_out: {
196
+ id: number;
197
+ code: string;
198
+ appliesWhen: "purchase";
199
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
200
+ productValue: number;
201
+ };
202
+ _output_in: {
203
+ description: string;
204
+ code: string;
205
+ amountType: "flat-rate" | "percentage";
206
+ amountValue: number;
207
+ reducedValue: number;
208
+ newValue: number;
209
+ };
210
+ _output_out: {
211
+ description: string;
212
+ code: string;
213
+ amountType: "flat-rate" | "percentage";
214
+ amountValue: number;
215
+ reducedValue: number;
216
+ newValue: number;
217
+ };
218
+ }, unknown>;
219
+ }>;
220
+ freeAgentPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
221
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
222
+ meta: object;
223
+ errorShape: import("@trpc/server").DefaultErrorShape;
224
+ transformer: import("@trpc/server").DefaultDataTransformer;
225
+ }>, {
226
+ registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
227
+ _config: import("@trpc/server").RootConfig<{
228
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
229
+ meta: object;
230
+ errorShape: import("@trpc/server").DefaultErrorShape;
231
+ transformer: import("@trpc/server").DefaultDataTransformer;
232
+ }>;
233
+ _meta: object;
234
+ _ctx_out: {
235
+ req: import("http").IncomingMessage;
236
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
237
+ user: import("../api-type/src/types/auth").TJwtPayload;
238
+ };
239
+ _input_in: {
240
+ authorization?: string | undefined;
241
+ description: string;
242
+ freeAgentId: number;
243
+ leagueId?: number | undefined;
244
+ cancelPath?: string | undefined;
245
+ code?: string | undefined;
246
+ paymentMode?: "session" | "intent" | undefined;
247
+ };
248
+ _input_out: {
249
+ authorization?: string | undefined;
250
+ description: string;
251
+ paymentMode: "session" | "intent";
252
+ freeAgentId: number;
253
+ leagueId?: number | undefined;
254
+ cancelPath?: string | undefined;
255
+ code?: string | undefined;
256
+ };
257
+ _output_in: typeof import("@trpc/server").unsetMarker;
258
+ _output_out: typeof import("@trpc/server").unsetMarker;
259
+ }, {
260
+ ephemeralKey: string | undefined;
261
+ paymentIntentClientSecret: string;
262
+ paymentIntentId: string;
263
+ customerId: string;
264
+ orgPublishableKey: string | undefined;
265
+ orgStripeAccountId: string;
266
+ } | {
267
+ redirectUrl: string;
268
+ }>;
269
+ }>;
270
+ leaguePayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
271
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
272
+ meta: object;
273
+ errorShape: import("@trpc/server").DefaultErrorShape;
274
+ transformer: import("@trpc/server").DefaultDataTransformer;
275
+ }>, {
276
+ trackUsersAndPayments: import("@trpc/server").BuildProcedure<"query", {
277
+ _config: import("@trpc/server").RootConfig<{
278
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
279
+ meta: object;
280
+ errorShape: import("@trpc/server").DefaultErrorShape;
281
+ transformer: import("@trpc/server").DefaultDataTransformer;
282
+ }>;
283
+ _meta: object;
284
+ _ctx_out: {
285
+ req: import("http").IncomingMessage;
286
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
287
+ user: import("../api-type/src/types/auth").TJwtPayload;
288
+ };
289
+ _input_in: {
290
+ authorization?: string | undefined;
291
+ leagueId: number;
292
+ teamId: number;
293
+ };
294
+ _input_out: {
295
+ authorization?: string | undefined;
296
+ leagueId: number;
297
+ teamId: number;
298
+ };
299
+ _output_in: {
300
+ id: number;
301
+ deletedAt: Date | null;
302
+ memberId: number;
303
+ member: {
304
+ email: string;
305
+ id: number;
306
+ firstName: string | null;
307
+ lastName: string | null;
308
+ };
309
+ totalPaid: number;
310
+ payments: {
311
+ payerId: number;
312
+ id: number;
313
+ price: number;
314
+ createdAt: string | Date;
315
+ amountApplied: number | null;
316
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
317
+ }[];
318
+ }[];
319
+ _output_out: {
320
+ id: number;
321
+ deletedAt: Date | null;
322
+ memberId: number;
323
+ member: {
324
+ email: string;
325
+ id: number;
326
+ firstName: string | null;
327
+ lastName: string | null;
328
+ };
329
+ totalPaid: number;
330
+ payments: {
331
+ payerId: number;
332
+ id: number;
333
+ price: number;
334
+ createdAt: string | Date;
335
+ amountApplied: number | null;
336
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
337
+ }[];
338
+ }[];
339
+ }, unknown>;
340
+ insertOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
341
+ _config: import("@trpc/server").RootConfig<{
342
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
343
+ meta: object;
344
+ errorShape: import("@trpc/server").DefaultErrorShape;
345
+ transformer: import("@trpc/server").DefaultDataTransformer;
346
+ }>;
347
+ _meta: object;
348
+ _ctx_out: {
349
+ req: import("http").IncomingMessage;
350
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
351
+ user: import("../api-type/src/types/auth").TJwtPayload;
352
+ };
353
+ _input_in: {
354
+ authorization?: string | undefined;
355
+ price: number;
356
+ leagueId: number;
357
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
358
+ teamRosterId: number;
359
+ };
360
+ _input_out: {
361
+ authorization?: string | undefined;
362
+ price: number;
363
+ leagueId: number;
364
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
365
+ teamRosterId: number;
366
+ };
367
+ _output_in: typeof import("@trpc/server").unsetMarker;
368
+ _output_out: typeof import("@trpc/server").unsetMarker;
369
+ }, null>;
370
+ updateOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
371
+ _config: import("@trpc/server").RootConfig<{
372
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
373
+ meta: object;
374
+ errorShape: import("@trpc/server").DefaultErrorShape;
375
+ transformer: import("@trpc/server").DefaultDataTransformer;
376
+ }>;
377
+ _meta: object;
378
+ _ctx_out: {
379
+ req: import("http").IncomingMessage;
380
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
381
+ user: import("../api-type/src/types/auth").TJwtPayload;
382
+ };
383
+ _input_in: {
384
+ authorization?: string | undefined;
385
+ id: number;
386
+ price: number;
387
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
388
+ teamRosterId: number;
389
+ };
390
+ _input_out: {
391
+ authorization?: string | undefined;
392
+ id: number;
393
+ price: number;
394
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
395
+ teamRosterId: number;
396
+ };
397
+ _output_in: typeof import("@trpc/server").unsetMarker;
398
+ _output_out: typeof import("@trpc/server").unsetMarker;
399
+ }, null>;
400
+ deleteOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
401
+ _config: import("@trpc/server").RootConfig<{
402
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
403
+ meta: object;
404
+ errorShape: import("@trpc/server").DefaultErrorShape;
405
+ transformer: import("@trpc/server").DefaultDataTransformer;
406
+ }>;
407
+ _meta: object;
408
+ _ctx_out: {
409
+ req: import("http").IncomingMessage;
410
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
411
+ user: import("../api-type/src/types/auth").TJwtPayload;
412
+ };
413
+ _input_in: {
414
+ authorization?: string | undefined;
415
+ id: number;
416
+ };
417
+ _input_out: {
418
+ authorization?: string | undefined;
419
+ id: number;
420
+ };
421
+ _output_in: typeof import("@trpc/server").unsetMarker;
422
+ _output_out: typeof import("@trpc/server").unsetMarker;
423
+ }, null>;
424
+ registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
425
+ _config: import("@trpc/server").RootConfig<{
426
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
427
+ meta: object;
428
+ errorShape: import("@trpc/server").DefaultErrorShape;
429
+ transformer: import("@trpc/server").DefaultDataTransformer;
430
+ }>;
431
+ _meta: object;
432
+ _ctx_out: {
433
+ req: import("http").IncomingMessage;
434
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
435
+ user: import("../api-type/src/types/auth").TJwtPayload;
436
+ };
437
+ _input_in: {
438
+ authorization?: string | undefined;
439
+ leagueId: number;
440
+ teamId: number;
441
+ paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
442
+ code?: string | undefined;
443
+ paymentMode?: "session" | "intent" | undefined;
444
+ };
445
+ _input_out: {
446
+ authorization?: string | undefined;
447
+ leagueId: number;
448
+ teamId: number;
449
+ paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
450
+ paymentMode: "session" | "intent";
451
+ code?: string | undefined;
452
+ };
453
+ _output_in: typeof import("@trpc/server").unsetMarker;
454
+ _output_out: typeof import("@trpc/server").unsetMarker;
455
+ }, {
456
+ eventName: string;
457
+ }>;
458
+ }>;
459
+ oauth: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
460
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
461
+ meta: object;
462
+ errorShape: import("@trpc/server").DefaultErrorShape;
463
+ transformer: import("@trpc/server").DefaultDataTransformer;
464
+ }>, {
465
+ googleAuth: import("@trpc/server").BuildProcedure<"mutation", {
466
+ _config: import("@trpc/server").RootConfig<{
467
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
468
+ meta: object;
469
+ errorShape: import("@trpc/server").DefaultErrorShape;
470
+ transformer: import("@trpc/server").DefaultDataTransformer;
471
+ }>;
472
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
473
+ _input_in: typeof import("@trpc/server").unsetMarker;
474
+ _input_out: typeof import("@trpc/server").unsetMarker;
475
+ _output_in: typeof import("@trpc/server").unsetMarker;
476
+ _output_out: typeof import("@trpc/server").unsetMarker;
477
+ _meta: object;
478
+ }, string>;
479
+ googleCallback: import("@trpc/server").BuildProcedure<"query", {
480
+ _config: import("@trpc/server").RootConfig<{
481
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
482
+ meta: object;
483
+ errorShape: import("@trpc/server").DefaultErrorShape;
484
+ transformer: import("@trpc/server").DefaultDataTransformer;
485
+ }>;
486
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
487
+ _input_in: typeof import("@trpc/server").unsetMarker;
488
+ _input_out: typeof import("@trpc/server").unsetMarker;
489
+ _output_in: typeof import("@trpc/server").unsetMarker;
490
+ _output_out: typeof import("@trpc/server").unsetMarker;
491
+ _meta: object;
492
+ }, void>;
493
+ googleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
494
+ _config: import("@trpc/server").RootConfig<{
495
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
496
+ meta: object;
497
+ errorShape: import("@trpc/server").DefaultErrorShape;
498
+ transformer: import("@trpc/server").DefaultDataTransformer;
499
+ }>;
500
+ _meta: object;
501
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
502
+ _input_in: {
503
+ code: string;
504
+ idToken?: string | undefined;
505
+ };
506
+ _input_out: {
507
+ code: string;
508
+ idToken?: string | undefined;
509
+ };
510
+ _output_in: typeof import("@trpc/server").unsetMarker;
511
+ _output_out: typeof import("@trpc/server").unsetMarker;
512
+ }, {
513
+ accessToken: string;
514
+ refreshToken: string;
515
+ accountStatus: string;
516
+ redirectTeamId?: number | null;
517
+ authSchemas: import("../api-type/src/types/member").TAuthSchemas;
518
+ memberId: number;
519
+ bio: string | null;
520
+ city?: string;
521
+ street?: string;
522
+ state?: string;
523
+ avatar: string | null;
524
+ teams: import("../api-type/src/models/team").Team[];
525
+ favoriteTeam: number | undefined | null;
526
+ zip: string | undefined;
527
+ phoneNumber: string | null;
528
+ gender?: string;
529
+ birthday: string | null;
530
+ location: string | null;
531
+ email: string;
532
+ firstName: string | null;
533
+ lastName: string | null;
534
+ }>;
535
+ appleAuth: import("@trpc/server").BuildProcedure<"mutation", {
536
+ _config: import("@trpc/server").RootConfig<{
537
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
538
+ meta: object;
539
+ errorShape: import("@trpc/server").DefaultErrorShape;
540
+ transformer: import("@trpc/server").DefaultDataTransformer;
541
+ }>;
542
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
543
+ _input_in: typeof import("@trpc/server").unsetMarker;
544
+ _input_out: typeof import("@trpc/server").unsetMarker;
545
+ _output_in: typeof import("@trpc/server").unsetMarker;
546
+ _output_out: typeof import("@trpc/server").unsetMarker;
547
+ _meta: object;
548
+ }, string>;
549
+ appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
550
+ _config: import("@trpc/server").RootConfig<{
551
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
552
+ meta: object;
553
+ errorShape: import("@trpc/server").DefaultErrorShape;
554
+ transformer: import("@trpc/server").DefaultDataTransformer;
555
+ }>;
556
+ _meta: object;
557
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
558
+ _input_in: {
559
+ code: string;
560
+ };
561
+ _input_out: {
562
+ code: string;
563
+ };
564
+ _output_in: typeof import("@trpc/server").unsetMarker;
565
+ _output_out: typeof import("@trpc/server").unsetMarker;
566
+ }, void>;
567
+ appleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
568
+ _config: import("@trpc/server").RootConfig<{
569
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
570
+ meta: object;
571
+ errorShape: import("@trpc/server").DefaultErrorShape;
572
+ transformer: import("@trpc/server").DefaultDataTransformer;
573
+ }>;
574
+ _meta: object;
575
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
576
+ _input_in: {
577
+ idToken: string;
578
+ };
579
+ _input_out: {
580
+ idToken: string;
581
+ };
582
+ _output_in: typeof import("@trpc/server").unsetMarker;
583
+ _output_out: typeof import("@trpc/server").unsetMarker;
584
+ }, {
585
+ accessToken: string;
586
+ refreshToken: string;
587
+ accountStatus: string;
588
+ redirectTeamId?: number | null;
589
+ authSchemas: import("../api-type/src/types/member").TAuthSchemas;
590
+ memberId: number;
591
+ bio: string | null;
592
+ city?: string;
593
+ street?: string;
594
+ state?: string;
595
+ avatar: string | null;
596
+ teams: import("../api-type/src/models/team").Team[];
597
+ favoriteTeam: number | undefined | null;
598
+ zip: string | undefined;
599
+ phoneNumber: string | null;
600
+ gender?: string;
601
+ birthday: string | null;
602
+ location: string | null;
603
+ email: string;
604
+ firstName: string | null;
605
+ lastName: string | null;
606
+ }>;
607
+ revokeAccessToken: import("@trpc/server").BuildProcedure<"mutation", {
608
+ _config: import("@trpc/server").RootConfig<{
609
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
610
+ meta: object;
611
+ errorShape: import("@trpc/server").DefaultErrorShape;
612
+ transformer: import("@trpc/server").DefaultDataTransformer;
613
+ }>;
614
+ _meta: object;
615
+ _ctx_out: {
616
+ req: import("http").IncomingMessage;
617
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
618
+ user: import("../api-type/src/types/auth").TJwtPayload;
619
+ };
620
+ _input_in: {
621
+ authorization?: string | undefined;
622
+ provider: "apple" | "google";
623
+ };
624
+ _input_out: {
625
+ authorization?: string | undefined;
626
+ provider: "apple" | "google";
627
+ };
628
+ _output_in: typeof import("@trpc/server").unsetMarker;
629
+ _output_out: typeof import("@trpc/server").unsetMarker;
630
+ }, import("../api-type/src/types/auth").MemberAuthResponse>;
631
+ }>;
632
+ pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
633
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
634
+ meta: object;
635
+ errorShape: import("@trpc/server").DefaultErrorShape;
636
+ transformer: import("@trpc/server").DefaultDataTransformer;
637
+ }>, {
638
+ registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
639
+ _config: import("@trpc/server").RootConfig<{
640
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
641
+ meta: object;
642
+ errorShape: import("@trpc/server").DefaultErrorShape;
643
+ transformer: import("@trpc/server").DefaultDataTransformer;
644
+ }>;
645
+ _meta: object;
646
+ _ctx_out: {
647
+ req: import("http").IncomingMessage;
648
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
649
+ user: import("../api-type/src/types/auth").TJwtPayload;
650
+ };
651
+ _input_in: {
652
+ authorization?: string | undefined;
653
+ pickupId: number;
654
+ memberId: number;
655
+ cancelPath?: string | undefined;
656
+ code?: string | undefined;
657
+ paymentMode?: "session" | "intent" | undefined;
658
+ };
659
+ _input_out: {
660
+ authorization?: string | undefined;
661
+ pickupId: number;
662
+ memberId: number;
663
+ paymentMode: "session" | "intent";
664
+ cancelPath?: string | undefined;
665
+ code?: string | undefined;
666
+ };
667
+ _output_in: typeof import("@trpc/server").unsetMarker;
668
+ _output_out: typeof import("@trpc/server").unsetMarker;
669
+ }, {
670
+ eventName: string;
671
+ }>;
672
+ }>;
673
+ }>, unknown> & import("@trpc/react-query/dist/createTRPCReact").DecoratedProcedureRecord<{
674
+ discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
675
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
676
+ meta: object;
677
+ errorShape: import("@trpc/server").DefaultErrorShape;
678
+ transformer: import("@trpc/server").DefaultDataTransformer;
679
+ }>, {
680
+ get: import("@trpc/server").BuildProcedure<"mutation", {
681
+ _config: import("@trpc/server").RootConfig<{
682
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
683
+ meta: object;
684
+ errorShape: import("@trpc/server").DefaultErrorShape;
685
+ transformer: import("@trpc/server").DefaultDataTransformer;
686
+ }>;
687
+ _meta: object;
688
+ _ctx_out: {
689
+ req: import("http").IncomingMessage;
690
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
691
+ user: import("../api-type/src/types/auth").TJwtPayload;
692
+ };
693
+ _input_in: {
694
+ authorization?: string | undefined;
695
+ id: number;
696
+ };
697
+ _input_out: {
698
+ authorization?: string | undefined;
699
+ id: number;
700
+ };
701
+ _output_in: typeof import("@trpc/server").unsetMarker;
702
+ _output_out: typeof import("@trpc/server").unsetMarker;
703
+ }, import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode>;
704
+ list: import("@trpc/server").BuildProcedure<"query", {
705
+ _config: import("@trpc/server").RootConfig<{
706
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
707
+ meta: object;
708
+ errorShape: import("@trpc/server").DefaultErrorShape;
709
+ transformer: import("@trpc/server").DefaultDataTransformer;
710
+ }>;
711
+ _meta: object;
712
+ _ctx_out: {
713
+ req: import("http").IncomingMessage;
714
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
715
+ user: import("../api-type/src/types/auth").TJwtPayload;
716
+ };
717
+ _input_in: {
718
+ authorization?: string | undefined;
719
+ limit: number;
720
+ cursor: number;
721
+ code?: string | undefined;
722
+ direction?: "asc" | "desc" | undefined;
723
+ listExpired?: boolean | undefined;
724
+ };
725
+ _input_out: {
726
+ authorization?: string | undefined;
727
+ limit: number;
728
+ cursor: number;
729
+ direction: "asc" | "desc";
730
+ listExpired: boolean;
731
+ code?: string | undefined;
732
+ };
733
+ _output_in: typeof import("@trpc/server").unsetMarker;
734
+ _output_out: typeof import("@trpc/server").unsetMarker;
735
+ }, {
736
+ items: import("objection").Page<import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode>;
737
+ nextCursor: number | undefined;
738
+ }>;
739
+ create: import("@trpc/server").BuildProcedure<"mutation", {
740
+ _config: import("@trpc/server").RootConfig<{
741
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
742
+ meta: object;
743
+ errorShape: import("@trpc/server").DefaultErrorShape;
744
+ transformer: import("@trpc/server").DefaultDataTransformer;
745
+ }>;
746
+ _meta: object;
747
+ _ctx_out: {
748
+ req: import("http").IncomingMessage;
749
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
750
+ user: import("../api-type/src/types/auth").TJwtPayload;
751
+ };
752
+ _input_in: {
753
+ authorization?: string | undefined;
754
+ description: string;
755
+ code: string;
756
+ appliesWhen: "purchase";
757
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
758
+ amountType: "flat-rate" | "percentage";
759
+ amountValue: number;
760
+ validFrom: Date | null;
761
+ validUntil: Date | null;
762
+ };
763
+ _input_out: {
764
+ authorization?: string | undefined;
765
+ description: string;
766
+ code: string;
767
+ appliesWhen: "purchase";
768
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
769
+ amountType: "flat-rate" | "percentage";
770
+ amountValue: number;
771
+ validFrom: Date | null;
772
+ validUntil: Date | null;
773
+ };
774
+ _output_in: typeof import("@trpc/server").unsetMarker;
775
+ _output_out: typeof import("@trpc/server").unsetMarker;
776
+ }, {
777
+ id: number;
778
+ }>;
779
+ update: import("@trpc/server").BuildProcedure<"mutation", {
780
+ _config: import("@trpc/server").RootConfig<{
781
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
782
+ meta: object;
783
+ errorShape: import("@trpc/server").DefaultErrorShape;
784
+ transformer: import("@trpc/server").DefaultDataTransformer;
785
+ }>;
786
+ _meta: object;
787
+ _ctx_out: {
788
+ req: import("http").IncomingMessage;
789
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
790
+ user: import("../api-type/src/types/auth").TJwtPayload;
791
+ };
792
+ _input_in: {
793
+ authorization?: string | undefined;
794
+ id: number;
795
+ description: string;
796
+ code: string;
797
+ appliesWhen: "purchase";
798
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
799
+ amountType: "flat-rate" | "percentage";
800
+ amountValue: number;
801
+ validFrom: Date | null;
802
+ validUntil: Date | null;
803
+ };
804
+ _input_out: {
805
+ authorization?: string | undefined;
806
+ id: number;
807
+ description: string;
808
+ code: string;
809
+ appliesWhen: "purchase";
810
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
811
+ amountType: "flat-rate" | "percentage";
812
+ amountValue: number;
813
+ validFrom: Date | null;
814
+ validUntil: Date | null;
815
+ };
816
+ _output_in: typeof import("@trpc/server").unsetMarker;
817
+ _output_out: typeof import("@trpc/server").unsetMarker;
818
+ }, void>;
819
+ delete: import("@trpc/server").BuildProcedure<"mutation", {
820
+ _config: import("@trpc/server").RootConfig<{
821
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
822
+ meta: object;
823
+ errorShape: import("@trpc/server").DefaultErrorShape;
824
+ transformer: import("@trpc/server").DefaultDataTransformer;
825
+ }>;
826
+ _meta: object;
827
+ _ctx_out: {
828
+ req: import("http").IncomingMessage;
829
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
830
+ user: import("../api-type/src/types/auth").TJwtPayload;
831
+ };
832
+ _input_in: {
833
+ authorization?: string | undefined;
834
+ id: number;
835
+ };
836
+ _input_out: {
837
+ authorization?: string | undefined;
838
+ id: number;
839
+ };
840
+ _output_in: typeof import("@trpc/server").unsetMarker;
841
+ _output_out: typeof import("@trpc/server").unsetMarker;
842
+ }, void>;
843
+ check: import("@trpc/server").BuildProcedure<"mutation", {
844
+ _config: import("@trpc/server").RootConfig<{
845
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
846
+ meta: object;
847
+ errorShape: import("@trpc/server").DefaultErrorShape;
848
+ transformer: import("@trpc/server").DefaultDataTransformer;
849
+ }>;
850
+ _meta: object;
851
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
852
+ _input_in: {
853
+ id: number;
854
+ code: string;
855
+ appliesWhen: "purchase";
856
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
857
+ productValue: number;
858
+ };
859
+ _input_out: {
860
+ id: number;
861
+ code: string;
862
+ appliesWhen: "purchase";
863
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
864
+ productValue: number;
865
+ };
866
+ _output_in: {
867
+ description: string;
868
+ code: string;
869
+ amountType: "flat-rate" | "percentage";
870
+ amountValue: number;
871
+ reducedValue: number;
872
+ newValue: number;
873
+ };
874
+ _output_out: {
875
+ description: string;
876
+ code: string;
877
+ amountType: "flat-rate" | "percentage";
878
+ amountValue: number;
879
+ reducedValue: number;
880
+ newValue: number;
881
+ };
882
+ }, unknown>;
883
+ }>;
884
+ freeAgentPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
885
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
886
+ meta: object;
887
+ errorShape: import("@trpc/server").DefaultErrorShape;
888
+ transformer: import("@trpc/server").DefaultDataTransformer;
889
+ }>, {
890
+ registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
891
+ _config: import("@trpc/server").RootConfig<{
892
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
893
+ meta: object;
894
+ errorShape: import("@trpc/server").DefaultErrorShape;
895
+ transformer: import("@trpc/server").DefaultDataTransformer;
896
+ }>;
897
+ _meta: object;
898
+ _ctx_out: {
899
+ req: import("http").IncomingMessage;
900
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
901
+ user: import("../api-type/src/types/auth").TJwtPayload;
902
+ };
903
+ _input_in: {
904
+ authorization?: string | undefined;
905
+ description: string;
906
+ freeAgentId: number;
907
+ leagueId?: number | undefined;
908
+ cancelPath?: string | undefined;
909
+ code?: string | undefined;
910
+ paymentMode?: "session" | "intent" | undefined;
911
+ };
912
+ _input_out: {
913
+ authorization?: string | undefined;
914
+ description: string;
915
+ paymentMode: "session" | "intent";
916
+ freeAgentId: number;
917
+ leagueId?: number | undefined;
918
+ cancelPath?: string | undefined;
919
+ code?: string | undefined;
920
+ };
921
+ _output_in: typeof import("@trpc/server").unsetMarker;
922
+ _output_out: typeof import("@trpc/server").unsetMarker;
923
+ }, {
924
+ ephemeralKey: string | undefined;
925
+ paymentIntentClientSecret: string;
926
+ paymentIntentId: string;
927
+ customerId: string;
928
+ orgPublishableKey: string | undefined;
929
+ orgStripeAccountId: string;
930
+ } | {
931
+ redirectUrl: string;
932
+ }>;
933
+ }>;
934
+ leaguePayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
935
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
936
+ meta: object;
937
+ errorShape: import("@trpc/server").DefaultErrorShape;
938
+ transformer: import("@trpc/server").DefaultDataTransformer;
939
+ }>, {
940
+ trackUsersAndPayments: import("@trpc/server").BuildProcedure<"query", {
941
+ _config: import("@trpc/server").RootConfig<{
942
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
943
+ meta: object;
944
+ errorShape: import("@trpc/server").DefaultErrorShape;
945
+ transformer: import("@trpc/server").DefaultDataTransformer;
946
+ }>;
947
+ _meta: object;
948
+ _ctx_out: {
949
+ req: import("http").IncomingMessage;
950
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
951
+ user: import("../api-type/src/types/auth").TJwtPayload;
952
+ };
953
+ _input_in: {
954
+ authorization?: string | undefined;
955
+ leagueId: number;
956
+ teamId: number;
957
+ };
958
+ _input_out: {
959
+ authorization?: string | undefined;
960
+ leagueId: number;
961
+ teamId: number;
962
+ };
963
+ _output_in: {
964
+ id: number;
965
+ deletedAt: Date | null;
966
+ memberId: number;
967
+ member: {
968
+ email: string;
969
+ id: number;
970
+ firstName: string | null;
971
+ lastName: string | null;
972
+ };
973
+ totalPaid: number;
974
+ payments: {
975
+ payerId: number;
976
+ id: number;
977
+ price: number;
978
+ createdAt: string | Date;
979
+ amountApplied: number | null;
980
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
981
+ }[];
982
+ }[];
983
+ _output_out: {
984
+ id: number;
985
+ deletedAt: Date | null;
986
+ memberId: number;
987
+ member: {
988
+ email: string;
989
+ id: number;
990
+ firstName: string | null;
991
+ lastName: string | null;
992
+ };
993
+ totalPaid: number;
994
+ payments: {
995
+ payerId: number;
996
+ id: number;
997
+ price: number;
998
+ createdAt: string | Date;
999
+ amountApplied: number | null;
1000
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
1001
+ }[];
1002
+ }[];
1003
+ }, unknown>;
1004
+ insertOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
1005
+ _config: import("@trpc/server").RootConfig<{
1006
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1007
+ meta: object;
1008
+ errorShape: import("@trpc/server").DefaultErrorShape;
1009
+ transformer: import("@trpc/server").DefaultDataTransformer;
1010
+ }>;
1011
+ _meta: object;
1012
+ _ctx_out: {
1013
+ req: import("http").IncomingMessage;
1014
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
1015
+ user: import("../api-type/src/types/auth").TJwtPayload;
1016
+ };
1017
+ _input_in: {
1018
+ authorization?: string | undefined;
1019
+ price: number;
1020
+ leagueId: number;
1021
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
1022
+ teamRosterId: number;
1023
+ };
1024
+ _input_out: {
1025
+ authorization?: string | undefined;
1026
+ price: number;
1027
+ leagueId: number;
1028
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
1029
+ teamRosterId: number;
1030
+ };
1031
+ _output_in: typeof import("@trpc/server").unsetMarker;
1032
+ _output_out: typeof import("@trpc/server").unsetMarker;
1033
+ }, null>;
1034
+ updateOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
1035
+ _config: import("@trpc/server").RootConfig<{
1036
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1037
+ meta: object;
1038
+ errorShape: import("@trpc/server").DefaultErrorShape;
1039
+ transformer: import("@trpc/server").DefaultDataTransformer;
1040
+ }>;
1041
+ _meta: object;
1042
+ _ctx_out: {
1043
+ req: import("http").IncomingMessage;
1044
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
1045
+ user: import("../api-type/src/types/auth").TJwtPayload;
1046
+ };
1047
+ _input_in: {
1048
+ authorization?: string | undefined;
1049
+ id: number;
1050
+ price: number;
1051
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
1052
+ teamRosterId: number;
1053
+ };
1054
+ _input_out: {
1055
+ authorization?: string | undefined;
1056
+ id: number;
1057
+ price: number;
1058
+ offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
1059
+ teamRosterId: number;
1060
+ };
1061
+ _output_in: typeof import("@trpc/server").unsetMarker;
1062
+ _output_out: typeof import("@trpc/server").unsetMarker;
1063
+ }, null>;
1064
+ deleteOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
1065
+ _config: import("@trpc/server").RootConfig<{
1066
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1067
+ meta: object;
1068
+ errorShape: import("@trpc/server").DefaultErrorShape;
1069
+ transformer: import("@trpc/server").DefaultDataTransformer;
1070
+ }>;
1071
+ _meta: object;
1072
+ _ctx_out: {
1073
+ req: import("http").IncomingMessage;
1074
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
1075
+ user: import("../api-type/src/types/auth").TJwtPayload;
1076
+ };
1077
+ _input_in: {
1078
+ authorization?: string | undefined;
1079
+ id: number;
1080
+ };
1081
+ _input_out: {
1082
+ authorization?: string | undefined;
1083
+ id: number;
1084
+ };
1085
+ _output_in: typeof import("@trpc/server").unsetMarker;
1086
+ _output_out: typeof import("@trpc/server").unsetMarker;
1087
+ }, null>;
1088
+ registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
1089
+ _config: import("@trpc/server").RootConfig<{
1090
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1091
+ meta: object;
1092
+ errorShape: import("@trpc/server").DefaultErrorShape;
1093
+ transformer: import("@trpc/server").DefaultDataTransformer;
1094
+ }>;
1095
+ _meta: object;
1096
+ _ctx_out: {
1097
+ req: import("http").IncomingMessage;
1098
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
1099
+ user: import("../api-type/src/types/auth").TJwtPayload;
1100
+ };
1101
+ _input_in: {
1102
+ authorization?: string | undefined;
1103
+ leagueId: number;
1104
+ teamId: number;
1105
+ paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
1106
+ code?: string | undefined;
1107
+ paymentMode?: "session" | "intent" | undefined;
1108
+ };
1109
+ _input_out: {
1110
+ authorization?: string | undefined;
1111
+ leagueId: number;
1112
+ teamId: number;
1113
+ paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
1114
+ paymentMode: "session" | "intent";
1115
+ code?: string | undefined;
1116
+ };
1117
+ _output_in: typeof import("@trpc/server").unsetMarker;
1118
+ _output_out: typeof import("@trpc/server").unsetMarker;
1119
+ }, {
1120
+ eventName: string;
1121
+ }>;
1122
+ }>;
1123
+ oauth: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
1124
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1125
+ meta: object;
1126
+ errorShape: import("@trpc/server").DefaultErrorShape;
1127
+ transformer: import("@trpc/server").DefaultDataTransformer;
1128
+ }>, {
1129
+ googleAuth: import("@trpc/server").BuildProcedure<"mutation", {
1130
+ _config: import("@trpc/server").RootConfig<{
1131
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1132
+ meta: object;
1133
+ errorShape: import("@trpc/server").DefaultErrorShape;
1134
+ transformer: import("@trpc/server").DefaultDataTransformer;
1135
+ }>;
1136
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1137
+ _input_in: typeof import("@trpc/server").unsetMarker;
1138
+ _input_out: typeof import("@trpc/server").unsetMarker;
1139
+ _output_in: typeof import("@trpc/server").unsetMarker;
1140
+ _output_out: typeof import("@trpc/server").unsetMarker;
1141
+ _meta: object;
1142
+ }, string>;
1143
+ googleCallback: import("@trpc/server").BuildProcedure<"query", {
1144
+ _config: import("@trpc/server").RootConfig<{
1145
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1146
+ meta: object;
1147
+ errorShape: import("@trpc/server").DefaultErrorShape;
1148
+ transformer: import("@trpc/server").DefaultDataTransformer;
1149
+ }>;
1150
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1151
+ _input_in: typeof import("@trpc/server").unsetMarker;
1152
+ _input_out: typeof import("@trpc/server").unsetMarker;
1153
+ _output_in: typeof import("@trpc/server").unsetMarker;
1154
+ _output_out: typeof import("@trpc/server").unsetMarker;
1155
+ _meta: object;
1156
+ }, void>;
1157
+ googleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
1158
+ _config: import("@trpc/server").RootConfig<{
1159
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1160
+ meta: object;
1161
+ errorShape: import("@trpc/server").DefaultErrorShape;
1162
+ transformer: import("@trpc/server").DefaultDataTransformer;
1163
+ }>;
1164
+ _meta: object;
1165
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1166
+ _input_in: {
1167
+ code: string;
1168
+ idToken?: string | undefined;
1169
+ };
1170
+ _input_out: {
1171
+ code: string;
1172
+ idToken?: string | undefined;
1173
+ };
1174
+ _output_in: typeof import("@trpc/server").unsetMarker;
1175
+ _output_out: typeof import("@trpc/server").unsetMarker;
1176
+ }, {
1177
+ accessToken: string;
1178
+ refreshToken: string;
1179
+ accountStatus: string;
1180
+ redirectTeamId?: number | null;
1181
+ authSchemas: import("../api-type/src/types/member").TAuthSchemas;
1182
+ memberId: number;
1183
+ bio: string | null;
1184
+ city?: string;
1185
+ street?: string;
1186
+ state?: string;
1187
+ avatar: string | null;
1188
+ teams: import("../api-type/src/models/team").Team[];
1189
+ favoriteTeam: number | undefined | null;
1190
+ zip: string | undefined;
1191
+ phoneNumber: string | null;
1192
+ gender?: string;
1193
+ birthday: string | null;
1194
+ location: string | null;
1195
+ email: string;
1196
+ firstName: string | null;
1197
+ lastName: string | null;
1198
+ }>;
1199
+ appleAuth: import("@trpc/server").BuildProcedure<"mutation", {
1200
+ _config: import("@trpc/server").RootConfig<{
1201
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1202
+ meta: object;
1203
+ errorShape: import("@trpc/server").DefaultErrorShape;
1204
+ transformer: import("@trpc/server").DefaultDataTransformer;
1205
+ }>;
1206
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1207
+ _input_in: typeof import("@trpc/server").unsetMarker;
1208
+ _input_out: typeof import("@trpc/server").unsetMarker;
1209
+ _output_in: typeof import("@trpc/server").unsetMarker;
1210
+ _output_out: typeof import("@trpc/server").unsetMarker;
1211
+ _meta: object;
1212
+ }, string>;
1213
+ appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
1214
+ _config: import("@trpc/server").RootConfig<{
1215
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1216
+ meta: object;
1217
+ errorShape: import("@trpc/server").DefaultErrorShape;
1218
+ transformer: import("@trpc/server").DefaultDataTransformer;
1219
+ }>;
1220
+ _meta: object;
1221
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1222
+ _input_in: {
1223
+ code: string;
1224
+ };
1225
+ _input_out: {
1226
+ code: string;
1227
+ };
1228
+ _output_in: typeof import("@trpc/server").unsetMarker;
1229
+ _output_out: typeof import("@trpc/server").unsetMarker;
1230
+ }, void>;
1231
+ appleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
1232
+ _config: import("@trpc/server").RootConfig<{
1233
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1234
+ meta: object;
1235
+ errorShape: import("@trpc/server").DefaultErrorShape;
1236
+ transformer: import("@trpc/server").DefaultDataTransformer;
1237
+ }>;
1238
+ _meta: object;
1239
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1240
+ _input_in: {
1241
+ idToken: string;
1242
+ };
1243
+ _input_out: {
1244
+ idToken: string;
1245
+ };
1246
+ _output_in: typeof import("@trpc/server").unsetMarker;
1247
+ _output_out: typeof import("@trpc/server").unsetMarker;
1248
+ }, {
1249
+ accessToken: string;
1250
+ refreshToken: string;
1251
+ accountStatus: string;
1252
+ redirectTeamId?: number | null;
1253
+ authSchemas: import("../api-type/src/types/member").TAuthSchemas;
1254
+ memberId: number;
1255
+ bio: string | null;
1256
+ city?: string;
1257
+ street?: string;
1258
+ state?: string;
1259
+ avatar: string | null;
1260
+ teams: import("../api-type/src/models/team").Team[];
1261
+ favoriteTeam: number | undefined | null;
1262
+ zip: string | undefined;
1263
+ phoneNumber: string | null;
1264
+ gender?: string;
1265
+ birthday: string | null;
1266
+ location: string | null;
1267
+ email: string;
1268
+ firstName: string | null;
1269
+ lastName: string | null;
1270
+ }>;
1271
+ revokeAccessToken: import("@trpc/server").BuildProcedure<"mutation", {
1272
+ _config: import("@trpc/server").RootConfig<{
1273
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1274
+ meta: object;
1275
+ errorShape: import("@trpc/server").DefaultErrorShape;
1276
+ transformer: import("@trpc/server").DefaultDataTransformer;
1277
+ }>;
1278
+ _meta: object;
1279
+ _ctx_out: {
1280
+ req: import("http").IncomingMessage;
1281
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
1282
+ user: import("../api-type/src/types/auth").TJwtPayload;
1283
+ };
1284
+ _input_in: {
1285
+ authorization?: string | undefined;
1286
+ provider: "apple" | "google";
1287
+ };
1288
+ _input_out: {
1289
+ authorization?: string | undefined;
1290
+ provider: "apple" | "google";
1291
+ };
1292
+ _output_in: typeof import("@trpc/server").unsetMarker;
1293
+ _output_out: typeof import("@trpc/server").unsetMarker;
1294
+ }, import("../api-type/src/types/auth").MemberAuthResponse>;
1295
+ }>;
1296
+ pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
1297
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1298
+ meta: object;
1299
+ errorShape: import("@trpc/server").DefaultErrorShape;
1300
+ transformer: import("@trpc/server").DefaultDataTransformer;
1301
+ }>, {
1302
+ registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
1303
+ _config: import("@trpc/server").RootConfig<{
1304
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
1305
+ meta: object;
1306
+ errorShape: import("@trpc/server").DefaultErrorShape;
1307
+ transformer: import("@trpc/server").DefaultDataTransformer;
1308
+ }>;
1309
+ _meta: object;
1310
+ _ctx_out: {
1311
+ req: import("http").IncomingMessage;
1312
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
1313
+ user: import("../api-type/src/types/auth").TJwtPayload;
1314
+ };
1315
+ _input_in: {
1316
+ authorization?: string | undefined;
1317
+ pickupId: number;
1318
+ memberId: number;
1319
+ cancelPath?: string | undefined;
1320
+ code?: string | undefined;
1321
+ paymentMode?: "session" | "intent" | undefined;
1322
+ };
1323
+ _input_out: {
1324
+ authorization?: string | undefined;
1325
+ pickupId: number;
1326
+ memberId: number;
1327
+ paymentMode: "session" | "intent";
1328
+ cancelPath?: string | undefined;
1329
+ code?: string | undefined;
1330
+ };
1331
+ _output_in: typeof import("@trpc/server").unsetMarker;
1332
+ _output_out: typeof import("@trpc/server").unsetMarker;
1333
+ }, {
1334
+ eventName: string;
1335
+ }>;
1336
+ }>;
1337
+ }, null, "">;
1338
+ export declare const TRPCProvider: ({ children, useLocalUrl, customUrl, queryClientConfig, queryClient, }: {
1339
+ children: ReactNode;
1340
+ useLocalUrl?: boolean;
1341
+ customUrl?: string;
1342
+ queryClientConfig?: QueryClientConfig;
1343
+ queryClient?: QueryClient;
1344
+ }) => import("react/jsx-runtime").JSX.Element;