expo-backend-types 0.9.0-EXPO-249-EB-Modelo.5 → 0.9.0-EXPO-249-EB-Modelo.7
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 +21 -0
- package/dist/src/i18n/es.js +21 -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 +16 -16
- package/dist/src/profile/dto/find-all-profile.dto.js +4 -4
- 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 +10 -10
- package/dist/src/profile/dto/find-by-id-profile.dto.js +4 -4
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +16 -16
- 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 +16 -16
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +4 -4
- 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 +4 -0
- package/dist/src/profile/exports.js +4 -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 +411 -123
- package/package.json +4 -1
@@ -0,0 +1,84 @@
|
|
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.CreateProfileResponseDto = exports.createProfileResponseSchema = exports.CreateProfileDto = 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_dto_1 = require("./profile.dto");
|
10
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
11
|
+
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
12
|
+
const zod_1 = __importDefault(require("zod"));
|
13
|
+
exports.createProfileSchema = zod_1.default.object({
|
14
|
+
profile: profile_dto_1.profileSchema
|
15
|
+
.pick({
|
16
|
+
alternativeNames: true,
|
17
|
+
birthDate: true,
|
18
|
+
dni: true,
|
19
|
+
fullName: true,
|
20
|
+
gender: true,
|
21
|
+
instagram: true,
|
22
|
+
mail: true,
|
23
|
+
phoneNumber: true,
|
24
|
+
profilePictureUrl: true,
|
25
|
+
secondaryPhoneNumber: true,
|
26
|
+
})
|
27
|
+
.merge(zod_1.default.object({
|
28
|
+
comments: zod_1.default
|
29
|
+
.array(comment_dto_1.commentSchema.pick({
|
30
|
+
content: true,
|
31
|
+
isSolvable: true,
|
32
|
+
}))
|
33
|
+
.optional(),
|
34
|
+
residence: location_dto_1.locationSchema
|
35
|
+
.pick({
|
36
|
+
city: true,
|
37
|
+
country: true,
|
38
|
+
latitude: true,
|
39
|
+
longitude: true,
|
40
|
+
state: true,
|
41
|
+
})
|
42
|
+
.optional(),
|
43
|
+
birth: location_dto_1.locationSchema
|
44
|
+
.pick({
|
45
|
+
city: true,
|
46
|
+
country: true,
|
47
|
+
latitude: true,
|
48
|
+
longitude: true,
|
49
|
+
state: true,
|
50
|
+
})
|
51
|
+
.optional(),
|
52
|
+
tags: zod_1.default.array(tag_dto_1.tagSchema.shape.id).optional(),
|
53
|
+
})),
|
54
|
+
checkForSimilarity: zod_1.default.boolean().optional(),
|
55
|
+
});
|
56
|
+
class CreateProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createProfileSchema) {
|
57
|
+
}
|
58
|
+
exports.CreateProfileDto = CreateProfileDto;
|
59
|
+
const similarProfileSchema = zod_1.default.object({
|
60
|
+
profile: profile_dto_1.profileSchema.pick({
|
61
|
+
fullName: true,
|
62
|
+
phoneNumber: true,
|
63
|
+
id: true,
|
64
|
+
}),
|
65
|
+
similarityPhoneNumberPercentage: zod_1.default.number(),
|
66
|
+
similarityFullNamePercentage: zod_1.default.number(),
|
67
|
+
});
|
68
|
+
const createProfileResponseSchemaBase = zod_1.default.discriminatedUnion('type', [
|
69
|
+
zod_1.default.object({
|
70
|
+
type: zod_1.default.literal('similar'),
|
71
|
+
similarProfiles: zod_1.default.array(similarProfileSchema),
|
72
|
+
}),
|
73
|
+
zod_1.default.object({
|
74
|
+
type: zod_1.default.literal('created'),
|
75
|
+
id: profile_dto_1.profileSchema.shape.id,
|
76
|
+
}),
|
77
|
+
]);
|
78
|
+
exports.createProfileResponseSchema = zod_1.default.object({
|
79
|
+
response: createProfileResponseSchemaBase,
|
80
|
+
});
|
81
|
+
class CreateProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createProfileResponseSchema) {
|
82
|
+
}
|
83
|
+
exports.CreateProfileResponseDto = CreateProfileResponseDto;
|
84
|
+
//# sourceMappingURL=create-profile.dto.js.map
|
@@ -0,0 +1,125 @@
|
|
1
|
+
export declare const deleteProfileResponseSchema: import("zod").ZodObject<{
|
2
|
+
id: import("zod").ZodString;
|
3
|
+
shortId: import("zod").ZodNumber;
|
4
|
+
phoneNumber: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
5
|
+
secondaryPhoneNumber: import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>;
|
6
|
+
fullName: import("zod").ZodString;
|
7
|
+
firstName: import("zod").ZodNullable<import("zod").ZodString>;
|
8
|
+
gender: import("zod").ZodNullable<import("zod").ZodString>;
|
9
|
+
birthDate: import("zod").ZodNullable<import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodDate>>;
|
10
|
+
profilePictureUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
11
|
+
instagram: import("zod").ZodNullable<import("zod").ZodString>;
|
12
|
+
mail: import("zod").ZodNullable<import("zod").ZodString>;
|
13
|
+
dni: import("zod").ZodNullable<import("zod").ZodString>;
|
14
|
+
alternativeNames: import("zod").ZodArray<import("zod").ZodString, "many">;
|
15
|
+
birthLocationId: import("zod").ZodNullable<import("zod").ZodString>;
|
16
|
+
residenceLocationId: import("zod").ZodNullable<import("zod").ZodString>;
|
17
|
+
isInTrash: import("zod").ZodBoolean;
|
18
|
+
movedToTrashDate: import("zod").ZodNullable<import("zod").ZodDate>;
|
19
|
+
created_at: import("zod").ZodDate;
|
20
|
+
updated_at: import("zod").ZodDate;
|
21
|
+
}, "strip", import("zod").ZodTypeAny, {
|
22
|
+
id: string;
|
23
|
+
phoneNumber: string;
|
24
|
+
secondaryPhoneNumber: string | null;
|
25
|
+
fullName: string;
|
26
|
+
profilePictureUrl: string | null;
|
27
|
+
created_at: Date;
|
28
|
+
updated_at: Date;
|
29
|
+
shortId: number;
|
30
|
+
firstName: string | null;
|
31
|
+
gender: string | null;
|
32
|
+
birthDate: Date | null;
|
33
|
+
instagram: string | null;
|
34
|
+
mail: string | null;
|
35
|
+
dni: string | null;
|
36
|
+
alternativeNames: string[];
|
37
|
+
birthLocationId: string | null;
|
38
|
+
residenceLocationId: string | null;
|
39
|
+
isInTrash: boolean;
|
40
|
+
movedToTrashDate: Date | null;
|
41
|
+
}, {
|
42
|
+
id: string;
|
43
|
+
phoneNumber: string;
|
44
|
+
secondaryPhoneNumber: string | null;
|
45
|
+
fullName: string;
|
46
|
+
profilePictureUrl: string | null;
|
47
|
+
created_at: Date;
|
48
|
+
updated_at: Date;
|
49
|
+
shortId: number;
|
50
|
+
firstName: string | null;
|
51
|
+
gender: string | null;
|
52
|
+
birthDate: string | null;
|
53
|
+
instagram: string | null;
|
54
|
+
mail: string | null;
|
55
|
+
dni: string | null;
|
56
|
+
alternativeNames: string[];
|
57
|
+
birthLocationId: string | null;
|
58
|
+
residenceLocationId: string | null;
|
59
|
+
isInTrash: boolean;
|
60
|
+
movedToTrashDate: Date | null;
|
61
|
+
}>;
|
62
|
+
declare const DeleteProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
63
|
+
id: import("zod").ZodString;
|
64
|
+
shortId: import("zod").ZodNumber;
|
65
|
+
phoneNumber: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
66
|
+
secondaryPhoneNumber: import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>;
|
67
|
+
fullName: import("zod").ZodString;
|
68
|
+
firstName: import("zod").ZodNullable<import("zod").ZodString>;
|
69
|
+
gender: import("zod").ZodNullable<import("zod").ZodString>;
|
70
|
+
birthDate: import("zod").ZodNullable<import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodDate>>;
|
71
|
+
profilePictureUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
72
|
+
instagram: import("zod").ZodNullable<import("zod").ZodString>;
|
73
|
+
mail: import("zod").ZodNullable<import("zod").ZodString>;
|
74
|
+
dni: import("zod").ZodNullable<import("zod").ZodString>;
|
75
|
+
alternativeNames: import("zod").ZodArray<import("zod").ZodString, "many">;
|
76
|
+
birthLocationId: import("zod").ZodNullable<import("zod").ZodString>;
|
77
|
+
residenceLocationId: import("zod").ZodNullable<import("zod").ZodString>;
|
78
|
+
isInTrash: import("zod").ZodBoolean;
|
79
|
+
movedToTrashDate: import("zod").ZodNullable<import("zod").ZodString>;
|
80
|
+
created_at: import("zod").ZodString;
|
81
|
+
updated_at: import("zod").ZodString;
|
82
|
+
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
83
|
+
id: string;
|
84
|
+
phoneNumber: string;
|
85
|
+
secondaryPhoneNumber: string | null;
|
86
|
+
fullName: string;
|
87
|
+
profilePictureUrl: string | null;
|
88
|
+
created_at: string;
|
89
|
+
updated_at: string;
|
90
|
+
shortId: number;
|
91
|
+
firstName: 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
|
+
birthLocationId: string | null;
|
99
|
+
residenceLocationId: string | null;
|
100
|
+
isInTrash: boolean;
|
101
|
+
movedToTrashDate: string | null;
|
102
|
+
}, {
|
103
|
+
id: string;
|
104
|
+
phoneNumber: string;
|
105
|
+
secondaryPhoneNumber: string | null;
|
106
|
+
fullName: string;
|
107
|
+
profilePictureUrl: string | null;
|
108
|
+
created_at: string;
|
109
|
+
updated_at: string;
|
110
|
+
shortId: number;
|
111
|
+
firstName: string | null;
|
112
|
+
gender: string | null;
|
113
|
+
birthDate: string | null;
|
114
|
+
instagram: string | null;
|
115
|
+
mail: string | null;
|
116
|
+
dni: string | null;
|
117
|
+
alternativeNames: string[];
|
118
|
+
birthLocationId: string | null;
|
119
|
+
residenceLocationId: string | null;
|
120
|
+
isInTrash: boolean;
|
121
|
+
movedToTrashDate: string | null;
|
122
|
+
}>>;
|
123
|
+
export declare class DeleteProfileResponseDto extends DeleteProfileResponseDto_base {
|
124
|
+
}
|
125
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeleteProfileResponseDto = exports.deleteProfileResponseSchema = void 0;
|
4
|
+
const profile_dto_1 = require("./profile.dto");
|
5
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
+
exports.deleteProfileResponseSchema = profile_dto_1.profileSchema;
|
7
|
+
class DeleteProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteProfileResponseSchema) {
|
8
|
+
}
|
9
|
+
exports.DeleteProfileResponseDto = DeleteProfileResponseDto;
|
10
|
+
//# sourceMappingURL=delete-profile.dto.js.map
|
@@ -8,12 +8,12 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
8
8
|
fullName: z.ZodString;
|
9
9
|
firstName: z.ZodNullable<z.ZodString>;
|
10
10
|
gender: z.ZodNullable<z.ZodString>;
|
11
|
-
birthDate: z.ZodNullable<z.ZodDate
|
11
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
12
12
|
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
13
13
|
instagram: z.ZodNullable<z.ZodString>;
|
14
14
|
mail: z.ZodNullable<z.ZodString>;
|
15
15
|
dni: z.ZodNullable<z.ZodString>;
|
16
|
-
alternativeNames: z.
|
16
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
17
17
|
birthLocationId: z.ZodNullable<z.ZodString>;
|
18
18
|
residenceLocationId: z.ZodNullable<z.ZodString>;
|
19
19
|
isInTrash: z.ZodBoolean;
|
@@ -98,7 +98,7 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
98
98
|
instagram: string | null;
|
99
99
|
mail: string | null;
|
100
100
|
dni: string | null;
|
101
|
-
alternativeNames: string[]
|
101
|
+
alternativeNames: string[];
|
102
102
|
birthLocationId: string | null;
|
103
103
|
residenceLocationId: string | null;
|
104
104
|
isInTrash: boolean;
|
@@ -126,11 +126,11 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
126
126
|
shortId: number;
|
127
127
|
firstName: string | null;
|
128
128
|
gender: string | null;
|
129
|
-
birthDate:
|
129
|
+
birthDate: string | null;
|
130
130
|
instagram: string | null;
|
131
131
|
mail: string | null;
|
132
132
|
dni: string | null;
|
133
|
-
alternativeNames: string[]
|
133
|
+
alternativeNames: string[];
|
134
134
|
birthLocationId: string | null;
|
135
135
|
residenceLocationId: string | null;
|
136
136
|
isInTrash: boolean;
|
@@ -164,7 +164,7 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
164
164
|
instagram: string | null;
|
165
165
|
mail: string | null;
|
166
166
|
dni: string | null;
|
167
|
-
alternativeNames: string[]
|
167
|
+
alternativeNames: string[];
|
168
168
|
birthLocationId: string | null;
|
169
169
|
residenceLocationId: string | null;
|
170
170
|
isInTrash: boolean;
|
@@ -194,11 +194,11 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
194
194
|
shortId: number;
|
195
195
|
firstName: string | null;
|
196
196
|
gender: string | null;
|
197
|
-
birthDate:
|
197
|
+
birthDate: string | null;
|
198
198
|
instagram: string | null;
|
199
199
|
mail: string | null;
|
200
200
|
dni: string | null;
|
201
|
-
alternativeNames: string[]
|
201
|
+
alternativeNames: string[];
|
202
202
|
birthLocationId: string | null;
|
203
203
|
residenceLocationId: string | null;
|
204
204
|
isInTrash: boolean;
|
@@ -214,12 +214,12 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
214
214
|
fullName: z.ZodString;
|
215
215
|
firstName: z.ZodNullable<z.ZodString>;
|
216
216
|
gender: z.ZodNullable<z.ZodString>;
|
217
|
-
birthDate: z.ZodNullable<z.ZodString
|
217
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
218
218
|
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
219
219
|
instagram: z.ZodNullable<z.ZodString>;
|
220
220
|
mail: z.ZodNullable<z.ZodString>;
|
221
221
|
dni: z.ZodNullable<z.ZodString>;
|
222
|
-
alternativeNames: z.
|
222
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
223
223
|
birthLocationId: z.ZodNullable<z.ZodString>;
|
224
224
|
residenceLocationId: z.ZodNullable<z.ZodString>;
|
225
225
|
isInTrash: z.ZodBoolean;
|
@@ -294,11 +294,11 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
294
294
|
shortId: number;
|
295
295
|
firstName: string | null;
|
296
296
|
gender: string | null;
|
297
|
-
birthDate:
|
297
|
+
birthDate: Date | null;
|
298
298
|
instagram: string | null;
|
299
299
|
mail: string | null;
|
300
300
|
dni: string | null;
|
301
|
-
alternativeNames: string[]
|
301
|
+
alternativeNames: string[];
|
302
302
|
birthLocationId: string | null;
|
303
303
|
residenceLocationId: string | null;
|
304
304
|
isInTrash: boolean;
|
@@ -330,7 +330,7 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
330
330
|
instagram: string | null;
|
331
331
|
mail: string | null;
|
332
332
|
dni: string | null;
|
333
|
-
alternativeNames: string[]
|
333
|
+
alternativeNames: string[];
|
334
334
|
birthLocationId: string | null;
|
335
335
|
residenceLocationId: string | null;
|
336
336
|
isInTrash: boolean;
|
@@ -360,11 +360,11 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
360
360
|
shortId: number;
|
361
361
|
firstName: string | null;
|
362
362
|
gender: string | null;
|
363
|
-
birthDate:
|
363
|
+
birthDate: Date | null;
|
364
364
|
instagram: string | null;
|
365
365
|
mail: string | null;
|
366
366
|
dni: string | null;
|
367
|
-
alternativeNames: string[]
|
367
|
+
alternativeNames: string[];
|
368
368
|
birthLocationId: string | null;
|
369
369
|
residenceLocationId: string | null;
|
370
370
|
isInTrash: boolean;
|
@@ -398,7 +398,7 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
398
398
|
instagram: string | null;
|
399
399
|
mail: string | null;
|
400
400
|
dni: string | null;
|
401
|
-
alternativeNames: string[]
|
401
|
+
alternativeNames: string[];
|
402
402
|
birthLocationId: string | null;
|
403
403
|
residenceLocationId: string | null;
|
404
404
|
isInTrash: boolean;
|
@@ -10,14 +10,14 @@ const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
|
|
10
10
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
11
11
|
const zod_1 = __importDefault(require("zod"));
|
12
12
|
exports.findAllProfileResponseSchema = zod_1.default.object({
|
13
|
-
profiles: zod_1.default.array(profile_dto_1.profileSchema.
|
14
|
-
tags: zod_1.default.array(tag_dto_1.tagSchema.
|
13
|
+
profiles: zod_1.default.array(profile_dto_1.profileSchema.merge(zod_1.default.object({
|
14
|
+
tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
|
15
15
|
group: tag_group_dto_1.tagGroupSchema.pick({
|
16
16
|
color: true,
|
17
17
|
isExclusive: true,
|
18
18
|
}),
|
19
|
-
})),
|
20
|
-
})),
|
19
|
+
}))),
|
20
|
+
}))),
|
21
21
|
});
|
22
22
|
class FindAllProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findAllProfileResponseSchema) {
|
23
23
|
}
|