expo-backend-types 0.4.0-EXPO-212.4 → 0.4.0-EXPO-212.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,29 +5,29 @@ export declare const commentSchema: z.ZodObject<{
5
5
  createdBy: z.ZodString;
6
6
  isSolvable: z.ZodDefault<z.ZodBoolean>;
7
7
  isSolved: z.ZodDefault<z.ZodBoolean>;
8
- solvedAt: z.ZodOptional<z.ZodString>;
8
+ solvedAt: z.ZodOptional<z.ZodDate>;
9
9
  solvedBy: z.ZodOptional<z.ZodString>;
10
- created_at: z.ZodString;
11
- updated_at: z.ZodString;
10
+ created_at: z.ZodDate;
11
+ updated_at: z.ZodDate;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  id: string;
14
14
  content: string;
15
- created_at: string;
16
- updated_at: string;
15
+ created_at: Date;
16
+ updated_at: Date;
17
17
  createdBy: string;
18
18
  isSolvable: boolean;
19
19
  isSolved: boolean;
20
- solvedAt?: string | undefined;
20
+ solvedAt?: Date | undefined;
21
21
  solvedBy?: string | undefined;
22
22
  }, {
23
23
  id: string;
24
24
  content: string;
25
- created_at: string;
26
- updated_at: string;
25
+ created_at: Date;
26
+ updated_at: Date;
27
27
  createdBy: string;
28
28
  isSolvable?: boolean | undefined;
29
29
  isSolved?: boolean | undefined;
30
- solvedAt?: string | undefined;
30
+ solvedAt?: Date | undefined;
31
31
  solvedBy?: string | undefined;
32
32
  }>;
33
33
  declare const CommentDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
@@ -36,7 +36,7 @@ declare const CommentDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodO
36
36
  createdBy: z.ZodString;
37
37
  isSolvable: z.ZodDefault<z.ZodBoolean>;
38
38
  isSolved: z.ZodDefault<z.ZodBoolean>;
39
- solvedAt: z.ZodOptional<z.ZodString>;
39
+ solvedAt: z.ZodOptional<z.ZodDate>;
40
40
  solvedBy: z.ZodOptional<z.ZodString>;
41
41
  created_at: z.ZodString;
42
42
  updated_at: z.ZodString;
@@ -48,7 +48,7 @@ declare const CommentDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodO
48
48
  createdBy: string;
49
49
  isSolvable: boolean;
50
50
  isSolved: boolean;
51
- solvedAt?: string | undefined;
51
+ solvedAt?: Date | undefined;
52
52
  solvedBy?: string | undefined;
53
53
  }, {
54
54
  id: string;
@@ -58,7 +58,7 @@ declare const CommentDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodO
58
58
  createdBy: string;
59
59
  isSolvable?: boolean | undefined;
60
60
  isSolved?: boolean | undefined;
61
- solvedAt?: string | undefined;
61
+ solvedAt?: Date | undefined;
62
62
  solvedBy?: string | undefined;
63
63
  }>>;
64
64
  export declare class CommentDto extends CommentDto_base {
@@ -15,10 +15,10 @@ exports.commentSchema = zod_1.z.object({
15
15
  createdBy: account_dto_1.accountSchema.shape.id,
16
16
  isSolvable: zod_1.z.boolean().default(false),
17
17
  isSolved: zod_1.z.boolean().default(false),
18
- solvedAt: zod_1.z.string().datetime().optional(),
18
+ solvedAt: zod_1.z.date().optional(),
19
19
  solvedBy: account_dto_1.accountSchema.shape.id.optional(),
20
- created_at: zod_1.z.string().datetime(),
21
- updated_at: zod_1.z.string().datetime(),
20
+ created_at: zod_1.z.date(),
21
+ updated_at: zod_1.z.date(),
22
22
  });
23
23
  class CommentDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.commentSchema) {
24
24
  }
