@servicelabsco/nestjs-utility-services 1.2.104 → 1.2.106

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.
Files changed (85) hide show
  1. package/dist/app.controller.d.ts +6 -3
  2. package/dist/app.controller.js +9 -6
  3. package/dist/app.controller.js.map +1 -1
  4. package/dist/config/entity.constants.d.ts +4 -0
  5. package/dist/config/entity.constants.js +4 -0
  6. package/dist/config/entity.constants.js.map +1 -1
  7. package/dist/migrations/1732960894547-CreateCodeFixScriptTable.d.ts +5 -0
  8. package/dist/migrations/1732960894547-CreateCodeFixScriptTable.js +22 -0
  9. package/dist/migrations/1732960894547-CreateCodeFixScriptTable.js.map +1 -0
  10. package/dist/migrations/1732961040333-CreateCodeFixLogTable.d.ts +5 -0
  11. package/dist/migrations/1732961040333-CreateCodeFixLogTable.js +24 -0
  12. package/dist/migrations/1732961040333-CreateCodeFixLogTable.js.map +1 -0
  13. package/dist/migrations/1732962774052-AddJsonDataSysScheduledEventsTable.ts.d.ts +5 -0
  14. package/dist/migrations/1732962774052-AddJsonDataSysScheduledEventsTable.ts.js +15 -0
  15. package/dist/migrations/1732962774052-AddJsonDataSysScheduledEventsTable.ts.js.map +1 -0
  16. package/dist/migrations/1732962856845-AddJsonPayloadSysEventQueuesTable.ts.d.ts +5 -0
  17. package/dist/migrations/1732962856845-AddJsonPayloadSysEventQueuesTable.ts.js +15 -0
  18. package/dist/migrations/1732962856845-AddJsonPayloadSysEventQueuesTable.ts.js.map +1 -0
  19. package/dist/system/dtos/code.fix.log.attributes.dto.d.ts +3 -0
  20. package/dist/system/dtos/code.fix.log.attributes.dto.js +8 -0
  21. package/dist/system/dtos/code.fix.log.attributes.dto.js.map +1 -0
  22. package/dist/system/dtos/code.fix.script.attributes.dto.d.ts +3 -0
  23. package/dist/system/dtos/code.fix.script.attributes.dto.js +8 -0
  24. package/dist/system/dtos/code.fix.script.attributes.dto.js.map +1 -0
  25. package/dist/system/dtos/index.d.ts +2 -0
  26. package/dist/system/dtos/index.js +2 -0
  27. package/dist/system/dtos/index.js.map +1 -1
  28. package/dist/system/entities/code.fix.log.entity.d.ts +16 -0
  29. package/dist/system/entities/code.fix.log.entity.js +68 -0
  30. package/dist/system/entities/code.fix.log.entity.js.map +1 -0
  31. package/dist/system/entities/code.fix.script.entity.d.ts +11 -0
  32. package/dist/system/entities/code.fix.script.entity.js +48 -0
  33. package/dist/system/entities/code.fix.script.entity.js.map +1 -0
  34. package/dist/system/entities/event.queue.entity.d.ts +1 -0
  35. package/dist/system/entities/event.queue.entity.js +4 -0
  36. package/dist/system/entities/event.queue.entity.js.map +1 -1
  37. package/dist/system/entities/index.d.ts +2 -0
  38. package/dist/system/entities/index.js +2 -0
  39. package/dist/system/entities/index.js.map +1 -1
  40. package/dist/system/entities/scheduled.event.entity.d.ts +1 -0
  41. package/dist/system/entities/scheduled.event.entity.js +4 -0
  42. package/dist/system/entities/scheduled.event.entity.js.map +1 -1
  43. package/dist/system/es6.classes.d.ts +14 -5
  44. package/dist/system/es6.classes.js +22 -0
  45. package/dist/system/es6.classes.js.map +1 -1
  46. package/dist/system/jobs/code.fix.log.job.d.ts +9 -0
  47. package/dist/system/jobs/code.fix.log.job.js +30 -0
  48. package/dist/system/jobs/code.fix.log.job.js.map +1 -0
  49. package/dist/system/jobs/code.fix.script.job.d.ts +9 -0
  50. package/dist/system/jobs/code.fix.script.job.js +30 -0
  51. package/dist/system/jobs/code.fix.script.job.js.map +1 -0
  52. package/dist/system/jobs/execute.code.fix.job.d.ts +12 -0
  53. package/dist/system/jobs/execute.code.fix.job.js +35 -0
  54. package/dist/system/jobs/execute.code.fix.job.js.map +1 -0
  55. package/dist/system/jobs/index.d.ts +4 -0
  56. package/dist/system/jobs/index.js +4 -0
  57. package/dist/system/jobs/index.js.map +1 -1
  58. package/dist/system/jobs/set.event.queue.job.d.ts +1 -0
  59. package/dist/system/jobs/set.event.queue.job.js +13 -7
  60. package/dist/system/jobs/set.event.queue.job.js.map +1 -1
  61. package/dist/system/jobs/sync.all.code.job.d.ts +45 -0
  62. package/dist/system/jobs/sync.all.code.job.js +330 -0
  63. package/dist/system/jobs/sync.all.code.job.js.map +1 -0
  64. package/dist/system/libraries/execute.code.fix.d.ts +13 -0
  65. package/dist/system/libraries/execute.code.fix.js +60 -0
  66. package/dist/system/libraries/execute.code.fix.js.map +1 -0
  67. package/dist/system/libraries/index.d.ts +1 -0
  68. package/dist/system/libraries/index.js +1 -0
  69. package/dist/system/libraries/index.js.map +1 -1
  70. package/dist/system/services/es6.jobs.service.d.ts +9 -1
  71. package/dist/system/services/es6.jobs.service.js +17 -1
  72. package/dist/system/services/es6.jobs.service.js.map +1 -1
  73. package/dist/system/services/scheduled.event.service.js +1 -0
  74. package/dist/system/services/scheduled.event.service.js.map +1 -1
  75. package/dist/system/services/upload.service.d.ts +1 -1
  76. package/dist/system/subscribers/code.fix.log.subscriber.d.ts +10 -0
  77. package/dist/system/subscribers/code.fix.log.subscriber.js +34 -0
  78. package/dist/system/subscribers/code.fix.log.subscriber.js.map +1 -0
  79. package/dist/system/subscribers/code.fix.script.subscriber.d.ts +10 -0
  80. package/dist/system/subscribers/code.fix.script.subscriber.js +34 -0
  81. package/dist/system/subscribers/code.fix.script.subscriber.js.map +1 -0
  82. package/dist/system/subscribers/index.d.ts +2 -0
  83. package/dist/system/subscribers/index.js +2 -0
  84. package/dist/system/subscribers/index.js.map +1 -1
  85. package/package.json +1 -1
