@alacard-project/shared 1.0.10 → 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/README.md +24 -0
- package/dist/constants/auth-config.constants.d.ts +7 -0
- package/dist/constants/auth-config.constants.js +8 -1
- package/dist/constants/auth-config.constants.js.map +1 -1
- package/dist/constants/auth.constants.d.ts +25 -0
- package/dist/constants/auth.constants.js +15 -1
- package/dist/constants/auth.constants.js.map +1 -1
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/queue.constants.d.ts +8 -0
- package/dist/constants/queue.constants.js +12 -0
- package/dist/constants/queue.constants.js.map +1 -0
- package/dist/contracts/auth.contract.d.ts +12 -9
- package/dist/dto/account.dto.d.ts +10 -0
- package/dist/dto/account.dto.js +49 -0
- package/dist/dto/account.dto.js.map +1 -0
- package/dist/dto/auth.dto.d.ts +43 -0
- package/dist/dto/auth.dto.js +136 -1
- package/dist/dto/auth.dto.js.map +1 -1
- package/dist/dto/card.dto.js.map +1 -1
- package/dist/dto/client.dto.js.map +1 -1
- package/dist/dto/index.d.ts +2 -0
- package/dist/dto/index.js +2 -0
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/logging.dto.js.map +1 -1
- package/dist/dto/partner.dto.d.ts +1 -1
- package/dist/dto/partner.dto.js +7 -9
- package/dist/dto/partner.dto.js.map +1 -1
- package/dist/dto/transaction.dto.d.ts +2 -1
- package/dist/dto/transaction.dto.js.map +1 -1
- package/dist/dto/user.dto.d.ts +11 -0
- package/dist/dto/user.dto.js +45 -0
- package/dist/dto/user.dto.js.map +1 -0
- package/dist/enums/auth.enum.d.ts +12 -0
- package/dist/enums/auth.enum.js +18 -0
- package/dist/enums/auth.enum.js.map +1 -0
- package/dist/enums/iam.enum.d.ts +14 -0
- package/dist/enums/iam.enum.js +21 -0
- package/dist/enums/iam.enum.js.map +1 -0
- package/dist/enums/index.d.ts +2 -0
- package/dist/enums/index.js +2 -0
- package/dist/enums/index.js.map +1 -1
- package/dist/errors/app.error.d.ts +1 -1
- package/dist/filters/http-exception.filter.d.ts +5 -0
- package/dist/filters/http-exception.filter.js +48 -0
- package/dist/filters/http-exception.filter.js.map +1 -0
- package/dist/filters/index.d.ts +1 -0
- package/dist/filters/index.js +18 -0
- package/dist/filters/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/index.d.ts +2 -0
- package/dist/interceptors/index.js +19 -0
- package/dist/interceptors/index.js.map +1 -0
- package/dist/interceptors/logging.interceptor.d.ts +6 -0
- package/dist/interceptors/logging.interceptor.js +41 -0
- package/dist/interceptors/logging.interceptor.js.map +1 -0
- package/dist/interceptors/transform.interceptor.d.ts +9 -0
- package/dist/interceptors/transform.interceptor.js +24 -0
- package/dist/interceptors/transform.interceptor.js.map +1 -0
- package/dist/observability/index.d.ts +2 -0
- package/dist/observability/index.js +19 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/metrics/metrics.module.d.ts +2 -0
- package/dist/observability/metrics/metrics.module.js +28 -0
- package/dist/observability/metrics/metrics.module.js.map +1 -0
- package/dist/observability/tracing.d.ts +1 -0
- package/dist/observability/tracing.js +28 -0
- package/dist/observability/tracing.js.map +1 -0
- package/dist/resilience/circuit-breaker.service.d.ts +7 -0
- package/dist/resilience/circuit-breaker.service.js +45 -0
- package/dist/resilience/circuit-breaker.service.js.map +1 -0
- package/dist/resilience/resilience.module.d.ts +2 -0
- package/dist/resilience/resilience.module.js +22 -0
- package/dist/resilience/resilience.module.js.map +1 -0
- package/dist/types/auth.types.d.ts +22 -4
- package/dist/types/common.types.d.ts +11 -0
- package/dist/types/common.types.js +3 -0
- package/dist/types/common.types.js.map +1 -0
- package/dist/types/iam.types.d.ts +46 -0
- package/dist/types/iam.types.js +3 -0
- package/dist/types/iam.types.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/monitoring.types.d.ts +2 -1
- package/dist/types/user.types.d.ts +7 -3
- package/dist/utils/app.utils.d.ts +1 -0
- package/dist/utils/app.utils.js +7 -1
- package/dist/utils/app.utils.js.map +1 -1
- package/dist/utils/health.utils.d.ts +6 -2
- package/dist/utils/health.utils.js +2 -1
- package/dist/utils/health.utils.js.map +1 -1
- package/package.json +28 -15
- package/proto/dbf.proto +1 -1
- package/src/constants/auth-config.constants.ts +7 -0
- package/src/constants/auth.constants.ts +16 -0
- package/src/constants/index.ts +1 -0
- package/src/constants/queue.constants.ts +8 -0
- package/src/contracts/auth.contract.ts +10 -9
- package/src/dto/account.dto.ts +28 -0
- package/src/dto/auth.dto.ts +126 -0
- package/src/dto/card.dto.ts +1 -1
- package/src/dto/client.dto.ts +7 -7
- package/src/dto/index.ts +2 -0
- package/src/dto/logging.dto.ts +3 -3
- package/src/dto/partner.dto.ts +3 -6
- package/src/dto/transaction.dto.ts +4 -3
- package/src/dto/user.dto.ts +28 -0
- package/src/enums/auth.enum.ts +13 -0
- package/src/enums/iam.enum.ts +28 -0
- package/src/enums/index.ts +2 -0
- package/src/filters/http-exception.filter.ts +49 -0
- package/src/filters/index.ts +2 -0
- package/src/index.ts +5 -0
- package/src/interceptors/index.ts +3 -0
- package/src/interceptors/logging.interceptor.ts +37 -0
- package/src/interceptors/transform.interceptor.ts +21 -0
- package/src/observability/index.ts +3 -0
- package/src/observability/metrics/metrics.module.ts +16 -0
- package/src/observability/tracing.ts +33 -0
- package/src/resilience/circuit-breaker.service.ts +46 -0
- package/src/resilience/resilience.module.ts +9 -0
- package/src/types/auth.types.ts +23 -4
- package/src/types/common.types.ts +18 -0
- package/src/types/iam.types.ts +78 -0
- package/src/types/index.ts +2 -0
- package/src/types/monitoring.types.ts +2 -4
- package/src/types/user.types.ts +3 -3
- package/src/utils/app.utils.ts +9 -0
- package/src/utils/health.utils.ts +11 -4
- package/tsconfig.json +5 -1
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Alacard Shared Library
|
|
2
|
+
|
|
3
|
+
Pure types, constants, and utilities for Alacard microservices.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @alacard-project/shared
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- **Types**: Shared interfaces for IAM, Cards, Accounts, and Transactions.
|
|
14
|
+
- **Constants**: Shared event names, queue names, and common configuration keys.
|
|
15
|
+
- **Utils**: Common utility functions.
|
|
16
|
+
- **Observability**: OpenTelemetry tracing and metrics helpers.
|
|
17
|
+
|
|
18
|
+
## Security
|
|
19
|
+
|
|
20
|
+
We maintain a strict dependency policy to ensure the security of the core library.
|
|
21
|
+
|
|
22
|
+
## License
|
|
23
|
+
|
|
24
|
+
MIT
|
|
@@ -6,3 +6,10 @@ export declare const PASSWORD_RESET_CONFIG: {
|
|
|
6
6
|
TOKEN_EXPIRY_HOURS: number;
|
|
7
7
|
TOKEN_LENGTH: number;
|
|
8
8
|
};
|
|
9
|
+
export declare const AUTH_CONFIG: {
|
|
10
|
+
readonly JWT_ACCESS_EXPIRATION: "15m";
|
|
11
|
+
readonly JWT_REFRESH_EXPIRATION: "7d";
|
|
12
|
+
readonly SESSION_EXPIRATION_HOURS: 24;
|
|
13
|
+
readonly MAX_LOGIN_ATTEMPTS: 5;
|
|
14
|
+
readonly LOCKOUT_DURATION_MINUTES: 30;
|
|
15
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PASSWORD_RESET_CONFIG = exports.INVITATION_CONFIG = void 0;
|
|
3
|
+
exports.AUTH_CONFIG = exports.PASSWORD_RESET_CONFIG = exports.INVITATION_CONFIG = void 0;
|
|
4
4
|
exports.INVITATION_CONFIG = {
|
|
5
5
|
DEFAULT_EXPIRATION_DAYS: 7,
|
|
6
6
|
TOKEN_LENGTH: 32,
|
|
@@ -9,4 +9,11 @@ exports.PASSWORD_RESET_CONFIG = {
|
|
|
9
9
|
TOKEN_EXPIRY_HOURS: 1,
|
|
10
10
|
TOKEN_LENGTH: 32,
|
|
11
11
|
};
|
|
12
|
+
exports.AUTH_CONFIG = {
|
|
13
|
+
JWT_ACCESS_EXPIRATION: '15m',
|
|
14
|
+
JWT_REFRESH_EXPIRATION: '7d',
|
|
15
|
+
SESSION_EXPIRATION_HOURS: 24,
|
|
16
|
+
MAX_LOGIN_ATTEMPTS: 5,
|
|
17
|
+
LOCKOUT_DURATION_MINUTES: 30,
|
|
18
|
+
};
|
|
12
19
|
//# sourceMappingURL=auth-config.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-config.constants.js","sourceRoot":"","sources":["../../src/constants/auth-config.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC7B,uBAAuB,EAAE,CAAC;IAC1B,YAAY,EAAE,EAAE;CACnB,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACjC,kBAAkB,EAAE,CAAC;IACrB,YAAY,EAAE,EAAE;CACnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"auth-config.constants.js","sourceRoot":"","sources":["../../src/constants/auth-config.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC7B,uBAAuB,EAAE,CAAC;IAC1B,YAAY,EAAE,EAAE;CACnB,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACjC,kBAAkB,EAAE,CAAC;IACrB,YAAY,EAAE,EAAE;CACnB,CAAC;AACW,QAAA,WAAW,GAAG;IACvB,qBAAqB,EAAE,KAAK;IAC5B,sBAAsB,EAAE,IAAI;IAC5B,wBAAwB,EAAE,EAAE;IAC5B,kBAAkB,EAAE,CAAC;IACrB,wBAAwB,EAAE,EAAE;CACtB,CAAC"}
|
|
@@ -12,6 +12,31 @@ export declare const AUTHENTICATION_MESSAGES: {
|
|
|
12
12
|
PASSWORD_RESET_SUCCESS: string;
|
|
13
13
|
INVALID_CREDENTIALS: string;
|
|
14
14
|
};
|
|
15
|
+
export declare const AUTH_MESSAGES: {
|
|
16
|
+
readonly USER_SUSPENDED: "User account is suspended";
|
|
17
|
+
readonly USER_LOCKED: "User account is locked";
|
|
18
|
+
readonly USER_DELETED: "User account has been deleted";
|
|
19
|
+
readonly TOKEN_EXPIRED: "Token has expired";
|
|
20
|
+
readonly TOKEN_INVALID: "Invalid token";
|
|
21
|
+
readonly TOKEN_REVOKED: "Token has been revoked";
|
|
22
|
+
readonly REFRESH_SUCCESS: "Token refreshed successfully";
|
|
23
|
+
readonly PASSWORD_CHANGED: "Password changed successfully";
|
|
24
|
+
readonly TWO_FACTOR_REQUIRED: "PENDING_2FA";
|
|
25
|
+
readonly TWO_FACTOR_VERIFIED: "Two-factor authentication verified successfully";
|
|
26
|
+
readonly TWO_FACTOR_INVALID: "Invalid or expired two-factor code";
|
|
27
|
+
readonly USER_NOT_FOUND: string;
|
|
28
|
+
readonly USER_ALREADY_EXISTS: string;
|
|
29
|
+
readonly INVALID_PASSWORD: string;
|
|
30
|
+
readonly USER_INACTIVE: string;
|
|
31
|
+
readonly INVALID_REFRESH_TOKEN: string;
|
|
32
|
+
readonly LOGOUT_SUCCESS: string;
|
|
33
|
+
readonly REGISTRATION_SUCCESS: string;
|
|
34
|
+
readonly REGISTER_SUCCESS: string;
|
|
35
|
+
readonly LOGIN_SUCCESS: string;
|
|
36
|
+
readonly PASSWORD_RESET_SENT: string;
|
|
37
|
+
readonly PASSWORD_RESET_SUCCESS: string;
|
|
38
|
+
readonly INVALID_CREDENTIALS: string;
|
|
39
|
+
};
|
|
15
40
|
export declare const COOKIE_EXPIRATION: {
|
|
16
41
|
REFRESH_TOKEN_MS: number;
|
|
17
42
|
ACCESS_TOKEN_MS: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PASSWORD_RESET_MESSAGES = exports.INVITATION_MESSAGES = exports.COOKIE_EXPIRATION = exports.AUTHENTICATION_MESSAGES = void 0;
|
|
3
|
+
exports.PASSWORD_RESET_MESSAGES = exports.INVITATION_MESSAGES = exports.COOKIE_EXPIRATION = exports.AUTH_MESSAGES = exports.AUTHENTICATION_MESSAGES = void 0;
|
|
4
4
|
exports.AUTHENTICATION_MESSAGES = {
|
|
5
5
|
USER_NOT_FOUND: 'User with this email was not found.',
|
|
6
6
|
USER_ALREADY_EXISTS: 'User with this email already exists.',
|
|
@@ -15,6 +15,20 @@ exports.AUTHENTICATION_MESSAGES = {
|
|
|
15
15
|
PASSWORD_RESET_SUCCESS: 'Your password has been reset successfully.',
|
|
16
16
|
INVALID_CREDENTIALS: 'The email or password you entered is incorrect.',
|
|
17
17
|
};
|
|
18
|
+
exports.AUTH_MESSAGES = {
|
|
19
|
+
...exports.AUTHENTICATION_MESSAGES,
|
|
20
|
+
USER_SUSPENDED: 'User account is suspended',
|
|
21
|
+
USER_LOCKED: 'User account is locked',
|
|
22
|
+
USER_DELETED: 'User account has been deleted',
|
|
23
|
+
TOKEN_EXPIRED: 'Token has expired',
|
|
24
|
+
TOKEN_INVALID: 'Invalid token',
|
|
25
|
+
TOKEN_REVOKED: 'Token has been revoked',
|
|
26
|
+
REFRESH_SUCCESS: 'Token refreshed successfully',
|
|
27
|
+
PASSWORD_CHANGED: 'Password changed successfully',
|
|
28
|
+
TWO_FACTOR_REQUIRED: 'PENDING_2FA',
|
|
29
|
+
TWO_FACTOR_VERIFIED: 'Two-factor authentication verified successfully',
|
|
30
|
+
TWO_FACTOR_INVALID: 'Invalid or expired two-factor code',
|
|
31
|
+
};
|
|
18
32
|
exports.COOKIE_EXPIRATION = {
|
|
19
33
|
REFRESH_TOKEN_MS: 7 * 24 * 60 * 60 * 1000,
|
|
20
34
|
ACCESS_TOKEN_MS: 15 * 60 * 1000,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.constants.js","sourceRoot":"","sources":["../../src/constants/auth.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACnC,cAAc,EAAE,qCAAqC;IACrD,mBAAmB,EAAE,sCAAsC;IAC3D,gBAAgB,EAAE,wCAAwC;IAC1D,aAAa,EAAE,6DAA6D;IAC5E,qBAAqB,EAAE,2DAA2D;IAClF,cAAc,EAAE,wCAAwC;IACxD,oBAAoB,EAAE,6CAA6C;IACnE,gBAAgB,EAAE,+BAA+B;IACjD,aAAa,EAAE,yBAAyB;IACxC,mBAAmB,EAAE,oDAAoD;IACzE,sBAAsB,EAAE,4CAA4C;IACpE,mBAAmB,EAAE,iDAAiD;CACzE,CAAC;AAEW,QAAA,iBAAiB,GAAG;IAC7B,gBAAgB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI;IACzC,eAAe,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;CAClC,CAAC;AAEW,QAAA,mBAAmB,GAAG;IAC/B,eAAe,EAAE,+BAA+B;IAChD,gBAAgB,EAAE,sBAAsB;IACxC,oBAAoB,EAAE,uBAAuB;IAC7C,kBAAkB,EAAE,yBAAyB;IAC7C,uBAAuB,EAAE,mCAAmC;CAC/D,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACnC,gBAAgB,EAAE,4BAA4B;IAC9C,sBAAsB,EAAE,8BAA8B;IACtD,aAAa,EAAE,+BAA+B;IAC9C,aAAa,EAAE,mCAAmC;CACrD,CAAC"}
|
|
1
|
+
{"version":3,"file":"auth.constants.js","sourceRoot":"","sources":["../../src/constants/auth.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACnC,cAAc,EAAE,qCAAqC;IACrD,mBAAmB,EAAE,sCAAsC;IAC3D,gBAAgB,EAAE,wCAAwC;IAC1D,aAAa,EAAE,6DAA6D;IAC5E,qBAAqB,EAAE,2DAA2D;IAClF,cAAc,EAAE,wCAAwC;IACxD,oBAAoB,EAAE,6CAA6C;IACnE,gBAAgB,EAAE,+BAA+B;IACjD,aAAa,EAAE,yBAAyB;IACxC,mBAAmB,EAAE,oDAAoD;IACzE,sBAAsB,EAAE,4CAA4C;IACpE,mBAAmB,EAAE,iDAAiD;CACzE,CAAC;AAEW,QAAA,aAAa,GAAG;IACzB,GAAG,+BAAuB;IAC1B,cAAc,EAAE,2BAA2B;IAC3C,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,+BAA+B;IAC7C,aAAa,EAAE,mBAAmB;IAClC,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,wBAAwB;IACvC,eAAe,EAAE,8BAA8B;IAC/C,gBAAgB,EAAE,+BAA+B;IACjD,mBAAmB,EAAE,aAAa;IAClC,mBAAmB,EAAE,iDAAiD;IACtE,kBAAkB,EAAE,oCAAoC;CAClD,CAAC;AAGE,QAAA,iBAAiB,GAAG;IAC7B,gBAAgB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI;IACzC,eAAe,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;CAClC,CAAC;AAEW,QAAA,mBAAmB,GAAG;IAC/B,eAAe,EAAE,+BAA+B;IAChD,gBAAgB,EAAE,sBAAsB;IACxC,oBAAoB,EAAE,uBAAuB;IAC7C,kBAAkB,EAAE,yBAAyB;IAC7C,uBAAuB,EAAE,mCAAmC;CAC/D,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACnC,gBAAgB,EAAE,4BAA4B;IAC9C,sBAAsB,EAAE,8BAA8B;IACtD,aAAa,EAAE,+BAA+B;IAC9C,aAAa,EAAE,mCAAmC;CACrD,CAAC"}
|
|
@@ -6,5 +6,6 @@ export * from './error-messages';
|
|
|
6
6
|
export * from './auth.constants';
|
|
7
7
|
export * from './logging-messages.constants';
|
|
8
8
|
export * from './routes.constants';
|
|
9
|
+
export * from './queue.constants';
|
|
9
10
|
export * from './common.constants';
|
|
10
11
|
export * from './auth-config.constants';
|
package/dist/constants/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./error-messages"), exports);
|
|
|
22
22
|
__exportStar(require("./auth.constants"), exports);
|
|
23
23
|
__exportStar(require("./logging-messages.constants"), exports);
|
|
24
24
|
__exportStar(require("./routes.constants"), exports);
|
|
25
|
+
__exportStar(require("./queue.constants"), exports);
|
|
25
26
|
__exportStar(require("./common.constants"), exports);
|
|
26
27
|
__exportStar(require("./auth-config.constants"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,4DAA0C;AAC1C,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,+DAA6C;AAC7C,qDAAmC;AACnC,qDAAmC;AACnC,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,4DAA0C;AAC1C,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,+DAA6C;AAC7C,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUEUE_CONSTANTS = void 0;
|
|
4
|
+
exports.QUEUE_CONSTANTS = {
|
|
5
|
+
QUEUES: {
|
|
6
|
+
NOTIFICATIONS: 'notifications-queue',
|
|
7
|
+
},
|
|
8
|
+
JOBS: {
|
|
9
|
+
SEND_NOTIFICATION: 'send-notification-job',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=queue.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queue.constants.js","sourceRoot":"","sources":["../../src/constants/queue.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC3B,MAAM,EAAE;QACJ,aAAa,EAAE,qBAAqB;KACvC;IACD,IAAI,EAAE;QACF,iBAAiB,EAAE,uBAAuB;KAC7C;CACJ,CAAC"}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { LoginDto } from '../dto/auth.dto';
|
|
2
|
+
import { LoginDto, UserResponse } from '../dto/auth.dto';
|
|
3
3
|
import { JwtTokens } from '../types/auth.types';
|
|
4
4
|
import { GenerateTokensRequest } from './token.contract';
|
|
5
|
+
import { UserRole } from '../enums';
|
|
5
6
|
export interface GetUserByIdGrpcRequest {
|
|
6
7
|
userId: string;
|
|
7
8
|
}
|
|
8
9
|
export interface GetUserByIdGrpcResponse {
|
|
9
|
-
user:
|
|
10
|
+
user: UserResponse;
|
|
10
11
|
}
|
|
11
12
|
export interface GetUserByEmailGrpcRequest {
|
|
12
13
|
email: string;
|
|
13
14
|
}
|
|
14
15
|
export interface GetUserByEmailGrpcResponse {
|
|
15
|
-
user:
|
|
16
|
+
user: UserResponse;
|
|
16
17
|
}
|
|
17
18
|
export interface ValidateTokenGrpcRequest {
|
|
18
19
|
token: string;
|
|
19
20
|
}
|
|
20
21
|
export interface ValidateTokenGrpcResponse {
|
|
21
22
|
valid: boolean;
|
|
22
|
-
user?:
|
|
23
|
+
user?: UserResponse;
|
|
23
24
|
}
|
|
24
25
|
export interface RefreshTokenGrpcRequest {
|
|
25
26
|
refreshToken: string;
|
|
@@ -47,7 +48,7 @@ export interface CreateIdentityRequest {
|
|
|
47
48
|
password: string;
|
|
48
49
|
name?: string;
|
|
49
50
|
userId: string;
|
|
50
|
-
role:
|
|
51
|
+
role: UserRole;
|
|
51
52
|
}
|
|
52
53
|
export interface GetUserPermissionsGrpcResponse {
|
|
53
54
|
userId: string;
|
|
@@ -60,7 +61,7 @@ export interface GetUserPermissionsGrpcResponse {
|
|
|
60
61
|
export interface CreateUserRequest {
|
|
61
62
|
userId?: string;
|
|
62
63
|
email: string;
|
|
63
|
-
role:
|
|
64
|
+
role: UserRole;
|
|
64
65
|
password?: string;
|
|
65
66
|
firstName?: string;
|
|
66
67
|
lastName?: string;
|
|
@@ -74,7 +75,7 @@ export interface CreateUserRequest {
|
|
|
74
75
|
export interface UpdateUserRequest {
|
|
75
76
|
userId: string;
|
|
76
77
|
email?: string;
|
|
77
|
-
role?:
|
|
78
|
+
role?: UserRole;
|
|
78
79
|
password?: string;
|
|
79
80
|
isActive?: boolean;
|
|
80
81
|
firstName?: string;
|
|
@@ -112,14 +113,16 @@ export type DeleteUserResponse = {
|
|
|
112
113
|
export interface IAuthService {
|
|
113
114
|
login(data: LoginDto): Observable<JwtTokens>;
|
|
114
115
|
generateTokens(data: GenerateTokensRequest): Observable<JwtTokens>;
|
|
115
|
-
createIdentity(data: CreateIdentityRequest): Observable<
|
|
116
|
+
createIdentity(data: CreateIdentityRequest): Observable<{
|
|
117
|
+
identityId: string;
|
|
118
|
+
}>;
|
|
116
119
|
validate(data: {
|
|
117
120
|
token: string;
|
|
118
121
|
}): Observable<{
|
|
119
122
|
valid: boolean;
|
|
120
123
|
userId?: string;
|
|
121
124
|
email?: string;
|
|
122
|
-
role?:
|
|
125
|
+
role?: UserRole;
|
|
123
126
|
}>;
|
|
124
127
|
validateToken(data: ValidateTokenGrpcRequest): Observable<ValidateTokenGrpcResponse>;
|
|
125
128
|
refreshToken(data: RefreshTokenGrpcRequest): Observable<JwtTokens>;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.UpdateAccountDto = exports.CreateAccountDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CreateAccountDto {
|
|
15
|
+
}
|
|
16
|
+
exports.CreateAccountDto = CreateAccountDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], CreateAccountDto.prototype, "accountNumber", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateAccountDto.prototype, "clientNumber", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CreateAccountDto.prototype, "currency", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateAccountDto.prototype, "balance", void 0);
|
|
36
|
+
class UpdateAccountDto {
|
|
37
|
+
}
|
|
38
|
+
exports.UpdateAccountDto = UpdateAccountDto;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], UpdateAccountDto.prototype, "status", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], UpdateAccountDto.prototype, "balance", void 0);
|
|
49
|
+
//# sourceMappingURL=account.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.dto.js","sourceRoot":"","sources":["../../src/dto/account.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,gBAAgB;CAe5B;AAfD,4CAeC;AAbG;IADC,IAAA,0BAAQ,GAAE;;uDACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACM;AAGrB,MAAa,gBAAgB;CAQ5B;AARD,4CAQC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACM"}
|
package/dist/dto/auth.dto.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UserRole } from '../enums/user.enum';
|
|
2
|
+
import { ServiceTokenType, IdentifierType } from '../enums';
|
|
2
3
|
export declare class RegisterDto {
|
|
3
4
|
email: string;
|
|
4
5
|
password: string;
|
|
@@ -11,6 +12,14 @@ export declare class LoginDto {
|
|
|
11
12
|
email: string;
|
|
12
13
|
password: string;
|
|
13
14
|
}
|
|
15
|
+
export declare class EmployeeLoginDto {
|
|
16
|
+
email: string;
|
|
17
|
+
password: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class PublicLoginDto {
|
|
20
|
+
username: string;
|
|
21
|
+
password: string;
|
|
22
|
+
}
|
|
14
23
|
export interface UserResponse {
|
|
15
24
|
id: string;
|
|
16
25
|
email: string;
|
|
@@ -61,3 +70,37 @@ export declare class ResetPasswordConfirmBody {
|
|
|
61
70
|
token: string;
|
|
62
71
|
newPassword: string;
|
|
63
72
|
}
|
|
73
|
+
export declare class LogoutDto {
|
|
74
|
+
refreshToken?: string;
|
|
75
|
+
sessionId?: string;
|
|
76
|
+
}
|
|
77
|
+
export declare class RefreshTokenDto {
|
|
78
|
+
refreshToken: string;
|
|
79
|
+
}
|
|
80
|
+
export declare class CreateServiceTokenDto {
|
|
81
|
+
serviceName: string;
|
|
82
|
+
type: ServiceTokenType;
|
|
83
|
+
description?: string;
|
|
84
|
+
name?: string;
|
|
85
|
+
identityId: string;
|
|
86
|
+
expiresInDays?: number;
|
|
87
|
+
}
|
|
88
|
+
export declare class ValidateServiceTokenDto {
|
|
89
|
+
token: string;
|
|
90
|
+
}
|
|
91
|
+
export declare class CreateCredentialDto {
|
|
92
|
+
identifierType: IdentifierType;
|
|
93
|
+
identifierValue: string;
|
|
94
|
+
password: string;
|
|
95
|
+
identityId: string;
|
|
96
|
+
}
|
|
97
|
+
export declare class CreateSessionDto {
|
|
98
|
+
identityId: string;
|
|
99
|
+
ipAddress?: string;
|
|
100
|
+
userAgent?: string;
|
|
101
|
+
deviceInfo?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare class Verify2faDto {
|
|
104
|
+
challengeId: string;
|
|
105
|
+
code: string;
|
|
106
|
+
}
|
package/dist/dto/auth.dto.js
CHANGED
|
@@ -9,9 +9,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ResetPasswordConfirmBody = exports.ResetPasswordRequestBody = exports.RegisterByInviteBody = exports.InviteRequestBody = exports.LoginDto = exports.RegisterDto = void 0;
|
|
12
|
+
exports.Verify2faDto = exports.CreateSessionDto = exports.CreateCredentialDto = exports.ValidateServiceTokenDto = exports.CreateServiceTokenDto = exports.RefreshTokenDto = exports.LogoutDto = exports.ResetPasswordConfirmBody = exports.ResetPasswordRequestBody = exports.RegisterByInviteBody = exports.InviteRequestBody = exports.PublicLoginDto = exports.EmployeeLoginDto = exports.LoginDto = exports.RegisterDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const user_enum_1 = require("../enums/user.enum");
|
|
15
|
+
const enums_1 = require("../enums");
|
|
15
16
|
class RegisterDto {
|
|
16
17
|
}
|
|
17
18
|
exports.RegisterDto = RegisterDto;
|
|
@@ -55,6 +56,30 @@ __decorate([
|
|
|
55
56
|
(0, class_validator_1.IsString)(),
|
|
56
57
|
__metadata("design:type", String)
|
|
57
58
|
], LoginDto.prototype, "password", void 0);
|
|
59
|
+
class EmployeeLoginDto {
|
|
60
|
+
}
|
|
61
|
+
exports.EmployeeLoginDto = EmployeeLoginDto;
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsEmail)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], EmployeeLoginDto.prototype, "email", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
(0, class_validator_1.MinLength)(8),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], EmployeeLoginDto.prototype, "password", void 0);
|
|
71
|
+
class PublicLoginDto {
|
|
72
|
+
}
|
|
73
|
+
exports.PublicLoginDto = PublicLoginDto;
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsString)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], PublicLoginDto.prototype, "username", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsString)(),
|
|
80
|
+
(0, class_validator_1.MinLength)(8),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], PublicLoginDto.prototype, "password", void 0);
|
|
58
83
|
class InviteRequestBody {
|
|
59
84
|
}
|
|
60
85
|
exports.InviteRequestBody = InviteRequestBody;
|
|
@@ -92,4 +117,114 @@ __decorate([
|
|
|
92
117
|
(0, class_validator_1.MinLength)(8),
|
|
93
118
|
__metadata("design:type", String)
|
|
94
119
|
], ResetPasswordConfirmBody.prototype, "newPassword", void 0);
|
|
120
|
+
class LogoutDto {
|
|
121
|
+
}
|
|
122
|
+
exports.LogoutDto = LogoutDto;
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, class_validator_1.IsString)(),
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], LogoutDto.prototype, "refreshToken", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, class_validator_1.IsString)(),
|
|
130
|
+
(0, class_validator_1.IsOptional)(),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], LogoutDto.prototype, "sessionId", void 0);
|
|
133
|
+
class RefreshTokenDto {
|
|
134
|
+
}
|
|
135
|
+
exports.RefreshTokenDto = RefreshTokenDto;
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, class_validator_1.IsString)(),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], RefreshTokenDto.prototype, "refreshToken", void 0);
|
|
140
|
+
class CreateServiceTokenDto {
|
|
141
|
+
}
|
|
142
|
+
exports.CreateServiceTokenDto = CreateServiceTokenDto;
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, class_validator_1.IsString)(),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], CreateServiceTokenDto.prototype, "serviceName", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, class_validator_1.IsEnum)(enums_1.ServiceTokenType),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], CreateServiceTokenDto.prototype, "type", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, class_validator_1.IsOptional)(),
|
|
153
|
+
(0, class_validator_1.IsString)(),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], CreateServiceTokenDto.prototype, "description", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, class_validator_1.IsOptional)(),
|
|
158
|
+
(0, class_validator_1.IsString)(),
|
|
159
|
+
__metadata("design:type", String)
|
|
160
|
+
], CreateServiceTokenDto.prototype, "name", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, class_validator_1.IsString)(),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], CreateServiceTokenDto.prototype, "identityId", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, class_validator_1.IsOptional)(),
|
|
167
|
+
(0, class_validator_1.IsString)(),
|
|
168
|
+
__metadata("design:type", Number)
|
|
169
|
+
], CreateServiceTokenDto.prototype, "expiresInDays", void 0);
|
|
170
|
+
class ValidateServiceTokenDto {
|
|
171
|
+
}
|
|
172
|
+
exports.ValidateServiceTokenDto = ValidateServiceTokenDto;
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, class_validator_1.IsString)(),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], ValidateServiceTokenDto.prototype, "token", void 0);
|
|
177
|
+
class CreateCredentialDto {
|
|
178
|
+
}
|
|
179
|
+
exports.CreateCredentialDto = CreateCredentialDto;
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, class_validator_1.IsEnum)(enums_1.IdentifierType),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], CreateCredentialDto.prototype, "identifierType", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, class_validator_1.IsString)(),
|
|
186
|
+
__metadata("design:type", String)
|
|
187
|
+
], CreateCredentialDto.prototype, "identifierValue", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, class_validator_1.IsString)(),
|
|
190
|
+
__metadata("design:type", String)
|
|
191
|
+
], CreateCredentialDto.prototype, "password", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, class_validator_1.IsString)(),
|
|
194
|
+
__metadata("design:type", String)
|
|
195
|
+
], CreateCredentialDto.prototype, "identityId", void 0);
|
|
196
|
+
class CreateSessionDto {
|
|
197
|
+
}
|
|
198
|
+
exports.CreateSessionDto = CreateSessionDto;
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, class_validator_1.IsString)(),
|
|
201
|
+
__metadata("design:type", String)
|
|
202
|
+
], CreateSessionDto.prototype, "identityId", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, class_validator_1.IsOptional)(),
|
|
205
|
+
(0, class_validator_1.IsString)(),
|
|
206
|
+
__metadata("design:type", String)
|
|
207
|
+
], CreateSessionDto.prototype, "ipAddress", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, class_validator_1.IsOptional)(),
|
|
210
|
+
(0, class_validator_1.IsString)(),
|
|
211
|
+
__metadata("design:type", String)
|
|
212
|
+
], CreateSessionDto.prototype, "userAgent", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, class_validator_1.IsOptional)(),
|
|
215
|
+
(0, class_validator_1.IsString)(),
|
|
216
|
+
__metadata("design:type", String)
|
|
217
|
+
], CreateSessionDto.prototype, "deviceInfo", void 0);
|
|
218
|
+
class Verify2faDto {
|
|
219
|
+
}
|
|
220
|
+
exports.Verify2faDto = Verify2faDto;
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, class_validator_1.IsString)(),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], Verify2faDto.prototype, "challengeId", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, class_validator_1.IsString)(),
|
|
227
|
+
(0, class_validator_1.MinLength)(6),
|
|
228
|
+
__metadata("design:type", String)
|
|
229
|
+
], Verify2faDto.prototype, "code", void 0);
|
|
95
230
|
//# sourceMappingURL=auth.dto.js.map
|
package/dist/dto/auth.dto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.dto.js","sourceRoot":"","sources":["../../src/dto/auth.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmF;AACnF,kDAA8C;
|
|
1
|
+
{"version":3,"file":"auth.dto.js","sourceRoot":"","sources":["../../src/dto/auth.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmF;AACnF,kDAA8C;AAC9C,oCAA4D;AAE5D,MAAa,WAAW;CAuBvB;AAvBD,kCAuBC;AArBG;IADC,IAAA,yBAAO,GAAE;;0CACK;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;6CACK;AAIlB;IAFC,IAAA,wBAAM,EAAC,oBAAQ,CAAC;IAChB,IAAA,4BAAU,GAAE;;yCACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACG;AAGpB,MAAa,QAAQ;CAMpB;AAND,4BAMC;AAJG;IADC,IAAA,yBAAO,GAAE;;uCACK;AAGf;IADC,IAAA,0BAAQ,GAAE;;0CACO;AAOtB,MAAa,gBAAgB;CAO5B;AAPD,4CAOC;AALG;IADC,IAAA,yBAAO,GAAE;;+CACK;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;kDACK;AAOtB,MAAa,cAAc;CAO1B;AAPD,wCAOC;AALG;IADC,IAAA,0BAAQ,GAAE;;gDACO;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;gDACK;AAgDtB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;2DACS;AAGhC;IADC,IAAA,0BAAQ,GAAE;;4DACc;AAGzB;IADC,IAAA,0BAAQ,GAAE;;qDACO;AAGlB;IADC,IAAA,0BAAQ,GAAE;;uDACS;AAMxB,MAAa,gBAAgB;CAe5B;AAfD,4CAeC;AAbG;IADC,IAAA,0BAAQ,GAAE;;oDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACS;AAMxB,MAAa,YAAY;CAOxB;AAPD,oCAOC;AALG;IADC,IAAA,0BAAQ,GAAE;;iDACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;0CACC"}
|
package/dist/dto/card.dto.js.map
CHANGED
|
@@ -1 +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;;
|
|
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;;iDACS;AAIpB;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.dto.js","sourceRoot":"","sources":["../../src/dto/client.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuH;AACvH,yDAAyC;AACzC,yCAAyC;AAEzC,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AARG;IADC,IAAA,0BAAQ,GAAE;;
|
|
1
|
+
{"version":3,"file":"client.dto.js","sourceRoot":"","sources":["../../src/dto/client.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuH;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ACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;;iDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACgB"}
|
package/dist/dto/index.d.ts
CHANGED
package/dist/dto/index.js
CHANGED
|
@@ -20,4 +20,6 @@ __exportStar(require("./client.dto"), exports);
|
|
|
20
20
|
__exportStar(require("./transaction.dto"), exports);
|
|
21
21
|
__exportStar(require("./card.dto"), exports);
|
|
22
22
|
__exportStar(require("./partner.dto"), exports);
|
|
23
|
+
__exportStar(require("./user.dto"), exports);
|
|
24
|
+
__exportStar(require("./account.dto"), exports);
|
|
23
25
|
//# 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;AAC3B,+CAA6B;AAC7B,oDAAkC;AAClC,6CAA2B;AAC3B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,6CAA2B;AAC3B,+CAA6B;AAC7B,oDAAkC;AAClC,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,gDAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.dto.js","sourceRoot":"","sources":["../../src/dto/logging.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8F;AAC9F,yDAAyC;AACzC,oCAAoC;AAEpC,MAAa,YAAY;IAAzB;QA6BI,SAAI,GAAY,CAAC,CAAC;QAOlB,aAAQ,GAAY,EAAE,CAAC;IAC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