expo-backend-types 0.30.0-EXPO-308-auth.13 → 0.30.0-EXPO-308-auth.14
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.d.ts +82 -468
- package/dist/src/profile/dto/create-profile.dto.js +4 -80
- package/dist/src/profile/dto/delete-profile.dto.d.ts +0 -73
- package/dist/src/profile/dto/delete-profile.dto.js +3 -4
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +39 -266
- package/dist/src/profile/dto/find-all-profile.dto.js +3 -19
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +79 -440
- package/dist/src/profile/dto/find-by-date-range-profile.dto.js +4 -26
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +58 -309
- package/dist/src/profile/dto/find-by-id-profile.dto.js +3 -21
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +0 -73
- package/dist/src/profile/dto/find-by-phone-number.dto.js +3 -4
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +35 -223
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +3 -13
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +38 -257
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +3 -18
- package/dist/src/profile/dto/find-trash.dto.d.ts +11 -75
- package/dist/src/profile/dto/find-trash.dto.js +3 -18
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +58 -443
- package/dist/src/profile/dto/find-with-active-chat.dto.js +3 -20
- package/dist/src/profile/dto/profile.dto.js +2 -2
- package/dist/src/profile/dto/update-profile.dto.d.ts +60 -244
- package/dist/src/profile/dto/update-profile.dto.js +4 -48
- package/dist/src/profile/exports.d.ts +12 -12
- package/dist/src/profile/exports.js +12 -12
- package/dist/src/profile/schema/create-profile.schema.d.ts +405 -0
- package/dist/src/profile/schema/create-profile.schema.js +83 -0
- package/dist/src/profile/schema/delete-profile.schema.d.ts +73 -0
- package/dist/src/profile/schema/delete-profile.schema.js +6 -0
- package/dist/src/profile/schema/find-all-profile.schema.d.ts +227 -0
- package/dist/src/profile/schema/find-all-profile.schema.js +21 -0
- package/dist/src/profile/schema/find-by-date-range-profile.schema.d.ts +361 -0
- package/dist/src/profile/schema/find-by-date-range-profile.schema.js +27 -0
- package/dist/src/profile/schema/find-by-id-profile.schema.d.ts +251 -0
- package/dist/src/profile/schema/find-by-id-profile.schema.js +23 -0
- package/dist/src/profile/schema/find-by-phone-number.schema.d.ts +73 -0
- package/dist/src/profile/schema/find-by-phone-number.schema.js +6 -0
- package/dist/src/profile/schema/find-by-tag-groups-profile.schema.d.ts +188 -0
- package/dist/src/profile/schema/find-by-tag-groups-profile.schema.js +15 -0
- package/dist/src/profile/schema/find-by-tags-profile.schema.d.ts +219 -0
- package/dist/src/profile/schema/find-by-tags-profile.schema.js +20 -0
- package/dist/src/profile/schema/find-trash.schema.d.ts +64 -0
- package/dist/src/profile/schema/find-trash.schema.js +20 -0
- package/dist/src/profile/schema/find-with-active-chat.schema.d.ts +385 -0
- package/dist/src/profile/schema/find-with-active-chat.schema.js +22 -0
- package/dist/src/{prisma/dtos.dto.js → profile/schema/profile.schema.js} +2 -2
- package/dist/src/profile/schema/update-profile.schema.d.ts +196 -0
- package/dist/src/profile/schema/update-profile.schema.js +51 -0
- package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
- package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
- package/dist/types/schema.d.ts +4 -0
- package/package.json +2 -5
- /package/dist/src/{prisma/dtos.dto.d.ts → profile/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("../../profile/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("../../profile/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("../../profile/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("../../profile/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("../../profile/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
|
}
|