expo-backend-types 0.30.0-EXPO-308-auth.14 → 0.30.0-EXPO-308-auth.16
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/auth/dto/login-mi-expo.dto.js +1 -1
- package/dist/src/exports.d.ts +1 -0
- package/dist/src/exports.js +1 -0
- package/dist/src/message/dto/non-read-messages.dto.js +1 -1
- package/dist/src/message/dto/send-message-to-phone.dto.js +1 -1
- package/dist/src/otp/dto/send-otp.dto.js +1 -1
- package/dist/src/otp/dto/verify-otp.dto.js +1 -1
- package/dist/src/profile/dto/create-profile.dto.d.ts +468 -82
- package/dist/src/profile/dto/create-profile.dto.js +80 -4
- package/dist/src/profile/dto/delete-profile.dto.d.ts +73 -0
- package/dist/src/profile/dto/delete-profile.dto.js +4 -3
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +266 -39
- package/dist/src/profile/dto/find-all-profile.dto.js +19 -3
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +440 -79
- package/dist/src/profile/dto/find-by-date-range-profile.dto.js +26 -4
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +309 -58
- package/dist/src/profile/dto/find-by-id-profile.dto.js +21 -3
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +73 -0
- package/dist/src/profile/dto/find-by-phone-number.dto.js +4 -3
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +223 -35
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +13 -3
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +257 -38
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +18 -3
- package/dist/src/profile/dto/find-trash.dto.d.ts +75 -11
- package/dist/src/profile/dto/find-trash.dto.js +18 -3
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +443 -58
- package/dist/src/profile/dto/find-with-active-chat.dto.js +20 -3
- package/dist/src/profile/dto/profile.dto.js +1 -1
- package/dist/src/profile/dto/update-profile.dto.d.ts +244 -60
- package/dist/src/profile/dto/update-profile.dto.js +48 -4
- package/dist/src/profile/exports.d.ts +12 -12
- package/dist/src/profile/exports.js +12 -12
- package/dist/src/schema/exports.d.ts +1 -0
- package/dist/src/schema/exports.js +18 -0
- package/dist/src/{profile/schema → schema}/profile.schema.js +1 -1
- package/dist/src/tag/dto/massive-allocation.dto.js +1 -1
- package/dist/src/tag/dto/massive-deallocation.dto.js +1 -1
- package/dist/types/schema.d.ts +0 -4
- package/package.json +23 -25
- package/dist/src/profile/schema/create-profile.schema.d.ts +0 -405
- package/dist/src/profile/schema/create-profile.schema.js +0 -83
- package/dist/src/profile/schema/delete-profile.schema.d.ts +0 -73
- package/dist/src/profile/schema/delete-profile.schema.js +0 -6
- package/dist/src/profile/schema/find-all-profile.schema.d.ts +0 -227
- package/dist/src/profile/schema/find-all-profile.schema.js +0 -21
- package/dist/src/profile/schema/find-by-date-range-profile.schema.d.ts +0 -361
- package/dist/src/profile/schema/find-by-date-range-profile.schema.js +0 -27
- package/dist/src/profile/schema/find-by-id-profile.schema.d.ts +0 -251
- package/dist/src/profile/schema/find-by-id-profile.schema.js +0 -23
- package/dist/src/profile/schema/find-by-phone-number.schema.d.ts +0 -73
- package/dist/src/profile/schema/find-by-phone-number.schema.js +0 -6
- package/dist/src/profile/schema/find-by-tag-groups-profile.schema.d.ts +0 -188
- package/dist/src/profile/schema/find-by-tag-groups-profile.schema.js +0 -15
- package/dist/src/profile/schema/find-by-tags-profile.schema.d.ts +0 -219
- package/dist/src/profile/schema/find-by-tags-profile.schema.js +0 -20
- package/dist/src/profile/schema/find-trash.schema.d.ts +0 -64
- package/dist/src/profile/schema/find-trash.schema.js +0 -20
- package/dist/src/profile/schema/find-with-active-chat.schema.d.ts +0 -385
- package/dist/src/profile/schema/find-with-active-chat.schema.js +0 -22
- package/dist/src/profile/schema/update-profile.schema.d.ts +0 -196
- package/dist/src/profile/schema/update-profile.schema.js +0 -51
- /package/dist/src/{profile/schema → schema}/profile.schema.d.ts +0 -0
@@ -1,405 +0,0 @@
|
|
1
|
-
import z from 'zod';
|
2
|
-
export declare const createProfileSchema: z.ZodObject<{
|
3
|
-
profile: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
4
|
-
id: z.ZodString;
|
5
|
-
shortId: z.ZodNumber;
|
6
|
-
firstTimeMiExpo: z.ZodBoolean;
|
7
|
-
username: z.ZodNullable<z.ZodString>;
|
8
|
-
password: z.ZodNullable<z.ZodString>;
|
9
|
-
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
10
|
-
isPhoneVerified: z.ZodBoolean;
|
11
|
-
secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
|
12
|
-
fullName: z.ZodString;
|
13
|
-
firstName: z.ZodNullable<z.ZodString>;
|
14
|
-
gender: z.ZodNullable<z.ZodString>;
|
15
|
-
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
16
|
-
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
17
|
-
instagram: z.ZodNullable<z.ZodString>;
|
18
|
-
mail: z.ZodNullable<z.ZodString>;
|
19
|
-
dni: z.ZodNullable<z.ZodString>;
|
20
|
-
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
21
|
-
birthLocationId: z.ZodNullable<z.ZodString>;
|
22
|
-
residenceLocationId: z.ZodNullable<z.ZodString>;
|
23
|
-
isInTrash: z.ZodBoolean;
|
24
|
-
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
25
|
-
created_at: z.ZodDate;
|
26
|
-
updated_at: z.ZodDate;
|
27
|
-
}, "username" | "password" | "phoneNumber" | "secondaryPhoneNumber" | "fullName" | "profilePictureUrl" | "mail" | "gender" | "birthDate" | "instagram" | "dni" | "alternativeNames">, {
|
28
|
-
comments: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
|
29
|
-
id: z.ZodString;
|
30
|
-
content: z.ZodString;
|
31
|
-
createdBy: z.ZodString;
|
32
|
-
profileId: z.ZodString;
|
33
|
-
isSolvable: z.ZodDefault<z.ZodBoolean>;
|
34
|
-
isSolved: z.ZodDefault<z.ZodBoolean>;
|
35
|
-
solvedAt: z.ZodNullable<z.ZodDate>;
|
36
|
-
solvedBy: z.ZodOptional<z.ZodString>;
|
37
|
-
created_at: z.ZodDate;
|
38
|
-
updated_at: z.ZodDate;
|
39
|
-
}, "content" | "isSolvable">, "strip", z.ZodTypeAny, {
|
40
|
-
content: string;
|
41
|
-
isSolvable: boolean;
|
42
|
-
}, {
|
43
|
-
content: string;
|
44
|
-
isSolvable?: boolean | undefined;
|
45
|
-
}>, "many">>;
|
46
|
-
residence: z.ZodOptional<z.ZodObject<Pick<{
|
47
|
-
id: z.ZodString;
|
48
|
-
latitude: z.ZodNumber;
|
49
|
-
longitude: z.ZodNumber;
|
50
|
-
country: z.ZodString;
|
51
|
-
state: z.ZodString;
|
52
|
-
city: z.ZodString;
|
53
|
-
created_at: z.ZodDate;
|
54
|
-
updated_at: z.ZodDate;
|
55
|
-
}, "latitude" | "longitude" | "state" | "country" | "city">, "strip", z.ZodTypeAny, {
|
56
|
-
latitude: number;
|
57
|
-
longitude: number;
|
58
|
-
state: string;
|
59
|
-
country: string;
|
60
|
-
city: string;
|
61
|
-
}, {
|
62
|
-
latitude: number;
|
63
|
-
longitude: number;
|
64
|
-
state: string;
|
65
|
-
country: string;
|
66
|
-
city: string;
|
67
|
-
}>>;
|
68
|
-
birth: z.ZodOptional<z.ZodObject<Pick<{
|
69
|
-
id: z.ZodString;
|
70
|
-
latitude: z.ZodNumber;
|
71
|
-
longitude: z.ZodNumber;
|
72
|
-
country: z.ZodString;
|
73
|
-
state: z.ZodString;
|
74
|
-
city: z.ZodString;
|
75
|
-
created_at: z.ZodDate;
|
76
|
-
updated_at: z.ZodDate;
|
77
|
-
}, "latitude" | "longitude" | "state" | "country" | "city">, "strip", z.ZodTypeAny, {
|
78
|
-
latitude: number;
|
79
|
-
longitude: number;
|
80
|
-
state: string;
|
81
|
-
country: string;
|
82
|
-
city: string;
|
83
|
-
}, {
|
84
|
-
latitude: number;
|
85
|
-
longitude: number;
|
86
|
-
state: string;
|
87
|
-
country: string;
|
88
|
-
city: string;
|
89
|
-
}>>;
|
90
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
91
|
-
}>, "strip", z.ZodTypeAny, {
|
92
|
-
username: string | null;
|
93
|
-
password: string | null;
|
94
|
-
phoneNumber: string;
|
95
|
-
secondaryPhoneNumber: string | null;
|
96
|
-
fullName: string;
|
97
|
-
profilePictureUrl: string | null;
|
98
|
-
mail: string | null;
|
99
|
-
gender: string | null;
|
100
|
-
birthDate: Date | null;
|
101
|
-
instagram: string | null;
|
102
|
-
dni: string | null;
|
103
|
-
alternativeNames: string[];
|
104
|
-
comments?: {
|
105
|
-
content: string;
|
106
|
-
isSolvable: boolean;
|
107
|
-
}[] | undefined;
|
108
|
-
tags?: string[] | undefined;
|
109
|
-
residence?: {
|
110
|
-
latitude: number;
|
111
|
-
longitude: number;
|
112
|
-
state: string;
|
113
|
-
country: string;
|
114
|
-
city: string;
|
115
|
-
} | undefined;
|
116
|
-
birth?: {
|
117
|
-
latitude: number;
|
118
|
-
longitude: number;
|
119
|
-
state: string;
|
120
|
-
country: string;
|
121
|
-
city: string;
|
122
|
-
} | undefined;
|
123
|
-
}, {
|
124
|
-
username: string | null;
|
125
|
-
password: string | null;
|
126
|
-
phoneNumber: string;
|
127
|
-
secondaryPhoneNumber: string | null;
|
128
|
-
fullName: string;
|
129
|
-
profilePictureUrl: string | null;
|
130
|
-
mail: string | null;
|
131
|
-
gender: string | null;
|
132
|
-
birthDate: string | null;
|
133
|
-
instagram: string | null;
|
134
|
-
dni: string | null;
|
135
|
-
alternativeNames: string[];
|
136
|
-
comments?: {
|
137
|
-
content: string;
|
138
|
-
isSolvable?: boolean | undefined;
|
139
|
-
}[] | undefined;
|
140
|
-
tags?: string[] | undefined;
|
141
|
-
residence?: {
|
142
|
-
latitude: number;
|
143
|
-
longitude: number;
|
144
|
-
state: string;
|
145
|
-
country: string;
|
146
|
-
city: string;
|
147
|
-
} | undefined;
|
148
|
-
birth?: {
|
149
|
-
latitude: number;
|
150
|
-
longitude: number;
|
151
|
-
state: string;
|
152
|
-
country: string;
|
153
|
-
city: string;
|
154
|
-
} | undefined;
|
155
|
-
}>;
|
156
|
-
checkForSimilarity: z.ZodOptional<z.ZodBoolean>;
|
157
|
-
}, "strip", z.ZodTypeAny, {
|
158
|
-
profile: {
|
159
|
-
username: string | null;
|
160
|
-
password: string | null;
|
161
|
-
phoneNumber: string;
|
162
|
-
secondaryPhoneNumber: string | null;
|
163
|
-
fullName: string;
|
164
|
-
profilePictureUrl: string | null;
|
165
|
-
mail: string | null;
|
166
|
-
gender: string | null;
|
167
|
-
birthDate: Date | null;
|
168
|
-
instagram: string | null;
|
169
|
-
dni: string | null;
|
170
|
-
alternativeNames: string[];
|
171
|
-
comments?: {
|
172
|
-
content: string;
|
173
|
-
isSolvable: boolean;
|
174
|
-
}[] | undefined;
|
175
|
-
tags?: string[] | undefined;
|
176
|
-
residence?: {
|
177
|
-
latitude: number;
|
178
|
-
longitude: number;
|
179
|
-
state: string;
|
180
|
-
country: string;
|
181
|
-
city: string;
|
182
|
-
} | undefined;
|
183
|
-
birth?: {
|
184
|
-
latitude: number;
|
185
|
-
longitude: number;
|
186
|
-
state: string;
|
187
|
-
country: string;
|
188
|
-
city: string;
|
189
|
-
} | undefined;
|
190
|
-
};
|
191
|
-
checkForSimilarity?: boolean | undefined;
|
192
|
-
}, {
|
193
|
-
profile: {
|
194
|
-
username: string | null;
|
195
|
-
password: string | null;
|
196
|
-
phoneNumber: string;
|
197
|
-
secondaryPhoneNumber: string | null;
|
198
|
-
fullName: string;
|
199
|
-
profilePictureUrl: string | null;
|
200
|
-
mail: string | null;
|
201
|
-
gender: string | null;
|
202
|
-
birthDate: string | null;
|
203
|
-
instagram: string | null;
|
204
|
-
dni: string | null;
|
205
|
-
alternativeNames: string[];
|
206
|
-
comments?: {
|
207
|
-
content: string;
|
208
|
-
isSolvable?: boolean | undefined;
|
209
|
-
}[] | undefined;
|
210
|
-
tags?: string[] | undefined;
|
211
|
-
residence?: {
|
212
|
-
latitude: number;
|
213
|
-
longitude: number;
|
214
|
-
state: string;
|
215
|
-
country: string;
|
216
|
-
city: string;
|
217
|
-
} | undefined;
|
218
|
-
birth?: {
|
219
|
-
latitude: number;
|
220
|
-
longitude: number;
|
221
|
-
state: string;
|
222
|
-
country: string;
|
223
|
-
city: string;
|
224
|
-
} | undefined;
|
225
|
-
};
|
226
|
-
checkForSimilarity?: boolean | undefined;
|
227
|
-
}>;
|
228
|
-
declare const similarProfileSchema: z.ZodObject<{
|
229
|
-
profile: z.ZodObject<Pick<{
|
230
|
-
id: z.ZodString;
|
231
|
-
shortId: z.ZodNumber;
|
232
|
-
firstTimeMiExpo: z.ZodBoolean;
|
233
|
-
username: z.ZodNullable<z.ZodString>;
|
234
|
-
password: z.ZodNullable<z.ZodString>;
|
235
|
-
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
236
|
-
isPhoneVerified: z.ZodBoolean;
|
237
|
-
secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
|
238
|
-
fullName: z.ZodString;
|
239
|
-
firstName: z.ZodNullable<z.ZodString>;
|
240
|
-
gender: z.ZodNullable<z.ZodString>;
|
241
|
-
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
242
|
-
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
243
|
-
instagram: z.ZodNullable<z.ZodString>;
|
244
|
-
mail: z.ZodNullable<z.ZodString>;
|
245
|
-
dni: z.ZodNullable<z.ZodString>;
|
246
|
-
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
247
|
-
birthLocationId: z.ZodNullable<z.ZodString>;
|
248
|
-
residenceLocationId: z.ZodNullable<z.ZodString>;
|
249
|
-
isInTrash: z.ZodBoolean;
|
250
|
-
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
251
|
-
created_at: z.ZodDate;
|
252
|
-
updated_at: z.ZodDate;
|
253
|
-
}, "id" | "phoneNumber" | "fullName">, "strip", z.ZodTypeAny, {
|
254
|
-
id: string;
|
255
|
-
phoneNumber: string;
|
256
|
-
fullName: string;
|
257
|
-
}, {
|
258
|
-
id: string;
|
259
|
-
phoneNumber: string;
|
260
|
-
fullName: string;
|
261
|
-
}>;
|
262
|
-
similarityPhoneNumberPercentage: z.ZodNumber;
|
263
|
-
similarityFullNamePercentage: z.ZodNumber;
|
264
|
-
}, "strip", z.ZodTypeAny, {
|
265
|
-
profile: {
|
266
|
-
id: string;
|
267
|
-
phoneNumber: string;
|
268
|
-
fullName: string;
|
269
|
-
};
|
270
|
-
similarityPhoneNumberPercentage: number;
|
271
|
-
similarityFullNamePercentage: number;
|
272
|
-
}, {
|
273
|
-
profile: {
|
274
|
-
id: string;
|
275
|
-
phoneNumber: string;
|
276
|
-
fullName: string;
|
277
|
-
};
|
278
|
-
similarityPhoneNumberPercentage: number;
|
279
|
-
similarityFullNamePercentage: number;
|
280
|
-
}>;
|
281
|
-
export declare const createProfileResponseSchema: z.ZodObject<{
|
282
|
-
response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
283
|
-
similarProfiles: z.ZodArray<z.ZodObject<{
|
284
|
-
profile: z.ZodObject<Pick<{
|
285
|
-
id: z.ZodString;
|
286
|
-
shortId: z.ZodNumber;
|
287
|
-
firstTimeMiExpo: z.ZodBoolean;
|
288
|
-
username: z.ZodNullable<z.ZodString>;
|
289
|
-
password: z.ZodNullable<z.ZodString>;
|
290
|
-
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
291
|
-
isPhoneVerified: z.ZodBoolean;
|
292
|
-
secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
|
293
|
-
fullName: z.ZodString;
|
294
|
-
firstName: z.ZodNullable<z.ZodString>;
|
295
|
-
gender: z.ZodNullable<z.ZodString>;
|
296
|
-
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
297
|
-
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
298
|
-
instagram: z.ZodNullable<z.ZodString>;
|
299
|
-
mail: z.ZodNullable<z.ZodString>;
|
300
|
-
dni: z.ZodNullable<z.ZodString>;
|
301
|
-
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
302
|
-
birthLocationId: z.ZodNullable<z.ZodString>;
|
303
|
-
residenceLocationId: z.ZodNullable<z.ZodString>;
|
304
|
-
isInTrash: z.ZodBoolean;
|
305
|
-
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
306
|
-
created_at: z.ZodDate;
|
307
|
-
updated_at: z.ZodDate;
|
308
|
-
}, "id" | "phoneNumber" | "fullName">, "strip", z.ZodTypeAny, {
|
309
|
-
id: string;
|
310
|
-
phoneNumber: string;
|
311
|
-
fullName: string;
|
312
|
-
}, {
|
313
|
-
id: string;
|
314
|
-
phoneNumber: string;
|
315
|
-
fullName: string;
|
316
|
-
}>;
|
317
|
-
similarityPhoneNumberPercentage: z.ZodNumber;
|
318
|
-
similarityFullNamePercentage: z.ZodNumber;
|
319
|
-
}, "strip", z.ZodTypeAny, {
|
320
|
-
profile: {
|
321
|
-
id: string;
|
322
|
-
phoneNumber: string;
|
323
|
-
fullName: string;
|
324
|
-
};
|
325
|
-
similarityPhoneNumberPercentage: number;
|
326
|
-
similarityFullNamePercentage: number;
|
327
|
-
}, {
|
328
|
-
profile: {
|
329
|
-
id: string;
|
330
|
-
phoneNumber: string;
|
331
|
-
fullName: string;
|
332
|
-
};
|
333
|
-
similarityPhoneNumberPercentage: number;
|
334
|
-
similarityFullNamePercentage: number;
|
335
|
-
}>, "many">;
|
336
|
-
}, {
|
337
|
-
type: z.ZodLiteral<"similar">;
|
338
|
-
}>, "strip", z.ZodTypeAny, {
|
339
|
-
type: "similar";
|
340
|
-
similarProfiles: {
|
341
|
-
profile: {
|
342
|
-
id: string;
|
343
|
-
phoneNumber: string;
|
344
|
-
fullName: string;
|
345
|
-
};
|
346
|
-
similarityPhoneNumberPercentage: number;
|
347
|
-
similarityFullNamePercentage: number;
|
348
|
-
}[];
|
349
|
-
}, {
|
350
|
-
type: "similar";
|
351
|
-
similarProfiles: {
|
352
|
-
profile: {
|
353
|
-
id: string;
|
354
|
-
phoneNumber: string;
|
355
|
-
fullName: string;
|
356
|
-
};
|
357
|
-
similarityPhoneNumberPercentage: number;
|
358
|
-
similarityFullNamePercentage: number;
|
359
|
-
}[];
|
360
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
361
|
-
id: z.ZodString;
|
362
|
-
}, {
|
363
|
-
type: z.ZodLiteral<"created">;
|
364
|
-
}>, "strip", z.ZodTypeAny, {
|
365
|
-
id: string;
|
366
|
-
type: "created";
|
367
|
-
}, {
|
368
|
-
id: string;
|
369
|
-
type: "created";
|
370
|
-
}>]>;
|
371
|
-
}, "strip", z.ZodTypeAny, {
|
372
|
-
response: {
|
373
|
-
type: "similar";
|
374
|
-
similarProfiles: {
|
375
|
-
profile: {
|
376
|
-
id: string;
|
377
|
-
phoneNumber: string;
|
378
|
-
fullName: string;
|
379
|
-
};
|
380
|
-
similarityPhoneNumberPercentage: number;
|
381
|
-
similarityFullNamePercentage: number;
|
382
|
-
}[];
|
383
|
-
} | {
|
384
|
-
id: string;
|
385
|
-
type: "created";
|
386
|
-
};
|
387
|
-
}, {
|
388
|
-
response: {
|
389
|
-
type: "similar";
|
390
|
-
similarProfiles: {
|
391
|
-
profile: {
|
392
|
-
id: string;
|
393
|
-
phoneNumber: string;
|
394
|
-
fullName: string;
|
395
|
-
};
|
396
|
-
similarityPhoneNumberPercentage: number;
|
397
|
-
similarityFullNamePercentage: number;
|
398
|
-
}[];
|
399
|
-
} | {
|
400
|
-
id: string;
|
401
|
-
type: "created";
|
402
|
-
};
|
403
|
-
}>;
|
404
|
-
export type SimilarityProfile = z.infer<typeof similarProfileSchema>;
|
405
|
-
export {};
|
@@ -1,83 +0,0 @@
|
|
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.createProfileResponseSchema = exports.createProfileSchema = void 0;
|
7
|
-
const comment_dto_1 = require("../../comment/dto/comment.dto");
|
8
|
-
const location_dto_1 = require("../../location/dto/location.dto");
|
9
|
-
const profile_schema_1 = require("./profile.schema");
|
10
|
-
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
11
|
-
const zod_1 = __importDefault(require("zod"));
|
12
|
-
exports.createProfileSchema = zod_1.default.object({
|
13
|
-
profile: profile_schema_1.profileSchema
|
14
|
-
.pick({
|
15
|
-
alternativeNames: true,
|
16
|
-
birthDate: true,
|
17
|
-
dni: true,
|
18
|
-
fullName: true,
|
19
|
-
gender: true,
|
20
|
-
instagram: true,
|
21
|
-
mail: true,
|
22
|
-
phoneNumber: true,
|
23
|
-
profilePictureUrl: true,
|
24
|
-
secondaryPhoneNumber: true,
|
25
|
-
password: true,
|
26
|
-
username: true,
|
27
|
-
})
|
28
|
-
.merge(zod_1.default.object({
|
29
|
-
comments: zod_1.default
|
30
|
-
.array(comment_dto_1.commentSchema.pick({
|
31
|
-
content: true,
|
32
|
-
isSolvable: true,
|
33
|
-
}))
|
34
|
-
.optional(),
|
35
|
-
residence: location_dto_1.locationSchema
|
36
|
-
.pick({
|
37
|
-
city: true,
|
38
|
-
country: true,
|
39
|
-
latitude: true,
|
40
|
-
longitude: true,
|
41
|
-
state: true,
|
42
|
-
})
|
43
|
-
.optional(),
|
44
|
-
birth: location_dto_1.locationSchema
|
45
|
-
.pick({
|
46
|
-
city: true,
|
47
|
-
country: true,
|
48
|
-
latitude: true,
|
49
|
-
longitude: true,
|
50
|
-
state: true,
|
51
|
-
})
|
52
|
-
.optional(),
|
53
|
-
tags: zod_1.default.array(tag_dto_1.tagSchema.shape.id).optional(),
|
54
|
-
})),
|
55
|
-
checkForSimilarity: zod_1.default.boolean().optional(),
|
56
|
-
});
|
57
|
-
const similarProfileSchema = zod_1.default.object({
|
58
|
-
profile: profile_schema_1.profileSchema.pick({
|
59
|
-
fullName: true,
|
60
|
-
phoneNumber: true,
|
61
|
-
id: true,
|
62
|
-
}),
|
63
|
-
similarityPhoneNumberPercentage: zod_1.default.number(),
|
64
|
-
similarityFullNamePercentage: zod_1.default.number(),
|
65
|
-
});
|
66
|
-
const similarityProfileSchema = zod_1.default.object({
|
67
|
-
similarProfiles: zod_1.default.array(similarProfileSchema),
|
68
|
-
});
|
69
|
-
const createdProfileSchema = zod_1.default.object({
|
70
|
-
id: profile_schema_1.profileSchema.shape.id,
|
71
|
-
});
|
72
|
-
const createProfileResponseSchemaBase = zod_1.default.discriminatedUnion('type', [
|
73
|
-
similarityProfileSchema.extend({
|
74
|
-
type: zod_1.default.literal('similar'),
|
75
|
-
}),
|
76
|
-
createdProfileSchema.extend({
|
77
|
-
type: zod_1.default.literal('created'),
|
78
|
-
}),
|
79
|
-
]);
|
80
|
-
exports.createProfileResponseSchema = zod_1.default.object({
|
81
|
-
response: createProfileResponseSchemaBase,
|
82
|
-
});
|
83
|
-
//# sourceMappingURL=create-profile.schema.js.map
|
@@ -1,73 +0,0 @@
|
|
1
|
-
export declare const deleteProfileResponseSchema: import("zod").ZodObject<{
|
2
|
-
id: import("zod").ZodString;
|
3
|
-
shortId: import("zod").ZodNumber;
|
4
|
-
firstTimeMiExpo: import("zod").ZodBoolean;
|
5
|
-
username: import("zod").ZodNullable<import("zod").ZodString>;
|
6
|
-
password: import("zod").ZodNullable<import("zod").ZodString>;
|
7
|
-
phoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
8
|
-
isPhoneVerified: import("zod").ZodBoolean;
|
9
|
-
secondaryPhoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, string | null, string | null>;
|
10
|
-
fullName: import("zod").ZodString;
|
11
|
-
firstName: import("zod").ZodNullable<import("zod").ZodString>;
|
12
|
-
gender: import("zod").ZodNullable<import("zod").ZodString>;
|
13
|
-
birthDate: import("zod").ZodNullable<import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodDate>>;
|
14
|
-
profilePictureUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
15
|
-
instagram: import("zod").ZodNullable<import("zod").ZodString>;
|
16
|
-
mail: import("zod").ZodNullable<import("zod").ZodString>;
|
17
|
-
dni: import("zod").ZodNullable<import("zod").ZodString>;
|
18
|
-
alternativeNames: import("zod").ZodArray<import("zod").ZodString, "many">;
|
19
|
-
birthLocationId: import("zod").ZodNullable<import("zod").ZodString>;
|
20
|
-
residenceLocationId: import("zod").ZodNullable<import("zod").ZodString>;
|
21
|
-
isInTrash: import("zod").ZodBoolean;
|
22
|
-
movedToTrashDate: import("zod").ZodNullable<import("zod").ZodDate>;
|
23
|
-
created_at: import("zod").ZodDate;
|
24
|
-
updated_at: import("zod").ZodDate;
|
25
|
-
}, "strip", import("zod").ZodTypeAny, {
|
26
|
-
id: string;
|
27
|
-
username: string | null;
|
28
|
-
password: string | null;
|
29
|
-
phoneNumber: string;
|
30
|
-
secondaryPhoneNumber: string | null;
|
31
|
-
fullName: string;
|
32
|
-
profilePictureUrl: string | null;
|
33
|
-
mail: string | null;
|
34
|
-
created_at: Date;
|
35
|
-
updated_at: Date;
|
36
|
-
shortId: number;
|
37
|
-
firstTimeMiExpo: boolean;
|
38
|
-
isPhoneVerified: boolean;
|
39
|
-
firstName: string | null;
|
40
|
-
gender: string | null;
|
41
|
-
birthDate: Date | null;
|
42
|
-
instagram: string | null;
|
43
|
-
dni: string | null;
|
44
|
-
alternativeNames: string[];
|
45
|
-
birthLocationId: string | null;
|
46
|
-
residenceLocationId: string | null;
|
47
|
-
isInTrash: boolean;
|
48
|
-
movedToTrashDate: Date | null;
|
49
|
-
}, {
|
50
|
-
id: string;
|
51
|
-
username: string | null;
|
52
|
-
password: string | null;
|
53
|
-
phoneNumber: string;
|
54
|
-
secondaryPhoneNumber: string | null;
|
55
|
-
fullName: string;
|
56
|
-
profilePictureUrl: string | null;
|
57
|
-
mail: string | null;
|
58
|
-
created_at: Date;
|
59
|
-
updated_at: Date;
|
60
|
-
shortId: number;
|
61
|
-
firstTimeMiExpo: boolean;
|
62
|
-
isPhoneVerified: boolean;
|
63
|
-
firstName: string | null;
|
64
|
-
gender: string | null;
|
65
|
-
birthDate: string | null;
|
66
|
-
instagram: string | null;
|
67
|
-
dni: string | null;
|
68
|
-
alternativeNames: string[];
|
69
|
-
birthLocationId: string | null;
|
70
|
-
residenceLocationId: string | null;
|
71
|
-
isInTrash: boolean;
|
72
|
-
movedToTrashDate: Date | null;
|
73
|
-
}>;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.deleteProfileResponseSchema = void 0;
|
4
|
-
const profile_schema_1 = require("./profile.schema");
|
5
|
-
exports.deleteProfileResponseSchema = profile_schema_1.profileSchema;
|
6
|
-
//# sourceMappingURL=delete-profile.schema.js.map
|