bantr-api-client 1.3.0 → 1.4.0

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