expo-backend-types 0.30.0-EXPO-308-auth.26 → 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,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;
@@ -2427,6 +2442,41 @@ export interface components {
2427
2442
  state: string;
2428
2443
  };
2429
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
+ };
2430
2480
  };
2431
2481
  responses: never;
2432
2482
  parameters: never;
@@ -4494,4 +4544,35 @@ export interface operations {
4494
4544
  };
4495
4545
  };
4496
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
+ };
4497
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.26",
3
+ "version": "0.30.0-EXPO-308-auth.27",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,