expo-backend-types 0.60.0-feat-desfile-12-octubre.2 → 0.60.0-feat-desfile-12-octubre.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 (125) hide show
  1. package/dist/src/account/dto/account.dto.d.ts +4 -4
  2. package/dist/src/account/dto/create-account.dto.d.ts +13 -13
  3. package/dist/src/account/dto/get-global-filter.dto.d.ts +8 -12
  4. package/dist/src/account/dto/get-me.dto.d.ts +22 -30
  5. package/dist/src/account/dto/update-global-filter.dto.d.ts +12 -16
  6. package/dist/src/auth/dto/login.dto.d.ts +10 -10
  7. package/dist/src/event/dto/get-all-event.dto.d.ts +180 -36
  8. package/dist/src/event/dto/get-all-event.dto.js +5 -0
  9. package/dist/src/event/dto/get-all-statistics.dto.d.ts +0 -5
  10. package/dist/src/event/dto/get-by-id-event.dto.d.ts +40 -60
  11. package/dist/src/event/dto/update-event.dto.d.ts +8 -12
  12. package/dist/src/exports.d.ts +0 -2
  13. package/dist/src/exports.js +0 -2
  14. package/dist/src/i18n/es.d.ts +0 -117
  15. package/dist/src/i18n/es.js +0 -111
  16. package/dist/src/i18n/es.js.map +1 -1
  17. package/dist/src/mi-expo/dto/get-me.dto.d.ts +4 -246
  18. package/dist/src/mi-expo/dto/get-me.dto.js +0 -5
  19. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +6 -16
  20. package/dist/src/mi-expo/dto/login.dto.d.ts +6 -16
  21. package/dist/src/mi-expo/dto/update-me.dto.d.ts +4 -10
  22. package/dist/src/mi-expo/exports.d.ts +0 -1
  23. package/dist/src/mi-expo/exports.js +0 -1
  24. package/dist/src/otp/dto/verify-otp.dto.d.ts +4 -14
  25. package/dist/src/production/dto/create-production.dto.d.ts +1 -8
  26. package/dist/src/production/dto/create-production.dto.js +0 -1
  27. package/dist/src/production/dto/create-role.dto.d.ts +4 -10
  28. package/dist/src/production/dto/delete-production.dto.d.ts +0 -6
  29. package/dist/src/production/dto/get-all-production.dto.d.ts +6 -30
  30. package/dist/src/production/dto/production.dto.d.ts +0 -3
  31. package/dist/src/production/dto/production.dto.js +0 -3
  32. package/dist/src/production/dto/update-production.dto.d.ts +0 -12
  33. package/dist/src/production/dto/update-production.dto.js +0 -1
  34. package/dist/src/production-affiliation-request/dto/find-by-production-affiliation-request.dto.d.ts +6 -34
  35. package/dist/src/production-affiliation-request/dto/update-production-affiliation-request.dto.d.ts +4 -24
  36. package/dist/src/profile/dto/create-profile.dto.d.ts +0 -4
  37. package/dist/src/profile/dto/delete-profile.dto.d.ts +2 -8
  38. package/dist/src/profile/dto/find-all-profile.dto.d.ts +16 -30
  39. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +26 -50
  40. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +12 -22
  41. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +4 -149
  42. package/dist/src/profile/dto/find-by-phone-number.dto.js +1 -21
  43. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +16 -30
  44. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +16 -30
  45. package/dist/src/profile/dto/find-trash.dto.d.ts +0 -1
  46. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +16 -30
  47. package/dist/src/profile/dto/profile.dto.d.ts +1 -4
  48. package/dist/src/profile/dto/update-profile.dto.d.ts +2 -8
  49. package/dist/src/schema/profile.schema.d.ts +1 -4
  50. package/dist/src/schema/profile.schema.js +2 -17
  51. package/dist/src/tag/dto/create-tag.dto.d.ts +8 -18
  52. package/dist/src/tag/dto/delete-tag.dto.d.ts +4 -8
  53. package/dist/src/tag/dto/find-all-tag.dto.d.ts +8 -12
  54. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +8 -12
  55. package/dist/src/tag/dto/find-one-tag.dto.d.ts +4 -8
  56. package/dist/src/tag/dto/massive-allocation.dto.d.ts +4 -14
  57. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +4 -14
  58. package/dist/src/tag/dto/tag.dto.d.ts +4 -8
  59. package/dist/src/tag/dto/update-tag.dto.d.ts +4 -10
  60. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +12 -16
  61. package/dist/src/tag-group/dto/find-all-with-tags.dto.d.ts +12 -16
  62. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +8 -12
  63. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +0 -6
  64. package/dist/src/ticket/dto/create-many-ticket.dto.js +0 -2
  65. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +6 -20
  66. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +6 -20
  67. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +6 -20
  68. package/dist/src/ticket/exports.d.ts +0 -1
  69. package/dist/src/ticket/exports.js +0 -1
  70. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +0 -7
  71. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +0 -6
  72. package/dist/src/ticket-group/dto/find-group-ticket-group.dto.d.ts +0 -6
  73. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +0 -6
  74. package/dist/src/ticket-group/dto/ticket-group.dto.js +0 -1
  75. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +0 -12
  76. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +0 -1
  77. package/dist/types/prisma-schema/edge.js +4 -47
  78. package/dist/types/prisma-schema/index-browser.js +1 -44
  79. package/dist/types/prisma-schema/index.d.ts +467 -6220
  80. package/dist/types/prisma-schema/index.js +4 -47
  81. package/dist/types/prisma-schema/package.json +1 -1
  82. package/dist/types/prisma-schema/schema.prisma +4 -74
  83. package/dist/types/prisma-schema/wasm.js +1 -44
  84. package/dist/types/schema.d.ts +67 -1188
  85. package/package.json +2 -3
  86. package/dist/src/dynamic-form/dto/create-dynamic-form.dto.d.ts +0 -311
  87. package/dist/src/dynamic-form/dto/create-dynamic-form.dto.js +0 -61
  88. package/dist/src/dynamic-form/dto/delete-dynamic-form.dto.d.ts +0 -18
  89. package/dist/src/dynamic-form/dto/delete-dynamic-form.dto.js +0 -12
  90. package/dist/src/dynamic-form/dto/dynamic-form.dto.d.ts +0 -173
  91. package/dist/src/dynamic-form/dto/dynamic-form.dto.js +0 -77
  92. package/dist/src/dynamic-form/dto/find-all-dynamic-form.dto.d.ts +0 -531
  93. package/dist/src/dynamic-form/dto/find-all-dynamic-form.dto.js +0 -23
  94. package/dist/src/dynamic-form/dto/find-by-id-dynamic-question.dto.d.ts +0 -268
  95. package/dist/src/dynamic-form/dto/find-by-id-dynamic-question.dto.js +0 -19
  96. package/dist/src/dynamic-form/dto/find-by-type-dynamic-form.dto.d.ts +0 -266
  97. package/dist/src/dynamic-form/dto/find-by-type-dynamic-form.dto.js +0 -18
  98. package/dist/src/dynamic-form/dto/submit-dynamic-form.dto.d.ts +0 -350
  99. package/dist/src/dynamic-form/dto/submit-dynamic-form.dto.js +0 -23
  100. package/dist/src/dynamic-form/dto/update-dynamic-form.dto.d.ts +0 -421
  101. package/dist/src/dynamic-form/dto/update-dynamic-form.dto.js +0 -45
  102. package/dist/src/dynamic-form/exports.d.ts +0 -7
  103. package/dist/src/dynamic-form/exports.js +0 -24
  104. package/dist/src/mi-expo/dto/update-me-first-time.dto.d.ts +0 -382
  105. package/dist/src/mi-expo/dto/update-me-first-time.dto.js +0 -35
  106. package/dist/src/profile/dto/find-referral-code-exists.dto.d.ts +0 -18
  107. package/dist/src/profile/dto/find-referral-code-exists.dto.js +0 -15
  108. package/dist/src/profile/dto/find-referral-code-usage.dto.d.ts +0 -18
  109. package/dist/src/profile/dto/find-referral-code-usage.dto.js +0 -15
  110. package/dist/src/role/dto/allocate-participant-role.dto.d.ts +0 -191
  111. package/dist/src/role/dto/allocate-participant-role.dto.js +0 -24
  112. package/dist/src/role/dto/allocate-production-role.dto.d.ts +0 -185
  113. package/dist/src/role/dto/allocate-production-role.dto.js +0 -22
  114. package/dist/src/role/dto/create-role.dto.d.ts +0 -92
  115. package/dist/src/role/dto/create-role.dto.js +0 -16
  116. package/dist/src/role/dto/deallocate-all-role.dto.d.ts +0 -185
  117. package/dist/src/role/dto/deallocate-all-role.dto.js +0 -22
  118. package/dist/src/role/dto/delete-role.dto.d.ts +0 -63
  119. package/dist/src/role/dto/delete-role.dto.js +0 -10
  120. package/dist/src/role/dto/find-all-role.dto.d.ts +0 -63
  121. package/dist/src/role/dto/find-all-role.dto.js +0 -10
  122. package/dist/src/role/dto/update-role.dto.d.ts +0 -92
  123. package/dist/src/role/dto/update-role.dto.js +0 -16
  124. package/dist/src/role/exports.d.ts +0 -7
  125. package/dist/src/role/exports.js +0 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.60.0-feat-desfile-12-octubre.2",
