expo-backend-types 0.30.0-EXPO-311-EB-Modificar-DB-schema.1 → 0.30.0-EXPO-308-auth.12
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.d.ts +327 -0
- package/dist/src/auth/dto/login-mi-expo.dto.js +31 -0
- package/dist/src/exports.d.ts +2 -0
- package/dist/src/exports.js +2 -0
- package/dist/src/i18n/es.d.ts +19 -0
- package/dist/src/i18n/es.js +19 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/image/constants.d.ts +5 -0
- package/dist/src/image/constants.js +9 -0
- package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
- package/dist/src/message/dto/non-read-messages.dto.js +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
- package/dist/src/otp/constants.d.ts +2 -0
- package/dist/src/otp/constants.js +6 -0
- package/dist/src/otp/dto/send-otp.dto.d.ts +158 -0
- package/dist/src/otp/dto/send-otp.dto.js +35 -0
- package/dist/src/otp/dto/verify-otp.dto.d.ts +286 -0
- package/dist/src/otp/dto/verify-otp.dto.js +28 -0
- package/dist/src/otp/exports.d.ts +2 -0
- package/dist/src/otp/exports.js +19 -0
- package/dist/src/prisma/constants.d.ts +1 -0
- package/dist/src/prisma/constants.js +5 -0
- package/dist/src/prisma/dtos.dto.d.ts +74 -0
- package/dist/src/prisma/dtos.dto.js +133 -0
- package/dist/src/profile/dto/create-profile.dto.d.ts +26 -10
- package/dist/src/profile/dto/create-profile.dto.js +4 -4
- package/dist/src/profile/dto/delete-profile.dto.d.ts +28 -4
- package/dist/src/profile/dto/delete-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +44 -4
- package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +72 -8
- package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +28 -4
- package/dist/src/profile/dto/find-by-id-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +28 -4
- package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +44 -4
- 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 +44 -4
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-trash.dto.d.ts +7 -3
- package/dist/src/profile/dto/find-trash.dto.js +2 -2
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +44 -4
- package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
- package/dist/src/profile/dto/profile.dto.d.ts +43 -29
- package/dist/src/profile/dto/profile.dto.js +6 -63
- package/dist/src/profile/dto/update-profile.dto.d.ts +32 -8
- package/dist/src/profile/dto/update-profile.dto.js +3 -3
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +44 -4
- package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +44 -4
- package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
- package/dist/src/webhook/constants.d.ts +1 -0
- package/dist/src/webhook/constants.js +5 -0
- package/dist/types/prisma-schema/edge.js +38 -24
- package/dist/types/prisma-schema/index-browser.js +18 -9
- package/dist/types/prisma-schema/index.d.ts +3862 -511
- package/dist/types/prisma-schema/index.js +38 -24
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +2 -2
- package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
- package/dist/types/prisma-schema/runtime/edge.js +18 -18
- package/dist/types/prisma-schema/runtime/index-browser.d.ts +1 -1
- package/dist/types/prisma-schema/runtime/library.d.ts +177 -133
- package/dist/types/prisma-schema/runtime/library.js +51 -51
- package/dist/types/prisma-schema/runtime/react-native.js +26 -26
- package/dist/types/prisma-schema/runtime/wasm.js +19 -19
- package/dist/types/prisma-schema/schema.prisma +22 -1
- package/dist/types/prisma-schema/wasm.js +18 -9
- package/dist/types/schema.d.ts +277 -2
- package/package.json +27 -24
@@ -0,0 +1,133 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.profileSchema = void 0;
|
30
|
+
const translate_1 = require("../i18n/translate");
|
31
|
+
const libphonenumber_js_1 = __importStar(require("libphonenumber-js"));
|
32
|
+
const zod_1 = __importDefault(require("zod"));
|
33
|
+
function formatArgNumber(phoneNumber, value) {
|
34
|
+
const prefixes9 = ['11', '15'];
|
35
|
+
const prefix = prefixes9.includes(phoneNumber?.nationalNumber?.slice(0, 2) ?? '')
|
36
|
+
? '9'
|
37
|
+
: '';
|
38
|
+
if (phoneNumber?.country === 'AR') {
|
39
|
+
return `${phoneNumber.countryCallingCode}${prefix}${phoneNumber.nationalNumber}`;
|
40
|
+
}
|
41
|
+
return value;
|
42
|
+
}
|
43
|
+
exports.profileSchema = zod_1.default.object({
|
44
|
+
id: zod_1.default.string().uuid({
|
45
|
+
message: (0, translate_1.translate)('model.profile.id.uuid'),
|
46
|
+
}),
|
47
|
+
shortId: zod_1.default.number(),
|
48
|
+
firstTimeMiExpo: zod_1.default.boolean(),
|
49
|
+
username: zod_1.default.string().nullable(),
|
50
|
+
password: zod_1.default.string().nullable(),
|
51
|
+
phoneNumber: zod_1.default
|
52
|
+
.string()
|
53
|
+
.min(1, {
|
54
|
+
message: (0, translate_1.translate)('model.profile.phoneNumber.required'),
|
55
|
+
})
|
56
|
+
.refine((value) => (0, libphonenumber_js_1.isValidPhoneNumber)(value, 'AR'), {
|
57
|
+
message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
|
58
|
+
})
|
59
|
+
.transform((value, ctx) => {
|
60
|
+
if (!value)
|
61
|
+
return value;
|
62
|
+
const phoneNumber = (0, libphonenumber_js_1.default)(value, {
|
63
|
+
defaultCountry: 'AR',
|
64
|
+
});
|
65
|
+
if (!phoneNumber) {
|
66
|
+
ctx.addIssue({
|
67
|
+
code: zod_1.default.ZodIssueCode.custom,
|
68
|
+
message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
|
69
|
+
});
|
70
|
+
return value;
|
71
|
+
}
|
72
|
+
return formatArgNumber(phoneNumber, value);
|
73
|
+
}),
|
74
|
+
isPhoneVerified: zod_1.default.boolean(),
|
75
|
+
secondaryPhoneNumber: zod_1.default
|
76
|
+
.string()
|
77
|
+
.nullable()
|
78
|
+
.refine((value) => {
|
79
|
+
if (value === null)
|
80
|
+
return true;
|
81
|
+
return (0, libphonenumber_js_1.isValidPhoneNumber)(value, 'AR');
|
82
|
+
}, {
|
83
|
+
message: (0, translate_1.translate)('model.profile.secondaryPhoneNumber.invalid'),
|
84
|
+
})
|
85
|
+
.transform((value, ctx) => {
|
86
|
+
if (!value)
|
87
|
+
return value;
|
88
|
+
const phoneNumber = (0, libphonenumber_js_1.default)(value, {
|
89
|
+
defaultCountry: 'AR',
|
90
|
+
});
|
91
|
+
if (!phoneNumber) {
|
92
|
+
ctx.addIssue({
|
93
|
+
code: zod_1.default.ZodIssueCode.custom,
|
94
|
+
message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
|
95
|
+
});
|
96
|
+
return value;
|
97
|
+
}
|
98
|
+
return formatArgNumber(phoneNumber, value);
|
99
|
+
}),
|
100
|
+
fullName: zod_1.default.string().min(1, {
|
101
|
+
message: (0, translate_1.translate)('model.profile.fullName.required'),
|
102
|
+
}),
|
103
|
+
firstName: zod_1.default
|
104
|
+
.string()
|
105
|
+
.min(1, {
|
106
|
+
message: (0, translate_1.translate)('model.profile.fullName.required'),
|
107
|
+
})
|
108
|
+
.nullable(),
|
109
|
+
gender: zod_1.default.string().nullable(),
|
110
|
+
birthDate: zod_1.default.string().pipe(zod_1.default.coerce.date()).nullable(),
|
111
|
+
profilePictureUrl: zod_1.default
|
112
|
+
.string()
|
113
|
+
.url({
|
114
|
+
message: (0, translate_1.translate)('model.profile.profilePictureUrl.invalid'),
|
115
|
+
})
|
116
|
+
.nullable(),
|
117
|
+
instagram: zod_1.default.string().nullable(),
|
118
|
+
mail: zod_1.default
|
119
|
+
.string()
|
120
|
+
.email({
|
121
|
+
message: (0, translate_1.translate)('model.profile.mail.invalid'),
|
122
|
+
})
|
123
|
+
.nullable(),
|
124
|
+
dni: zod_1.default.string().nullable(),
|
125
|
+
alternativeNames: zod_1.default.array(zod_1.default.string()),
|
126
|
+
birthLocationId: zod_1.default.string().uuid().nullable(),
|
127
|
+
residenceLocationId: zod_1.default.string().uuid().nullable(),
|
128
|
+
isInTrash: zod_1.default.boolean(),
|
129
|
+
movedToTrashDate: zod_1.default.coerce.date().nullable(),
|
130
|
+
created_at: zod_1.default.date(),
|
131
|
+
updated_at: zod_1.default.date(),
|
132
|
+
});
|
133
|
+
//# sourceMappingURL=dtos.dto.js.map
|
@@ -3,8 +3,12 @@ export declare const createProfileSchema: z.ZodObject<{
|
|
3
3
|
profile: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
4
4
|
id: z.ZodString;
|
5
5
|
shortId: z.ZodNumber;
|
6
|
-
|
7
|
-
|
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>;
|
8
12
|
fullName: z.ZodString;
|
9
13
|
firstName: z.ZodNullable<z.ZodString>;
|
10
14
|
gender: z.ZodNullable<z.ZodString>;
|
@@ -215,8 +219,8 @@ export declare const createProfileSchema: z.ZodObject<{
|
|
215
219
|
}>;
|
216
220
|
declare const CreateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
217
221
|
profile: z.ZodObject<{
|
218
|
-
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
219
|
-
secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
|
222
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
223
|
+
secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
|
220
224
|
fullName: z.ZodString;
|
221
225
|
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
222
226
|
mail: z.ZodNullable<z.ZodString>;
|
@@ -409,8 +413,12 @@ declare const similarProfileSchema: z.ZodObject<{
|
|
409
413
|
profile: z.ZodObject<Pick<{
|
410
414
|
id: z.ZodString;
|
411
415
|
shortId: z.ZodNumber;
|
412
|
-
|
413
|
-
|
416
|
+
firstTimeMiExpo: z.ZodBoolean;
|
417
|
+
username: z.ZodNullable<z.ZodString>;
|
418
|
+
password: z.ZodNullable<z.ZodString>;
|
419
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
420
|
+
isPhoneVerified: z.ZodBoolean;
|
421
|
+
secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
|
414
422
|
fullName: z.ZodString;
|
415
423
|
firstName: z.ZodNullable<z.ZodString>;
|
416
424
|
gender: z.ZodNullable<z.ZodString>;
|
@@ -460,8 +468,12 @@ export declare const createProfileResponseSchema: z.ZodObject<{
|
|
460
468
|
profile: z.ZodObject<Pick<{
|
461
469
|
id: z.ZodString;
|
462
470
|
shortId: z.ZodNumber;
|
463
|
-
|
464
|
-
|
471
|
+
firstTimeMiExpo: z.ZodBoolean;
|
472
|
+
username: z.ZodNullable<z.ZodString>;
|
473
|
+
password: z.ZodNullable<z.ZodString>;
|
474
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
475
|
+
isPhoneVerified: z.ZodBoolean;
|
476
|
+
secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
|
465
477
|
fullName: z.ZodString;
|
466
478
|
firstName: z.ZodNullable<z.ZodString>;
|
467
479
|
gender: z.ZodNullable<z.ZodString>;
|
@@ -579,8 +591,12 @@ declare const CreateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
|
|
579
591
|
profile: z.ZodObject<Pick<{
|
580
592
|
id: z.ZodString;
|
581
593
|
shortId: z.ZodNumber;
|
582
|
-
|
583
|
-
|
594
|
+
firstTimeMiExpo: z.ZodBoolean;
|
595
|
+
username: z.ZodNullable<z.ZodString>;
|
596
|
+
password: z.ZodNullable<z.ZodString>;
|
597
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
598
|
+
isPhoneVerified: z.ZodBoolean;
|
599
|
+
secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
|
584
600
|
fullName: z.ZodString;
|
585
601
|
firstName: z.ZodNullable<z.ZodString>;
|
586
602
|
gender: z.ZodNullable<z.ZodString>;
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CreateProfileResponseDto = exports.createProfileResponseSchema = exports.CreateProfileDto = exports.createProfileSchema = void 0;
|
7
7
|
const comment_dto_1 = require("../../comment/dto/comment.dto");
|
8
8
|
const location_dto_1 = require("../../location/dto/location.dto");
|
9
|
-
const
|
9
|
+
const dtos_dto_1 = require("../../prisma/dtos.dto");
|
10
10
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
11
11
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
12
12
|
const zod_1 = __importDefault(require("zod"));
|
13
13
|
exports.createProfileSchema = zod_1.default.object({
|
14
|
-
profile:
|
14
|
+
profile: dtos_dto_1.profileSchema
|
15
15
|
.pick({
|
16
16
|
alternativeNames: true,
|
17
17
|
birthDate: true,
|
@@ -57,7 +57,7 @@ class CreateProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWit
|
|
57
57
|
}
|
58
58
|
exports.CreateProfileDto = CreateProfileDto;
|
59
59
|
const similarProfileSchema = zod_1.default.object({
|
60
|
-
profile:
|
60
|
+
profile: dtos_dto_1.profileSchema.pick({
|
61
61
|
fullName: true,
|
62
62
|
phoneNumber: true,
|
63
63
|
id: true,
|
@@ -69,7 +69,7 @@ const similarityProfileSchema = zod_1.default.object({
|
|
69
69
|
similarProfiles: zod_1.default.array(similarProfileSchema),
|
70
70
|
});
|
71
71
|
const createdProfileSchema = zod_1.default.object({
|
72
|
-
id:
|
72
|
+
id: dtos_dto_1.profileSchema.shape.id,
|
73
73
|
});
|
74
74
|
const createProfileResponseSchemaBase = zod_1.default.discriminatedUnion('type', [
|
75
75
|
similarityProfileSchema.extend({
|
@@ -1,8 +1,12 @@
|
|
1
1
|
export declare const deleteProfileResponseSchema: import("zod").ZodObject<{
|
2
2
|
id: import("zod").ZodString;
|
3
3
|
shortId: import("zod").ZodNumber;
|
4
|
-
|
5
|
-
|
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>;
|
6
10
|
fullName: import("zod").ZodString;
|
7
11
|
firstName: import("zod").ZodNullable<import("zod").ZodString>;
|
8
12
|
gender: import("zod").ZodNullable<import("zod").ZodString>;
|
@@ -20,6 +24,8 @@ export declare const deleteProfileResponseSchema: import("zod").ZodObject<{
|
|
20
24
|
updated_at: import("zod").ZodDate;
|
21
25
|
}, "strip", import("zod").ZodTypeAny, {
|
22
26
|
id: string;
|
27
|
+
username: string | null;
|
28
|
+
password: string | null;
|
23
29
|
phoneNumber: string;
|
24
30
|
secondaryPhoneNumber: string | null;
|
25
31
|
fullName: string;
|
@@ -28,6 +34,8 @@ export declare const deleteProfileResponseSchema: import("zod").ZodObject<{
|
|
28
34
|
created_at: Date;
|
29
35
|
updated_at: Date;
|
30
36
|
shortId: number;
|
37
|
+
firstTimeMiExpo: boolean;
|
38
|
+
isPhoneVerified: boolean;
|
31
39
|
firstName: string | null;
|
32
40
|
gender: string | null;
|
33
41
|
birthDate: Date | null;
|
@@ -40,6 +48,8 @@ export declare const deleteProfileResponseSchema: import("zod").ZodObject<{
|
|
40
48
|
movedToTrashDate: Date | null;
|
41
49
|
}, {
|
42
50
|
id: string;
|
51
|
+
username: string | null;
|
52
|
+
password: string | null;
|
43
53
|
phoneNumber: string;
|
44
54
|
secondaryPhoneNumber: string | null;
|
45
55
|
fullName: string;
|
@@ -48,6 +58,8 @@ export declare const deleteProfileResponseSchema: import("zod").ZodObject<{
|
|
48
58
|
created_at: Date;
|
49
59
|
updated_at: Date;
|
50
60
|
shortId: number;
|
61
|
+
firstTimeMiExpo: boolean;
|
62
|
+
isPhoneVerified: boolean;
|
51
63
|
firstName: string | null;
|
52
64
|
gender: string | null;
|
53
65
|
birthDate: string | null;
|
@@ -62,8 +74,12 @@ export declare const deleteProfileResponseSchema: import("zod").ZodObject<{
|
|
62
74
|
declare const DeleteProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
63
75
|
id: import("zod").ZodString;
|
64
76
|
shortId: import("zod").ZodNumber;
|
65
|
-
|
66
|
-
|
77
|
+
firstTimeMiExpo: import("zod").ZodBoolean;
|
78
|
+
username: import("zod").ZodNullable<import("zod").ZodString>;
|
79
|
+
password: import("zod").ZodNullable<import("zod").ZodString>;
|
80
|
+
phoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
81
|
+
isPhoneVerified: import("zod").ZodBoolean;
|
82
|
+
secondaryPhoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, string | null, string | null>;
|
67
83
|
fullName: import("zod").ZodString;
|
68
84
|
firstName: import("zod").ZodNullable<import("zod").ZodString>;
|
69
85
|
gender: import("zod").ZodNullable<import("zod").ZodString>;
|
@@ -81,6 +97,8 @@ declare const DeleteProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
|
|
81
97
|
updated_at: import("zod").ZodString;
|
82
98
|
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
83
99
|
id: string;
|
100
|
+
username: string | null;
|
101
|
+
password: string | null;
|
84
102
|
phoneNumber: string;
|
85
103
|
secondaryPhoneNumber: string | null;
|
86
104
|
fullName: string;
|
@@ -89,6 +107,8 @@ declare const DeleteProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
|
|
89
107
|
created_at: string;
|
90
108
|
updated_at: string;
|
91
109
|
shortId: number;
|
110
|
+
firstTimeMiExpo: boolean;
|
111
|
+
isPhoneVerified: boolean;
|
92
112
|
firstName: string | null;
|
93
113
|
gender: string | null;
|
94
114
|
birthDate: Date | null;
|
@@ -101,6 +121,8 @@ declare const DeleteProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
|
|
101
121
|
movedToTrashDate: string | null;
|
102
122
|
}, {
|
103
123
|
id: string;
|
124
|
+
username: string | null;
|
125
|
+
password: string | null;
|
104
126
|
phoneNumber: string;
|
105
127
|
secondaryPhoneNumber: string | null;
|
106
128
|
fullName: string;
|
@@ -109,6 +131,8 @@ declare const DeleteProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
|
|
109
131
|
created_at: string;
|
110
132
|
updated_at: string;
|
111
133
|
shortId: number;
|
134
|
+
firstTimeMiExpo: boolean;
|
135
|
+
isPhoneVerified: boolean;
|
112
136
|
firstName: string | null;
|
113
137
|
gender: string | null;
|
114
138
|
birthDate: string | null;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.DeleteProfileResponseDto = exports.deleteProfileResponseSchema = void 0;
|
4
|
-
const
|
4
|
+
const dtos_dto_1 = require("../../prisma/dtos.dto");
|
5
5
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
-
exports.deleteProfileResponseSchema =
|
6
|
+
exports.deleteProfileResponseSchema = dtos_dto_1.profileSchema;
|
7
7
|
class DeleteProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteProfileResponseSchema) {
|
8
8
|
}
|
9
9
|
exports.DeleteProfileResponseDto = DeleteProfileResponseDto;
|
@@ -3,8 +3,12 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
3
3
|
profiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
4
4
|
id: z.ZodString;
|
5
5
|
shortId: z.ZodNumber;
|
6
|
-
|
7
|
-
|
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>;
|
8
12
|
fullName: z.ZodString;
|
9
13
|
firstName: z.ZodNullable<z.ZodString>;
|
10
14
|
gender: z.ZodNullable<z.ZodString>;
|
@@ -73,6 +77,8 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
73
77
|
}>, "many">;
|
74
78
|
}>, "strip", z.ZodTypeAny, {
|
75
79
|
id: string;
|
80
|
+
username: string | null;
|
81
|
+
password: string | null;
|
76
82
|
phoneNumber: string;
|
77
83
|
secondaryPhoneNumber: string | null;
|
78
84
|
fullName: string;
|
@@ -81,6 +87,8 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
81
87
|
created_at: Date;
|
82
88
|
updated_at: Date;
|
83
89
|
shortId: number;
|
90
|
+
firstTimeMiExpo: boolean;
|
91
|
+
isPhoneVerified: boolean;
|
84
92
|
firstName: string | null;
|
85
93
|
gender: string | null;
|
86
94
|
birthDate: Date | null;
|
@@ -105,6 +113,8 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
105
113
|
}[];
|
106
114
|
}, {
|
107
115
|
id: string;
|
116
|
+
username: string | null;
|
117
|
+
password: string | null;
|
108
118
|
phoneNumber: string;
|
109
119
|
secondaryPhoneNumber: string | null;
|
110
120
|
fullName: string;
|
@@ -113,6 +123,8 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
113
123
|
created_at: Date;
|
114
124
|
updated_at: Date;
|
115
125
|
shortId: number;
|
126
|
+
firstTimeMiExpo: boolean;
|
127
|
+
isPhoneVerified: boolean;
|
116
128
|
firstName: string | null;
|
117
129
|
gender: string | null;
|
118
130
|
birthDate: string | null;
|
@@ -139,6 +151,8 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
139
151
|
}, "strip", z.ZodTypeAny, {
|
140
152
|
profiles: {
|
141
153
|
id: string;
|
154
|
+
username: string | null;
|
155
|
+
password: string | null;
|
142
156
|
phoneNumber: string;
|
143
157
|
secondaryPhoneNumber: string | null;
|
144
158
|
fullName: string;
|
@@ -147,6 +161,8 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
147
161
|
created_at: Date;
|
148
162
|
updated_at: Date;
|
149
163
|
shortId: number;
|
164
|
+
firstTimeMiExpo: boolean;
|
165
|
+
isPhoneVerified: boolean;
|
150
166
|
firstName: string | null;
|
151
167
|
gender: string | null;
|
152
168
|
birthDate: Date | null;
|
@@ -173,6 +189,8 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
173
189
|
}, {
|
174
190
|
profiles: {
|
175
191
|
id: string;
|
192
|
+
username: string | null;
|
193
|
+
password: string | null;
|
176
194
|
phoneNumber: string;
|
177
195
|
secondaryPhoneNumber: string | null;
|
178
196
|
fullName: string;
|
@@ -181,6 +199,8 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
181
199
|
created_at: Date;
|
182
200
|
updated_at: Date;
|
183
201
|
shortId: number;
|
202
|
+
firstTimeMiExpo: boolean;
|
203
|
+
isPhoneVerified: boolean;
|
184
204
|
firstName: string | null;
|
185
205
|
gender: string | null;
|
186
206
|
birthDate: string | null;
|
@@ -209,8 +229,12 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
209
229
|
profiles: z.ZodArray<z.ZodObject<{
|
210
230
|
id: z.ZodString;
|
211
231
|
shortId: z.ZodNumber;
|
212
|
-
|
213
|
-
|
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>;
|
214
238
|
fullName: z.ZodString;
|
215
239
|
firstName: z.ZodNullable<z.ZodString>;
|
216
240
|
gender: z.ZodNullable<z.ZodString>;
|
@@ -273,6 +297,8 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
273
297
|
}>, "many">;
|
274
298
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
275
299
|
id: string;
|
300
|
+
username: string | null;
|
301
|
+
password: string | null;
|
276
302
|
phoneNumber: string;
|
277
303
|
secondaryPhoneNumber: string | null;
|
278
304
|
fullName: string;
|
@@ -281,6 +307,8 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
281
307
|
created_at: string;
|
282
308
|
updated_at: string;
|
283
309
|
shortId: number;
|
310
|
+
firstTimeMiExpo: boolean;
|
311
|
+
isPhoneVerified: boolean;
|
284
312
|
firstName: string | null;
|
285
313
|
gender: string | null;
|
286
314
|
birthDate: Date | null;
|
@@ -305,6 +333,8 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
305
333
|
}[];
|
306
334
|
}, {
|
307
335
|
id: string;
|
336
|
+
username: string | null;
|
337
|
+
password: string | null;
|
308
338
|
phoneNumber: string;
|
309
339
|
secondaryPhoneNumber: string | null;
|
310
340
|
fullName: string;
|
@@ -313,6 +343,8 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
313
343
|
created_at: string;
|
314
344
|
updated_at: string;
|
315
345
|
shortId: number;
|
346
|
+
firstTimeMiExpo: boolean;
|
347
|
+
isPhoneVerified: boolean;
|
316
348
|
firstName: string | null;
|
317
349
|
gender: string | null;
|
318
350
|
birthDate: string | null;
|
@@ -339,6 +371,8 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
339
371
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
340
372
|
profiles: {
|
341
373
|
id: string;
|
374
|
+
username: string | null;
|
375
|
+
password: string | null;
|
342
376
|
phoneNumber: string;
|
343
377
|
secondaryPhoneNumber: string | null;
|
344
378
|
fullName: string;
|
@@ -347,6 +381,8 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
347
381
|
created_at: string;
|
348
382
|
updated_at: string;
|
349
383
|
shortId: number;
|
384
|
+
firstTimeMiExpo: boolean;
|
385
|
+
isPhoneVerified: boolean;
|
350
386
|
firstName: string | null;
|
351
387
|
gender: string | null;
|
352
388
|
birthDate: Date | null;
|
@@ -373,6 +409,8 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
373
409
|
}, {
|
374
410
|
profiles: {
|
375
411
|
id: string;
|
412
|
+
username: string | null;
|
413
|
+
password: string | null;
|
376
414
|
phoneNumber: string;
|
377
415
|
secondaryPhoneNumber: string | null;
|
378
416
|
fullName: string;
|
@@ -381,6 +419,8 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
381
419
|
created_at: string;
|
382
420
|
updated_at: string;
|
383
421
|
shortId: number;
|
422
|
+
firstTimeMiExpo: boolean;
|
423
|
+
isPhoneVerified: boolean;
|
384
424
|
firstName: string | null;
|
385
425
|
gender: string | null;
|
386
426
|
birthDate: string | null;
|
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.FindAllProfileResponseDto = exports.findAllProfileResponseSchema = void 0;
|
7
|
-
const
|
7
|
+
const dtos_dto_1 = require("../../prisma/dtos.dto");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
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(
|
13
|
+
profiles: zod_1.default.array(dtos_dto_1.profileSchema.merge(zod_1.default.object({
|
14
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,
|