@campxdev/server-shared 1.6.57 → 1.6.59
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/cloud-watch-logger/cloud-watch-logger.module.d.ts +5 -0
- package/dist/cloud-watch-logger/cloud-watch-logger.module.d.ts.map +1 -1
- package/dist/cloud-watch-logger/cloud-watch-logger.module.js +5 -0
- package/dist/cloud-watch-logger/cloud-watch-logger.module.js.map +1 -1
- package/dist/cloud-watch-logger/cloud-water-logger.service.d.ts +21 -5
- package/dist/cloud-watch-logger/cloud-water-logger.service.d.ts.map +1 -1
- package/dist/cloud-watch-logger/cloud-water-logger.service.js +17 -5
- package/dist/cloud-watch-logger/cloud-water-logger.service.js.map +1 -1
- package/dist/cloud-watch-logger/dtos/put-log-event.dto.d.ts +7 -0
- package/dist/cloud-watch-logger/dtos/put-log-event.dto.d.ts.map +1 -1
- package/dist/cloud-watch-logger/dtos/put-log-event.dto.js +7 -0
- package/dist/cloud-watch-logger/dtos/put-log-event.dto.js.map +1 -1
- package/dist/common/decorators/batch-validation.decorator.d.ts +5 -0
- package/dist/common/decorators/batch-validation.decorator.d.ts.map +1 -1
- package/dist/common/decorators/batch-validation.decorator.js +5 -0
- package/dist/common/decorators/batch-validation.decorator.js.map +1 -1
- package/dist/common/decorators/request.decorators.d.ts +30 -1
- package/dist/common/decorators/request.decorators.d.ts.map +1 -1
- package/dist/common/decorators/request.decorators.js +92 -17
- package/dist/common/decorators/request.decorators.js.map +1 -1
- package/dist/common/decorators/time-validation.decorator.d.ts +6 -0
- package/dist/common/decorators/time-validation.decorator.d.ts.map +1 -1
- package/dist/common/decorators/time-validation.decorator.js +6 -0
- package/dist/common/decorators/time-validation.decorator.js.map +1 -1
- package/dist/common/filters/unhandled-exception.filter.d.ts +7 -0
- package/dist/common/filters/unhandled-exception.filter.d.ts.map +1 -1
- package/dist/common/filters/unhandled-exception.filter.js +7 -0
- package/dist/common/filters/unhandled-exception.filter.js.map +1 -1
- package/dist/common/interceptors/request.interceptor.js +2 -2
- package/dist/common/interceptors/request.interceptor.js.map +1 -1
- package/dist/domain/index.d.ts +2 -4
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +3 -4
- package/dist/domain/index.js.map +1 -1
- package/dist/domain/schemas/index.d.ts +5 -0
- package/dist/domain/schemas/index.d.ts.map +1 -0
- package/dist/domain/schemas/index.js +21 -0
- package/dist/domain/schemas/index.js.map +1 -0
- package/dist/domain/schemas/print-format.schema.d.ts +59 -0
- package/dist/domain/schemas/print-format.schema.d.ts.map +1 -0
- package/dist/domain/schemas/print-format.schema.js +76 -0
- package/dist/domain/schemas/print-format.schema.js.map +1 -0
- package/dist/modules-handler/modules-handler.module.d.ts +14 -0
- package/dist/modules-handler/modules-handler.module.d.ts.map +1 -1
- package/dist/modules-handler/modules-handler.module.js +14 -0
- package/dist/modules-handler/modules-handler.module.js.map +1 -1
- package/dist/request-store/constants.d.ts +15 -0
- package/dist/request-store/constants.d.ts.map +1 -0
- package/dist/request-store/constants.js +19 -0
- package/dist/request-store/constants.js.map +1 -0
- package/dist/request-store/contexts/aws-context.d.ts +24 -0
- package/dist/request-store/contexts/aws-context.d.ts.map +1 -0
- package/dist/request-store/contexts/aws-context.js +36 -0
- package/dist/request-store/contexts/aws-context.js.map +1 -0
- package/dist/request-store/contexts/easydms-context.d.ts +13 -0
- package/dist/request-store/contexts/easydms-context.d.ts.map +1 -0
- package/dist/request-store/contexts/easydms-context.js +29 -0
- package/dist/request-store/contexts/easydms-context.js.map +1 -0
- package/dist/request-store/contexts/express-context.d.ts +23 -0
- package/dist/request-store/contexts/express-context.d.ts.map +1 -0
- package/dist/request-store/contexts/express-context.js +38 -0
- package/dist/request-store/contexts/express-context.js.map +1 -0
- package/dist/request-store/contexts/index.d.ts +9 -0
- package/dist/request-store/contexts/index.d.ts.map +1 -0
- package/dist/request-store/contexts/index.js +25 -0
- package/dist/request-store/contexts/index.js.map +1 -0
- package/dist/request-store/contexts/mongo-context.d.ts +38 -0
- package/dist/request-store/contexts/mongo-context.d.ts.map +1 -0
- package/dist/request-store/contexts/mongo-context.js +29 -0
- package/dist/request-store/contexts/mongo-context.js.map +1 -0
- package/dist/request-store/contexts/mysql-context.d.ts +21 -0
- package/dist/request-store/contexts/mysql-context.d.ts.map +1 -0
- package/dist/request-store/contexts/mysql-context.js +43 -0
- package/dist/request-store/contexts/mysql-context.js.map +1 -0
- package/dist/request-store/contexts/mysql-credentials-context.d.ts +11 -0
- package/dist/request-store/contexts/mysql-credentials-context.d.ts.map +1 -0
- package/dist/request-store/contexts/mysql-credentials-context.js +18 -0
- package/dist/request-store/contexts/mysql-credentials-context.js.map +1 -0
- package/dist/request-store/contexts/tenant-context.d.ts +163 -0
- package/dist/request-store/contexts/tenant-context.d.ts.map +1 -0
- package/dist/request-store/contexts/tenant-context.js +195 -0
- package/dist/request-store/contexts/tenant-context.js.map +1 -0
- package/dist/request-store/contexts/user-context.d.ts +45 -0
- package/dist/request-store/contexts/user-context.d.ts.map +1 -0
- package/dist/request-store/contexts/user-context.js +81 -0
- package/dist/request-store/contexts/user-context.js.map +1 -0
- package/dist/request-store/index.d.ts +1 -0
- package/dist/request-store/index.d.ts.map +1 -1
- package/dist/request-store/index.js +1 -0
- package/dist/request-store/index.js.map +1 -1
- package/dist/request-store/request-store.d.ts +13 -148
- package/dist/request-store/request-store.d.ts.map +1 -1
- package/dist/request-store/request-store.js +16 -256
- package/dist/request-store/request-store.js.map +1 -1
- package/dist/request-store/store.interceptor.d.ts +8 -0
- package/dist/request-store/store.interceptor.d.ts.map +1 -1
- package/dist/request-store/store.interceptor.js +8 -0
- package/dist/request-store/store.interceptor.js.map +1 -1
- package/dist/shared-module/shared.module.d.ts +5 -0
- package/dist/shared-module/shared.module.d.ts.map +1 -1
- package/dist/shared-module/shared.module.js +5 -0
- package/dist/shared-module/shared.module.js.map +1 -1
- package/dist/util-module/index.d.ts +1 -0
- package/dist/util-module/index.d.ts.map +1 -1
- package/dist/util-module/index.js +1 -0
- package/dist/util-module/index.js.map +1 -1
- package/dist/util-module/utils-custom.service.d.ts +17 -0
- package/dist/util-module/utils-custom.service.d.ts.map +1 -0
- package/dist/util-module/utils-custom.service.js +57 -0
- package/dist/util-module/utils-custom.service.js.map +1 -0
- package/dist/util-module/utils.service.d.ts +1 -14
- package/dist/util-module/utils.service.d.ts.map +1 -1
- package/dist/util-module/utils.service.js +6 -40
- package/dist/util-module/utils.service.js.map +1 -1
- package/dist/utils/enums/PrintFormatType.d.ts +13 -0
- package/dist/utils/enums/PrintFormatType.d.ts.map +1 -0
- package/dist/utils/enums/PrintFormatType.js +17 -0
- package/dist/utils/enums/PrintFormatType.js.map +1 -0
- package/dist/utils/enums/StudentServiceSlug.d.ts +14 -0
- package/dist/utils/enums/StudentServiceSlug.d.ts.map +1 -0
- package/dist/utils/enums/StudentServiceSlug.js +18 -0
- package/dist/utils/enums/StudentServiceSlug.js.map +1 -0
- package/dist/utils/enums/index.d.ts +3 -0
- package/dist/utils/enums/index.d.ts.map +1 -0
- package/dist/utils/enums/index.js +8 -0
- package/dist/utils/enums/index.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/types/index.d.ts +2 -0
- package/dist/utils/types/index.d.ts.map +1 -0
- package/dist/utils/types/index.js +18 -0
- package/dist/utils/types/index.js.map +1 -0
- package/dist/utils/types/student-service-meta-data.types.d.ts +294 -0
- package/dist/utils/types/student-service-meta-data.types.d.ts.map +1 -0
- package/dist/utils/types/student-service-meta-data.types.js +3 -0
- package/dist/utils/types/student-service-meta-data.types.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Description
|
|
3
|
+
* This module is responsible for logging using AWS CloudWatch.
|
|
4
|
+
* It consists of all the methods and dependencies to push and pull the logs from AWS CloudWatch.
|
|
5
|
+
*/
|
|
1
6
|
export declare class CloudWatchLoggerModule {
|
|
2
7
|
}
|
|
3
8
|
//# sourceMappingURL=cloud-watch-logger.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-watch-logger.module.d.ts","sourceRoot":"","sources":["../../src/cloud-watch-logger/cloud-watch-logger.module.ts"],"names":[],"mappings":"AAGA,qBAIa,sBAAsB;CAAG"}
|
|
1
|
+
{"version":3,"file":"cloud-watch-logger.module.d.ts","sourceRoot":"","sources":["../../src/cloud-watch-logger/cloud-watch-logger.module.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,qBAIa,sBAAsB;CAAG"}
|
|
@@ -9,6 +9,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.CloudWatchLoggerModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const cloud_water_logger_service_1 = require("./cloud-water-logger.service");
|
|
12
|
+
/**
|
|
13
|
+
* Description
|
|
14
|
+
* This module is responsible for logging using AWS CloudWatch.
|
|
15
|
+
* It consists of all the methods and dependencies to push and pull the logs from AWS CloudWatch.
|
|
16
|
+
*/
|
|
12
17
|
let CloudWatchLoggerModule = class CloudWatchLoggerModule {
|
|
13
18
|
};
|
|
14
19
|
exports.CloudWatchLoggerModule = CloudWatchLoggerModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-watch-logger.module.js","sourceRoot":"","sources":["../../src/cloud-watch-logger/cloud-watch-logger.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6EAAuE;
|
|
1
|
+
{"version":3,"file":"cloud-watch-logger.module.js","sourceRoot":"","sources":["../../src/cloud-watch-logger/cloud-watch-logger.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6EAAuE;AAEvE;;;;GAIG;AAKI,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAAG,CAAA;AAAzB,wDAAsB;iCAAtB,sBAAsB;IAJlC,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,oDAAuB,CAAC;QACpC,OAAO,EAAE,CAAC,oDAAuB,CAAC;KACnC,CAAC;GACW,sBAAsB,CAAG"}
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
import { PutLogEventDto } from './dtos/put-log-event.dto';
|
|
2
|
+
/**
|
|
3
|
+
* @class CloudWatchLoggerService
|
|
4
|
+
* @description Service to interact with AWS CloudWatch Logs.
|
|
5
|
+
* This service provides methods to create log streams, write log events, and retrieve log events from CloudWatch Logs.
|
|
6
|
+
* @exports CloudWatchLoggerService
|
|
7
|
+
*/
|
|
2
8
|
export declare class CloudWatchLoggerService {
|
|
9
|
+
/**
|
|
10
|
+
* AWS CloudWatch Logs client instance used to interact with CloudWatch services.
|
|
11
|
+
* @private
|
|
12
|
+
*/
|
|
3
13
|
private cloudWatchClient;
|
|
14
|
+
/**
|
|
15
|
+
* @constructor
|
|
16
|
+
* Creates an instance of CloudWatchLoggerService.
|
|
17
|
+
* Initializes the CloudWatchLogsClient with the AWS credentials.
|
|
18
|
+
*/
|
|
4
19
|
constructor();
|
|
5
20
|
/**
|
|
6
21
|
* Creates a log stream in the specified log group.
|
|
7
|
-
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param logStreamName - The name of the log stream.
|
|
22
|
+
* @param logGroupName - The name of the log group to which the stream belongs.
|
|
23
|
+
* @param logStreamName - The unique name of the log stream to be created.
|
|
10
24
|
* @returns A promise that resolves to the response from creating the log stream.
|
|
11
25
|
* @throws UnprocessableEntityException if there is an error creating the log stream.
|
|
12
26
|
*/
|
|
@@ -15,6 +29,7 @@ export declare class CloudWatchLoggerService {
|
|
|
15
29
|
* Writes log events to a CloudWatch log stream.
|
|
16
30
|
* @param data - The log event data.
|
|
17
31
|
* @returns A promise that resolves with the response from CloudWatch.
|
|
32
|
+
* @throws UnprocessableEntityException if there is an error writing the log event.
|
|
18
33
|
*/
|
|
19
34
|
putLogEvents(data: PutLogEventDto): Promise<any>;
|
|
20
35
|
/**
|
|
@@ -22,11 +37,12 @@ export declare class CloudWatchLoggerService {
|
|
|
22
37
|
* @param logGroupName - The name of the log group.
|
|
23
38
|
* @param logStreamName - The name of the log stream.
|
|
24
39
|
* @returns A promise that resolves to the sequence token of the log stream.
|
|
25
|
-
* @throws
|
|
40
|
+
* @throws UnprocessableEntityException if there is an error retrieving the sequence token.
|
|
26
41
|
*/
|
|
27
42
|
getSequenceTokenForLogStream(logGroupName: string, logStreamName: string): Promise<string>;
|
|
28
43
|
/**
|
|
29
|
-
*
|
|
44
|
+
* Polls CloudWatch Logs to retrieve results for the specified query.
|
|
45
|
+
* Waits until the query is completed or times out.
|
|
30
46
|
* @param logGroupName - The name of the log group.
|
|
31
47
|
* @param query - The query string used to filter log events.
|
|
32
48
|
* @returns A promise that resolves to an array of log event results.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-water-logger.service.d.ts","sourceRoot":"","sources":["../../src/cloud-watch-logger/cloud-water-logger.service.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBACa,uBAAuB;IAClC,OAAO,CAAC,gBAAgB,CAAuB
|
|
1
|
+
{"version":3,"file":"cloud-water-logger.service.d.ts","sourceRoot":"","sources":["../../src/cloud-watch-logger/cloud-water-logger.service.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;;GAKG;AACH,qBACa,uBAAuB;IAClC;;;OAGG;IACH,OAAO,CAAC,gBAAgB,CAAuB;IAE/C;;;;OAIG;;IAWH;;;;;;OAMG;IACG,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAiBhF;;;;;OAKG;IACG,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC;IAmCtD;;;;;;OAMG;IACG,4BAA4B,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAoBhG;;;;;;;OAOG;IACG,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAkCtE"}
|
|
@@ -12,7 +12,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CloudWatchLoggerService = void 0;
|
|
13
13
|
const client_cloudwatch_logs_1 = require("@aws-sdk/client-cloudwatch-logs");
|
|
14
14
|
const common_1 = require("@nestjs/common");
|
|
15
|
+
/**
|
|
16
|
+
* @class CloudWatchLoggerService
|
|
17
|
+
* @description Service to interact with AWS CloudWatch Logs.
|
|
18
|
+
* This service provides methods to create log streams, write log events, and retrieve log events from CloudWatch Logs.
|
|
19
|
+
* @exports CloudWatchLoggerService
|
|
20
|
+
*/
|
|
15
21
|
let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
22
|
+
/**
|
|
23
|
+
* @constructor
|
|
24
|
+
* Creates an instance of CloudWatchLoggerService.
|
|
25
|
+
* Initializes the CloudWatchLogsClient with the AWS credentials.
|
|
26
|
+
*/
|
|
16
27
|
constructor() {
|
|
17
28
|
this.cloudWatchClient = new client_cloudwatch_logs_1.CloudWatchLogsClient({
|
|
18
29
|
region: 'ap-south-1',
|
|
@@ -24,9 +35,8 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
|
24
35
|
}
|
|
25
36
|
/**
|
|
26
37
|
* Creates a log stream in the specified log group.
|
|
27
|
-
*
|
|
28
|
-
* @param
|
|
29
|
-
* @param logStreamName - The name of the log stream.
|
|
38
|
+
* @param logGroupName - The name of the log group to which the stream belongs.
|
|
39
|
+
* @param logStreamName - The unique name of the log stream to be created.
|
|
30
40
|
* @returns A promise that resolves to the response from creating the log stream.
|
|
31
41
|
* @throws UnprocessableEntityException if there is an error creating the log stream.
|
|
32
42
|
*/
|
|
@@ -48,6 +58,7 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
|
48
58
|
* Writes log events to a CloudWatch log stream.
|
|
49
59
|
* @param data - The log event data.
|
|
50
60
|
* @returns A promise that resolves with the response from CloudWatch.
|
|
61
|
+
* @throws UnprocessableEntityException if there is an error writing the log event.
|
|
51
62
|
*/
|
|
52
63
|
async putLogEvents(data) {
|
|
53
64
|
const sequenceToken = await this.getSequenceTokenForLogStream(data.logGroupName, data.logStreamName);
|
|
@@ -83,7 +94,7 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
|
83
94
|
* @param logGroupName - The name of the log group.
|
|
84
95
|
* @param logStreamName - The name of the log stream.
|
|
85
96
|
* @returns A promise that resolves to the sequence token of the log stream.
|
|
86
|
-
* @throws
|
|
97
|
+
* @throws UnprocessableEntityException if there is an error retrieving the sequence token.
|
|
87
98
|
*/
|
|
88
99
|
async getSequenceTokenForLogStream(logGroupName, logStreamName) {
|
|
89
100
|
const params = {
|
|
@@ -101,7 +112,8 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
|
101
112
|
}
|
|
102
113
|
}
|
|
103
114
|
/**
|
|
104
|
-
*
|
|
115
|
+
* Polls CloudWatch Logs to retrieve results for the specified query.
|
|
116
|
+
* Waits until the query is completed or times out.
|
|
105
117
|
* @param logGroupName - The name of the log group.
|
|
106
118
|
* @param query - The query string used to filter log events.
|
|
107
119
|
* @returns A promise that resolves to an array of log event results.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-water-logger.service.js","sourceRoot":"","sources":["../../src/cloud-watch-logger/cloud-water-logger.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4EAayC;AACzC,2CAA0E;
|
|
1
|
+
{"version":3,"file":"cloud-water-logger.service.js","sourceRoot":"","sources":["../../src/cloud-watch-logger/cloud-water-logger.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4EAayC;AACzC,2CA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AC;CACF,CAAA;AA5JY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;;GACA,uBAAuB,CA4JnC"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PutLogEventDto
|
|
3
|
+
* Data transfer object for writing log events to a CloudWatch log stream.
|
|
4
|
+
* @param logGroupName - The name of the log group.
|
|
5
|
+
* @param logStreamName - The name of the log stream.
|
|
6
|
+
* @param message - The message to log.
|
|
7
|
+
*/
|
|
1
8
|
export declare class PutLogEventDto {
|
|
2
9
|
logGroupName: string;
|
|
3
10
|
logStreamName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"put-log-event.dto.d.ts","sourceRoot":"","sources":["../../../src/cloud-watch-logger/dtos/put-log-event.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IAEzB,YAAY,EAAE,MAAM,CAAC;IAGrB,aAAa,EAAE,MAAM,CAAC;IAGtB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
1
|
+
{"version":3,"file":"put-log-event.dto.d.ts","sourceRoot":"","sources":["../../../src/cloud-watch-logger/dtos/put-log-event.dto.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,qBAAa,cAAc;IAEzB,YAAY,EAAE,MAAM,CAAC;IAGrB,aAAa,EAAE,MAAM,CAAC;IAGtB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -11,6 +11,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PutLogEventDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* PutLogEventDto
|
|
16
|
+
* Data transfer object for writing log events to a CloudWatch log stream.
|
|
17
|
+
* @param logGroupName - The name of the log group.
|
|
18
|
+
* @param logStreamName - The name of the log stream.
|
|
19
|
+
* @param message - The message to log.
|
|
20
|
+
*/
|
|
14
21
|
class PutLogEventDto {
|
|
15
22
|
}
|
|
16
23
|
exports.PutLogEventDto = PutLogEventDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"put-log-event.dto.js","sourceRoot":"","sources":["../../../src/cloud-watch-logger/dtos/put-log-event.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAE7C,MAAa,cAAc;CAS1B;AATD,wCASC;AAPC;IADC,IAAA,4BAAU,GAAE;;oDACQ;AAGrB;IADC,IAAA,4BAAU,GAAE;;qDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;+CACG"}
|
|
1
|
+
{"version":3,"file":"put-log-event.dto.js","sourceRoot":"","sources":["../../../src/cloud-watch-logger/dtos/put-log-event.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAE7C;;;;;;GAMG;AACH,MAAa,cAAc;CAS1B;AATD,wCASC;AAPC;IADC,IAAA,4BAAU,GAAE;;oDACQ;AAGrB;IADC,IAAA,4BAAU,GAAE;;qDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;+CACG"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { ValidationOptions } from 'class-validator';
|
|
2
|
+
/**
|
|
3
|
+
* A Custom validation decorator to validate batch in the format of "YYYY - YYYY".
|
|
4
|
+
* @param validationOptions - The validation options from class-validator.
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
2
7
|
export declare function IsBatch(validationOptions?: ValidationOptions): (obj: object, propertyName: string) => void;
|
|
3
8
|
//# sourceMappingURL=batch-validation.decorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-validation.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/batch-validation.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE,wBAAgB,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,SAC9C,MAAM,gBAAgB,MAAM,UAkB1C"}
|
|
1
|
+
{"version":3,"file":"batch-validation.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/batch-validation.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,SAC9C,MAAM,gBAAgB,MAAM,UAkB1C"}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IsBatch = void 0;
|
|
4
4
|
const class_validator_1 = require("class-validator");
|
|
5
|
+
/**
|
|
6
|
+
* A Custom validation decorator to validate batch in the format of "YYYY - YYYY".
|
|
7
|
+
* @param validationOptions - The validation options from class-validator.
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
5
10
|
function IsBatch(validationOptions) {
|
|
6
11
|
return (obj, propertyName) => {
|
|
7
12
|
(0, class_validator_1.registerDecorator)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-validation.decorator.js","sourceRoot":"","sources":["../../../src/common/decorators/batch-validation.decorator.ts"],"names":[],"mappings":";;;AAAA,qDAAuE;AAEvE,SAAgB,OAAO,CAAC,iBAAqC;IAC3D,OAAO,CAAC,GAAW,EAAE,YAAoB,EAAE,EAAE;QAC3C,IAAA,mCAAiB,EAAC;YAChB,YAAY,EAAE,YAAY;YAC1B,MAAM,EAAE,GAAG,CAAC,WAAW;YACvB,OAAO,EAAE,iBAAiB;YAC1B,IAAI,EAAE,SAAS;YACf,SAAS,EAAE;gBACT,QAAQ,CAAC,KAAU;oBACjB,IAAI,OAAO,KAAK,KAAK,QAAQ;wBAAE,OAAO,KAAK,CAAC;oBAC5C,MAAM,UAAU,GAAG,6BAA6B,CAAC;oBACjD,OAAO,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAChC,CAAC;gBACD,cAAc;oBACZ,OAAO,GAAG,YAAY,uDAAuD,CAAC;gBAChF,CAAC;aACF;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAnBD,0BAmBC"}
|
|
1
|
+
{"version":3,"file":"batch-validation.decorator.js","sourceRoot":"","sources":["../../../src/common/decorators/batch-validation.decorator.ts"],"names":[],"mappings":";;;AAAA,qDAAuE;AAEvE;;;;GAIG;AACH,SAAgB,OAAO,CAAC,iBAAqC;IAC3D,OAAO,CAAC,GAAW,EAAE,YAAoB,EAAE,EAAE;QAC3C,IAAA,mCAAiB,EAAC;YAChB,YAAY,EAAE,YAAY;YAC1B,MAAM,EAAE,GAAG,CAAC,WAAW;YACvB,OAAO,EAAE,iBAAiB;YAC1B,IAAI,EAAE,SAAS;YACf,SAAS,EAAE;gBACT,QAAQ,CAAC,KAAU;oBACjB,IAAI,OAAO,KAAK,KAAK,QAAQ;wBAAE,OAAO,KAAK,CAAC;oBAC5C,MAAM,UAAU,GAAG,6BAA6B,CAAC;oBACjD,OAAO,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAChC,CAAC;gBACD,cAAc;oBACZ,OAAO,GAAG,YAAY,uDAAuD,CAAC;gBAChF,CAAC;aACF;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAnBD,0BAmBC"}
|
|
@@ -1,8 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
/**
|
|
3
|
+
* @function RPCBody
|
|
4
|
+
* @description Decorator to extract the body from the RPC (Remote Procedure Call) request.
|
|
5
|
+
*/
|
|
1
6
|
export declare const RPCBody: (...dataOrPipes: (string | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
|
|
7
|
+
/**
|
|
8
|
+
* @function RPCQuery
|
|
9
|
+
* @description Decorator to extract the query from the RPC (Remote Procedure Call) request.
|
|
10
|
+
*/
|
|
2
11
|
export declare const RPCQuery: (...dataOrPipes: (string | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
|
|
12
|
+
/**
|
|
13
|
+
* @function RPCParam
|
|
14
|
+
* @description Decorator to extract the param from the RPC (Remote Procedure Call) request.
|
|
15
|
+
*/
|
|
3
16
|
export declare const RPCParam: (...dataOrPipes: (string | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
|
|
17
|
+
/**
|
|
18
|
+
* @function RPCUploadedFile
|
|
19
|
+
* @description Decorator to extract the uploaded file from the RPC (Remote Procedure Call) request.
|
|
20
|
+
*/
|
|
4
21
|
export declare const RPCUploadedFile: (...dataOrPipes: (string | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
|
|
22
|
+
/**
|
|
23
|
+
* @function RPCUploadedS3File
|
|
24
|
+
* @description Decorator to extract the uploaded S3 file from the RPC (Remote Procedure Call) request.
|
|
25
|
+
*/
|
|
5
26
|
export declare const RPCUploadedS3File: (...dataOrPipes: (string | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
|
|
6
|
-
|
|
27
|
+
/**
|
|
28
|
+
* @function RPCUploadedFiles
|
|
29
|
+
* @description Decorator to extract the uploaded files from the RPC (Remote Procedure Call) request.
|
|
30
|
+
*/
|
|
7
31
|
export declare const RPCUploadedFiles: (...dataOrPipes: (string | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
|
|
32
|
+
/**
|
|
33
|
+
* @function RPCUploadedS3Files
|
|
34
|
+
* @description Decorator to extract the uploaded S3 files from the RPC (Remote Procedure Call) request.
|
|
35
|
+
*/
|
|
36
|
+
export declare const RPCUploadedS3Files: (...dataOrPipes: (string | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
|
|
8
37
|
//# sourceMappingURL=request.decorators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.decorators.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/request.decorators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request.decorators.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/request.decorators.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,OAAO,yLAAoC,CAAC;AAezD;;;GAGG;AACH,eAAO,MAAM,QAAQ,yLAAqC,CAAC;AAe3D;;;GAGG;AACH,eAAO,MAAM,QAAQ,yLAAqC,CAAC;AAa3D;;;GAGG;AACH,eAAO,MAAM,eAAe,yLAA4C,CAAC;AAazE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,yLAA8C,CAAC;AAa7E;;;GAGG;AACH,eAAO,MAAM,gBAAgB,yLAA6C,CAAC;AAa3E;;;GAGG;AACH,eAAO,MAAM,kBAAkB,yLAAuC,CAAC"}
|
|
@@ -1,45 +1,120 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.RPCUploadedS3Files = exports.RPCUploadedFiles = exports.RPCUploadedS3File = exports.RPCUploadedFile = exports.RPCParam = exports.RPCQuery = exports.RPCBody = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Extracts the body from the RPC request.
|
|
7
|
+
*/
|
|
8
|
+
function extractBody(data, ctx) {
|
|
6
9
|
const request = ctx.switchToRpc().getData();
|
|
7
10
|
if (request.body === undefined || request.body === null)
|
|
8
11
|
return {};
|
|
9
12
|
if (data)
|
|
10
13
|
return request.body[data];
|
|
11
14
|
return request.body;
|
|
12
|
-
}
|
|
13
|
-
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
/**
|
|
18
|
+
* @function RPCBody
|
|
19
|
+
* @description Decorator to extract the body from the RPC (Remote Procedure Call) request.
|
|
20
|
+
*/
|
|
21
|
+
exports.RPCBody = (0, common_1.createParamDecorator)(extractBody);
|
|
22
|
+
/**
|
|
23
|
+
* Extracts the query from the RPC request.
|
|
24
|
+
* @param {string} data - The key to extract from the query.
|
|
25
|
+
* @param {ExecutionContext} ctx - The execution context.
|
|
26
|
+
* @returns {any} The extracted query or the entire query object.
|
|
27
|
+
*/
|
|
28
|
+
function extractQuery(data, ctx) {
|
|
14
29
|
const request = ctx.switchToRpc().getData();
|
|
15
30
|
if (request.query === undefined || request.query === null)
|
|
16
31
|
return {};
|
|
17
32
|
if (data)
|
|
18
33
|
return request.query[data];
|
|
19
34
|
return request.query;
|
|
20
|
-
}
|
|
21
|
-
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @function RPCQuery
|
|
38
|
+
* @description Decorator to extract the query from the RPC (Remote Procedure Call) request.
|
|
39
|
+
*/
|
|
40
|
+
exports.RPCQuery = (0, common_1.createParamDecorator)(extractQuery);
|
|
41
|
+
/**
|
|
42
|
+
* Extracts the param from the RPC request.
|
|
43
|
+
* @param {string} data - The key to extract from the param.
|
|
44
|
+
* @param {ExecutionContext} ctx - The execution context.
|
|
45
|
+
* @returns {any} The extracted param or the entire param object.
|
|
46
|
+
*/
|
|
47
|
+
function extractParam(data, ctx) {
|
|
22
48
|
const request = ctx.switchToRpc().getData();
|
|
23
49
|
if (request.param === undefined || request.param === null)
|
|
24
50
|
return {};
|
|
25
51
|
if (data)
|
|
26
52
|
return request.param[data];
|
|
27
53
|
return request.param;
|
|
28
|
-
}
|
|
29
|
-
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @function RPCParam
|
|
57
|
+
* @description Decorator to extract the param from the RPC (Remote Procedure Call) request.
|
|
58
|
+
*/
|
|
59
|
+
exports.RPCParam = (0, common_1.createParamDecorator)(extractParam);
|
|
60
|
+
/**
|
|
61
|
+
* Extracts the uploaded file from the RPC request.
|
|
62
|
+
* @param {string} _data - The key to extract (unused).
|
|
63
|
+
* @param {ExecutionContext} ctx - The execution context.
|
|
64
|
+
* @returns {any} The uploaded file from the RPC request.
|
|
65
|
+
*/
|
|
66
|
+
function extractUploadedFile(_data, ctx) {
|
|
30
67
|
const request = ctx.switchToRpc().getData();
|
|
31
68
|
return request.file;
|
|
32
|
-
}
|
|
33
|
-
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @function RPCUploadedFile
|
|
72
|
+
* @description Decorator to extract the uploaded file from the RPC (Remote Procedure Call) request.
|
|
73
|
+
*/
|
|
74
|
+
exports.RPCUploadedFile = (0, common_1.createParamDecorator)(extractUploadedFile);
|
|
75
|
+
/**
|
|
76
|
+
* Extracts the uploaded S3 file from the RPC request.
|
|
77
|
+
* @param {string} _data - The key to extract (unused).
|
|
78
|
+
* @param {ExecutionContext} ctx - The execution context.
|
|
79
|
+
* @returns {any} The uploaded S3 file from the RPC request.
|
|
80
|
+
*/
|
|
81
|
+
function extractUploadedS3File(_data, ctx) {
|
|
34
82
|
const request = ctx.switchToRpc().getData();
|
|
35
83
|
return request.s3File;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
exports.
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @function RPCUploadedS3File
|
|
87
|
+
* @description Decorator to extract the uploaded S3 file from the RPC (Remote Procedure Call) request.
|
|
88
|
+
*/
|
|
89
|
+
exports.RPCUploadedS3File = (0, common_1.createParamDecorator)(extractUploadedS3File);
|
|
90
|
+
/**
|
|
91
|
+
* Extracts the uploaded files from the RPC request.
|
|
92
|
+
* @param {string} _data - The key to extract (unused).
|
|
93
|
+
* @param {ExecutionContext} ctx - The execution context.
|
|
94
|
+
* @returns {any[]} The uploaded files from the RPC request.
|
|
95
|
+
*/
|
|
96
|
+
function extractUploadedFiles(_data, ctx) {
|
|
42
97
|
const request = ctx.switchToRpc().getData();
|
|
43
98
|
return request.files || [];
|
|
44
|
-
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @function RPCUploadedFiles
|
|
102
|
+
* @description Decorator to extract the uploaded files from the RPC (Remote Procedure Call) request.
|
|
103
|
+
*/
|
|
104
|
+
exports.RPCUploadedFiles = (0, common_1.createParamDecorator)(extractUploadedFiles);
|
|
105
|
+
/**
|
|
106
|
+
* Extracts the uploaded S3 files from the RPC request.
|
|
107
|
+
* @param {string} _data - The key to extract (unused).
|
|
108
|
+
* @param {ExecutionContext} ctx - The execution context.
|
|
109
|
+
* @returns {any[]} The uploaded S3 files from the RPC request.
|
|
110
|
+
*/
|
|
111
|
+
function extractS3Files(_data, ctx) {
|
|
112
|
+
const request = ctx.switchToRpc().getData();
|
|
113
|
+
return request.s3Files || [];
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @function RPCUploadedS3Files
|
|
117
|
+
* @description Decorator to extract the uploaded S3 files from the RPC (Remote Procedure Call) request.
|
|
118
|
+
*/
|
|
119
|
+
exports.RPCUploadedS3Files = (0, common_1.createParamDecorator)(extractS3Files);
|
|
45
120
|
//# sourceMappingURL=request.decorators.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.decorators.js","sourceRoot":"","sources":["../../../src/common/decorators/request.decorators.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;
|
|
1
|
+
{"version":3,"file":"request.decorators.js","sourceRoot":"","sources":["../../../src/common/decorators/request.decorators.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AAExE;;GAEG;AACH,SAAS,WAAW,CAAC,IAAY,EAAE,GAAqB;IACtD,MAAM,OAAO,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC;IAC5C,IAAI,OAAO,CAAC,IAAI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,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC;IAC5C,OAAO,OAAO,CAAC,IAAI,CAAC;AACtB,CAAC;AAED;;;GAGG;AACU,QAAA,eAAe,GAAG,IAAA,6BAAoB,EAAC,mBAAmB,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,SAAS,qBAAqB,CAAC,KAAa,EAAE,GAAqB;IACjE,MAAM,OAAO,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC;IAC5C,OAAO,OAAO,CAAC,MAAM,CAAC;AACxB,CAAC;AAED;;;GAGG;AACU,QAAA,iBAAiB,GAAG,IAAA,6BAAoB,EAAC,qBAAqB,CAAC,CAAC;AAE7E;;;;;GAKG;AACH,SAAS,oBAAoB,CAAC,KAAa,EAAE,GAAqB;IAChE,MAAM,OAAO,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC;IAC5C,OAAO,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;AAC7B,CAAC;AAED;;;GAGG;AACU,QAAA,gBAAgB,GAAG,IAAA,6BAAoB,EAAC,oBAAoB,CAAC,CAAC;AAE3E;;;;;GAKG;AACH,SAAS,cAAc,CAAC,KAAa,EAAE,GAAqB;IAC1D,MAAM,OAAO,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC;IAC5C,OAAO,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;AAC/B,CAAC;AAED;;;GAGG;AACU,QAAA,kBAAkB,GAAG,IAAA,6BAAoB,EAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { ValidationOptions } from 'class-validator';
|
|
2
|
+
/**
|
|
3
|
+
* A Custom validation decorator to validate time in the format of HH:mm:ss.
|
|
4
|
+
* @param validationOptions - The validation options from class-validator.
|
|
5
|
+
* @param validationOptions
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
2
8
|
export declare function IsTime(validationOptions?: ValidationOptions): (obj: object, propertyName: string) => void;
|
|
3
9
|
//# sourceMappingURL=time-validation.decorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-validation.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/time-validation.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE,wBAAgB,MAAM,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,SAC7C,MAAM,gBAAgB,MAAM,UAkB1C"}
|
|
1
|
+
{"version":3,"file":"time-validation.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/time-validation.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,SAC7C,MAAM,gBAAgB,MAAM,UAkB1C"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IsTime = void 0;
|
|
4
4
|
const class_validator_1 = require("class-validator");
|
|
5
|
+
/**
|
|
6
|
+
* A Custom validation decorator to validate time in the format of HH:mm:ss.
|
|
7
|
+
* @param validationOptions - The validation options from class-validator.
|
|
8
|
+
* @param validationOptions
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
5
11
|
function IsTime(validationOptions) {
|
|
6
12
|
return (obj, propertyName) => {
|
|
7
13
|
(0, class_validator_1.registerDecorator)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-validation.decorator.js","sourceRoot":"","sources":["../../../src/common/decorators/time-validation.decorator.ts"],"names":[],"mappings":";;;AAAA,qDAAuE;AAEvE,SAAgB,MAAM,CAAC,iBAAqC;IAC1D,OAAO,CAAC,GAAW,EAAE,YAAoB,EAAE,EAAE;QAC3C,IAAA,mCAAiB,EAAC;YAChB,YAAY,EAAE,YAAY;YAC1B,MAAM,EAAE,GAAG,CAAC,WAAW;YACvB,OAAO,EAAE,iBAAiB;YAC1B,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE;gBACT,QAAQ,CAAC,KAAU;oBACjB,IAAI,OAAO,KAAK,KAAK,QAAQ;wBAAE,OAAO,KAAK,CAAC;oBAC5C,MAAM,SAAS,GAAG,mEAAmE,CAAC;oBACtF,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAC/B,CAAC;gBACD,cAAc;oBACZ,OAAO,GAAG,YAAY,8CAA8C,CAAC;gBACvE,CAAC;aACF;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAnBD,wBAmBC"}
|
|
1
|
+
{"version":3,"file":"time-validation.decorator.js","sourceRoot":"","sources":["../../../src/common/decorators/time-validation.decorator.ts"],"names":[],"mappings":";;;AAAA,qDAAuE;AAEvE;;;;;GAKG;AACH,SAAgB,MAAM,CAAC,iBAAqC;IAC1D,OAAO,CAAC,GAAW,EAAE,YAAoB,EAAE,EAAE;QAC3C,IAAA,mCAAiB,EAAC;YAChB,YAAY,EAAE,YAAY;YAC1B,MAAM,EAAE,GAAG,CAAC,WAAW;YACvB,OAAO,EAAE,iBAAiB;YAC1B,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE;gBACT,QAAQ,CAAC,KAAU;oBACjB,IAAI,OAAO,KAAK,KAAK,QAAQ;wBAAE,OAAO,KAAK,CAAC;oBAC5C,MAAM,SAAS,GAAG,mEAAmE,CAAC;oBACtF,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAC/B,CAAC;gBACD,cAAc;oBACZ,OAAO,GAAG,YAAY,8CAA8C,CAAC;gBACvE,CAAC;aACF;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAnBD,wBAmBC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { ArgumentsHost, ExceptionFilter } from '@nestjs/common';
|
|
2
|
+
/**
|
|
3
|
+
* As microservices services are not HTTP-based, the exception filters are different.
|
|
4
|
+
* So as per the nestjs documentation, we need to use the RpcException class to throw exceptions in microservices.
|
|
5
|
+
* @class UnhandledExceptionFilter
|
|
6
|
+
* @description Filter to catch unhandled exceptions and return a proper response.
|
|
7
|
+
* @exports UnhandledExceptionFilter
|
|
8
|
+
*/
|
|
2
9
|
export declare class UnhandledExceptionFilter<T extends Error> implements ExceptionFilter {
|
|
3
10
|
catch(exception: T, host: ArgumentsHost): void;
|
|
4
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unhandled-exception.filter.d.ts","sourceRoot":"","sources":["../../../src/common/filters/unhandled-exception.filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAS,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGvE,qBACa,wBAAwB,CAAC,CAAC,SAAS,KAAK,CAAE,YAAW,eAAe;IAC/E,KAAK,CAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa;CAuBxC"}
|
|
1
|
+
{"version":3,"file":"unhandled-exception.filter.d.ts","sourceRoot":"","sources":["../../../src/common/filters/unhandled-exception.filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAS,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGvE;;;;;;GAMG;AACH,qBACa,wBAAwB,CAAC,CAAC,SAAS,KAAK,CAAE,YAAW,eAAe;IAC/E,KAAK,CAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa;CAuBxC"}
|
|
@@ -9,6 +9,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.UnhandledExceptionFilter = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
+
/**
|
|
13
|
+
* As microservices services are not HTTP-based, the exception filters are different.
|
|
14
|
+
* So as per the nestjs documentation, we need to use the RpcException class to throw exceptions in microservices.
|
|
15
|
+
* @class UnhandledExceptionFilter
|
|
16
|
+
* @description Filter to catch unhandled exceptions and return a proper response.
|
|
17
|
+
* @exports UnhandledExceptionFilter
|
|
18
|
+
*/
|
|
12
19
|
let UnhandledExceptionFilter = class UnhandledExceptionFilter {
|
|
13
20
|
catch(exception, host) {
|
|
14
21
|
console.log(exception);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unhandled-exception.filter.js","sourceRoot":"","sources":["../../../src/common/filters/unhandled-exception.filter.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAuE;AACvE,yDAAqD;
|
|
1
|
+
{"version":3,"file":"unhandled-exception.filter.js","sourceRoot":"","sources":["../../../src/common/filters/unhandled-exception.filter.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAuE;AACvE,yDAAqD;AAErD;;;;;;GAMG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACnC,KAAK,CAAC,SAAY,EAAE,IAAmB;QACrC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACvB,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;QAEvC,IAAI,MAAM,IAAI,QAAQ,EAAE,CAAC;YACvB,MAAM,IAAI,4BAAY,CAAC;gBACrB,UAAU,EAAE,MAAM;gBAClB,QAAQ,EAAE,QAAQ;gBAClB,OAAO,EAAE,SAAS,CAAC,OAAO;aAC3B,CAAC,CAAC;QACL,CAAC;QAED,MAAM,IAAI,4BAAY,CAAC;YACrB,UAAU,EAAE,GAAG;YACf,QAAQ,EAAE;gBACR,UAAU,EAAE,GAAG;gBACf,KAAK,EAAE,uBAAuB;gBAC9B,OAAO,EAAE,SAAS,CAAC,OAAO;aAC3B;YACD,OAAO,EAAE,SAAS,CAAC,OAAO;SAC3B,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAxBY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,cAAK,GAAE;GACK,wBAAwB,CAwBpC"}
|
|
@@ -37,9 +37,9 @@ let RequestInterceptor = class RequestInterceptor {
|
|
|
37
37
|
console.log(JSON.stringify(data.cmd), `Execution started`);
|
|
38
38
|
}
|
|
39
39
|
(0, request_store_1.setRequest)(data);
|
|
40
|
-
const
|
|
40
|
+
const dataSource = await this.sharedService.getTenantRootConnection(data.tenantDetails?.id);
|
|
41
41
|
(0, request_store_1.setTenantDetails)(data.tenantDetails);
|
|
42
|
-
(0, request_store_1.setTenantDataSource)(
|
|
42
|
+
(0, request_store_1.setTenantDataSource)(dataSource);
|
|
43
43
|
(0, request_store_1.setInstitution)(data.institution);
|
|
44
44
|
(0, request_store_1.setUserData)(data.userData);
|
|
45
45
|
(0, request_store_1.setEvaluatorData)(data.evaluatorData);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.interceptor.js","sourceRoot":"","sources":["../../../src/common/interceptors/request.interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,uCAAyC;AACzC,+CAA+C;AAC/C,uCAAiC;AACjC,+BAA2B;AAC3B,yCAA0C;AAC1C,mDAA8D;AAC9D,uDAU6B;AAC7B,uDAAoD;AACpD,uCAAyC;AACzC,2CAKyB;AAIlB,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YACmB,SAAoB,EACpB,aAA4B,EACE,eAAkC;QAFhE,cAAS,GAAT,SAAS,CAAW;QACpB,kBAAa,GAAb,aAAa,CAAe;QACE,oBAAe,GAAf,eAAe,CAAmB;IAChF,CAAC;IAEJ,KAAK,CAAC,SAAS,CAAC,OAAyB,EAAE,IAAsB;QAC/D,MAAM,IAAI,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,OAAO,EAAc,CAAC;QACzD,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QAE7B,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,KAAK,aAAa,EAAE,CAAC;YACpD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAC;QAC7D,CAAC;QAED,IAAA,0BAAU,EAAC,IAAI,CAAC,CAAC;QACjB,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"request.interceptor.js","sourceRoot":"","sources":["../../../src/common/interceptors/request.interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,uCAAyC;AACzC,+CAA+C;AAC/C,uCAAiC;AACjC,+BAA2B;AAC3B,yCAA0C;AAC1C,mDAA8D;AAC9D,uDAU6B;AAC7B,uDAAoD;AACpD,uCAAyC;AACzC,2CAKyB;AAIlB,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YACmB,SAAoB,EACpB,aAA4B,EACE,eAAkC;QAFhE,cAAS,GAAT,SAAS,CAAW;QACpB,kBAAa,GAAb,aAAa,CAAe;QACE,oBAAe,GAAf,eAAe,CAAmB;IAChF,CAAC;IAEJ,KAAK,CAAC,SAAS,CAAC,OAAyB,EAAE,IAAsB;QAC/D,MAAM,IAAI,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,OAAO,EAAc,CAAC;QACzD,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QAE7B,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,KAAK,aAAa,EAAE,CAAC;YACpD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAC;QAC7D,CAAC;QAED,IAAA,0BAAU,EAAC,IAAI,CAAC,CAAC;QACjB,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,CAA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EAAE,CAAC;YAC/B,MAAM,IAAI,2BAAkB,CAAC,uBAAuB,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;CACF,CAAA;AA/IY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,sBAAW,EAAC,mBAAU,CAAC,IAAI,CAAC,CAAA;qCAFD,gBAAS;QACL,6BAAa;QACmB,gBAAK;GAJ5D,kBAAkB,CA+I9B"}
|
package/dist/domain/index.d.ts
CHANGED
|
@@ -5,13 +5,11 @@ export * from './modules/shared-domain.module';
|
|
|
5
5
|
export * from './repositories/data-import.repository';
|
|
6
6
|
export * from './repositories/global-user.repository';
|
|
7
7
|
export * from './repositories/media-record.repository';
|
|
8
|
+
export * from './repositories/oauth-client.repository';
|
|
8
9
|
export * from './repositories/tenant.repository';
|
|
9
|
-
export * from './schemas/data-import.schema';
|
|
10
|
-
export * from './schemas/media-record.schema';
|
|
11
10
|
export * from './services/shared-domain.service';
|
|
12
11
|
export * from './types/dropdown.types';
|
|
13
|
-
export * from './schemas
|
|
14
|
-
export * from './repositories/oauth-client.repository';
|
|
12
|
+
export * from './schemas';
|
|
15
13
|
export * from './other-schemas';
|
|
16
14
|
export * from './entities/profile-permission.entity';
|
|
17
15
|
export * from './entities/profile.entity';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AAGvC,cAAc,WAAW,CAAC;AAG1B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC"}
|
package/dist/domain/index.js
CHANGED
|
@@ -21,13 +21,12 @@ __exportStar(require("./modules/shared-domain.module"), exports);
|
|
|
21
21
|
__exportStar(require("./repositories/data-import.repository"), exports);
|
|
22
22
|
__exportStar(require("./repositories/global-user.repository"), exports);
|
|
23
23
|
__exportStar(require("./repositories/media-record.repository"), exports);
|
|
24
|
+
__exportStar(require("./repositories/oauth-client.repository"), exports);
|
|
24
25
|
__exportStar(require("./repositories/tenant.repository"), exports);
|
|
25
|
-
__exportStar(require("./schemas/data-import.schema"), exports);
|
|
26
|
-
__exportStar(require("./schemas/media-record.schema"), exports);
|
|
27
26
|
__exportStar(require("./services/shared-domain.service"), exports);
|
|
28
27
|
__exportStar(require("./types/dropdown.types"), exports);
|
|
29
|
-
|
|
30
|
-
__exportStar(require("./
|
|
28
|
+
// schemas
|
|
29
|
+
__exportStar(require("./schemas"), exports);
|
|
31
30
|
// other schemas
|
|
32
31
|
__exportStar(require("./other-schemas"), exports);
|
|
33
32
|
// To be removed
|
package/dist/domain/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iEAA+C;AAC/C,iEAA+C;AAC/C,iEAA+C;AAC/C,wEAAsD;AACtD,wEAAsD;AACtD,yEAAuD;AACvD,mEAAiD;AACjD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iEAA+C;AAC/C,iEAA+C;AAC/C,iEAA+C;AAC/C,wEAAsD;AACtD,wEAAsD;AACtD,yEAAuD;AACvD,yEAAuD;AACvD,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AAEvC,UAAU;AACV,4CAA0B;AAE1B,gBAAgB;AAChB,kDAAgC;AAEhC,gBAAgB;AAChB,uEAAqD;AACrD,4DAA0C;AAC1C,4DAA0C;AAC1C,yDAAuC;AACvC,gEAA8C;AAC9C,0DAAwC"}
|