expo-backend-types 0.30.0-EXPO-308-auth.13 → 0.30.0-EXPO-308-auth.15
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 +2 -2
- package/dist/src/exports.d.ts +0 -1
- package/dist/src/exports.js +0 -1
- package/dist/src/message/dto/non-read-messages.dto.js +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
- package/dist/src/otp/dto/send-otp.dto.js +2 -2
- package/dist/src/otp/dto/verify-otp.dto.js +3 -3
- package/dist/src/profile/dto/create-profile.dto.js +4 -4
- package/dist/src/profile/dto/delete-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
- package/dist/src/profile/dto/find-by-id-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-trash.dto.js +2 -2
- package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
- package/dist/src/profile/dto/profile.dto.js +2 -2
- package/dist/src/profile/dto/update-profile.dto.js +3 -3
- package/dist/src/schema/exports.d.ts +1 -0
- package/dist/src/schema/exports.js +18 -0
- package/dist/src/{prisma/dtos.dto.js → schema/profile.schema.js} +1 -1
- package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
- package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
- package/package.json +23 -28
- /package/dist/src/{prisma/dtos.dto.d.ts → schema/profile.schema.d.ts} +0 -0
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.LoginMiExpoResponseDto = exports.loginMiExpoResponseSchema = exports.LoginMiExpoDto = exports.loginMiExpoSchema = void 0;
|
7
7
|
const account_dto_1 = require("../../account/dto/account.dto");
|
8
|
-
const
|
8
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
9
9
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
10
10
|
const zod_1 = __importDefault(require("zod"));
|
11
11
|
exports.loginMiExpoSchema = account_dto_1.accountSchema.pick({
|
@@ -16,7 +16,7 @@ class LoginMiExpoDto extends (0, create_zod_dto_without_date_1.createZodDtoWitho
|
|
16
16
|
}
|
17
17
|
exports.LoginMiExpoDto = LoginMiExpoDto;
|
18
18
|
exports.loginMiExpoResponseSchema = zod_1.default.object({
|
19
|
-
user:
|
19
|
+
user: profile_schema_1.profileSchema.omit({
|
20
20
|
password: true,
|
21
21
|
}),
|
22
22
|
backendTokens: zod_1.default.object({
|
package/dist/src/exports.d.ts
CHANGED
@@ -7,7 +7,6 @@ export * from './event/exports';
|
|
7
7
|
export * from './location/exports';
|
8
8
|
export * from './message/exports';
|
9
9
|
export * from './otp/exports';
|
10
|
-
export * from './prisma/dtos.dto';
|
11
10
|
export * from './profile/exports';
|
12
11
|
export * from './shared/dto-modification/zod-without-dates';
|
13
12
|
export * from './tag-group/exports';
|
package/dist/src/exports.js
CHANGED
@@ -23,7 +23,6 @@ __exportStar(require("./event/exports"), exports);
|
|
23
23
|
__exportStar(require("./location/exports"), exports);
|
24
24
|
__exportStar(require("./message/exports"), exports);
|
25
25
|
__exportStar(require("./otp/exports"), exports);
|
26
|
-
__exportStar(require("./prisma/dtos.dto"), exports);
|
27
26
|
__exportStar(require("./profile/exports"), exports);
|
28
27
|
__exportStar(require("./shared/dto-modification/zod-without-dates"), exports);
|
29
28
|
__exportStar(require("./tag-group/exports"), exports);
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.NonReadMessagesDto = exports.nonReadMessagesSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const zod_1 = __importDefault(require("zod"));
|
10
10
|
exports.nonReadMessagesSchema = zod_1.default.object({
|
11
11
|
messages: zod_1.default.array(zod_1.default.object({
|
12
|
-
profilePhoneNumber:
|
12
|
+
profilePhoneNumber: profile_schema_1.profileSchema.shape.phoneNumber,
|
13
13
|
_count: zod_1.default.object({
|
14
14
|
id: zod_1.default.number(),
|
15
15
|
}),
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.SendMessageToPhoneResponseDto = exports.sendMessageToPhoneResponseSchema = exports.SendMessageToPhoneDto = exports.sendMessageToPhoneSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const zod_1 = __importDefault(require("zod"));
|
10
10
|
exports.sendMessageToPhoneSchema = zod_1.default.object({
|
11
|
-
phone:
|
11
|
+
phone: profile_schema_1.profileSchema.shape.phoneNumber,
|
12
12
|
message: zod_1.default.string(),
|
13
13
|
});
|
14
14
|
class SendMessageToPhoneDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.sendMessageToPhoneSchema) {
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.SendOtpResponseDto = exports.sendOtpResponseSchema = exports.discriminatedResponseSchema = exports.SendOtpDto = exports.sendOtpSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const zod_1 = __importDefault(require("zod"));
|
10
10
|
exports.sendOtpSchema = zod_1.default.object({
|
11
|
-
phoneNumber:
|
11
|
+
phoneNumber: profile_schema_1.profileSchema.shape.phoneNumber,
|
12
12
|
});
|
13
13
|
class SendOtpDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.sendOtpSchema) {
|
14
14
|
}
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.VerifyOtpResponseDto = exports.verifyOtpResponseSchema = exports.VerifyOtpDto = exports.verifyOtpSchema = void 0;
|
7
7
|
const translate_1 = require("../../i18n/translate");
|
8
8
|
const constants_1 = require("../constants");
|
9
|
-
const
|
9
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
10
10
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
11
11
|
const zod_1 = __importDefault(require("zod"));
|
12
12
|
exports.verifyOtpSchema = zod_1.default.object({
|
13
|
-
phoneNumber:
|
13
|
+
phoneNumber: profile_schema_1.profileSchema.shape.phoneNumber,
|
14
14
|
code: zod_1.default.string().length(constants_1.OTP_LENGTH, {
|
15
15
|
message: (0, translate_1.translate)('route.otp.verify.error-format'),
|
16
16
|
}),
|
@@ -20,7 +20,7 @@ class VerifyOtpDto extends (0, create_zod_dto_without_date_1.createZodDtoWithout
|
|
20
20
|
exports.VerifyOtpDto = VerifyOtpDto;
|
21
21
|
exports.verifyOtpResponseSchema = zod_1.default.object({
|
22
22
|
success: zod_1.default.boolean(),
|
23
|
-
profile:
|
23
|
+
profile: profile_schema_1.profileSchema,
|
24
24
|
});
|
25
25
|
class VerifyOtpResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.verifyOtpResponseSchema) {
|
26
26
|
}
|
@@ -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 profile_schema_1 = require("../../schema/profile.schema");
|
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: profile_schema_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: profile_schema_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: profile_schema_1.profileSchema.shape.id,
|
73
73
|
});
|
74
74
|
const createProfileResponseSchemaBase = zod_1.default.discriminatedUnion('type', [
|
75
75
|
similarityProfileSchema.extend({
|
@@ -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 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
|
-
exports.deleteProfileResponseSchema =
|
6
|
+
exports.deleteProfileResponseSchema = profile_schema_1.profileSchema;
|
7
7
|
class DeleteProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteProfileResponseSchema) {
|
8
8
|
}
|
9
9
|
exports.DeleteProfileResponseDto = DeleteProfileResponseDto;
|
@@ -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 profile_schema_1 = require("../../schema/profile.schema");
|
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(profile_schema_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,
|
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.FindByDateRangeResponseDto = exports.findByDateRangeResponseSchema = exports.FindByDateRangeDto = exports.findByDateRangeSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
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.findByDateRangeSchema = zod_1.default.object({
|
13
|
-
profiles: zod_1.default.array(
|
13
|
+
profiles: zod_1.default.array(profile_schema_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
|
id: true,
|
@@ -21,7 +21,7 @@ exports.findByDateRangeSchema = zod_1.default.object({
|
|
21
21
|
class FindByDateRangeDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByDateRangeSchema) {
|
22
22
|
}
|
23
23
|
exports.FindByDateRangeDto = FindByDateRangeDto;
|
24
|
-
exports.findByDateRangeResponseSchema = zod_1.default.record(zod_1.default.string(), zod_1.default.array(
|
24
|
+
exports.findByDateRangeResponseSchema = zod_1.default.record(zod_1.default.string(), zod_1.default.array(profile_schema_1.profileSchema.merge(zod_1.default.object({
|
25
25
|
tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
|
26
26
|
group: tag_group_dto_1.tagGroupSchema.pick({
|
27
27
|
id: true,
|
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.FindByIdProfileResponseDto = exports.findByIdProfileResponseSchema = void 0;
|
7
7
|
const location_dto_1 = require("../../location/dto/location.dto");
|
8
|
-
const
|
8
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
9
9
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
10
10
|
const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
|
11
11
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
12
12
|
const zod_1 = __importDefault(require("zod"));
|
13
|
-
exports.findByIdProfileResponseSchema =
|
13
|
+
exports.findByIdProfileResponseSchema = profile_schema_1.profileSchema.merge(zod_1.default.object({
|
14
14
|
residenceLocation: location_dto_1.locationSchema.nullable(),
|
15
15
|
birthLocation: location_dto_1.locationSchema.nullable(),
|
16
16
|
tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.FindByPhoneNumberResponseDto = exports.findByPhoneNumberResponseSchema = void 0;
|
4
|
-
const
|
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
|
-
exports.findByPhoneNumberResponseSchema =
|
6
|
+
exports.findByPhoneNumberResponseSchema = profile_schema_1.profileSchema;
|
7
7
|
class FindByPhoneNumberResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByPhoneNumberResponseSchema) {
|
8
8
|
}
|
9
9
|
exports.FindByPhoneNumberResponseDto = FindByPhoneNumberResponseDto;
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.FindByTagGroupsProfileResponseDto = exports.findByTagGroupsProfileResponseSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
10
10
|
const zod_1 = __importDefault(require("zod"));
|
11
11
|
exports.findByTagGroupsProfileResponseSchema = zod_1.default.object({
|
12
|
-
profiles: zod_1.default.array(
|
12
|
+
profiles: zod_1.default.array(profile_schema_1.profileSchema.merge(zod_1.default.object({
|
13
13
|
tags: zod_1.default.array(tag_dto_1.tagSchema),
|
14
14
|
}))),
|
15
15
|
});
|
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.FindByTagsProfileResponseDto = exports.findByTagsProfileResponseSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
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.findByTagsProfileResponseSchema = zod_1.default.object({
|
13
|
-
profiles: zod_1.default.array(
|
13
|
+
profiles: zod_1.default.array(profile_schema_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
|
isExclusive: true,
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.FindTrashResponseDto = exports.findTrashResponseSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const zod_1 = __importDefault(require("zod"));
|
10
10
|
exports.findTrashResponseSchema = zod_1.default.object({
|
11
|
-
profiles: zod_1.default.array(
|
11
|
+
profiles: zod_1.default.array(profile_schema_1.profileSchema.pick({
|
12
12
|
id: true,
|
13
13
|
fullName: true,
|
14
14
|
profilePictureUrl: true,
|
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.FindWithActiveChatResponseDto = exports.findWithActiveChatResponseSchema = void 0;
|
7
7
|
const message_dto_1 = require("../../message/dto/message.dto");
|
8
|
-
const
|
8
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
9
9
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
10
10
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
11
11
|
const zod_1 = __importDefault(require("zod"));
|
12
12
|
exports.findWithActiveChatResponseSchema = zod_1.default.object({
|
13
|
-
profiles: zod_1.default.array(
|
13
|
+
profiles: zod_1.default.array(profile_schema_1.profileSchema.merge(zod_1.default.object({
|
14
14
|
tags: zod_1.default.array(tag_dto_1.tagSchema),
|
15
15
|
inChat: zod_1.default.boolean(),
|
16
16
|
messages: zod_1.default.array(message_dto_1.messageSchema.pick({
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ProfileDto = void 0;
|
4
|
-
const
|
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
|
-
class ProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(
|
6
|
+
class ProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(profile_schema_1.profileSchema) {
|
7
7
|
}
|
8
8
|
exports.ProfileDto = ProfileDto;
|
9
9
|
//# sourceMappingURL=profile.dto.js.map
|
@@ -5,11 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.UpdateProfileResponseDto = exports.updateProfileResponseSchema = exports.UpdateProfileDto = exports.updateProfileSchema = void 0;
|
7
7
|
const location_dto_1 = require("../../location/dto/location.dto");
|
8
|
-
const
|
8
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
9
9
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
10
10
|
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
11
11
|
const zod_1 = __importDefault(require("zod"));
|
12
|
-
exports.updateProfileSchema =
|
12
|
+
exports.updateProfileSchema = profile_schema_1.profileSchema
|
13
13
|
.pick({
|
14
14
|
alternativeNames: true,
|
15
15
|
birthDate: true,
|
@@ -49,7 +49,7 @@ exports.updateProfileSchema = dtos_dto_1.profileSchema
|
|
49
49
|
class UpdateProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateProfileSchema) {
|
50
50
|
}
|
51
51
|
exports.UpdateProfileDto = UpdateProfileDto;
|
52
|
-
exports.updateProfileResponseSchema =
|
52
|
+
exports.updateProfileResponseSchema = profile_schema_1.profileSchema;
|
53
53
|
class UpdateProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateProfileResponseSchema) {
|
54
54
|
}
|
55
55
|
exports.UpdateProfileResponseDto = UpdateProfileResponseDto;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './profile.schema';
|
@@ -0,0 +1,18 @@
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./profile.schema"), exports);
|
18
|
+
//# sourceMappingURL=exports.js.map
|
@@ -4,19 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.MassiveAllocationResponseDto = exports.massiveAllocationResponseSchema = exports.MassiveAllocationDto = exports.massiveAllocationSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const tag_dto_1 = require("./tag.dto");
|
10
10
|
const zod_1 = __importDefault(require("zod"));
|
11
11
|
exports.massiveAllocationSchema = zod_1.default.object({
|
12
12
|
tagIds: zod_1.default.array(tag_dto_1.tagSchema.shape.id),
|
13
|
-
profileIds: zod_1.default.array(
|
13
|
+
profileIds: zod_1.default.array(profile_schema_1.profileSchema.shape.id),
|
14
14
|
});
|
15
15
|
class MassiveAllocationDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveAllocationSchema) {
|
16
16
|
}
|
17
17
|
exports.MassiveAllocationDto = MassiveAllocationDto;
|
18
18
|
exports.massiveAllocationResponseSchema = zod_1.default.object({
|
19
|
-
profiles: zod_1.default.array(
|
19
|
+
profiles: zod_1.default.array(profile_schema_1.profileSchema),
|
20
20
|
});
|
21
21
|
class MassiveAllocationResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveAllocationResponseSchema) {
|
22
22
|
}
|
@@ -4,19 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.MassiveDeallocationResponseDto = exports.massiveDeallocationResponseSchema = exports.MassiveDeallocationDto = exports.massiveDeallocationSchema = void 0;
|
7
|
-
const
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
8
8
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
9
|
const tag_dto_1 = require("./tag.dto");
|
10
10
|
const zod_1 = __importDefault(require("zod"));
|
11
11
|
exports.massiveDeallocationSchema = zod_1.default.object({
|
12
12
|
tagIds: zod_1.default.array(tag_dto_1.tagSchema.shape.id),
|
13
|
-
profileIds: zod_1.default.array(
|
13
|
+
profileIds: zod_1.default.array(profile_schema_1.profileSchema.shape.id),
|
14
14
|
});
|
15
15
|
class MassiveDeallocationDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveDeallocationSchema) {
|
16
16
|
}
|
17
17
|
exports.MassiveDeallocationDto = MassiveDeallocationDto;
|
18
18
|
exports.massiveDeallocationResponseSchema = zod_1.default.object({
|
19
|
-
profiles: zod_1.default.array(
|
19
|
+
profiles: zod_1.default.array(profile_schema_1.profileSchema),
|
20
20
|
});
|
21
21
|
class MassiveDeallocationResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveDeallocationResponseSchema) {
|
22
22
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.30.0-EXPO-308-auth.
|
3
|
+
"version": "0.30.0-EXPO-308-auth.15",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -8,10 +8,10 @@
|
|
8
8
|
"files": [
|
9
9
|
"dist/types",
|
10
10
|
"dist/src/**/*.dto.{js,d.ts,ts}",
|
11
|
+
"dist/src/**/*.schema.{js,d.ts,ts}",
|
11
12
|
"dist/src/**/constants.{js,d.ts,ts}",
|
12
13
|
"dist/src/**/exports.{js,d.ts,ts}",
|
13
14
|
"dist/src/shared/dto-modification",
|
14
|
-
"dist/src/shared/errors/dotType.ts",
|
15
15
|
"dist/src/i18n"
|
16
16
|
],
|
17
17
|
"scripts": {
|
@@ -20,7 +20,7 @@
|
|
20
20
|
"postinstall": "patch-package",
|
21
21
|
"format": "prettier --write \"src/**/*.ts\" \"types/**/*.ts\"",
|
22
22
|
"check-format": "prettier --check \"src/**/*.ts\"",
|
23
|
-
"check-exports": "attw --pack
|
23
|
+
"check-exports": "attw --pack .",
|
24
24
|
"local-release": "changeset version && changeset publish",
|
25
25
|
"commit-schema": "git add ./types/schema.d.ts swagger.yaml && git commit -m \"Update schema\"",
|
26
26
|
"start": "npx prisma generate && npx nest start",
|
@@ -41,24 +41,37 @@
|
|
41
41
|
"@anatine/zod-nestjs": "^2.0.9",
|
42
42
|
"@anatine/zod-openapi": "^2.2.6",
|
43
43
|
"i18n-js": "^4.4.3",
|
44
|
-
"libphonenumber-js": "^1.10.53",
|
45
44
|
"patch-package": "^8.0.0",
|
46
45
|
"zod": "^3.23.8"
|
47
46
|
},
|
48
47
|
"devDependencies": {
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
48
|
+
"reflect-metadata": "^0.2.0",
|
49
|
+
"string-comparison": "^1.3.0",
|
50
|
+
"json-to-pretty-yaml": "^1.2.2",
|
51
|
+
"jszip": "^3.10.1",
|
52
|
+
"multer": "^1.4.5-lts.1",
|
53
|
+
"openapi3-ts": "^4.4.0",
|
52
54
|
"@nestjs/common": "^10.0.0",
|
53
55
|
"@nestjs/config": "^3.2.3",
|
54
56
|
"@nestjs/core": "^10.0.0",
|
55
57
|
"@nestjs/jwt": "^10.2.0",
|
56
58
|
"@nestjs/platform-express": "^10.0.0",
|
57
|
-
"@nestjs/schematics": "^10.0.0",
|
58
59
|
"@nestjs/swagger": "^7.3.1",
|
60
|
+
"@prisma/client": "^6.3.1",
|
61
|
+
"bcrypt": "^5.1.1",
|
62
|
+
"body-parser": "^1.20.3",
|
63
|
+
"class-transformer": "^0.5.1",
|
64
|
+
"class-validator": "^0.14.1",
|
65
|
+
"country-state-city": "^3.2.1",
|
66
|
+
"date-fns": "^4.1.0",
|
67
|
+
"exceljs": "^4.4.0",
|
68
|
+
"fast-csv": "^5.0.2",
|
69
|
+
"@arethetypeswrong/cli": "^0.15.4",
|
70
|
+
"@changesets/cli": "^2.27.7",
|
71
|
+
"@nestjs/cli": "^10.0.0",
|
72
|
+
"@nestjs/schematics": "^10.0.0",
|
59
73
|
"@nestjs/testing": "^10.0.0",
|
60
74
|
"@openapitools/openapi-generator-cli": "^2.13.4",
|
61
|
-
"@prisma/client": "^6.3.1",
|
62
75
|
"@types/bcrypt": "^5.0.2",
|
63
76
|
"@types/express": "^4.17.17",
|
64
77
|
"@types/jest": "^29.5.2",
|
@@ -69,33 +82,19 @@
|
|
69
82
|
"@types/supertest": "^6.0.0",
|
70
83
|
"@typescript-eslint/eslint-plugin": "^8.8.0",
|
71
84
|
"@typescript-eslint/parser": "^8.8.0",
|
72
|
-
"
|
73
|
-
"body-parser": "^1.20.3",
|
74
|
-
"class-transformer": "^0.5.1",
|
75
|
-
"class-validator": "^0.14.1",
|
76
|
-
"country-state-city": "^3.2.1",
|
77
|
-
"date-fns": "^4.1.0",
|
85
|
+
"eslint": "^9.11.1",
|
78
86
|
"eslint-config-prettier": "^9.0.0",
|
79
87
|
"eslint-plugin-prettier": "^5.0.0",
|
80
88
|
"eslint-plugin-unused-imports": "^4.1.4",
|
81
|
-
"eslint": "^9.11.1",
|
82
|
-
"exceljs": "^4.4.0",
|
83
|
-
"fast-csv": "^5.0.2",
|
84
89
|
"globals": "^15.10.0",
|
85
90
|
"husky": "^9.0.11",
|
86
91
|
"jest": "^29.5.0",
|
87
|
-
"json-to-pretty-yaml": "^1.2.2",
|
88
|
-
"jszip": "^3.10.1",
|
89
92
|
"lint-staged": "^15.2.5",
|
90
93
|
"luxon": "^3.5.0",
|
91
|
-
"multer": "^1.4.5-lts.1",
|
92
94
|
"openapi-typescript": "^7.0.0-rc.0",
|
93
|
-
"openapi3-ts": "^4.4.0",
|
94
95
|
"prettier": "^3.0.0",
|
95
96
|
"prisma": "^6.3.1",
|
96
|
-
"reflect-metadata": "^0.2.0",
|
97
97
|
"source-map-support": "^0.5.21",
|
98
|
-
"string-comparison": "^1.3.0",
|
99
98
|
"supertest": "^6.3.3",
|
100
99
|
"ts-jest": "^29.1.0",
|
101
100
|
"ts-loader": "^9.4.3",
|
@@ -110,10 +109,6 @@
|
|
110
109
|
"require": "./dist/types/index.js",
|
111
110
|
"default": "./dist/types/index.js",
|
112
111
|
"types": "./dist/types/index.d.ts"
|
113
|
-
},
|
114
|
-
"./dto": {
|
115
|
-
"default": "./dist/src/prisma/dtos.dto.js",
|
116
|
-
"types": "./dist/src/prisma/dtos.dto.d.ts"
|
117
112
|
}
|
118
113
|
},
|
119
114
|
"lint-staged": {
|
File without changes
|