expo-backend-types 0.4.0 → 0.5.0-EXPO-283-EB-Respuesta-Enlatada.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/dist/src/account/dto/account.dto.d.ts +11 -201
  2. package/dist/src/account/dto/account.dto.js +4 -21
  3. package/dist/src/account/dto/create-account.dto.d.ts +9 -301
  4. package/dist/src/account/dto/create-account.dto.js +3 -4
  5. package/dist/src/account/dto/get-global-filter.dto.d.ts +24 -20
  6. package/dist/src/account/dto/get-global-filter.dto.js +10 -6
  7. package/dist/src/account/dto/get-me.dto.d.ts +214 -188
  8. package/dist/src/account/dto/get-me.dto.js +27 -4
  9. package/dist/src/account/dto/update-global-filter.dto.d.ts +136 -169
  10. package/dist/src/account/dto/update-global-filter.dto.js +7 -15
  11. package/dist/src/auth/dto/login.dto.d.ts +34 -414
  12. package/dist/src/auth/dto/login.dto.js +5 -4
  13. package/dist/src/auth/dto/refresh.dto.d.ts +30 -0
  14. package/dist/src/auth/dto/refresh.dto.js +17 -0
  15. package/dist/src/cannedResponse/dto/cannedResponse.dto.d.ts +48 -0
  16. package/dist/src/cannedResponse/dto/cannedResponse.dto.js +25 -0
  17. package/dist/src/cannedResponse/dto/create-cannedResponse.dto.d.ts +1 -0
  18. package/dist/src/cannedResponse/dto/create-cannedResponse.dto.js +5 -0
  19. package/dist/src/cannedResponse/dto/exports.d.ts +1 -0
  20. package/dist/src/cannedResponse/dto/exports.js +3 -0
  21. package/dist/src/comment/dto/comment.dto.d.ts +21 -15
  22. package/dist/src/comment/dto/comment.dto.js +11 -6
  23. package/dist/src/comment/dto/create-comment.dto.d.ts +106 -0
  24. package/dist/src/comment/dto/create-comment.dto.js +18 -0
  25. package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +177 -0
  26. package/dist/src/comment/dto/get-by-profile-comment.dto.js +21 -0
  27. package/dist/src/comment/dto/toggle-solve-comment.dto.d.ts +71 -0
  28. package/dist/src/comment/dto/toggle-solve-comment.dto.js +10 -0
  29. package/dist/src/comment/exports.d.ts +3 -0
  30. package/dist/src/comment/exports.js +3 -0
  31. package/dist/src/event/dto/event.dto.d.ts +10 -16
  32. package/dist/src/event/dto/event.dto.js +6 -10
  33. package/dist/src/event-folder/dto/event-folder.dto.d.ts +6 -0
  34. package/dist/src/event-folder/dto/event-folder.dto.js +2 -0
  35. package/dist/src/event-folder/exports.d.ts +1 -0
  36. package/dist/src/event-folder/exports.js +18 -0
  37. package/dist/src/exports.d.ts +5 -3
  38. package/dist/src/exports.js +5 -3
  39. package/dist/src/i18n/es.d.ts +223 -0
  40. package/dist/src/i18n/es.js +225 -0
  41. package/dist/src/i18n/es.js.map +1 -0
  42. package/dist/src/i18n/translate.d.ts +9 -2
  43. package/dist/src/i18n/translate.js +3 -3
  44. package/dist/src/i18n/translate.js.map +1 -1
  45. package/dist/src/profile/dto/profile.dto.d.ts +68 -0
  46. package/dist/src/profile/dto/profile.dto.js +59 -0
  47. package/dist/src/profile/exports.d.ts +1 -0
  48. package/dist/src/profile/exports.js +18 -0
  49. package/dist/src/shared/dto-modification/create-zod-dto-without-date.d.ts +4 -0
  50. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js +10 -0
  51. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js.map +1 -0
  52. package/dist/src/shared/dto-modification/without-dates.d.ts +4 -0
  53. package/dist/src/shared/dto-modification/without-dates.js +6 -0
  54. package/dist/src/shared/dto-modification/without-dates.js.map +1 -0
  55. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +8 -0
  56. package/dist/src/shared/dto-modification/zod-without-dates.js +28 -0
  57. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -0
  58. package/dist/src/tag/dto/create-tag.dto.d.ts +5 -16
  59. package/dist/src/tag/dto/create-tag.dto.js +3 -3
  60. package/dist/src/tag/dto/delete-tag.dto.d.ts +7 -7
  61. package/dist/src/tag/dto/delete-tag.dto.js +2 -2
  62. package/dist/src/tag/dto/find-all-tag.dto.d.ts +34 -35
  63. package/dist/src/tag/dto/find-all-tag.dto.js +2 -2
  64. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +35 -36
  65. package/dist/src/tag/dto/find-by-group-tag.dto.js +5 -5
  66. package/dist/src/tag/dto/find-one-tag.dto.d.ts +23 -24
  67. package/dist/src/tag/dto/find-one-tag.dto.js +2 -2
  68. package/dist/src/tag/dto/massive-allocation.dto.d.ts +260 -0
  69. package/dist/src/tag/dto/massive-allocation.dto.js +24 -0
  70. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +260 -0
  71. package/dist/src/tag/dto/massive-deallocation.dto.js +24 -0
  72. package/dist/src/tag/dto/tag.dto.d.ts +7 -7
  73. package/dist/src/tag/dto/tag.dto.js +3 -3
  74. package/dist/src/tag/dto/update-tag.dto.d.ts +31 -22
  75. package/dist/src/tag/dto/update-tag.dto.js +5 -7
  76. package/dist/src/tag/exports.d.ts +2 -1
  77. package/dist/src/tag/exports.js +2 -1
  78. package/dist/src/tag-group/dto/create-tag-group.dto.d.ts +78 -0
  79. package/dist/src/tag-group/dto/create-tag-group.dto.js +18 -0
  80. package/dist/src/tag-group/dto/delete-tag-group.dto.d.ts +47 -0
  81. package/dist/src/tag-group/dto/delete-tag-group.dto.js +10 -0
  82. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +207 -0
  83. package/dist/src/tag-group/dto/find-all-tag-group.dto.js +19 -0
  84. package/dist/src/{tag/dto/find-all-grouped-tag.dto.d.ts → tag-group/dto/find-all-with-tags.dto.d.ts} +24 -28
  85. package/dist/src/{tag/dto/find-all-grouped-tag.dto.js → tag-group/dto/find-all-with-tags.dto.js} +8 -8
  86. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +135 -0
  87. package/dist/src/tag-group/dto/find-one-tag-group.dto.js +17 -0
  88. package/dist/src/tag-group/dto/tag-group.dto.d.ts +9 -9
  89. package/dist/src/tag-group/dto/tag-group.dto.js +5 -3
  90. package/dist/src/tag-group/dto/update-tag-group.dto.d.ts +78 -0
  91. package/dist/src/tag-group/dto/update-tag-group.dto.js +18 -0
  92. package/dist/src/tag-group/exports.d.ts +6 -0
  93. package/dist/src/tag-group/exports.js +6 -0
  94. package/dist/types/prisma-schema/edge.js +4 -4
  95. package/dist/types/prisma-schema/index-browser.js +1 -1
  96. package/dist/types/prisma-schema/index.d.ts +53 -53
  97. package/dist/types/prisma-schema/index.js +4 -4
  98. package/dist/types/prisma-schema/package.json +1 -1
  99. package/dist/types/prisma-schema/schema.prisma +1 -1
  100. package/dist/types/prisma-schema/wasm.js +1 -1
  101. package/dist/types/schema.d.ts +787 -184
  102. package/package.json +10 -6
  103. package/dist/src/i18n/es.json +0 -125
