expo-backend-types 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +47 -0
- package/dist/src/i18n/es.js +47 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/profile/dto/create-profile.dto.d.ts +694 -0
- package/dist/src/profile/dto/create-profile.dto.js +84 -0
- package/dist/src/profile/dto/delete-profile.dto.d.ts +125 -0
- package/dist/src/profile/dto/delete-profile.dto.js +10 -0
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +410 -0
- package/dist/src/profile/dto/find-all-profile.dto.js +25 -0
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +655 -0
- package/dist/src/profile/dto/find-by-date-range-profile.dto.js +34 -0
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +475 -0
- package/dist/src/profile/dto/find-by-id-profile.dto.js +27 -0
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +125 -0
- package/dist/src/profile/dto/find-by-phone-number.dto.js +10 -0
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +337 -0
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +19 -0
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +393 -0
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +24 -0
- package/dist/src/profile/dto/find-trash.dto.d.ts +110 -0
- package/dist/src/profile/dto/find-trash.dto.js +24 -0
- package/dist/src/profile/dto/profile.dto.d.ts +5 -5
- package/dist/src/profile/dto/profile.dto.js +7 -3
- package/dist/src/profile/dto/update-profile.dto.d.ts +360 -0
- package/dist/src/profile/dto/update-profile.dto.js +55 -0
- package/dist/src/profile/exports.d.ts +10 -0
- package/dist/src/profile/exports.js +10 -0
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +16 -16
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +16 -16
- package/dist/types/prisma-schema/edge.js +5 -4
- package/dist/types/prisma-schema/index-browser.js +2 -1
- package/dist/types/prisma-schema/index.d.ts +9 -2
- package/dist/types/prisma-schema/index.js +5 -4
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +2 -0
- package/dist/types/prisma-schema/wasm.js +2 -1
- package/dist/types/schema.d.ts +777 -53
- package/package.json +4 -1
@@ -0,0 +1,694 @@
|
|
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
|
+
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
7
|
+
secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
|
8
|
+
fullName: z.ZodString;
|
9
|
+
firstName: z.ZodNullable<z.ZodString>;
|
10
|
+
gender: z.ZodNullable<z.ZodString>;
|
11
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
12
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
13
|
+
instagram: z.ZodNullable<z.ZodString>;
|
14
|
+
mail: z.ZodNullable<z.ZodString>;
|
15
|
+
dni: z.ZodNullable<z.ZodString>;
|
16
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
17
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
18
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
19
|
+
isInTrash: z.ZodBoolean;
|
20
|
+
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
21
|
+
created_at: z.ZodDate;
|
22
|
+
updated_at: z.ZodDate;
|
23
|
+
}, "phoneNumber" | "secondaryPhoneNumber" | "fullName" | "profilePictureUrl" | "gender" | "birthDate" | "instagram" | "mail" | "dni" | "alternativeNames">, {
|
24
|
+
comments: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
|
25
|
+
id: z.ZodString;
|
26
|
+
content: z.ZodString;
|
27
|
+
createdBy: z.ZodString;
|
28
|
+
profileId: z.ZodString;
|
29
|
+
isSolvable: z.ZodDefault<z.ZodBoolean>;
|
30
|
+
isSolved: z.ZodDefault<z.ZodBoolean>;
|
31
|
+
solvedAt: z.ZodNullable<z.ZodDate>;
|
32
|
+
solvedBy: z.ZodOptional<z.ZodString>;
|
33
|
+
created_at: z.ZodDate;
|
34
|
+
updated_at: z.ZodDate;
|
35
|
+
}, "content" | "isSolvable">, "strip", z.ZodTypeAny, {
|
36
|
+
content: string;
|
37
|
+
isSolvable: boolean;
|
38
|
+
}, {
|
39
|
+
content: string;
|
40
|
+
isSolvable?: boolean | undefined;
|
41
|
+
}>, "many">>;
|
42
|
+
residence: z.ZodOptional<z.ZodObject<Pick<{
|
43
|
+
id: z.ZodString;
|
44
|
+
latitude: z.ZodNumber;
|
45
|
+
longitude: z.ZodNumber;
|
46
|
+
country: z.ZodString;
|
47
|
+
state: z.ZodString;
|
48
|
+
city: z.ZodString;
|
49
|
+
created_at: z.ZodDate;
|
50
|
+
updated_at: z.ZodDate;
|
51
|
+
}, "latitude" | "longitude" | "state" | "country" | "city">, "strip", z.ZodTypeAny, {
|
52
|
+
latitude: number;
|
53
|
+
longitude: number;
|
54
|
+
state: string;
|
55
|
+
country: string;
|
56
|
+
city: string;
|
57
|
+
}, {
|
58
|
+
latitude: number;
|
59
|
+
longitude: number;
|
60
|
+
state: string;
|
61
|
+
country: string;
|
62
|
+
city: string;
|
63
|
+
}>>;
|
64
|
+
birth: z.ZodOptional<z.ZodObject<Pick<{
|
65
|
+
id: z.ZodString;
|
66
|
+
latitude: z.ZodNumber;
|
67
|
+
longitude: z.ZodNumber;
|
68
|
+
country: z.ZodString;
|
69
|
+
state: z.ZodString;
|
70
|
+
city: z.ZodString;
|
71
|
+
created_at: z.ZodDate;
|
72
|
+
updated_at: z.ZodDate;
|
73
|
+
}, "latitude" | "longitude" | "state" | "country" | "city">, "strip", z.ZodTypeAny, {
|
74
|
+
latitude: number;
|
75
|
+
longitude: number;
|
76
|
+
state: string;
|
77
|
+
country: string;
|
78
|
+
city: string;
|
79
|
+
}, {
|
80
|
+
latitude: number;
|
81
|
+
longitude: number;
|
82
|
+
state: string;
|
83
|
+
country: string;
|
84
|
+
city: string;
|
85
|
+
}>>;
|
86
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
87
|
+
}>, "strip", z.ZodTypeAny, {
|
88
|
+
phoneNumber: string;
|
89
|
+
secondaryPhoneNumber: string | null;
|
90
|
+
fullName: string;
|
91
|
+
profilePictureUrl: string | null;
|
92
|
+
gender: string | null;
|
93
|
+
birthDate: Date | null;
|
94
|
+
instagram: string | null;
|
95
|
+
mail: string | null;
|
96
|
+
dni: string | null;
|
97
|
+
alternativeNames: string[];
|
98
|
+
comments?: {
|
99
|
+
content: string;
|
100
|
+
isSolvable: boolean;
|
101
|
+
}[] | undefined;
|
102
|
+
tags?: string[] | undefined;
|
103
|
+
residence?: {
|
104
|
+
latitude: number;
|
105
|
+
longitude: number;
|
106
|
+
state: string;
|
107
|
+
country: string;
|
108
|
+
city: string;
|
109
|
+
} | undefined;
|
110
|
+
birth?: {
|
111
|
+
latitude: number;
|
112
|
+
longitude: number;
|
113
|
+
state: string;
|
114
|
+
country: string;
|
115
|
+
city: string;
|
116
|
+
} | undefined;
|
117
|
+
}, {
|
118
|
+
phoneNumber: string;
|
119
|
+
secondaryPhoneNumber: string | null;
|
120
|
+
fullName: string;
|
121
|
+
profilePictureUrl: string | null;
|
122
|
+
gender: string | null;
|
123
|
+
birthDate: string | null;
|
124
|
+
instagram: string | null;
|
125
|
+
mail: string | null;
|
126
|
+
dni: string | null;
|
127
|
+
alternativeNames: string[];
|
128
|
+
comments?: {
|
129
|
+
content: string;
|
130
|
+
isSolvable?: boolean | undefined;
|
131
|
+
}[] | undefined;
|
132
|
+
tags?: string[] | undefined;
|
133
|
+
residence?: {
|
134
|
+
latitude: number;
|
135
|
+
longitude: number;
|
136
|
+
state: string;
|
137
|
+
country: string;
|
138
|
+
city: string;
|
139
|
+
} | undefined;
|
140
|
+
birth?: {
|
141
|
+
latitude: number;
|
142
|
+
longitude: number;
|
143
|
+
state: string;
|
144
|
+
country: string;
|
145
|
+
city: string;
|
146
|
+
} | undefined;
|
147
|
+
}>;
|
148
|
+
checkForSimilarity: z.ZodOptional<z.ZodBoolean>;
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
150
|
+
profile: {
|
151
|
+
phoneNumber: string;
|
152
|
+
secondaryPhoneNumber: string | null;
|
153
|
+
fullName: string;
|
154
|
+
profilePictureUrl: string | null;
|
155
|
+
gender: string | null;
|
156
|
+
birthDate: Date | null;
|
157
|
+
instagram: string | null;
|
158
|
+
mail: string | null;
|
159
|
+
dni: string | null;
|
160
|
+
alternativeNames: string[];
|
161
|
+
comments?: {
|
162
|
+
content: string;
|
163
|
+
isSolvable: boolean;
|
164
|
+
}[] | undefined;
|
165
|
+
tags?: string[] | undefined;
|
166
|
+
residence?: {
|
167
|
+
latitude: number;
|
168
|
+
longitude: number;
|
169
|
+
state: string;
|
170
|
+
country: string;
|
171
|
+
city: string;
|
172
|
+
} | undefined;
|
173
|
+
birth?: {
|
174
|
+
latitude: number;
|
175
|
+
longitude: number;
|
176
|
+
state: string;
|
177
|
+
country: string;
|
178
|
+
city: string;
|
179
|
+
} | undefined;
|
180
|
+
};
|
181
|
+
checkForSimilarity?: boolean | undefined;
|
182
|
+
}, {
|
183
|
+
profile: {
|
184
|
+
phoneNumber: string;
|
185
|
+
secondaryPhoneNumber: string | null;
|
186
|
+
fullName: string;
|
187
|
+
profilePictureUrl: string | null;
|
188
|
+
gender: string | null;
|
189
|
+
birthDate: string | null;
|
190
|
+
instagram: string | null;
|
191
|
+
mail: string | null;
|
192
|
+
dni: string | null;
|
193
|
+
alternativeNames: string[];
|
194
|
+
comments?: {
|
195
|
+
content: string;
|
196
|
+
isSolvable?: boolean | undefined;
|
197
|
+
}[] | undefined;
|
198
|
+
tags?: string[] | undefined;
|
199
|
+
residence?: {
|
200
|
+
latitude: number;
|
201
|
+
longitude: number;
|
202
|
+
state: string;
|
203
|
+
country: string;
|
204
|
+
city: string;
|
205
|
+
} | undefined;
|
206
|
+
birth?: {
|
207
|
+
latitude: number;
|
208
|
+
longitude: number;
|
209
|
+
state: string;
|
210
|
+
country: string;
|
211
|
+
city: string;
|
212
|
+
} | undefined;
|
213
|
+
};
|
214
|
+
checkForSimilarity?: boolean | undefined;
|
215
|
+
}>;
|
216
|
+
declare const CreateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
217
|
+
profile: z.ZodObject<{
|
218
|
+
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
219
|
+
secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
|
220
|
+
fullName: z.ZodString;
|
221
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
222
|
+
gender: z.ZodNullable<z.ZodString>;
|
223
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
224
|
+
instagram: z.ZodNullable<z.ZodString>;
|
225
|
+
mail: z.ZodNullable<z.ZodString>;
|
226
|
+
dni: z.ZodNullable<z.ZodString>;
|
227
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
228
|
+
comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
229
|
+
content: z.ZodString;
|
230
|
+
isSolvable: z.ZodDefault<z.ZodBoolean>;
|
231
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
232
|
+
content: string;
|
233
|
+
isSolvable: boolean;
|
234
|
+
}, {
|
235
|
+
content: string;
|
236
|
+
isSolvable?: boolean | undefined;
|
237
|
+
}>, "many">>;
|
238
|
+
residence: z.ZodOptional<z.ZodObject<{
|
239
|
+
latitude: z.ZodNumber;
|
240
|
+
longitude: z.ZodNumber;
|
241
|
+
state: z.ZodString;
|
242
|
+
country: z.ZodString;
|
243
|
+
city: z.ZodString;
|
244
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
245
|
+
latitude: number;
|
246
|
+
longitude: number;
|
247
|
+
state: string;
|
248
|
+
country: string;
|
249
|
+
city: string;
|
250
|
+
}, {
|
251
|
+
latitude: number;
|
252
|
+
longitude: number;
|
253
|
+
state: string;
|
254
|
+
country: string;
|
255
|
+
city: string;
|
256
|
+
}>>;
|
257
|
+
birth: z.ZodOptional<z.ZodObject<{
|
258
|
+
latitude: z.ZodNumber;
|
259
|
+
longitude: z.ZodNumber;
|
260
|
+
state: z.ZodString;
|
261
|
+
country: z.ZodString;
|
262
|
+
city: z.ZodString;
|
263
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
264
|
+
latitude: number;
|
265
|
+
longitude: number;
|
266
|
+
state: string;
|
267
|
+
country: string;
|
268
|
+
city: string;
|
269
|
+
}, {
|
270
|
+
latitude: number;
|
271
|
+
longitude: number;
|
272
|
+
state: string;
|
273
|
+
country: string;
|
274
|
+
city: string;
|
275
|
+
}>>;
|
276
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
277
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
278
|
+
phoneNumber: string;
|
279
|
+
secondaryPhoneNumber: string | null;
|
280
|
+
fullName: string;
|
281
|
+
profilePictureUrl: string | null;
|
282
|
+
gender: string | null;
|
283
|
+
birthDate: Date | null;
|
284
|
+
instagram: string | null;
|
285
|
+
mail: string | null;
|
286
|
+
dni: string | null;
|
287
|
+
alternativeNames: string[];
|
288
|
+
comments?: {
|
289
|
+
content: string;
|
290
|
+
isSolvable: boolean;
|
291
|
+
}[] | undefined;
|
292
|
+
tags?: string[] | undefined;
|
293
|
+
residence?: {
|
294
|
+
latitude: number;
|
295
|
+
longitude: number;
|
296
|
+
state: string;
|
297
|
+
country: string;
|
298
|
+
city: string;
|
299
|
+
} | undefined;
|
300
|
+
birth?: {
|
301
|
+
latitude: number;
|
302
|
+
longitude: number;
|
303
|
+
state: string;
|
304
|
+
country: string;
|
305
|
+
city: string;
|
306
|
+
} | undefined;
|
307
|
+
}, {
|
308
|
+
phoneNumber: string;
|
309
|
+
secondaryPhoneNumber: string | null;
|
310
|
+
fullName: string;
|
311
|
+
profilePictureUrl: string | null;
|
312
|
+
gender: string | null;
|
313
|
+
birthDate: string | null;
|
314
|
+
instagram: string | null;
|
315
|
+
mail: string | null;
|
316
|
+
dni: string | null;
|
317
|
+
alternativeNames: string[];
|
318
|
+
comments?: {
|
319
|
+
content: string;
|
320
|
+
isSolvable?: boolean | undefined;
|
321
|
+
}[] | undefined;
|
322
|
+
tags?: string[] | undefined;
|
323
|
+
residence?: {
|
324
|
+
latitude: number;
|
325
|
+
longitude: number;
|
326
|
+
state: string;
|
327
|
+
country: string;
|
328
|
+
city: string;
|
329
|
+
} | undefined;
|
330
|
+
birth?: {
|
331
|
+
latitude: number;
|
332
|
+
longitude: number;
|
333
|
+
state: string;
|
334
|
+
country: string;
|
335
|
+
city: string;
|
336
|
+
} | undefined;
|
337
|
+
}>;
|
338
|
+
checkForSimilarity: z.ZodOptional<z.ZodBoolean>;
|
339
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
340
|
+
profile: {
|
341
|
+
phoneNumber: string;
|
342
|
+
secondaryPhoneNumber: string | null;
|
343
|
+
fullName: string;
|
344
|
+
profilePictureUrl: string | null;
|
345
|
+
gender: string | null;
|
346
|
+
birthDate: Date | null;
|
347
|
+
instagram: string | null;
|
348
|
+
mail: string | null;
|
349
|
+
dni: string | null;
|
350
|
+
alternativeNames: string[];
|
351
|
+
comments?: {
|
352
|
+
content: string;
|
353
|
+
isSolvable: boolean;
|
354
|
+
}[] | undefined;
|
355
|
+
tags?: string[] | undefined;
|
356
|
+
residence?: {
|
357
|
+
latitude: number;
|
358
|
+
longitude: number;
|
359
|
+
state: string;
|
360
|
+
country: string;
|
361
|
+
city: string;
|
362
|
+
} | undefined;
|
363
|
+
birth?: {
|
364
|
+
latitude: number;
|
365
|
+
longitude: number;
|
366
|
+
state: string;
|
367
|
+
country: string;
|
368
|
+
city: string;
|
369
|
+
} | undefined;
|
370
|
+
};
|
371
|
+
checkForSimilarity?: boolean | undefined;
|
372
|
+
}, {
|
373
|
+
profile: {
|
374
|
+
phoneNumber: string;
|
375
|
+
secondaryPhoneNumber: string | null;
|
376
|
+
fullName: string;
|
377
|
+
profilePictureUrl: string | null;
|
378
|
+
gender: string | null;
|
379
|
+
birthDate: string | null;
|
380
|
+
instagram: string | null;
|
381
|
+
mail: string | null;
|
382
|
+
dni: string | null;
|
383
|
+
alternativeNames: string[];
|
384
|
+
comments?: {
|
385
|
+
content: string;
|
386
|
+
isSolvable?: boolean | undefined;
|
387
|
+
}[] | undefined;
|
388
|
+
tags?: string[] | undefined;
|
389
|
+
residence?: {
|
390
|
+
latitude: number;
|
391
|
+
longitude: number;
|
392
|
+
state: string;
|
393
|
+
country: string;
|
394
|
+
city: string;
|
395
|
+
} | undefined;
|
396
|
+
birth?: {
|
397
|
+
latitude: number;
|
398
|
+
longitude: number;
|
399
|
+
state: string;
|
400
|
+
country: string;
|
401
|
+
city: string;
|
402
|
+
} | undefined;
|
403
|
+
};
|
404
|
+
checkForSimilarity?: boolean | undefined;
|
405
|
+
}>>;
|
406
|
+
export declare class CreateProfileDto extends CreateProfileDto_base {
|
407
|
+
}
|
408
|
+
declare const similarProfileSchema: z.ZodObject<{
|
409
|
+
profile: z.ZodObject<Pick<{
|
410
|
+
id: z.ZodString;
|
411
|
+
shortId: z.ZodNumber;
|
412
|
+
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
413
|
+
secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
|
414
|
+
fullName: z.ZodString;
|
415
|
+
firstName: z.ZodNullable<z.ZodString>;
|
416
|
+
gender: z.ZodNullable<z.ZodString>;
|
417
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
418
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
419
|
+
instagram: z.ZodNullable<z.ZodString>;
|
420
|
+
mail: z.ZodNullable<z.ZodString>;
|
421
|
+
dni: z.ZodNullable<z.ZodString>;
|
422
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
423
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
424
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
425
|
+
isInTrash: z.ZodBoolean;
|
426
|
+
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
427
|
+
created_at: z.ZodDate;
|
428
|
+
updated_at: z.ZodDate;
|
429
|
+
}, "id" | "phoneNumber" | "fullName">, "strip", z.ZodTypeAny, {
|
430
|
+
id: string;
|
431
|
+
phoneNumber: string;
|
432
|
+
fullName: string;
|
433
|
+
}, {
|
434
|
+
id: string;
|
435
|
+
phoneNumber: string;
|
436
|
+
fullName: string;
|
437
|
+
}>;
|
438
|
+
similarityPhoneNumberPercentage: z.ZodNumber;
|
439
|
+
similarityFullNamePercentage: z.ZodNumber;
|
440
|
+
}, "strip", z.ZodTypeAny, {
|
441
|
+
profile: {
|
442
|
+
id: string;
|
443
|
+
phoneNumber: string;
|
444
|
+
fullName: string;
|
445
|
+
};
|
446
|
+
similarityPhoneNumberPercentage: number;
|
447
|
+
similarityFullNamePercentage: number;
|
448
|
+
}, {
|
449
|
+
profile: {
|
450
|
+
id: string;
|
451
|
+
phoneNumber: string;
|
452
|
+
fullName: string;
|
453
|
+
};
|
454
|
+
similarityPhoneNumberPercentage: number;
|
455
|
+
similarityFullNamePercentage: number;
|
456
|
+
}>;
|
457
|
+
export declare const createProfileResponseSchema: z.ZodObject<{
|
458
|
+
response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
459
|
+
type: z.ZodLiteral<"similar">;
|
460
|
+
similarProfiles: z.ZodArray<z.ZodObject<{
|
461
|
+
profile: z.ZodObject<Pick<{
|
462
|
+
id: z.ZodString;
|
463
|
+
shortId: z.ZodNumber;
|
464
|
+
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
465
|
+
secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
|
466
|
+
fullName: z.ZodString;
|
467
|
+
firstName: z.ZodNullable<z.ZodString>;
|
468
|
+
gender: z.ZodNullable<z.ZodString>;
|
469
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
470
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
471
|
+
instagram: z.ZodNullable<z.ZodString>;
|
472
|
+
mail: z.ZodNullable<z.ZodString>;
|
473
|
+
dni: z.ZodNullable<z.ZodString>;
|
474
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
475
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
476
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
477
|
+
isInTrash: z.ZodBoolean;
|
478
|
+
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
479
|
+
created_at: z.ZodDate;
|
480
|
+
updated_at: z.ZodDate;
|
481
|
+
}, "id" | "phoneNumber" | "fullName">, "strip", z.ZodTypeAny, {
|
482
|
+
id: string;
|
483
|
+
phoneNumber: string;
|
484
|
+
fullName: string;
|
485
|
+
}, {
|
486
|
+
id: string;
|
487
|
+
phoneNumber: string;
|
488
|
+
fullName: string;
|
489
|
+
}>;
|
490
|
+
similarityPhoneNumberPercentage: z.ZodNumber;
|
491
|
+
similarityFullNamePercentage: z.ZodNumber;
|
492
|
+
}, "strip", z.ZodTypeAny, {
|
493
|
+
profile: {
|
494
|
+
id: string;
|
495
|
+
phoneNumber: string;
|
496
|
+
fullName: string;
|
497
|
+
};
|
498
|
+
similarityPhoneNumberPercentage: number;
|
499
|
+
similarityFullNamePercentage: number;
|
500
|
+
}, {
|
501
|
+
profile: {
|
502
|
+
id: string;
|
503
|
+
phoneNumber: string;
|
504
|
+
fullName: string;
|
505
|
+
};
|
506
|
+
similarityPhoneNumberPercentage: number;
|
507
|
+
similarityFullNamePercentage: number;
|
508
|
+
}>, "many">;
|
509
|
+
}, "strip", z.ZodTypeAny, {
|
510
|
+
type: "similar";
|
511
|
+
similarProfiles: {
|
512
|
+
profile: {
|
513
|
+
id: string;
|
514
|
+
phoneNumber: string;
|
515
|
+
fullName: string;
|
516
|
+
};
|
517
|
+
similarityPhoneNumberPercentage: number;
|
518
|
+
similarityFullNamePercentage: number;
|
519
|
+
}[];
|
520
|
+
}, {
|
521
|
+
type: "similar";
|
522
|
+
similarProfiles: {
|
523
|
+
profile: {
|
524
|
+
id: string;
|
525
|
+
phoneNumber: string;
|
526
|
+
fullName: string;
|
527
|
+
};
|
528
|
+
similarityPhoneNumberPercentage: number;
|
529
|
+
similarityFullNamePercentage: number;
|
530
|
+
}[];
|
531
|
+
}>, z.ZodObject<{
|
532
|
+
type: z.ZodLiteral<"created">;
|
533
|
+
id: z.ZodString;
|
534
|
+
}, "strip", z.ZodTypeAny, {
|
535
|
+
id: string;
|
536
|
+
type: "created";
|
537
|
+
}, {
|
538
|
+
id: string;
|
539
|
+
type: "created";
|
540
|
+
}>]>;
|
541
|
+
}, "strip", z.ZodTypeAny, {
|
542
|
+
response: {
|
543
|
+
type: "similar";
|
544
|
+
similarProfiles: {
|
545
|
+
profile: {
|
546
|
+
id: string;
|
547
|
+
phoneNumber: string;
|
548
|
+
fullName: string;
|
549
|
+
};
|
550
|
+
similarityPhoneNumberPercentage: number;
|
551
|
+
similarityFullNamePercentage: number;
|
552
|
+
}[];
|
553
|
+
} | {
|
554
|
+
id: string;
|
555
|
+
type: "created";
|
556
|
+
};
|
557
|
+
}, {
|
558
|
+
response: {
|
559
|
+
type: "similar";
|
560
|
+
similarProfiles: {
|
561
|
+
profile: {
|
562
|
+
id: string;
|
563
|
+
phoneNumber: string;
|
564
|
+
fullName: string;
|
565
|
+
};
|
566
|
+
similarityPhoneNumberPercentage: number;
|
567
|
+
similarityFullNamePercentage: number;
|
568
|
+
}[];
|
569
|
+
} | {
|
570
|
+
id: string;
|
571
|
+
type: "created";
|
572
|
+
};
|
573
|
+
}>;
|
574
|
+
declare const CreateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
575
|
+
response: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
576
|
+
type: z.ZodLiteral<"similar">;
|
577
|
+
similarProfiles: z.ZodArray<z.ZodObject<{
|
578
|
+
profile: z.ZodObject<Pick<{
|
579
|
+
id: z.ZodString;
|
580
|
+
shortId: z.ZodNumber;
|
581
|
+
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
582
|
+
secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
|
583
|
+
fullName: z.ZodString;
|
584
|
+
firstName: z.ZodNullable<z.ZodString>;
|
585
|
+
gender: z.ZodNullable<z.ZodString>;
|
586
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
587
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
588
|
+
instagram: z.ZodNullable<z.ZodString>;
|
589
|
+
mail: z.ZodNullable<z.ZodString>;
|
590
|
+
dni: z.ZodNullable<z.ZodString>;
|
591
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
592
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
593
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
594
|
+
isInTrash: z.ZodBoolean;
|
595
|
+
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
596
|
+
created_at: z.ZodDate;
|
597
|
+
updated_at: z.ZodDate;
|
598
|
+
}, "id" | "phoneNumber" | "fullName">, "strip", z.ZodTypeAny, {
|
599
|
+
id: string;
|
600
|
+
phoneNumber: string;
|
601
|
+
fullName: string;
|
602
|
+
}, {
|
603
|
+
id: string;
|
604
|
+
phoneNumber: string;
|
605
|
+
fullName: string;
|
606
|
+
}>;
|
607
|
+
similarityPhoneNumberPercentage: z.ZodNumber;
|
608
|
+
similarityFullNamePercentage: z.ZodNumber;
|
609
|
+
}, "strip", z.ZodTypeAny, {
|
610
|
+
profile: {
|
611
|
+
id: string;
|
612
|
+
phoneNumber: string;
|
613
|
+
fullName: string;
|
614
|
+
};
|
615
|
+
similarityPhoneNumberPercentage: number;
|
616
|
+
similarityFullNamePercentage: number;
|
617
|
+
}, {
|
618
|
+
profile: {
|
619
|
+
id: string;
|
620
|
+
phoneNumber: string;
|
621
|
+
fullName: string;
|
622
|
+
};
|
623
|
+
similarityPhoneNumberPercentage: number;
|
624
|
+
similarityFullNamePercentage: number;
|
625
|
+
}>, "many">;
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
627
|
+
type: "similar";
|
628
|
+
similarProfiles: {
|
629
|
+
profile: {
|
630
|
+
id: string;
|
631
|
+
phoneNumber: string;
|
632
|
+
fullName: string;
|
633
|
+
};
|
634
|
+
similarityPhoneNumberPercentage: number;
|
635
|
+
similarityFullNamePercentage: number;
|
636
|
+
}[];
|
637
|
+
}, {
|
638
|
+
type: "similar";
|
639
|
+
similarProfiles: {
|
640
|
+
profile: {
|
641
|
+
id: string;
|
642
|
+
phoneNumber: string;
|
643
|
+
fullName: string;
|
644
|
+
};
|
645
|
+
similarityPhoneNumberPercentage: number;
|
646
|
+
similarityFullNamePercentage: number;
|
647
|
+
}[];
|
648
|
+
}>, z.ZodObject<{
|
649
|
+
type: z.ZodLiteral<"created">;
|
650
|
+
id: z.ZodString;
|
651
|
+
}, "strip", z.ZodTypeAny, {
|
652
|
+
id: string;
|
653
|
+
type: "created";
|
654
|
+
}, {
|
655
|
+
id: string;
|
656
|
+
type: "created";
|
657
|
+
}>]>;
|
658
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
659
|
+
response: {
|
660
|
+
type: "similar";
|
661
|
+
similarProfiles: {
|
662
|
+
profile: {
|
663
|
+
id: string;
|
664
|
+
phoneNumber: string;
|
665
|
+
fullName: string;
|
666
|
+
};
|
667
|
+
similarityPhoneNumberPercentage: number;
|
668
|
+
similarityFullNamePercentage: number;
|
669
|
+
}[];
|
670
|
+
} | {
|
671
|
+
id: string;
|
672
|
+
type: "created";
|
673
|
+
};
|
674
|
+
}, {
|
675
|
+
response: {
|
676
|
+
type: "similar";
|
677
|
+
similarProfiles: {
|
678
|
+
profile: {
|
679
|
+
id: string;
|
680
|
+
phoneNumber: string;
|
681
|
+
fullName: string;
|
682
|
+
};
|
683
|
+
similarityPhoneNumberPercentage: number;
|
684
|
+
similarityFullNamePercentage: number;
|
685
|
+
}[];
|
686
|
+
} | {
|
687
|
+
id: string;
|
688
|
+
type: "created";
|
689
|
+
};
|
690
|
+
}>>;
|
691
|
+
export declare class CreateProfileResponseDto extends CreateProfileResponseDto_base {
|
692
|
+
}
|
693
|
+
export type SimilarityProfile = z.infer<typeof similarProfileSchema>;
|
694
|
+
export {};
|