@takentrade/takentrade-libs 1.0.8 → 1.1.0
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/storage/cloudinary.config.d.ts +10 -0
- package/dist/storage/cloudinary.config.js +22 -0
- package/dist/storage/index.d.ts +4 -0
- package/dist/storage/index.js +20 -0
- package/dist/storage/storage.interface.d.ts +23 -0
- package/dist/storage/storage.interface.js +2 -0
- package/dist/storage/storage.module.d.ts +4 -0
- package/dist/storage/storage.module.js +38 -0
- package/dist/storage/storage.service.d.ts +21 -0
- package/dist/storage/storage.service.js +65 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/enums/index.d.ts +1 -0
- package/dist/utils/enums/index.js +17 -0
- package/dist/utils/enums/otp.enum.d.ts +11 -0
- package/dist/utils/enums/otp.enum.js +15 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +14 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './otp.enum';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./otp.enum"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum OtpPurpose {
|
|
2
|
+
PHONE_VERIFICATION = "phone_verification",
|
|
3
|
+
PASSWORD_RESET = "password_reset",
|
|
4
|
+
TRANSACTION_AUTHORIZATION = "transaction_authorization",
|
|
5
|
+
WITHDRAWAL_AUTHORIZATION = "withdrawal_authorization",
|
|
6
|
+
PROFILE_UPDATE = "profile_update",
|
|
7
|
+
KYC_VERIFICATION = "kyc_verification",
|
|
8
|
+
LOGIN_VERIFICATION = "login_verification",
|
|
9
|
+
EMAIL_VERIFICATION = "email_verification",
|
|
10
|
+
STAFF_PASSWORD_RESET = "staff_password_reset"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OtpPurpose = void 0;
|
|
4
|
+
var OtpPurpose;
|
|
5
|
+
(function (OtpPurpose) {
|
|
6
|
+
OtpPurpose["PHONE_VERIFICATION"] = "phone_verification";
|
|
7
|
+
OtpPurpose["PASSWORD_RESET"] = "password_reset";
|
|
8
|
+
OtpPurpose["TRANSACTION_AUTHORIZATION"] = "transaction_authorization";
|
|
9
|
+
OtpPurpose["WITHDRAWAL_AUTHORIZATION"] = "withdrawal_authorization";
|
|
10
|
+
OtpPurpose["PROFILE_UPDATE"] = "profile_update";
|
|
11
|
+
OtpPurpose["KYC_VERIFICATION"] = "kyc_verification";
|
|
12
|
+
OtpPurpose["LOGIN_VERIFICATION"] = "login_verification";
|
|
13
|
+
OtpPurpose["EMAIL_VERIFICATION"] = "email_verification";
|
|
14
|
+
OtpPurpose["STAFF_PASSWORD_RESET"] = "staff_password_reset";
|
|
15
|
+
})(OtpPurpose || (exports.OtpPurpose = OtpPurpose = {}));
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -53,6 +53,7 @@ __exportStar(require("./pipes"), exports);
|
|
|
53
53
|
__exportStar(require("./utils"), exports);
|
|
54
54
|
__exportStar(require("./interfaces"), exports);
|
|
55
55
|
__exportStar(require("./dto"), exports);
|
|
56
|
+
__exportStar(require("./enums"), exports);
|
|
56
57
|
/**
|
|
57
58
|
* A set of shared utilities across the application.
|
|
58
59
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takentrade/takentrade-libs",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "TakeNTrade shared libraries",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -9,8 +9,11 @@
|
|
|
9
9
|
"dist/"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"test": "
|
|
12
|
+
"test": "jest",
|
|
13
|
+
"test:watch": "jest --watch",
|
|
14
|
+
"test:cov": "jest --coverage",
|
|
13
15
|
"build": "rm -rf dist && tsc",
|
|
16
|
+
"lint": "eslint src --ext .ts",
|
|
14
17
|
"prettier": "prettier --write .",
|
|
15
18
|
"prettier:check": "prettier --check ."
|
|
16
19
|
},
|
|
@@ -38,6 +41,7 @@
|
|
|
38
41
|
"@prisma/client": "^6.12.0",
|
|
39
42
|
"class-transformer": "^0.5.1",
|
|
40
43
|
"class-validator": "^0.14.2",
|
|
44
|
+
"cloudinary": "^2.7.0",
|
|
41
45
|
"country-codes-list": "^2.0.0",
|
|
42
46
|
"ioredis": "^5.6.1",
|
|
43
47
|
"joi": "^17.13.3",
|
|
@@ -45,14 +49,20 @@
|
|
|
45
49
|
"object-hash": "^3.0.0",
|
|
46
50
|
"rxjs": "^7.8.2",
|
|
47
51
|
"tsup": "^8.5.0",
|
|
48
|
-
"typescript": "^5.8.3",
|
|
49
52
|
"uuid": "^11.1.0"
|
|
50
53
|
},
|
|
51
54
|
"devDependencies": {
|
|
55
|
+
"@nestjs/core": "^11.1.5",
|
|
56
|
+
"@nestjs/testing": "^11.1.5",
|
|
57
|
+
"@types/jest": "^30.0.0",
|
|
58
|
+
"@types/multer": "^2.0.0",
|
|
52
59
|
"@types/node": "^24.1.0",
|
|
53
60
|
"@types/object-hash": "^3.0.6",
|
|
54
61
|
"@types/passport": "^1.0.17",
|
|
55
|
-
"
|
|
62
|
+
"jest": "^30.0.5",
|
|
63
|
+
"prettier": "^3.6.2",
|
|
64
|
+
"ts-jest": "^29.4.0",
|
|
65
|
+
"typescript": "^5.8.3"
|
|
56
66
|
},
|
|
57
67
|
"exports": {
|
|
58
68
|
".": "./dist/index.js",
|