expo-backend-types 0.34.0-EXPO-319-ver-eventos-disponibles.11 → 0.34.0-EXPO-319-ver-eventos-disponibles.12
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/i18n/es.d.ts +2 -0
- package/dist/src/i18n/es.js +2 -0
- package/dist/src/i18n/es.js.map +1 -1
- 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 -0
- 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 +20 -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/find-by-event-ticket.dto.d.ts +24 -0
- package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +24 -0
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +24 -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 +66 -2
- 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 +3 -0
- package/dist/types/prisma-schema/wasm.js +3 -1
- package/dist/types/schema.d.ts +22 -5
- package/package.json +1 -1
@@ -3,6 +3,12 @@ export declare const findByTagGroupsProfileResponseSchema: 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>;
|
@@ -56,6 +62,7 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
|
|
56
62
|
id: string;
|
57
63
|
username: string | null;
|
58
64
|
password: string | null;
|
65
|
+
role: "USER" | "ADMIN" | "FORM" | "MI_EXPO";
|
59
66
|
phoneNumber: string;
|
60
67
|
secondaryPhoneNumber: string | null;
|
61
68
|
fullName: string;
|
@@ -116,12 +123,14 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
|
|
116
123
|
updated_at: Date;
|
117
124
|
groupId: string;
|
118
125
|
}[];
|
126
|
+
role?: "USER" | "ADMIN" | "FORM" | "MI_EXPO" | undefined;
|
119
127
|
}>, "many">;
|
120
128
|
}, "strip", z.ZodTypeAny, {
|
121
129
|
profiles: {
|
122
130
|
id: string;
|
123
131
|
username: string | null;
|
124
132
|
password: string | null;
|
133
|
+
role: "USER" | "ADMIN" | "FORM" | "MI_EXPO";
|
125
134
|
phoneNumber: string;
|
126
135
|
secondaryPhoneNumber: string | null;
|
127
136
|
fullName: string;
|
@@ -184,12 +193,19 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
|
|
184
193
|
updated_at: Date;
|
185
194
|
groupId: string;
|
186
195
|
}[];
|
196
|
+
role?: "USER" | "ADMIN" | "FORM" | "MI_EXPO" | undefined;
|
187
197
|
}[];
|
188
198
|
}>;
|
189
199
|
declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
190
200
|
profiles: z.ZodArray<z.ZodObject<{
|
191
201
|
id: z.ZodString;
|
192
202
|
shortId: z.ZodNumber;
|
203
|
+
role: z.ZodDefault<z.ZodNativeEnum<{
|
204
|
+
USER: "USER";
|
205
|
+
ADMIN: "ADMIN";
|
206
|
+
FORM: "FORM";
|
207
|
+
MI_EXPO: "MI_EXPO";
|
208
|
+
}>>;
|
193
209
|
firstTimeMiExpo: z.ZodBoolean;
|
194
210
|
username: z.ZodNullable<z.ZodString>;
|
195
211
|
password: z.ZodNullable<z.ZodString>;
|
@@ -242,6 +258,7 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
|
|
242
258
|
id: string;
|
243
259
|
username: string | null;
|
244
260
|
password: string | null;
|
261
|
+
role: "USER" | "ADMIN" | "FORM" | "MI_EXPO";
|
245
262
|
phoneNumber: string;
|
246
263
|
secondaryPhoneNumber: string | null;
|
247
264
|
fullName: string;
|
@@ -302,12 +319,14 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
|
|
302
319
|
updated_at: string;
|
303
320
|
groupId: string;
|
304
321
|
}[];
|
322
|
+
role?: "USER" | "ADMIN" | "FORM" | "MI_EXPO" | undefined;
|
305
323
|
}>, "many">;
|
306
324
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
307
325
|
profiles: {
|
308
326
|
id: string;
|
309
327
|
username: string | null;
|
310
328
|
password: string | null;
|
329
|
+
role: "USER" | "ADMIN" | "FORM" | "MI_EXPO";
|
311
330
|
phoneNumber: string;
|
312
331
|
secondaryPhoneNumber: string | null;
|
313
332
|
fullName: string;
|
@@ -370,6 +389,7 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
|
|
370
389
|
updated_at: string;
|
371
390
|
groupId: string;
|
372
391
|
}[];
|
392
|
+
role?: "USER" | "ADMIN" | "FORM" | "MI_EXPO" | undefined;
|
373
393
|
}[];
|
374
394
|
}>>;
|
375
395
|
export declare class FindByTagGroupsProfileResponseDto extends FindByTagGroupsProfileResponseDto_base {
|
@@ -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>;
|
@@ -83,6 +89,7 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
83
89
|
id: string;
|
84
90
|
username: string | null;
|
85
91
|
password: string | null;
|
92
|
+
role: "USER" | "ADMIN" | "FORM" | "MI_EXPO";
|
86
93
|
phoneNumber: string;
|
87
94
|
secondaryPhoneNumber: string | null;
|
88
95
|
fullName: string;
|
@@ -153,12 +160,14 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
153
160
|
isExclusive: boolean;
|
154
161
|
};
|
155
162
|
}[];
|
163
|
+
role?: "USER" | "ADMIN" | "FORM" | "MI_EXPO" | undefined;
|
156
164
|
}>, "many">;
|
157
165
|
}, "strip", z.ZodTypeAny, {
|
158
166
|
profiles: {
|
159
167
|
id: string;
|
160
168
|
username: string | null;
|
161
169
|
password: string | null;
|
170
|
+
role: "USER" | "ADMIN" | "FORM" | "MI_EXPO";
|
162
171
|
phoneNumber: string;
|
163
172
|
secondaryPhoneNumber: string | null;
|
164
173
|
fullName: string;
|
@@ -231,12 +240,19 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
231
240
|
isExclusive: boolean;
|
232
241
|
};
|
233
242
|
}[];
|
243
|
+
role?: "USER" | "ADMIN" | "FORM" | "MI_EXPO" | undefined;
|
234
244
|
}[];
|
235
245
|
}>;
|
236
246
|
declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
237
247
|
profiles: z.ZodArray<z.ZodObject<{
|
238
248
|
id: z.ZodString;
|
239
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
|
+
}>>;
|
240
256
|
firstTimeMiExpo: z.ZodBoolean;
|
241
257
|
username: z.ZodNullable<z.ZodString>;
|
242
258
|
password: z.ZodNullable<z.ZodString>;
|
@@ -312,6 +328,7 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
312
328
|
id: string;
|
313
329
|
username: string | null;
|
314
330
|
password: string | null;
|
331
|
+
role: "USER" | "ADMIN" | "FORM" | "MI_EXPO";
|
315
332
|
phoneNumber: string;
|
316
333
|
secondaryPhoneNumber: string | null;
|
317
334
|
fullName: string;
|
@@ -382,12 +399,14 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
382
399
|
isExclusive: boolean;
|
383
400
|
};
|
384
401
|
}[];
|
402
|
+
role?: "USER" | "ADMIN" | "FORM" | "MI_EXPO" | undefined;
|
385
403
|
}>, "many">;
|
386
404
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
387
405
|
profiles: {
|
388
406
|
id: string;
|
389
407
|
username: string | null;
|
390
408
|
password: string | null;
|
409
|
+
role: "USER" | "ADMIN" | "FORM" | "MI_EXPO";
|
391
410
|
phoneNumber: string;
|
392
411
|
secondaryPhoneNumber: string | null;
|
393
412
|
fullName: string;
|
@@ -460,6 +479,7 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
460
479
|
isExclusive: boolean;
|
461
480
|
};
|
462
481
|
}[];
|
482
|
+
role?: "USER" | "ADMIN" | "FORM" | "MI_EXPO" | undefined;
|
463
483
|
}[];
|
464
484
|
}>>;
|
465
485
|
export declare class FindByTagsProfileResponseDto extends FindByTagsProfileResponseDto_base {
|
@@ -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 {
|