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