@alacard-project/shared 1.0.4 → 1.0.5
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/constants/grpc.constants.d.ts +1 -0
- package/dist/constants/grpc.constants.js +1 -0
- package/dist/constants/grpc.constants.js.map +1 -1
- package/dist/constants/microservices.constants.d.ts +40 -4
- package/dist/constants/microservices.constants.js +40 -4
- package/dist/constants/microservices.constants.js.map +1 -1
- package/dist/dto/card.dto.d.ts +18 -0
- package/dist/dto/card.dto.js +93 -0
- package/dist/dto/card.dto.js.map +1 -0
- package/dist/dto/client.dto.d.ts +39 -0
- package/dist/dto/client.dto.js +178 -0
- package/dist/dto/client.dto.js.map +1 -0
- package/dist/dto/index.d.ts +3 -0
- package/dist/dto/index.js +3 -0
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/transaction.dto.d.ts +16 -0
- package/dist/dto/transaction.dto.js +78 -0
- package/dist/dto/transaction.dto.js.map +1 -0
- package/dist/enums/user.enum.d.ts +17 -0
- package/dist/enums/user.enum.js +20 -1
- package/dist/enums/user.enum.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/http-logging.interceptor.d.ts +10 -0
- package/dist/interceptors/http-logging.interceptor.js +74 -0
- package/dist/interceptors/http-logging.interceptor.js.map +1 -0
- package/dist/utils/proto-path.js +5 -1
- package/dist/utils/proto-path.js.map +1 -1
- package/package.json +13 -2
- package/proto/card.proto +43 -0
- package/proto/client.proto +45 -0
- package/proto/partner.proto +18 -0
- package/proto/terminal.proto +18 -0
- package/proto/token.proto +50 -0
- package/proto/transaction.proto +45 -0
- package/src/constants/grpc.constants.ts +1 -0
- package/src/constants/microservices.constants.ts +40 -4
- package/src/dto/card.dto.ts +64 -0
- package/src/dto/client.dto.ts +131 -0
- package/src/dto/index.ts +3 -0
- package/src/dto/transaction.dto.ts +51 -0
- package/src/enums/user.enum.ts +19 -0
- package/src/index.ts +1 -0
- package/src/interceptors/http-logging.interceptor.ts +71 -0
- package/src/utils/proto-path.ts +13 -7
- package/dist/logging/dto/log-filter.dto.d.ts +0 -29
- package/dist/logging/dto/log-filter.dto.js +0 -146
- package/dist/logging/dto/log-filter.dto.js.map +0 -1
- package/dist/logging/index.d.ts +0 -1
- package/dist/logging/index.js +0 -18
- package/dist/logging/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grpc.constants.js","sourceRoot":"","sources":["../../src/constants/grpc.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"grpc.constants.js","sourceRoot":"","sources":["../../src/constants/grpc.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACR,CAAC;AAEE,QAAA,YAAY,GAAG;IACxB,OAAO,EAAE;QACL,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,UAAU;QACrB,eAAe,EAAE,eAAe;QAChC,qBAAqB,EAAE,qBAAqB;QAC5C,gBAAgB,EAAE,gBAAgB;QAClC,kBAAkB,EAAE,kBAAkB;QACtC,gBAAgB,EAAE,gBAAgB;KACrC;IACD,IAAI,EAAE;QACF,OAAO,EAAE,aAAa;QACtB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,cAAc,EAAE,aAAa;QAC7B,iBAAiB,EAAE,gBAAgB;QACnC,cAAc,EAAE,eAAe;QAC/B,aAAa,EAAE,cAAc;QAC7B,YAAY,EAAE,aAAa;QAC3B,gBAAgB,EAAE,iBAAiB;QACnC,oBAAoB,EAAE,oBAAoB;KAC7C;IACD,IAAI,EAAE;QACF,OAAO,EAAE,aAAa;QACtB,cAAc,EAAE,aAAa;QAC7B,iBAAiB,EAAE,gBAAgB;QACnC,oBAAoB,EAAE,oBAAoB;QAC1C,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,YAAY;QACzB,cAAc,EAAE,eAAe;QAC/B,WAAW,EAAE,YAAY;KAC5B;CACK,CAAC"}
|
|
@@ -1,18 +1,54 @@
|
|
|
1
1
|
export declare const MICROSERVICES: {
|
|
2
2
|
readonly CONFIG: {
|
|
3
|
-
readonly SERVICE_NAME: "
|
|
3
|
+
readonly SERVICE_NAME: "ConfigService";
|
|
4
4
|
readonly PACKAGE: "config";
|
|
5
5
|
};
|
|
6
6
|
readonly LOGGING: {
|
|
7
|
-
readonly SERVICE_NAME: "
|
|
7
|
+
readonly SERVICE_NAME: "LoggingService";
|
|
8
8
|
readonly PACKAGE: "logging";
|
|
9
9
|
};
|
|
10
10
|
readonly AUTH: {
|
|
11
|
-
readonly SERVICE_NAME: "
|
|
11
|
+
readonly SERVICE_NAME: "AuthService";
|
|
12
12
|
readonly PACKAGE: "auth";
|
|
13
13
|
};
|
|
14
14
|
readonly USER: {
|
|
15
|
-
readonly SERVICE_NAME: "
|
|
15
|
+
readonly SERVICE_NAME: "UserService";
|
|
16
16
|
readonly PACKAGE: "user";
|
|
17
17
|
};
|
|
18
|
+
readonly CLIENT: {
|
|
19
|
+
readonly SERVICE_NAME: "ClientService";
|
|
20
|
+
readonly PACKAGE: "client";
|
|
21
|
+
};
|
|
22
|
+
readonly CARD: {
|
|
23
|
+
readonly SERVICE_NAME: "CardService";
|
|
24
|
+
readonly PACKAGE: "card";
|
|
25
|
+
};
|
|
26
|
+
readonly TRANSACTION: {
|
|
27
|
+
readonly SERVICE_NAME: "TransactionService";
|
|
28
|
+
readonly PACKAGE: "transaction";
|
|
29
|
+
};
|
|
30
|
+
readonly ACCOUNT: {
|
|
31
|
+
readonly SERVICE_NAME: "AccountService";
|
|
32
|
+
readonly PACKAGE: "account";
|
|
33
|
+
};
|
|
34
|
+
readonly INVOICE: {
|
|
35
|
+
readonly SERVICE_NAME: "InvoiceService";
|
|
36
|
+
readonly PACKAGE: "invoice";
|
|
37
|
+
};
|
|
38
|
+
readonly NOTIFICATION: {
|
|
39
|
+
readonly SERVICE_NAME: "NotificationService";
|
|
40
|
+
readonly PACKAGE: "notification";
|
|
41
|
+
};
|
|
42
|
+
readonly ATTACHMENT: {
|
|
43
|
+
readonly SERVICE_NAME: "AttachmentService";
|
|
44
|
+
readonly PACKAGE: "attachment";
|
|
45
|
+
};
|
|
46
|
+
readonly TERMINAL: {
|
|
47
|
+
readonly SERVICE_NAME: "TerminalService";
|
|
48
|
+
readonly PACKAGE: "terminal";
|
|
49
|
+
};
|
|
50
|
+
readonly PARTNER: {
|
|
51
|
+
readonly SERVICE_NAME: "PartnerService";
|
|
52
|
+
readonly PACKAGE: "partner";
|
|
53
|
+
};
|
|
18
54
|
};
|
|
@@ -3,20 +3,56 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MICROSERVICES = void 0;
|
|
4
4
|
exports.MICROSERVICES = {
|
|
5
5
|
CONFIG: {
|
|
6
|
-
SERVICE_NAME: '
|
|
6
|
+
SERVICE_NAME: 'ConfigService',
|
|
7
7
|
PACKAGE: 'config',
|
|
8
8
|
},
|
|
9
9
|
LOGGING: {
|
|
10
|
-
SERVICE_NAME: '
|
|
10
|
+
SERVICE_NAME: 'LoggingService',
|
|
11
11
|
PACKAGE: 'logging',
|
|
12
12
|
},
|
|
13
13
|
AUTH: {
|
|
14
|
-
SERVICE_NAME: '
|
|
14
|
+
SERVICE_NAME: 'AuthService',
|
|
15
15
|
PACKAGE: 'auth',
|
|
16
16
|
},
|
|
17
17
|
USER: {
|
|
18
|
-
SERVICE_NAME: '
|
|
18
|
+
SERVICE_NAME: 'UserService',
|
|
19
19
|
PACKAGE: 'user',
|
|
20
20
|
},
|
|
21
|
+
CLIENT: {
|
|
22
|
+
SERVICE_NAME: 'ClientService',
|
|
23
|
+
PACKAGE: 'client',
|
|
24
|
+
},
|
|
25
|
+
CARD: {
|
|
26
|
+
SERVICE_NAME: 'CardService',
|
|
27
|
+
PACKAGE: 'card',
|
|
28
|
+
},
|
|
29
|
+
TRANSACTION: {
|
|
30
|
+
SERVICE_NAME: 'TransactionService',
|
|
31
|
+
PACKAGE: 'transaction',
|
|
32
|
+
},
|
|
33
|
+
ACCOUNT: {
|
|
34
|
+
SERVICE_NAME: 'AccountService',
|
|
35
|
+
PACKAGE: 'account',
|
|
36
|
+
},
|
|
37
|
+
INVOICE: {
|
|
38
|
+
SERVICE_NAME: 'InvoiceService',
|
|
39
|
+
PACKAGE: 'invoice',
|
|
40
|
+
},
|
|
41
|
+
NOTIFICATION: {
|
|
42
|
+
SERVICE_NAME: 'NotificationService',
|
|
43
|
+
PACKAGE: 'notification',
|
|
44
|
+
},
|
|
45
|
+
ATTACHMENT: {
|
|
46
|
+
SERVICE_NAME: 'AttachmentService',
|
|
47
|
+
PACKAGE: 'attachment',
|
|
48
|
+
},
|
|
49
|
+
TERMINAL: {
|
|
50
|
+
SERVICE_NAME: 'TerminalService',
|
|
51
|
+
PACKAGE: 'terminal',
|
|
52
|
+
},
|
|
53
|
+
PARTNER: {
|
|
54
|
+
SERVICE_NAME: 'PartnerService',
|
|
55
|
+
PACKAGE: 'partner',
|
|
56
|
+
},
|
|
21
57
|
};
|
|
22
58
|
//# sourceMappingURL=microservices.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microservices.constants.js","sourceRoot":"","sources":["../../src/constants/microservices.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IACzB,MAAM,EAAE;QACJ,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"microservices.constants.js","sourceRoot":"","sources":["../../src/constants/microservices.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IACzB,MAAM,EAAE;QACJ,YAAY,EAAE,eAAe;QAC7B,OAAO,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACL,YAAY,EAAE,gBAAgB;QAC9B,OAAO,EAAE,SAAS;KACrB;IACD,IAAI,EAAE;QACF,YAAY,EAAE,aAAa;QAC3B,OAAO,EAAE,MAAM;KAClB;IACD,IAAI,EAAE;QACF,YAAY,EAAE,aAAa;QAC3B,OAAO,EAAE,MAAM;KAClB;IACD,MAAM,EAAE;QACJ,YAAY,EAAE,eAAe;QAC7B,OAAO,EAAE,QAAQ;KACpB;IACD,IAAI,EAAE;QACF,YAAY,EAAE,aAAa;QAC3B,OAAO,EAAE,MAAM;KAClB;IACD,WAAW,EAAE;QACT,YAAY,EAAE,oBAAoB;QAClC,OAAO,EAAE,aAAa;KACzB;IACD,OAAO,EAAE;QACL,YAAY,EAAE,gBAAgB;QAC9B,OAAO,EAAE,SAAS;KACrB;IACD,OAAO,EAAE;QACL,YAAY,EAAE,gBAAgB;QAC9B,OAAO,EAAE,SAAS;KACrB;IACD,YAAY,EAAE;QACV,YAAY,EAAE,qBAAqB;QACnC,OAAO,EAAE,cAAc;KAC1B;IACD,UAAU,EAAE;QACR,YAAY,EAAE,mBAAmB;QACjC,OAAO,EAAE,YAAY;KACxB;IACD,QAAQ,EAAE;QACN,YAAY,EAAE,iBAAiB;QAC/B,OAAO,EAAE,UAAU;KACtB;IACD,OAAO,EAAE;QACL,YAAY,EAAE,gBAAgB;QAC9B,OAAO,EAAE,SAAS;KACrB;CACK,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class CreateCardDto {
|
|
2
|
+
cardNumber: string;
|
|
3
|
+
clientId?: string;
|
|
4
|
+
accountId?: string;
|
|
5
|
+
cardType?: string;
|
|
6
|
+
cardStatus?: string;
|
|
7
|
+
issuedAt?: Date;
|
|
8
|
+
expiresAt?: Date;
|
|
9
|
+
balance?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class UpdateCardDto {
|
|
12
|
+
clientId?: string;
|
|
13
|
+
accountId?: string;
|
|
14
|
+
cardType?: string;
|
|
15
|
+
cardStatus?: string;
|
|
16
|
+
expiresAt?: Date;
|
|
17
|
+
balance?: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateCardDto = exports.CreateCardDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class CreateCardDto {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateCardDto = CreateCardDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateCardDto.prototype, "cardNumber", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateCardDto.prototype, "clientId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateCardDto.prototype, "accountId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateCardDto.prototype, "cardType", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CreateCardDto.prototype, "cardStatus", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
45
|
+
(0, class_validator_1.IsDate)(),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], CreateCardDto.prototype, "issuedAt", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
51
|
+
(0, class_validator_1.IsDate)(),
|
|
52
|
+
__metadata("design:type", Date)
|
|
53
|
+
], CreateCardDto.prototype, "expiresAt", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsNumber)(),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], CreateCardDto.prototype, "balance", void 0);
|
|
59
|
+
class UpdateCardDto {
|
|
60
|
+
}
|
|
61
|
+
exports.UpdateCardDto = UpdateCardDto;
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UpdateCardDto.prototype, "clientId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], UpdateCardDto.prototype, "accountId", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], UpdateCardDto.prototype, "cardType", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsString)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], UpdateCardDto.prototype, "cardStatus", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
85
|
+
(0, class_validator_1.IsDate)(),
|
|
86
|
+
__metadata("design:type", Date)
|
|
87
|
+
], UpdateCardDto.prototype, "expiresAt", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
(0, class_validator_1.IsNumber)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], UpdateCardDto.prototype, "balance", void 0);
|
|
93
|
+
//# sourceMappingURL=card.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.dto.js","sourceRoot":"","sources":["../../src/dto/card.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,yDAAyC;AAEzC,MAAa,aAAa;CAiCzB;AAjCD,sCAiCC;AA/BG;IADC,IAAA,0BAAQ,GAAE;;iDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACS;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;8BACE,IAAI;+CAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;8BACG,IAAI;gDAAC;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACM;AAGrB,MAAa,aAAa;CAyBzB;AAzBD,sCAyBC;AAtBG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACS;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;8BACG,IAAI;gDAAC;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACM"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare class CreateClientContactDto {
|
|
2
|
+
contactType: string;
|
|
3
|
+
value: string;
|
|
4
|
+
isPrimary?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class CreateClientDetailDto {
|
|
7
|
+
detailType: string;
|
|
8
|
+
value: string;
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class CreateClientDto {
|
|
12
|
+
clientNumber: string;
|
|
13
|
+
clientNumberFormatted?: string;
|
|
14
|
+
clientType: string;
|
|
15
|
+
shortName?: string;
|
|
16
|
+
fullName: string;
|
|
17
|
+
isActive?: boolean;
|
|
18
|
+
contacts?: CreateClientContactDto[];
|
|
19
|
+
details?: CreateClientDetailDto[];
|
|
20
|
+
}
|
|
21
|
+
export declare class UpdateClientDto {
|
|
22
|
+
clientNumber?: string;
|
|
23
|
+
clientNumberFormatted?: string;
|
|
24
|
+
clientType?: string;
|
|
25
|
+
shortName?: string;
|
|
26
|
+
fullName?: string;
|
|
27
|
+
isActive?: boolean;
|
|
28
|
+
contacts?: CreateClientContactDto[];
|
|
29
|
+
details?: CreateClientDetailDto[];
|
|
30
|
+
}
|
|
31
|
+
export declare class FindClientsQueryDto {
|
|
32
|
+
search?: string;
|
|
33
|
+
searchType?: string;
|
|
34
|
+
status?: string;
|
|
35
|
+
skip?: number;
|
|
36
|
+
take?: number;
|
|
37
|
+
sortBy?: string;
|
|
38
|
+
sortOrder?: 'asc' | 'desc';
|
|
39
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FindClientsQueryDto = exports.UpdateClientDto = exports.CreateClientDto = exports.CreateClientDetailDto = exports.CreateClientContactDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class CreateClientContactDto {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateClientContactDto = CreateClientContactDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateClientContactDto.prototype, "contactType", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateClientContactDto.prototype, "value", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsBoolean)(),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], CreateClientContactDto.prototype, "isPrimary", void 0);
|
|
31
|
+
class CreateClientDetailDto {
|
|
32
|
+
}
|
|
33
|
+
exports.CreateClientDetailDto = CreateClientDetailDto;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateClientDetailDto.prototype, "detailType", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CreateClientDetailDto.prototype, "value", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsBoolean)(),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], CreateClientDetailDto.prototype, "isActive", void 0);
|
|
47
|
+
class CreateClientDto {
|
|
48
|
+
}
|
|
49
|
+
exports.CreateClientDto = CreateClientDto;
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CreateClientDto.prototype, "clientNumber", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CreateClientDto.prototype, "clientNumberFormatted", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CreateClientDto.prototype, "clientType", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], CreateClientDto.prototype, "shortName", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], CreateClientDto.prototype, "fullName", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsBoolean)(),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], CreateClientDto.prototype, "isActive", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsArray)(),
|
|
80
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
81
|
+
(0, class_transformer_1.Type)(() => CreateClientContactDto),
|
|
82
|
+
__metadata("design:type", Array)
|
|
83
|
+
], CreateClientDto.prototype, "contacts", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsOptional)(),
|
|
86
|
+
(0, class_validator_1.IsArray)(),
|
|
87
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
88
|
+
(0, class_transformer_1.Type)(() => CreateClientDetailDto),
|
|
89
|
+
__metadata("design:type", Array)
|
|
90
|
+
], CreateClientDto.prototype, "details", void 0);
|
|
91
|
+
class UpdateClientDto {
|
|
92
|
+
}
|
|
93
|
+
exports.UpdateClientDto = UpdateClientDto;
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
|
+
(0, class_validator_1.IsString)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], UpdateClientDto.prototype, "clientNumber", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, class_validator_1.IsString)(),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], UpdateClientDto.prototype, "clientNumberFormatted", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_validator_1.IsOptional)(),
|
|
106
|
+
(0, class_validator_1.IsString)(),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], UpdateClientDto.prototype, "clientType", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, class_validator_1.IsOptional)(),
|
|
111
|
+
(0, class_validator_1.IsString)(),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], UpdateClientDto.prototype, "shortName", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, class_validator_1.IsOptional)(),
|
|
116
|
+
(0, class_validator_1.IsString)(),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], UpdateClientDto.prototype, "fullName", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, class_validator_1.IsOptional)(),
|
|
121
|
+
(0, class_validator_1.IsBoolean)(),
|
|
122
|
+
__metadata("design:type", Boolean)
|
|
123
|
+
], UpdateClientDto.prototype, "isActive", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
(0, class_validator_1.IsArray)(),
|
|
127
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
128
|
+
(0, class_transformer_1.Type)(() => CreateClientContactDto),
|
|
129
|
+
__metadata("design:type", Array)
|
|
130
|
+
], UpdateClientDto.prototype, "contacts", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, class_validator_1.IsOptional)(),
|
|
133
|
+
(0, class_validator_1.IsArray)(),
|
|
134
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
135
|
+
(0, class_transformer_1.Type)(() => CreateClientDetailDto),
|
|
136
|
+
__metadata("design:type", Array)
|
|
137
|
+
], UpdateClientDto.prototype, "details", void 0);
|
|
138
|
+
class FindClientsQueryDto {
|
|
139
|
+
}
|
|
140
|
+
exports.FindClientsQueryDto = FindClientsQueryDto;
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_validator_1.IsOptional)(),
|
|
143
|
+
(0, class_validator_1.IsString)(),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], FindClientsQueryDto.prototype, "search", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, class_validator_1.IsOptional)(),
|
|
148
|
+
(0, class_validator_1.IsString)(),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], FindClientsQueryDto.prototype, "searchType", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, class_validator_1.IsOptional)(),
|
|
153
|
+
(0, class_validator_1.IsString)(),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], FindClientsQueryDto.prototype, "status", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, class_validator_1.IsOptional)(),
|
|
158
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
159
|
+
(0, class_validator_1.IsNumber)(),
|
|
160
|
+
__metadata("design:type", Number)
|
|
161
|
+
], FindClientsQueryDto.prototype, "skip", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, class_validator_1.IsOptional)(),
|
|
164
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
165
|
+
(0, class_validator_1.IsNumber)(),
|
|
166
|
+
__metadata("design:type", Number)
|
|
167
|
+
], FindClientsQueryDto.prototype, "take", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, class_validator_1.IsOptional)(),
|
|
170
|
+
(0, class_validator_1.IsString)(),
|
|
171
|
+
__metadata("design:type", String)
|
|
172
|
+
], FindClientsQueryDto.prototype, "sortBy", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, class_validator_1.IsOptional)(),
|
|
175
|
+
(0, class_validator_1.IsString)(),
|
|
176
|
+
__metadata("design:type", String)
|
|
177
|
+
], FindClientsQueryDto.prototype, "sortOrder", void 0);
|
|
178
|
+
//# sourceMappingURL=client.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.dto.js","sourceRoot":"","sources":["../../src/dto/client.dto.ts"],"names":[],"mappings":"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"}
|
package/dist/dto/index.d.ts
CHANGED
package/dist/dto/index.js
CHANGED
|
@@ -16,4 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./logging.dto"), exports);
|
|
18
18
|
__exportStar(require("./auth.dto"), exports);
|
|
19
|
+
__exportStar(require("./client.dto"), exports);
|
|
20
|
+
__exportStar(require("./transaction.dto"), exports);
|
|
21
|
+
__exportStar(require("./card.dto"), exports);
|
|
19
22
|
//# sourceMappingURL=index.js.map
|
package/dist/dto/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,6CAA2B;AAC3B,+CAA6B;AAC7B,oDAAkC;AAClC,6CAA2B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class CreateTransactionDto {
|
|
2
|
+
externalId?: string;
|
|
3
|
+
cardId: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
currency?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
type?: string;
|
|
8
|
+
status?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
transactionDate?: Date;
|
|
11
|
+
metadata?: any;
|
|
12
|
+
}
|
|
13
|
+
export declare class UpdateTransactionDto {
|
|
14
|
+
status?: string;
|
|
15
|
+
metadata?: any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateTransactionDto = exports.CreateTransactionDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class CreateTransactionDto {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateTransactionDto = CreateTransactionDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateTransactionDto.prototype, "externalId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateTransactionDto.prototype, "cardId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.Min)(0),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], CreateTransactionDto.prototype, "amount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateTransactionDto.prototype, "currency", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CreateTransactionDto.prototype, "description", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CreateTransactionDto.prototype, "type", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CreateTransactionDto.prototype, "status", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsUUID)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CreateTransactionDto.prototype, "id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
60
|
+
__metadata("design:type", Date)
|
|
61
|
+
], CreateTransactionDto.prototype, "transactionDate", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], CreateTransactionDto.prototype, "metadata", void 0);
|
|
66
|
+
class UpdateTransactionDto {
|
|
67
|
+
}
|
|
68
|
+
exports.UpdateTransactionDto = UpdateTransactionDto;
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], UpdateTransactionDto.prototype, "status", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], UpdateTransactionDto.prototype, "metadata", void 0);
|
|
78
|
+
//# sourceMappingURL=transaction.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.dto.js","sourceRoot":"","sources":["../../src/dto/transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8E;AAC9E,yDAAyC;AAEzC,MAAa,oBAAoB;CAsChC;AAtCD,oDAsCC;AAnCG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;oDACI;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;oDACQ;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gDACG;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACC,IAAI;6DAAC;AAGvB;IADC,IAAA,4BAAU,GAAE;;sDACE;AAGnB,MAAa,oBAAoB;CAOhC;AAPD,oDAOC;AAJG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAGhB;IADC,IAAA,4BAAU,GAAE;;sDACE"}
|
|
@@ -6,3 +6,20 @@ export declare enum UserRole {
|
|
|
6
6
|
PARTNER = "PARTNER",
|
|
7
7
|
CLIENT = "CLIENT"
|
|
8
8
|
}
|
|
9
|
+
export declare enum UserStatus {
|
|
10
|
+
ACTIVE = "ACTIVE",
|
|
11
|
+
INACTIVE = "INACTIVE",
|
|
12
|
+
PENDING = "PENDING",
|
|
13
|
+
SUSPENDED = "SUSPENDED",
|
|
14
|
+
BLOCKED = "BLOCKED"
|
|
15
|
+
}
|
|
16
|
+
export declare enum UserScope {
|
|
17
|
+
READ = "READ",
|
|
18
|
+
WRITE = "WRITE",
|
|
19
|
+
DELETE = "DELETE",
|
|
20
|
+
ADMIN = "ADMIN",
|
|
21
|
+
PROFILE_READ = "PROFILE_READ",
|
|
22
|
+
CARDS_READ = "CARDS_READ",
|
|
23
|
+
TRANSACTIONS_READ = "TRANSACTIONS_READ",
|
|
24
|
+
LOGS_READ = "LOGS_READ"
|
|
25
|
+
}
|