@@ -0,0 +1,207 @@
1
+ import z from 'zod';
2
+ export declare const findAllTagGroupResponseSchema: z.ZodObject<{
3
+ tagGroups: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ color: z.ZodString;
7
+ isExclusive: z.ZodBoolean;
8
+ created_at: z.ZodDate;
9
+ updated_at: z.ZodDate;
10
+ }, {
11
+ tags: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ name: z.ZodString;
14
+ groupId: z.ZodString;
15
+ type: z.ZodNativeEnum<{
16
+ PROFILE: "PROFILE";
17
+ EVENT: "EVENT";
18
+ PARTICIPANT: "PARTICIPANT";
19
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
20
+ }>;
21
+ created_at: z.ZodDate;
22
+ updated_at: z.ZodDate;
23
+ }, "strip", z.ZodTypeAny, {
24
+ id: string;
25
+ name: string;
26
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
27
+ created_at: Date;
28
+ updated_at: Date;
29
+ groupId: string;
30
+ }, {
31
+ id: string;
32
+ name: string;
33
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
34
+ created_at: Date;
35
+ updated_at: Date;
36
+ groupId: string;
37
+ }>, "many">;
38
+ }>, "strip", z.ZodTypeAny, {
39
+ id: string;
40
+ name: string;
41
+ color: string;
42
+ created_at: Date;
43
+ updated_at: Date;
44
+ isExclusive: boolean;
45
+ tags: {
46
+ id: string;
47
+ name: string;
48
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
49
+ created_at: Date;
50
+ updated_at: Date;
51
+ groupId: string;
52
+ }[];
53
+ }, {
54
+ id: string;
55
+ name: string;
56
+ color: string;
57
+ created_at: Date;
58
+ updated_at: Date;
59
+ isExclusive: boolean;
60
+ tags: {
61
+ id: string;
62
+ name: string;
63
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
64
+ created_at: Date;
65
+ updated_at: Date;
66
+ groupId: string;
67
+ }[];
68
+ }>, "many">;
69
+ }, "strip", z.ZodTypeAny, {
70
+ tagGroups: {
71
+ id: string;
72
+ name: string;
73
+ color: string;
74
+ created_at: Date;
75
+ updated_at: Date;
76
+ isExclusive: boolean;
77
+ tags: {
78
+ id: string;
79
+ name: string;
80
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
81
+ created_at: Date;
82
+ updated_at: Date;
83
+ groupId: string;
84
+ }[];
85
+ }[];
86
+ }, {
87
+ tagGroups: {
88
+ id: string;
89
+ name: string;
90
+ color: string;
91
+ created_at: Date;
92
+ updated_at: Date;
93
+ isExclusive: boolean;
94
+ tags: {
95
+ id: string;
96
+ name: string;
97
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
98
+ created_at: Date;
99
+ updated_at: Date;
100
+ groupId: string;
101
+ }[];
102
+ }[];
103
+ }>;
104
+ declare const FindAllTagGroupResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
105
+ tagGroups: z.ZodArray<z.ZodObject<{
106
+ id: z.ZodString;
107
+ name: z.ZodString;
108
+ color: z.ZodString;
109
+ isExclusive: z.ZodBoolean;
110
+ created_at: z.ZodString;
111
+ updated_at: z.ZodString;
112
+ tags: z.ZodArray<z.ZodObject<{
113
+ id: z.ZodString;
114
+ name: z.ZodString;
115
+ groupId: z.ZodString;
116
+ type: z.ZodNativeEnum<{
117
+ PROFILE: "PROFILE";
118
+ EVENT: "EVENT";
119
+ PARTICIPANT: "PARTICIPANT";
120
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
121
+ }>;
122
+ created_at: z.ZodString;
123
+ updated_at: z.ZodString;
124
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
125
+ id: string;
126
+ name: string;
127
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
128
+ created_at: string;
129
+ updated_at: string;
130
+ groupId: string;
131
+ }, {
132
+ id: string;
133
+ name: string;
134
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
135
+ created_at: string;
136
+ updated_at: string;
137
+ groupId: string;
138
+ }>, "many">;
139
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
140
+ id: string;
141
+ name: string;
142
+ color: string;
143
+ created_at: string;
144
+ updated_at: string;
145
+ isExclusive: boolean;
146
+ tags: {
147
+ id: string;
148
+ name: string;
149
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
150
+ created_at: string;
151
+ updated_at: string;
152
+ groupId: string;
153
+ }[];
154
+ }, {
155
+ id: string;
156
+ name: string;
157
+ color: string;
158
+ created_at: string;
159
+ updated_at: string;
160
+ isExclusive: boolean;
161
+ tags: {
162
+ id: string;
163
+ name: string;
164
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
165
+ created_at: string;
166
+ updated_at: string;
167
+ groupId: string;
168
+ }[];
169
+ }>, "many">;
170
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
171
+ tagGroups: {
172
+ id: string;
173
+ name: string;
174
+ color: string;
175
+ created_at: string;
176
+ updated_at: string;
177
+ isExclusive: boolean;
178
+ tags: {
179
+ id: string;
180
+ name: string;
181
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
182
+ created_at: string;
183
+ updated_at: string;
184
+ groupId: string;
185
+ }[];
186
+ }[];
187
+ }, {
188
+ tagGroups: {
189
+ id: string;
190
+ name: string;
191
+ color: string;
192
+ created_at: string;
193
+ updated_at: string;
194
+ isExclusive: boolean;
195
+ tags: {
196
+ id: string;
197
+ name: string;
198
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
199
+ created_at: string;
200
+ updated_at: string;
201
+ groupId: string;
202
+ }[];
203
+ }[];
204
+ }>>;
205
+ export declare class FindAllTagGroupResponseDto extends FindAllTagGroupResponseDto_base {
206
+ }
207
+ export {};
@@ -0,0 +1,19 @@
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.FindAllTagGroupResponseDto = exports.findAllTagGroupResponseSchema = void 0;
7
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
+ const tag_group_dto_1 = require("./tag-group.dto");
9
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
10
+ const zod_1 = __importDefault(require("zod"));
11
+ exports.findAllTagGroupResponseSchema = zod_1.default.object({
12
+ tagGroups: zod_1.default.array(tag_group_dto_1.tagGroupSchema.merge(zod_1.default.object({
13
+ tags: zod_1.default.array(tag_dto_1.tagSchema),
14
+ }))),
15
+ });
16
+ class FindAllTagGroupResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findAllTagGroupResponseSchema) {
17
+ }
18
+ exports.FindAllTagGroupResponseDto = FindAllTagGroupResponseDto;
19
+ //# sourceMappingURL=find-all-tag-group.dto.js.map
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- export declare const findAllGroupedTagResponseSchema: z.ZodObject<{
2
+ export declare const findAllWithTagsResponseSchema: z.ZodObject<{
3
3
  groups: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
4
4
  id: z.ZodString;
5
5
  name: z.ZodString;
@@ -138,16 +138,13 @@ export declare const findAllGroupedTagResponseSchema: z.ZodObject<{
138
138
  };
139
139
  }[];
140
140
  }>;
