@takentrade/takentrade-libs 1.3.2 → 2.0.1
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 +0 -1
- package/dist/index.js +0 -1
- package/dist/nats/constants/nats.constants.d.ts +1 -0
- package/dist/nats/constants/nats.constants.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/enums/index.d.ts +1 -0
- package/dist/utils/enums/index.js +1 -0
- package/dist/utils/enums/notification.enum.d.ts +11 -0
- package/dist/utils/enums/notification.enum.js +15 -0
- package/package.json +2 -3
- package/dist/prisma/index.d.ts +0 -2
- package/dist/prisma/index.js +0 -18
- package/dist/prisma/prisma.module.d.ts +0 -2
- package/dist/prisma/prisma.module.js +0 -21
- package/dist/prisma/prisma.service.d.ts +0 -6
- package/dist/prisma/prisma.service.js +0 -29
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./otp.enum"), exports);
|
|
18
18
|
__exportStar(require("./subaccount.enum"), exports);
|
|
19
|
+
__exportStar(require("./notification.enum"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum NotificationType {
|
|
2
|
+
TRANSACTION = "TRANSACTION",
|
|
3
|
+
PROMOTION = "PROMOTION",
|
|
4
|
+
SECURITY = "SECURITY",
|
|
5
|
+
GENERAL = "GENERAL",
|
|
6
|
+
LOAN = "LOAN",
|
|
7
|
+
INVESTMENT = "INVESTMENT",
|
|
8
|
+
AJO = "AJO",
|
|
9
|
+
SAVINGS = "SAVINGS",
|
|
10
|
+
COOPERATIVE = "COOPERATIVE"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationType = void 0;
|
|
4
|
+
var NotificationType;
|
|
5
|
+
(function (NotificationType) {
|
|
6
|
+
NotificationType["TRANSACTION"] = "TRANSACTION";
|
|
7
|
+
NotificationType["PROMOTION"] = "PROMOTION";
|
|
8
|
+
NotificationType["SECURITY"] = "SECURITY";
|
|
9
|
+
NotificationType["GENERAL"] = "GENERAL";
|
|
10
|
+
NotificationType["LOAN"] = "LOAN";
|
|
11
|
+
NotificationType["INVESTMENT"] = "INVESTMENT";
|
|
12
|
+
NotificationType["AJO"] = "AJO";
|
|
13
|
+
NotificationType["SAVINGS"] = "SAVINGS";
|
|
14
|
+
NotificationType["COOPERATIVE"] = "COOPERATIVE";
|
|
15
|
+
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takentrade/takentrade-libs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "TakeNTrade shared libraries",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -38,13 +38,12 @@
|
|
|
38
38
|
"@nestjs/passport": "^11.0.5",
|
|
39
39
|
"@nestjs/swagger": "^11.2.3",
|
|
40
40
|
"@nestjs/terminus": "^11.0.0",
|
|
41
|
-
"@prisma/client": "^6.19.0",
|
|
42
41
|
"class-transformer": "^0.5.1",
|
|
43
42
|
"class-validator": "^0.14.2",
|
|
44
43
|
"cloudinary": "^2.8.0",
|
|
45
44
|
"country-codes-list": "^2.0.0",
|
|
46
45
|
"ioredis": "^5.8.2",
|
|
47
|
-
"joi": "^18.0.
|
|
46
|
+
"joi": "^18.0.2",
|
|
48
47
|
"jsonwebtoken": "^9.0.2",
|
|
49
48
|
"object-hash": "^3.0.0",
|
|
50
49
|
"rxjs": "^7.8.2",
|
package/dist/prisma/index.d.ts
DELETED
package/dist/prisma/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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("./prisma.module"), exports);
|
|
18
|
-
__exportStar(require("./prisma.service"), exports);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.PrismaModule = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const prisma_service_1 = require("./prisma.service");
|
|
12
|
-
let PrismaModule = class PrismaModule {
|
|
13
|
-
};
|
|
14
|
-
exports.PrismaModule = PrismaModule;
|
|
15
|
-
exports.PrismaModule = PrismaModule = __decorate([
|
|
16
|
-
(0, common_1.Global)(),
|
|
17
|
-
(0, common_1.Module)({
|
|
18
|
-
providers: [prisma_service_1.PrismaService],
|
|
19
|
-
exports: [prisma_service_1.PrismaService],
|
|
20
|
-
})
|
|
21
|
-
], PrismaModule);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { OnModuleDestroy, OnModuleInit } from '@nestjs/common';
|
|
2
|
-
import { PrismaClient } from '@prisma/client';
|
|
3
|
-
export declare class PrismaService extends PrismaClient implements OnModuleInit, OnModuleDestroy {
|
|
4
|
-
onModuleInit(): Promise<void>;
|
|
5
|
-
onModuleDestroy(): Promise<void>;
|
|
6
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.PrismaService = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const client_1 = require("@prisma/client");
|
|
12
|
-
let PrismaService = class PrismaService extends client_1.PrismaClient {
|
|
13
|
-
async onModuleInit() {
|
|
14
|
-
try {
|
|
15
|
-
await this.$connect();
|
|
16
|
-
}
|
|
17
|
-
catch (error) {
|
|
18
|
-
common_1.Logger.error('Failed to connect to database', error);
|
|
19
|
-
process.exit(1);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
async onModuleDestroy() {
|
|
23
|
-
await this.$disconnect();
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.PrismaService = PrismaService;
|
|
27
|
-
exports.PrismaService = PrismaService = __decorate([
|
|
28
|
-
(0, common_1.Injectable)()
|
|
29
|
-
], PrismaService);
|