@@ -8,15 +8,15 @@ export declare const eventSchema: z.ZodObject<{
8
8
  tagAssistedId: z.ZodString;
9
9
  tagConfirmedId: z.ZodString;
10
10
  supraEventId: z.ZodOptional<z.ZodString>;
11
- created_at: z.ZodString;
12
- updated_at: z.ZodString;
11
+ created_at: z.ZodDate;
12
+ updated_at: z.ZodDate;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  location: string;
15
15
  id: string;
16
16
  name: string;
17
17
  date: string;
18
- created_at: string;
19
- updated_at: string;
18
+ created_at: Date;
19
+ updated_at: Date;
20
20
  folderId: string;
21
21
  tagAssistedId: string;
22
22
  tagConfirmedId: string;
@@ -26,8 +26,8 @@ export declare const eventSchema: z.ZodObject<{
26
26
  id: string;
27
27
  name: string;
28
28
  date: string;
29
- created_at: string;
30
- updated_at: string;
29
+ created_at: Date;
30
+ updated_at: Date;
31
31
  folderId: string;
32
32
  tagAssistedId: string;
33
33
  tagConfirmedId: string;
@@ -23,7 +23,7 @@ exports.eventSchema = zod_1.z.object({
23
23
  message: (0, translate_1.translate)('model.event.id.uuid'),
24
24
  })
25
25
  .optional(),
26
- created_at: zod_1.z.string().datetime(),
27
- updated_at: zod_1.z.string().datetime(),
26
+ created_at: zod_1.z.date(),
27
+ updated_at: zod_1.z.date(),
28
28
  });
29
29
  //# sourceMappingURL=event.dto.js.map
@@ -3,18 +3,18 @@ export declare const eventFolderSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
5
  color: z.ZodString;
6
- created_at: z.ZodString;
7
- updated_at: z.ZodString;
6
+ created_at: z.ZodDate;
7
+ updated_at: z.ZodDate;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  id: string;
10
10
  name: string;
11
11
  color: string;
12
- created_at: string;
13
- updated_at: string;
12
+ created_at: Date;
13
+ updated_at: Date;
14
14
  }, {
15
15
  id: string;
16
16
  name: string;
17
17
  color: string;
18
- created_at: string;
19
- updated_at: string;
18
+ created_at: Date;
19
+ updated_at: Date;
20
20
  }>;
@@ -18,7 +18,7 @@ exports.eventFolderSchema = zod_1.default.object({
18
18
  message: (0, translate_1.translate)('model.eventFolder.color.invalid'),
19
19
  })
20
20
  .toLowerCase(),
21
- created_at: zod_1.default.string().datetime(),
22
- updated_at: zod_1.default.string().datetime(),
21
+ created_at: zod_1.default.date(),
22
+ updated_at: zod_1.default.date(),
23
23
  });
24
24
  //# sourceMappingURL=event-folder.dto.js.map
@@ -3,5 +3,6 @@ export * from './auth/exports';
3
3
  export * from './comment/exports';
4
4
  export * from './event-folder/exports';
5
5
  export * from './event/exports';
6
+ export * from './profile/exports';
6
7
  export * from './tag-group/exports';
7
8
  export * from './tag/exports';
@@ -19,6 +19,7 @@ __exportStar(require("./auth/exports"), exports);
19
19
  __exportStar(require("./comment/exports"), exports);
20
20
  __exportStar(require("./event-folder/exports"), exports);
21
21
  __exportStar(require("./event/exports"), exports);
22
+ __exportStar(require("./profile/exports"), exports);
22
23
  __exportStar(require("./tag-group/exports"), exports);
23
24
  __exportStar(require("./tag/exports"), exports);
24
25
  //# sourceMappingURL=exports.js.map
@@ -91,6 +91,24 @@ declare const _default: {
91
91
  readonly invalid: "El color debe tener el formato hexadecimal (#ABCDEF)";
92
92
  };
93
93
  };