@@ -9,7 +9,7 @@ export declare class UploadService {
9
9
  constructor(awsS3Service: AwsS3Service, awsConfigService: AwsConfigService);
10
10
  upload(file: FileUploadSpecDto, options?: S3UploadOptionsDto): Promise<string>;
11
11
  private getFileName;
12
- getBufferFromUrl(url: string): Promise<Buffer>;
12
+ getBufferFromUrl(url: string): Promise<Buffer<ArrayBuffer>>;
13
13
  uploadFile(params: any): Promise<string>;
14
14
  saveLocalFileOnS3(options: LocalFileS3UploadDto): Promise<string>;
15
15
  getParam(file: any): Promise<any>;
@@ -0,0 +1,10 @@
1
+ import { DataSource } from 'typeorm';
2
+ import { CodeFixLogEntity } from '../entities/code.fix.log.entity';
3
+ import { CodeFixLogJob } from '../jobs/code.fix.log.job';
4
+ import { CommonSubscriber } from '../../common/libraries/common.subscriber';
5
+ export declare class CodeFixLogSubscriber extends CommonSubscriber<CodeFixLogEntity> {
6
+ private readonly dataSource;
7
+ protected readonly entityJob: CodeFixLogJob;
8
+ constructor(dataSource: DataSource, entityJob: CodeFixLogJob);
9
+ listenTo(): typeof CodeFixLogEntity;
10
+ }
@@ -0,0 +1,34 @@
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.CodeFixLogSubscriber = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const code_fix_log_entity_1 = require("../entities/code.fix.log.entity");
15
+ const code_fix_log_job_1 = require("../jobs/code.fix.log.job");
16
+ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
17
+ let CodeFixLogSubscriber = class CodeFixLogSubscriber extends common_subscriber_1.CommonSubscriber {
18
+ constructor(dataSource, entityJob) {
19
+ super();
20
+ this.dataSource = dataSource;
21
+ this.entityJob = entityJob;
22
+ dataSource.subscribers.push(this);
23
+ }
24
+ listenTo() {
25
+ return code_fix_log_entity_1.CodeFixLogEntity;
26
+ }
27
+ };
28
+ exports.CodeFixLogSubscriber = CodeFixLogSubscriber;
29
+ exports.CodeFixLogSubscriber = CodeFixLogSubscriber = __decorate([
30
+ (0, typeorm_1.EventSubscriber)(),
31
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
32
+ code_fix_log_job_1.CodeFixLogJob])
33
+ ], CodeFixLogSubscriber);
34
+ //# sourceMappingURL=code.fix.log.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.fix.log.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/code.fix.log.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,yEAAmE;AACnE,+DAAyD;AACzD,gFAA4E;AAGrE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oCAAkC;IACxE,YACqB,UAAsB,EACpB,SAAwB;QAE3C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAe;QAG3C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,sCAAgB,CAAC;IAC5B,CAAC;CACJ,CAAA;AAXY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,gCAAa;GAHtC,oBAAoB,CAWhC"}
@@ -0,0 +1,10 @@
1
+ import { DataSource } from 'typeorm';
2
+ import { CommonSubscriber } from '../../common/libraries/common.subscriber';
3
+ import { CodeFixScriptEntity } from '../entities/code.fix.script.entity';
4
+ import { CodeFixScriptJob } from '../jobs/code.fix.script.job';
5
+ export declare class CodeFixScriptSubscriber extends CommonSubscriber<CodeFixScriptEntity> {
6
+ private readonly dataSource;
7
+ protected readonly entityJob: CodeFixScriptJob;
8
+ constructor(dataSource: DataSource, entityJob: CodeFixScriptJob);
9
+ listenTo(): typeof CodeFixScriptEntity;
10
+ }
@@ -0,0 +1,34 @@
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.CodeFixScriptSubscriber = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
15
+ const code_fix_script_entity_1 = require("../entities/code.fix.script.entity");
16
+ const code_fix_script_job_1 = require("../jobs/code.fix.script.job");
17
+ let CodeFixScriptSubscriber = class CodeFixScriptSubscriber extends common_subscriber_1.CommonSubscriber {
18
+ constructor(dataSource, entityJob) {
19
+ super();
20
+ this.dataSource = dataSource;
21
+ this.entityJob = entityJob;
22
+ dataSource.subscribers.push(this);
23
+ }
24
+ listenTo() {
25
+ return code_fix_script_entity_1.CodeFixScriptEntity;
26
+ }
27
+ };
28
+ exports.CodeFixScriptSubscriber = CodeFixScriptSubscriber;
29
+ exports.CodeFixScriptSubscriber = CodeFixScriptSubscriber = __decorate([
30
+ (0, typeorm_1.EventSubscriber)(),
31
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
32
+ code_fix_script_job_1.CodeFixScriptJob])
33
+ ], CodeFixScriptSubscriber);
34
+ //# sourceMappingURL=code.fix.script.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.fix.script.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/code.fix.script.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,gFAA4E;AAC5E,+EAAyE;AACzE,qEAA+D;AAGxD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,oCAAqC;IAC9E,YACqB,UAAsB,EACpB,SAA2B;QAE9C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAkB;QAG9C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,4CAAmB,CAAC;IAC/B,CAAC;CACJ,CAAA;AAXY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,sCAAgB;GAHzC,uBAAuB,CAWnC"}
@@ -1,5 +1,7 @@
1
1
  export * from './client.credential.subscriber';
