expo-backend-types 0.3.0-EXPO-245.7 → 0.3.0-EXPO-245.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/src/{cuenta/dto/cuenta.dto.d.ts → account/dto/account.dto.d.ts} +57 -51
  2. package/dist/src/account/dto/account.dto.js +52 -0
  3. package/dist/src/{cuenta/dto/createCuenta.dto.d.ts → account/dto/createAccount.dto.d.ts} +92 -80
  4. package/dist/src/account/dto/createAccount.dto.js +23 -0
  5. package/dist/src/{cuenta/dto/getFiltroBase.dto.d.ts → account/dto/getGlobalFilter.dto.d.ts} +35 -35
  6. package/dist/src/account/dto/getGlobalFilter.dto.js +30 -0
  7. package/dist/src/{cuenta → account}/dto/getMe.dto.d.ts +56 -50
  8. package/dist/src/{cuenta → account}/dto/getMe.dto.js +2 -2
  9. package/dist/src/{cuenta/dto/updateFiltroBase.dto.d.ts → account/dto/updateGlobalFilter.dto.d.ts} +58 -58
  10. package/dist/src/account/dto/updateGlobalFilter.dto.js +29 -0
  11. package/dist/src/account/exports.d.ts +5 -0
  12. package/dist/src/{cuenta → account}/exports.js +4 -4
  13. package/dist/src/auth/dto/login.dto.d.ts +112 -100
  14. package/dist/src/auth/dto/login.dto.js +3 -3
  15. package/dist/src/comment/dto/comment.dto.d.ts +66 -0
  16. package/dist/src/comment/dto/comment.dto.js +26 -0
  17. package/dist/src/comment/exports.d.ts +1 -0
  18. package/dist/src/{etiqueta → comment}/exports.js +1 -1
  19. package/dist/src/event/dto/event.dto.d.ts +41 -0
  20. package/dist/src/event/dto/event.dto.js +33 -0
  21. package/dist/src/event/exports.d.ts +1 -0
  22. package/dist/src/{evento → event}/exports.js +1 -1
  23. package/dist/src/event-folder/dto/event-folder.dto.d.ts +14 -0
  24. package/dist/src/event-folder/dto/event-folder.dto.js +22 -0
  25. package/dist/src/exports.d.ts +5 -5
  26. package/dist/src/exports.js +5 -5
  27. package/dist/src/{etiqueta/dto/etiqueta.dto.d.ts → tag/dto/tag.dto.d.ts} +15 -15
  28. package/dist/src/tag/dto/tag.dto.js +30 -0
  29. package/dist/src/tag/exports.d.ts +1 -0
  30. package/dist/src/{grupo-etiqueta → tag}/exports.js +1 -1
  31. package/dist/src/{grupo-etiqueta/dto/grupo-etiqueta.dto.d.ts → tag-group/dto/tag-group.dto.d.ts} +3 -3
  32. package/dist/src/{grupo-etiqueta/dto/grupo-etiqueta.dto.js → tag-group/dto/tag-group.dto.js} +8 -8
  33. package/dist/src/tag-group/exports.d.ts +1 -0
  34. package/dist/src/{comentario → tag-group}/exports.js +1 -1
  35. package/dist/types/prisma-schema/edge.js +86 -70
  36. package/dist/types/prisma-schema/index-browser.js +83 -67
  37. package/dist/types/prisma-schema/index.d.ts +8283 -6804
  38. package/dist/types/prisma-schema/index.js +86 -70
  39. package/dist/types/prisma-schema/package.json +1 -1
  40. package/dist/types/prisma-schema/schema.prisma +144 -112
  41. package/dist/types/prisma-schema/wasm.js +83 -67
  42. package/dist/types/schema.d.ts +37 -37
  43. package/package.json +1 -1
  44. package/dist/src/comentario/dto/comentario.dto.d.ts +0 -42
  45. package/dist/src/comentario/dto/comentario.dto.js +0 -22
  46. package/dist/src/comentario/exports.d.ts +0 -1
  47. package/dist/src/cuenta/dto/createCuenta.dto.js +0 -23
  48. package/dist/src/cuenta/dto/cuenta.dto.js +0 -49
  49. package/dist/src/cuenta/dto/getFiltroBase.dto.js +0 -29
  50. package/dist/src/cuenta/dto/updateFiltroBase.dto.js +0 -28
  51. package/dist/src/cuenta/exports.d.ts +0 -5
  52. package/dist/src/etiqueta/dto/etiqueta.dto.js +0 -30
  53. package/dist/src/etiqueta/exports.d.ts +0 -1
  54. package/dist/src/evento/dto/evento.dto.d.ts +0 -126
  55. package/dist/src/evento/dto/evento.dto.js +0 -37
  56. package/dist/src/evento/exports.d.ts +0 -1
  57. package/dist/src/grupo-etiqueta/exports.d.ts +0 -1
