expo-backend-types 0.57.0 → 0.58.0-EXPO-404-Etapa-4-Paquete-02.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/dynamic-form/dto/create-dynamic-form.dto.d.ts +10 -0
- package/dist/src/dynamic-form/dto/dynamic-form.dto.d.ts +27 -0
- package/dist/src/dynamic-form/dto/dynamic-form.dto.js +8 -1
- package/dist/src/dynamic-form/dto/find-all-dynamic-form.dto.d.ts +14 -0
- package/dist/src/dynamic-form/dto/find-by-id-dynamic-question.dto.d.ts +266 -0
- package/dist/src/dynamic-form/dto/find-by-id-dynamic-question.dto.js +19 -0
- package/dist/src/dynamic-form/dto/find-by-type-dynamic-form.dto.d.ts +266 -0
- package/dist/src/dynamic-form/dto/find-by-type-dynamic-form.dto.js +18 -0
- package/dist/src/dynamic-form/dto/submit-dynamic-form.dto.d.ts +350 -0
- package/dist/src/dynamic-form/dto/submit-dynamic-form.dto.js +23 -0
- package/dist/src/dynamic-form/dto/update-dynamic-form.dto.d.ts +19 -0
- package/dist/src/dynamic-form/exports.d.ts +2 -0
- package/dist/src/dynamic-form/exports.js +2 -0
- package/dist/src/i18n/es.d.ts +21 -0
- package/dist/src/i18n/es.js +21 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/mi-expo/dto/get-me.dto.d.ts +20 -0
- package/dist/src/mi-expo/dto/update-me-first-time.dto.d.ts +382 -0
- package/dist/src/mi-expo/dto/update-me-first-time.dto.js +35 -0
- package/dist/src/mi-expo/exports.d.ts +1 -0
- package/dist/src/mi-expo/exports.js +1 -0
- package/dist/src/production/dto/create-production.dto.d.ts +8 -1
- package/dist/src/production/dto/create-production.dto.js +1 -0
- package/dist/src/production/dto/delete-production.dto.d.ts +6 -0
- package/dist/src/production/dto/get-all-production.dto.d.ts +10 -0
- package/dist/src/production/dto/production.dto.d.ts +3 -0
- package/dist/src/production/dto/production.dto.js +3 -0
- package/dist/src/production/dto/update-production.dto.d.ts +12 -0
- package/dist/src/production/dto/update-production.dto.js +1 -0
- package/dist/src/production-affiliation-request/dto/find-by-production-affiliation-request.dto.d.ts +14 -0
- package/dist/src/production-affiliation-request/dto/update-production-affiliation-request.dto.d.ts +10 -0
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +141 -2
- package/dist/src/profile/dto/find-by-phone-number.dto.js +21 -1
- package/dist/src/schema/profile.schema.js +16 -2
- package/dist/types/prisma-schema/edge.js +11 -3
- package/dist/types/prisma-schema/index-browser.js +8 -0
- package/dist/types/prisma-schema/index.d.ts +150 -2
- package/dist/types/prisma-schema/index.js +11 -3
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +11 -3
- package/dist/types/prisma-schema/wasm.js +8 -0
- package/dist/types/schema.d.ts +274 -0
- package/package.json +1 -1
@@ -1,20 +1,26 @@
|
|
1
1
|
export declare const updateProductionSchema: import("zod").ZodObject<{
|
2
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
2
3
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
3
4
|
administratorId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
4
5
|
}, "strip", import("zod").ZodTypeAny, {
|
6
|
+
description?: string | undefined;
|
5
7
|
name?: string | undefined;
|
6
8
|
administratorId?: string | null | undefined;
|
7
9
|
}, {
|
10
|
+
description?: string | undefined;
|
8
11
|
name?: string | undefined;
|
9
12
|
administratorId?: string | null | undefined;
|
10
13
|
}>;
|
11
14
|
declare const UpdateProductionDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
15
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
12
16
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
13
17
|
administratorId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
14
18
|
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
19
|
+
description?: string | undefined;
|
15
20
|
name?: string | undefined;
|
16
21
|
administratorId?: string | null | undefined;
|
17
22
|
}, {
|
23
|
+
description?: string | undefined;
|
18
24
|
name?: string | undefined;
|
19
25
|
administratorId?: string | null | undefined;
|
20
26
|
}>>;
|
@@ -23,16 +29,19 @@ export declare class UpdateProductionDto extends UpdateProductionDto_base {
|
|
23
29
|
export declare const updateProductionResponseSchema: import("zod").ZodObject<{
|
24
30
|
id: import("zod").ZodString;
|
25
31
|
name: import("zod").ZodString;
|
32
|
+
description: import("zod").ZodString;
|
26
33
|
administratorId: import("zod").ZodNullable<import("zod").ZodString>;
|
27
34
|
created_at: import("zod").ZodDate;
|
28
35
|
updated_at: import("zod").ZodDate;
|
29
36
|
}, "strip", import("zod").ZodTypeAny, {
|
37
|
+
description: string;
|
30
38
|
id: string;
|
31
39
|
name: string;
|
32
40
|
created_at: Date;
|
33
41
|
updated_at: Date;
|
34
42
|
administratorId: string | null;
|
35
43
|
}, {
|
44
|
+
description: string;
|
36
45
|
id: string;
|
37
46
|
name: string;
|
38
47
|
created_at: Date;
|
@@ -42,16 +51,19 @@ export declare const updateProductionResponseSchema: import("zod").ZodObject<{
|
|
42
51
|
declare const UpdateProductionResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
43
52
|
id: import("zod").ZodString;
|
44
53
|
name: import("zod").ZodString;
|
54
|
+
description: import("zod").ZodString;
|
45
55
|
administratorId: import("zod").ZodNullable<import("zod").ZodString>;
|
46
56
|
created_at: import("zod").ZodString;
|
47
57
|
updated_at: import("zod").ZodString;
|
48
58
|
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
59
|
+
description: string;
|
49
60
|
id: string;
|
50
61
|
name: string;
|
51
62
|
created_at: string;
|
52
63
|
updated_at: string;
|
53
64
|
administratorId: string | null;
|
54
65
|
}, {
|
66
|
+
description: string;
|
55
67
|
id: string;
|
56
68
|
name: string;
|
57
69
|
created_at: string;
|
package/dist/src/production-affiliation-request/dto/find-by-production-affiliation-request.dto.d.ts
CHANGED
@@ -15,16 +15,19 @@ export declare const findByProductionAffiliationRequestResponseSchema: z.ZodObje
|
|
15
15
|
production: z.ZodObject<{
|
16
16
|
id: z.ZodString;
|
17
17
|
name: z.ZodString;
|
18
|
+
description: z.ZodString;
|
18
19
|
administratorId: z.ZodNullable<z.ZodString>;
|
19
20
|
created_at: z.ZodDate;
|
20
21
|
updated_at: z.ZodDate;
|
21
22
|
}, "strip", z.ZodTypeAny, {
|
23
|
+
description: string;
|
22
24
|
id: string;
|
23
25
|
name: string;
|
24
26
|
created_at: Date;
|
25
27
|
updated_at: Date;
|
26
28
|
administratorId: string | null;
|
27
29
|
}, {
|
30
|
+
description: string;
|
28
31
|
id: string;
|
29
32
|
name: string;
|
30
33
|
created_at: Date;
|
@@ -145,6 +148,7 @@ export declare const findByProductionAffiliationRequestResponseSchema: z.ZodObje
|
|
145
148
|
movedToTrashDate: Date | null;
|
146
149
|
};
|
147
150
|
production: {
|
151
|
+
description: string;
|
148
152
|
id: string;
|
149
153
|
name: string;
|
150
154
|
created_at: Date;
|
@@ -186,6 +190,7 @@ export declare const findByProductionAffiliationRequestResponseSchema: z.ZodObje
|
|
186
190
|
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
187
191
|
};
|
188
192
|
production: {
|
193
|
+
description: string;
|
189
194
|
id: string;
|
190
195
|
name: string;
|
191
196
|
created_at: Date;
|
@@ -229,6 +234,7 @@ export declare const findByProductionAffiliationRequestResponseSchema: z.ZodObje
|
|
229
234
|
movedToTrashDate: Date | null;
|
230
235
|
};
|
231
236
|
production: {
|
237
|
+
description: string;
|
232
238
|
id: string;
|
233
239
|
name: string;
|
234
240
|
created_at: Date;
|
@@ -272,6 +278,7 @@ export declare const findByProductionAffiliationRequestResponseSchema: z.ZodObje
|
|
272
278
|
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
273
279
|
};
|
274
280
|
production: {
|
281
|
+
description: string;
|
275
282
|
id: string;
|
276
283
|
name: string;
|
277
284
|
created_at: Date;
|
@@ -301,16 +308,19 @@ declare const FindByProductionAffiliationRequestResponseDto_base: import("@anati
|
|
301
308
|
production: z.ZodObject<{
|
302
309
|
id: z.ZodString;
|
303
310
|
name: z.ZodString;
|
311
|
+
description: z.ZodString;
|
304
312
|
administratorId: z.ZodNullable<z.ZodString>;
|
305
313
|
created_at: z.ZodString;
|
306
314
|
updated_at: z.ZodString;
|
307
315
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
316
|
+
description: string;
|
308
317
|
id: string;
|
309
318
|
name: string;
|
310
319
|
created_at: string;
|
311
320
|
updated_at: string;
|
312
321
|
administratorId: string | null;
|
313
322
|
}, {
|
323
|
+
description: string;
|
314
324
|
id: string;
|
315
325
|
name: string;
|
316
326
|
created_at: string;
|
@@ -431,6 +441,7 @@ declare const FindByProductionAffiliationRequestResponseDto_base: import("@anati
|
|
431
441
|
movedToTrashDate: string | null;
|
432
442
|
};
|
433
443
|
production: {
|
444
|
+
description: string;
|
434
445
|
id: string;
|
435
446
|
name: string;
|
436
447
|
created_at: string;
|
@@ -472,6 +483,7 @@ declare const FindByProductionAffiliationRequestResponseDto_base: import("@anati
|
|
472
483
|
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
473
484
|
};
|
474
485
|
production: {
|
486
|
+
description: string;
|
475
487
|
id: string;
|
476
488
|
name: string;
|
477
489
|
created_at: string;
|
@@ -515,6 +527,7 @@ declare const FindByProductionAffiliationRequestResponseDto_base: import("@anati
|
|
515
527
|
movedToTrashDate: string | null;
|
516
528
|
};
|
517
529
|
production: {
|
530
|
+
description: string;
|
518
531
|
id: string;
|
519
532
|
name: string;
|
520
533
|
created_at: string;
|
@@ -558,6 +571,7 @@ declare const FindByProductionAffiliationRequestResponseDto_base: import("@anati
|
|
558
571
|
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
559
572
|
};
|
560
573
|
production: {
|
574
|
+
description: string;
|
561
575
|
id: string;
|
562
576
|
name: string;
|
563
577
|
created_at: string;
|
package/dist/src/production-affiliation-request/dto/update-production-affiliation-request.dto.d.ts
CHANGED
@@ -13,16 +13,19 @@ export declare const updateProductionAffiliationRequestResponseSchema: import("z
|
|
13
13
|
production: import("zod").ZodObject<{
|
14
14
|
id: import("zod").ZodString;
|
15
15
|
name: import("zod").ZodString;
|
16
|
+
description: import("zod").ZodString;
|
16
17
|
administratorId: import("zod").ZodNullable<import("zod").ZodString>;
|
17
18
|
created_at: import("zod").ZodDate;
|
18
19
|
updated_at: import("zod").ZodDate;
|
19
20
|
}, "strip", import("zod").ZodTypeAny, {
|
21
|
+
description: string;
|
20
22
|
id: string;
|
21
23
|
name: string;
|
22
24
|
created_at: Date;
|
23
25
|
updated_at: Date;
|
24
26
|
administratorId: string | null;
|
25
27
|
}, {
|
28
|
+
description: string;
|
26
29
|
id: string;
|
27
30
|
name: string;
|
28
31
|
created_at: Date;
|
@@ -143,6 +146,7 @@ export declare const updateProductionAffiliationRequestResponseSchema: import("z
|
|
143
146
|
movedToTrashDate: Date | null;
|
144
147
|
};
|
145
148
|
production: {
|
149
|
+
description: string;
|
146
150
|
id: string;
|
147
151
|
name: string;
|
148
152
|
created_at: Date;
|
@@ -184,6 +188,7 @@ export declare const updateProductionAffiliationRequestResponseSchema: import("z
|
|
184
188
|
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
185
189
|
};
|
186
190
|
production: {
|
191
|
+
description: string;
|
187
192
|
id: string;
|
188
193
|
name: string;
|
189
194
|
created_at: Date;
|
@@ -211,16 +216,19 @@ declare const UpdateProductionAffiliationRequestResponseDto_base: import("@anati
|
|
211
216
|
production: import("zod").ZodObject<{
|
212
217
|
id: import("zod").ZodString;
|
213
218
|
name: import("zod").ZodString;
|
219
|
+
description: import("zod").ZodString;
|
214
220
|
administratorId: import("zod").ZodNullable<import("zod").ZodString>;
|
215
221
|
created_at: import("zod").ZodString;
|
216
222
|
updated_at: import("zod").ZodString;
|
217
223
|
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
224
|
+
description: string;
|
218
225
|
id: string;
|
219
226
|
name: string;
|
220
227
|
created_at: string;
|
221
228
|
updated_at: string;
|
222
229
|
administratorId: string | null;
|
223
230
|
}, {
|
231
|
+
description: string;
|
224
232
|
id: string;
|
225
233
|
name: string;
|
226
234
|
created_at: string;
|
@@ -341,6 +349,7 @@ declare const UpdateProductionAffiliationRequestResponseDto_base: import("@anati
|
|
341
349
|
movedToTrashDate: string | null;
|
342
350
|
};
|
343
351
|
production: {
|
352
|
+
description: string;
|
344
353
|
id: string;
|
345
354
|
name: string;
|
346
355
|
created_at: string;
|
@@ -382,6 +391,7 @@ declare const UpdateProductionAffiliationRequestResponseDto_base: import("@anati
|
|
382
391
|
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
383
392
|
};
|
384
393
|
production: {
|
394
|
+
description: string;
|
385
395
|
id: string;
|
386
396
|
name: string;
|
387
397
|
created_at: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const findByPhoneNumberResponseSchema: import("zod").ZodObject<{
|
1
|
+
export declare const findByPhoneNumberResponseSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
2
2
|
id: import("zod").ZodString;
|
3
3
|
shortId: import("zod").ZodNumber;
|
4
4
|
role: import("zod").ZodDefault<import("zod").ZodNativeEnum<{
|
@@ -30,7 +30,52 @@ export declare const findByPhoneNumberResponseSchema: import("zod").ZodObject<{
|
|
30
30
|
created_at: import("zod").ZodDate;
|
31
31
|
updated_at: import("zod").ZodDate;
|
32
32
|
referralCode: import("zod").ZodString;
|
33
|
-
},
|
33
|
+
}, {
|
34
|
+
residenceLocation: import("zod").ZodNullable<import("zod").ZodObject<Pick<{
|
35
|
+
id: import("zod").ZodString;
|
36
|
+
latitude: import("zod").ZodNumber;
|
37
|
+
longitude: import("zod").ZodNumber;
|
38
|
+
country: import("zod").ZodString;
|
39
|
+
state: import("zod").ZodString;
|
40
|
+
city: import("zod").ZodString;
|
41
|
+
created_at: import("zod").ZodDate;
|
42
|
+
updated_at: import("zod").ZodDate;
|
43
|
+
}, "latitude" | "longitude" | "state" | "country" | "city">, "strip", import("zod").ZodTypeAny, {
|
44
|
+
latitude: number;
|
45
|
+
longitude: number;
|
46
|
+
state: string;
|
47
|
+
country: string;
|
48
|
+
city: string;
|
49
|
+
}, {
|
50
|
+
latitude: number;
|
51
|
+
longitude: number;
|
52
|
+
state: string;
|
53
|
+
country: string;
|
54
|
+
city: string;
|
55
|
+
}>>;
|
56
|
+
birthLocation: import("zod").ZodNullable<import("zod").ZodObject<Pick<{
|
57
|
+
id: import("zod").ZodString;
|
58
|
+
latitude: import("zod").ZodNumber;
|
59
|
+
longitude: import("zod").ZodNumber;
|
60
|
+
country: import("zod").ZodString;
|
61
|
+
state: import("zod").ZodString;
|
62
|
+
city: import("zod").ZodString;
|
63
|
+
created_at: import("zod").ZodDate;
|
64
|
+
updated_at: import("zod").ZodDate;
|
65
|
+
}, "latitude" | "longitude" | "state" | "country" | "city">, "strip", import("zod").ZodTypeAny, {
|
66
|
+
latitude: number;
|
67
|
+
longitude: number;
|
68
|
+
state: string;
|
69
|
+
country: string;
|
70
|
+
city: string;
|
71
|
+
}, {
|
72
|
+
latitude: number;
|
73
|
+
longitude: number;
|
74
|
+
state: string;
|
75
|
+
country: string;
|
76
|
+
city: string;
|
77
|
+
}>>;
|
78
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
34
79
|
id: string;
|
35
80
|
username: string | null;
|
36
81
|
password: string | null;
|
@@ -56,6 +101,20 @@ export declare const findByPhoneNumberResponseSchema: import("zod").ZodObject<{
|
|
56
101
|
residenceLocationId: string | null;
|
57
102
|
isInTrash: boolean;
|
58
103
|
movedToTrashDate: Date | null;
|
104
|
+
birthLocation: {
|
105
|
+
latitude: number;
|
106
|
+
longitude: number;
|
107
|
+
state: string;
|
108
|
+
country: string;
|
109
|
+
city: string;
|
110
|
+
} | null;
|
111
|
+
residenceLocation: {
|
112
|
+
latitude: number;
|
113
|
+
longitude: number;
|
114
|
+
state: string;
|
115
|
+
country: string;
|
116
|
+
city: string;
|
117
|
+
} | null;
|
59
118
|
}, {
|
60
119
|
id: string;
|
61
120
|
username: string | null;
|
@@ -81,6 +140,20 @@ export declare const findByPhoneNumberResponseSchema: import("zod").ZodObject<{
|
|
81
140
|
residenceLocationId: string | null;
|
82
141
|
isInTrash: boolean;
|
83
142
|
movedToTrashDate: Date | null;
|
143
|
+
birthLocation: {
|
144
|
+
latitude: number;
|
145
|
+
longitude: number;
|
146
|
+
state: string;
|
147
|
+
country: string;
|
148
|
+
city: string;
|
149
|
+
} | null;
|
150
|
+
residenceLocation: {
|
151
|
+
latitude: number;
|
152
|
+
longitude: number;
|
153
|
+
state: string;
|
154
|
+
country: string;
|
155
|
+
city: string;
|
156
|
+
} | null;
|
84
157
|
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
85
158
|
}>;
|
86
159
|
declare const FindByPhoneNumberResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
@@ -115,6 +188,44 @@ declare const FindByPhoneNumberResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
115
188
|
created_at: import("zod").ZodString;
|
116
189
|
updated_at: import("zod").ZodString;
|
117
190
|
referralCode: import("zod").ZodString;
|
191
|
+
residenceLocation: import("zod").ZodNullable<import("zod").ZodObject<{
|
192
|
+
latitude: import("zod").ZodNumber;
|
193
|
+
longitude: import("zod").ZodNumber;
|
194
|
+
state: import("zod").ZodString;
|
195
|
+
country: import("zod").ZodString;
|
196
|
+
city: import("zod").ZodString;
|
197
|
+
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
198
|
+
latitude: number;
|
199
|
+
longitude: number;
|
200
|
+
state: string;
|
201
|
+
country: string;
|
202
|
+
city: string;
|
203
|
+
}, {
|
204
|
+
latitude: number;
|
205
|
+
longitude: number;
|
206
|
+
state: string;
|
207
|
+
country: string;
|
208
|
+
city: string;
|
209
|
+
}>>;
|
210
|
+
birthLocation: import("zod").ZodNullable<import("zod").ZodObject<{
|
211
|
+
latitude: import("zod").ZodNumber;
|
212
|
+
longitude: import("zod").ZodNumber;
|
213
|
+
state: import("zod").ZodString;
|
214
|
+
country: import("zod").ZodString;
|
215
|
+
city: import("zod").ZodString;
|
216
|
+
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
217
|
+
latitude: number;
|
218
|
+
longitude: number;
|
219
|
+
state: string;
|
220
|
+
country: string;
|
221
|
+
city: string;
|
222
|
+
}, {
|
223
|
+
latitude: number;
|
224
|
+
longitude: number;
|
225
|
+
state: string;
|
226
|
+
country: string;
|
227
|
+
city: string;
|
228
|
+
}>>;
|
118
229
|
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
119
230
|
id: string;
|
120
231
|
username: string | null;
|
@@ -141,6 +252,20 @@ declare const FindByPhoneNumberResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
141
252
|
residenceLocationId: string | null;
|
142
253
|
isInTrash: boolean;
|
143
254
|
movedToTrashDate: string | null;
|
255
|
+
birthLocation: {
|
256
|
+
latitude: number;
|
257
|
+
longitude: number;
|
258
|
+
state: string;
|
259
|
+
country: string;
|
260
|
+
city: string;
|
261
|
+
} | null;
|
262
|
+
residenceLocation: {
|
263
|
+
latitude: number;
|
264
|
+
longitude: number;
|
265
|
+
state: string;
|
266
|
+
country: string;
|
267
|
+
city: string;
|
268
|
+
} | null;
|
144
269
|
}, {
|
145
270
|
id: string;
|
146
271
|
username: string | null;
|
@@ -166,6 +291,20 @@ declare const FindByPhoneNumberResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
166
291
|
residenceLocationId: string | null;
|
167
292
|
isInTrash: boolean;
|
168
293
|
movedToTrashDate: string | null;
|
294
|
+
birthLocation: {
|
295
|
+
latitude: number;
|
296
|
+
longitude: number;
|
297
|
+
state: string;
|
298
|
+
country: string;
|
299
|
+
city: string;
|
300
|
+
} | null;
|
301
|
+
residenceLocation: {
|
302
|
+
latitude: number;
|
303
|
+
longitude: number;
|
304
|
+
state: string;
|
305
|
+
country: string;
|
306
|
+
city: string;
|
307
|
+
} | null;
|
169
308
|
role?: "USER" | "ADMIN" | "FORM" | "TICKETS" | "MI_EXPO" | undefined;
|
170
309
|
}>>;
|
171
310
|
export declare class FindByPhoneNumberResponseDto extends FindByPhoneNumberResponseDto_base {
|
@@ -1,9 +1,29 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.FindByPhoneNumberResponseDto = exports.findByPhoneNumberResponseSchema = void 0;
|
4
|
+
const location_schema_1 = require("../../schema/location.schema");
|
4
5
|
const profile_schema_1 = require("../../schema/profile.schema");
|
5
6
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
-
exports.findByPhoneNumberResponseSchema = profile_schema_1.profileSchema
|
7
|
+
exports.findByPhoneNumberResponseSchema = profile_schema_1.profileSchema.extend({
|
8
|
+
residenceLocation: location_schema_1.locationSchema
|
9
|
+
.pick({
|
10
|
+
city: true,
|
11
|
+
state: true,
|
12
|
+
country: true,
|
13
|
+
latitude: true,
|
14
|
+
longitude: true,
|
15
|
+
})
|
16
|
+
.nullable(),
|
17
|
+
birthLocation: location_schema_1.locationSchema
|
18
|
+
.pick({
|
19
|
+
city: true,
|
20
|
+
state: true,
|
21
|
+
country: true,
|
22
|
+
latitude: true,
|
23
|
+
longitude: true,
|
24
|
+
})
|
25
|
+
.nullable(),
|
26
|
+
});
|
7
27
|
class FindByPhoneNumberResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByPhoneNumberResponseSchema) {
|
8
28
|
}
|
9
29
|
exports.FindByPhoneNumberResponseDto = FindByPhoneNumberResponseDto;
|
@@ -58,8 +58,22 @@ exports.profileSchema = zod_1.default.object({
|
|
58
58
|
shortId: zod_1.default.number(),
|
59
59
|
role: zod_1.default.nativeEnum(prisma_schema_1.Role).default(prisma_schema_1.Role.MI_EXPO),
|
60
60
|
firstTimeMiExpo: zod_1.default.boolean(),
|
61
|
-
username: zod_1.default
|
62
|
-
|
61
|
+
username: zod_1.default
|
62
|
+
.string({
|
63
|
+
required_error: (0, translate_1.translate)('model.profile.username.required'),
|
64
|
+
})
|
65
|
+
.min(1, {
|
66
|
+
message: (0, translate_1.translate)('model.profile.username.required'),
|
67
|
+
})
|
68
|
+
.nullable(),
|
69
|
+
password: zod_1.default
|
70
|
+
.string({
|
71
|
+
required_error: (0, translate_1.translate)('model.profile.password.required'),
|
72
|
+
})
|
73
|
+
.min(1, {
|
74
|
+
message: (0, translate_1.translate)('model.profile.password.required'),
|
75
|
+
})
|
76
|
+
.nullable(),
|
63
77
|
phoneNumber: zod_1.default
|
64
78
|
.string()
|
65
79
|
.min(1, {
|