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