@@ -0,0 +1,41 @@
1
+ import { z } from 'zod';
2
+ declare const eventSchemaBase: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ date: z.ZodString;
6
+ location: z.ZodString;
7
+ folderId: z.ZodString;
8
+ tagAssistedId: z.ZodString;
9
+ tagConfirmedId: z.ZodString;
10
+ eventoPadreId: z.ZodOptional<z.ZodString>;
11
+ created_at: z.ZodString;
12
+ updated_at: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ id: string;
15
+ name: string;
16
+ date: string;
17
+ location: string;
18
+ created_at: string;
19
+ updated_at: string;
20
+ folderId: string;
21
+ tagAssistedId: string;
22
+ tagConfirmedId: string;
23
+ eventoPadreId?: string | undefined;
24
+ }, {
25
+ id: string;
26
+ name: string;
27
+ date: string;
28
+ location: string;
29
+ created_at: string;
30
+ updated_at: string;
31
+ folderId: string;
32
+ tagAssistedId: string;
33
+ tagConfirmedId: string;
34
+ eventoPadreId?: string | undefined;
35
+ }>;
36
+ type Event = z.infer<typeof eventSchemaBase> & {
37
+ supraEvent: z.infer<typeof eventSchemaBase>;
38
+ subEvents: Array<z.infer<typeof eventSchemaBase>>;
39
+ };
40
+ export declare const eventSchema: z.ZodType<Event>;
41
+ export {};
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.eventSchema = void 0;
4
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
5
+ const translate_1 = require("../../i18n/translate");
6
+ const zod_1 = require("zod");
7
+ const event_folder_dto_1 = require("../../event-folder/dto/event-folder.dto");
8
+ const eventSchemaBase = zod_1.z.object({
9
+ id: zod_1.z.string().uuid({ message: (0, translate_1.translate)('model.event.id.uuid') }),
10
+ name: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.name.required')),
11
+ date: zod_1.z
12
+ .string({
13
+ required_error: (0, translate_1.translate)('model.event.date.required'),
14
+ })
15
+ .date((0, translate_1.translate)('model.event.date.invalid')),
16
+ location: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.location.required')),
17
+ folderId: event_folder_dto_1.eventFolderSchema.shape.id,
18
+ tagAssistedId: tag_dto_1.tagSchema.shape.id,
19
+ tagConfirmedId: tag_dto_1.tagSchema.shape.id,
20
+ eventoPadreId: zod_1.z
21
+ .string()
22
+ .uuid({
23
+ message: (0, translate_1.translate)('model.event.id.uuid'),
24
+ })
25
+ .optional(),
26
+ created_at: zod_1.z.string().datetime(),
27
+ updated_at: zod_1.z.string().datetime(),
28
+ });
29
+ exports.eventSchema = eventSchemaBase.extend({
30
+ supraEvent: zod_1.z.lazy(() => exports.eventSchema),
31
+ subEvents: zod_1.z.array(zod_1.z.lazy(() => eventSchemaBase)),
32
+ });
33
+ //# sourceMappingURL=event.dto.js.map
@@ -0,0 +1 @@
1
+ export * from './dto/event.dto';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./dto/evento.dto"), exports);
17
+ __exportStar(require("./dto/event.dto"), exports);
18
18
  //# sourceMappingURL=exports.js.map
@@ -0,0 +1,14 @@
1
+ import z from 'zod';
2
+ export declare const eventFolderSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ color: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ id: string;
8
+ name: string;
9
+ color: string;
10
+ }, {
11
+ id: string;
12
+ name: string;
13
+ color: string;
14
+ }>;
@@ -0,0 +1,22 @@
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.eventFolderSchema = void 0;
7
+ const translate_1 = require("../../i18n/translate");
8
+ const zod_1 = __importDefault(require("zod"));
9
+ exports.eventFolderSchema = zod_1.default.object({
10
+ id: zod_1.default.string().uuid({
11
+ message: (0, translate_1.translate)('model.eventFolder.id.uuid'),
12
+ }),
13
+ name: zod_1.default.string().min(1),
14
+ color: zod_1.default
15
+ .string()
16
+ .length(7)
17
+ .startsWith('#', {
18
+ message: (0, translate_1.translate)('model.eventFolder.color.invalid'),
19
+ })
20
+ .toLowerCase(),
21
+ });
22
+ //# sourceMappingURL=event-folder.dto.js.map
@@ -1,6 +1,6 @@
1
1
  export * from './auth/exports';
