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