141
- declare const FindAllGroupedTagResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
142
- groups: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
141
+ declare const FindAllWithTagsResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
142
+ groups: z.ZodArray<z.ZodObject<{
143
143
  id: z.ZodString;
144
144
  name: z.ZodString;
145
145
  color: z.ZodString;
146
146
  isExclusive: z.ZodBoolean;
147
- created_at: z.ZodDate;
148
- updated_at: z.ZodDate;
149
- }, "id" | "name" | "color" | "isExclusive">, {
150
- tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
147
+ tags: z.ZodArray<z.ZodObject<{
151
148
  id: z.ZodString;
152
149
  name: z.ZodString;
153
150
  groupId: z.ZodString;
@@ -157,22 +154,21 @@ declare const FindAllGroupedTagResponseDto_base: import("@anatine/zod-nestjs").Z
157
154
  PARTICIPANT: "PARTICIPANT";
158
155
  NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
159
156
  }>;
160
- created_at: z.ZodDate;
161
- updated_at: z.ZodDate;
162
- }, {
157
+ created_at: z.ZodString;
158
+ updated_at: z.ZodString;
163
159
  _count: z.ZodObject<{
164
160
  profiles: z.ZodNumber;
165
- }, "strip", z.ZodTypeAny, {
161
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
166
162
  profiles: number;
167
163
  }, {
168
164
  profiles: number;
169
165
  }>;
170
- }>, "strip", z.ZodTypeAny, {
166
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
171
167
  id: string;
172
168
  name: string;
173
169
  type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
174
- created_at: Date;
175
- updated_at: Date;
170
+ created_at: string;
171
+ updated_at: string;
176
172
  groupId: string;
177
173
  _count: {
178
174
  profiles: number;
@@ -181,8 +177,8 @@ declare const FindAllGroupedTagResponseDto_base: import("@anatine/zod-nestjs").Z
181
177
  id: string;
182
178
  name: string;
183
179
  type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
184
- created_at: Date;
185
- updated_at: Date;
180
+ created_at: string;
181
+ updated_at: string;
186
182
  groupId: string;
187
183
  _count: {
188
184
  profiles: number;
@@ -190,12 +186,12 @@ declare const FindAllGroupedTagResponseDto_base: import("@anatine/zod-nestjs").Z
190
186
  }>, "many">;
191
187
  _count: z.ZodObject<{
192
188
  tags: z.ZodNumber;
193
- }, "strip", z.ZodTypeAny, {
189
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
194
190
  tags: number;
195
191
  }, {
196
192
  tags: number;
197
193
  }>;
198
- }>, "strip", z.ZodTypeAny, {
194
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
199
195
  id: string;
200
196
  name: string;
201
197
  color: string;
@@ -204,8 +200,8 @@ declare const FindAllGroupedTagResponseDto_base: import("@anatine/zod-nestjs").Z
204
200
  id: string;
205
201
  name: string;
206
202
  type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
207
- created_at: Date;
208
- updated_at: Date;
203
+ created_at: string;
204
+ updated_at: string;
209
205
  groupId: string;
210
206
  _count: {
211
207
  profiles: number;
@@ -223,8 +219,8 @@ declare const FindAllGroupedTagResponseDto_base: import("@anatine/zod-nestjs").Z
223
219
  id: string;
224
220
  name: string;
225
221
  type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
226
- created_at: Date;
227
- updated_at: Date;
222
+ created_at: string;
223
+ updated_at: string;
228
224
  groupId: string;
229
225
  _count: {
230
226
  profiles: number;
@@ -234,7 +230,7 @@ declare const FindAllGroupedTagResponseDto_base: import("@anatine/zod-nestjs").Z
234
230
  tags: number;
235
231
  };
236
232
  }>, "many">;
237
- }, "strip", z.ZodTypeAny, {
233
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
238
234
  groups: {
239
235
  id: string;
240
236
  name: string;
@@ -244,8 +240,8 @@ declare const FindAllGroupedTagResponseDto_base: import("@anatine/zod-nestjs").Z
244
240
  id: string;
245
241
  name: string;
246
242
  type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
247
- created_at: Date;
248
- updated_at: Date;
243
+ created_at: string;
244
+ updated_at: string;
249
245
  groupId: string;
250
246
  _count: {
251
247
  profiles: number;
@@ -265,8 +261,8 @@ declare const FindAllGroupedTagResponseDto_base: import("@anatine/zod-nestjs").Z
265
261
  id: string;
266
262
  name: string;
267
263
  type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
268
- created_at: Date;
269
- updated_at: Date;
264
+ created_at: string;
265
+ updated_at: string;
270
266
  groupId: string;
271
267
  _count: {
272
268
  profiles: number;
@@ -277,6 +273,6 @@ declare const FindAllGroupedTagResponseDto_base: import("@anatine/zod-nestjs").Z
277
273
  };
278
274
  }[];
279
275
  }>>;
280
- export declare class FindAllGroupedTagResponseDto extends FindAllGroupedTagResponseDto_base {
276
+ export declare class FindAllWithTagsResponseDto extends FindAllWithTagsResponseDto_base {
281
277
  }
282
278
  export {};
@@ -3,12 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FindAllGroupedTagResponseDto = exports.findAllGroupedTagResponseSchema = void 0;
7
- const tag_dto_1 = require("./tag.dto");
8
- const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
9
- const zod_nestjs_1 = require("@anatine/zod-nestjs");
6
+ exports.FindAllWithTagsResponseDto = exports.findAllWithTagsResponseSchema = void 0;
7
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
+ const tag_group_dto_1 = require("./tag-group.dto");
9
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
10
10
  const zod_1 = __importDefault(require("zod"));
11
- exports.findAllGroupedTagResponseSchema = zod_1.default.object({
11
+ exports.findAllWithTagsResponseSchema = zod_1.default.object({
12
12
  groups: zod_1.default.array(tag_group_dto_1.tagGroupSchema
13
13
  .pick({
14
14
  id: true,
@@ -27,7 +27,7 @@ exports.findAllGroupedTagResponseSchema = zod_1.default.object({
27
27
  }),
28
28
  }))),
29
29
  });
30
- class FindAllGroupedTagResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.findAllGroupedTagResponseSchema) {
30
+ class FindAllWithTagsResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findAllWithTagsResponseSchema) {
31
31
  }
32
- exports.FindAllGroupedTagResponseDto = FindAllGroupedTagResponseDto;
33
- //# sourceMappingURL=find-all-grouped-tag.dto.js.map
32
+ exports.FindAllWithTagsResponseDto = FindAllWithTagsResponseDto;
33
+ //# sourceMappingURL=find-all-with-tags.dto.js.map
@@ -0,0 +1,135 @@
1
+ import z from 'zod';
2
+ export declare const findOneTagGroupResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ color: z.ZodString;
6
+ isExclusive: z.ZodBoolean;
7
+ created_at: z.ZodDate;
8
+ updated_at: z.ZodDate;
9
+ }, {
10
+ tags: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodString;
12
+ name: z.ZodString;
13
+ groupId: z.ZodString;
14
+ type: z.ZodNativeEnum<{
15
+ PROFILE: "PROFILE";
16
+ EVENT: "EVENT";
17
+ PARTICIPANT: "PARTICIPANT";
18
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
19
+ }>;
20
+ created_at: z.ZodDate;
21
+ updated_at: z.ZodDate;
22
+ }, "strip", z.ZodTypeAny, {
23
+ id: string;
24
+ name: string;
25
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
26
+ created_at: Date;
27
+ updated_at: Date;
28
+ groupId: string;
29
+ }, {
30
+ id: string;
31
+ name: string;
32
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
33
+ created_at: Date;
34
+ updated_at: Date;
35
+ groupId: string;
36
+ }>, "many">;
37
+ }>, "strip", z.ZodTypeAny, {
38
+ id: string;
39
+ name: string;
40
+ color: string;
41
+ created_at: Date;
42
+ updated_at: Date;
43
+ isExclusive: boolean;
44
+ tags: {
45
+ id: string;
46
+ name: string;
47
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
48
+ created_at: Date;
49
+ updated_at: Date;
50
+ groupId: string;
51
+ }[];
52
+ }, {
53
+ id: string;
54
+ name: string;
55
+ color: string;
56
+ created_at: Date;
57
+ updated_at: Date;
58
+ isExclusive: boolean;
59
+ tags: {
60
+ id: string;
61
+ name: string;
62
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
63
+ created_at: Date;
64
+ updated_at: Date;
65
+ groupId: string;
66
+ }[];
67
+ }>;
68
+ declare const FindOneTagGroupResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
69
+ id: z.ZodString;
70
+ name: z.ZodString;
71
+ color: z.ZodString;
72
+ isExclusive: z.ZodBoolean;
73
+ created_at: z.ZodString;
74
+ updated_at: z.ZodString;
75
+ tags: z.ZodArray<z.ZodObject<{
76
+ id: z.ZodString;
77
+ name: z.ZodString;
78
+ groupId: z.ZodString;
79
+ type: z.ZodNativeEnum<{
80
+ PROFILE: "PROFILE";
81
+ EVENT: "EVENT";
82
+ PARTICIPANT: "PARTICIPANT";
83
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
84
+ }>;
85
+ created_at: z.ZodString;
86
+ updated_at: z.ZodString;
87
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
88
+ id: string;
89
+ name: string;
90
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
91
+ created_at: string;
92
+ updated_at: string;
93
+ groupId: string;
94
+ }, {
95
+ id: string;
96
+ name: string;
97
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
98
+ created_at: string;
99
+ updated_at: string;
100
+ groupId: string;
101
+ }>, "many">;
102
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
103
+ id: string;
104
+ name: string;
105
+ color: string;
106
+ created_at: string;
107
+ updated_at: string;
108
+ isExclusive: boolean;
109
+ tags: {
110
+ id: string;
111
+ name: string;
112
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
113
+ created_at: string;
114
+ updated_at: string;
115
+ groupId: string;
116
+ }[];
117
+ }, {
118
+ id: string;
119
+ name: string;
120
+ color: string;
121
+ created_at: string;
122
+ updated_at: string;
123
+ isExclusive: boolean;
124
+ tags: {
125
+ id: string;
126
+ name: string;
127
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
128
+ created_at: string;
129
+ updated_at: string;
130
+ groupId: string;
131
+ }[];
132
+ }>>;
133
+ export declare class FindOneTagGroupResponseDto extends FindOneTagGroupResponseDto_base {
134
+ }
135
+ export {};
@@ -0,0 +1,17 @@
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.FindOneTagGroupResponseDto = exports.findOneTagGroupResponseSchema = void 0;
7
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
+ const tag_group_dto_1 = require("./tag-group.dto");
9
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
10
+ const zod_1 = __importDefault(require("zod"));
11
+ exports.findOneTagGroupResponseSchema = tag_group_dto_1.tagGroupSchema.merge(zod_1.default.object({
12
+ tags: zod_1.default.array(tag_dto_1.tagSchema),
13
+ }));
14
+ class FindOneTagGroupResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findOneTagGroupResponseSchema) {
15
+ }
16
+ exports.FindOneTagGroupResponseDto = FindOneTagGroupResponseDto;
17
+ //# sourceMappingURL=find-one-tag-group.dto.js.map
@@ -10,38 +10,38 @@ export declare const tagGroupSchema: z.ZodObject<{
10
10
  id: string;
11
11
  name: string;
12
12
  color: string;
13
- isExclusive: boolean;
14
13
  created_at: Date;
15
14
  updated_at: Date;
15
+ isExclusive: boolean;
16
16
  }, {
17
17
  id: string;
18
18
  name: string;
19
19
  color: string;
20
- isExclusive: boolean;
21
20
  created_at: Date;
22
21
  updated_at: Date;
22
+ isExclusive: boolean;
23
23
  }>;
