bantr-api-client 1.0.0 → 1.0.2
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/oauth.router.d.ts +177 -0
- package/api-type/src/trpcRouter/oauth.router.test.d.ts +1 -0
- package/{src/api-type → api-type/src/trpcRouter}/router.d.ts +176 -8
- package/dist/index.d.ts +268 -12
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/provider.d.ts +178 -10
- package/dist/provider.js +32 -24
- package/dist/provider.js.map +1 -1
- package/dist/query.d.ts +93 -5
- package/dist/query.js +26 -18
- package/dist/query.js.map +1 -1
- package/package.json +9 -6
- package/tsconfig.json +1 -1
- package/src/index.ts +0 -10
- package/src/provider.tsx +0 -89
- package/src/query.ts +0 -40
package/dist/index.d.ts
CHANGED
@@ -47,6 +47,46 @@ export declare const BantrSdk: {
|
|
47
47
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
48
48
|
_meta: object;
|
49
49
|
}, void>;
|
50
|
+
googleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
51
|
+
_config: import("@trpc/server").RootConfig<{
|
52
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
53
|
+
meta: object;
|
54
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
55
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
56
|
+
}>;
|
57
|
+
_meta: object;
|
58
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
59
|
+
_input_in: {
|
60
|
+
code: string;
|
61
|
+
};
|
62
|
+
_input_out: {
|
63
|
+
code: string;
|
64
|
+
};
|
65
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
66
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
67
|
+
}, {
|
68
|
+
accessToken: string;
|
69
|
+
refreshToken: string;
|
70
|
+
accountStatus: string;
|
71
|
+
redirectTeamId?: number | null | undefined;
|
72
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
73
|
+
memberId: number;
|
74
|
+
bio: string | null;
|
75
|
+
city?: string | undefined;
|
76
|
+
street?: string | undefined;
|
77
|
+
state?: string | undefined;
|
78
|
+
avatar: string | null;
|
79
|
+
teams: import("../api-type/src/models/team").Team[];
|
80
|
+
favoriteTeam: number | null | undefined;
|
81
|
+
zip: string | undefined;
|
82
|
+
phoneNumber: string | null;
|
83
|
+
gender?: string | undefined;
|
84
|
+
birthday: string | null;
|
85
|
+
location: string | null;
|
86
|
+
email: string;
|
87
|
+
firstName: string | null;
|
88
|
+
lastName: string | null;
|
89
|
+
}>;
|
50
90
|
facebookAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
51
91
|
_config: import("@trpc/server").RootConfig<{
|
52
92
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -89,20 +129,64 @@ export declare const BantrSdk: {
|
|
89
129
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
90
130
|
_meta: object;
|
91
131
|
}, string>;
|
92
|
-
appleCallback: import("@trpc/server").BuildProcedure<"
|
132
|
+
appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
93
133
|
_config: import("@trpc/server").RootConfig<{
|
94
134
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
95
135
|
meta: object;
|
96
136
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
97
137
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
98
138
|
}>;
|
139
|
+
_meta: object;
|
99
140
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
100
|
-
_input_in:
|
101
|
-
|
141
|
+
_input_in: {
|
142
|
+
code: string;
|
143
|
+
};
|
144
|
+
_input_out: {
|
145
|
+
code: string;
|
146
|
+
};
|
102
147
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
103
148
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
104
|
-
_meta: object;
|
105
149
|
}, void>;
|
150
|
+
appleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
151
|
+
_config: import("@trpc/server").RootConfig<{
|
152
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
153
|
+
meta: object;
|
154
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
155
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
156
|
+
}>;
|
157
|
+
_meta: object;
|
158
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
159
|
+
_input_in: {
|
160
|
+
idToken: string;
|
161
|
+
};
|
162
|
+
_input_out: {
|
163
|
+
idToken: string;
|
164
|
+
};
|
165
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
166
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
167
|
+
}, {
|
168
|
+
accessToken: string;
|
169
|
+
refreshToken: string;
|
170
|
+
accountStatus: string;
|
171
|
+
redirectTeamId?: number | null | undefined;
|
172
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
173
|
+
memberId: number;
|
174
|
+
bio: string | null;
|
175
|
+
city?: string | undefined;
|
176
|
+
street?: string | undefined;
|
177
|
+
state?: string | undefined;
|
178
|
+
avatar: string | null;
|
179
|
+
teams: import("../api-type/src/models/team").Team[];
|
180
|
+
favoriteTeam: number | null | undefined;
|
181
|
+
zip: string | undefined;
|
182
|
+
phoneNumber: string | null;
|
183
|
+
gender?: string | undefined;
|
184
|
+
birthday: string | null;
|
185
|
+
location: string | null;
|
186
|
+
email: string;
|
187
|
+
firstName: string | null;
|
188
|
+
lastName: string | null;
|
189
|
+
}>;
|
106
190
|
}>;
|
107
191
|
}>, unknown> & import("@trpc/react-query/dist/createTRPCReact").DecoratedProcedureRecord<{
|
108
192
|
oauth: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
@@ -139,6 +223,46 @@ export declare const BantrSdk: {
|
|
139
223
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
140
224
|
_meta: object;
|
141
225
|
}, void>;
|
226
|
+
googleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
227
|
+
_config: import("@trpc/server").RootConfig<{
|
228
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
229
|
+
meta: object;
|
230
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
231
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
232
|
+
}>;
|
233
|
+
_meta: object;
|
234
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
235
|
+
_input_in: {
|
236
|
+
code: string;
|
237
|
+
};
|
238
|
+
_input_out: {
|
239
|
+
code: string;
|
240
|
+
};
|
241
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
242
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
243
|
+
}, {
|
244
|
+
accessToken: string;
|
245
|
+
refreshToken: string;
|
246
|
+
accountStatus: string;
|
247
|
+
redirectTeamId?: number | null | undefined;
|
248
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
249
|
+
memberId: number;
|
250
|
+
bio: string | null;
|
251
|
+
city?: string | undefined;
|
252
|
+
street?: string | undefined;
|
253
|
+
state?: string | undefined;
|
254
|
+
avatar: string | null;
|
255
|
+
teams: import("../api-type/src/models/team").Team[];
|
256
|
+
favoriteTeam: number | null | undefined;
|
257
|
+
zip: string | undefined;
|
258
|
+
phoneNumber: string | null;
|
259
|
+
gender?: string | undefined;
|
260
|
+
birthday: string | null;
|
261
|
+
location: string | null;
|
262
|
+
email: string;
|
263
|
+
firstName: string | null;
|
264
|
+
lastName: string | null;
|
265
|
+
}>;
|
142
266
|
facebookAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
143
267
|
_config: import("@trpc/server").RootConfig<{
|
144
268
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -181,20 +305,64 @@ export declare const BantrSdk: {
|
|
181
305
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
182
306
|
_meta: object;
|
183
307
|
}, string>;
|
184
|
-
appleCallback: import("@trpc/server").BuildProcedure<"
|
308
|
+
appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
185
309
|
_config: import("@trpc/server").RootConfig<{
|
186
310
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
187
311
|
meta: object;
|
188
312
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
189
313
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
190
314
|
}>;
|
315
|
+
_meta: object;
|
191
316
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
192
|
-
_input_in:
|
193
|
-
|
317
|
+
_input_in: {
|
318
|
+
code: string;
|
319
|
+
};
|
320
|
+
_input_out: {
|
321
|
+
code: string;
|
322
|
+
};
|
194
323
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
195
324
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
196
|
-
_meta: object;
|
197
325
|
}, void>;
|
326
|
+
appleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
327
|
+
_config: import("@trpc/server").RootConfig<{
|
328
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
329
|
+
meta: object;
|
330
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
331
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
332
|
+
}>;
|
333
|
+
_meta: object;
|
334
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
335
|
+
_input_in: {
|
336
|
+
idToken: string;
|
337
|
+
};
|
338
|
+
_input_out: {
|
339
|
+
idToken: string;
|
340
|
+
};
|
341
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
342
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
343
|
+
}, {
|
344
|
+
accessToken: string;
|
345
|
+
refreshToken: string;
|
346
|
+
accountStatus: string;
|
347
|
+
redirectTeamId?: number | null | undefined;
|
348
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
349
|
+
memberId: number;
|
350
|
+
bio: string | null;
|
351
|
+
city?: string | undefined;
|
352
|
+
street?: string | undefined;
|
353
|
+
state?: string | undefined;
|
354
|
+
avatar: string | null;
|
355
|
+
teams: import("../api-type/src/models/team").Team[];
|
356
|
+
favoriteTeam: number | null | undefined;
|
357
|
+
zip: string | undefined;
|
358
|
+
phoneNumber: string | null;
|
359
|
+
gender?: string | undefined;
|
360
|
+
birthday: string | null;
|
361
|
+
location: string | null;
|
362
|
+
email: string;
|
363
|
+
firstName: string | null;
|
364
|
+
lastName: string | null;
|
365
|
+
}>;
|
198
366
|
}>;
|
199
367
|
}, null, "">;
|
200
368
|
createTRPCClientQuery: (options?: {
|
@@ -234,6 +402,48 @@ export declare const BantrSdk: {
|
|
234
402
|
_meta: object;
|
235
403
|
}, void>>;
|
236
404
|
};
|
405
|
+
googleMobileCallback: {
|
406
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
407
|
+
_config: import("@trpc/server").RootConfig<{
|
408
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
409
|
+
meta: object;
|
410
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
411
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
412
|
+
}>;
|
413
|
+
_meta: object;
|
414
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
415
|
+
_input_in: {
|
416
|
+
code: string;
|
417
|
+
};
|
418
|
+
_input_out: {
|
419
|
+
code: string;
|
420
|
+
};
|
421
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
422
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
423
|
+
}, {
|
424
|
+
accessToken: string;
|
425
|
+
refreshToken: string;
|
426
|
+
accountStatus: string;
|
427
|
+
redirectTeamId?: number | null | undefined;
|
428
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
429
|
+
memberId: number;
|
430
|
+
bio: string | null;
|
431
|
+
city?: string | undefined;
|
432
|
+
street?: string | undefined;
|
433
|
+
state?: string | undefined;
|
434
|
+
avatar: string | null;
|
435
|
+
teams: import("../api-type/src/models/team").Team[];
|
436
|
+
favoriteTeam: number | null | undefined;
|
437
|
+
zip: string | undefined;
|
438
|
+
phoneNumber: string | null;
|
439
|
+
gender?: string | undefined;
|
440
|
+
birthday: string | null;
|
441
|
+
location: string | null;
|
442
|
+
email: string;
|
443
|
+
firstName: string | null;
|
444
|
+
lastName: string | null;
|
445
|
+
}>>;
|
446
|
+
};
|
237
447
|
facebookAuth: {
|
238
448
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
239
449
|
_config: import("@trpc/server").RootConfig<{
|
@@ -283,21 +493,67 @@ export declare const BantrSdk: {
|
|
283
493
|
}, string>>;
|
284
494
|
};
|
285
495
|
appleCallback: {
|
286
|
-
|
496
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
287
497
|
_config: import("@trpc/server").RootConfig<{
|
288
498
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
289
499
|
meta: object;
|
290
500
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
291
501
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
292
502
|
}>;
|
503
|
+
_meta: object;
|
293
504
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
294
|
-
_input_in:
|
295
|
-
|
505
|
+
_input_in: {
|
506
|
+
code: string;
|
507
|
+
};
|
508
|
+
_input_out: {
|
509
|
+
code: string;
|
510
|
+
};
|
296
511
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
297
512
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
298
|
-
_meta: object;
|
299
513
|
}, void>>;
|
300
514
|
};
|
515
|
+
appleMobileCallback: {
|
516
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
517
|
+
_config: import("@trpc/server").RootConfig<{
|
518
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
519
|
+
meta: object;
|
520
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
521
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
522
|
+
}>;
|
523
|
+
_meta: object;
|
524
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
525
|
+
_input_in: {
|
526
|
+
idToken: string;
|
527
|
+
};
|
528
|
+
_input_out: {
|
529
|
+
idToken: string;
|
530
|
+
};
|
531
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
532
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
533
|
+
}, {
|
534
|
+
accessToken: string;
|
535
|
+
refreshToken: string;
|
536
|
+
accountStatus: string;
|
537
|
+
redirectTeamId?: number | null | undefined;
|
538
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
539
|
+
memberId: number;
|
540
|
+
bio: string | null;
|
541
|
+
city?: string | undefined;
|
542
|
+
street?: string | undefined;
|
543
|
+
state?: string | undefined;
|
544
|
+
avatar: string | null;
|
545
|
+
teams: import("../api-type/src/models/team").Team[];
|
546
|
+
favoriteTeam: number | null | undefined;
|
547
|
+
zip: string | undefined;
|
548
|
+
phoneNumber: string | null;
|
549
|
+
gender?: string | undefined;
|
550
|
+
birthday: string | null;
|
551
|
+
location: string | null;
|
552
|
+
email: string;
|
553
|
+
firstName: string | null;
|
554
|
+
lastName: string | null;
|
555
|
+
}>>;
|
556
|
+
};
|
301
557
|
};
|
302
558
|
};
|
303
559
|
};
|
package/dist/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { reactQuery, TRPCProvider } from
|
2
|
-
import { createTRPCClientQuery } from
|
1
|
+
import { reactQuery, TRPCProvider } from './provider';
|
2
|
+
import { createTRPCClientQuery } from './query';
|
3
3
|
export const BantrSdk = {
|
4
4
|
TRPCProvider,
|
5
5
|
reactQuery,
|
6
|
-
createTRPCClientQuery
|
6
|
+
createTRPCClientQuery,
|
7
7
|
};
|
8
8
|
export default BantrSdk;
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,YAAY;IACZ,UAAU;IACV,qBAAqB;CACtB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/dist/provider.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { QueryClient, QueryClientConfig } from
|
2
|
-
import React, { ReactNode } from
|
1
|
+
import { QueryClient, QueryClientConfig } from '@tanstack/react-query';
|
2
|
+
import React, { ReactNode } from 'react';
|
3
3
|
export declare const QueryClientContext: React.Context<QueryClient | undefined>;
|
4
4
|
export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact").CreateTRPCReactBase<import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
5
5
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -41,6 +41,46 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
41
41
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
42
42
|
_meta: object;
|
43
43
|
}, void>;
|
44
|
+
googleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
45
|
+
_config: import("@trpc/server").RootConfig<{
|
46
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
47
|
+
meta: object;
|
48
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
49
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
50
|
+
}>;
|
51
|
+
_meta: object;
|
52
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
53
|
+
_input_in: {
|
54
|
+
code: string;
|
55
|
+
};
|
56
|
+
_input_out: {
|
57
|
+
code: string;
|
58
|
+
};
|
59
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
60
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
61
|
+
}, {
|
62
|
+
accessToken: string;
|
63
|
+
refreshToken: string;
|
64
|
+
accountStatus: string;
|
65
|
+
redirectTeamId?: number | null | undefined;
|
66
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
67
|
+
memberId: number;
|
68
|
+
bio: string | null;
|
69
|
+
city?: string | undefined;
|
70
|
+
street?: string | undefined;
|
71
|
+
state?: string | undefined;
|
72
|
+
avatar: string | null;
|
73
|
+
teams: import("../api-type/src/models/team").Team[];
|
74
|
+
favoriteTeam: number | null | undefined;
|
75
|
+
zip: string | undefined;
|
76
|
+
phoneNumber: string | null;
|
77
|
+
gender?: string | undefined;
|
78
|
+
birthday: string | null;
|
79
|
+
location: string | null;
|
80
|
+
email: string;
|
81
|
+
firstName: string | null;
|
82
|
+
lastName: string | null;
|
83
|
+
}>;
|
44
84
|
facebookAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
45
85
|
_config: import("@trpc/server").RootConfig<{
|
46
86
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -83,20 +123,64 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
83
123
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
84
124
|
_meta: object;
|
85
125
|
}, string>;
|
86
|
-
appleCallback: import("@trpc/server").BuildProcedure<"
|
126
|
+
appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
87
127
|
_config: import("@trpc/server").RootConfig<{
|
88
128
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
89
129
|
meta: object;
|
90
130
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
91
131
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
92
132
|
}>;
|
133
|
+
_meta: object;
|
93
134
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
94
|
-
_input_in:
|
95
|
-
|
135
|
+
_input_in: {
|
136
|
+
code: string;
|
137
|
+
};
|
138
|
+
_input_out: {
|
139
|
+
code: string;
|
140
|
+
};
|
96
141
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
97
142
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
98
|
-
_meta: object;
|
99
143
|
}, void>;
|
144
|
+
appleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
145
|
+
_config: import("@trpc/server").RootConfig<{
|
146
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
147
|
+
meta: object;
|
148
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
149
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
150
|
+
}>;
|
151
|
+
_meta: object;
|
152
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
153
|
+
_input_in: {
|
154
|
+
idToken: string;
|
155
|
+
};
|
156
|
+
_input_out: {
|
157
|
+
idToken: string;
|
158
|
+
};
|
159
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
160
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
161
|
+
}, {
|
162
|
+
accessToken: string;
|
163
|
+
refreshToken: string;
|
164
|
+
accountStatus: string;
|
165
|
+
redirectTeamId?: number | null | undefined;
|
166
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
167
|
+
memberId: number;
|
168
|
+
bio: string | null;
|
169
|
+
city?: string | undefined;
|
170
|
+
street?: string | undefined;
|
171
|
+
state?: string | undefined;
|
172
|
+
avatar: string | null;
|
173
|
+
teams: import("../api-type/src/models/team").Team[];
|
174
|
+
favoriteTeam: number | null | undefined;
|
175
|
+
zip: string | undefined;
|
176
|
+
phoneNumber: string | null;
|
177
|
+
gender?: string | undefined;
|
178
|
+
birthday: string | null;
|
179
|
+
location: string | null;
|
180
|
+
email: string;
|
181
|
+
firstName: string | null;
|
182
|
+
lastName: string | null;
|
183
|
+
}>;
|
100
184
|
}>;
|
101
185
|
}>, unknown> & import("@trpc/react-query/dist/createTRPCReact").DecoratedProcedureRecord<{
|
102
186
|
oauth: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
@@ -133,6 +217,46 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
133
217
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
134
218
|
_meta: object;
|
135
219
|
}, void>;
|
220
|
+
googleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
221
|
+
_config: import("@trpc/server").RootConfig<{
|
222
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
223
|
+
meta: object;
|
224
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
225
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
226
|
+
}>;
|
227
|
+
_meta: object;
|
228
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
229
|
+
_input_in: {
|
230
|
+
code: string;
|
231
|
+
};
|
232
|
+
_input_out: {
|
233
|
+
code: string;
|
234
|
+
};
|
235
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
236
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
237
|
+
}, {
|
238
|
+
accessToken: string;
|
239
|
+
refreshToken: string;
|
240
|
+
accountStatus: string;
|
241
|
+
redirectTeamId?: number | null | undefined;
|
242
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
243
|
+
memberId: number;
|
244
|
+
bio: string | null;
|
245
|
+
city?: string | undefined;
|
246
|
+
street?: string | undefined;
|
247
|
+
state?: string | undefined;
|
248
|
+
avatar: string | null;
|
249
|
+
teams: import("../api-type/src/models/team").Team[];
|
250
|
+
favoriteTeam: number | null | undefined;
|
251
|
+
zip: string | undefined;
|
252
|
+
phoneNumber: string | null;
|
253
|
+
gender?: string | undefined;
|
254
|
+
birthday: string | null;
|
255
|
+
location: string | null;
|
256
|
+
email: string;
|
257
|
+
firstName: string | null;
|
258
|
+
lastName: string | null;
|
259
|
+
}>;
|
136
260
|
facebookAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
137
261
|
_config: import("@trpc/server").RootConfig<{
|
138
262
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
@@ -175,20 +299,64 @@ export declare const reactQuery: import("@trpc/react-query/dist/createTRPCReact"
|
|
175
299
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
176
300
|
_meta: object;
|
177
301
|
}, string>;
|
178
|
-
appleCallback: import("@trpc/server").BuildProcedure<"
|
302
|
+
appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
179
303
|
_config: import("@trpc/server").RootConfig<{
|
180
304
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
181
305
|
meta: object;
|
182
306
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
183
307
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
184
308
|
}>;
|
309
|
+
_meta: object;
|
185
310
|
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
186
|
-
_input_in:
|
187
|
-
|
311
|
+
_input_in: {
|
312
|
+
code: string;
|
313
|
+
};
|
314
|
+
_input_out: {
|
315
|
+
code: string;
|
316
|
+
};
|
188
317
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
189
318
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
190
|
-
_meta: object;
|
191
319
|
}, void>;
|
320
|
+
appleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
321
|
+
_config: import("@trpc/server").RootConfig<{
|
322
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
323
|
+
meta: object;
|
324
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
325
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
326
|
+
}>;
|
327
|
+
_meta: object;
|
328
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
329
|
+
_input_in: {
|
330
|
+
idToken: string;
|
331
|
+
};
|
332
|
+
_input_out: {
|
333
|
+
idToken: string;
|
334
|
+
};
|
335
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
336
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
337
|
+
}, {
|
338
|
+
accessToken: string;
|
339
|
+
refreshToken: string;
|
340
|
+
accountStatus: string;
|
341
|
+
redirectTeamId?: number | null | undefined;
|
342
|
+
authSchemas: import("../api-type/src/types/member").TAuthSchemas;
|
343
|
+
memberId: number;
|
344
|
+
bio: string | null;
|
345
|
+
city?: string | undefined;
|
346
|
+
street?: string | undefined;
|
347
|
+
state?: string | undefined;
|
348
|
+
avatar: string | null;
|
349
|
+
teams: import("../api-type/src/models/team").Team[];
|
350
|
+
favoriteTeam: number | null | undefined;
|
351
|
+
zip: string | undefined;
|
352
|
+
phoneNumber: string | null;
|
353
|
+
gender?: string | undefined;
|
354
|
+
birthday: string | null;
|
355
|
+
location: string | null;
|
356
|
+
email: string;
|
357
|
+
firstName: string | null;
|
358
|
+
lastName: string | null;
|
359
|
+
}>;
|
192
360
|
}>;
|
193
361
|
}, null, "">;
|
194
362
|
export declare const TRPCProvider: ({ children, useLocalUrl, customUrl, queryClientConfig, queryClient, }: {
|