bantr-api-client 12.0.2 → 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 +3 -10
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const authRouter: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").BuiltRouter<{
|
|
2
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
3
|
+
meta: object;
|
|
4
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").DefaultErrorShape;
|
|
5
|
+
transformer: false;
|
|
6
|
+
}, import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").DecorateCreateRouterOptions<{
|
|
7
|
+
autoLoginJwt: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
8
|
+
input: {
|
|
9
|
+
authorization?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
output: import("../modules/auth/auth.service").AutoLoginResult;
|
|
12
|
+
meta: object;
|
|
13
|
+
}>;
|
|
14
|
+
setPassword: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
15
|
+
input: {
|
|
16
|
+
authorization?: string | undefined;
|
|
17
|
+
newPassword: string;
|
|
18
|
+
confirmPassword: string;
|
|
19
|
+
};
|
|
20
|
+
output: import("../modules/auth/auth.service").SetPasswordResult;
|
|
21
|
+
meta: object;
|
|
22
|
+
}>;
|
|
23
|
+
}>>;
|
|
@@ -1,47 +1,19 @@
|
|
|
1
|
-
export declare const discountCodeRouter: import("@trpc/server
|
|
1
|
+
export declare const discountCodeRouter: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").BuiltRouter<{
|
|
2
2
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
3
3
|
meta: object;
|
|
4
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
5
|
-
transformer:
|
|
6
|
-
}
|
|
7
|
-
get: import("@trpc/server").
|
|
8
|
-
|
|
9
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
10
|
-
meta: object;
|
|
11
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
12
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
13
|
-
}>;
|
|
14
|
-
_meta: object;
|
|
15
|
-
_ctx_out: {
|
|
16
|
-
req: import("http").IncomingMessage;
|
|
17
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
18
|
-
user: import("../types/auth").TJwtPayload;
|
|
19
|
-
};
|
|
20
|
-
_input_in: {
|
|
21
|
-
authorization?: string | undefined;
|
|
22
|
-
id: number;
|
|
23
|
-
};
|
|
24
|
-
_input_out: {
|
|
4
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").DefaultErrorShape;
|
|
5
|
+
transformer: false;
|
|
6
|
+
}, import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").DecorateCreateRouterOptions<{
|
|
7
|
+
get: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
8
|
+
input: {
|
|
25
9
|
authorization?: string | undefined;
|
|
26
10
|
id: number;
|
|
27
11
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
list: import("@trpc/server").
|
|
32
|
-
|
|
33
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
34
|
-
meta: object;
|
|
35
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
36
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
37
|
-
}>;
|
|
38
|
-
_meta: object;
|
|
39
|
-
_ctx_out: {
|
|
40
|
-
req: import("http").IncomingMessage;
|
|
41
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
42
|
-
user: import("../types/auth").TJwtPayload;
|
|
43
|
-
};
|
|
44
|
-
_input_in: {
|
|
12
|
+
output: import("../modules/discount_code/discount_code.model").DiscountCode;
|
|
13
|
+
meta: object;
|
|
14
|
+
}>;
|
|
15
|
+
list: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").QueryProcedure<{
|
|
16
|
+
input: {
|
|
45
17
|
authorization?: string | undefined;
|
|
46
18
|
limit: number;
|
|
47
19
|
cursor: number;
|
|
@@ -50,35 +22,14 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
|
|
|
50
22
|
direction?: "asc" | "desc" | undefined;
|
|
51
23
|
listExpired?: boolean | undefined;
|
|
52
24
|
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
direction: "asc" | "desc";
|
|
57
|
-
cursor: number;
|
|
58
|
-
listExpired: boolean;
|
|
59
|
-
orgWorkspaceId?: number | null | undefined;
|
|
60
|
-
code?: string | undefined;
|
|
25
|
+
output: {
|
|
26
|
+
items: import("objection").Page<import("../modules/discount_code/discount_code.model").DiscountCode>;
|
|
27
|
+
nextCursor: number | undefined;
|
|
61
28
|
};
|
|
62
|
-
|
|
63
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
64
|
-
}, {
|
|
65
|
-
items: import("objection").Page<import("../modules/discount_code/discount_code.model").DiscountCode>;
|
|
66
|
-
nextCursor: number | undefined;
|
|
29
|
+
meta: object;
|
|
67
30
|
}>;
|
|
68
|
-
create: import("@trpc/server").
|
|
69
|
-
|
|
70
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
71
|
-
meta: object;
|
|
72
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
73
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
74
|
-
}>;
|
|
75
|
-
_meta: object;
|
|
76
|
-
_ctx_out: {
|
|
77
|
-
req: import("http").IncomingMessage;
|
|
78
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
79
|
-
user: import("../types/auth").TJwtPayload;
|
|
80
|
-
};
|
|
81
|
-
_input_in: {
|
|
31
|
+
create: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
32
|
+
input: {
|
|
82
33
|
authorization?: string | undefined;
|
|
83
34
|
description: string;
|
|
84
35
|
code: string;
|
|
@@ -90,51 +41,13 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
|
|
|
90
41
|
validUntil: Date | null;
|
|
91
42
|
orgWorkspaceId?: number | null | undefined;
|
|
92
43
|
};
|
|
93
|
-
|
|
94
|
-
authorization?: string | undefined;
|
|
95
|
-
description: string;
|
|
96
|
-
code: string;
|
|
97
|
-
appliesWhen: "purchase";
|
|
98
|
-
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
|
99
|
-
amountType: "flat-rate" | "percentage";
|
|
100
|
-
amountValue: number;
|
|
101
|
-
validFrom: Date | null;
|
|
102
|
-
validUntil: Date | null;
|
|
103
|
-
orgWorkspaceId?: number | null | undefined;
|
|
104
|
-
};
|
|
105
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
106
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
107
|
-
}, {
|
|
108
|
-
id: number;
|
|
109
|
-
}>;
|
|
110
|
-
update: import("@trpc/server").BuildProcedure<"mutation", {
|
|
111
|
-
_config: import("@trpc/server").RootConfig<{
|
|
112
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
113
|
-
meta: object;
|
|
114
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
115
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
116
|
-
}>;
|
|
117
|
-
_meta: object;
|
|
118
|
-
_ctx_out: {
|
|
119
|
-
req: import("http").IncomingMessage;
|
|
120
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
121
|
-
user: import("../types/auth").TJwtPayload;
|
|
122
|
-
};
|
|
123
|
-
_input_in: {
|
|
124
|
-
authorization?: string | undefined;
|
|
44
|
+
output: {
|
|
125
45
|
id: number;
|
|
126
|
-
description: string;
|
|
127
|
-
code: string;
|
|
128
|
-
appliesWhen: "purchase";
|
|
129
|
-
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
|
130
|
-
amountType: "flat-rate" | "percentage";
|
|
131
|
-
amountValue: number;
|
|
132
|
-
validFrom: Date | null;
|
|
133
|
-
validUntil: Date | null;
|
|
134
|
-
usageLimit: number | null;
|
|
135
|
-
orgWorkspaceId?: number | null | undefined;
|
|
136
46
|
};
|
|
137
|
-
|
|
47
|
+
meta: object;
|
|
48
|
+
}>;
|
|
49
|
+
update: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
50
|
+
input: {
|
|
138
51
|
authorization?: string | undefined;
|
|
139
52
|
id: number;
|
|
140
53
|
description: string;
|
|
@@ -148,71 +61,33 @@ export declare const discountCodeRouter: import("@trpc/server").CreateRouterInne
|
|
|
148
61
|
usageLimit: number | null;
|
|
149
62
|
orgWorkspaceId?: number | null | undefined;
|
|
150
63
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
delete: import("@trpc/server").
|
|
155
|
-
|
|
156
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
157
|
-
meta: object;
|
|
158
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
159
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
160
|
-
}>;
|
|
161
|
-
_meta: object;
|
|
162
|
-
_ctx_out: {
|
|
163
|
-
req: import("http").IncomingMessage;
|
|
164
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
165
|
-
user: import("../types/auth").TJwtPayload;
|
|
166
|
-
};
|
|
167
|
-
_input_in: {
|
|
168
|
-
authorization?: string | undefined;
|
|
169
|
-
id: number;
|
|
170
|
-
};
|
|
171
|
-
_input_out: {
|
|
64
|
+
output: void;
|
|
65
|
+
meta: object;
|
|
66
|
+
}>;
|
|
67
|
+
delete: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
68
|
+
input: {
|
|
172
69
|
authorization?: string | undefined;
|
|
173
70
|
id: number;
|
|
174
71
|
};
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
check: import("@trpc/server").
|
|
179
|
-
|
|
180
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
181
|
-
meta: object;
|
|
182
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
183
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
184
|
-
}>;
|
|
185
|
-
_meta: object;
|
|
186
|
-
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
187
|
-
_input_in: {
|
|
188
|
-
id: number;
|
|
189
|
-
appliesWhen: "purchase";
|
|
190
|
-
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
|
191
|
-
productValue: number;
|
|
192
|
-
code?: string | undefined;
|
|
193
|
-
};
|
|
194
|
-
_input_out: {
|
|
72
|
+
output: void;
|
|
73
|
+
meta: object;
|
|
74
|
+
}>;
|
|
75
|
+
check: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
76
|
+
input: {
|
|
195
77
|
id: number;
|
|
196
78
|
appliesWhen: "purchase";
|
|
197
79
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
|
198
80
|
productValue: number;
|
|
199
81
|
code?: string | undefined;
|
|
200
82
|
};
|
|
201
|
-
|
|
83
|
+
output: {
|
|
202
84
|
description: string;
|
|
203
85
|
code: string;
|
|
204
86
|
amountType: "flat-rate" | "percentage";
|
|
205
87
|
amountValue: number;
|
|
206
|
-
newValue: number;
|
|
207
88
|
reducedValue: number;
|
|
208
|
-
};
|
|
209
|
-
_output_out: {
|
|
210
|
-
description: string;
|
|
211
|
-
code: string;
|
|
212
|
-
amountType: "flat-rate" | "percentage";
|
|
213
|
-
amountValue: number;
|
|
214
89
|
newValue: number;
|
|
215
|
-
reducedValue: number;
|
|
216
90
|
};
|
|
217
|
-
|
|
218
|
-
}>;
|
|
91
|
+
meta: object;
|
|
92
|
+
}>;
|
|
93
|
+
}>>;
|
|
@@ -1,68 +1,47 @@
|
|
|
1
|
-
export declare const freeAgentPaymentsRouter: import("@trpc/server
|
|
1
|
+
export declare const freeAgentPaymentsRouter: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").BuiltRouter<{
|
|
2
2
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
3
3
|
meta: object;
|
|
4
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
5
|
-
transformer:
|
|
6
|
-
}
|
|
7
|
-
registrationCheckout: import("@trpc/server").
|
|
8
|
-
|
|
9
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
10
|
-
meta: object;
|
|
11
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
12
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
13
|
-
}>;
|
|
14
|
-
_meta: object;
|
|
15
|
-
_ctx_out: {
|
|
16
|
-
req: import("http").IncomingMessage;
|
|
17
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
18
|
-
user: import("../types/auth").TJwtPayload;
|
|
19
|
-
};
|
|
20
|
-
_input_in: {
|
|
4
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").DefaultErrorShape;
|
|
5
|
+
transformer: false;
|
|
6
|
+
}, import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").DecorateCreateRouterOptions<{
|
|
7
|
+
registrationCheckout: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
8
|
+
input: {
|
|
21
9
|
authorization?: string | undefined;
|
|
22
10
|
description: string;
|
|
23
11
|
freeAgentId: number;
|
|
24
12
|
leagueId?: number | undefined;
|
|
25
13
|
code?: string | undefined;
|
|
26
|
-
cancelPath?: string | undefined;
|
|
27
14
|
paymentMode?: "session" | "intent" | undefined;
|
|
28
|
-
};
|
|
29
|
-
_input_out: {
|
|
30
|
-
authorization?: string | undefined;
|
|
31
|
-
description: string;
|
|
32
|
-
paymentMode: "session" | "intent";
|
|
33
|
-
freeAgentId: number;
|
|
34
|
-
leagueId?: number | undefined;
|
|
35
|
-
code?: string | undefined;
|
|
36
15
|
cancelPath?: string | undefined;
|
|
37
16
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
17
|
+
output: {
|
|
18
|
+
registeredToFreeAgent: boolean;
|
|
19
|
+
redirectUrl?: undefined;
|
|
20
|
+
customerId?: undefined;
|
|
21
|
+
ephemeralKey?: undefined;
|
|
22
|
+
orgPublishableKey?: undefined;
|
|
23
|
+
paymentIntentId?: undefined;
|
|
24
|
+
orgStripeAccountId?: undefined;
|
|
25
|
+
paymentIntentClientSecret?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
registeredToFreeAgent: boolean;
|
|
28
|
+
redirectUrl: string;
|
|
29
|
+
customerId?: undefined;
|
|
30
|
+
ephemeralKey?: undefined;
|
|
31
|
+
orgPublishableKey?: undefined;
|
|
32
|
+
paymentIntentId?: undefined;
|
|
33
|
+
orgStripeAccountId?: undefined;
|
|
34
|
+
paymentIntentClientSecret?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
customerId: string;
|
|
37
|
+
ephemeralKey: string | undefined;
|
|
38
|
+
orgPublishableKey: string | undefined;
|
|
39
|
+
paymentIntentId: string;
|
|
40
|
+
orgStripeAccountId: string | undefined;
|
|
41
|
+
paymentIntentClientSecret: string;
|
|
42
|
+
registeredToFreeAgent: boolean;
|
|
43
|
+
redirectUrl?: undefined;
|
|
44
|
+
};
|
|
45
|
+
meta: object;
|
|
67
46
|
}>;
|
|
68
|
-
}
|
|
47
|
+
}>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const geolocationRouter: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").BuiltRouter<{
|
|
2
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
3
|
+
meta: object;
|
|
4
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").DefaultErrorShape;
|
|
5
|
+
transformer: false;
|
|
6
|
+
}, import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").DecorateCreateRouterOptions<{
|
|
7
|
+
fetchGeocode: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").QueryProcedure<{
|
|
8
|
+
input: {
|
|
9
|
+
address?: string | undefined;
|
|
10
|
+
lng?: string | undefined;
|
|
11
|
+
lat?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
output: any;
|
|
14
|
+
meta: object;
|
|
15
|
+
}>;
|
|
16
|
+
searchByText: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
17
|
+
input: {
|
|
18
|
+
text: string;
|
|
19
|
+
fields?: string[] | undefined;
|
|
20
|
+
};
|
|
21
|
+
output: import("../types").GooglePlacesResponse;
|
|
22
|
+
meta: object;
|
|
23
|
+
}>;
|
|
24
|
+
}>>;
|
|
@@ -1,62 +1,25 @@
|
|
|
1
|
-
export declare const leaguePaymentsRouter: import("@trpc/server
|
|
1
|
+
export declare const leaguePaymentsRouter: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").BuiltRouter<{
|
|
2
2
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
3
3
|
meta: object;
|
|
4
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
5
|
-
transformer:
|
|
6
|
-
}
|
|
7
|
-
trackUsersAndPayments: import("@trpc/server").
|
|
8
|
-
|
|
9
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
10
|
-
meta: object;
|
|
11
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
12
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
13
|
-
}>;
|
|
14
|
-
_meta: object;
|
|
15
|
-
_ctx_out: {
|
|
16
|
-
req: import("http").IncomingMessage;
|
|
17
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
18
|
-
user: import("../types/auth").TJwtPayload;
|
|
19
|
-
};
|
|
20
|
-
_input_in: {
|
|
21
|
-
authorization?: string | undefined;
|
|
22
|
-
teamId: number;
|
|
23
|
-
leagueId: number;
|
|
24
|
-
};
|
|
25
|
-
_input_out: {
|
|
4
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").DefaultErrorShape;
|
|
5
|
+
transformer: false;
|
|
6
|
+
}, import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").DecorateCreateRouterOptions<{
|
|
7
|
+
trackUsersAndPayments: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").QueryProcedure<{
|
|
8
|
+
input: {
|
|
26
9
|
authorization?: string | undefined;
|
|
27
10
|
teamId: number;
|
|
28
11
|
leagueId: number;
|
|
29
12
|
};
|
|
30
|
-
|
|
31
|
-
memberId: number;
|
|
13
|
+
output: {
|
|
32
14
|
id: number;
|
|
33
|
-
member: {
|
|
34
|
-
id: number;
|
|
35
|
-
firstName: string | null;
|
|
36
|
-
lastName: string | null;
|
|
37
|
-
email: string;
|
|
38
|
-
};
|
|
39
15
|
deletedAt: Date | null;
|
|
40
|
-
totalPaid: number;
|
|
41
|
-
payments: {
|
|
42
|
-
id: number;
|
|
43
|
-
createdAt: string | Date;
|
|
44
|
-
price: number;
|
|
45
|
-
payerId: number;
|
|
46
|
-
amountApplied: number | null;
|
|
47
|
-
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
|
48
|
-
}[];
|
|
49
|
-
}[];
|
|
50
|
-
_output_out: {
|
|
51
|
-
memberId: number;
|
|
52
|
-
id: number;
|
|
53
16
|
member: {
|
|
54
17
|
id: number;
|
|
55
18
|
firstName: string | null;
|
|
56
19
|
lastName: string | null;
|
|
57
20
|
email: string;
|
|
58
21
|
};
|
|
59
|
-
|
|
22
|
+
memberId: number;
|
|
60
23
|
totalPaid: number;
|
|
61
24
|
payments: {
|
|
62
25
|
id: number;
|
|
@@ -67,125 +30,51 @@ export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterIn
|
|
|
67
30
|
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
|
68
31
|
}[];
|
|
69
32
|
}[];
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
meta: object;
|
|
75
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
76
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
77
|
-
}>;
|
|
78
|
-
_meta: object;
|
|
79
|
-
_ctx_out: {
|
|
80
|
-
req: import("http").IncomingMessage;
|
|
81
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
82
|
-
user: import("../types/auth").TJwtPayload;
|
|
83
|
-
};
|
|
84
|
-
_input_in: {
|
|
33
|
+
meta: object;
|
|
34
|
+
}>;
|
|
35
|
+
insertOfflinePayment: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
36
|
+
input: {
|
|
85
37
|
authorization?: string | undefined;
|
|
86
38
|
leagueId: number;
|
|
87
39
|
price: number;
|
|
88
|
-
teamRosterId: number;
|
|
89
40
|
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
|
90
|
-
};
|
|
91
|
-
_input_out: {
|
|
92
|
-
authorization?: string | undefined;
|
|
93
|
-
leagueId: number;
|
|
94
|
-
price: number;
|
|
95
41
|
teamRosterId: number;
|
|
96
|
-
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
|
97
|
-
};
|
|
98
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
99
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
100
|
-
}, null>;
|
|
101
|
-
updateOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
|
102
|
-
_config: import("@trpc/server").RootConfig<{
|
|
103
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
104
|
-
meta: object;
|
|
105
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
106
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
107
|
-
}>;
|
|
108
|
-
_meta: object;
|
|
109
|
-
_ctx_out: {
|
|
110
|
-
req: import("http").IncomingMessage;
|
|
111
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
112
|
-
user: import("../types/auth").TJwtPayload;
|
|
113
42
|
};
|
|
114
|
-
|
|
43
|
+
output: null;
|
|
44
|
+
meta: object;
|
|
45
|
+
}>;
|
|
46
|
+
updateOfflinePayment: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
47
|
+
input: {
|
|
115
48
|
authorization?: string | undefined;
|
|
116
49
|
id: number;
|
|
117
50
|
price: number;
|
|
118
|
-
teamRosterId: number;
|
|
119
51
|
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
|
120
|
-
};
|
|
121
|
-
_input_out: {
|
|
122
|
-
authorization?: string | undefined;
|
|
123
|
-
id: number;
|
|
124
|
-
price: number;
|
|
125
52
|
teamRosterId: number;
|
|
126
|
-
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
|
127
|
-
};
|
|
128
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
129
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
130
|
-
}, null>;
|
|
131
|
-
deleteOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
|
132
|
-
_config: import("@trpc/server").RootConfig<{
|
|
133
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
134
|
-
meta: object;
|
|
135
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
136
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
137
|
-
}>;
|
|
138
|
-
_meta: object;
|
|
139
|
-
_ctx_out: {
|
|
140
|
-
req: import("http").IncomingMessage;
|
|
141
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
142
|
-
user: import("../types/auth").TJwtPayload;
|
|
143
53
|
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
54
|
+
output: null;
|
|
55
|
+
meta: object;
|
|
56
|
+
}>;
|
|
57
|
+
deleteOfflinePayment: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
58
|
+
input: {
|
|
149
59
|
authorization?: string | undefined;
|
|
150
60
|
id: number;
|
|
151
61
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
registrationCheckout: import("@trpc/server").
|
|
156
|
-
|
|
157
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
|
158
|
-
meta: object;
|
|
159
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
160
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
161
|
-
}>;
|
|
162
|
-
_meta: object;
|
|
163
|
-
_ctx_out: {
|
|
164
|
-
req: import("http").IncomingMessage;
|
|
165
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
166
|
-
user: import("../types/auth").TJwtPayload;
|
|
167
|
-
};
|
|
168
|
-
_input_in: {
|
|
62
|
+
output: null;
|
|
63
|
+
meta: object;
|
|
64
|
+
}>;
|
|
65
|
+
registrationCheckout: import("@trpc/server/dist/unstable-core-do-not-import.d-DKRHq4OJ.cjs").MutationProcedure<{
|
|
66
|
+
input: {
|
|
169
67
|
authorization?: string | undefined;
|
|
170
68
|
teamId: number;
|
|
171
69
|
leagueId: number;
|
|
172
70
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
|
173
71
|
code?: string | undefined;
|
|
174
|
-
paymentAmount?: number | undefined;
|
|
175
72
|
paymentMode?: "session" | "intent" | undefined;
|
|
176
|
-
};
|
|
177
|
-
_input_out: {
|
|
178
|
-
authorization?: string | undefined;
|
|
179
|
-
teamId: number;
|
|
180
|
-
leagueId: number;
|
|
181
|
-
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
|
182
|
-
paymentMode: "session" | "intent";
|
|
183
|
-
code?: string | undefined;
|
|
184
73
|
paymentAmount?: number | undefined;
|
|
185
74
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
75
|
+
output: {
|
|
76
|
+
eventName: string;
|
|
77
|
+
};
|
|
78
|
+
meta: object;
|
|
190
79
|
}>;
|
|
191
|
-
}
|
|
80
|
+
}>>;
|