24
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;
28
28
  isExclusive: z.ZodBoolean;
29
- created_at: z.ZodDate;
30
- updated_at: z.ZodDate;
31
- }, "strip", z.ZodTypeAny, {
29
+ created_at: z.ZodString;
30
+ updated_at: z.ZodString;
31
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
32
32
  id: string;
33
33
  name: string;
34
34
  color: string;
35
+ created_at: string;
36
+ updated_at: string;
35
37
  isExclusive: boolean;
36
- created_at: Date;
37
- updated_at: Date;
38
38
  }, {
39
39
  id: string;
40
40
  name: string;
41
41
  color: string;
42
+ created_at: string;
43
+ updated_at: string;
42
44
  isExclusive: boolean;
43
- created_at: Date;
44
- updated_at: Date;
45
45
  }>>;
46
46
  export declare class TagGroupDto extends TagGroupDto_base {
47
47
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TagGroupDto = exports.tagGroupSchema = void 0;
4
4
  const translate_1 = require("../../i18n/translate");
5
- const zod_nestjs_1 = require("@anatine/zod-nestjs");
5
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
6
  const zod_1 = require("zod");
7
7
  exports.tagGroupSchema = zod_1.z.object({
8
8
  id: zod_1.z.string().uuid({
@@ -13,7 +13,9 @@ exports.tagGroupSchema = zod_1.z.object({
13
13
  }),
14
14
  color: zod_1.z
15
15
  .string()
16
- .length(7)
16
+ .length(7, {
17
+ message: (0, translate_1.translate)('model.tagGroup.color.invalid'),
18
+ })
17
19
  .startsWith('#', {
18
20
  message: (0, translate_1.translate)('model.tagGroup.color.invalid'),
19
21
  })
@@ -22,7 +24,7 @@ exports.tagGroupSchema = zod_1.z.object({
22
24
  created_at: zod_1.z.date(),
23
25
  updated_at: zod_1.z.date(),
24
26
  });
25
- class TagGroupDto extends (0, zod_nestjs_1.createZodDto)(exports.tagGroupSchema) {
27
+ class TagGroupDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.tagGroupSchema) {
26
28
  }
27
29
  exports.TagGroupDto = TagGroupDto;
28
30
  //# sourceMappingURL=tag-group.dto.js.map