expo-backend-types 0.56.0-EXPO-373-EB-CRUD-formulario-dinamico.5 → 0.56.0-EXPO-373-EB-CRUD-formulario-dinamico.6
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 +24 -2
- package/dist/src/dynamic-form/dto/create-dynamic-form.dto.js +2 -0
- package/dist/src/dynamic-form/dto/update-dynamic-form.dto.d.ts +242 -8
- package/dist/src/dynamic-form/dto/update-dynamic-form.dto.js +6 -2
- package/dist/types/schema.d.ts +2 -0
- package/package.json +1 -1
@@ -140,7 +140,7 @@ export declare const createDynamicFormResponseSchema: z.ZodObject<z.objectUtil.e
|
|
140
140
|
tagGroupId: z.ZodString;
|
141
141
|
created_at: z.ZodDate;
|
142
142
|
updated_at: z.ZodDate;
|
143
|
-
}, "required" | "text" | "disabled" | "multipleChoice" | "tagGroupId">, {
|
143
|
+
}, "id" | "required" | "text" | "disabled" | "multipleChoice" | "tagGroupId">, {
|
144
144
|
options: z.ZodArray<z.ZodObject<Pick<{
|
145
145
|
id: z.ZodString;
|
146
146
|
text: z.ZodString;
|
@@ -148,17 +148,21 @@ export declare const createDynamicFormResponseSchema: z.ZodObject<z.objectUtil.e
|
|
148
148
|
questionId: z.ZodString;
|
149
149
|
created_at: z.ZodDate;
|
150
150
|
updated_at: z.ZodDate;
|
151
|
-
}, "text" | "tagId">, "strip", z.ZodTypeAny, {
|
151
|
+
}, "id" | "text" | "tagId">, "strip", z.ZodTypeAny, {
|
152
|
+
id: string;
|
152
153
|
text: string;
|
153
154
|
tagId: string;
|
154
155
|
}, {
|
156
|
+
id: string;
|
155
157
|
text: string;
|
156
158
|
tagId: string;
|
157
159
|
}>, "many">;
|
158
160
|
}>, "strip", z.ZodTypeAny, {
|
161
|
+
id: string;
|
159
162
|
required: boolean;
|
160
163
|
text: string;
|
161
164
|
options: {
|
165
|
+
id: string;
|
162
166
|
text: string;
|
163
167
|
tagId: string;
|
164
168
|
}[];
|
@@ -166,8 +170,10 @@ export declare const createDynamicFormResponseSchema: z.ZodObject<z.objectUtil.e
|
|
166
170
|
multipleChoice: boolean;
|
167
171
|
tagGroupId: string;
|
168
172
|
}, {
|
173
|
+
id: string;
|
169
174
|
text: string;
|
170
175
|
options: {
|
176
|
+
id: string;
|
171
177
|
text: string;
|
172
178
|
tagId: string;
|
173
179
|
}[];
|
@@ -180,9 +186,11 @@ export declare const createDynamicFormResponseSchema: z.ZodObject<z.objectUtil.e
|
|
180
186
|
id: string;
|
181
187
|
name: string;
|
182
188
|
questions: {
|
189
|
+
id: string;
|
183
190
|
required: boolean;
|
184
191
|
text: string;
|
185
192
|
options: {
|
193
|
+
id: string;
|
186
194
|
text: string;
|
187
195
|
tagId: string;
|
188
196
|
}[];
|
@@ -194,8 +202,10 @@ export declare const createDynamicFormResponseSchema: z.ZodObject<z.objectUtil.e
|
|
194
202
|
id: string;
|
195
203
|
name: string;
|
196
204
|
questions: {
|
205
|
+
id: string;
|
197
206
|
text: string;
|
198
207
|
options: {
|
208
|
+
id: string;
|
199
209
|
text: string;
|
200
210
|
tagId: string;
|
201
211
|
}[];
|
@@ -209,25 +219,31 @@ declare const CreateDynamicFormResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
209
219
|
id: z.ZodString;
|
210
220
|
name: z.ZodString;
|
211
221
|
questions: z.ZodArray<z.ZodObject<{
|
222
|
+
id: z.ZodString;
|
212
223
|
required: z.ZodDefault<z.ZodBoolean>;
|
213
224
|
text: z.ZodString;
|
214
225
|
disabled: z.ZodDefault<z.ZodBoolean>;
|
215
226
|
multipleChoice: z.ZodDefault<z.ZodBoolean>;
|
216
227
|
tagGroupId: z.ZodString;
|
217
228
|
options: z.ZodArray<z.ZodObject<{
|
229
|
+
id: z.ZodString;
|
218
230
|
text: z.ZodString;
|
219
231
|
tagId: z.ZodString;
|
220
232
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
233
|
+
id: string;
|
221
234
|
text: string;
|
222
235
|
tagId: string;
|
223
236
|
}, {
|
237
|
+
id: string;
|
224
238
|
text: string;
|
225
239
|
tagId: string;
|
226
240
|
}>, "many">;
|
227
241
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
242
|
+
id: string;
|
228
243
|
required: boolean;
|
229
244
|
text: string;
|
230
245
|
options: {
|
246
|
+
id: string;
|
231
247
|
text: string;
|
232
248
|
tagId: string;
|
233
249
|
}[];
|
@@ -235,8 +251,10 @@ declare const CreateDynamicFormResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
235
251
|
multipleChoice: boolean;
|
236
252
|
tagGroupId: string;
|
237
253
|
}, {
|
254
|
+
id: string;
|
238
255
|
text: string;
|
239
256
|
options: {
|
257
|
+
id: string;
|
240
258
|
text: string;
|
241
259
|
tagId: string;
|
242
260
|
}[];
|
@@ -249,9 +267,11 @@ declare const CreateDynamicFormResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
249
267
|
id: string;
|
250
268
|
name: string;
|
251
269
|
questions: {
|
270
|
+
id: string;
|
252
271
|
required: boolean;
|
253
272
|
text: string;
|
254
273
|
options: {
|
274
|
+
id: string;
|
255
275
|
text: string;
|
256
276
|
tagId: string;
|
257
277
|
}[];
|
@@ -263,8 +283,10 @@ declare const CreateDynamicFormResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
263
283
|
id: string;
|
264
284
|
name: string;
|
265
285
|
questions: {
|
286
|
+
id: string;
|
266
287
|
text: string;
|
267
288
|
options: {
|
289
|
+
id: string;
|
268
290
|
text: string;
|
269
291
|
tagId: string;
|
270
292
|
}[];
|
@@ -40,6 +40,7 @@ exports.createDynamicFormResponseSchema = dynamic_form_dto_1.dynamicFormSchema
|
|
40
40
|
.extend({
|
41
41
|
questions: zod_1.default.array(dynamic_form_dto_1.dynamicQuestionSchema
|
42
42
|
.pick({
|
43
|
+
id: true,
|
43
44
|
text: true,
|
44
45
|
disabled: true,
|
45
46
|
required: true,
|
@@ -50,6 +51,7 @@ exports.createDynamicFormResponseSchema = dynamic_form_dto_1.dynamicFormSchema
|
|
50
51
|
options: zod_1.default.array(dynamic_form_dto_1.dynamicOptionSchema.pick({
|
51
52
|
text: true,
|
52
53
|
tagId: true,
|
54
|
+
id: true,
|
53
55
|
})),
|
54
56
|
})),
|
55
57
|
});
|
@@ -149,19 +149,253 @@ declare const UpdateDynamicFormDto_base: import("@anatine/zod-nestjs").ZodDtoSta
|
|
149
149
|
}>>;
|
150
150
|
export declare class UpdateDynamicFormDto extends UpdateDynamicFormDto_base {
|
151
151
|
}
|
152
|
-
export declare const updateDynamicFormResponseSchema: z.ZodObject<{
|
153
|
-
|
154
|
-
|
155
|
-
|
152
|
+
export declare const updateDynamicFormResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
153
|
+
id: z.ZodString;
|
154
|
+
name: z.ZodString;
|
155
|
+
created_at: z.ZodDate;
|
156
|
+
updated_at: z.ZodDate;
|
156
157
|
}, {
|
157
|
-
|
158
|
+
questions: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
159
|
+
id: z.ZodString;
|
160
|
+
formId: z.ZodString;
|
161
|
+
text: z.ZodString;
|
162
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
163
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
164
|
+
multipleChoice: z.ZodDefault<z.ZodBoolean>;
|
165
|
+
tagGroupId: z.ZodString;
|
166
|
+
created_at: z.ZodDate;
|
167
|
+
updated_at: z.ZodDate;
|
168
|
+
}, {
|
169
|
+
options: z.ZodArray<z.ZodObject<{
|
170
|
+
id: z.ZodString;
|
171
|
+
text: z.ZodString;
|
172
|
+
tagId: z.ZodString;
|
173
|
+
questionId: z.ZodString;
|
174
|
+
created_at: z.ZodDate;
|
175
|
+
updated_at: z.ZodDate;
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
177
|
+
id: string;
|
178
|
+
text: string;
|
179
|
+
created_at: Date;
|
180
|
+
updated_at: Date;
|
181
|
+
tagId: string;
|
182
|
+
questionId: string;
|
183
|
+
}, {
|
184
|
+
id: string;
|
185
|
+
text: string;
|
186
|
+
created_at: Date;
|
187
|
+
updated_at: Date;
|
188
|
+
tagId: string;
|
189
|
+
questionId: string;
|
190
|
+
}>, "many">;
|
191
|
+
}>, "strip", z.ZodTypeAny, {
|
192
|
+
id: string;
|
193
|
+
required: boolean;
|
194
|
+
text: string;
|
195
|
+
options: {
|
196
|
+
id: string;
|
197
|
+
text: string;
|
198
|
+
created_at: Date;
|
199
|
+
updated_at: Date;
|
200
|
+
tagId: string;
|
201
|
+
questionId: string;
|
202
|
+
}[];
|
203
|
+
created_at: Date;
|
204
|
+
updated_at: Date;
|
205
|
+
formId: string;
|
206
|
+
disabled: boolean;
|
207
|
+
multipleChoice: boolean;
|
208
|
+
tagGroupId: string;
|
209
|
+
}, {
|
210
|
+
id: string;
|
211
|
+
text: string;
|
212
|
+
options: {
|
213
|
+
id: string;
|
214
|
+
text: string;
|
215
|
+
created_at: Date;
|
216
|
+
updated_at: Date;
|
217
|
+
tagId: string;
|
218
|
+
questionId: string;
|
219
|
+
}[];
|
220
|
+
created_at: Date;
|
221
|
+
updated_at: Date;
|
222
|
+
formId: string;
|
223
|
+
tagGroupId: string;
|
224
|
+
required?: boolean | undefined;
|
225
|
+
disabled?: boolean | undefined;
|
226
|
+
multipleChoice?: boolean | undefined;
|
227
|
+
}>, "many">;
|
228
|
+
}>, "strip", z.ZodTypeAny, {
|
229
|
+
id: string;
|
230
|
+
name: string;
|
231
|
+
questions: {
|
232
|
+
id: string;
|
233
|
+
required: boolean;
|
234
|
+
text: string;
|
235
|
+
options: {
|
236
|
+
id: string;
|
237
|
+
text: string;
|
238
|
+
created_at: Date;
|
239
|
+
updated_at: Date;
|
240
|
+
tagId: string;
|
241
|
+
questionId: string;
|
242
|
+
}[];
|
243
|
+
created_at: Date;
|
244
|
+
updated_at: Date;
|
245
|
+
formId: string;
|
246
|
+
disabled: boolean;
|
247
|
+
multipleChoice: boolean;
|
248
|
+
tagGroupId: string;
|
249
|
+
}[];
|
250
|
+
created_at: Date;
|
251
|
+
updated_at: Date;
|
252
|
+
}, {
|
253
|
+
id: string;
|
254
|
+
name: string;
|
255
|
+
questions: {
|
256
|
+
id: string;
|
257
|
+
text: string;
|
258
|
+
options: {
|
259
|
+
id: string;
|
260
|
+
text: string;
|
261
|
+
created_at: Date;
|
262
|
+
updated_at: Date;
|
263
|
+
tagId: string;
|
264
|
+
questionId: string;
|
265
|
+
}[];
|
266
|
+
created_at: Date;
|
267
|
+
updated_at: Date;
|
268
|
+
formId: string;
|
269
|
+
tagGroupId: string;
|
270
|
+
required?: boolean | undefined;
|
271
|
+
disabled?: boolean | undefined;
|
272
|
+
multipleChoice?: boolean | undefined;
|
273
|
+
}[];
|
274
|
+
created_at: Date;
|
275
|
+
updated_at: Date;
|
158
276
|
}>;
|
159
277
|
declare const UpdateDynamicFormResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
160
|
-
|
278
|
+
id: z.ZodString;
|
279
|
+
name: z.ZodString;
|
280
|
+
created_at: z.ZodString;
|
281
|
+
updated_at: z.ZodString;
|
282
|
+
questions: z.ZodArray<z.ZodObject<{
|
283
|
+
id: z.ZodString;
|
284
|
+
formId: z.ZodString;
|
285
|
+
text: z.ZodString;
|
286
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
287
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
288
|
+
multipleChoice: z.ZodDefault<z.ZodBoolean>;
|
289
|
+
tagGroupId: z.ZodString;
|
290
|
+
created_at: z.ZodString;
|
291
|
+
updated_at: z.ZodString;
|
292
|
+
options: z.ZodArray<z.ZodObject<{
|
293
|
+
id: z.ZodString;
|
294
|
+
text: z.ZodString;
|
295
|
+
tagId: z.ZodString;
|
296
|
+
questionId: z.ZodString;
|
297
|
+
created_at: z.ZodString;
|
298
|
+
updated_at: z.ZodString;
|
299
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
300
|
+
id: string;
|
301
|
+
text: string;
|
302
|
+
created_at: string;
|
303
|
+
updated_at: string;
|
304
|
+
tagId: string;
|
305
|
+
questionId: string;
|
306
|
+
}, {
|
307
|
+
id: string;
|
308
|
+
text: string;
|
309
|
+
created_at: string;
|
310
|
+
updated_at: string;
|
311
|
+
tagId: string;
|
312
|
+
questionId: string;
|
313
|
+
}>, "many">;
|
314
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
315
|
+
id: string;
|
316
|
+
required: boolean;
|
317
|
+
text: string;
|
318
|
+
options: {
|
319
|
+
id: string;
|
320
|
+
text: string;
|
321
|
+
created_at: string;
|
322
|
+
updated_at: string;
|
323
|
+
tagId: string;
|
324
|
+
questionId: string;
|
325
|
+
}[];
|
326
|
+
created_at: string;
|
327
|
+
updated_at: string;
|
328
|
+
formId: string;
|
329
|
+
disabled: boolean;
|
330
|
+
multipleChoice: boolean;
|
331
|
+
tagGroupId: string;
|
332
|
+
}, {
|
333
|
+
id: string;
|
334
|
+
text: string;
|
335
|
+
options: {
|
336
|
+
id: string;
|
337
|
+
text: string;
|
338
|
+
created_at: string;
|
339
|
+
updated_at: string;
|
340
|
+
tagId: string;
|
341
|
+
questionId: string;
|
342
|
+
}[];
|
343
|
+
created_at: string;
|
344
|
+
updated_at: string;
|
345
|
+
formId: string;
|
346
|
+
tagGroupId: string;
|
347
|
+
required?: boolean | undefined;
|
348
|
+
disabled?: boolean | undefined;
|
349
|
+
multipleChoice?: boolean | undefined;
|
350
|
+
}>, "many">;
|
161
351
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
162
|
-
|
352
|
+
id: string;
|
353
|
+
name: string;
|
354
|
+
questions: {
|
355
|
+
id: string;
|
356
|
+
required: boolean;
|
357
|
+
text: string;
|
358
|
+
options: {
|
359
|
+
id: string;
|
360
|
+
text: string;
|
361
|
+
created_at: string;
|
362
|
+
updated_at: string;
|
363
|
+
tagId: string;
|
364
|
+
questionId: string;
|
365
|
+
}[];
|
366
|
+
created_at: string;
|
367
|
+
updated_at: string;
|
368
|
+
formId: string;
|
369
|
+
disabled: boolean;
|
370
|
+
multipleChoice: boolean;
|
371
|
+
tagGroupId: string;
|
372
|
+
}[];
|
373
|
+
created_at: string;
|
374
|
+
updated_at: string;
|
163
375
|
}, {
|
164
|
-
|
376
|
+
id: string;
|
377
|
+
name: string;
|
378
|
+
questions: {
|
379
|
+
id: string;
|
380
|
+
text: string;
|
381
|
+
options: {
|
382
|
+
id: string;
|
383
|
+
text: string;
|
384
|
+
created_at: string;
|
385
|
+
updated_at: string;
|
386
|
+
tagId: string;
|
387
|
+
questionId: string;
|
388
|
+
}[];
|
389
|
+
created_at: string;
|
390
|
+
updated_at: string;
|
391
|
+
formId: string;
|
392
|
+
tagGroupId: string;
|
393
|
+
required?: boolean | undefined;
|
394
|
+
disabled?: boolean | undefined;
|
395
|
+
multipleChoice?: boolean | undefined;
|
396
|
+
}[];
|
397
|
+
created_at: string;
|
398
|
+
updated_at: string;
|
165
399
|
}>>;
|
166
400
|
export declare class UpdateDynamicFormResponseDto extends UpdateDynamicFormResponseDto_base {
|
167
401
|
}
|
@@ -32,8 +32,12 @@ exports.updateDynamicFormSchema = dynamic_form_dto_1.dynamicFormSchema
|
|
32
32
|
class UpdateDynamicFormDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateDynamicFormSchema) {
|
33
33
|
}
|
34
34
|
exports.UpdateDynamicFormDto = UpdateDynamicFormDto;
|
35
|
-
exports.updateDynamicFormResponseSchema =
|
36
|
-
|
35
|
+
exports.updateDynamicFormResponseSchema = dynamic_form_dto_1.dynamicFormSchema.extend({
|
36
|
+
questions: dynamic_form_dto_1.dynamicQuestionSchema
|
37
|
+
.extend({
|
38
|
+
options: dynamic_form_dto_1.dynamicOptionSchema.array(),
|
39
|
+
})
|
40
|
+
.array(),
|
37
41
|
});
|
38
42
|
class UpdateDynamicFormResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateDynamicFormResponseSchema) {
|
39
43
|
}
|
package/dist/types/schema.d.ts
CHANGED
@@ -4222,6 +4222,7 @@ export interface components {
|
|
4222
4222
|
id: string;
|
4223
4223
|
name: string;
|
4224
4224
|
questions: {
|
4225
|
+
id: string;
|
4225
4226
|
text: string;
|
4226
4227
|
disabled: boolean;
|
4227
4228
|
required: boolean;
|
@@ -4230,6 +4231,7 @@ export interface components {
|
|
4230
4231
|
options: {
|
4231
4232
|
text: string;
|
4232
4233
|
tagId: string;
|
4234
|
+
id: string;
|
4233
4235
|
}[];
|
4234
4236
|
}[];
|
4235
4237
|
};
|