2
- export * from './cuenta/exports';
3
- export * from './etiqueta/exports';
4
- export * from './comentario/exports';
5
- export * from './grupo-etiqueta/exports';
6
- export * from './evento/exports';
2
+ export * from './account/exports';
3
+ export * from './tag/exports';
4
+ export * from './comment/exports';
5
+ export * from './tag-group/exports';
6
+ export * from './event/exports';
@@ -15,9 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth/exports"), exports);
18
- __exportStar(require("./cuenta/exports"), exports);
19
- __exportStar(require("./etiqueta/exports"), exports);
20
- __exportStar(require("./comentario/exports"), exports);
21
- __exportStar(require("./grupo-etiqueta/exports"), exports);
22
- __exportStar(require("./evento/exports"), exports);
18
+ __exportStar(require("./account/exports"), exports);
19
+ __exportStar(require("./tag/exports"), exports);
20
+ __exportStar(require("./comment/exports"), exports);
21
+ __exportStar(require("./tag-group/exports"), exports);
22
+ __exportStar(require("./event/exports"), exports);
23
23
  //# sourceMappingURL=exports.js.map
@@ -1,58 +1,58 @@
1
1
  import { z } from 'zod';
2
- export declare const etiquetaSchema: z.ZodObject<{
2
+ export declare const tagSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
5
  groupId: z.ZodString;
6
6
  type: z.ZodNativeEnum<{
7
- PERSONAL: "PERSONAL";
8
- EVENTO: "EVENTO";
9
- MODELO: "MODELO";
10
- TENTATIVA: "TENTATIVA";
7
+ PROFILE: "PROFILE";
8
+ EVENT: "EVENT";
9
+ PARTICIPANT: "PARTICIPANT";
10
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
11
11
  }>;
12
12
  created_at: z.ZodString;
13
13
  updated_at: z.ZodString;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  id: string;
16
16
  name: string;
17
- type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
17
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
18
18
  created_at: string;
19
19
  updated_at: string;
20
20
  groupId: string;
21
21
  }, {
22
22
  id: string;
23
23
  name: string;
24
- type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
24
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
25
25
  created_at: string;
26
26
  updated_at: string;
27
27
  groupId: string;
28
28
  }>;
29
- declare const EtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
29
+ declare const TagDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
30
30
  id: z.ZodString;
31
31
  name: z.ZodString;
32
32
  groupId: z.ZodString;
33
33
  type: z.ZodNativeEnum<{
34
- PERSONAL: "PERSONAL";
35
- EVENTO: "EVENTO";
36
- MODELO: "MODELO";
37
- TENTATIVA: "TENTATIVA";
34
+ PROFILE: "PROFILE";
35
+ EVENT: "EVENT";
36
+ PARTICIPANT: "PARTICIPANT";
37
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
38
38
  }>;
39
39
  created_at: z.ZodString;
40
40
  updated_at: z.ZodString;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  id: string;
43
43
  name: string;
44
- type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
44
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
45
45
  created_at: string;
46
46
  updated_at: string;
47
47
  groupId: string;
48
48
  }, {
49
49
  id: string;
50
50
  name: string;
51
- type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
51
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
52
52
  created_at: string;
53
53
  updated_at: string;
54
54
  groupId: string;
55
55
  }>>;
