expo-backend-types 0.57.0-EXPO-377-Etapa-4-Paquete-02.5 → 0.57.0-EXPO-377-Etapa-4-Paquete-02.7
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.
- package/dist/src/dynamic-form/dto/create-dynamic-form.dto.d.ts +10 -0
- package/dist/src/dynamic-form/dto/dynamic-form.dto.d.ts +27 -0
- package/dist/src/dynamic-form/dto/dynamic-form.dto.js +8 -1
- package/dist/src/dynamic-form/dto/find-all-dynamic-form.dto.d.ts +14 -0
- package/dist/src/dynamic-form/dto/find-by-type-dynamic-form.dto.d.ts +266 -0
- package/dist/src/dynamic-form/dto/{find-by-name-dynamic-form.dto.js → find-by-type-dynamic-form.dto.js} +6 -11
- package/dist/src/dynamic-form/dto/update-dynamic-form.dto.d.ts +19 -0
- package/dist/src/dynamic-form/exports.d.ts +1 -0
- package/dist/src/dynamic-form/exports.js +1 -0
- package/dist/types/prisma-schema/edge.js +10 -3
- package/dist/types/prisma-schema/index-browser.js +7 -0
- package/dist/types/prisma-schema/index.d.ts +99 -1
- package/dist/types/prisma-schema/index.js +10 -3
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +9 -2
- package/dist/types/prisma-schema/wasm.js +7 -0
- package/dist/types/schema.d.ts +9 -22
- package/package.json +1 -1
- package/dist/src/dynamic-form/dto/find-by-name-dynamic-form.dto.d.ts +0 -515
@@ -2,6 +2,11 @@ import z from 'zod';
|
|
2
2
|
export declare const createDynamicFormSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
3
3
|
id: z.ZodString;
|
4
4
|
name: z.ZodString;
|
5
|
+
type: z.ZodNativeEnum<{
|
6
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
7
|
+
PRODUCTION: "PRODUCTION";
|
8
|
+
PARTICIPANT: "PARTICIPANT";
|
9
|
+
}>;
|
5
10
|
created_at: z.ZodDate;
|
6
11
|
updated_at: z.ZodDate;
|
7
12
|
}, "name">, {
|
@@ -127,6 +132,11 @@ export declare class CreateDynamicFormDto extends CreateDynamicFormDto_base {
|
|
127
132
|
export declare const createDynamicFormResponseSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
128
133
|
id: z.ZodString;
|
129
134
|
name: z.ZodString;
|
135
|
+
type: z.ZodNativeEnum<{
|
136
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
137
|
+
PRODUCTION: "PRODUCTION";
|
138
|
+
PARTICIPANT: "PARTICIPANT";
|
139
|
+
}>;
|
130
140
|
created_at: z.ZodDate;
|
131
141
|
updated_at: z.ZodDate;
|
132
142
|
}, "id" | "name">, {
|
@@ -2,16 +2,23 @@ import z from 'zod';
|
|
2
2
|
export declare const dynamicFormSchema: z.ZodObject<{
|
3
3
|
id: z.ZodString;
|
4
4
|
name: z.ZodString;
|
5
|
+
type: z.ZodNativeEnum<{
|
6
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
7
|
+
PRODUCTION: "PRODUCTION";
|
8
|
+
PARTICIPANT: "PARTICIPANT";
|
9
|
+
}>;
|
5
10
|
created_at: z.ZodDate;
|
6
11
|
updated_at: z.ZodDate;
|
7
12
|
}, "strip", z.ZodTypeAny, {
|
8
13
|
id: string;
|
9
14
|
name: string;
|
15
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
10
16
|
created_at: Date;
|
11
17
|
updated_at: Date;
|
12
18
|
}, {
|
13
19
|
id: string;
|
14
20
|
name: string;
|
21
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
15
22
|
created_at: Date;
|
16
23
|
updated_at: Date;
|
17
24
|
}>;
|
@@ -71,21 +78,41 @@ export declare const dynamicOptionSchema: z.ZodObject<{
|
|
71
78
|
declare const DynamicFormDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
72
79
|
id: z.ZodString;
|
73
80
|
name: z.ZodString;
|
81
|
+
type: z.ZodNativeEnum<{
|
82
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
83
|
+
PRODUCTION: "PRODUCTION";
|
84
|
+
PARTICIPANT: "PARTICIPANT";
|
85
|
+
}>;
|
74
86
|
created_at: z.ZodString;
|
75
87
|
updated_at: z.ZodString;
|
76
88
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
77
89
|
id: string;
|
78
90
|
name: string;
|
91
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
79
92
|
created_at: string;
|
80
93
|
updated_at: string;
|
81
94
|
}, {
|
82
95
|
id: string;
|
83
96
|
name: string;
|
97
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
84
98
|
created_at: string;
|
85
99
|
updated_at: string;
|
86
100
|
}>>;
|
87
101
|
export declare class DynamicFormDto extends DynamicFormDto_base {
|
88
102
|
}
|
103
|
+
declare const DynamicFormTypeDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
104
|
+
type: z.ZodNativeEnum<{
|
105
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
106
|
+
PRODUCTION: "PRODUCTION";
|
107
|
+
PARTICIPANT: "PARTICIPANT";
|
108
|
+
}>;
|
109
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
110
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
111
|
+
}, {
|
112
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
113
|
+
}>>;
|
114
|
+
export declare class DynamicFormTypeDto extends DynamicFormTypeDto_base {
|
115
|
+
}
|
89
116
|
declare const DynamicQuestionDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
90
117
|
id: z.ZodString;
|
91
118
|
formId: z.ZodString;
|
@@ -3,12 +3,13 @@ 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.DynamicOptionDto = exports.DynamicQuestionDto = exports.DynamicFormDto = exports.dynamicOptionSchema = exports.dynamicQuestionSchema = exports.dynamicFormSchema = void 0;
|
6
|
+
exports.DynamicOptionDto = exports.DynamicQuestionDto = exports.DynamicFormTypeDto = exports.DynamicFormDto = exports.dynamicOptionSchema = exports.dynamicQuestionSchema = exports.dynamicFormSchema = void 0;
|
7
7
|
const translate_1 = require("../../i18n/translate");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
|
10
10
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
11
11
|
const zod_1 = __importDefault(require("zod"));
|
12
|
+
const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
|
12
13
|
exports.dynamicFormSchema = zod_1.default.object({
|
13
14
|
id: zod_1.default.string().uuid({
|
14
15
|
message: (0, translate_1.translate)('model.dynamicForm.id.uuid'),
|
@@ -20,6 +21,7 @@ exports.dynamicFormSchema = zod_1.default.object({
|
|
20
21
|
.min(1, {
|
21
22
|
message: (0, translate_1.translate)('model.dynamicForm.name.min'),
|
22
23
|
}),
|
24
|
+
type: zod_1.default.nativeEnum(prisma_schema_1.DynamicFormType),
|
23
25
|
created_at: zod_1.default.date(),
|
24
26
|
updated_at: zod_1.default.date(),
|
25
27
|
});
|
@@ -61,6 +63,11 @@ exports.dynamicOptionSchema = zod_1.default.object({
|
|
61
63
|
class DynamicFormDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicFormSchema) {
|
62
64
|
}
|
63
65
|
exports.DynamicFormDto = DynamicFormDto;
|
66
|
+
class DynamicFormTypeDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(zod_1.default.object({
|
67
|
+
type: exports.dynamicFormSchema.shape.type,
|
68
|
+
})) {
|
69
|
+
}
|
70
|
+
exports.DynamicFormTypeDto = DynamicFormTypeDto;
|
64
71
|
class DynamicQuestionDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicQuestionSchema) {
|
65
72
|
}
|
66
73
|
exports.DynamicQuestionDto = DynamicQuestionDto;
|
@@ -2,6 +2,11 @@ import z from 'zod';
|
|
2
2
|
export declare const findAllDynamicFormsResponseSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
3
3
|
id: z.ZodString;
|
4
4
|
name: z.ZodString;
|
5
|
+
type: z.ZodNativeEnum<{
|
6
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
7
|
+
PRODUCTION: "PRODUCTION";
|
8
|
+
PARTICIPANT: "PARTICIPANT";
|
9
|
+
}>;
|
5
10
|
created_at: z.ZodDate;
|
6
11
|
updated_at: z.ZodDate;
|
7
12
|
}, {
|
@@ -178,6 +183,7 @@ export declare const findAllDynamicFormsResponseSchema: z.ZodArray<z.ZodObject<z
|
|
178
183
|
}>, "strip", z.ZodTypeAny, {
|
179
184
|
id: string;
|
180
185
|
name: string;
|
186
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
181
187
|
questions: {
|
182
188
|
tagGroup: {
|
183
189
|
id: string;
|
@@ -218,6 +224,7 @@ export declare const findAllDynamicFormsResponseSchema: z.ZodArray<z.ZodObject<z
|
|
218
224
|
}, {
|
219
225
|
id: string;
|
220
226
|
name: string;
|
227
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
221
228
|
questions: {
|
222
229
|
tagGroup: {
|
223
230
|
id: string;
|
@@ -259,6 +266,11 @@ export declare const findAllDynamicFormsResponseSchema: z.ZodArray<z.ZodObject<z
|
|
259
266
|
declare const FindAllDynamicFormsResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodArray<z.ZodObject<{
|
260
267
|
id: z.ZodString;
|
261
268
|
name: z.ZodString;
|
269
|
+
type: z.ZodNativeEnum<{
|
270
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
271
|
+
PRODUCTION: "PRODUCTION";
|
272
|
+
PARTICIPANT: "PARTICIPANT";
|
273
|
+
}>;
|
262
274
|
created_at: z.ZodString;
|
263
275
|
updated_at: z.ZodString;
|
264
276
|
questions: z.ZodArray<z.ZodObject<{
|
@@ -432,6 +444,7 @@ declare const FindAllDynamicFormsResponseDto_base: import("@anatine/zod-nestjs")
|
|
432
444
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
433
445
|
id: string;
|
434
446
|
name: string;
|
447
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
435
448
|
questions: {
|
436
449
|
tagGroup: {
|
437
450
|
id: string;
|
@@ -472,6 +485,7 @@ declare const FindAllDynamicFormsResponseDto_base: import("@anatine/zod-nestjs")
|
|
472
485
|
}, {
|
473
486
|
id: string;
|
474
487
|
name: string;
|
488
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
475
489
|
questions: {
|
476
490
|
tagGroup: {
|
477
491
|
id: string;
|
@@ -0,0 +1,266 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const findByTypeDynamicFormsResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
3
|
+
id: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
type: z.ZodNativeEnum<{
|
6
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
7
|
+
PRODUCTION: "PRODUCTION";
|
8
|
+
PARTICIPANT: "PARTICIPANT";
|
9
|
+
}>;
|
10
|
+
created_at: z.ZodDate;
|
11
|
+
updated_at: z.ZodDate;
|
12
|
+
}, {
|
13
|
+
questions: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
14
|
+
id: z.ZodString;
|
15
|
+
formId: z.ZodString;
|
16
|
+
text: z.ZodString;
|
17
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
18
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
19
|
+
multipleChoice: z.ZodDefault<z.ZodBoolean>;
|
20
|
+
tagGroupId: z.ZodString;
|
21
|
+
created_at: z.ZodDate;
|
22
|
+
updated_at: z.ZodDate;
|
23
|
+
}, {
|
24
|
+
options: z.ZodArray<z.ZodObject<{
|
25
|
+
id: z.ZodString;
|
26
|
+
text: z.ZodString;
|
27
|
+
tagId: z.ZodString;
|
28
|
+
questionId: z.ZodString;
|
29
|
+
created_at: z.ZodDate;
|
30
|
+
updated_at: z.ZodDate;
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
32
|
+
id: string;
|
33
|
+
text: string;
|
34
|
+
created_at: Date;
|
35
|
+
updated_at: Date;
|
36
|
+
tagId: string;
|
37
|
+
questionId: string;
|
38
|
+
}, {
|
39
|
+
id: string;
|
40
|
+
text: string;
|
41
|
+
created_at: Date;
|
42
|
+
updated_at: Date;
|
43
|
+
tagId: string;
|
44
|
+
questionId: string;
|
45
|
+
}>, "many">;
|
46
|
+
}>, "strip", z.ZodTypeAny, {
|
47
|
+
id: string;
|
48
|
+
required: boolean;
|
49
|
+
text: string;
|
50
|
+
options: {
|
51
|
+
id: string;
|
52
|
+
text: string;
|
53
|
+
created_at: Date;
|
54
|
+
updated_at: Date;
|
55
|
+
tagId: string;
|
56
|
+
questionId: string;
|
57
|
+
}[];
|
58
|
+
created_at: Date;
|
59
|
+
updated_at: Date;
|
60
|
+
formId: string;
|
61
|
+
disabled: boolean;
|
62
|
+
multipleChoice: boolean;
|
63
|
+
tagGroupId: string;
|
64
|
+
}, {
|
65
|
+
id: string;
|
66
|
+
text: string;
|
67
|
+
options: {
|
68
|
+
id: string;
|
69
|
+
text: string;
|
70
|
+
created_at: Date;
|
71
|
+
updated_at: Date;
|
72
|
+
tagId: string;
|
73
|
+
questionId: string;
|
74
|
+
}[];
|
75
|
+
created_at: Date;
|
76
|
+
updated_at: Date;
|
77
|
+
formId: string;
|
78
|
+
tagGroupId: string;
|
79
|
+
required?: boolean | undefined;
|
80
|
+
disabled?: boolean | undefined;
|
81
|
+
multipleChoice?: boolean | undefined;
|
82
|
+
}>, "many">;
|
83
|
+
}>, "strip", z.ZodTypeAny, {
|
84
|
+
id: string;
|
85
|
+
name: string;
|
86
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
87
|
+
questions: {
|
88
|
+
id: string;
|
89
|
+
required: boolean;
|
90
|
+
text: string;
|
91
|
+
options: {
|
92
|
+
id: string;
|
93
|
+
text: string;
|
94
|
+
created_at: Date;
|
95
|
+
updated_at: Date;
|
96
|
+
tagId: string;
|
97
|
+
questionId: string;
|
98
|
+
}[];
|
99
|
+
created_at: Date;
|
100
|
+
updated_at: Date;
|
101
|
+
formId: string;
|
102
|
+
disabled: boolean;
|
103
|
+
multipleChoice: boolean;
|
104
|
+
tagGroupId: string;
|
105
|
+
}[];
|
106
|
+
created_at: Date;
|
107
|
+
updated_at: Date;
|
108
|
+
}, {
|
109
|
+
id: string;
|
110
|
+
name: string;
|
111
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
112
|
+
questions: {
|
113
|
+
id: string;
|
114
|
+
text: string;
|
115
|
+
options: {
|
116
|
+
id: string;
|
117
|
+
text: string;
|
118
|
+
created_at: Date;
|
119
|
+
updated_at: Date;
|
120
|
+
tagId: string;
|
121
|
+
questionId: string;
|
122
|
+
}[];
|
123
|
+
created_at: Date;
|
124
|
+
updated_at: Date;
|
125
|
+
formId: string;
|
126
|
+
tagGroupId: string;
|
127
|
+
required?: boolean | undefined;
|
128
|
+
disabled?: boolean | undefined;
|
129
|
+
multipleChoice?: boolean | undefined;
|
130
|
+
}[];
|
131
|
+
created_at: Date;
|
132
|
+
updated_at: Date;
|
133
|
+
}>;
|
134
|
+
declare const FindByTypeDynamicFormsResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
135
|
+
id: z.ZodString;
|
136
|
+
name: z.ZodString;
|
137
|
+
type: z.ZodNativeEnum<{
|
138
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
139
|
+
PRODUCTION: "PRODUCTION";
|
140
|
+
PARTICIPANT: "PARTICIPANT";
|
141
|
+
}>;
|
142
|
+
created_at: z.ZodString;
|
143
|
+
updated_at: z.ZodString;
|
144
|
+
questions: z.ZodArray<z.ZodObject<{
|
145
|
+
id: z.ZodString;
|
146
|
+
formId: z.ZodString;
|
147
|
+
text: z.ZodString;
|
148
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
149
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
150
|
+
multipleChoice: z.ZodDefault<z.ZodBoolean>;
|
151
|
+
tagGroupId: z.ZodString;
|
152
|
+
created_at: z.ZodString;
|
153
|
+
updated_at: z.ZodString;
|
154
|
+
options: z.ZodArray<z.ZodObject<{
|
155
|
+
id: z.ZodString;
|
156
|
+
text: z.ZodString;
|
157
|
+
tagId: z.ZodString;
|
158
|
+
questionId: z.ZodString;
|
159
|
+
created_at: z.ZodString;
|
160
|
+
updated_at: z.ZodString;
|
161
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
162
|
+
id: string;
|
163
|
+
text: string;
|
164
|
+
created_at: string;
|
165
|
+
updated_at: string;
|
166
|
+
tagId: string;
|
167
|
+
questionId: string;
|
168
|
+
}, {
|
169
|
+
id: string;
|
170
|
+
text: string;
|
171
|
+
created_at: string;
|
172
|
+
updated_at: string;
|
173
|
+
tagId: string;
|
174
|
+
questionId: string;
|
175
|
+
}>, "many">;
|
176
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
177
|
+
id: string;
|
178
|
+
required: boolean;
|
179
|
+
text: string;
|
180
|
+
options: {
|
181
|
+
id: string;
|
182
|
+
text: string;
|
183
|
+
created_at: string;
|
184
|
+
updated_at: string;
|
185
|
+
tagId: string;
|
186
|
+
questionId: string;
|
187
|
+
}[];
|
188
|
+
created_at: string;
|
189
|
+
updated_at: string;
|
190
|
+
formId: string;
|
191
|
+
disabled: boolean;
|
192
|
+
multipleChoice: boolean;
|
193
|
+
tagGroupId: string;
|
194
|
+
}, {
|
195
|
+
id: string;
|
196
|
+
text: string;
|
197
|
+
options: {
|
198
|
+
id: string;
|
199
|
+
text: string;
|
200
|
+
created_at: string;
|
201
|
+
updated_at: string;
|
202
|
+
tagId: string;
|
203
|
+
questionId: string;
|
204
|
+
}[];
|
205
|
+
created_at: string;
|
206
|
+
updated_at: string;
|
207
|
+
formId: string;
|
208
|
+
tagGroupId: string;
|
209
|
+
required?: boolean | undefined;
|
210
|
+
disabled?: boolean | undefined;
|
211
|
+
multipleChoice?: boolean | undefined;
|
212
|
+
}>, "many">;
|
213
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
214
|
+
id: string;
|
215
|
+
name: string;
|
216
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
217
|
+
questions: {
|
218
|
+
id: string;
|
219
|
+
required: boolean;
|
220
|
+
text: string;
|
221
|
+
options: {
|
222
|
+
id: string;
|
223
|
+
text: string;
|
224
|
+
created_at: string;
|
225
|
+
updated_at: string;
|
226
|
+
tagId: string;
|
227
|
+
questionId: string;
|
228
|
+
}[];
|
229
|
+
created_at: string;
|
230
|
+
updated_at: string;
|
231
|
+
formId: string;
|
232
|
+
disabled: boolean;
|
233
|
+
multipleChoice: boolean;
|
234
|
+
tagGroupId: string;
|
235
|
+
}[];
|
236
|
+
created_at: string;
|
237
|
+
updated_at: string;
|
238
|
+
}, {
|
239
|
+
id: string;
|
240
|
+
name: string;
|
241
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
242
|
+
questions: {
|
243
|
+
id: string;
|
244
|
+
text: string;
|
245
|
+
options: {
|
246
|
+
id: string;
|
247
|
+
text: string;
|
248
|
+
created_at: string;
|
249
|
+
updated_at: string;
|
250
|
+
tagId: string;
|
251
|
+
questionId: string;
|
252
|
+
}[];
|
253
|
+
created_at: string;
|
254
|
+
updated_at: string;
|
255
|
+
formId: string;
|
256
|
+
tagGroupId: string;
|
257
|
+
required?: boolean | undefined;
|
258
|
+
disabled?: boolean | undefined;
|
259
|
+
multipleChoice?: boolean | undefined;
|
260
|
+
}[];
|
261
|
+
created_at: string;
|
262
|
+
updated_at: string;
|
263
|
+
}>>;
|
264
|
+
export declare class FindByTypeDynamicFormsResponseDto extends FindByTypeDynamicFormsResponseDto_base {
|
265
|
+
}
|
266
|
+
export {};
|
@@ -3,21 +3,16 @@ 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.
|
6
|
+
exports.FindByTypeDynamicFormsResponseDto = exports.findByTypeDynamicFormsResponseSchema = void 0;
|
7
7
|
const dynamic_form_dto_1 = require("./dynamic-form.dto");
|
8
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
9
|
const zod_1 = __importDefault(require("zod"));
|
12
|
-
exports.
|
10
|
+
exports.findByTypeDynamicFormsResponseSchema = dynamic_form_dto_1.dynamicFormSchema.extend({
|
13
11
|
questions: zod_1.default.array(dynamic_form_dto_1.dynamicQuestionSchema.extend({
|
14
|
-
|
15
|
-
options: zod_1.default.array(dynamic_form_dto_1.dynamicOptionSchema.extend({
|
16
|
-
tag: tag_dto_1.tagSchema,
|
17
|
-
})),
|
12
|
+
options: zod_1.default.array(dynamic_form_dto_1.dynamicOptionSchema),
|
18
13
|
})),
|
19
14
|
});
|
20
|
-
class
|
15
|
+
class FindByTypeDynamicFormsResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByTypeDynamicFormsResponseSchema) {
|
21
16
|
}
|
22
|
-
exports.
|
23
|
-
//# sourceMappingURL=find-by-
|
17
|
+
exports.FindByTypeDynamicFormsResponseDto = FindByTypeDynamicFormsResponseDto;
|
18
|
+
//# sourceMappingURL=find-by-type-dynamic-form.dto.js.map
|
@@ -2,6 +2,11 @@ import { z } from 'zod';
|
|
2
2
|
export declare const updateDynamicFormSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
3
3
|
id: z.ZodString;
|
4
4
|
name: z.ZodString;
|
5
|
+
type: z.ZodNativeEnum<{
|
6
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
7
|
+
PRODUCTION: "PRODUCTION";
|
8
|
+
PARTICIPANT: "PARTICIPANT";
|
9
|
+
}>;
|
5
10
|
created_at: z.ZodDate;
|
6
11
|
updated_at: z.ZodDate;
|
7
12
|
}, "name">, {
|
@@ -152,6 +157,11 @@ export declare class UpdateDynamicFormDto extends UpdateDynamicFormDto_base {
|
|
152
157
|
export declare const updateDynamicFormResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
153
158
|
id: z.ZodString;
|
154
159
|
name: z.ZodString;
|
160
|
+
type: z.ZodNativeEnum<{
|
161
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
162
|
+
PRODUCTION: "PRODUCTION";
|
163
|
+
PARTICIPANT: "PARTICIPANT";
|
164
|
+
}>;
|
155
165
|
created_at: z.ZodDate;
|
156
166
|
updated_at: z.ZodDate;
|
157
167
|
}, {
|
@@ -228,6 +238,7 @@ export declare const updateDynamicFormResponseSchema: z.ZodObject<z.objectUtil.e
|
|
228
238
|
}>, "strip", z.ZodTypeAny, {
|
229
239
|
id: string;
|
230
240
|
name: string;
|
241
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
231
242
|
questions: {
|
232
243
|
id: string;
|
233
244
|
required: boolean;
|
@@ -252,6 +263,7 @@ export declare const updateDynamicFormResponseSchema: z.ZodObject<z.objectUtil.e
|
|
252
263
|
}, {
|
253
264
|
id: string;
|
254
265
|
name: string;
|
266
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
255
267
|
questions: {
|
256
268
|
id: string;
|
257
269
|
text: string;
|
@@ -277,6 +289,11 @@ export declare const updateDynamicFormResponseSchema: z.ZodObject<z.objectUtil.e
|
|
277
289
|
declare const UpdateDynamicFormResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
278
290
|
id: z.ZodString;
|
279
291
|
name: z.ZodString;
|
292
|
+
type: z.ZodNativeEnum<{
|
293
|
+
PERSONAL_INFO: "PERSONAL_INFO";
|
294
|
+
PRODUCTION: "PRODUCTION";
|
295
|
+
PARTICIPANT: "PARTICIPANT";
|
296
|
+
}>;
|
280
297
|
created_at: z.ZodString;
|
281
298
|
updated_at: z.ZodString;
|
282
299
|
questions: z.ZodArray<z.ZodObject<{
|
@@ -351,6 +368,7 @@ declare const UpdateDynamicFormResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
351
368
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
352
369
|
id: string;
|
353
370
|
name: string;
|
371
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
354
372
|
questions: {
|
355
373
|
id: string;
|
356
374
|
required: boolean;
|
@@ -375,6 +393,7 @@ declare const UpdateDynamicFormResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
375
393
|
}, {
|
376
394
|
id: string;
|
377
395
|
name: string;
|
396
|
+
type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
|
378
397
|
questions: {
|
379
398
|
id: string;
|
380
399
|
text: string;
|
@@ -2,5 +2,6 @@ export * from './dto/create-dynamic-form.dto';
|
|
2
2
|
export * from './dto/delete-dynamic-form.dto';
|
3
3
|
export * from './dto/dynamic-form.dto';
|
4
4
|
export * from './dto/find-all-dynamic-form.dto';
|
5
|
+
export * from './dto/find-by-type-dynamic-form.dto';
|
5
6
|
export * from './dto/submit-dynamic-form.dto';
|
6
7
|
export * from './dto/update-dynamic-form.dto';
|
@@ -18,6 +18,7 @@ __exportStar(require("./dto/create-dynamic-form.dto"), exports);
|
|
18
18
|
__exportStar(require("./dto/delete-dynamic-form.dto"), exports);
|
19
19
|
__exportStar(require("./dto/dynamic-form.dto"), exports);
|
20
20
|
__exportStar(require("./dto/find-all-dynamic-form.dto"), exports);
|
21
|
+
__exportStar(require("./dto/find-by-type-dynamic-form.dto"), exports);
|
21
22
|
__exportStar(require("./dto/submit-dynamic-form.dto"), exports);
|
22
23
|
__exportStar(require("./dto/update-dynamic-form.dto"), exports);
|
23
24
|
//# sourceMappingURL=exports.js.map
|