expo-backend-types 0.30.0-EXPO-308-auth.25 → 0.30.0-EXPO-308-auth.27

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.
@@ -1,4 +1,4 @@
1
- export declare const getMiExpoMeResponseSchema: import("zod").ZodObject<Omit<{
1
+ export declare const getMiExpoMeResponseSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
2
2
  id: import("zod").ZodString;
3
3
  shortId: import("zod").ZodNumber;
4
4
  firstTimeMiExpo: import("zod").ZodBoolean;
@@ -22,7 +22,64 @@ export declare const getMiExpoMeResponseSchema: import("zod").ZodObject<Omit<{
22
22
  movedToTrashDate: import("zod").ZodNullable<import("zod").ZodDate>;
23
23
  created_at: import("zod").ZodDate;
24
24
  updated_at: import("zod").ZodDate;
25
- }, "password">, "strip", import("zod").ZodTypeAny, {
25
+ }, "password">, {
26
+ residenceLocation: import("zod").ZodNullable<import("zod").ZodObject<{
27
+ id: import("zod").ZodString;
28
+ latitude: import("zod").ZodNumber;
29
+ longitude: import("zod").ZodNumber;
30
+ country: import("zod").ZodString;
31
+ state: import("zod").ZodString;
32
+ city: import("zod").ZodString;
33
+ created_at: import("zod").ZodDate;
34
+ updated_at: import("zod").ZodDate;
35
+ }, "strip", import("zod").ZodTypeAny, {
36
+ id: string;
37
+ latitude: number;
38
+ longitude: number;
39
+ created_at: Date;
40
+ updated_at: Date;
41
+ state: string;
42
+ country: string;
43
+ city: string;
44
+ }, {
45
+ id: string;
46
+ latitude: number;
47
+ longitude: number;
48
+ created_at: Date;
49
+ updated_at: Date;
50
+ state: string;
51
+ country: string;
52
+ city: string;
53
+ }>>;
54
+ birthLocation: import("zod").ZodNullable<import("zod").ZodObject<{
55
+ id: import("zod").ZodString;
56
+ latitude: import("zod").ZodNumber;
57
+ longitude: import("zod").ZodNumber;
58
+ country: import("zod").ZodString;
59
+ state: import("zod").ZodString;
60
+ city: import("zod").ZodString;
61
+ created_at: import("zod").ZodDate;
62
+ updated_at: import("zod").ZodDate;
63
+ }, "strip", import("zod").ZodTypeAny, {
64
+ id: string;
65
+ latitude: number;
66
+ longitude: number;
67
+ created_at: Date;
68
+ updated_at: Date;
69
+ state: string;
70
+ country: string;
71
+ city: string;
72
+ }, {
73
+ id: string;
74
+ latitude: number;
75
+ longitude: number;
76
+ created_at: Date;
77
+ updated_at: Date;
78
+ state: string;
79
+ country: string;
80
+ city: string;
81
+ }>>;
82
+ }>, "strip", import("zod").ZodTypeAny, {
26
83
  id: string;
27
84
  username: string | null;
28
85
  phoneNumber: string;
@@ -45,6 +102,26 @@ export declare const getMiExpoMeResponseSchema: import("zod").ZodObject<Omit<{
45
102
  residenceLocationId: string | null;
46
103
  isInTrash: boolean;
47
104
  movedToTrashDate: Date | null;
105
+ birthLocation: {
106
+ id: string;
107
+ latitude: number;
108
+ longitude: number;
109
+ created_at: Date;
110
+ updated_at: Date;
111
+ state: string;
112
+ country: string;
113
+ city: string;
114
+ } | null;
115
+ residenceLocation: {
116
+ id: string;
117
+ latitude: number;
118
+ longitude: number;
119
+ created_at: Date;
120
+ updated_at: Date;
121
+ state: string;
122
+ country: string;
123
+ city: string;
124
+ } | null;
48
125
  }, {
49
126
  id: string;
50
127
  username: string | null;
@@ -68,6 +145,26 @@ export declare const getMiExpoMeResponseSchema: import("zod").ZodObject<Omit<{
68
145
  residenceLocationId: string | null;
69
146
  isInTrash: boolean;
70
147
  movedToTrashDate: Date | null;
148
+ birthLocation: {
149
+ id: string;
150
+ latitude: number;
151
+ longitude: number;
152
+ created_at: Date;
153
+ updated_at: Date;
154
+ state: string;
155
+ country: string;
156
+ city: string;
157
+ } | null;
158
+ residenceLocation: {
159
+ id: string;
160
+ latitude: number;
161
+ longitude: number;
162
+ created_at: Date;
163
+ updated_at: Date;
164
+ state: string;
165
+ country: string;
166
+ city: string;
167
+ } | null;
71
168
  }>;
72
169
  declare const GetMiExpoMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
73
170
  id: import("zod").ZodString;
@@ -92,6 +189,62 @@ declare const GetMiExpoMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
92
189
  residenceLocationId: import("zod").ZodNullable<import("zod").ZodString>;
93
190
  isInTrash: import("zod").ZodBoolean;
94
191
  movedToTrashDate: import("zod").ZodNullable<import("zod").ZodString>;
192
+ residenceLocation: import("zod").ZodNullable<import("zod").ZodObject<{
193
+ id: import("zod").ZodString;
194
+ latitude: import("zod").ZodNumber;
195
+ longitude: import("zod").ZodNumber;
196
+ country: import("zod").ZodString;
197
+ state: import("zod").ZodString;
198
+ city: import("zod").ZodString;
199
+ created_at: import("zod").ZodString;
200
+ updated_at: import("zod").ZodString;
201
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
202
+ id: string;
203
+ latitude: number;
204
+ longitude: number;
205
+ created_at: string;
206
+ updated_at: string;
207
+ state: string;
208
+ country: string;
209
+ city: string;
210
+ }, {
211
+ id: string;
212
+ latitude: number;
213
+ longitude: number;
214
+ created_at: string;
215
+ updated_at: string;
216
+ state: string;
217
+ country: string;
218
+ city: string;
219
+ }>>;
220
+ birthLocation: import("zod").ZodNullable<import("zod").ZodObject<{
221
+ id: import("zod").ZodString;
222
+ latitude: import("zod").ZodNumber;
223
+ longitude: import("zod").ZodNumber;
224
+ country: import("zod").ZodString;
225
+ state: import("zod").ZodString;
226
+ city: import("zod").ZodString;
227
+ created_at: import("zod").ZodString;
228
+ updated_at: import("zod").ZodString;
229
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
230
+ id: string;
231
+ latitude: number;
232
+ longitude: number;
233
+ created_at: string;
234
+ updated_at: string;
235
+ state: string;
236
+ country: string;
237
+ city: string;
238
+ }, {
239
+ id: string;
240
+ latitude: number;
241
+ longitude: number;
242
+ created_at: string;
243
+ updated_at: string;
244
+ state: string;
245
+ country: string;
246
+ city: string;
247
+ }>>;
95
248
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
96
249
  id: string;
97
250
  username: string | null;
@@ -115,6 +268,26 @@ declare const GetMiExpoMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
115
268
  residenceLocationId: string | null;
116
269
  isInTrash: boolean;
117
270
  movedToTrashDate: string | null;
271
+ birthLocation: {
272
+ id: string;
273
+ latitude: number;
274
+ longitude: number;
275
+ created_at: string;
276
+ updated_at: string;
277
+ state: string;
278
+ country: string;
279
+ city: string;
280
+ } | null;
281
+ residenceLocation: {
282
+ id: string;
283
+ latitude: number;
284
+ longitude: number;
285
+ created_at: string;
286
+ updated_at: string;
287
+ state: string;
288
+ country: string;
289
+ city: string;
290
+ } | null;
118
291
  }, {
119
292
  id: string;
120
293
  username: string | null;
@@ -138,6 +311,26 @@ declare const GetMiExpoMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
138
311
  residenceLocationId: string | null;
139
312
  isInTrash: boolean;
140
313
  movedToTrashDate: string | null;
314
+ birthLocation: {
315
+ id: string;
316
+ latitude: number;
317
+ longitude: number;
318
+ created_at: string;
319
+ updated_at: string;
320
+ state: string;
321
+ country: string;
322
+ city: string;
323
+ } | null;
324
+ residenceLocation: {
325
+ id: string;
326
+ latitude: number;
327
+ longitude: number;
328
+ created_at: string;
329
+ updated_at: string;
330
+ state: string;
331
+ country: string;
332
+ city: string;
333
+ } | null;
141
334
  }>>;
142
335
  export declare class GetMiExpoMeResponseDto extends GetMiExpoMeResponseDto_base {
143
336
  }
@@ -1,9 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetMiExpoMeResponseDto = exports.getMiExpoMeResponseSchema = void 0;
4
+ const location_schema_1 = require("../../schema/location.schema");
4
5
  const profile_schema_1 = require("../../schema/profile.schema");
5
6
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
- exports.getMiExpoMeResponseSchema = profile_schema_1.profileSchema.omit({ password: true });
7
+ exports.getMiExpoMeResponseSchema = profile_schema_1.profileSchema
8
+ .omit({ password: true })
9
+ .extend({
10
+ residenceLocation: location_schema_1.locationSchema.nullable(),
11
+ birthLocation: location_schema_1.locationSchema.nullable(),
12
+ });
7
13
  class GetMiExpoMeResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.getMiExpoMeResponseSchema) {
8
14
  }
9
15
  exports.GetMiExpoMeResponseDto = GetMiExpoMeResponseDto;
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- export declare const findByIdProfileResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
2
+ export declare const findByIdProfileResponseSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
3
3
  id: z.ZodString;
4
4
  shortId: z.ZodNumber;
5
5
  firstTimeMiExpo: z.ZodBoolean;
@@ -23,7 +23,7 @@ export declare const findByIdProfileResponseSchema: z.ZodObject<z.objectUtil.ext
23
23
  movedToTrashDate: z.ZodNullable<z.ZodDate>;
24
24
  created_at: z.ZodDate;
25
25
  updated_at: z.ZodDate;
26
- }, {
26
+ }, "password">, {
27
27
  residenceLocation: z.ZodNullable<z.ZodObject<{
28
28
  id: z.ZodString;
29
29
  latitude: z.ZodNumber;
@@ -137,7 +137,6 @@ export declare const findByIdProfileResponseSchema: z.ZodObject<z.objectUtil.ext
137
137
  }>, "strip", z.ZodTypeAny, {
138
138
  id: string;
139
139
  username: string | null;
140
- password: string | null;
141
140
  phoneNumber: string;
142
141
  secondaryPhoneNumber: string | null;
143
142
  fullName: string;
@@ -194,7 +193,6 @@ export declare const findByIdProfileResponseSchema: z.ZodObject<z.objectUtil.ext
194
193
  }, {
195
194
  id: string;
196
195
  username: string | null;
197
- password: string | null;
198
196
  phoneNumber: string;
199
197
  secondaryPhoneNumber: string | null;
200
198
  fullName: string;
@@ -251,28 +249,27 @@ export declare const findByIdProfileResponseSchema: z.ZodObject<z.objectUtil.ext
251
249
  }>;
252
250
  declare const FindByIdProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
253
251
  id: z.ZodString;
254
- shortId: z.ZodNumber;
255
- firstTimeMiExpo: z.ZodBoolean;
256
252
  username: z.ZodNullable<z.ZodString>;
257
- password: z.ZodNullable<z.ZodString>;
258
253
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
259
- isPhoneVerified: z.ZodBoolean;
260
254
  secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
261
255
  fullName: z.ZodString;
256
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
257
+ mail: z.ZodNullable<z.ZodString>;
258
+ created_at: z.ZodString;
259
+ updated_at: z.ZodString;
260
+ shortId: z.ZodNumber;
261
+ firstTimeMiExpo: z.ZodBoolean;
262
+ isPhoneVerified: z.ZodBoolean;
262
263
  firstName: z.ZodNullable<z.ZodString>;
263
264
  gender: z.ZodNullable<z.ZodString>;
264
265
  birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
265
- profilePictureUrl: z.ZodNullable<z.ZodString>;
266
266
  instagram: z.ZodNullable<z.ZodString>;
267
- mail: z.ZodNullable<z.ZodString>;
268
267
  dni: z.ZodNullable<z.ZodString>;
269
268
  alternativeNames: z.ZodArray<z.ZodString, "many">;
270
269
  birthLocationId: z.ZodNullable<z.ZodString>;
271
270
  residenceLocationId: z.ZodNullable<z.ZodString>;
272
271
  isInTrash: z.ZodBoolean;
273
272
  movedToTrashDate: z.ZodNullable<z.ZodString>;
274
- created_at: z.ZodString;
275
- updated_at: z.ZodString;
276
273
  residenceLocation: z.ZodNullable<z.ZodObject<{
277
274
  id: z.ZodString;
278
275
  latitude: z.ZodNumber;
@@ -382,7 +379,6 @@ declare const FindByIdProfileResponseDto_base: import("@anatine/zod-nestjs").Zod
382
379
  }, z.UnknownKeysParam, z.ZodTypeAny, {
383
380
  id: string;
384
381
  username: string | null;
385
- password: string | null;
386
382
  phoneNumber: string;
387
383
  secondaryPhoneNumber: string | null;
388
384
  fullName: string;
@@ -439,7 +435,6 @@ declare const FindByIdProfileResponseDto_base: import("@anatine/zod-nestjs").Zod
439
435
  }, {
440
436
  id: string;
441
437
  username: string | null;
442
- password: string | null;
443
438
  phoneNumber: string;
444
439
  secondaryPhoneNumber: string | null;
445
440
  fullName: string;
@@ -10,7 +10,9 @@ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/cre
10
10
  const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
11
11
  const tag_dto_1 = require("../../tag/dto/tag.dto");
12
12
  const zod_1 = __importDefault(require("zod"));
13
- exports.findByIdProfileResponseSchema = profile_schema_1.profileSchema.merge(zod_1.default.object({
13
+ exports.findByIdProfileResponseSchema = profile_schema_1.profileSchema
14
+ .omit({ password: true })
15
+ .merge(zod_1.default.object({
14
16
  residenceLocation: location_schema_1.locationSchema.nullable(),
15
17
  birthLocation: location_schema_1.locationSchema.nullable(),
16
18
  tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
@@ -1007,6 +1007,22 @@ export interface paths {
1007
1007
  patch: operations["MiExpoController_updateMe"];
1008
1008
  trace?: never;
1009
1009
  };
1010
+ "/mi-expo/login": {
1011
+ parameters: {
1012
+ query?: never;
1013
+ header?: never;
1014
+ path?: never;
1015
+ cookie?: never;
1016
+ };
1017
+ get?: never;
1018
+ put?: never;
1019
+ post: operations["MiExpoController_loginUsernamePassword"];
1020
+ delete?: never;
1021
+ options?: never;
1022
+ head?: never;
1023
+ patch?: never;
1024
+ trace?: never;
1025
+ };
1010
1026
  }
1011
1027
  export type webhooks = Record<string, never>;
1012
1028
  export interface components {
@@ -2044,7 +2060,6 @@ export interface components {
2044
2060
  shortId: number;
2045
2061
  firstTimeMiExpo: boolean;
2046
2062
  username: string | null;
2047
- password: string | null;
2048
2063
  phoneNumber: string;
2049
2064
  isPhoneVerified: boolean;
2050
2065
  secondaryPhoneNumber: string | null;
@@ -2380,6 +2395,26 @@ export interface components {
2380
2395
  movedToTrashDate: string | null;
2381
2396
  created_at: string;
2382
2397
  updated_at: string;
2398
+ residenceLocation: {
2399
+ id: string;
2400
+ latitude: number;
2401
+ longitude: number;
2402
+ country: string;
2403
+ state: string;
2404
+ city: string;
2405
+ created_at: string;
2406
+ updated_at: string;
2407
+ } | null;
2408
+ birthLocation: {
2409
+ id: string;
2410
+ latitude: number;
2411
+ longitude: number;
2412
+ country: string;
2413
+ state: string;
2414
+ city: string;
2415
+ created_at: string;
2416
+ updated_at: string;
2417
+ } | null;
2383
2418
  };
2384
2419
  UpdateMiExpoMeDto: {
2385
2420
  birthDate: string | null;
@@ -2407,6 +2442,41 @@ export interface components {
2407
2442
  state: string;
2408
2443
  };
2409
2444
  };
2445
+ LoginMiExpoDto: {
2446
+ username: string;
2447
+ password: string;
2448
+ };
2449
+ LoginMiExpoResponseDto: {
2450
+ user: {
2451
+ id: string;
2452
+ shortId: number;
2453
+ firstTimeMiExpo: boolean;
2454
+ username: string | null;
2455
+ phoneNumber: string;
2456
+ isPhoneVerified: boolean;
2457
+ secondaryPhoneNumber: string | null;
2458
+ fullName: string;
2459
+ firstName: string | null;
2460
+ gender: string | null;
2461
+ birthDate: string | null;
2462
+ profilePictureUrl: string | null;
2463
+ instagram: string | null;
2464
+ mail: string | null;
2465
+ dni: string | null;
2466
+ alternativeNames: string[];
2467
+ birthLocationId: string | null;
2468
+ residenceLocationId: string | null;
2469
+ isInTrash: boolean;
2470
+ movedToTrashDate: string | null;
2471
+ created_at: string;
2472
+ updated_at: string;
2473
+ };
2474
+ backendTokens: {
2475
+ accessToken: string;
2476
+ refreshToken: string;
2477
+ expiresIn: number;
2478
+ };
2479
+ };
2410
2480
  };
2411
2481
  responses: never;
2412
2482
  parameters: never;
@@ -4474,4 +4544,35 @@ export interface operations {
4474
4544
  };
4475
4545
  };
4476
4546
  };
4547
+ MiExpoController_loginUsernamePassword: {
4548
+ parameters: {
4549
+ query?: never;
4550
+ header?: never;
4551
+ path?: never;
4552
+ cookie?: never;
4553
+ };
4554
+ requestBody: {
4555
+ content: {
4556
+ "application/json": components["schemas"]["LoginMiExpoDto"];
4557
+ };
4558
+ };
4559
+ responses: {
4560
+ 200: {
4561
+ headers: {
4562
+ [name: string]: unknown;
4563
+ };
4564
+ content: {
4565
+ "application/json": components["schemas"]["LoginMiExpoResponseDto"];
4566
+ };
4567
+ };
4568
+ 401: {
4569
+ headers: {
4570
+ [name: string]: unknown;
4571
+ };
4572
+ content: {
4573
+ "application/json": components["schemas"]["ErrorDto"];
4574
+ };
4575
+ };
4576
+ };
4577
+ };
4477
4578
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.30.0-EXPO-308-auth.25",
3
+ "version": "0.30.0-EXPO-308-auth.27",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,