56
- export declare class EtiquetaDto extends EtiquetaDto_base {
56
+ export declare class TagDto extends TagDto_base {
57
57
  }
58
58
  export {};
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagDto = exports.tagSchema = void 0;
4
+ const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
5
+ const translate_1 = require("../../i18n/translate");
6
+ const zod_nestjs_1 = require("@anatine/zod-nestjs");
7
+ const zod_1 = require("zod");
8
+ const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
9
+ exports.tagSchema = zod_1.z.object({
10
+ id: zod_1.z.string().uuid({
11
+ message: (0, translate_1.translate)('model.tag.id.uuid'),
12
+ }),
13
+ name: zod_1.z
14
+ .string({
15
+ required_error: (0, translate_1.translate)('model.tag.name.required'),
16
+ })
17
+ .min(1, {
18
+ message: (0, translate_1.translate)('model.tag.name.min'),
19
+ }),
20
+ groupId: tag_group_dto_1.tagGroupSchema.shape.id,
21
+ type: zod_1.z.nativeEnum(prisma_schema_1.TagType, {
22
+ message: (0, translate_1.translate)('model.tag.type.invalid'),
23
+ }),
24
+ created_at: zod_1.z.string().datetime(),
25
+ updated_at: zod_1.z.string().datetime(),
26
+ });
27
+ class TagDto extends (0, zod_nestjs_1.createZodDto)(exports.tagSchema) {
28
+ }
29
+ exports.TagDto = TagDto;
30
+ //# sourceMappingURL=tag.dto.js.map
@@ -0,0 +1 @@
1
+ export * from './dto/tag.dto';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./dto/grupo-etiqueta.dto"), exports);
17
+ __exportStar(require("./dto/tag.dto"), exports);
18
18
  //# sourceMappingURL=exports.js.map
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const grupoEtiquetaSchema: z.ZodObject<{
2
+ export declare const tagGroupSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
5
  color: z.ZodString;
@@ -21,7 +21,7 @@ export declare const grupoEtiquetaSchema: z.ZodObject<{
21
21
  created_at: string;
22
22
  updated_at: string;
23
23
  }>;
24
- declare const GrupoEtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
24
+ declare const TagGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
25
25
  id: z.ZodString;
26
26
  name: z.ZodString;
27
27
  color: z.ZodString;
@@ -43,6 +43,6 @@ declare const GrupoEtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
43
43
  created_at: string;
44
44
  updated_at: string;
45
45
  }>>;
46
- export declare class GrupoEtiquetaDto extends GrupoEtiquetaDto_base {
46
+ export declare class TagGroupDto extends TagGroupDto_base {
47
47
  }
48
48
  export {};
@@ -1,28 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GrupoEtiquetaDto = exports.grupoEtiquetaSchema = void 0;
3
+ exports.TagGroupDto = exports.tagGroupSchema = void 0;
4
4
  const translate_1 = require("../../i18n/translate");
5
5
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
6
6
  const zod_1 = require("zod");
7
- exports.grupoEtiquetaSchema = zod_1.z.object({
7
+ exports.tagGroupSchema = zod_1.z.object({
8
8
  id: zod_1.z.string().uuid({
9
- message: (0, translate_1.translate)('model.grupoEtiqueta.id.uuid'),
9
+ message: (0, translate_1.translate)('model.tagGroup.id.uuid'),
10
10
  }),
11
11
  name: zod_1.z.string().min(1, {
12
- message: (0, translate_1.translate)('model.grupoEtiqueta.name.required'),
12
+ message: (0, translate_1.translate)('model.tagGroup.name.required'),
13
13
  }),
14
14
  color: zod_1.z
15
15
  .string()
16
16
  .length(7)
17
17
  .startsWith('#', {
18
- message: (0, translate_1.translate)('model.grupoEtiqueta.color.invalid'),
18
+ message: (0, translate_1.translate)('model.tagGroup.color.invalid'),
19
19
  })
20
20
  .toLowerCase(),
21
21
  isExclusive: zod_1.z.boolean(),
22
22
  created_at: zod_1.z.string().datetime(),
23
23
  updated_at: zod_1.z.string().datetime(),
24
24
  });
25
- class GrupoEtiquetaDto extends (0, zod_nestjs_1.createZodDto)(exports.grupoEtiquetaSchema) {
25
+ class TagGroupDto extends (0, zod_nestjs_1.createZodDto)(exports.tagGroupSchema) {
26
26
  }
27
- exports.GrupoEtiquetaDto = GrupoEtiquetaDto;
28
- //# sourceMappingURL=grupo-etiqueta.dto.js.map
27
+ exports.TagGroupDto = TagGroupDto;
28
+ //# sourceMappingURL=tag-group.dto.js.map
@@ -0,0 +1 @@
1
+ export * from './dto/tag-group.dto';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./dto/comentario.dto"), exports);
17
+ __exportStar(require("./dto/tag-group.dto"), exports);
18
18
  //# sourceMappingURL=exports.js.map