expo-backend-types 0.56.0-EXPO-370-Etapa-4-Paquete-01.14 → 0.56.0-EXPO-379-EB-Rutas-necesarias.4

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.
Files changed (51) hide show
  1. package/dist/src/account/dto/get-global-filter.dto.d.ts +8 -10
  2. package/dist/src/account/dto/get-me.dto.d.ts +16 -20
  3. package/dist/src/account/dto/update-global-filter.dto.d.ts +8 -10
  4. package/dist/src/event/dto/get-all-event.dto.d.ts +28 -32
  5. package/dist/src/event/dto/get-by-id-event.dto.d.ts +40 -50
  6. package/dist/src/event/dto/update-event.dto.d.ts +8 -10
  7. package/dist/src/exports.d.ts +0 -1
  8. package/dist/src/exports.js +0 -1
  9. package/dist/src/i18n/es.d.ts +0 -56
  10. package/dist/src/i18n/es.js +0 -50
  11. package/dist/src/i18n/es.js.map +1 -1
  12. package/dist/src/production/dto/create-role.dto.d.ts +4 -7
  13. package/dist/src/profile/dto/find-all-profile.dto.d.ts +12 -14
  14. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +20 -24
  15. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +8 -10
  16. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +141 -2
  17. package/dist/src/profile/dto/find-by-phone-number.dto.js +21 -1
  18. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +12 -14
  19. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +12 -14
  20. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +12 -14
  21. package/dist/src/tag/dto/create-tag.dto.d.ts +8 -13
  22. package/dist/src/tag/dto/delete-tag.dto.d.ts +4 -6
  23. package/dist/src/tag/dto/find-all-tag.dto.d.ts +8 -10
  24. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +8 -10
  25. package/dist/src/tag/dto/find-one-tag.dto.d.ts +4 -6
  26. package/dist/src/tag/dto/tag.dto.d.ts +4 -6
  27. package/dist/src/tag/dto/update-tag.dto.d.ts +4 -7
  28. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +12 -14
  29. package/dist/src/tag-group/dto/find-all-with-tags.dto.d.ts +12 -14
  30. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +8 -10
  31. package/dist/types/prisma-schema/edge.js +5 -37
  32. package/dist/types/prisma-schema/index-browser.js +2 -34
  33. package/dist/types/prisma-schema/index.d.ts +128 -5201
  34. package/dist/types/prisma-schema/index.js +5 -37
  35. package/dist/types/prisma-schema/package.json +1 -1
  36. package/dist/types/prisma-schema/schema.prisma +2 -55
  37. package/dist/types/prisma-schema/wasm.js +2 -34
  38. package/dist/types/schema.d.ts +106 -322
  39. package/package.json +2 -2
  40. package/dist/src/dynamic-form/dto/create-dynamic-form.dto.d.ts +0 -301
  41. package/dist/src/dynamic-form/dto/create-dynamic-form.dto.js +0 -61
  42. package/dist/src/dynamic-form/dto/delete-dynamic-form.dto.d.ts +0 -18
  43. package/dist/src/dynamic-form/dto/delete-dynamic-form.dto.js +0 -12
  44. package/dist/src/dynamic-form/dto/dynamic-form.dto.d.ts +0 -146
  45. package/dist/src/dynamic-form/dto/dynamic-form.dto.js +0 -70
  46. package/dist/src/dynamic-form/dto/find-all-dynamic-form.dto.d.ts +0 -515
  47. package/dist/src/dynamic-form/dto/find-all-dynamic-form.dto.js +0 -23
  48. package/dist/src/dynamic-form/dto/update-dynamic-form.dto.d.ts +0 -402
  49. package/dist/src/dynamic-form/dto/update-dynamic-form.dto.js +0 -45
  50. package/dist/src/dynamic-form/exports.d.ts +0 -5
  51. package/dist/src/dynamic-form/exports.js +0 -22
