expo-backend-types 0.33.0 → 0.34.0
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/exports.d.ts +3 -0
- package/dist/src/exports.js +3 -0
- package/dist/src/i18n/es.d.ts +20 -0
- package/dist/src/i18n/es.js +20 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/image/constants.d.ts +5 -0
- package/dist/src/image/constants.js +9 -0
- package/dist/src/location/dto/find-all-location.dto.js +2 -2
- package/dist/src/location/exports.d.ts +0 -1
- package/dist/src/location/exports.js +0 -1
- package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
- package/dist/src/message/dto/non-read-messages.dto.js +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
- package/dist/src/mi-expo/dto/get-me.dto.d.ts +337 -0
- package/dist/src/mi-expo/dto/get-me.dto.js +16 -0
- package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +311 -0
- package/dist/src/mi-expo/dto/login-with-phone.dto.js +29 -0
- package/dist/src/mi-expo/dto/login.dto.d.ts +327 -0
- package/dist/src/mi-expo/dto/login.dto.js +31 -0
- package/dist/src/mi-expo/dto/update-me.dto.d.ts +352 -0
- package/dist/src/mi-expo/dto/update-me.dto.js +31 -0
- package/dist/src/mi-expo/exports.d.ts +4 -0
- package/dist/src/mi-expo/exports.js +21 -0
- package/dist/src/otp/constants.d.ts +2 -0
- package/dist/src/otp/constants.js +6 -0
- package/dist/src/otp/dto/send-otp.dto.d.ts +158 -0
- package/dist/src/otp/dto/send-otp.dto.js +35 -0
- package/dist/src/otp/dto/verify-otp.dto.d.ts +455 -0
- package/dist/src/otp/dto/verify-otp.dto.js +46 -0
- package/dist/src/otp/exports.d.ts +2 -0
- package/dist/src/otp/exports.js +19 -0
- package/dist/src/prisma/constants.d.ts +1 -0
- package/dist/src/prisma/constants.js +5 -0
- package/dist/src/profile/dto/create-profile.dto.d.ts +48 -14
- package/dist/src/profile/dto/create-profile.dto.js +9 -7
- package/dist/src/profile/dto/delete-profile.dto.d.ts +30 -6
- package/dist/src/profile/dto/delete-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +75 -11
- package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +32 -13
- package/dist/src/profile/dto/find-by-id-profile.dto.js +7 -5
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +30 -6
- package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-trash.dto.d.ts +7 -3
- package/dist/src/profile/dto/find-trash.dto.js +2 -2
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
- package/dist/src/profile/dto/profile.dto.d.ts +44 -30
- package/dist/src/profile/dto/profile.dto.js +6 -63
- package/dist/src/profile/dto/update-profile.dto.d.ts +54 -12
- package/dist/src/profile/dto/update-profile.dto.js +9 -6
- package/dist/src/schema/exports.d.ts +2 -0
- package/dist/src/schema/exports.js +19 -0
- package/dist/src/{location/dto/location.dto.js → schema/location.schema.js} +2 -2
- package/dist/src/schema/profile.schema.d.ts +74 -0
- package/dist/src/schema/profile.schema.js +133 -0
- package/dist/src/shared/dto-modification/zod-without-dates.d.ts +2 -4
- package/dist/src/shared/dto-modification/zod-without-dates.js +8 -0
- package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +47 -7
- package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +47 -7
- package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
- package/dist/src/ticket/constants.d.ts +16 -0
- package/dist/src/ticket/constants.js +272 -0
- package/dist/src/webhook/constants.d.ts +1 -0
- package/dist/src/webhook/constants.js +5 -0
- package/dist/types/prisma-schema/edge.js +38 -24
- package/dist/types/prisma-schema/index-browser.js +18 -9
- package/dist/types/prisma-schema/index.d.ts +4093 -456
- package/dist/types/prisma-schema/index.js +38 -24
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +8 -2
- package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
- package/dist/types/prisma-schema/runtime/edge.js +18 -18
- package/dist/types/prisma-schema/runtime/index-browser.d.ts +3 -1
- package/dist/types/prisma-schema/runtime/index-browser.js +3 -3
- package/dist/types/prisma-schema/runtime/library.d.ts +205 -153
- package/dist/types/prisma-schema/runtime/library.js +55 -55
- package/dist/types/prisma-schema/runtime/react-native.js +26 -26
- package/dist/types/prisma-schema/runtime/wasm.js +17 -17
- package/dist/types/prisma-schema/schema.prisma +22 -1
- package/dist/types/prisma-schema/wasm.js +18 -9
- package/dist/types/schema.d.ts +506 -2
- package/package.json +41 -40
- /package/dist/src/{location/dto/location.dto.d.ts → schema/location.schema.d.ts} +0 -0
@@ -0,0 +1,455 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const verifyOtpSchema: z.ZodObject<{
|
3
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
4
|
+
code: z.ZodString;
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
6
|
+
phoneNumber: string;
|
7
|
+
code: string;
|
8
|
+
}, {
|
9
|
+
phoneNumber: string;
|
10
|
+
code: string;
|
11
|
+
}>;
|
12
|
+
declare const VerifyOtpDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
13
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
14
|
+
code: z.ZodString;
|
15
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
16
|
+
phoneNumber: string;
|
17
|
+
code: string;
|
18
|
+
}, {
|
19
|
+
phoneNumber: string;
|
20
|
+
code: string;
|
21
|
+
}>>;
|
22
|
+
export declare class VerifyOtpDto extends VerifyOtpDto_base {
|
23
|
+
}
|
24
|
+
export declare const verifyOtpResponseSchema: z.ZodObject<{
|
25
|
+
success: z.ZodBoolean;
|
26
|
+
profile: z.ZodObject<z.objectUtil.extendShape<{
|
27
|
+
id: z.ZodString;
|
28
|
+
shortId: z.ZodNumber;
|
29
|
+
firstTimeMiExpo: z.ZodBoolean;
|
30
|
+
username: z.ZodNullable<z.ZodString>;
|
31
|
+
password: z.ZodNullable<z.ZodString>;
|
32
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
33
|
+
isPhoneVerified: z.ZodBoolean;
|
34
|
+
secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
35
|
+
fullName: z.ZodString;
|
36
|
+
firstName: z.ZodNullable<z.ZodString>;
|
37
|
+
gender: z.ZodNullable<z.ZodString>;
|
38
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
39
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
40
|
+
instagram: z.ZodNullable<z.ZodString>;
|
41
|
+
mail: z.ZodNullable<z.ZodString>;
|
42
|
+
dni: z.ZodNullable<z.ZodString>;
|
43
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
44
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
45
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
46
|
+
isInTrash: z.ZodBoolean;
|
47
|
+
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
48
|
+
created_at: z.ZodDate;
|
49
|
+
updated_at: z.ZodDate;
|
50
|
+
}, {
|
51
|
+
residenceLocation: z.ZodNullable<z.ZodObject<Pick<{
|
52
|
+
id: z.ZodString;
|
53
|
+
latitude: z.ZodNumber;
|
54
|
+
longitude: z.ZodNumber;
|
55
|
+
country: z.ZodString;
|
56
|
+
state: z.ZodString;
|
57
|
+
city: z.ZodString;
|
58
|
+
created_at: z.ZodDate;
|
59
|
+
updated_at: z.ZodDate;
|
60
|
+
}, "latitude" | "longitude" | "country" | "city">, "strip", z.ZodTypeAny, {
|
61
|
+
latitude: number;
|
62
|
+
longitude: number;
|
63
|
+
country: string;
|
64
|
+
city: string;
|
65
|
+
}, {
|
66
|
+
latitude: number;
|
67
|
+
longitude: number;
|
68
|
+
country: string;
|
69
|
+
city: string;
|
70
|
+
}>>;
|
71
|
+
birthLocation: z.ZodNullable<z.ZodObject<Pick<{
|
72
|
+
id: z.ZodString;
|
73
|
+
latitude: z.ZodNumber;
|
74
|
+
longitude: z.ZodNumber;
|
75
|
+
country: z.ZodString;
|
76
|
+
state: z.ZodString;
|
77
|
+
city: z.ZodString;
|
78
|
+
created_at: z.ZodDate;
|
79
|
+
updated_at: z.ZodDate;
|
80
|
+
}, "latitude" | "longitude" | "country" | "city">, "strip", z.ZodTypeAny, {
|
81
|
+
latitude: number;
|
82
|
+
longitude: number;
|
83
|
+
country: string;
|
84
|
+
city: string;
|
85
|
+
}, {
|
86
|
+
latitude: number;
|
87
|
+
longitude: number;
|
88
|
+
country: string;
|
89
|
+
city: string;
|
90
|
+
}>>;
|
91
|
+
}>, "strip", z.ZodTypeAny, {
|
92
|
+
id: string;
|
93
|
+
username: string | null;
|
94
|
+
password: string | null;
|
95
|
+
phoneNumber: string;
|
96
|
+
secondaryPhoneNumber: string | null;
|
97
|
+
fullName: string;
|
98
|
+
profilePictureUrl: string | null;
|
99
|
+
mail: string | null;
|
100
|
+
created_at: Date;
|
101
|
+
updated_at: Date;
|
102
|
+
shortId: number;
|
103
|
+
firstTimeMiExpo: boolean;
|
104
|
+
isPhoneVerified: boolean;
|
105
|
+
firstName: string | null;
|
106
|
+
gender: string | null;
|
107
|
+
birthDate: Date | null;
|
108
|
+
instagram: string | null;
|
109
|
+
dni: string | null;
|
110
|
+
alternativeNames: string[];
|
111
|
+
birthLocationId: string | null;
|
112
|
+
residenceLocationId: string | null;
|
113
|
+
isInTrash: boolean;
|
114
|
+
movedToTrashDate: Date | null;
|
115
|
+
birthLocation: {
|
116
|
+
latitude: number;
|
117
|
+
longitude: number;
|
118
|
+
country: string;
|
119
|
+
city: string;
|
120
|
+
} | null;
|
121
|
+
residenceLocation: {
|
122
|
+
latitude: number;
|
123
|
+
longitude: number;
|
124
|
+
country: string;
|
125
|
+
city: string;
|
126
|
+
} | null;
|
127
|
+
}, {
|
128
|
+
id: string;
|
129
|
+
username: string | null;
|
130
|
+
password: string | null;
|
131
|
+
phoneNumber: string;
|
132
|
+
secondaryPhoneNumber: string | null;
|
133
|
+
fullName: string;
|
134
|
+
profilePictureUrl: string | null;
|
135
|
+
mail: string | null;
|
136
|
+
created_at: Date;
|
137
|
+
updated_at: Date;
|
138
|
+
shortId: number;
|
139
|
+
firstTimeMiExpo: boolean;
|
140
|
+
isPhoneVerified: boolean;
|
141
|
+
firstName: string | null;
|
142
|
+
gender: string | null;
|
143
|
+
birthDate: string | null;
|
144
|
+
instagram: string | null;
|
145
|
+
dni: string | null;
|
146
|
+
alternativeNames: string[];
|
147
|
+
birthLocationId: string | null;
|
148
|
+
residenceLocationId: string | null;
|
149
|
+
isInTrash: boolean;
|
150
|
+
movedToTrashDate: Date | null;
|
151
|
+
birthLocation: {
|
152
|
+
latitude: number;
|
153
|
+
longitude: number;
|
154
|
+
country: string;
|
155
|
+
city: string;
|
156
|
+
} | null;
|
157
|
+
residenceLocation: {
|
158
|
+
latitude: number;
|
159
|
+
longitude: number;
|
160
|
+
country: string;
|
161
|
+
city: string;
|
162
|
+
} | null;
|
163
|
+
}>;
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
165
|
+
profile: {
|
166
|
+
id: string;
|
167
|
+
username: string | null;
|
168
|
+
password: string | null;
|
169
|
+
phoneNumber: string;
|
170
|
+
secondaryPhoneNumber: string | null;
|
171
|
+
fullName: string;
|
172
|
+
profilePictureUrl: string | null;
|
173
|
+
mail: string | null;
|
174
|
+
created_at: Date;
|
175
|
+
updated_at: Date;
|
176
|
+
shortId: number;
|
177
|
+
firstTimeMiExpo: boolean;
|
178
|
+
isPhoneVerified: boolean;
|
179
|
+
firstName: string | null;
|
180
|
+
gender: string | null;
|
181
|
+
birthDate: Date | null;
|
182
|
+
instagram: string | null;
|
183
|
+
dni: string | null;
|
184
|
+
alternativeNames: string[];
|
185
|
+
birthLocationId: string | null;
|
186
|
+
residenceLocationId: string | null;
|
187
|
+
isInTrash: boolean;
|
188
|
+
movedToTrashDate: Date | null;
|
189
|
+
birthLocation: {
|
190
|
+
latitude: number;
|
191
|
+
longitude: number;
|
192
|
+
country: string;
|
193
|
+
city: string;
|
194
|
+
} | null;
|
195
|
+
residenceLocation: {
|
196
|
+
latitude: number;
|
197
|
+
longitude: number;
|
198
|
+
country: string;
|
199
|
+
city: string;
|
200
|
+
} | null;
|
201
|
+
};
|
202
|
+
success: boolean;
|
203
|
+
}, {
|
204
|
+
profile: {
|
205
|
+
id: string;
|
206
|
+
username: string | null;
|
207
|
+
password: string | null;
|
208
|
+
phoneNumber: string;
|
209
|
+
secondaryPhoneNumber: string | null;
|
210
|
+
fullName: string;
|
211
|
+
profilePictureUrl: string | null;
|
212
|
+
mail: string | null;
|
213
|
+
created_at: Date;
|
214
|
+
updated_at: Date;
|
215
|
+
shortId: number;
|
216
|
+
firstTimeMiExpo: boolean;
|
217
|
+
isPhoneVerified: boolean;
|
218
|
+
firstName: string | null;
|
219
|
+
gender: string | null;
|
220
|
+
birthDate: string | null;
|
221
|
+
instagram: string | null;
|
222
|
+
dni: string | null;
|
223
|
+
alternativeNames: string[];
|
224
|
+
birthLocationId: string | null;
|
225
|
+
residenceLocationId: string | null;
|
226
|
+
isInTrash: boolean;
|
227
|
+
movedToTrashDate: Date | null;
|
228
|
+
birthLocation: {
|
229
|
+
latitude: number;
|
230
|
+
longitude: number;
|
231
|
+
country: string;
|
232
|
+
city: string;
|
233
|
+
} | null;
|
234
|
+
residenceLocation: {
|
235
|
+
latitude: number;
|
236
|
+
longitude: number;
|
237
|
+
country: string;
|
238
|
+
city: string;
|
239
|
+
} | null;
|
240
|
+
};
|
241
|
+
success: boolean;
|
242
|
+
}>;
|
243
|
+
declare const VerifyOtpResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
244
|
+
success: z.ZodBoolean;
|
245
|
+
profile: z.ZodObject<{
|
246
|
+
id: z.ZodString;
|
247
|
+
shortId: z.ZodNumber;
|
248
|
+
firstTimeMiExpo: z.ZodBoolean;
|
249
|
+
username: z.ZodNullable<z.ZodString>;
|
250
|
+
password: z.ZodNullable<z.ZodString>;
|
251
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
252
|
+
isPhoneVerified: z.ZodBoolean;
|
253
|
+
secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
254
|
+
fullName: z.ZodString;
|
255
|
+
firstName: z.ZodNullable<z.ZodString>;
|
256
|
+
gender: z.ZodNullable<z.ZodString>;
|
257
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
|
258
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
259
|
+
instagram: z.ZodNullable<z.ZodString>;
|
260
|
+
mail: z.ZodNullable<z.ZodString>;
|
261
|
+
dni: z.ZodNullable<z.ZodString>;
|
262
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
263
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
264
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
265
|
+
isInTrash: z.ZodBoolean;
|
266
|
+
movedToTrashDate: z.ZodNullable<z.ZodString>;
|
267
|
+
created_at: z.ZodString;
|
268
|
+
updated_at: z.ZodString;
|
269
|
+
residenceLocation: z.ZodNullable<z.ZodObject<{
|
270
|
+
latitude: z.ZodNumber;
|
271
|
+
longitude: z.ZodNumber;
|
272
|
+
country: z.ZodString;
|
273
|
+
city: z.ZodString;
|
274
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
275
|
+
latitude: number;
|
276
|
+
longitude: number;
|
277
|
+
country: string;
|
278
|
+
city: string;
|
279
|
+
}, {
|
280
|
+
latitude: number;
|
281
|
+
longitude: number;
|
282
|
+
country: string;
|
283
|
+
city: string;
|
284
|
+
}>>;
|
285
|
+
birthLocation: z.ZodNullable<z.ZodObject<{
|
286
|
+
latitude: z.ZodNumber;
|
287
|
+
longitude: z.ZodNumber;
|
288
|
+
country: z.ZodString;
|
289
|
+
city: z.ZodString;
|
290
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
291
|
+
latitude: number;
|
292
|
+
longitude: number;
|
293
|
+
country: string;
|
294
|
+
city: string;
|
295
|
+
}, {
|
296
|
+
latitude: number;
|
297
|
+
longitude: number;
|
298
|
+
country: string;
|
299
|
+
city: string;
|
300
|
+
}>>;
|
301
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
302
|
+
id: string;
|
303
|
+
username: string | null;
|
304
|
+
password: string | null;
|
305
|
+
phoneNumber: string;
|
306
|
+
secondaryPhoneNumber: string | null;
|
307
|
+
fullName: string;
|
308
|
+
profilePictureUrl: string | null;
|
309
|
+
mail: string | null;
|
310
|
+
created_at: string;
|
311
|
+
updated_at: string;
|
312
|
+
shortId: number;
|
313
|
+
firstTimeMiExpo: boolean;
|
314
|
+
isPhoneVerified: boolean;
|
315
|
+
firstName: string | null;
|
316
|
+
gender: string | null;
|
317
|
+
birthDate: string | null;
|
318
|
+
instagram: string | null;
|
319
|
+
dni: string | null;
|
320
|
+
alternativeNames: string[];
|
321
|
+
birthLocationId: string | null;
|
322
|
+
residenceLocationId: string | null;
|
323
|
+
isInTrash: boolean;
|
324
|
+
movedToTrashDate: string | null;
|
325
|
+
birthLocation: {
|
326
|
+
latitude: number;
|
327
|
+
longitude: number;
|
328
|
+
country: string;
|
329
|
+
city: string;
|
330
|
+
} | null;
|
331
|
+
residenceLocation: {
|
332
|
+
latitude: number;
|
333
|
+
longitude: number;
|
334
|
+
country: string;
|
335
|
+
city: string;
|
336
|
+
} | null;
|
337
|
+
}, {
|
338
|
+
id: string;
|
339
|
+
username: string | null;
|
340
|
+
password: string | null;
|
341
|
+
phoneNumber: string;
|
342
|
+
secondaryPhoneNumber: string | null;
|
343
|
+
fullName: string;
|
344
|
+
profilePictureUrl: string | null;
|
345
|
+
mail: string | null;
|
346
|
+
created_at: string;
|
347
|
+
updated_at: string;
|
348
|
+
shortId: number;
|
349
|
+
firstTimeMiExpo: boolean;
|
350
|
+
isPhoneVerified: boolean;
|
351
|
+
firstName: string | null;
|
352
|
+
gender: string | null;
|
353
|
+
birthDate: string | null;
|
354
|
+
instagram: string | null;
|
355
|
+
dni: string | null;
|
356
|
+
alternativeNames: string[];
|
357
|
+
birthLocationId: string | null;
|
358
|
+
residenceLocationId: string | null;
|
359
|
+
isInTrash: boolean;
|
360
|
+
movedToTrashDate: string | null;
|
361
|
+
birthLocation: {
|
362
|
+
latitude: number;
|
363
|
+
longitude: number;
|
364
|
+
country: string;
|
365
|
+
city: string;
|
366
|
+
} | null;
|
367
|
+
residenceLocation: {
|
368
|
+
latitude: number;
|
369
|
+
longitude: number;
|
370
|
+
country: string;
|
371
|
+
city: string;
|
372
|
+
} | null;
|
373
|
+
}>;
|
374
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
375
|
+
profile: {
|
376
|
+
id: string;
|
377
|
+
username: string | null;
|
378
|
+
password: string | null;
|
379
|
+
phoneNumber: string;
|
380
|
+
secondaryPhoneNumber: string | null;
|
381
|
+
fullName: string;
|
382
|
+
profilePictureUrl: string | null;
|
383
|
+
mail: string | null;
|
384
|
+
created_at: string;
|
385
|
+
updated_at: string;
|
386
|
+
shortId: number;
|
387
|
+
firstTimeMiExpo: boolean;
|
388
|
+
isPhoneVerified: boolean;
|
389
|
+
firstName: string | null;
|
390
|
+
gender: string | null;
|
391
|
+
birthDate: string | null;
|
392
|
+
instagram: string | null;
|
393
|
+
dni: string | null;
|
394
|
+
alternativeNames: string[];
|
395
|
+
birthLocationId: string | null;
|
396
|
+
residenceLocationId: string | null;
|
397
|
+
isInTrash: boolean;
|
398
|
+
movedToTrashDate: string | null;
|
399
|
+
birthLocation: {
|
400
|
+
latitude: number;
|
401
|
+
longitude: number;
|
402
|
+
country: string;
|
403
|
+
city: string;
|
404
|
+
} | null;
|
405
|
+
residenceLocation: {
|
406
|
+
latitude: number;
|
407
|
+
longitude: number;
|
408
|
+
country: string;
|
409
|
+
city: string;
|
410
|
+
} | null;
|
411
|
+
};
|
412
|
+
success: boolean;
|
413
|
+
}, {
|
414
|
+
profile: {
|
415
|
+
id: string;
|
416
|
+
username: string | null;
|
417
|
+
password: string | null;
|
418
|
+
phoneNumber: string;
|
419
|
+
secondaryPhoneNumber: string | null;
|
420
|
+
fullName: string;
|
421
|
+
profilePictureUrl: string | null;
|
422
|
+
mail: string | null;
|
423
|
+
created_at: string;
|
424
|
+
updated_at: string;
|
425
|
+
shortId: number;
|
426
|
+
firstTimeMiExpo: boolean;
|
427
|
+
isPhoneVerified: boolean;
|
428
|
+
firstName: string | null;
|
429
|
+
gender: string | null;
|
430
|
+
birthDate: string | null;
|
431
|
+
instagram: string | null;
|
432
|
+
dni: string | null;
|
433
|
+
alternativeNames: string[];
|
434
|
+
birthLocationId: string | null;
|
435
|
+
residenceLocationId: string | null;
|
436
|
+
isInTrash: boolean;
|
437
|
+
movedToTrashDate: string | null;
|
438
|
+
birthLocation: {
|
439
|
+
latitude: number;
|
440
|
+
longitude: number;
|
441
|
+
country: string;
|
442
|
+
city: string;
|
443
|
+
} | null;
|
444
|
+
residenceLocation: {
|
445
|
+
latitude: number;
|
446
|
+
longitude: number;
|
447
|
+
country: string;
|
448
|
+
city: string;
|
449
|
+
} | null;
|
450
|
+
};
|
451
|
+
success: boolean;
|
452
|
+
}>>;
|
453
|
+
export declare class VerifyOtpResponseDto extends VerifyOtpResponseDto_base {
|
454
|
+
}
|
455
|
+
export {};
|
@@ -0,0 +1,46 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.VerifyOtpResponseDto = exports.verifyOtpResponseSchema = exports.VerifyOtpDto = exports.verifyOtpSchema = void 0;
|
7
|
+
const translate_1 = require("../../i18n/translate");
|
8
|
+
const constants_1 = require("../constants");
|
9
|
+
const location_schema_1 = require("../../schema/location.schema");
|
10
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
11
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
12
|
+
const zod_1 = __importDefault(require("zod"));
|
13
|
+
exports.verifyOtpSchema = zod_1.default.object({
|
14
|
+
phoneNumber: profile_schema_1.profileSchema.shape.phoneNumber,
|
15
|
+
code: zod_1.default.string().length(constants_1.OTP_LENGTH, {
|
16
|
+
message: (0, translate_1.translate)('route.otp.verify.error-format'),
|
17
|
+
}),
|
18
|
+
});
|
19
|
+
class VerifyOtpDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.verifyOtpSchema) {
|
20
|
+
}
|
21
|
+
exports.VerifyOtpDto = VerifyOtpDto;
|
22
|
+
exports.verifyOtpResponseSchema = zod_1.default.object({
|
23
|
+
success: zod_1.default.boolean(),
|
24
|
+
profile: profile_schema_1.profileSchema.extend({
|
25
|
+
residenceLocation: location_schema_1.locationSchema
|
26
|
+
.pick({
|
27
|
+
city: true,
|
28
|
+
country: true,
|
29
|
+
latitude: true,
|
30
|
+
longitude: true,
|
31
|
+
})
|
32
|
+
.nullable(),
|
33
|
+
birthLocation: location_schema_1.locationSchema
|
34
|
+
.pick({
|
35
|
+
city: true,
|
36
|
+
country: true,
|
37
|
+
latitude: true,
|
38
|
+
longitude: true,
|
39
|
+
})
|
40
|
+
.nullable(),
|
41
|
+
}),
|
42
|
+
});
|
43
|
+
class VerifyOtpResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.verifyOtpResponseSchema) {
|
44
|
+
}
|
45
|
+
exports.VerifyOtpResponseDto = VerifyOtpResponseDto;
|
46
|
+
//# sourceMappingURL=verify-otp.dto.js.map
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./dto/send-otp.dto"), exports);
|
18
|
+
__exportStar(require("./dto/verify-otp.dto"), exports);
|
19
|
+
//# sourceMappingURL=exports.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const PRISMA_SERVICE: unique symbol;
|