94
+ readonly profile: {
95
+ readonly id: {
96
+ readonly uuid: "El ID debe ser un UUID";
97
+ };
98
+ readonly phoneNumber: {
99
+ readonly required: "El teléfono es un campo obligatorio";
100
+ readonly invalid: "El teléfono no es válido";
101
+ };
102
+ readonly secondaryPhoneNumber: {
103
+ readonly invalid: "El teléfono secundario no es válido";
104
+ };
105
+ readonly fullName: {
106
+ readonly required: "El nombre es un campo obligatorio";
107
+ };
108
+ readonly profilePictureUrl: {
109
+ readonly invalid: "La URL de la imagen de perfil no es válida";
110
+ };
111
+ };
94
112
  };
95
113
  readonly route: {
96
114
  readonly auth: {
@@ -93,6 +93,24 @@ exports.default = {
93
93
  invalid: 'El color debe tener el formato hexadecimal (#ABCDEF)',
94
94
  },
95
95
  },
96
+ profile: {
97
+ id: {
98
+ uuid: 'El ID debe ser un UUID',
99
+ },
100
+ phoneNumber: {
101
+ required: 'El teléfono es un campo obligatorio',
102
+ invalid: 'El teléfono no es válido',
103
+ },
104
+ secondaryPhoneNumber: {
105
+ invalid: 'El teléfono secundario no es válido',
106
+ },
107
+ fullName: {
108
+ required: 'El nombre es un campo obligatorio',
109
+ },
110
+ profilePictureUrl: {
111
+ invalid: 'La URL de la imagen de perfil no es válida',
112
+ },
113
+ },
96
114
  },
