expo-backend-types 0.35.0-EXPO-322-ExpoBackend-Rol-de-expoTickets.1 → 0.35.0-EXPO-322-ExpoBackend-Rol-de-expoTickets.2
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/account/dto/account.dto.d.ts +6 -4
- package/dist/src/account/dto/create-account.dto.d.ts +12 -8
- package/dist/src/account/dto/get-global-filter.dto.d.ts +1 -0
- package/dist/src/account/dto/get-me.dto.d.ts +6 -4
- package/dist/src/account/dto/update-global-filter.dto.d.ts +6 -4
- package/dist/src/auth/dto/login.dto.d.ts +11 -8
- package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +1 -0
- package/dist/src/event/dto/create-event.dto.d.ts +10 -10
- package/dist/src/event/dto/event-tickets.dto.d.ts +3 -3
- package/dist/src/event/dto/event-tickets.dto.js +5 -2
- package/dist/src/event/dto/get-active-events.dto.d.ts +14 -14
- package/dist/src/event/dto/get-all-event.dto.d.ts +616 -0
- package/dist/src/event/dto/get-all-event.dto.js +29 -8
- package/dist/src/event/dto/get-by-id-event.dto.d.ts +317 -10
- package/dist/src/event/dto/get-by-id-event.dto.js +4 -0
- package/dist/src/event/dto/update-event.dto.d.ts +26 -20
- package/dist/src/event/dto/update-event.dto.js +1 -0
- package/dist/src/i18n/es.d.ts +14 -0
- package/dist/src/i18n/es.js +14 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/mi-expo/dto/get-invitations.dto.d.ts +104 -0
- package/dist/src/mi-expo/dto/get-invitations.dto.js +24 -0
- package/dist/src/mi-expo/dto/get-me.dto.d.ts +18 -0
- package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +22 -0
- package/dist/src/mi-expo/dto/login.dto.d.ts +23 -0
- package/dist/src/mi-expo/dto/update-me.dto.d.ts +18 -0
- package/dist/src/mi-expo/exports.d.ts +1 -0
- package/dist/src/mi-expo/exports.js +1 -0
- package/dist/src/otp/dto/verify-otp.dto.d.ts +22 -0
- package/dist/src/profile/dto/create-profile.dto.d.ts +28 -0
- package/dist/src/profile/dto/delete-profile.dto.d.ts +18 -0
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +22 -0
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +40 -0
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +18 -0
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +18 -0
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +22 -0
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +57 -1
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -0
- package/dist/src/profile/dto/find-trash.dto.d.ts +7 -0
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +22 -0
- package/dist/src/profile/dto/profile.dto.d.ts +9 -0
- package/dist/src/profile/dto/update-profile.dto.d.ts +18 -0
- package/dist/src/schema/profile.schema.d.ts +9 -0
- package/dist/src/schema/profile.schema.js +2 -0
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +22 -0
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +22 -0
- package/dist/src/ticket/dto/create-ticket.dto.d.ts +158 -4
- package/dist/src/ticket/dto/create-ticket.dto.js +10 -2
- package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +372 -0
- package/dist/src/ticket/dto/find-by-event-ticket.dto.js +2 -0
- package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +372 -0
- package/dist/src/ticket/dto/find-by-id-ticket.dto.js +2 -0
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +372 -0
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.js +2 -0
- package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +331 -0
- package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.js +19 -0
- package/dist/src/ticket/exports.d.ts +1 -0
- package/dist/src/ticket/exports.js +1 -0
- package/dist/types/prisma-schema/edge.js +7 -4
- package/dist/types/prisma-schema/index-browser.js +4 -1
- package/dist/types/prisma-schema/index.d.ts +587 -48
- package/dist/types/prisma-schema/index.js +7 -4
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +9 -1
- package/dist/types/prisma-schema/wasm.js +4 -1
- package/dist/types/schema.d.ts +342 -10
- package/package.json +1 -1
@@ -3,6 +3,13 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
3
3
|
profiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
4
4
|
id: z.ZodString;
|
5
5
|
shortId: z.ZodNumber;
|
6
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
7
|
+
USER: "USER";
|
8
|
+
ADMIN: "ADMIN";
|
9
|
+
FORM: "FORM";
|
10
|
+
TICKETS: "TICKETS";
|
11
|
+
MI_EXPO: "MI_EXPO";
|
12
|
+
}>>;
|
6
13
|
firstTimeMiExpo: z.ZodBoolean;
|
7
14
|
username: z.ZodNullable<z.ZodString>;
|
8
15
|
password: z.ZodNullable<z.ZodString>;
|
@@ -45,9 +52,13 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
45
52
|
isExclusive: z.ZodBoolean;
|
46
53
|
created_at: z.ZodDate;
|
47
54
|
updated_at: z.ZodDate;
|
48
|
-
}, "isExclusive">, "strip", z.ZodTypeAny, {
|
55
|
+
}, "name" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
|
56
|
+
name: string;
|
57
|
+
color: string;
|
49
58
|
isExclusive: boolean;
|
50
59
|
}, {
|
60
|
+
name: string;
|
61
|
+
color: string;
|
51
62
|
isExclusive: boolean;
|
52
63
|
}>;
|
53
64
|
}>, "strip", z.ZodTypeAny, {
|
@@ -58,6 +69,8 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
58
69
|
updated_at: Date;
|
59
70
|
groupId: string;
|
60
71
|
group: {
|
72
|
+
name: string;
|
73
|
+
color: string;
|
61
74
|
isExclusive: boolean;
|
62
75
|
};
|
63
76
|
}, {
|
@@ -68,6 +81,8 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
68
81
|
updated_at: Date;
|
69
82
|
groupId: string;
|
70
83
|
group: {
|
84
|
+
name: string;
|
85
|
+
color: string;
|
71
86
|
isExclusive: boolean;
|
72
87
|
};
|
73
88
|
}>, "many">;
|
@@ -75,6 +90,7 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
75
90
|
id: string;
|
76
91
|
username: string | null;
|
77
92
|
password: string | null;
|
93
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
78
94
|
phoneNumber: string;
|
79
95
|
secondaryPhoneNumber: string | null;
|
80
96
|
fullName: string;
|
@@ -103,6 +119,8 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
103
119
|
updated_at: Date;
|
104
120
|
groupId: string;
|
105
121
|
group: {
|
122
|
+
name: string;
|
123
|
+
color: string;
|
106
124
|
isExclusive: boolean;
|
107
125
|
};
|
108
126
|
}[];
|
@@ -138,15 +156,19 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
138
156
|
updated_at: Date;
|
139
157
|
groupId: string;
|
140
158
|
group: {
|
159
|
+
name: string;
|
160
|
+
color: string;
|
141
161
|
isExclusive: boolean;
|
142
162
|
};
|
143
163
|
}[];
|
164
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
144
165
|
}>, "many">;
|
145
166
|
}, "strip", z.ZodTypeAny, {
|
146
167
|
profiles: {
|
147
168
|
id: string;
|
148
169
|
username: string | null;
|
149
170
|
password: string | null;
|
171
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
150
172
|
phoneNumber: string;
|
151
173
|
secondaryPhoneNumber: string | null;
|
152
174
|
fullName: string;
|
@@ -175,6 +197,8 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
175
197
|
updated_at: Date;
|
176
198
|
groupId: string;
|
177
199
|
group: {
|
200
|
+
name: string;
|
201
|
+
color: string;
|
178
202
|
isExclusive: boolean;
|
179
203
|
};
|
180
204
|
}[];
|
@@ -212,15 +236,25 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
212
236
|
updated_at: Date;
|
213
237
|
groupId: string;
|
214
238
|
group: {
|
239
|
+
name: string;
|
240
|
+
color: string;
|
215
241
|
isExclusive: boolean;
|
216
242
|
};
|
217
243
|
}[];
|
244
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
218
245
|
}[];
|
219
246
|
}>;
|
220
247
|
declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
221
248
|
profiles: z.ZodArray<z.ZodObject<{
|
222
249
|
id: z.ZodString;
|
223
250
|
shortId: z.ZodNumber;
|
251
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
252
|
+
USER: "USER";
|
253
|
+
ADMIN: "ADMIN";
|
254
|
+
FORM: "FORM";
|
255
|
+
TICKETS: "TICKETS";
|
256
|
+
MI_EXPO: "MI_EXPO";
|
257
|
+
}>>;
|
224
258
|
firstTimeMiExpo: z.ZodBoolean;
|
225
259
|
username: z.ZodNullable<z.ZodString>;
|
226
260
|
password: z.ZodNullable<z.ZodString>;
|
@@ -255,10 +289,16 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
255
289
|
created_at: z.ZodString;
|
256
290
|
updated_at: z.ZodString;
|
257
291
|
group: z.ZodObject<{
|
292
|
+
name: z.ZodString;
|
293
|
+
color: z.ZodString;
|
258
294
|
isExclusive: z.ZodBoolean;
|
259
295
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
296
|
+
name: string;
|
297
|
+
color: string;
|
260
298
|
isExclusive: boolean;
|
261
299
|
}, {
|
300
|
+
name: string;
|
301
|
+
color: string;
|
262
302
|
isExclusive: boolean;
|
263
303
|
}>;
|
264
304
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
@@ -269,6 +309,8 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
269
309
|
updated_at: string;
|
270
310
|
groupId: string;
|
271
311
|
group: {
|
312
|
+
name: string;
|
313
|
+
color: string;
|
272
314
|
isExclusive: boolean;
|
273
315
|
};
|
274
316
|
}, {
|
@@ -279,6 +321,8 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
279
321
|
updated_at: string;
|
280
322
|
groupId: string;
|
281
323
|
group: {
|
324
|
+
name: string;
|
325
|
+
color: string;
|
282
326
|
isExclusive: boolean;
|
283
327
|
};
|
284
328
|
}>, "many">;
|
@@ -286,6 +330,7 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
286
330
|
id: string;
|
287
331
|
username: string | null;
|
288
332
|
password: string | null;
|
333
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
289
334
|
phoneNumber: string;
|
290
335
|
secondaryPhoneNumber: string | null;
|
291
336
|
fullName: string;
|
@@ -314,6 +359,8 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
314
359
|
updated_at: string;
|
315
360
|
groupId: string;
|
316
361
|
group: {
|
362
|
+
name: string;
|
363
|
+
color: string;
|
317
364
|
isExclusive: boolean;
|
318
365
|
};
|
319
366
|
}[];
|
@@ -349,15 +396,19 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
349
396
|
updated_at: string;
|
350
397
|
groupId: string;
|
351
398
|
group: {
|
399
|
+
name: string;
|
400
|
+
color: string;
|
352
401
|
isExclusive: boolean;
|
353
402
|
};
|
354
403
|
}[];
|
404
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
355
405
|
}>, "many">;
|
356
406
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
357
407
|
profiles: {
|
358
408
|
id: string;
|
359
409
|
username: string | null;
|
360
410
|
password: string | null;
|
411
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
361
412
|
phoneNumber: string;
|
362
413
|
secondaryPhoneNumber: string | null;
|
363
414
|
fullName: string;
|
@@ -386,6 +437,8 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
386
437
|
updated_at: string;
|
387
438
|
groupId: string;
|
388
439
|
group: {
|
440
|
+
name: string;
|
441
|
+
color: string;
|
389
442
|
isExclusive: boolean;
|
390
443
|
};
|
391
444
|
}[];
|
@@ -423,9 +476,12 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
423
476
|
updated_at: string;
|
424
477
|
groupId: string;
|
425
478
|
group: {
|
479
|
+
name: string;
|
480
|
+
color: string;
|
426
481
|
isExclusive: boolean;
|
427
482
|
};
|
428
483
|
}[];
|
484
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
429
485
|
}[];
|
430
486
|
}>>;
|
431
487
|
export declare class FindByTagsProfileResponseDto extends FindByTagsProfileResponseDto_base {
|
@@ -14,6 +14,8 @@ exports.findByTagsProfileResponseSchema = zod_1.default.object({
|
|
14
14
|
tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
|
15
15
|
group: tag_group_dto_1.tagGroupSchema.pick({
|
16
16
|
isExclusive: true,
|
17
|
+
name: true,
|
18
|
+
color: true,
|
17
19
|
}),
|
18
20
|
}))),
|
19
21
|
}))),
|
@@ -3,6 +3,13 @@ export declare const findTrashResponseSchema: z.ZodObject<{
|
|
3
3
|
profiles: z.ZodArray<z.ZodObject<Pick<{
|
4
4
|
id: z.ZodString;
|
5
5
|
shortId: z.ZodNumber;
|
6
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
7
|
+
USER: "USER";
|
8
|
+
ADMIN: "ADMIN";
|
9
|
+
FORM: "FORM";
|
10
|
+
TICKETS: "TICKETS";
|
11
|
+
MI_EXPO: "MI_EXPO";
|
12
|
+
}>>;
|
6
13
|
firstTimeMiExpo: z.ZodBoolean;
|
7
14
|
username: z.ZodNullable<z.ZodString>;
|
8
15
|
password: z.ZodNullable<z.ZodString>;
|
@@ -3,6 +3,13 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
|
|
3
3
|
profiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
4
4
|
id: z.ZodString;
|
5
5
|
shortId: z.ZodNumber;
|
6
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
7
|
+
USER: "USER";
|
8
|
+
ADMIN: "ADMIN";
|
9
|
+
FORM: "FORM";
|
10
|
+
TICKETS: "TICKETS";
|
11
|
+
MI_EXPO: "MI_EXPO";
|
12
|
+
}>>;
|
6
13
|
firstTimeMiExpo: z.ZodBoolean;
|
7
14
|
username: z.ZodNullable<z.ZodString>;
|
8
15
|
password: z.ZodNullable<z.ZodString>;
|
@@ -165,6 +172,7 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
|
|
165
172
|
id: string;
|
166
173
|
username: string | null;
|
167
174
|
password: string | null;
|
175
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
168
176
|
phoneNumber: string;
|
169
177
|
secondaryPhoneNumber: string | null;
|
170
178
|
fullName: string;
|
@@ -269,12 +277,14 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
|
|
269
277
|
groupId: string;
|
270
278
|
}[];
|
271
279
|
inChat: boolean;
|
280
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
272
281
|
}>, "many">;
|
273
282
|
}, "strip", z.ZodTypeAny, {
|
274
283
|
profiles: {
|
275
284
|
id: string;
|
276
285
|
username: string | null;
|
277
286
|
password: string | null;
|
287
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
278
288
|
phoneNumber: string;
|
279
289
|
secondaryPhoneNumber: string | null;
|
280
290
|
fullName: string;
|
@@ -381,12 +391,20 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
|
|
381
391
|
groupId: string;
|
382
392
|
}[];
|
383
393
|
inChat: boolean;
|
394
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
384
395
|
}[];
|
385
396
|
}>;
|
386
397
|
declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
387
398
|
profiles: z.ZodArray<z.ZodObject<{
|
388
399
|
id: z.ZodString;
|
389
400
|
shortId: z.ZodNumber;
|
401
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
402
|
+
USER: "USER";
|
403
|
+
ADMIN: "ADMIN";
|
404
|
+
FORM: "FORM";
|
405
|
+
TICKETS: "TICKETS";
|
406
|
+
MI_EXPO: "MI_EXPO";
|
407
|
+
}>>;
|
390
408
|
firstTimeMiExpo: z.ZodBoolean;
|
391
409
|
username: z.ZodNullable<z.ZodString>;
|
392
410
|
password: z.ZodNullable<z.ZodString>;
|
@@ -545,6 +563,7 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
|
|
545
563
|
id: string;
|
546
564
|
username: string | null;
|
547
565
|
password: string | null;
|
566
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
548
567
|
phoneNumber: string;
|
549
568
|
secondaryPhoneNumber: string | null;
|
550
569
|
fullName: string;
|
@@ -649,12 +668,14 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
|
|
649
668
|
groupId: string;
|
650
669
|
}[];
|
651
670
|
inChat: boolean;
|
671
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
652
672
|
}>, "many">;
|
653
673
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
654
674
|
profiles: {
|
655
675
|
id: string;
|
656
676
|
username: string | null;
|
657
677
|
password: string | null;
|
678
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
658
679
|
phoneNumber: string;
|
659
680
|
secondaryPhoneNumber: string | null;
|
660
681
|
fullName: string;
|
@@ -761,6 +782,7 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
|
|
761
782
|
groupId: string;
|
762
783
|
}[];
|
763
784
|
inChat: boolean;
|
785
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
764
786
|
}[];
|
765
787
|
}>>;
|
766
788
|
export declare class FindWithActiveChatResponseDto extends FindWithActiveChatResponseDto_base {
|
@@ -1,6 +1,13 @@
|
|
1
1
|
declare const ProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
2
2
|
id: import("zod").ZodString;
|
3
3
|
shortId: import("zod").ZodNumber;
|
4
|
+
role: import("zod").ZodDefault<import("zod").ZodNativeEnum<{
|
5
|
+
USER: "USER";
|
6
|
+
ADMIN: "ADMIN";
|
7
|
+
FORM: "FORM";
|
8
|
+
TICKETS: "TICKETS";
|
9
|
+
MI_EXPO: "MI_EXPO";
|
10
|
+
}>>;
|
4
11
|
firstTimeMiExpo: import("zod").ZodBoolean;
|
5
12
|
username: import("zod").ZodNullable<import("zod").ZodString>;
|
6
13
|
password: import("zod").ZodNullable<import("zod").ZodString>;
|
@@ -26,6 +33,7 @@ declare const ProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import
|
|
26
33
|
id: string;
|
27
34
|
username: string | null;
|
28
35
|
password: string | null;
|
36
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
29
37
|
phoneNumber: string;
|
30
38
|
secondaryPhoneNumber: string | null;
|
31
39
|
fullName: string;
|
@@ -70,6 +78,7 @@ declare const ProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import
|
|
70
78
|
residenceLocationId: string | null;
|
71
79
|
isInTrash: boolean;
|
72
80
|
movedToTrashDate: string | null;
|
81
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
73
82
|
}>>;
|
74
83
|
export declare class ProfileDto extends ProfileDto_base {
|
75
84
|
}
|
@@ -247,6 +247,13 @@ export declare class UpdateProfileDto extends UpdateProfileDto_base {
|
|
247
247
|
export declare const updateProfileResponseSchema: z.ZodObject<{
|
248
248
|
id: z.ZodString;
|
249
249
|
shortId: z.ZodNumber;
|
250
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
251
|
+
USER: "USER";
|
252
|
+
ADMIN: "ADMIN";
|
253
|
+
FORM: "FORM";
|
254
|
+
TICKETS: "TICKETS";
|
255
|
+
MI_EXPO: "MI_EXPO";
|
256
|
+
}>>;
|
250
257
|
firstTimeMiExpo: z.ZodBoolean;
|
251
258
|
username: z.ZodNullable<z.ZodString>;
|
252
259
|
password: z.ZodNullable<z.ZodString>;
|
@@ -272,6 +279,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
272
279
|
id: string;
|
273
280
|
username: string | null;
|
274
281
|
password: string | null;
|
282
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
275
283
|
phoneNumber: string;
|
276
284
|
secondaryPhoneNumber: string | null;
|
277
285
|
fullName: string;
|
@@ -316,10 +324,18 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
316
324
|
residenceLocationId: string | null;
|
317
325
|
isInTrash: boolean;
|
318
326
|
movedToTrashDate: Date | null;
|
327
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
319
328
|
}>;
|
320
329
|
declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
321
330
|
id: z.ZodString;
|
322
331
|
shortId: z.ZodNumber;
|
332
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
333
|
+
USER: "USER";
|
334
|
+
ADMIN: "ADMIN";
|
335
|
+
FORM: "FORM";
|
336
|
+
TICKETS: "TICKETS";
|
337
|
+
MI_EXPO: "MI_EXPO";
|
338
|
+
}>>;
|
323
339
|
firstTimeMiExpo: z.ZodBoolean;
|
324
340
|
username: z.ZodNullable<z.ZodString>;
|
325
341
|
password: z.ZodNullable<z.ZodString>;
|
@@ -345,6 +361,7 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
|
|
345
361
|
id: string;
|
346
362
|
username: string | null;
|
347
363
|
password: string | null;
|
364
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
348
365
|
phoneNumber: string;
|
349
366
|
secondaryPhoneNumber: string | null;
|
350
367
|
fullName: string;
|
@@ -389,6 +406,7 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
|
|
389
406
|
residenceLocationId: string | null;
|
390
407
|
isInTrash: boolean;
|
391
408
|
movedToTrashDate: string | null;
|
409
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
392
410
|
}>>;
|
393
411
|
export declare class UpdateProfileResponseDto extends UpdateProfileResponseDto_base {
|
394
412
|
}
|
@@ -2,6 +2,13 @@ import z from 'zod';
|
|
2
2
|
export declare const profileSchema: z.ZodObject<{
|
3
3
|
id: z.ZodString;
|
4
4
|
shortId: z.ZodNumber;
|
5
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
6
|
+
USER: "USER";
|
7
|
+
ADMIN: "ADMIN";
|
8
|
+
FORM: "FORM";
|
9
|
+
TICKETS: "TICKETS";
|
10
|
+
MI_EXPO: "MI_EXPO";
|
11
|
+
}>>;
|
5
12
|
firstTimeMiExpo: z.ZodBoolean;
|
6
13
|
username: z.ZodNullable<z.ZodString>;
|
7
14
|
password: z.ZodNullable<z.ZodString>;
|
@@ -27,6 +34,7 @@ export declare const profileSchema: z.ZodObject<{
|
|
27
34
|
id: string;
|
28
35
|
username: string | null;
|
29
36
|
password: string | null;
|
37
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
30
38
|
phoneNumber: string;
|
31
39
|
secondaryPhoneNumber: string | null;
|
32
40
|
fullName: string;
|
@@ -71,4 +79,5 @@ export declare const profileSchema: z.ZodObject<{
|
|
71
79
|
residenceLocationId: string | null;
|
72
80
|
isInTrash: boolean;
|
73
81
|
movedToTrashDate: Date | null;
|
82
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
74
83
|
}>;
|
@@ -30,6 +30,7 @@ exports.profileSchema = void 0;
|
|
30
30
|
const translate_1 = require("../i18n/translate");
|
31
31
|
const libphonenumber_js_1 = __importStar(require("libphonenumber-js"));
|
32
32
|
const zod_1 = __importDefault(require("zod"));
|
33
|
+
const prisma_schema_1 = require("../../types/prisma-schema/index.js");
|
33
34
|
function formatArgNumber(phoneNumber, value) {
|
34
35
|
const prefixes9 = ['11', '15'];
|
35
36
|
const prefix = prefixes9.includes(phoneNumber?.nationalNumber?.slice(0, 2) ?? '')
|
@@ -45,6 +46,7 @@ exports.profileSchema = zod_1.default.object({
|
|
45
46
|
message: (0, translate_1.translate)('model.profile.id.uuid'),
|
46
47
|
}),
|
47
48
|
shortId: zod_1.default.number(),
|
49
|
+
role: zod_1.default.nativeEnum(prisma_schema_1.Role).default(prisma_schema_1.Role.MI_EXPO),
|
48
50
|
firstTimeMiExpo: zod_1.default.boolean(),
|
49
51
|
username: zod_1.default.string().nullable(),
|
50
52
|
password: zod_1.default.string().nullable(),
|
@@ -25,6 +25,13 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
25
25
|
profiles: z.ZodArray<z.ZodObject<{
|
26
26
|
id: z.ZodString;
|
27
27
|
shortId: z.ZodNumber;
|
28
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
29
|
+
USER: "USER";
|
30
|
+
ADMIN: "ADMIN";
|
31
|
+
FORM: "FORM";
|
32
|
+
TICKETS: "TICKETS";
|
33
|
+
MI_EXPO: "MI_EXPO";
|
34
|
+
}>>;
|
28
35
|
firstTimeMiExpo: z.ZodBoolean;
|
29
36
|
username: z.ZodNullable<z.ZodString>;
|
30
37
|
password: z.ZodNullable<z.ZodString>;
|
@@ -50,6 +57,7 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
50
57
|
id: string;
|
51
58
|
username: string | null;
|
52
59
|
password: string | null;
|
60
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
53
61
|
phoneNumber: string;
|
54
62
|
secondaryPhoneNumber: string | null;
|
55
63
|
fullName: string;
|
@@ -94,12 +102,14 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
94
102
|
residenceLocationId: string | null;
|
95
103
|
isInTrash: boolean;
|
96
104
|
movedToTrashDate: Date | null;
|
105
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
97
106
|
}>, "many">;
|
98
107
|
}, "strip", z.ZodTypeAny, {
|
99
108
|
profiles: {
|
100
109
|
id: string;
|
101
110
|
username: string | null;
|
102
111
|
password: string | null;
|
112
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
103
113
|
phoneNumber: string;
|
104
114
|
secondaryPhoneNumber: string | null;
|
105
115
|
fullName: string;
|
@@ -146,12 +156,20 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
146
156
|
residenceLocationId: string | null;
|
147
157
|
isInTrash: boolean;
|
148
158
|
movedToTrashDate: Date | null;
|
159
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
149
160
|
}[];
|
150
161
|
}>;
|
151
162
|
declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
152
163
|
profiles: z.ZodArray<z.ZodObject<{
|
153
164
|
id: z.ZodString;
|
154
165
|
shortId: z.ZodNumber;
|
166
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
167
|
+
USER: "USER";
|
168
|
+
ADMIN: "ADMIN";
|
169
|
+
FORM: "FORM";
|
170
|
+
TICKETS: "TICKETS";
|
171
|
+
MI_EXPO: "MI_EXPO";
|
172
|
+
}>>;
|
155
173
|
firstTimeMiExpo: z.ZodBoolean;
|
156
174
|
username: z.ZodNullable<z.ZodString>;
|
157
175
|
password: z.ZodNullable<z.ZodString>;
|
@@ -177,6 +195,7 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
177
195
|
id: string;
|
178
196
|
username: string | null;
|
179
197
|
password: string | null;
|
198
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
180
199
|
phoneNumber: string;
|
181
200
|
secondaryPhoneNumber: string | null;
|
182
201
|
fullName: string;
|
@@ -221,12 +240,14 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
221
240
|
residenceLocationId: string | null;
|
222
241
|
isInTrash: boolean;
|
223
242
|
movedToTrashDate: string | null;
|
243
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
224
244
|
}>, "many">;
|
225
245
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
226
246
|
profiles: {
|
227
247
|
id: string;
|
228
248
|
username: string | null;
|
229
249
|
password: string | null;
|
250
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
230
251
|
phoneNumber: string;
|
231
252
|
secondaryPhoneNumber: string | null;
|
232
253
|
fullName: string;
|
@@ -273,6 +294,7 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
273
294
|
residenceLocationId: string | null;
|
274
295
|
isInTrash: boolean;
|
275
296
|
movedToTrashDate: string | null;
|
297
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
276
298
|
}[];
|
277
299
|
}>>;
|
278
300
|
export declare class MassiveAllocationResponseDto extends MassiveAllocationResponseDto_base {
|
@@ -25,6 +25,13 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
25
25
|
profiles: z.ZodArray<z.ZodObject<{
|
26
26
|
id: z.ZodString;
|
27
27
|
shortId: z.ZodNumber;
|
28
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
29
|
+
USER: "USER";
|
30
|
+
ADMIN: "ADMIN";
|
31
|
+
FORM: "FORM";
|
32
|
+
TICKETS: "TICKETS";
|
33
|
+
MI_EXPO: "MI_EXPO";
|
34
|
+
}>>;
|
28
35
|
firstTimeMiExpo: z.ZodBoolean;
|
29
36
|
username: z.ZodNullable<z.ZodString>;
|
30
37
|
password: z.ZodNullable<z.ZodString>;
|
@@ -50,6 +57,7 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
50
57
|
id: string;
|
51
58
|
username: string | null;
|
52
59
|
password: string | null;
|
60
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
53
61
|
phoneNumber: string;
|
54
62
|
secondaryPhoneNumber: string | null;
|
55
63
|
fullName: string;
|
@@ -94,12 +102,14 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
94
102
|
residenceLocationId: string | null;
|
95
103
|
isInTrash: boolean;
|
96
104
|
movedToTrashDate: Date | null;
|
105
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
97
106
|
}>, "many">;
|
98
107
|
}, "strip", z.ZodTypeAny, {
|
99
108
|
profiles: {
|
100
109
|
id: string;
|
101
110
|
username: string | null;
|
102
111
|
password: string | null;
|
112
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
103
113
|
phoneNumber: string;
|
104
114
|
secondaryPhoneNumber: string | null;
|
105
115
|
fullName: string;
|
@@ -146,12 +156,20 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
146
156
|
residenceLocationId: string | null;
|
147
157
|
isInTrash: boolean;
|
148
158
|
movedToTrashDate: Date | null;
|
159
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
149
160
|
}[];
|
150
161
|
}>;
|
151
162
|
declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
152
163
|
profiles: z.ZodArray<z.ZodObject<{
|
153
164
|
id: z.ZodString;
|
154
165
|
shortId: z.ZodNumber;
|
166
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
167
|
+
USER: "USER";
|
168
|
+
ADMIN: "ADMIN";
|
169
|
+
FORM: "FORM";
|
170
|
+
TICKETS: "TICKETS";
|
171
|
+
MI_EXPO: "MI_EXPO";
|
172
|
+
}>>;
|
155
173
|
firstTimeMiExpo: z.ZodBoolean;
|
156
174
|
username: z.ZodNullable<z.ZodString>;
|
157
175
|
password: z.ZodNullable<z.ZodString>;
|
@@ -177,6 +195,7 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
177
195
|
id: string;
|
178
196
|
username: string | null;
|
179
197
|
password: string | null;
|
198
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
180
199
|
phoneNumber: string;
|
181
200
|
secondaryPhoneNumber: string | null;
|
182
201
|
fullName: string;
|
@@ -221,12 +240,14 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
221
240
|
residenceLocationId: string | null;
|
222
241
|
isInTrash: boolean;
|
223
242
|
movedToTrashDate: string | null;
|
243
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
224
244
|
}>, "many">;
|
225
245
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
226
246
|
profiles: {
|
227
247
|
id: string;
|
228
248
|
username: string | null;
|
229
249
|
password: string | null;
|
250
|
+
role: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO";
|
230
251
|
phoneNumber: string;
|
231
252
|
secondaryPhoneNumber: string | null;
|
232
253
|
fullName: string;
|
@@ -273,6 +294,7 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
273
294
|
residenceLocationId: string | null;
|
274
295
|
isInTrash: boolean;
|
275
296
|
movedToTrashDate: string | null;
|
297
|
+
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
276
298
|
}[];
|
277
299
|
}>>;
|
278
300
|
export declare class MassiveDeallocationResponseDto extends MassiveDeallocationResponseDto_base {
|