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
@@ -0,0 +1,210 @@
|
|
1
|
+
export declare const discountCodeRouter: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
2
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
3
|
+
meta: object;
|
4
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
5
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
6
|
+
}>, {
|
7
|
+
get: import("@trpc/server").BuildProcedure<"mutation", {
|
8
|
+
_config: import("@trpc/server").RootConfig<{
|
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
|
+
user: import("../types/auth").TJwtPayload;
|
17
|
+
req: import("http").IncomingMessage;
|
18
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
19
|
+
};
|
20
|
+
_input_in: {
|
21
|
+
authorization?: string | undefined;
|
22
|
+
id: number;
|
23
|
+
};
|
24
|
+
_input_out: {
|
25
|
+
authorization?: string | undefined;
|
26
|
+
id: number;
|
27
|
+
};
|
28
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
29
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
30
|
+
}, import("../modules/discount_code/discount_code.model").DiscountCode>;
|
31
|
+
list: import("@trpc/server").BuildProcedure<"query", {
|
32
|
+
_config: import("@trpc/server").RootConfig<{
|
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
|
+
user: import("../types/auth").TJwtPayload;
|
41
|
+
req: import("http").IncomingMessage;
|
42
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
43
|
+
};
|
44
|
+
_input_in: {
|
45
|
+
authorization?: string | undefined;
|
46
|
+
limit: number;
|
47
|
+
cursor: number;
|
48
|
+
code?: string | undefined;
|
49
|
+
direction?: "asc" | "desc" | undefined;
|
50
|
+
listExpired?: boolean | undefined;
|
51
|
+
};
|
52
|
+
_input_out: {
|
53
|
+
authorization?: string | undefined;
|
54
|
+
limit: number;
|
55
|
+
cursor: number;
|
56
|
+
direction: "asc" | "desc";
|
57
|
+
listExpired: boolean;
|
58
|
+
code?: string | undefined;
|
59
|
+
};
|
60
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
61
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
62
|
+
}, {
|
63
|
+
items: import("objection").Page<import("../modules/discount_code/discount_code.model").DiscountCode>;
|
64
|
+
nextCursor: number | undefined;
|
65
|
+
}>;
|
66
|
+
create: import("@trpc/server").BuildProcedure<"mutation", {
|
67
|
+
_config: import("@trpc/server").RootConfig<{
|
68
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
69
|
+
meta: object;
|
70
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
71
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
72
|
+
}>;
|
73
|
+
_meta: object;
|
74
|
+
_ctx_out: {
|
75
|
+
user: import("../types/auth").TJwtPayload;
|
76
|
+
req: import("http").IncomingMessage;
|
77
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
78
|
+
};
|
79
|
+
_input_in: {
|
80
|
+
authorization?: string | undefined;
|
81
|
+
description: string;
|
82
|
+
code: string;
|
83
|
+
appliesWhen: "purchase";
|
84
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
85
|
+
amountType: "flat-rate" | "percentage";
|
86
|
+
amountValue: number;
|
87
|
+
validFrom: Date | null;
|
88
|
+
validUntil: Date | null;
|
89
|
+
};
|
90
|
+
_input_out: {
|
91
|
+
authorization?: string | undefined;
|
92
|
+
description: string;
|
93
|
+
code: string;
|
94
|
+
appliesWhen: "purchase";
|
95
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
96
|
+
amountType: "flat-rate" | "percentage";
|
97
|
+
amountValue: number;
|
98
|
+
validFrom: Date | null;
|
99
|
+
validUntil: Date | null;
|
100
|
+
};
|
101
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
102
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
103
|
+
}, {
|
104
|
+
id: number;
|
105
|
+
}>;
|
106
|
+
update: import("@trpc/server").BuildProcedure<"mutation", {
|
107
|
+
_config: import("@trpc/server").RootConfig<{
|
108
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
109
|
+
meta: object;
|
110
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
111
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
112
|
+
}>;
|
113
|
+
_meta: object;
|
114
|
+
_ctx_out: {
|
115
|
+
user: import("../types/auth").TJwtPayload;
|
116
|
+
req: import("http").IncomingMessage;
|
117
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
118
|
+
};
|
119
|
+
_input_in: {
|
120
|
+
authorization?: string | undefined;
|
121
|
+
id: number;
|
122
|
+
description: string;
|
123
|
+
code: string;
|
124
|
+
appliesWhen: "purchase";
|
125
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
126
|
+
amountType: "flat-rate" | "percentage";
|
127
|
+
amountValue: number;
|
128
|
+
validFrom: Date | null;
|
129
|
+
validUntil: Date | null;
|
130
|
+
};
|
131
|
+
_input_out: {
|
132
|
+
authorization?: string | undefined;
|
133
|
+
id: number;
|
134
|
+
description: string;
|
135
|
+
code: string;
|
136
|
+
appliesWhen: "purchase";
|
137
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
138
|
+
amountType: "flat-rate" | "percentage";
|
139
|
+
amountValue: number;
|
140
|
+
validFrom: Date | null;
|
141
|
+
validUntil: Date | null;
|
142
|
+
};
|
143
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
144
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
145
|
+
}, void>;
|
146
|
+
delete: import("@trpc/server").BuildProcedure<"mutation", {
|
147
|
+
_config: import("@trpc/server").RootConfig<{
|
148
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
149
|
+
meta: object;
|
150
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
151
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
152
|
+
}>;
|
153
|
+
_meta: object;
|
154
|
+
_ctx_out: {
|
155
|
+
user: import("../types/auth").TJwtPayload;
|
156
|
+
req: import("http").IncomingMessage;
|
157
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
158
|
+
};
|
159
|
+
_input_in: {
|
160
|
+
authorization?: string | undefined;
|
161
|
+
id: number;
|
162
|
+
};
|
163
|
+
_input_out: {
|
164
|
+
authorization?: string | undefined;
|
165
|
+
id: number;
|
166
|
+
};
|
167
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
168
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
169
|
+
}, void>;
|
170
|
+
check: import("@trpc/server").BuildProcedure<"mutation", {
|
171
|
+
_config: import("@trpc/server").RootConfig<{
|
172
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
173
|
+
meta: object;
|
174
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
175
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
176
|
+
}>;
|
177
|
+
_meta: object;
|
178
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
179
|
+
_input_in: {
|
180
|
+
id: number;
|
181
|
+
code: string;
|
182
|
+
appliesWhen: "purchase";
|
183
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
184
|
+
productValue: number;
|
185
|
+
};
|
186
|
+
_input_out: {
|
187
|
+
id: number;
|
188
|
+
code: string;
|
189
|
+
appliesWhen: "purchase";
|
190
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
191
|
+
productValue: number;
|
192
|
+
};
|
193
|
+
_output_in: {
|
194
|
+
description: string;
|
195
|
+
code: string;
|
196
|
+
amountType: "flat-rate" | "percentage";
|
197
|
+
amountValue: number;
|
198
|
+
reducedValue: number;
|
199
|
+
newValue: number;
|
200
|
+
};
|
201
|
+
_output_out: {
|
202
|
+
description: string;
|
203
|
+
code: string;
|
204
|
+
amountType: "flat-rate" | "percentage";
|
205
|
+
amountValue: number;
|
206
|
+
reducedValue: number;
|
207
|
+
newValue: number;
|
208
|
+
};
|
209
|
+
}, unknown>;
|
210
|
+
}>;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
export declare const freeAgentPaymentsRouter: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
2
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
3
|
+
meta: object;
|
4
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
5
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
6
|
+
}>, {
|
7
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
8
|
+
_config: import("@trpc/server").RootConfig<{
|
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
|
+
user: import("../types/auth").TJwtPayload;
|
17
|
+
req: import("http").IncomingMessage;
|
18
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
19
|
+
};
|
20
|
+
_input_in: {
|
21
|
+
authorization?: string | undefined;
|
22
|
+
description: string;
|
23
|
+
freeAgentId: number;
|
24
|
+
leagueId?: number | undefined;
|
25
|
+
code?: string | undefined;
|
26
|
+
paymentMode?: "session" | "intent" | undefined;
|
27
|
+
cancelPath?: string | 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
|
+
cancelPath?: string | undefined;
|
37
|
+
};
|
38
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
39
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
40
|
+
}, {
|
41
|
+
ephemeralKey: string | undefined;
|
42
|
+
paymentIntentClientSecret: string;
|
43
|
+
paymentIntentId: string;
|
44
|
+
customerId: string;
|
45
|
+
orgPublishableKey: string | undefined;
|
46
|
+
orgStripeAccountId: string;
|
47
|
+
} | {
|
48
|
+
redirectUrl: string;
|
49
|
+
}>;
|
50
|
+
}>;
|
@@ -0,0 +1,189 @@
|
|
1
|
+
export declare const leaguePaymentsRouter: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
2
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
3
|
+
meta: object;
|
4
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
5
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
6
|
+
}>, {
|
7
|
+
trackUsersAndPayments: import("@trpc/server").BuildProcedure<"query", {
|
8
|
+
_config: import("@trpc/server").RootConfig<{
|
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
|
+
user: import("../types/auth").TJwtPayload;
|
17
|
+
req: import("http").IncomingMessage;
|
18
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
19
|
+
};
|
20
|
+
_input_in: {
|
21
|
+
authorization?: string | undefined;
|
22
|
+
teamId: number;
|
23
|
+
leagueId: number;
|
24
|
+
};
|
25
|
+
_input_out: {
|
26
|
+
authorization?: string | undefined;
|
27
|
+
teamId: number;
|
28
|
+
leagueId: number;
|
29
|
+
};
|
30
|
+
_output_in: {
|
31
|
+
id: number;
|
32
|
+
deletedAt: Date | null;
|
33
|
+
member: {
|
34
|
+
id: number;
|
35
|
+
firstName: string | null;
|
36
|
+
lastName: string | null;
|
37
|
+
email: string;
|
38
|
+
};
|
39
|
+
memberId: number;
|
40
|
+
totalPaid: number;
|
41
|
+
payments: {
|
42
|
+
id: number;
|
43
|
+
createdAt: string | Date;
|
44
|
+
price: number;
|
45
|
+
payerId: number;
|
46
|
+
amountApplied: number | null;
|
47
|
+
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
48
|
+
}[];
|
49
|
+
}[];
|
50
|
+
_output_out: {
|
51
|
+
id: number;
|
52
|
+
deletedAt: Date | null;
|
53
|
+
member: {
|
54
|
+
id: number;
|
55
|
+
firstName: string | null;
|
56
|
+
lastName: string | null;
|
57
|
+
email: string;
|
58
|
+
};
|
59
|
+
memberId: number;
|
60
|
+
totalPaid: number;
|
61
|
+
payments: {
|
62
|
+
id: number;
|
63
|
+
createdAt: string | Date;
|
64
|
+
price: number;
|
65
|
+
payerId: number;
|
66
|
+
amountApplied: number | null;
|
67
|
+
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
68
|
+
}[];
|
69
|
+
}[];
|
70
|
+
}, unknown>;
|
71
|
+
insertOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
72
|
+
_config: import("@trpc/server").RootConfig<{
|
73
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
74
|
+
meta: object;
|
75
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
76
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
77
|
+
}>;
|
78
|
+
_meta: object;
|
79
|
+
_ctx_out: {
|
80
|
+
user: import("../types/auth").TJwtPayload;
|
81
|
+
req: import("http").IncomingMessage;
|
82
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
83
|
+
};
|
84
|
+
_input_in: {
|
85
|
+
authorization?: string | undefined;
|
86
|
+
leagueId: number;
|
87
|
+
price: number;
|
88
|
+
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
89
|
+
teamRosterId: number;
|
90
|
+
};
|
91
|
+
_input_out: {
|
92
|
+
authorization?: string | undefined;
|
93
|
+
leagueId: number;
|
94
|
+
price: number;
|
95
|
+
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
96
|
+
teamRosterId: number;
|
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
|
+
user: import("../types/auth").TJwtPayload;
|
111
|
+
req: import("http").IncomingMessage;
|
112
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
113
|
+
};
|
114
|
+
_input_in: {
|
115
|
+
authorization?: string | undefined;
|
116
|
+
id: number;
|
117
|
+
price: number;
|
118
|
+
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
119
|
+
teamRosterId: number;
|
120
|
+
};
|
121
|
+
_input_out: {
|
122
|
+
authorization?: string | undefined;
|
123
|
+
id: number;
|
124
|
+
price: number;
|
125
|
+
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
126
|
+
teamRosterId: number;
|
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
|
+
user: import("../types/auth").TJwtPayload;
|
141
|
+
req: import("http").IncomingMessage;
|
142
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
143
|
+
};
|
144
|
+
_input_in: {
|
145
|
+
authorization?: string | undefined;
|
146
|
+
id: number;
|
147
|
+
};
|
148
|
+
_input_out: {
|
149
|
+
authorization?: string | undefined;
|
150
|
+
id: number;
|
151
|
+
};
|
152
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
153
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
154
|
+
}, null>;
|
155
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
156
|
+
_config: import("@trpc/server").RootConfig<{
|
157
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
158
|
+
meta: object;
|
159
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
160
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
161
|
+
}>;
|
162
|
+
_meta: object;
|
163
|
+
_ctx_out: {
|
164
|
+
user: import("../types/auth").TJwtPayload;
|
165
|
+
req: import("http").IncomingMessage;
|
166
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
167
|
+
};
|
168
|
+
_input_in: {
|
169
|
+
authorization?: string | undefined;
|
170
|
+
teamId: number;
|
171
|
+
leagueId: number;
|
172
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
173
|
+
code?: string | undefined;
|
174
|
+
paymentMode?: "session" | "intent" | undefined;
|
175
|
+
};
|
176
|
+
_input_out: {
|
177
|
+
authorization?: string | undefined;
|
178
|
+
teamId: number;
|
179
|
+
leagueId: number;
|
180
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
181
|
+
paymentMode: "session" | "intent";
|
182
|
+
code?: string | undefined;
|
183
|
+
};
|
184
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
185
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
186
|
+
}, {
|
187
|
+
eventName: string;
|
188
|
+
}>;
|
189
|
+
}>;
|
@@ -1,5 +1,3 @@
|
|
1
|
-
/// <reference types="node/http" />
|
2
|
-
/// <reference types="trpc-koa-adapter" />
|
3
1
|
import Router from 'koa-router';
|
4
2
|
export declare const oauthRouter: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
5
3
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -58,19 +56,19 @@ export declare const oauthRouter: import("@trpc/server").CreateRouterInner<impor
|
|
58
56
|
accessToken: string;
|
59
57
|
refreshToken: string;
|
60
58
|
accountStatus: string;
|
61
|
-
redirectTeamId?: number | null
|
59
|
+
redirectTeamId?: number | null;
|
62
60
|
authSchemas: import("../types/member").TAuthSchemas;
|
63
61
|
memberId: number;
|
64
62
|
bio: string | null;
|
65
|
-
city?: string
|
66
|
-
street?: string
|
67
|
-
state?: string
|
63
|
+
city?: string;
|
64
|
+
street?: string;
|
65
|
+
state?: string;
|
68
66
|
avatar: string | null;
|
69
67
|
teams: import("../models/team").Team[];
|
70
|
-
favoriteTeam: number |
|
68
|
+
favoriteTeam: number | undefined | null;
|
71
69
|
zip: string | undefined;
|
72
70
|
phoneNumber: string | null;
|
73
|
-
gender?: string
|
71
|
+
gender?: string;
|
74
72
|
birthday: string | null;
|
75
73
|
location: string | null;
|
76
74
|
email: string;
|
@@ -130,19 +128,19 @@ export declare const oauthRouter: import("@trpc/server").CreateRouterInner<impor
|
|
130
128
|
accessToken: string;
|
131
129
|
refreshToken: string;
|
132
130
|
accountStatus: string;
|
133
|
-
redirectTeamId?: number | null
|
131
|
+
redirectTeamId?: number | null;
|
134
132
|
authSchemas: import("../types/member").TAuthSchemas;
|
135
133
|
memberId: number;
|
136
134
|
bio: string | null;
|
137
|
-
city?: string
|
138
|
-
street?: string
|
139
|
-
state?: string
|
135
|
+
city?: string;
|
136
|
+
street?: string;
|
137
|
+
state?: string;
|
140
138
|
avatar: string | null;
|
141
139
|
teams: import("../models/team").Team[];
|
142
|
-
favoriteTeam: number |
|
140
|
+
favoriteTeam: number | undefined | null;
|
143
141
|
zip: string | undefined;
|
144
142
|
phoneNumber: string | null;
|
145
|
-
gender?: string
|
143
|
+
gender?: string;
|
146
144
|
birthday: string | null;
|
147
145
|
location: string | null;
|
148
146
|
email: string;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
export declare const pickupPaymentsRouter: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
2
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
3
|
+
meta: object;
|
4
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
5
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
6
|
+
}>, {
|
7
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
8
|
+
_config: import("@trpc/server").RootConfig<{
|
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
|
+
pickupId: number;
|
23
|
+
memberId: number;
|
24
|
+
cancelPath?: string | undefined;
|
25
|
+
code?: string | undefined;
|
26
|
+
paymentMode?: "session" | "intent" | undefined;
|
27
|
+
};
|
28
|
+
_input_out: {
|
29
|
+
authorization?: string | undefined;
|
30
|
+
pickupId: number;
|
31
|
+
memberId: number;
|
32
|
+
paymentMode: "session" | "intent";
|
33
|
+
cancelPath?: string | undefined;
|
34
|
+
code?: string | undefined;
|
35
|
+
};
|
36
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
37
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
38
|
+
}, {
|
39
|
+
eventName: string;
|
40
|
+
}>;
|
41
|
+
}>;
|