3
+ "version": "0.60.0-feat-desfile-12-octubre.4",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -24,7 +24,7 @@
24
24
  "local-release": "changeset version && changeset publish",
25
25
  "commit-schema": "git add ./types/schema.d.ts swagger.yaml && git commit -m \"Update schema\"",
26
26
  "start": "npx prisma generate && npx nest start",
27
- "dev": "(rm -r ./dist || del /F \"./dist\") && npx prisma generate && nest start --watch",
27
+ "dev": "rm -r ./dist && npx prisma generate && nest start --watch",
28
28
  "start:debug": "nest start --debug --watch",
29
29
  "start:prod": "node dist/src/main",
30
30
  "lint": "eslint \"{src,apps,libs,test,types}/**/*.ts\" --fix",
@@ -35,7 +35,6 @@
35
35
  "dependencies": {
36
36
  "@anatine/zod-nestjs": "^2.0.10",
37
37
  "@anatine/zod-openapi": "^2.2.6",
38
- "an-array-of-spanish-words": "^2.0.0",
39
38
  "i18n-js": "^4.4.3",
40
39
  "libphonenumber-js": "^1.12.6",
41
40
  "mercadopago": "^2.4.0",
@@ -1,311 +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
- 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
- }, "name">, {
13
- questions: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
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
- }, "required" | "text" | "disabled" | "multipleChoice">, {
24
- options: z.ZodArray<z.ZodObject<Pick<{
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
- }, "text">, "strip", z.ZodTypeAny, {
32
- text: string;
33
- }, {
34
- text: string;
35
- }>, "many">;
36
- }>, "strip", z.ZodTypeAny, {
37
- required: boolean;
38
- text: string;
39
- options: {
40
- text: string;
41
- }[];
42
- disabled: boolean;
43
- multipleChoice: boolean;
44
- }, {
45
- text: string;
46
- options: {
47
- text: string;
48
- }[];
49
- required?: boolean | undefined;
50
- disabled?: boolean | undefined;
51
- multipleChoice?: boolean | undefined;
52
- }>, "many">;
53
- }>, "strict", z.ZodTypeAny, {
54
- name: string;
55
- questions: {
56
- required: boolean;
57
- text: string;
58
- options: {
59
- text: string;
60
- }[];
61
- disabled: boolean;
62
- multipleChoice: boolean;
63
- }[];
64
- }, {
65
- name: string;
66
- questions: {
67
- text: string;
68
- options: {
69
- text: string;
70
- }[];
71
- required?: boolean | undefined;
72
- disabled?: boolean | undefined;
73
- multipleChoice?: boolean | undefined;
74
- }[];
75
- }>;
76
- declare const CreateDynamicFormDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
77
- name: z.ZodString;
78
- questions: z.ZodArray<z.ZodObject<{
79
- required: z.ZodDefault<z.ZodBoolean>;
80
- text: z.ZodString;
81
- disabled: z.ZodDefault<z.ZodBoolean>;
82
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
83
- options: z.ZodArray<z.ZodObject<{
84
- text: z.ZodString;
85
- }, z.UnknownKeysParam, z.ZodTypeAny, {
86
- text: string;
87
- }, {
88
- text: string;
89
- }>, "many">;
90
- }, z.UnknownKeysParam, z.ZodTypeAny, {
91
- required: boolean;
92
- text: string;
93
- options: {
94
- text: string;
95
- }[];
96
- disabled: boolean;
97
- multipleChoice: boolean;
98
- }, {
99
- text: string;
100
- options: {
101
- text: string;
102
- }[];
103
- required?: boolean | undefined;
104
- disabled?: boolean | undefined;
105
- multipleChoice?: boolean | undefined;
106
- }>, "many">;
107
- }, z.UnknownKeysParam, z.ZodTypeAny, {
108
- name: string;
109
- questions: {
110
- required: boolean;
111
- text: string;
112
- options: {
113
- text: string;
114
- }[];
115
- disabled: boolean;
116
- multipleChoice: boolean;
117
- }[];
118
- }, {
119
- name: string;
120
- questions: {
121
- text: string;
122
- options: {
123
- text: string;
124
- }[];
125
- required?: boolean | undefined;
126
- disabled?: boolean | undefined;
127
- multipleChoice?: boolean | undefined;
128
- }[];
129
- }>>;
130
- export declare class CreateDynamicFormDto extends CreateDynamicFormDto_base {
131
- }
132
- export declare const createDynamicFormResponseSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
133
- id: z.ZodString;
134
- name: z.ZodString;
135
- type: z.ZodNativeEnum<{
136
- PERSONAL_INFO: "PERSONAL_INFO";
137
- PRODUCTION: "PRODUCTION";
138
- PARTICIPANT: "PARTICIPANT";
139
- }>;
140
- created_at: z.ZodDate;
141
- updated_at: z.ZodDate;
142
- }, "id" | "name">, {
143
- questions: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
144
- id: z.ZodString;
145
- formId: z.ZodString;
146
- text: z.ZodString;
147
- disabled: z.ZodDefault<z.ZodBoolean>;
148
- required: z.ZodDefault<z.ZodBoolean>;
149
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
150
- tagGroupId: z.ZodString;
151
- created_at: z.ZodDate;
152
- updated_at: z.ZodDate;
153
- }, "id" | "required" | "text" | "disabled" | "multipleChoice" | "tagGroupId">, {
154
- options: z.ZodArray<z.ZodObject<Pick<{
155
- id: z.ZodString;
156
- text: z.ZodString;
157
- tagId: z.ZodString;
158
- questionId: z.ZodString;
159
- created_at: z.ZodDate;
160
- updated_at: z.ZodDate;
161
- }, "id" | "text" | "tagId">, "strip", z.ZodTypeAny, {
162
- id: string;
163
- text: string;
164
- tagId: string;
165
- }, {
166
- id: string;
167
- text: string;
168
- tagId: string;
169
- }>, "many">;
170
- }>, "strip", z.ZodTypeAny, {
171
- id: string;
172
- required: boolean;
173
- text: string;
174
- options: {
175
- id: string;
176
- text: string;
177
- tagId: string;
178
- }[];
179
- disabled: boolean;
180
- multipleChoice: boolean;
181
- tagGroupId: string;
182
- }, {
183
- id: string;
184
- text: string;
185
- options: {
186
- id: string;
187
- text: string;
188
- tagId: string;
189
- }[];
190
- tagGroupId: string;
191
- required?: boolean | undefined;
192
- disabled?: boolean | undefined;
193
- multipleChoice?: boolean | undefined;
194
- }>, "many">;
195
- }>, "strip", z.ZodTypeAny, {
196
- id: string;
197
- name: string;
198
- questions: {
199
- id: string;
200
- required: boolean;
201
- text: string;
202
- options: {
203
- id: string;
204
- text: string;
205
- tagId: string;
206
- }[];
207
- disabled: boolean;
208
- multipleChoice: boolean;
209
- tagGroupId: string;
210
- }[];
211
- }, {
212
- id: string;
213
- name: string;
214
- questions: {
215
- id: string;
216
- text: string;
217
- options: {
218
- id: string;
219
- text: string;
220
- tagId: string;
221
- }[];
222
- tagGroupId: string;
223
- required?: boolean | undefined;
224
- disabled?: boolean | undefined;
225
- multipleChoice?: boolean | undefined;
226
- }[];
227
- }>;
228
- declare const CreateDynamicFormResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
229
- id: z.ZodString;
230
- name: z.ZodString;
231
- questions: z.ZodArray<z.ZodObject<{
232
- id: z.ZodString;
233
- required: z.ZodDefault<z.ZodBoolean>;
234
- text: z.ZodString;
235
- disabled: z.ZodDefault<z.ZodBoolean>;
236
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
237
- tagGroupId: z.ZodString;
238
- options: z.ZodArray<z.ZodObject<{
239
- id: z.ZodString;
240
- text: z.ZodString;
241
- tagId: z.ZodString;
242
- }, z.UnknownKeysParam, z.ZodTypeAny, {
243
- id: string;
244
- text: string;
245
- tagId: string;
246
- }, {
247
- id: string;
248
- text: string;
249
- tagId: string;
250
- }>, "many">;
251
- }, z.UnknownKeysParam, z.ZodTypeAny, {
252
- id: string;
253
- required: boolean;
254
- text: string;
255
- options: {
256
- id: string;
257
- text: string;
258
- tagId: string;
259
- }[];
260
- disabled: boolean;
261
- multipleChoice: boolean;
262
- tagGroupId: string;
263
- }, {
264
- id: string;
265
- text: string;
266
- options: {
267
- id: string;
268
- text: string;
269
- tagId: string;
270
- }[];
271
- tagGroupId: string;
272
- required?: boolean | undefined;
273
- disabled?: boolean | undefined;
274
- multipleChoice?: boolean | undefined;
275
- }>, "many">;
276
- }, z.UnknownKeysParam, z.ZodTypeAny, {
277
- id: string;
278
- name: string;
279
- questions: {
280
- id: string;
281
- required: boolean;
282
- text: string;
283
- options: {
284
- id: string;
285
- text: string;
286
- tagId: string;
287
- }[];
288
- disabled: boolean;
289
- multipleChoice: boolean;
290
- tagGroupId: string;
291
- }[];
292
- }, {
293
- id: string;
294
- name: string;
295
- questions: {
296
- id: string;
297
- text: string;
298
- options: {
299
- id: string;
300
- text: string;
301
- tagId: string;
302
- }[];
303
- tagGroupId: string;
304
- required?: boolean | undefined;
305
- disabled?: boolean | undefined;
306
- multipleChoice?: boolean | undefined;
307
- }[];
308
- }>>;
309
- export declare class CreateDynamicFormResponseDto extends CreateDynamicFormResponseDto_base {
310
- }
311
- 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,173 +0,0 @@
1
- import z from 'zod';
2
- export declare const dynamicFormSchema: z.ZodObject<{
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
- }, "strip", z.ZodTypeAny, {
13
- id: string;
14
- name: string;
15
- type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
16
- created_at: Date;
17
- updated_at: Date;
18
- }, {
19
- id: string;
20
- name: string;
21
- type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
22
- created_at: Date;
23
- updated_at: Date;
24
- }>;
25
- export declare const dynamicQuestionSchema: z.ZodObject<{
26
- id: z.ZodString;
27
- formId: z.ZodString;
28
- text: z.ZodString;
29
- disabled: z.ZodDefault<z.ZodBoolean>;
30
- required: z.ZodDefault<z.ZodBoolean>;
31
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
32
- tagGroupId: z.ZodString;
33
- created_at: z.ZodDate;
34
- updated_at: z.ZodDate;
35
- }, "strip", z.ZodTypeAny, {
36
- id: string;
37
- required: boolean;
38
- text: string;
39
- created_at: Date;
40
- updated_at: Date;
41
- formId: string;
42
- disabled: boolean;
43
- multipleChoice: boolean;
44
- tagGroupId: string;
45
- }, {
46
- id: string;
47
- text: string;
48
- created_at: Date;
49
- updated_at: Date;
50
- formId: string;
51
- tagGroupId: string;
52
- required?: boolean | undefined;
53
- disabled?: boolean | undefined;
54
- multipleChoice?: boolean | undefined;
55
- }>;
56
- export declare const dynamicOptionSchema: z.ZodObject<{
57
- id: z.ZodString;
58
- text: z.ZodString;
59
- tagId: z.ZodString;
60
- questionId: z.ZodString;
61
- created_at: z.ZodDate;
62
- updated_at: z.ZodDate;
63
- }, "strip", z.ZodTypeAny, {
64
- id: string;
65
- text: string;
66
- created_at: Date;
67
- updated_at: Date;
68
- tagId: string;
69
- questionId: string;
70
- }, {
71
- id: string;
72
- text: string;
73
- created_at: Date;
74
- updated_at: Date;
75
- tagId: string;
76
- questionId: string;
77
- }>;
78
- declare const DynamicFormDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
79
- id: z.ZodString;
80
- name: z.ZodString;
81
- type: z.ZodNativeEnum<{
82
- PERSONAL_INFO: "PERSONAL_INFO";
83
- PRODUCTION: "PRODUCTION";
84
- PARTICIPANT: "PARTICIPANT";
85
- }>;
86
- created_at: z.ZodString;
87
- updated_at: z.ZodString;
88
- }, z.UnknownKeysParam, z.ZodTypeAny, {
89
- id: string;
90
- name: string;
91
- type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
92
- created_at: string;
93
- updated_at: string;
94
- }, {
95
- id: string;
96
- name: string;
97
- type: "PARTICIPANT" | "PERSONAL_INFO" | "PRODUCTION";
98
- created_at: string;
99
- updated_at: string;
100
- }>>;
101
- export declare class DynamicFormDto extends DynamicFormDto_base {
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
- }
116
- declare const DynamicQuestionDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
117
- id: z.ZodString;
118
- formId: z.ZodString;
119
- text: z.ZodString;
120
- disabled: z.ZodDefault<z.ZodBoolean>;
121
- required: z.ZodDefault<z.ZodBoolean>;
122
- multipleChoice: z.ZodDefault<z.ZodBoolean>;
123
- tagGroupId: z.ZodString;
124
- created_at: z.ZodString;
125
- updated_at: z.ZodString;
126
- }, z.UnknownKeysParam, z.ZodTypeAny, {
127
- id: string;
128
- required: boolean;
129
- text: string;
130
- created_at: string;
131
- updated_at: string;
132
- formId: string;
133
- disabled: boolean;
134
- multipleChoice: boolean;
135
- tagGroupId: string;
136
- }, {
137
- id: string;
138
- text: string;
139
- created_at: string;
140
- updated_at: string;
141
- formId: string;
142
- tagGroupId: string;
143
- required?: boolean | undefined;
144
- disabled?: boolean | undefined;
145
- multipleChoice?: boolean | undefined;
146
- }>>;
147
- export declare class DynamicQuestionDto extends DynamicQuestionDto_base {
148
- }
149
- declare const DynamicOptionDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
150
- id: z.ZodString;
151
- text: z.ZodString;
152
- tagId: z.ZodString;
153
- questionId: z.ZodString;
154
- created_at: z.ZodString;
155
- updated_at: z.ZodString;
156
- }, z.UnknownKeysParam, z.ZodTypeAny, {
157
- id: string;
158
- text: string;
159
- created_at: string;
160
- updated_at: string;
161
- tagId: string;
162
- questionId: string;
163
- }, {
164
- id: string;
165
- text: string;
166
- created_at: string;
167
- updated_at: string;
168
- tagId: string;
169
- questionId: string;
170
- }>>;
171
- export declare class DynamicOptionDto extends DynamicOptionDto_base {
172
- }
173
- export {};
@@ -1,77 +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.DynamicFormTypeDto = 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
- const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
13
- exports.dynamicFormSchema = zod_1.default.object({
14
- id: zod_1.default.string().uuid({
15
- message: (0, translate_1.translate)('model.dynamicForm.id.uuid'),
16
- }),
17
- name: zod_1.default
18
- .string({
19
- required_error: (0, translate_1.translate)('model.dynamicForm.name.required'),
20
- })
21
- .min(1, {
22
- message: (0, translate_1.translate)('model.dynamicForm.name.min'),
23
- }),
24
- type: zod_1.default.nativeEnum(prisma_schema_1.DynamicFormType),
25
- created_at: zod_1.default.date(),
26
- updated_at: zod_1.default.date(),
27
- });
28
- exports.dynamicQuestionSchema = zod_1.default.object({
29
- id: zod_1.default.string().uuid({
30
- message: (0, translate_1.translate)('model.dynamicQuestion.id.uuid'),
31
- }),
32
- formId: exports.dynamicFormSchema.shape.id,
33
- text: zod_1.default
34
- .string({
35
- required_error: (0, translate_1.translate)('model.dynamicQuestion.text.required'),
36
- })
37
- .min(1, {
38
- message: (0, translate_1.translate)('model.dynamicQuestion.text.min'),
39
- }),
40
- disabled: zod_1.default.boolean().default(false),
41
- required: zod_1.default.boolean().default(true),
42
- multipleChoice: zod_1.default.boolean().default(false),
43
- tagGroupId: tag_group_dto_1.tagGroupSchema.shape.id,
44
- created_at: zod_1.default.date(),
45
- updated_at: zod_1.default.date(),
46
- });
47
- exports.dynamicOptionSchema = zod_1.default.object({
48
- id: zod_1.default.string().uuid({
49
- message: (0, translate_1.translate)('model.dynamicOption.id.uuid'),
50
- }),
51
- text: zod_1.default
52
- .string({
53
- required_error: (0, translate_1.translate)('model.dynamicOption.text.required'),
54
- })
55
- .min(1, {
56
- message: (0, translate_1.translate)('model.dynamicOption.text.min'),
57
- }),
58
- tagId: tag_dto_1.tagSchema.shape.id,
59
- questionId: exports.dynamicQuestionSchema.shape.id,
60
- created_at: zod_1.default.date(),
61
- updated_at: zod_1.default.date(),
62
- });
63
- class DynamicFormDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicFormSchema) {
64
- }
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;
71
- class DynamicQuestionDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicQuestionSchema) {
72
- }
73
- exports.DynamicQuestionDto = DynamicQuestionDto;
74
- class DynamicOptionDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.dynamicOptionSchema) {
75
- }
76
- exports.DynamicOptionDto = DynamicOptionDto;
77
- //# sourceMappingURL=dynamic-form.dto.js.map