@servicelabsco/nestjs-utility-services 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.controller.d.ts +1 -74
- package/dist/app.controller.js +1 -357
- package/dist/app.controller.js.map +1 -1
- package/dist/common/es6.classes.js +2 -0
- package/dist/common/es6.classes.js.map +1 -1
- package/dist/common/libraries/auth.js +1 -1
- package/dist/common/libraries/auth.js.map +1 -1
- package/dist/common/libraries/custom.logger.d.ts +7 -0
- package/dist/common/libraries/custom.logger.js +33 -0
- package/dist/common/libraries/custom.logger.js.map +1 -0
- package/dist/common/libraries/hash.d.ts +1 -1
- package/dist/common/libraries/index.d.ts +1 -0
- package/dist/common/libraries/index.js +1 -0
- package/dist/common/libraries/index.js.map +1 -1
- package/dist/health.check.controller.d.ts +4 -1
- package/dist/health.check.controller.js +72 -2
- package/dist/health.check.controller.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/migrations/1770625065996-AddIdentifierSysDocumentsTable.ts.d.ts +5 -0
- package/dist/migrations/1770625065996-AddIdentifierSysDocumentsTable.ts.js +15 -0
- package/dist/migrations/1770625065996-AddIdentifierSysDocumentsTable.ts.js.map +1 -0
- package/dist/platformUtility/dtos/index.d.ts +1 -0
- package/dist/platformUtility/dtos/index.js +1 -0
- package/dist/platformUtility/dtos/index.js.map +1 -1
- package/dist/platformUtility/dtos/lambda.zip.dto.d.ts +4 -0
- package/dist/platformUtility/dtos/lambda.zip.dto.js +27 -0
- package/dist/platformUtility/dtos/lambda.zip.dto.js.map +1 -0
- package/dist/platformUtility/es6.classes.d.ts +4 -2
- package/dist/platformUtility/es6.classes.js +4 -0
- package/dist/platformUtility/es6.classes.js.map +1 -1
- package/dist/platformUtility/services/es6.service.d.ts +3 -1
- package/dist/platformUtility/services/es6.service.js +6 -2
- package/dist/platformUtility/services/es6.service.js.map +1 -1
- package/dist/platformUtility/services/index.d.ts +1 -0
- package/dist/platformUtility/services/index.js +1 -0
- package/dist/platformUtility/services/index.js.map +1 -1
- package/dist/platformUtility/services/mail.service.js +5 -0
- package/dist/platformUtility/services/mail.service.js.map +1 -1
- package/dist/platformUtility/services/zip.service.d.ts +16 -0
- package/dist/platformUtility/services/zip.service.js +107 -0
- package/dist/platformUtility/services/zip.service.js.map +1 -0
- package/dist/system/entities/document.entity.d.ts +1 -0
- package/dist/system/entities/document.entity.js +4 -0
- package/dist/system/entities/document.entity.js.map +1 -1
- package/dist/system/services/document.service.d.ts +3 -2
- package/dist/system/services/document.service.js +6 -3
- package/dist/system/services/document.service.js.map +1 -1
- package/dist/system/services/scheduled.event.service.js +4 -3
- package/dist/system/services/scheduled.event.service.js.map +1 -1
- package/package.json +10 -9
|
@@ -19,14 +19,17 @@ const typeorm_1 = require("@nestjs/typeorm");
|
|
|
19
19
|
const typeorm_2 = require("typeorm");
|
|
20
20
|
const fs_1 = require("fs");
|
|
21
21
|
const path_1 = require("path");
|
|
22
|
+
const cron_parser_1 = require("cron-parser");
|
|
23
|
+
const cache_service_1 = require("./platformUtility/services/cache.service");
|
|
22
24
|
const redis_service_1 = require("./platformUtility/services/redis.service");
|
|
23
25
|
let HealthCheckController = class HealthCheckController {
|
|
24
|
-
constructor(healthCheckService, typeOrmHealthIndicator, masterConnection, readConnection, redisService) {
|
|
26
|
+
constructor(healthCheckService, typeOrmHealthIndicator, masterConnection, readConnection, redisService, cacheService) {
|
|
25
27
|
this.healthCheckService = healthCheckService;
|
|
26
28
|
this.typeOrmHealthIndicator = typeOrmHealthIndicator;
|
|
27
29
|
this.masterConnection = masterConnection;
|
|
28
30
|
this.readConnection = readConnection;
|
|
29
31
|
this.redisService = redisService;
|
|
32
|
+
this.cacheService = cacheService;
|
|
30
33
|
}
|
|
31
34
|
check() {
|
|
32
35
|
return this.healthCheckService.check([
|
|
@@ -273,6 +276,66 @@ let HealthCheckController = class HealthCheckController {
|
|
|
273
276
|
async quickCheck() {
|
|
274
277
|
return this.healthCheckService.check([() => this.checkPostgresMaster(), () => this.checkRedis(), () => this.checkFileSystem()]);
|
|
275
278
|
}
|
|
279
|
+
async runtimeCheck() {
|
|
280
|
+
const result = {
|
|
281
|
+
cron: null,
|
|
282
|
+
cache: null,
|
|
283
|
+
timestamp: new Date().toISOString(),
|
|
284
|
+
};
|
|
285
|
+
try {
|
|
286
|
+
const startDate = new Date('2025-01-15T10:00:00Z');
|
|
287
|
+
const endDate = new Date('2025-01-15T12:00:00Z');
|
|
288
|
+
const interval = cron_parser_1.CronExpressionParser.parse('0 * * * *', {
|
|
289
|
+
currentDate: startDate,
|
|
290
|
+
endDate,
|
|
291
|
+
tz: 'UTC',
|
|
292
|
+
});
|
|
293
|
+
const next1 = interval.next().toDate();
|
|
294
|
+
const next2 = interval.next().toDate();
|
|
295
|
+
const expected1 = new Date('2025-01-15T11:00:00Z').getTime();
|
|
296
|
+
const expected2 = new Date('2025-01-15T12:00:00Z').getTime();
|
|
297
|
+
result.cron = {
|
|
298
|
+
status: next1.getTime() === expected1 && next2.getTime() === expected2 ? 'up' : 'down',
|
|
299
|
+
message: next1.getTime() === expected1 && next2.getTime() === expected2
|
|
300
|
+
? 'cron-parser v5 working correctly'
|
|
301
|
+
: 'cron-parser returned unexpected dates',
|
|
302
|
+
next1: next1.toISOString(),
|
|
303
|
+
next2: next2.toISOString(),
|
|
304
|
+
hasNext: interval.hasNext(),
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
catch (error) {
|
|
308
|
+
result.cron = {
|
|
309
|
+
status: 'down',
|
|
310
|
+
message: error.message,
|
|
311
|
+
error: error.stack,
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
try {
|
|
315
|
+
const testKey = `__runtime_check_${Date.now()}`;
|
|
316
|
+
const testValue = { check: true, timestamp: Date.now() };
|
|
317
|
+
await this.cacheService.set(testKey, testValue);
|
|
318
|
+
const retrieved = await this.cacheService.get(testKey);
|
|
319
|
+
await this.cacheService.delete(testKey);
|
|
320
|
+
const match = JSON.stringify(testValue) === JSON.stringify(retrieved);
|
|
321
|
+
result.cache = {
|
|
322
|
+
status: match ? 'up' : 'down',
|
|
323
|
+
message: match ? 'Cache set/get/delete working correctly' : 'Cache integrity check failed',
|
|
324
|
+
set: 'ok',
|
|
325
|
+
get: retrieved ? 'ok' : 'failed',
|
|
326
|
+
delete: 'ok',
|
|
327
|
+
integrity: match ? 'ok' : 'failed',
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
catch (error) {
|
|
331
|
+
result.cache = {
|
|
332
|
+
status: 'down',
|
|
333
|
+
message: error.message,
|
|
334
|
+
error: error.stack,
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
return result;
|
|
338
|
+
}
|
|
276
339
|
};
|
|
277
340
|
exports.HealthCheckController = HealthCheckController;
|
|
278
341
|
__decorate([
|
|
@@ -296,6 +359,12 @@ __decorate([
|
|
|
296
359
|
__metadata("design:paramtypes", []),
|
|
297
360
|
__metadata("design:returntype", Promise)
|
|
298
361
|
], HealthCheckController.prototype, "quickCheck", null);
|
|
362
|
+
__decorate([
|
|
363
|
+
(0, common_1.Get)('runtime-check'),
|
|
364
|
+
__metadata("design:type", Function),
|
|
365
|
+
__metadata("design:paramtypes", []),
|
|
366
|
+
__metadata("design:returntype", Promise)
|
|
367
|
+
], HealthCheckController.prototype, "runtimeCheck", null);
|
|
299
368
|
exports.HealthCheckController = HealthCheckController = __decorate([
|
|
300
369
|
(0, common_1.Controller)('health'),
|
|
301
370
|
__param(2, (0, typeorm_1.InjectDataSource)('default')),
|
|
@@ -304,6 +373,7 @@ exports.HealthCheckController = HealthCheckController = __decorate([
|
|
|
304
373
|
terminus_1.TypeOrmHealthIndicator,
|
|
305
374
|
typeorm_2.DataSource,
|
|
306
375
|
typeorm_2.DataSource,
|
|
307
|
-
redis_service_1.RedisService
|
|
376
|
+
redis_service_1.RedisService,
|
|
377
|
+
cache_service_1.CacheService])
|
|
308
378
|
], HealthCheckController);
|
|
309
379
|
//# sourceMappingURL=health.check.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.check.controller.js","sourceRoot":"","sources":["../src/health.check.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiD;AACjD,+CAAkH;AAClH,6CAAmD;AACnD,qCAAqC;AACrC,2BAAoF;AACpF,+BAA4B;AAC5B,4EAAwE;AAYjE,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;
|
|
1
|
+
{"version":3,"file":"health.check.controller.js","sourceRoot":"","sources":["../src/health.check.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiD;AACjD,+CAAkH;AAClH,6CAAmD;AACnD,qCAAqC;AACrC,2BAAoF;AACpF,+BAA4B;AAC5B,6CAAmD;AACnD,4EAAwE;AACxE,4EAAwE;AAYjE,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAU9B,YACqB,kBAAsC,EACtC,sBAA8C,EAE9C,gBAA4B,EAE5B,cAA0B,EAC1B,YAA0B,EAC1B,YAA0B;QAP1B,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAE9C,qBAAgB,GAAhB,gBAAgB,CAAY;QAE5B,mBAAc,GAAd,cAAc,CAAY;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;IAC5C,CAAC;IASJ,KAAK;QACD,OAAO,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;YAEjC,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAEhC,GAAG,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAE9B,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE;YAEvB,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE;SAC/B,CAAC,CAAC;IACP,CAAC;IAMO,KAAK,CAAC,mBAAmB;QAC7B,IAAI,CAAC;YACD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,QAAQ,CAAC;IAcZ,WAAA,IAAA,0BAAgB,EAAC,SAAS,CAAC,CAAA;IAE3B,WAAA,IAAA,0BAAgB,EAAC,MAAM,CAAC,CAAA;qCAJY,6BAAkB;QACd,iCAAsB;QAE5B,oBAAU;QAEZ,oBAAU;QACZ,4BAAY;QACZ,4BAAY;GAlBtC,qBAAqB,CA0ZjC"}
|
package/dist/main.js
CHANGED
|
@@ -5,7 +5,7 @@ const core_1 = require("@nestjs/core");
|
|
|
5
5
|
const Sentry = require("@sentry/node");
|
|
6
6
|
const compression = require("compression");
|
|
7
7
|
const express = require("express");
|
|
8
|
-
const httpContext = require("express-http-
|
|
8
|
+
const httpContext = require("express-http-context2");
|
|
9
9
|
const express_rate_limit_1 = require("express-rate-limit");
|
|
10
10
|
const helmet_1 = require("helmet");
|
|
11
11
|
require("source-map-support/register");
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,2CAAgD;AAChD,uCAA2C;AAE3C,uCAAuC;AACvC,2CAA2C;AAC3C,mCAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,2CAAgD;AAChD,uCAA2C;AAE3C,uCAAuC;AACvC,2CAA2C;AAC3C,mCAAmC;AACnC,qDAAqD;AACrD,2DAA2C;AAC3C,mCAA4B;AAC5B,uCAAqC;AACrC,6CAAyC;AACzC,mDAAmD;AACnD,iFAA6E;AAC7E,kEAAmE;AACnE,uDAAwD;AAGxD,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,EAAE,CAAC;AAGxC,KAAK,CAAC,eAAe,GAAG,GAAG,CAAC;AAE5B,KAAK,UAAU,SAAS;IACpB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAyB,sBAAS,CAAC,CAAC;IAGxE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACxB,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAEhC,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAC;IAClB,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IAC3B,GAAG,CAAC,GAAG,CAAC,IAAA,4BAAS,EAAC,iBAAiB,CAAC,CAAC,CAAC;IACtC,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;IAEvB,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;IAE1B,MAAM,sBAAsB,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IACnE,IAAI,sBAAsB;QAAE,GAAG,CAAC,mBAAmB,EAAE,CAAC;IAGtD,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;IACzC,IAAI,SAAS,EAAE,CAAC;QACZ,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,GAAG,CAAC,qBAAqB,CAAC,IAAI,sCAAiB,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,GAAG,CAAC,cAAc,CAAC,IAAI,uBAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAG7E,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddIdentifierSysDocumentsTable1770625065996 = void 0;
|
|
4
|
+
const migration_utility_1 = require("../common/libraries/migration.utility");
|
|
5
|
+
class AddIdentifierSysDocumentsTable1770625065996 extends migration_utility_1.MigrationUtility {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('sys_documents');
|
|
8
|
+
this.process();
|
|
9
|
+
}
|
|
10
|
+
process() {
|
|
11
|
+
this.string('identifier');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.AddIdentifierSysDocumentsTable1770625065996 = AddIdentifierSysDocumentsTable1770625065996;
|
|
15
|
+
//# sourceMappingURL=1770625065996-AddIdentifierSysDocumentsTable.ts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1770625065996-AddIdentifierSysDocumentsTable.ts.js","sourceRoot":"","sources":["../../src/migrations/1770625065996-AddIdentifierSysDocumentsTable.ts.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AAEzE,MAAa,2CAA4C,SAAQ,oCAAgB;IAC7E;QACI,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAC9B,CAAC;CACJ;AATD,kGASC"}
|
|
@@ -4,6 +4,7 @@ export * from './failed.bull.job.attributes.dto';
|
|
|
4
4
|
export * from './fcm.response.dto';
|
|
5
5
|
export * from './job.payload.dto';
|
|
6
6
|
export * from './kaleyra.callback.payload.dto';
|
|
7
|
+
export * from './lambda.zip.dto';
|
|
7
8
|
export * from './mail.options.dto';
|
|
8
9
|
export * from './pending.bull.job.attributes.dto';
|
|
9
10
|
export * from './push.notification.response.dto';
|
|
@@ -20,6 +20,7 @@ __exportStar(require("./failed.bull.job.attributes.dto"), exports);
|
|
|
20
20
|
__exportStar(require("./fcm.response.dto"), exports);
|
|
21
21
|
__exportStar(require("./job.payload.dto"), exports);
|
|
22
22
|
__exportStar(require("./kaleyra.callback.payload.dto"), exports);
|
|
23
|
+
__exportStar(require("./lambda.zip.dto"), exports);
|
|
23
24
|
__exportStar(require("./mail.options.dto"), exports);
|
|
24
25
|
__exportStar(require("./pending.bull.job.attributes.dto"), exports);
|
|
25
26
|
__exportStar(require("./push.notification.response.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AAAA,0DAAwC;AAAA,mEAAiD;AAAA,qDAAmC;AAAA,oDAAkC;AAAA,iEAA+C;AAAA,qDAAmC;AAAA,oEAAkD;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,sDAAoC;AAAA,4DAA0C;AAAA,8DAA4C;AAAA,sEAAoD;AAAA,wDAAsC;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,sDAAoC;AAAA,sDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AAAA,0DAAwC;AAAA,mEAAiD;AAAA,qDAAmC;AAAA,oDAAkC;AAAA,iEAA+C;AAAA,mDAAiC;AAAA,qDAAmC;AAAA,oEAAkD;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,sDAAoC;AAAA,4DAA0C;AAAA,8DAA4C;AAAA,sEAAoD;AAAA,wDAAsC;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,sDAAoC;AAAA,sDAAmC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.LambdaZipDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class LambdaZipDto {
|
|
15
|
+
}
|
|
16
|
+
exports.LambdaZipDto = LambdaZipDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsUrl)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], LambdaZipDto.prototype, "url", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], LambdaZipDto.prototype, "fileName", void 0);
|
|
27
|
+
//# sourceMappingURL=lambda.zip.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lambda.zip.dto.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/lambda.zip.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,MAAa,YAAY;CAQxB;AARD,oCAQC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;yCACI;AAIZ;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACK"}
|
|
@@ -6,6 +6,7 @@ import { CommonAttributesDto } from './dtos/common.attributes.dto';
|
|
|
6
6
|
import { FcmResponseDto } from './dtos/fcm.response.dto';
|
|
7
7
|
import { JobPayloadDto } from './dtos/job.payload.dto';
|
|
8
8
|
import { KaleyraCallbackPayloadDto } from './dtos/kaleyra.callback.payload.dto';
|
|
9
|
+
import { LambdaZipDto } from './dtos/lambda.zip.dto';
|
|
9
10
|
import { MailOptionsDto } from './dtos/mail.options.dto';
|
|
10
11
|
import { PushNotificationResponseDto } from './dtos/push.notification.response.dto';
|
|
11
12
|
import { PushNotificationTemplateDto } from './dtos/push.notification.template.dto';
|
|
@@ -64,17 +65,18 @@ import { SmsService } from './services/sms.service';
|
|
|
64
65
|
import { SqlService } from './services/sql.service';
|
|
65
66
|
import { SqsService } from './services/sqs.service';
|
|
66
67
|
import { StartupService } from './services/startup.service';
|
|
68
|
+
import { ZipService } from './services/zip.service';
|
|
67
69
|
import { BaseSubscriber } from './subscribers/base.subscriber';
|
|
68
70
|
import { RemoteRequestLogSubscriber } from './subscribers/remote.request.log.subscriber';
|
|
69
71
|
declare const es6Classes: {
|
|
70
72
|
consumers: (typeof JobConsumer)[];
|
|
71
73
|
controllers: (typeof BullJobController | typeof QueueController)[];
|
|
72
|
-
dtos: (typeof SourceColumnDto | typeof AwsConfigDto | typeof JobPayloadDto | typeof QueueOptionsDto | typeof CommonAttributesDto | typeof MailOptionsDto | typeof SmtpConfigDto | typeof RemoteRawResponseDto | typeof FcmResponseDto | typeof KaleyraCallbackPayloadDto | typeof PushNotificationResponseDto | typeof PushNotificationTemplateDto | typeof SetSmsPayloadDto | typeof SmsPayloadDto | typeof StringSearchDto)[];
|
|
74
|
+
dtos: (typeof SourceColumnDto | typeof AwsConfigDto | typeof JobPayloadDto | typeof QueueOptionsDto | typeof CommonAttributesDto | typeof MailOptionsDto | typeof SmtpConfigDto | typeof RemoteRawResponseDto | typeof FcmResponseDto | typeof KaleyraCallbackPayloadDto | typeof LambdaZipDto | typeof PushNotificationResponseDto | typeof PushNotificationTemplateDto | typeof SetSmsPayloadDto | typeof SmsPayloadDto | typeof StringSearchDto)[];
|
|
73
75
|
entities: (typeof FailedBullJobEntity | typeof PendingBullJobEntity | typeof RemoteRequestLogEntity)[];
|
|
74
76
|
jobs: (typeof TestJob | typeof LoadFailedBullJob | typeof ProcessSesDeliveryWebhookJob | typeof ProcessTrackingWebhookJob | typeof RecordWatcherJob | typeof ReloadPendingBullJob | typeof RemoteRequestLogJob)[];
|
|
75
77
|
libraries: (typeof ProcessAuditLogData | typeof ProcessCommonMail | typeof ProcessSesMail | typeof ProcessSesRawMail | typeof ProcessSmtpMail | typeof CommonSqsPolling | typeof FileSystemUtility | typeof CreateEntityConstantsFile | typeof CreateEs6ClassesFile | typeof CreateEs6JobsFile | typeof CreateEs6ServiceFile | typeof CreateIndexFile | typeof ProcessKaleyraCallbackResponse | typeof ProcessKaleyraSms | typeof SetSmsMessage)[];
|
|
76
78
|
middlewares: (typeof MaintenanceMiddleware | typeof TrimPipe)[];
|
|
77
|
-
services: (typeof RedisService | typeof CacheService | typeof AwsConfigService | typeof SqlService | typeof LocalPropertyService | typeof SqsService | typeof QueueService | typeof DynamoService | typeof AuditService | typeof MailService | typeof MaintenanceService | typeof RemoteRequestService | typeof SesMailNotificationService | typeof AwsSecretService | typeof Es6JobsService | typeof Es6Service | typeof FcmNotificationService | typeof S3Service | typeof ShutdownService | typeof SmsService | typeof StartupService)[];
|
|
79
|
+
services: (typeof RedisService | typeof CacheService | typeof AwsConfigService | typeof SqlService | typeof LocalPropertyService | typeof SqsService | typeof QueueService | typeof DynamoService | typeof AuditService | typeof MailService | typeof MaintenanceService | typeof RemoteRequestService | typeof SesMailNotificationService | typeof AwsSecretService | typeof Es6JobsService | typeof ZipService | typeof Es6Service | typeof FcmNotificationService | typeof S3Service | typeof ShutdownService | typeof SmsService | typeof StartupService)[];
|
|
78
80
|
subscribers: (typeof BaseSubscriber | typeof RemoteRequestLogSubscriber)[];
|
|
79
81
|
};
|
|
80
82
|
export default es6Classes;
|
|
@@ -9,6 +9,7 @@ const failed_bull_job_attributes_dto_1 = require("./dtos/failed.bull.job.attribu
|
|
|
9
9
|
const fcm_response_dto_1 = require("./dtos/fcm.response.dto");
|
|
10
10
|
const job_payload_dto_1 = require("./dtos/job.payload.dto");
|
|
11
11
|
const kaleyra_callback_payload_dto_1 = require("./dtos/kaleyra.callback.payload.dto");
|
|
12
|
+
const lambda_zip_dto_1 = require("./dtos/lambda.zip.dto");
|
|
12
13
|
const mail_options_dto_1 = require("./dtos/mail.options.dto");
|
|
13
14
|
const pending_bull_job_attributes_dto_1 = require("./dtos/pending.bull.job.attributes.dto");
|
|
14
15
|
const push_notification_response_dto_1 = require("./dtos/push.notification.response.dto");
|
|
@@ -72,6 +73,7 @@ const sms_service_1 = require("./services/sms.service");
|
|
|
72
73
|
const sql_service_1 = require("./services/sql.service");
|
|
73
74
|
const sqs_service_1 = require("./services/sqs.service");
|
|
74
75
|
const startup_service_1 = require("./services/startup.service");
|
|
76
|
+
const zip_service_1 = require("./services/zip.service");
|
|
75
77
|
const base_subscriber_1 = require("./subscribers/base.subscriber");
|
|
76
78
|
const remote_request_log_subscriber_1 = require("./subscribers/remote.request.log.subscriber");
|
|
77
79
|
const es6Classes = {
|
|
@@ -84,6 +86,7 @@ const es6Classes = {
|
|
|
84
86
|
fcm_response_dto_1.FcmResponseDto,
|
|
85
87
|
job_payload_dto_1.JobPayloadDto,
|
|
86
88
|
kaleyra_callback_payload_dto_1.KaleyraCallbackPayloadDto,
|
|
89
|
+
lambda_zip_dto_1.LambdaZipDto,
|
|
87
90
|
mail_options_dto_1.MailOptionsDto,
|
|
88
91
|
pending_bull_job_attributes_dto_1.PendingBullJobAttributesDto,
|
|
89
92
|
push_notification_response_dto_1.PushNotificationResponseDto,
|
|
@@ -150,6 +153,7 @@ const es6Classes = {
|
|
|
150
153
|
sql_service_1.SqlService,
|
|
151
154
|
sqs_service_1.SqsService,
|
|
152
155
|
startup_service_1.StartupService,
|
|
156
|
+
zip_service_1.ZipService,
|
|
153
157
|
],
|
|
154
158
|
subscribers: [base_subscriber_1.BaseSubscriber, remote_request_log_subscriber_1.RemoteRequestLogSubscriber],
|
|
155
159
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":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AE,kCAAe,CAAC;IACjD,IAAI,EAAE;QACF,6BAAY;QACZ,2CAAmB;QACnB,2DAA0B;QAC1B,iCAAc;QACd,+BAAa;QACb,wDAAyB;QACzB,iCAAc;QACd,6DAA2B;QAC3B,4DAA2B;QAC3B,4DAA2B;QAC3B,mCAAe;QACf,8CAAoB;QACpB,kDAAsB;QACtB,iEAA6B;QAC7B,sCAAgB;QAChB,+BAAa;QACb,+BAAa;QACb,mCAAe;QACf,mCAAe;KAClB;IACD,QAAQ,EAAE,CAAC,4CAAmB,EAAE,8CAAoB,EAAE,kDAAsB,CAAC;IAC7E,IAAI,EAAE;QACF,wCAAiB;QACjB,+DAA4B;QAC5B,wDAAyB;QACzB,qCAAgB;QAChB,8CAAoB;QACpB,4CAAmB;QACnB,kBAAO;KACV;IACD,SAAS,EAAE;QACP,qCAAgB;QAChB,wDAAyB;QACzB,8CAAoB;QACpB,wCAAiB;QACjB,8CAAoB;QACpB,mCAAe;QACf,uCAAiB;QACjB,4CAAmB;QACnB,uCAAiB;QACjB,8CAAoB;QACpB,gDAAqB;QACrB,kEAA8B;QAC9B,uCAAiB;QACjB,iCAAc;QACd,wCAAiB;QACjB,mCAAe;QACf,+BAAa;KAChB;IACD,WAAW,EAAE,CAAC,8CAAqB,EAAE,oBAAQ,CAAC;IAC9C,QAAQ,EAAE;QACN,4BAAY;QACZ,qCAAgB;QAChB,qCAAgB;QAChB,4BAAY;QACZ,8BAAa;QACb,iCAAc;QACd,wBAAU;QACV,iDAAsB;QACtB,6CAAoB;QACpB,0BAAW;QACX,wCAAkB;QAClB,4BAAY;QACZ,4BAAY;QACZ,6CAAoB;QACpB,sBAAS;QACT,0DAA0B;QAC1B,kCAAe;QACf,wBAAU;QACV,wBAAU;QACV,wBAAU;QACV,gCAAc;
|
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/platformUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA,2DAAuD;AACvD,2EAAsE;AACtE,qEAAiE;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CAAmB;QACnB,2DAA0B;QAC1B,iCAAc;QACd,+BAAa;QACb,wDAAyB;QACzB,6BAAY;QACZ,iCAAc;QACd,6DAA2B;QAC3B,4DAA2B;QAC3B,4DAA2B;QAC3B,mCAAe;QACf,8CAAoB;QACpB,kDAAsB;QACtB,iEAA6B;QAC7B,sCAAgB;QAChB,+BAAa;QACb,+BAAa;QACb,mCAAe;QACf,mCAAe;KAClB;IACD,QAAQ,EAAE,CAAC,4CAAmB,EAAE,8CAAoB,EAAE,kDAAsB,CAAC;IAC7E,IAAI,EAAE;QACF,wCAAiB;QACjB,+DAA4B;QAC5B,wDAAyB;QACzB,qCAAgB;QAChB,8CAAoB;QACpB,4CAAmB;QACnB,kBAAO;KACV;IACD,SAAS,EAAE;QACP,qCAAgB;QAChB,wDAAyB;QACzB,8CAAoB;QACpB,wCAAiB;QACjB,8CAAoB;QACpB,mCAAe;QACf,uCAAiB;QACjB,4CAAmB;QACnB,uCAAiB;QACjB,8CAAoB;QACpB,gDAAqB;QACrB,kEAA8B;QAC9B,uCAAiB;QACjB,iCAAc;QACd,wCAAiB;QACjB,mCAAe;QACf,+BAAa;KAChB;IACD,WAAW,EAAE,CAAC,8CAAqB,EAAE,oBAAQ,CAAC;IAC9C,QAAQ,EAAE;QACN,4BAAY;QACZ,qCAAgB;QAChB,qCAAgB;QAChB,4BAAY;QACZ,8BAAa;QACb,iCAAc;QACd,wBAAU;QACV,iDAAsB;QACtB,6CAAoB;QACpB,0BAAW;QACX,wCAAkB;QAClB,4BAAY;QACZ,4BAAY;QACZ,6CAAoB;QACpB,sBAAS;QACT,0DAA0B;QAC1B,kCAAe;QACf,wBAAU;QACV,wBAAU;QACV,wBAAU;QACV,gCAAc;QACd,wBAAU;KACb;IACD,WAAW,EAAE,CAAC,gCAAc,EAAE,0DAA0B,CAAC;CAC5D,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -3,14 +3,16 @@ import { QueueService } from './queue.service';
|
|
|
3
3
|
import { RedisService } from './redis.service';
|
|
4
4
|
import { RemoteRequestService } from './remote.request.service';
|
|
5
5
|
import { SqlService } from './sql.service';
|
|
6
|
+
import { ZipService } from './zip.service';
|
|
6
7
|
export declare class Es6Service {
|
|
7
8
|
private readonly cacheService;
|
|
8
9
|
private readonly queueService;
|
|
9
10
|
private readonly redisService;
|
|
10
11
|
private readonly remoteRequestService;
|
|
11
12
|
private readonly sqlService;
|
|
13
|
+
private readonly zipService;
|
|
12
14
|
private services;
|
|
13
|
-
constructor(cacheService: CacheService, queueService: QueueService, redisService: RedisService, remoteRequestService: RemoteRequestService, sqlService: SqlService);
|
|
15
|
+
constructor(cacheService: CacheService, queueService: QueueService, redisService: RedisService, remoteRequestService: RemoteRequestService, sqlService: SqlService, zipService: ZipService);
|
|
14
16
|
alignServices(): void;
|
|
15
17
|
setServices(): void;
|
|
16
18
|
}
|
|
@@ -16,14 +16,16 @@ const queue_service_1 = require("./queue.service");
|
|
|
16
16
|
const redis_service_1 = require("./redis.service");
|
|
17
17
|
const remote_request_service_1 = require("./remote.request.service");
|
|
18
18
|
const sql_service_1 = require("./sql.service");
|
|
19
|
+
const zip_service_1 = require("./zip.service");
|
|
19
20
|
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
|
20
21
|
let Es6Service = class Es6Service {
|
|
21
|
-
constructor(cacheService, queueService, redisService, remoteRequestService, sqlService) {
|
|
22
|
+
constructor(cacheService, queueService, redisService, remoteRequestService, sqlService, zipService) {
|
|
22
23
|
this.cacheService = cacheService;
|
|
23
24
|
this.queueService = queueService;
|
|
24
25
|
this.redisService = redisService;
|
|
25
26
|
this.remoteRequestService = remoteRequestService;
|
|
26
27
|
this.sqlService = sqlService;
|
|
28
|
+
this.zipService = zipService;
|
|
27
29
|
this.services = {};
|
|
28
30
|
this.alignServices();
|
|
29
31
|
this.setServices();
|
|
@@ -35,6 +37,7 @@ let Es6Service = class Es6Service {
|
|
|
35
37
|
'7bede4c9809b1883fbb375a6cc3d4194': this.redisService,
|
|
36
38
|
cfdc7be1c75db5df82c2d76c97e8cd74: this.remoteRequestService,
|
|
37
39
|
'4f5f72e711d6993e0c7cf4188fae144f': this.sqlService,
|
|
40
|
+
f8a4034d6c7d9a1ddb0cff93972317bd: this.zipService,
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
setServices() {
|
|
@@ -48,6 +51,7 @@ exports.Es6Service = Es6Service = __decorate([
|
|
|
48
51
|
queue_service_1.QueueService,
|
|
49
52
|
redis_service_1.RedisService,
|
|
50
53
|
remote_request_service_1.RemoteRequestService,
|
|
51
|
-
sql_service_1.SqlService
|
|
54
|
+
sql_service_1.SqlService,
|
|
55
|
+
zip_service_1.ZipService])
|
|
52
56
|
], Es6Service);
|
|
53
57
|
//# sourceMappingURL=es6.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/es6.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mDAA+C;AAC/C,mDAA+C;AAC/C,mDAA+C;AAC/C,qEAAgE;AAChE,+CAA2C;AAC3C,8EAA0E;AAQnE,IAAM,UAAU,GAAhB,MAAM,UAAU;IAGnB,YACqB,YAA0B,EAC1B,YAA0B,EAC1B,YAA0B,EAC1B,oBAA0C,EAC1C,UAAsB;
|
|
1
|
+
{"version":3,"file":"es6.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/es6.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mDAA+C;AAC/C,mDAA+C;AAC/C,mDAA+C;AAC/C,qEAAgE;AAChE,+CAA2C;AAC3C,+CAA2C;AAC3C,8EAA0E;AAQnE,IAAM,UAAU,GAAhB,MAAM,UAAU;IAGnB,YACqB,YAA0B,EAC1B,YAA0B,EAC1B,YAA0B,EAC1B,oBAA0C,EAC1C,UAAsB,EACtB,UAAsB;QALtB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,eAAU,GAAV,UAAU,CAAY;QACtB,eAAU,GAAV,UAAU,CAAY;QARnC,aAAQ,GAAG,EAAE,CAAC;QAUlB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IAMD,aAAa;QACT,IAAI,CAAC,QAAQ,GAAG;YACZ,kCAAkC,EAAE,IAAI,CAAC,YAAY;YACrD,kCAAkC,EAAE,IAAI,CAAC,YAAY;YACrD,kCAAkC,EAAE,IAAI,CAAC,YAAY;YACrD,gCAAgC,EAAE,IAAI,CAAC,oBAAoB;YAC3D,kCAAkC,EAAE,IAAI,CAAC,UAAU;YACnD,gCAAgC,EAAE,IAAI,CAAC,UAAU;SACpD,CAAC;IACN,CAAC;IAMD,WAAW;QACP,kCAAe,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AArCY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;qCAK0B,4BAAY;QACZ,4BAAY;QACZ,4BAAY;QACJ,6CAAoB;QAC9B,wBAAU;QACV,wBAAU;GATlC,UAAU,CAqCtB"}
|
|
@@ -33,4 +33,5 @@ __exportStar(require("./sms.service"), exports);
|
|
|
33
33
|
__exportStar(require("./sql.service"), exports);
|
|
34
34
|
__exportStar(require("./sqs.service"), exports);
|
|
35
35
|
__exportStar(require("./startup.service"), exports);
|
|
36
|
+
__exportStar(require("./zip.service"), exports);
|
|
36
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAAA,uDAAqC;AAAA,uDAAqC;AAAA,kDAAgC;AAAA,mDAAiC;AAAA,6DAA2C;AAAA,2DAAyC;AAAA,iDAA+B;AAAA,wDAAsC;AAAA,kDAAgC;AAAA,kDAAgC;AAAA,2DAAyC;AAAA,+CAA6B;AAAA,kEAAgD;AAAA,qDAAmC;AAAA,gDAA8B;AAAA,gDAA8B;AAAA,gDAA8B;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAAA,uDAAqC;AAAA,uDAAqC;AAAA,kDAAgC;AAAA,mDAAiC;AAAA,6DAA2C;AAAA,2DAAyC;AAAA,iDAA+B;AAAA,wDAAsC;AAAA,kDAAgC;AAAA,kDAAgC;AAAA,2DAAyC;AAAA,+CAA6B;AAAA,kEAAgD;AAAA,qDAAmC;AAAA,gDAA8B;AAAA,gDAA8B;AAAA,gDAA8B;AAAA,oDAAkC;AAAA,gDAA6B"}
|
|
@@ -32,6 +32,11 @@ let MailService = class MailService {
|
|
|
32
32
|
this.gateway = null;
|
|
33
33
|
}
|
|
34
34
|
async send(options, metadata) {
|
|
35
|
+
const isDisabled = process.env.NOTIFICATION_DISABLED?.toLowerCase?.() === 'true';
|
|
36
|
+
if (isDisabled) {
|
|
37
|
+
global.console.log('Notification is disabled');
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
35
40
|
const { identifier, trackingId, attributes, track_pairs } = await this.processMail(options);
|
|
36
41
|
const gateway = options.gateway || this.gateway;
|
|
37
42
|
const body = { gateway, identifier };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mail.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/mail.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yDAAiD;AACjD,uCAAsC;AACtC,+CAAuC;AACvC,8EAA0E;AAC1E,uFAAkF;AAClF,6EAAyE;AACzE,yEAAqE;AACrE,oEAA+D;AAC/D,4EAAsE;AACtE,sEAAiE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AO,IAAI,CAAC,OAAO,CAAC;QAEpF,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,IAAA,qBAAU,EAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAE/C,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;QAE9E,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAQD,KAAK,CAAC,gBAAgB,CAAC,UAAkB,EAAE,aAAqB;QAC5D,IAAI,aAAa,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,qBAAqB,EAAE,wCAAwC,CAAC,CAAC;QACpH,IAAI,CAAC,aAAa;YAAE,OAAO;QAE3B,MAAM,YAAY,GAAG,GAAG,aAAa,MAAM,kBAAkB,CAAC,UAAU,CAAC,OAAO,aAAa,EAAE,CAAC;QAEhG,OAAO,8DAA8D,YAAY,IAAI,CAAC;IAC1F,CAAC;CACJ,CAAA;AArKY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAuB6B,kCAAe;QACjB,8BAAa;QACV,qCAAgB;GAxB9C,WAAW,CAqKvB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CommonService } from '../../common/libraries/common.service';
|
|
2
|
+
import { PropertyService } from '../../system/services/property.service';
|
|
3
|
+
import { RemoteRequestService } from './remote.request.service';
|
|
4
|
+
import { LambdaZipDto } from '../dtos/lambda.zip.dto';
|
|
5
|
+
export declare class ZipService extends CommonService {
|
|
6
|
+
protected readonly propertyService: PropertyService;
|
|
7
|
+
protected readonly remoteRequestService: RemoteRequestService;
|
|
8
|
+
private zipToken;
|
|
9
|
+
private unzipToken;
|
|
10
|
+
protected publicExposed: boolean;
|
|
11
|
+
constructor(propertyService: PropertyService, remoteRequestService: RemoteRequestService);
|
|
12
|
+
zip(files: LambdaZipDto[]): Promise<any>;
|
|
13
|
+
unzip(url: string): Promise<string[]>;
|
|
14
|
+
private getZipToken;
|
|
15
|
+
private getUnzipToken;
|
|
16
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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.ZipService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const operation_exception_1 = require("../../common/exceptions/operation.exception");
|
|
15
|
+
const common_service_1 = require("../../common/libraries/common.service");
|
|
16
|
+
const property_service_1 = require("../../system/services/property.service");
|
|
17
|
+
const remote_request_service_1 = require("./remote.request.service");
|
|
18
|
+
let ZipService = class ZipService extends common_service_1.CommonService {
|
|
19
|
+
constructor(propertyService, remoteRequestService) {
|
|
20
|
+
super();
|
|
21
|
+
this.propertyService = propertyService;
|
|
22
|
+
this.remoteRequestService = remoteRequestService;
|
|
23
|
+
this.publicExposed = true;
|
|
24
|
+
}
|
|
25
|
+
async zip(files) {
|
|
26
|
+
const token = await this.getZipToken();
|
|
27
|
+
if (!token)
|
|
28
|
+
throw new operation_exception_1.OperationException('Zip token not found');
|
|
29
|
+
const options = {
|
|
30
|
+
method: 'POST',
|
|
31
|
+
url: 'https://5rpkoai7vk.execute-api.ap-south-1.amazonaws.com/prod/zip-files',
|
|
32
|
+
headers: {
|
|
33
|
+
Authorization: `Bearer ${token}`,
|
|
34
|
+
'Content-Type': 'application/json',
|
|
35
|
+
},
|
|
36
|
+
data: files,
|
|
37
|
+
timeout: 900000,
|
|
38
|
+
maxBodyLength: Infinity,
|
|
39
|
+
};
|
|
40
|
+
try {
|
|
41
|
+
const response = await this.remoteRequestService.sendThroughAxios(options);
|
|
42
|
+
if (response?.data?.success) {
|
|
43
|
+
return response.data.zipUrl;
|
|
44
|
+
}
|
|
45
|
+
const apiError = response?.data?.error || 'Failed to create zip file';
|
|
46
|
+
throw new operation_exception_1.OperationException(apiError);
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
if (error instanceof operation_exception_1.OperationException)
|
|
50
|
+
throw error;
|
|
51
|
+
const message = error?.response?.data?.error ?? error?.response?.data?.message ?? error?.message ?? 'Zip request failed';
|
|
52
|
+
throw new operation_exception_1.OperationException(message);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async unzip(url) {
|
|
56
|
+
const token = await this.getUnzipToken();
|
|
57
|
+
if (!token)
|
|
58
|
+
throw new operation_exception_1.OperationException('Unzip token not found');
|
|
59
|
+
const options = {
|
|
60
|
+
method: 'post',
|
|
61
|
+
maxBodyLength: Infinity,
|
|
62
|
+
url: 'https://stogyux6hk.execute-api.ap-south-1.amazonaws.com/prod/unzip-files',
|
|
63
|
+
headers: {
|
|
64
|
+
Authorization: `Bearer ${token}`,
|
|
65
|
+
'Content-Type': 'application/json',
|
|
66
|
+
},
|
|
67
|
+
data: { url },
|
|
68
|
+
};
|
|
69
|
+
try {
|
|
70
|
+
const response = await this.remoteRequestService.sendThroughAxios(options);
|
|
71
|
+
if (response?.data?.success) {
|
|
72
|
+
return response.data.files || [];
|
|
73
|
+
}
|
|
74
|
+
const apiError = response?.data?.error || 'Failed to unzip file';
|
|
75
|
+
throw new operation_exception_1.OperationException(apiError);
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
if (error instanceof operation_exception_1.OperationException)
|
|
79
|
+
throw error;
|
|
80
|
+
const message = error?.response?.data?.error ?? error?.response?.data?.message ?? error?.message ?? 'Unzip request failed';
|
|
81
|
+
throw new operation_exception_1.OperationException(message);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
async getZipToken() {
|
|
85
|
+
if (this.zipToken)
|
|
86
|
+
return this.zipToken;
|
|
87
|
+
this.zipToken = await this.propertyService.get('lambda.zip.token');
|
|
88
|
+
if (!this.zipToken)
|
|
89
|
+
throw new operation_exception_1.OperationException('Zip token not found, set property lambda.zip.token');
|
|
90
|
+
return this.zipToken;
|
|
91
|
+
}
|
|
92
|
+
async getUnzipToken() {
|
|
93
|
+
if (this.unzipToken)
|
|
94
|
+
return this.unzipToken;
|
|
95
|
+
this.unzipToken = await this.propertyService.get('lambda.unzip.token');
|
|
96
|
+
if (!this.unzipToken)
|
|
97
|
+
throw new operation_exception_1.OperationException('Unzip token not found, set property lambda.unzip.token');
|
|
98
|
+
return this.unzipToken;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
exports.ZipService = ZipService;
|
|
102
|
+
exports.ZipService = ZipService = __decorate([
|
|
103
|
+
(0, common_1.Injectable)(),
|
|
104
|
+
__metadata("design:paramtypes", [property_service_1.PropertyService,
|
|
105
|
+
remote_request_service_1.RemoteRequestService])
|
|
106
|
+
], ZipService);
|
|
107
|
+
//# sourceMappingURL=zip.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zip.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/zip.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qFAAiF;AACjF,0EAAsE;AACtE,6EAAyE;AACzE,qEAAgE;AAQzD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,8BAAa;IAMzC,YACuB,eAAgC,EAChC,oBAA0C;QAE7D,KAAK,EAA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,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QAEnE,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,MAAM,IAAI,wCAAkB,CAAC,oDAAoD,CAAC,CAAC;QAEvG,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAMO,KAAK,CAAC,aAAa;QACvB,IAAI,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC,UAAU,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QACvE,IAAI,CAAC,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,wCAAkB,CAAC,wDAAwD,CAAC,CAAC;QAE7G,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ,CAAA;AA1GY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;qCAQ+B,kCAAe;QACV,6CAAoB;GARxD,UAAU,CA0GtB"}
|
|
@@ -33,6 +33,10 @@ __decorate([
|
|
|
33
33
|
(0, typeorm_1.Column)(),
|
|
34
34
|
__metadata("design:type", Number)
|
|
35
35
|
], DocumentEntity.prototype, "type_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], DocumentEntity.prototype, "identifier", void 0);
|
|
36
40
|
__decorate([
|
|
37
41
|
(0, typeorm_1.Column)('json'),
|
|
38
42
|
__metadata("design:type", document_attributes_dto_1.DocumentAttributesDto)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.entity.js","sourceRoot":"","sources":["../../../src/system/entities/document.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,wEAAoE;AACpE,6EAAwE;AACxE,+DAA0D;AASnD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;
|
|
1
|
+
{"version":3,"file":"document.entity.js","sourceRoot":"","sources":["../../../src/system/entities/document.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,wEAAoE;AACpE,6EAAwE;AACxE,+DAA0D;AASnD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;CAuB/C,CAAA;AAvBY,wCAAc;AAEvB;IADC,IAAA,gBAAM,GAAE;;mDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;iDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;oDACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;+CACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;kDACU;AAGnB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,+CAAqB;kDAAC;AAKlC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC;IAClC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,uCAAiB;4CAAC;yBAtBf,cAAc;IAD1B,IAAA,gBAAM,EAAC,eAAe,CAAC;GACX,cAAc,CAuB1B"}
|