2
2
  export * from './client.subscriber';
3
+ export * from './code.fix.log.subscriber';
4
+ export * from './code.fix.script.subscriber';
3
5
  export * from './column.subscriber';
4
6
  export * from './comment.subscriber';
5
7
  export * from './credential.ip.subscriber';
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client.credential.subscriber"), exports);
18
18
  __exportStar(require("./client.subscriber"), exports);
19
+ __exportStar(require("./code.fix.log.subscriber"), exports);
20
+ __exportStar(require("./code.fix.script.subscriber"), exports);
19
21
  __exportStar(require("./column.subscriber"), exports);
20
22
  __exportStar(require("./comment.subscriber"), exports);
21
23
  __exportStar(require("./credential.ip.subscriber"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAAA,sDAAoC;AAAA,sDAAoC;AAAA,uDAAqC;AAAA,6DAA2C;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,iEAA+C;AAAA,wDAAsC;AAAA,4DAA0C;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,iEAA+C;AAAA,qEAAmD;AAAA,+DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAAA,sDAAoC;AAAA,4DAA0C;AAAA,+DAA6C;AAAA,sDAAoC;AAAA,uDAAqC;AAAA,6DAA2C;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,iEAA+C;AAAA,wDAAsC;AAAA,4DAA0C;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,iEAA+C;AAAA,qEAAmD;AAAA,+DAA4C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/nestjs-utility-services",
3
- "version": "1.2.104",
3
+ "version": "1.2.106",
4
4
  "description": "NestJS generic packages to support development",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",