@konplit-services/common 1.0.64 → 1.0.67
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.
|
@@ -51,6 +51,14 @@ export declare const error_codes: {
|
|
|
51
51
|
error_code: string;
|
|
52
52
|
code: number;
|
|
53
53
|
};
|
|
54
|
+
EMAIL_ALREADY_VERIFIED: {
|
|
55
|
+
error_code: string;
|
|
56
|
+
code: number;
|
|
57
|
+
};
|
|
58
|
+
PHONE_ALREADY_VERIFIED: {
|
|
59
|
+
error_code: string;
|
|
60
|
+
code: number;
|
|
61
|
+
};
|
|
54
62
|
PHONE_NOT_VERIFIED: {
|
|
55
63
|
error_code: string;
|
|
56
64
|
code: number;
|
|
@@ -55,13 +55,21 @@ exports.error_codes = {
|
|
|
55
55
|
error_code: "EMAIL_ALREADY_EXIST",
|
|
56
56
|
code: 310005,
|
|
57
57
|
},
|
|
58
|
+
EMAIL_ALREADY_VERIFIED: {
|
|
59
|
+
error_code: "EMAIL_ALREADY_VERIFIED",
|
|
60
|
+
code: 310006,
|
|
61
|
+
},
|
|
62
|
+
PHONE_ALREADY_VERIFIED: {
|
|
63
|
+
error_code: "PHONE_ALREADY_VERIFIED",
|
|
64
|
+
code: 310007,
|
|
65
|
+
},
|
|
58
66
|
PHONE_NOT_VERIFIED: {
|
|
59
67
|
error_code: "PHONE_NOT_VERIFIED",
|
|
60
|
-
code:
|
|
68
|
+
code: 310008,
|
|
61
69
|
},
|
|
62
70
|
PHONE_ALREADY_EXIST: {
|
|
63
71
|
error_code: "PHONE_ALREADY_EXIST",
|
|
64
|
-
code:
|
|
72
|
+
code: 310009,
|
|
65
73
|
},
|
|
66
74
|
// ACCOUNT BLOCKED
|
|
67
75
|
ACCOUNT_NOT_FOUND: {
|
|
@@ -9,6 +9,8 @@ exports.lang = {
|
|
|
9
9
|
invalid_user: "invalid email or password",
|
|
10
10
|
user_exist: "user already exists",
|
|
11
11
|
user_email_exist: "user emal already exists",
|
|
12
|
+
email_alread_verified: "user emal has been verified already",
|
|
13
|
+
phone_alread_verified: "phone number has been verified already",
|
|
12
14
|
user_phone_exist: "user phone number already exists",
|
|
13
15
|
user_email_not_verfied: "user email not verified",
|
|
14
16
|
user_phone_not_verfied: "user phone not verified",
|
package/build/swagger/config.js
CHANGED
|
@@ -28,6 +28,12 @@ const configureSwagger = (app, paths) => {
|
|
|
28
28
|
{
|
|
29
29
|
url: "http://localhost:3000",
|
|
30
30
|
},
|
|
31
|
+
{
|
|
32
|
+
url: "https://konplit.com",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
url: "http://konplit.com",
|
|
36
|
+
},
|
|
31
37
|
],
|
|
32
38
|
components: {
|
|
33
39
|
securitySchemes: {
|
|
@@ -47,9 +53,6 @@ const configureSwagger = (app, paths) => {
|
|
|
47
53
|
apis: [paths],
|
|
48
54
|
};
|
|
49
55
|
const swaggerSpec = (0, swagger_jsdoc_1.default)(options);
|
|
50
|
-
console.log("====================================");
|
|
51
|
-
console.log("spec", swaggerSpec);
|
|
52
|
-
console.log("====================================");
|
|
53
56
|
app.use("/api-docs", swagger_ui_express_1.default.serve, swagger_ui_express_1.default.setup(swaggerSpec, {
|
|
54
57
|
explorer: true,
|
|
55
58
|
// customCssUrl:
|