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,12 +1,88 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CreateProfileResponseDto = exports.CreateProfileDto = void 0;
|
4
|
-
const
|
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_schema_1 = require("../../schema/profile.schema");
|
5
10
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
-
|
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_schema_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) {
|
7
57
|
}
|
8
58
|
exports.CreateProfileDto = CreateProfileDto;
|
9
|
-
|
59
|
+
const similarProfileSchema = zod_1.default.object({
|
60
|
+
profile: profile_schema_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 similarityProfileSchema = zod_1.default.object({
|
69
|
+
similarProfiles: zod_1.default.array(similarProfileSchema),
|
70
|
+
});
|
71
|
+
const createdProfileSchema = zod_1.default.object({
|
72
|
+
id: profile_schema_1.profileSchema.shape.id,
|
73
|
+
});
|
74
|
+
const createProfileResponseSchemaBase = zod_1.default.discriminatedUnion('type', [
|
75
|
+
similarityProfileSchema.extend({
|
76
|
+
type: zod_1.default.literal('similar'),
|
77
|
+
}),
|
78
|
+
createdProfileSchema.extend({
|
79
|
+
type: zod_1.default.literal('created'),
|
80
|
+
}),
|
81
|
+
]);
|
82
|
+
exports.createProfileResponseSchema = zod_1.default.object({
|
83
|
+
response: createProfileResponseSchemaBase,
|
84
|
+
});
|
85
|
+
class CreateProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createProfileResponseSchema) {
|
10
86
|
}
|
11
87
|
exports.CreateProfileResponseDto = CreateProfileResponseDto;
|
12
88
|
//# sourceMappingURL=create-profile.dto.js.map
|
@@ -1,3 +1,76 @@
|
|
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
74
|
declare const DeleteProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
2
75
|
id: import("zod").ZodString;
|
3
76
|
shortId: import("zod").ZodNumber;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DeleteProfileResponseDto = void 0;
|
4
|
-
const
|
3
|
+
exports.DeleteProfileResponseDto = exports.deleteProfileResponseSchema = void 0;
|
4
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
5
5
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
-
|
6
|
+
exports.deleteProfileResponseSchema = profile_schema_1.profileSchema;
|
7
|
+
class DeleteProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteProfileResponseSchema) {
|
7
8
|
}
|
8
9
|
exports.DeleteProfileResponseDto = DeleteProfileResponseDto;
|
9
10
|
//# sourceMappingURL=delete-profile.dto.js.map
|
@@ -1,51 +1,278 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const findAllProfileResponseSchema: z.ZodObject<{
|
3
|
+
profiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
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
|
+
}, {
|
28
|
+
tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
29
|
+
id: z.ZodString;
|
30
|
+
name: z.ZodString;
|
31
|
+
groupId: z.ZodString;
|
32
|
+
type: z.ZodNativeEnum<{
|
33
|
+
PROFILE: "PROFILE";
|
34
|
+
EVENT: "EVENT";
|
35
|
+
PARTICIPANT: "PARTICIPANT";
|
36
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
37
|
+
}>;
|
38
|
+
created_at: z.ZodDate;
|
39
|
+
updated_at: z.ZodDate;
|
40
|
+
}, {
|
41
|
+
group: z.ZodObject<Pick<{
|
42
|
+
id: z.ZodString;
|
43
|
+
name: z.ZodString;
|
44
|
+
color: z.ZodString;
|
45
|
+
isExclusive: z.ZodBoolean;
|
46
|
+
created_at: z.ZodDate;
|
47
|
+
updated_at: z.ZodDate;
|
48
|
+
}, "color" | "isExclusive">, "strip", z.ZodTypeAny, {
|
49
|
+
color: string;
|
50
|
+
isExclusive: boolean;
|
51
|
+
}, {
|
52
|
+
color: string;
|
53
|
+
isExclusive: boolean;
|
54
|
+
}>;
|
55
|
+
}>, "strip", z.ZodTypeAny, {
|
56
|
+
id: string;
|
57
|
+
name: string;
|
58
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
59
|
+
created_at: Date;
|
60
|
+
updated_at: Date;
|
61
|
+
groupId: string;
|
62
|
+
group: {
|
63
|
+
color: string;
|
64
|
+
isExclusive: boolean;
|
65
|
+
};
|
66
|
+
}, {
|
67
|
+
id: string;
|
68
|
+
name: string;
|
69
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
70
|
+
created_at: Date;
|
71
|
+
updated_at: Date;
|
72
|
+
groupId: string;
|
73
|
+
group: {
|
74
|
+
color: string;
|
75
|
+
isExclusive: boolean;
|
76
|
+
};
|
77
|
+
}>, "many">;
|
78
|
+
}>, "strip", z.ZodTypeAny, {
|
79
|
+
id: string;
|
80
|
+
username: string | null;
|
81
|
+
password: string | null;
|
82
|
+
phoneNumber: string;
|
83
|
+
secondaryPhoneNumber: string | null;
|
84
|
+
fullName: string;
|
85
|
+
profilePictureUrl: string | null;
|
86
|
+
mail: string | null;
|
87
|
+
created_at: Date;
|
88
|
+
updated_at: Date;
|
89
|
+
shortId: number;
|
90
|
+
firstTimeMiExpo: boolean;
|
91
|
+
isPhoneVerified: boolean;
|
92
|
+
firstName: string | null;
|
93
|
+
gender: string | null;
|
94
|
+
birthDate: Date | null;
|
95
|
+
instagram: string | null;
|
96
|
+
dni: string | null;
|
97
|
+
alternativeNames: string[];
|
98
|
+
birthLocationId: string | null;
|
99
|
+
residenceLocationId: string | null;
|
100
|
+
isInTrash: boolean;
|
101
|
+
movedToTrashDate: Date | null;
|
102
|
+
tags: {
|
103
|
+
id: string;
|
104
|
+
name: string;
|
105
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
106
|
+
created_at: Date;
|
107
|
+
updated_at: Date;
|
108
|
+
groupId: string;
|
109
|
+
group: {
|
110
|
+
color: string;
|
111
|
+
isExclusive: boolean;
|
112
|
+
};
|
113
|
+
}[];
|
114
|
+
}, {
|
115
|
+
id: string;
|
116
|
+
username: string | null;
|
117
|
+
password: string | null;
|
118
|
+
phoneNumber: string;
|
119
|
+
secondaryPhoneNumber: string | null;
|
120
|
+
fullName: string;
|
121
|
+
profilePictureUrl: string | null;
|
122
|
+
mail: string | null;
|
123
|
+
created_at: Date;
|
124
|
+
updated_at: Date;
|
125
|
+
shortId: number;
|
126
|
+
firstTimeMiExpo: boolean;
|
127
|
+
isPhoneVerified: boolean;
|
128
|
+
firstName: string | null;
|
129
|
+
gender: string | null;
|
130
|
+
birthDate: string | null;
|
131
|
+
instagram: string | null;
|
132
|
+
dni: string | null;
|
133
|
+
alternativeNames: string[];
|
134
|
+
birthLocationId: string | null;
|
135
|
+
residenceLocationId: string | null;
|
136
|
+
isInTrash: boolean;
|
137
|
+
movedToTrashDate: Date | null;
|
138
|
+
tags: {
|
139
|
+
id: string;
|
140
|
+
name: string;
|
141
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
142
|
+
created_at: Date;
|
143
|
+
updated_at: Date;
|
144
|
+
groupId: string;
|
145
|
+
group: {
|
146
|
+
color: string;
|
147
|
+
isExclusive: boolean;
|
148
|
+
};
|
149
|
+
}[];
|
150
|
+
}>, "many">;
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
152
|
+
profiles: {
|
153
|
+
id: string;
|
154
|
+
username: string | null;
|
155
|
+
password: string | null;
|
156
|
+
phoneNumber: string;
|
157
|
+
secondaryPhoneNumber: string | null;
|
158
|
+
fullName: string;
|
159
|
+
profilePictureUrl: string | null;
|
160
|
+
mail: string | null;
|
161
|
+
created_at: Date;
|
162
|
+
updated_at: Date;
|
163
|
+
shortId: number;
|
164
|
+
firstTimeMiExpo: boolean;
|
165
|
+
isPhoneVerified: boolean;
|
166
|
+
firstName: string | null;
|
167
|
+
gender: string | null;
|
168
|
+
birthDate: Date | null;
|
169
|
+
instagram: string | null;
|
170
|
+
dni: string | null;
|
171
|
+
alternativeNames: string[];
|
172
|
+
birthLocationId: string | null;
|
173
|
+
residenceLocationId: string | null;
|
174
|
+
isInTrash: boolean;
|
175
|
+
movedToTrashDate: Date | null;
|
176
|
+
tags: {
|
177
|
+
id: string;
|
178
|
+
name: string;
|
179
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
180
|
+
created_at: Date;
|
181
|
+
updated_at: Date;
|
182
|
+
groupId: string;
|
183
|
+
group: {
|
184
|
+
color: string;
|
185
|
+
isExclusive: boolean;
|
186
|
+
};
|
187
|
+
}[];
|
188
|
+
}[];
|
189
|
+
}, {
|
190
|
+
profiles: {
|
191
|
+
id: string;
|
192
|
+
username: string | null;
|
193
|
+
password: string | null;
|
194
|
+
phoneNumber: string;
|
195
|
+
secondaryPhoneNumber: string | null;
|
196
|
+
fullName: string;
|
197
|
+
profilePictureUrl: string | null;
|
198
|
+
mail: string | null;
|
199
|
+
created_at: Date;
|
200
|
+
updated_at: Date;
|
201
|
+
shortId: number;
|
202
|
+
firstTimeMiExpo: boolean;
|
203
|
+
isPhoneVerified: boolean;
|
204
|
+
firstName: string | null;
|
205
|
+
gender: string | null;
|
206
|
+
birthDate: string | null;
|
207
|
+
instagram: string | null;
|
208
|
+
dni: string | null;
|
209
|
+
alternativeNames: string[];
|
210
|
+
birthLocationId: string | null;
|
211
|
+
residenceLocationId: string | null;
|
212
|
+
isInTrash: boolean;
|
213
|
+
movedToTrashDate: Date | null;
|
214
|
+
tags: {
|
215
|
+
id: string;
|
216
|
+
name: string;
|
217
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
218
|
+
created_at: Date;
|
219
|
+
updated_at: Date;
|
220
|
+
groupId: string;
|
221
|
+
group: {
|
222
|
+
color: string;
|
223
|
+
isExclusive: boolean;
|
224
|
+
};
|
225
|
+
}[];
|
226
|
+
}[];
|
227
|
+
}>;
|
228
|
+
declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
229
|
+
profiles: z.ZodArray<z.ZodObject<{
|
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.ZodString>;
|
251
|
+
created_at: z.ZodString;
|
252
|
+
updated_at: z.ZodString;
|
253
|
+
tags: z.ZodArray<z.ZodObject<{
|
254
|
+
id: z.ZodString;
|
255
|
+
name: z.ZodString;
|
256
|
+
groupId: z.ZodString;
|
257
|
+
type: z.ZodNativeEnum<{
|
31
258
|
PROFILE: "PROFILE";
|
32
259
|
EVENT: "EVENT";
|
33
260
|
PARTICIPANT: "PARTICIPANT";
|
34
261
|
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
35
262
|
}>;
|
36
|
-
created_at:
|
37
|
-
updated_at:
|
38
|
-
group:
|
39
|
-
color:
|
40
|
-
isExclusive:
|
41
|
-
},
|
263
|
+
created_at: z.ZodString;
|
264
|
+
updated_at: z.ZodString;
|
265
|
+
group: z.ZodObject<{
|
266
|
+
color: z.ZodString;
|
267
|
+
isExclusive: z.ZodBoolean;
|
268
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
42
269
|
color: string;
|
43
270
|
isExclusive: boolean;
|
44
271
|
}, {
|
45
272
|
color: string;
|
46
273
|
isExclusive: boolean;
|
47
274
|
}>;
|
48
|
-
},
|
275
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
49
276
|
id: string;
|
50
277
|
name: string;
|
51
278
|
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
@@ -68,7 +295,7 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
68
295
|
isExclusive: boolean;
|
69
296
|
};
|
70
297
|
}>, "many">;
|
71
|
-
},
|
298
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
72
299
|
id: string;
|
73
300
|
username: string | null;
|
74
301
|
password: string | null;
|
@@ -141,7 +368,7 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
141
368
|
};
|
142
369
|
}[];
|
143
370
|
}>, "many">;
|
144
|
-
},
|
371
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
145
372
|
profiles: {
|
146
373
|
id: string;
|
147
374
|
username: string | null;
|
@@ -1,9 +1,25 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.FindAllProfileResponseDto = void 0;
|
4
|
-
const
|
6
|
+
exports.FindAllProfileResponseDto = exports.findAllProfileResponseSchema = void 0;
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
5
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
-
|
9
|
+
const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
|
10
|
+
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
11
|
+
const zod_1 = __importDefault(require("zod"));
|
12
|
+
exports.findAllProfileResponseSchema = zod_1.default.object({
|
13
|
+
profiles: zod_1.default.array(profile_schema_1.profileSchema.merge(zod_1.default.object({
|
14
|
+
tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
|
15
|
+
group: tag_group_dto_1.tagGroupSchema.pick({
|
16
|
+
color: true,
|
17
|
+
isExclusive: true,
|
18
|
+
}),
|
19
|
+
}))),
|
20
|
+
}))),
|
21
|
+
});
|
22
|
+
class FindAllProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findAllProfileResponseSchema) {
|
7
23
|
}
|
8
24
|
exports.FindAllProfileResponseDto = FindAllProfileResponseDto;
|
9
25
|
//# sourceMappingURL=find-all-profile.dto.js.map
|