@@ -1,301 +0,0 @@
1
- import z from 'zod';
2
- export declare const createDynamicFormSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
3
- id: z.ZodString;
4
- name: z.ZodString;
5
- created_at: z.ZodDate;
6
- updated_at: z.ZodDate;
7
- }, "name">, {
8
- questions: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
9
- id: z.ZodString;
10
- formId: z.ZodString;
11
- text: z.ZodString;
12
- disabled: z.ZodDefault<z.ZodBoolean>;
13
- required: z.ZodDefault<z.ZodBoolean>;
14
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
15
- tagGroupId: z.ZodString;
16
- created_at: z.ZodDate;
17
- updated_at: z.ZodDate;
18
- }, "required" | "text" | "disabled" | "multipleChoice">, {
19
- options: z.ZodArray<z.ZodObject<Pick<{
20
- id: z.ZodString;
21
- text: z.ZodString;
22
- tagId: z.ZodString;
23
- questionId: z.ZodString;
24
- created_at: z.ZodDate;
25
- updated_at: z.ZodDate;
26
- }, "text">, "strip", z.ZodTypeAny, {
27
- text: string;
28
- }, {
29
- text: string;
30
- }>, "many">;
31
- }>, "strip", z.ZodTypeAny, {
32
- required: boolean;
33
- text: string;
34
- options: {
35
- text: string;
36
- }[];
37
- disabled: boolean;
38
- multipleChoice: boolean;
39
- }, {
40
- text: string;
41
- options: {
42
- text: string;
43
- }[];
44
- required?: boolean | undefined;
45
- disabled?: boolean | undefined;
46
- multipleChoice?: boolean | undefined;
47
- }>, "many">;
48
- }>, "strict", z.ZodTypeAny, {
49
- name: string;
50
- questions: {
51
- required: boolean;
52
- text: string;
53
- options: {
54
- text: string;
55
- }[];
56
- disabled: boolean;
57
- multipleChoice: boolean;
58
- }[];
59
- }, {
60
- name: string;
61
- questions: {
62
- text: string;
63
- options: {
64
- text: string;
65
- }[];
66
- required?: boolean | undefined;
67
- disabled?: boolean | undefined;
68
- multipleChoice?: boolean | undefined;
69
- }[];
70
- }>;
71
- declare const CreateDynamicFormDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
72
- name: z.ZodString;
73
- questions: z.ZodArray<z.ZodObject<{
74
- required: z.ZodDefault<z.ZodBoolean>;
75
- text: z.ZodString;
76
- disabled: z.ZodDefault<z.ZodBoolean>;
77
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
78
- options: z.ZodArray<z.ZodObject<{
79
- text: z.ZodString;
80
- }, z.UnknownKeysParam, z.ZodTypeAny, {
81
- text: string;
82
- }, {
83
- text: string;
84
- }>, "many">;
85
- }, z.UnknownKeysParam, z.ZodTypeAny, {
86
- required: boolean;
87
- text: string;
88
- options: {
89
- text: string;
90
- }[];
91
- disabled: boolean;
92
- multipleChoice: boolean;
93
- }, {
94
- text: string;
95
- options: {
96
- text: string;
97
- }[];
98
- required?: boolean | undefined;
99
- disabled?: boolean | undefined;
100
- multipleChoice?: boolean | undefined;
101
- }>, "many">;
102
- }, z.UnknownKeysParam, z.ZodTypeAny, {
103
- name: string;
104
- questions: {
105
- required: boolean;
106
- text: string;
107
- options: {
108
- text: string;
109
- }[];
110
- disabled: boolean;
111
- multipleChoice: boolean;
112
- }[];
113
- }, {
114
- name: string;
115
- questions: {
116
- text: string;
117
- options: {
118
- text: string;
119
- }[];
120
- required?: boolean | undefined;
121
- disabled?: boolean | undefined;
122
- multipleChoice?: boolean | undefined;
123
- }[];
124
- }>>;
125
- export declare class CreateDynamicFormDto extends CreateDynamicFormDto_base {
126
- }
127
- export declare const createDynamicFormResponseSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
128
- id: z.ZodString;
129
- name: z.ZodString;
130
- created_at: z.ZodDate;
131
- updated_at: z.ZodDate;
132
- }, "id" | "name">, {
133
- questions: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
134
- id: z.ZodString;
135
- formId: z.ZodString;
136
- text: z.ZodString;
137
- disabled: z.ZodDefault<z.ZodBoolean>;
138
- required: z.ZodDefault<z.ZodBoolean>;
139
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
140
- tagGroupId: z.ZodString;
141
- created_at: z.ZodDate;
142
- updated_at: z.ZodDate;
143
- }, "id" | "required" | "text" | "disabled" | "multipleChoice" | "tagGroupId">, {
144
- options: z.ZodArray<z.ZodObject<Pick<{
145
- id: z.ZodString;
146
- text: z.ZodString;
147
- tagId: z.ZodString;
148
- questionId: z.ZodString;
149
- created_at: z.ZodDate;
150
- updated_at: z.ZodDate;
151
- }, "id" | "text" | "tagId">, "strip", z.ZodTypeAny, {
152
- id: string;
153
- text: string;
154
- tagId: string;
155
- }, {
156
- id: string;
157
- text: string;
158
- tagId: string;
159
- }>, "many">;
160
- }>, "strip", z.ZodTypeAny, {
161
- id: string;
162
- required: boolean;
163
- text: string;
164
- options: {
165
- id: string;
166
- text: string;
167
- tagId: string;
168
- }[];
169
- disabled: boolean;
170
- multipleChoice: boolean;
171
- tagGroupId: string;
172
- }, {
173
- id: string;
174
- text: string;
175
- options: {
176
- id: string;
177
- text: string;
178
- tagId: string;
179
- }[];
180
- tagGroupId: string;
181
- required?: boolean | undefined;
182
- disabled?: boolean | undefined;
183
- multipleChoice?: boolean | undefined;
184
- }>, "many">;
185
- }>, "strip", z.ZodTypeAny, {
186
- id: string;
187
- name: string;
188
- questions: {
189
- id: string;
190
- required: boolean;
191
- text: string;
192
- options: {
193
- id: string;
194
- text: string;
195
- tagId: string;
196
- }[];
197
- disabled: boolean;
198
- multipleChoice: boolean;
199
- tagGroupId: string;
200
- }[];
201
- }, {
202
- id: string;
203
- name: string;
204
- questions: {
205
- id: string;
206
- text: string;
207
- options: {
208
- id: string;
209
- text: string;
210
- tagId: string;
211
- }[];
212
- tagGroupId: string;
213
- required?: boolean | undefined;
214
- disabled?: boolean | undefined;
215
- multipleChoice?: boolean | undefined;
216
- }[];
217
- }>;
218
- declare const CreateDynamicFormResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
219
- id: z.ZodString;
220
- name: z.ZodString;
221
- questions: z.ZodArray<z.ZodObject<{
222
- id: z.ZodString;
223
- required: z.ZodDefault<z.ZodBoolean>;
224
- text: z.ZodString;
225
- disabled: z.ZodDefault<z.ZodBoolean>;
226
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
227
- tagGroupId: z.ZodString;
228
- options: z.ZodArray<z.ZodObject<{
229
- id: z.ZodString;
230
- text: z.ZodString;
231
- tagId: z.ZodString;
232
- }, z.UnknownKeysParam, z.ZodTypeAny, {
233
- id: string;
234
- text: string;
235
- tagId: string;
236
- }, {
237
- id: string;
238
- text: string;
239
- tagId: string;
240
- }>, "many">;
241
- }, z.UnknownKeysParam, z.ZodTypeAny, {
242
- id: string;
243
- required: boolean;
244
- text: string;
245
- options: {
246
- id: string;
247
- text: string;
248
- tagId: string;
249
- }[];
250
- disabled: boolean;
251
- multipleChoice: boolean;
252
- tagGroupId: string;
253
- }, {
254
- id: string;
255
- text: string;
256
- options: {
257
- id: string;
258
- text: string;
259
- tagId: string;
260
- }[];
261
- tagGroupId: string;
262
- required?: boolean | undefined;
263
- disabled?: boolean | undefined;
264
- multipleChoice?: boolean | undefined;
265
- }>, "many">;
266
- }, z.UnknownKeysParam, z.ZodTypeAny, {
267
- id: string;
268
- name: string;
269
- questions: {
270
- id: string;
271
- required: boolean;
272
- text: string;
273
- options: {
274
- id: string;
275
- text: string;
276
- tagId: string;
277
- }[];
278
- disabled: boolean;
279
- multipleChoice: boolean;
280
- tagGroupId: string;
281
- }[];
282
- }, {
283
- id: string;
284
- name: string;
285
- questions: {
286
- id: string;
287
- text: string;
288
- options: {
289
- id: string;
290
- text: string;
291
- tagId: string;
292
- }[];
293
- tagGroupId: string;
294
- required?: boolean | undefined;
295
- disabled?: boolean | undefined;
296
- multipleChoice?: boolean | undefined;
297
- }[];
298
- }>>;
299
- export declare class CreateDynamicFormResponseDto extends CreateDynamicFormResponseDto_base {
300
- }
301
- export {};
@@ -1,61 +0,0 @@
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.CreateDynamicFormResponseDto = exports.createDynamicFormResponseSchema = exports.CreateDynamicFormDto = exports.createDynamicFormSchema = void 0;
7
- const dynamic_form_dto_1 = require("./dynamic-form.dto");
8
- const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
- const zod_1 = __importDefault(require("zod"));
10
- exports.createDynamicFormSchema = dynamic_form_dto_1.dynamicFormSchema
11
- .pick({
12
- name: true,
13
- })
14
- .merge(zod_1.default.object({
15
- questions: dynamic_form_dto_1.dynamicQuestionSchema
16
- .pick({
17
- text: true,
18
- disabled: true,
19
- required: true,
20
- multipleChoice: true,
21
- })
22
- .merge(zod_1.default.object({
23
- options: dynamic_form_dto_1.dynamicOptionSchema
24
- .pick({
25
- text: true,
26
- })
27
- .array(),
28
- }))
29
- .array(),
30
- }))
31
- .strict();
32
- class CreateDynamicFormDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createDynamicFormSchema) {
33
- }
34
- exports.CreateDynamicFormDto = CreateDynamicFormDto;
35
- exports.createDynamicFormResponseSchema = dynamic_form_dto_1.dynamicFormSchema
36
- .pick({
37
- id: true,
38
- name: true,
39
- })
40
- .extend({
41
- questions: zod_1.default.array(dynamic_form_dto_1.dynamicQuestionSchema
42
- .pick({
43
- id: true,
44
- text: true,
45
- disabled: true,
46
- required: true,
47
- multipleChoice: true,
48
- tagGroupId: true,
49
- })
50
- .extend({
51
- options: zod_1.default.array(dynamic_form_dto_1.dynamicOptionSchema.pick({
52
- text: true,
53
- tagId: true,
54
- id: true,
55
- })),
56
- })),
57
- });
58
- class CreateDynamicFormResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createDynamicFormResponseSchema) {
59
- }
60
- exports.CreateDynamicFormResponseDto = CreateDynamicFormResponseDto;
61
- //# sourceMappingURL=create-dynamic-form.dto.js.map
@@ -1,18 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const deleteDynamicFormSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- id: string;
6
- }, {
7
- id: string;
8
- }>;
9
- declare const DeleteDynamicFormDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
10
- id: z.ZodString;
11
- }, z.UnknownKeysParam, z.ZodTypeAny, {
12
- id: string;
13
- }, {
14
- id: string;
15
- }>>;
16
- export declare class DeleteDynamicFormDto extends DeleteDynamicFormDto_base {
17
- }
18
- export {};
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteDynamicFormDto = exports.deleteDynamicFormSchema = void 0;
4
- const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
5
- const zod_1 = require("zod");
6
- exports.deleteDynamicFormSchema = zod_1.z.object({
7
- id: zod_1.z.string(),
8
- });
9
- class DeleteDynamicFormDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteDynamicFormSchema) {
10
- }
11
- exports.DeleteDynamicFormDto = DeleteDynamicFormDto;
12
- //# sourceMappingURL=delete-dynamic-form.dto.js.map
@@ -1,146 +0,0 @@
1
- import z from 'zod';
2
- export declare const dynamicFormSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- name: z.ZodString;
5
- created_at: z.ZodDate;
6
- updated_at: z.ZodDate;
7
- }, "strip", z.ZodTypeAny, {
8
- id: string;
9
- name: string;
10
- created_at: Date;
11
- updated_at: Date;
12
- }, {
13
- id: string;
14
- name: string;
15
- created_at: Date;
16
- updated_at: Date;
17
- }>;
18
- export declare const dynamicQuestionSchema: z.ZodObject<{
19
- id: z.ZodString;
20
- formId: z.ZodString;
21
- text: z.ZodString;
22
- disabled: z.ZodDefault<z.ZodBoolean>;
23
- required: z.ZodDefault<z.ZodBoolean>;
24
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
25
- tagGroupId: z.ZodString;
26
- created_at: z.ZodDate;
27
- updated_at: z.ZodDate;
28
- }, "strip", z.ZodTypeAny, {
29
- id: string;
30
- required: boolean;
31
- text: string;
32
- created_at: Date;
33
- updated_at: Date;
34
- formId: string;
35
- disabled: boolean;
36
- multipleChoice: boolean;
37
- tagGroupId: string;
38
- }, {
39
- id: string;
40
- text: string;
41
- created_at: Date;
42
- updated_at: Date;
43
- formId: string;
44
- tagGroupId: string;
45
- required?: boolean | undefined;
46
- disabled?: boolean | undefined;
47
- multipleChoice?: boolean | undefined;
48
- }>;
49
- export declare const dynamicOptionSchema: z.ZodObject<{
50
- id: z.ZodString;
51
- text: z.ZodString;
52
- tagId: z.ZodString;
53
- questionId: z.ZodString;
54
- created_at: z.ZodDate;
55
- updated_at: z.ZodDate;
56
- }, "strip", z.ZodTypeAny, {
57
- id: string;
58
- text: string;
59
- created_at: Date;
60
- updated_at: Date;
61
- tagId: string;
62
- questionId: string;
63
- }, {
64
- id: string;
65
- text: string;
66
- created_at: Date;
67
- updated_at: Date;
68
- tagId: string;
69
- questionId: string;
70
- }>;
71
- declare const DynamicFormDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
72
- id: z.ZodString;
73
- name: z.ZodString;
74
- created_at: z.ZodString;
75
- updated_at: z.ZodString;
76
- }, z.UnknownKeysParam, z.ZodTypeAny, {
77
- id: string;
78
- name: string;
79
- created_at: string;
80
- updated_at: string;
81
- }, {
82
- id: string;
83
- name: string;
84
- created_at: string;
85
- updated_at: string;
86
- }>>;
87
- export declare class DynamicFormDto extends DynamicFormDto_base {
88
- }
89
- declare const DynamicQuestionDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
90
- id: z.ZodString;
91
- formId: z.ZodString;
92
- text: z.ZodString;
93
- disabled: z.ZodDefault<z.ZodBoolean>;
94
- required: z.ZodDefault<z.ZodBoolean>;
95
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
96
- tagGroupId: z.ZodString;
97
- created_at: z.ZodString;
98
- updated_at: z.ZodString;
99
- }, z.UnknownKeysParam, z.ZodTypeAny, {
100
- id: string;
101
- required: boolean;
102
- text: string;
103
- created_at: string;
104
- updated_at: string;
105
- formId: string;
106
- disabled: boolean;
107
- multipleChoice: boolean;
108
- tagGroupId: string;
109
- }, {
110
- id: string;
111
- text: string;
112
- created_at: string;
113
- updated_at: string;
114
- formId: string;
115
- tagGroupId: string;
116
- required?: boolean | undefined;
117
- disabled?: boolean | undefined;
118
- multipleChoice?: boolean | undefined;
119
- }>>;
120
- export declare class DynamicQuestionDto extends DynamicQuestionDto_base {
121
- }
122
- declare const DynamicOptionDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
123
- id: z.ZodString;
124
- text: z.ZodString;
125
- tagId: z.ZodString;
126
- questionId: z.ZodString;
127
- created_at: z.ZodString;
128
- updated_at: z.ZodString;
129
- }, z.UnknownKeysParam, z.ZodTypeAny, {
130
- id: string;
131
- text: string;
132
- created_at: string;
133
- updated_at: string;
134
- tagId: string;
135
- questionId: string;
136
- }, {
137
- id: string;
138
- text: string;
139
- created_at: string;
140
- updated_at: string;
141
- tagId: string;
142
- questionId: string;
143
- }>>;
144
- export declare class DynamicOptionDto extends DynamicOptionDto_base {
145
- }
146
- export {};
@@ -1,70 +0,0 @@
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.DynamicOptionDto = exports.DynamicQuestionDto = exports.DynamicFormDto = exports.dynamicOptionSchema = exports.dynamicQuestionSchema = exports.dynamicFormSchema = void 0;
7
- const translate_1 = require("../../i18n/translate");
8
- const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
- const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
10
- const tag_dto_1 = require("../../tag/dto/tag.dto");
11
- const zod_1 = __importDefault(require("zod"));
12
- exports.dynamicFormSchema = zod_1.default.object({
13
- id: zod_1.default.string().uuid({
14
- message: (0, translate_1.translate)('model.dynamicForm.id.uuid'),
15
- }),
16
- name: zod_1.default
17
- .string({
18
- required_error: (0, translate_1.translate)('model.dynamicForm.name.required'),
19
- })
20
- .min(1, {
21
- message: (0, translate_1.translate)('model.dynamicForm.name.min'),
22
- }),
23
- created_at: zod_1.default.date(),
24
- updated_at: zod_1.default.date(),
25
- });
26
- exports.dynamicQuestionSchema = zod_1.default.object({
27
- id: zod_1.default.string().uuid({
28
- message: (0, translate_1.translate)('model.dynamicQuestion.id.uuid'),
29
- }),
30
- formId: exports.dynamicFormSchema.shape.id,
31
- text: zod_1.default
32
- .string({
33
- required_error: (0, translate_1.translate)('model.dynamicQuestion.text.required'),
34
- })
35
- .min(1, {
36
- message: (0, translate_1.translate)('model.dynamicQuestion.text.min'),
37
- }),
38
- disabled: zod_1.default.boolean().default(false),
39
- required: zod_1.default.boolean().default(true),
40
- multipleChoice: zod_1.default.boolean().default(false),
41
- tagGroupId: tag_group_dto_1.tagGroupSchema.shape.id,
42
- created_at: zod_1.default.date(),
43
- updated_at: zod_1.default.date(),
44
- });
45
- exports.dynamicOptionSchema = zod_1.default.object({
46
- id: zod_1.default.string().uuid({
47
- message: (0, translate_1.translate)('model.dynamicOption.id.uuid'),
48
- }),
49
- text: zod_1.default
50
- .string({
51
- required_error: (0, translate_1.translate)('model.dynamicOption.text.required'),
52
- })
53
- .min(1, {
54
- message: (0, translate_1.translate)('model.dynamicOption.text.min'),
55
- }),
56
- tagId: tag_dto_1.tagSchema.shape.id,
57
- questionId: exports.dynamicQuestionSchema.shape.id,
58
- created_at: zod_1.default.date(),
59
- updated_at: zod_1.default.date(),
60
- });
61
- class DynamicFormDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicFormSchema) {
62
- }
63
- exports.DynamicFormDto = DynamicFormDto;
64
- class DynamicQuestionDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicQuestionSchema) {
65
- }
66
- exports.DynamicQuestionDto = DynamicQuestionDto;
67
- class DynamicOptionDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicOptionSchema) {
68
- }
69
- exports.DynamicOptionDto = DynamicOptionDto;
70
- //# sourceMappingURL=dynamic-form.dto.js.map