expo-backend-types 0.30.0-EXPO-308-auth.3 → 0.30.0-EXPO-308-auth.4
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/image/constants.d.ts +5 -0
- package/dist/src/image/constants.js +9 -0
- package/dist/src/otp/constants.d.ts +1 -0
- package/dist/src/otp/constants.js +5 -0
- package/dist/src/otp/dto/verify-otp.dto.js +2 -2
- package/dist/src/prisma/constants.d.ts +1 -0
- package/dist/src/prisma/constants.js +5 -0
- package/dist/src/webhook/constants.d.ts +1 -0
- package/dist/src/webhook/constants.js +5 -0
- package/package.json +2 -1
@@ -0,0 +1 @@
|
|
1
|
+
export declare const OTP_LENGTH = 6;
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
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
|
-
const
|
8
|
+
const constants_1 = require("../constants");
|
9
9
|
const profile_dto_1 = require("../../profile/dto/profile.dto");
|
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
13
|
phoneNumber: profile_dto_1.profileSchema.shape.phoneNumber,
|
14
|
-
code: zod_1.default.string().length(
|
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
|
}),
|
17
17
|
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const PRISMA_SERVICE: unique symbol;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const AUTOMATIC_MESSAGE_DEADLINE: Date;
|
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.4",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -8,6 +8,7 @@
|
|
8
8
|
"files": [
|
9
9
|
"dist/types",
|
10
10
|
"dist/src/**/*.dto.{js,d.ts,ts}",
|
11
|
+
"dist/src/**/constants.{js,d.ts,ts}",
|
11
12
|
"dist/src/**/exports.{js,d.ts,ts}",
|
12
13
|
"dist/src/shared/dto-modification",
|
13
14
|
"dist/src/i18n"
|