97
115
  route: {
98
116
  auth: {
@@ -1 +1 @@
1
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;YACD,UAAU,EAAE;gBACV,OAAO,EAAE,6BAA6B;gBACtC,WAAW,EAAE,kCAAkC;aAChD;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,gCAAgC;gBACzC,WAAW,EAAE,kCAAkC;aAChD;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,8BAA8B;gBACvC,WAAW,EAAE,kCAAkC;aAChD;SACF;KACF;CACO,CAAC"}
@@ -0,0 +1,68 @@
1
+ import z from 'zod';
2
+ export declare const profileSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ shortId: z.ZodNumber;
5
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
6
+ secondaryPhoneNumber: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
7
+ fullName: z.ZodString;
8
+ firstName: z.ZodString;
9
+ gender: z.ZodOptional<z.ZodString>;
10
+ birthDate: z.ZodOptional<z.ZodDate>;
11
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
12
+ instagram: z.ZodOptional<z.ZodString>;
13
+ mail: z.ZodOptional<z.ZodString>;
14
+ dni: z.ZodOptional<z.ZodString>;
15
+ alternativeNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ birthLongitude: z.ZodOptional<z.ZodNumber>;
17
+ birthLatitude: z.ZodOptional<z.ZodNumber>;
18
+ residenceLongitude: z.ZodOptional<z.ZodNumber>;
19
+ residenceLatitude: z.ZodOptional<z.ZodNumber>;
20
+ isInTrash: z.ZodBoolean;
21
+ movedToTrashDate: z.ZodOptional<z.ZodDate>;
22
+ created_at: z.ZodDate;
23
+ updated_at: z.ZodDate;
24
+ }, "strip", z.ZodTypeAny, {
25
+ id: string;
26
+ phoneNumber: string;
27
+ fullName: string;
28
+ created_at: Date;
29
+ updated_at: Date;
30
+ shortId: number;
31
+ firstName: string;
32
+ isInTrash: boolean;
33
+ secondaryPhoneNumber?: string | undefined;
34
+ profilePictureUrl?: string | undefined;
35
+ gender?: string | undefined;
36
+ birthDate?: Date | undefined;
37
+ instagram?: string | undefined;
38
+ mail?: string | undefined;
39
+ dni?: string | undefined;
40
+ alternativeNames?: string[] | undefined;
41
+ birthLongitude?: number | undefined;
42
+ birthLatitude?: number | undefined;
43
+ residenceLongitude?: number | undefined;
44
+ residenceLatitude?: number | undefined;
45
+ movedToTrashDate?: Date | undefined;
46
+ }, {
47
+ id: string;
48
+ phoneNumber: string;
49
+ fullName: string;
50
+ created_at: Date;
51
+ updated_at: Date;
52
+ shortId: number;
53
+ firstName: string;
54
+ isInTrash: boolean;
55
+ secondaryPhoneNumber?: string | undefined;
56
+ profilePictureUrl?: string | undefined;
57
+ gender?: string | undefined;
58
+ birthDate?: Date | undefined;
59
+ instagram?: string | undefined;
60
+ mail?: string | undefined;
61
+ dni?: string | undefined;
62
+ alternativeNames?: string[] | undefined;
63
+ birthLongitude?: number | undefined;
64
+ birthLatitude?: number | undefined;
65
+ residenceLongitude?: number | undefined;
66
+ residenceLatitude?: number | undefined;
67
+ movedToTrashDate?: Date | undefined;
68
+ }>;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.profileSchema = void 0;
7
+ const translate_1 = require("../../i18n/translate");
8
+ const validator_1 = __importDefault(require("validator"));
9
+ const zod_1 = __importDefault(require("zod"));
10
+ exports.profileSchema = zod_1.default.object({
11
+ id: zod_1.default.string().uuid({
12
+ message: (0, translate_1.translate)('model.profile.id.uuid'),
13
+ }),
14
+ shortId: zod_1.default.number(),
15
+ phoneNumber: zod_1.default
16
+ .string()
17
+ .min(1, {
18
+ message: (0, translate_1.translate)('model.profile.phoneNumber.required'),
19
+ })
20
+ .refine(validator_1.default.isMobilePhone, {
21
+ message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
22
+ }),
23
+ secondaryPhoneNumber: zod_1.default
24
+ .string()
25
+ .optional()
26
+ .refine(validator_1.default.isMobilePhone, {
27
+ message: (0, translate_1.translate)('model.profile.secondaryPhoneNumber.invalid'),
28
+ }),
29
+ fullName: zod_1.default.string().min(1, {
30
+ message: (0, translate_1.translate)('model.profile.fullName.required'),
31
+ }),
32
+ firstName: zod_1.default.string().min(1, {
33
+ message: (0, translate_1.translate)('model.profile.fullName.required'),
34
+ }),
35
+ gender: zod_1.default.string().optional(),
36
+ birthDate: zod_1.default.date().optional(),
37
+ profilePictureUrl: zod_1.default
38
+ .string()
39
+ .url({
40
+ message: (0, translate_1.translate)('model.profile.profilePictureUrl.invalid'),
41
+ })
42
+ .optional(),
43
+ instagram: zod_1.default.string().optional(),
44
+ mail: zod_1.default.string().email().optional(),
45
+ dni: zod_1.default.string().optional(),
46
+ alternativeNames: zod_1.default.array(zod_1.default.string()).optional(),
47
+ birthLongitude: zod_1.default.number().min(-180).max(180).optional(),
48
+ birthLatitude: zod_1.default.number().min(-90).max(90).optional(),
49
+ residenceLongitude: zod_1.default.number().min(-180).max(180).optional(),
50
+ residenceLatitude: zod_1.default.number().min(-90).max(90).optional(),
51
+ isInTrash: zod_1.default.boolean(),
52
+ movedToTrashDate: zod_1.default.date().optional(),
53
+ created_at: zod_1.default.date(),
54
+ updated_at: zod_1.default.date(),
55
+ });
56
+ //# sourceMappingURL=profile.dto.js.map
@@ -0,0 +1 @@
1
+ export * from './dto/profile.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/profile.dto"), exports);
18
+ //# sourceMappingURL=exports.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.4.0-EXPO-212.4",
3
+ "version": "0.4.0-EXPO-212.5",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,