@servicelabsco/nestjs-utility-services 1.2.114 → 1.2.116

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 (54) hide show
  1. package/dist/config/entity.constants.d.ts +2 -0
  2. package/dist/config/entity.constants.js +2 -0
  3. package/dist/config/entity.constants.js.map +1 -1
  4. package/dist/config/source.hash.d.ts +2 -0
  5. package/dist/config/source.hash.js +2 -0
  6. package/dist/config/source.hash.js.map +1 -1
  7. package/dist/migrations/1736313849527-CreateMaterialViewTable.d.ts +5 -0
  8. package/dist/migrations/1736313849527-CreateMaterialViewTable.js +22 -0
  9. package/dist/migrations/1736313849527-CreateMaterialViewTable.js.map +1 -0
  10. package/dist/migrations/1736396384828-AddPrePostScriptColumnSysReportDetailsTable.d.ts +5 -0
  11. package/dist/migrations/1736396384828-AddPrePostScriptColumnSysReportDetailsTable.js +16 -0
  12. package/dist/migrations/1736396384828-AddPrePostScriptColumnSysReportDetailsTable.js.map +1 -0
  13. package/dist/platformUtility/dtos/string.search.dto.js +1 -0
  14. package/dist/platformUtility/dtos/string.search.dto.js.map +1 -1
  15. package/dist/system/dtos/index.d.ts +1 -0
  16. package/dist/system/dtos/index.js +1 -0
  17. package/dist/system/dtos/index.js.map +1 -1
  18. package/dist/system/dtos/material.view.attributes.dto.d.ts +3 -0
  19. package/dist/system/dtos/material.view.attributes.dto.js +8 -0
  20. package/dist/system/dtos/material.view.attributes.dto.js.map +1 -0
  21. package/dist/system/entities/index.d.ts +1 -0
  22. package/dist/system/entities/index.js +1 -0
  23. package/dist/system/entities/index.js.map +1 -1
  24. package/dist/system/entities/material.view.entity.d.ts +10 -0
  25. package/dist/system/entities/material.view.entity.js +46 -0
  26. package/dist/system/entities/material.view.entity.js.map +1 -0
  27. package/dist/system/entities/report.entity.d.ts +4 -0
  28. package/dist/system/entities/report.entity.js +18 -0
  29. package/dist/system/entities/report.entity.js.map +1 -1
  30. package/dist/system/es6.classes.d.ts +8 -3
  31. package/dist/system/es6.classes.js +12 -0
  32. package/dist/system/es6.classes.js.map +1 -1
  33. package/dist/system/jobs/execute.material.view.job.d.ts +11 -0
  34. package/dist/system/jobs/execute.material.view.job.js +43 -0
  35. package/dist/system/jobs/execute.material.view.job.js.map +1 -0
  36. package/dist/system/jobs/index.d.ts +3 -0
  37. package/dist/system/jobs/index.js +3 -0
  38. package/dist/system/jobs/index.js.map +1 -1
  39. package/dist/system/jobs/material.view.job.d.ts +13 -0
  40. package/dist/system/jobs/material.view.job.js +50 -0
  41. package/dist/system/jobs/material.view.job.js.map +1 -0
  42. package/dist/system/jobs/refresh.material.view.job.d.ts +16 -0
  43. package/dist/system/jobs/refresh.material.view.job.js +85 -0
  44. package/dist/system/jobs/refresh.material.view.job.js.map +1 -0
  45. package/dist/system/services/es6.jobs.service.d.ts +7 -1
  46. package/dist/system/services/es6.jobs.service.js +13 -1
  47. package/dist/system/services/es6.jobs.service.js.map +1 -1
  48. package/dist/system/subscribers/index.d.ts +1 -0
  49. package/dist/system/subscribers/index.js +1 -0
  50. package/dist/system/subscribers/index.js.map +1 -1
  51. package/dist/system/subscribers/material.view.subscriber.d.ts +12 -0
  52. package/dist/system/subscribers/material.view.subscriber.js +47 -0
  53. package/dist/system/subscribers/material.view.subscriber.js.map +1 -0
  54. package/package.json +1 -1
@@ -39,6 +39,7 @@ import { MailEventEntity } from '../system/entities/mail.event.entity';
39
39
  import { MailLogEntity } from '../system/entities/mail.log.entity';
40
40
  import { MailRecipientEntity } from '../system/entities/mail.recipient.entity';
41
41
  import { MailValidationEntity } from '../system/entities/mail.validation.entity';
42
+ import { MaterialViewEntity } from '../system/entities/material.view.entity';
42
43
  import { MenuEntity } from '../system/entities/menu.entity';
43
44
  import { MenuRoleEntity } from '../system/entities/menu.role.entity';
44
45
  import { MobileValidationEntity } from '../system/entities/mobile.validation.entity';
@@ -119,6 +120,7 @@ declare const entityConstants: {
119
120
  a3da8b74348b592a71fe3667f5d92954: typeof MailLogEntity;
120
121
  cc6b09709a1955d294210e3ff4293bb8: typeof MailRecipientEntity;
121
122
  '7c4d023bb9746e4bd0e2cf74e42dd6a5': typeof MailValidationEntity;
123
+ '6cc76494999951a1ac3631ca815c1786': typeof MaterialViewEntity;
122
124
  '1ef387eee5c23a8d3c8f6a3130e1c397': typeof MenuEntity;
123
125
  '0357bfa9c9022c76f5302e2274e249fe': typeof MenuRoleEntity;
124
126
  fa2bfeba4f8c0f5c4ec5bf9ca6c03771: typeof MobileValidationEntity;
@@ -40,6 +40,7 @@ const mail_event_entity_1 = require("../system/entities/mail.event.entity");
40
40
  const mail_log_entity_1 = require("../system/entities/mail.log.entity");
41
41
  const mail_recipient_entity_1 = require("../system/entities/mail.recipient.entity");
42
42
  const mail_validation_entity_1 = require("../system/entities/mail.validation.entity");
43
+ const material_view_entity_1 = require("../system/entities/material.view.entity");
43
44
  const menu_entity_1 = require("../system/entities/menu.entity");
44
45
  const menu_role_entity_1 = require("../system/entities/menu.role.entity");
45
46
  const mobile_validation_entity_1 = require("../system/entities/mobile.validation.entity");
@@ -120,6 +121,7 @@ const entityConstants = {
120
121
  a3da8b74348b592a71fe3667f5d92954: mail_log_entity_1.MailLogEntity,
121
122
  cc6b09709a1955d294210e3ff4293bb8: mail_recipient_entity_1.MailRecipientEntity,
122
123
  '7c4d023bb9746e4bd0e2cf74e42dd6a5': mail_validation_entity_1.MailValidationEntity,
124
+ '6cc76494999951a1ac3631ca815c1786': material_view_entity_1.MaterialViewEntity,
123
125
  '1ef387eee5c23a8d3c8f6a3130e1c397': menu_entity_1.MenuEntity,
124
126
  '0357bfa9c9022c76f5302e2274e249fe': menu_role_entity_1.MenuRoleEntity,
125
127
  fa2bfeba4f8c0f5c4ec5bf9ca6c03771: mobile_validation_entity_1.MobileValidationEntity,
@@ -1 +1 @@
1
- {"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,oEAAgE;AAChE,oEAAgE;AAChE,8EAAyE;A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gC,EAAE,0BAAW;IAC7C,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,4BAAY;IAChD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,6CAAoB;IACxD,gCAAgC,EAAE,qCAAgB;IAClD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,gCAAc;IAClD,gCAAgC,EAAE,6CAAoB;IACtD,gCAAgC,EAAE,wCAAkB;IACpD,kCAAkC,EAAE,yCAAkB;IACtD,gCAAgC,EAAE,4BAAY;IAC9C,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,qDAAwB;IAC5D,gCAAgC,EAAE,qCAAgB;IAClD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,2CAAmB;IACvD,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,8BAAa;IACjD,gCAAgC,EAAE,qCAAgB;IAClD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,yCAAkB;IACtD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,sDAAwB;IAC5D,kCAAkC,EAAE,0CAAkB;IACtD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,gDAAqB;IACzD,kCAAkC,EAAE,wDAAyB;IAC7D,kCAAkC,EAAE,4CAAmB;IACvD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,iDAAsB;CAC7D,CAAC;AAEF,iBAAS,eAAe,CAAC"}
1
+ {"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,oEAAgE;AAChE,oEAAgE;AAChE,8EAAyE;AACzE,gFAA2E;AAC3E,0FAAqF;AACrF,8DAA0D;AAC1D,gFAA2E;AAC3E,+FAAyF;AACzF,iGAA2F;AAC3F,8EAA0E;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,EAAE,mCAAe;IACnD,kCAAkC,EAAE,4BAAY;IAChD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,6CAAoB;IACxD,gCAAgC,EAAE,qCAAgB;IAClD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,gCAAc;IAClD,gCAAgC,EAAE,6CAAoB;IACtD,gCAAgC,EAAE,wCAAkB;IACpD,kCAAkC,EAAE,yCAAkB;IACtD,gCAAgC,EAAE,4BAAY;IAC9C,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,qDAAwB;IAC5D,gCAAgC,EAAE,qCAAgB;IAClD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,2CAAmB;IACvD,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,8BAAa;IACjD,gCAAgC,EAAE,qCAAgB;IAClD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,yCAAkB;IACtD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,sDAAwB;IAC5D,kCAAkC,EAAE,0CAAkB;IACtD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,gDAAqB;IACzD,kCAAkC,EAAE,wDAAyB;IAC7D,kCAAkC,EAAE,4CAAmB;IACvD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,iDAAsB;CAC7D,CAAC;AAEF,iBAAS,eAAe,CAAC"}
@@ -15,5 +15,7 @@ declare const SourceHash: {
15
15
  recurringQueryEvent: string;
16
16
  codeFixScript: string;
17
17
  codeFixExecutionEvent: string;
18
+ materialView: string;
19
+ materialViewEvent: string;
18
20
  };
19
21
  export = SourceHash;
@@ -16,6 +16,8 @@ const SourceHash = {
16
16
  recurringQueryEvent: '49da21b3b3be45f66e8f88c55be55ebe',
17
17
  codeFixScript: '66ccbf09614ffec0303f4fa625358fe4',
18
18
  codeFixExecutionEvent: '66b85ebd2f93d8d9ad74f91dd448fc10',
19
+ materialView: '6cc76494999951a1ac3631ca815c1786',
20
+ materialViewEvent: '4231f833daffa443023e954b0eb026c4',
19
21
  };
20
22
  module.exports = SourceHash;
21
23
  //# sourceMappingURL=source.hash.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"source.hash.js","sourceRoot":"","sources":["../../src/config/source.hash.ts"],"names":[],"mappings":";AAAA,MAAM,UAAU,GAAG;IACf,cAAc,EAAE,kCAAkC;IAClD,IAAI,EAAE,kCAAkC;IACxC,KAAK,EAAE,kCAAkC;IACzC,iBAAiB,EAAE,kCAAkC;IACrD,MAAM,EAAE,kCAAkC;IAC1C,MAAM,EAAE,kCAAkC;IAC1C,IAAI,EAAE,kCAAkC;IACxC,SAAS,EAAE,kCAAkC;IAC7C,YAAY,EAAE,kCAAkC;IAChD,gBAAgB,EAAE,kCAAkC;IACpD,OAAO,EAAE,kCAAkC;IAC3C,OAAO,EAAE,kCAAkC;IAC3C,cAAc,EAAE,kCAAkC;IAClD,mBAAmB,EAAE,kCAAkC;IACvD,aAAa,EAAE,kCAAkC;IACjD,qBAAqB,EAAE,kCAAkC;CAC5D,CAAC;AAEF,iBAAS,UAAU,CAAC"}
1
+ {"version":3,"file":"source.hash.js","sourceRoot":"","sources":["../../src/config/source.hash.ts"],"names":[],"mappings":";AAAA,MAAM,UAAU,GAAG;IACf,cAAc,EAAE,kCAAkC;IAClD,IAAI,EAAE,kCAAkC;IACxC,KAAK,EAAE,kCAAkC;IACzC,iBAAiB,EAAE,kCAAkC;IACrD,MAAM,EAAE,kCAAkC;IAC1C,MAAM,EAAE,kCAAkC;IAC1C,IAAI,EAAE,kCAAkC;IACxC,SAAS,EAAE,kCAAkC;IAC7C,YAAY,EAAE,kCAAkC;IAChD,gBAAgB,EAAE,kCAAkC;IACpD,OAAO,EAAE,kCAAkC;IAC3C,OAAO,EAAE,kCAAkC;IAC3C,cAAc,EAAE,kCAAkC;IAClD,mBAAmB,EAAE,kCAAkC;IACvD,aAAa,EAAE,kCAAkC;IACjD,qBAAqB,EAAE,kCAAkC;IACzD,YAAY,EAAE,kCAAkC;IAChD,iBAAiB,EAAE,kCAAkC;CACxD,CAAC;AAEF,iBAAS,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '../common/libraries/migration.utility';
2
+ export declare class CreateMaterialViewTable1736313849527 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateMaterialViewTable1736313849527 = void 0;
4
+ const migration_utility_1 = require("../common/libraries/migration.utility");
5
+ class CreateMaterialViewTable1736313849527 extends migration_utility_1.MigrationUtility {
6
+ constructor() {
7
+ super('sys_material_views');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.string('table_name');
13
+ this.string('timing');
14
+ this.dateTime('last_scheduled_time');
15
+ this.dateTime('last_run_time');
16
+ this.boolean('active');
17
+ this.json('attributes');
18
+ this.whoColumns();
19
+ }
20
+ }
21
+ exports.CreateMaterialViewTable1736313849527 = CreateMaterialViewTable1736313849527;
22
+ //# sourceMappingURL=1736313849527-CreateMaterialViewTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1736313849527-CreateMaterialViewTable.js","sourceRoot":"","sources":["../../src/migrations/1736313849527-CreateMaterialViewTable.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AAEzE,MAAa,oCAAqC,SAAQ,oCAAgB;IACtE;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEtB,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;QACrC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QAE/B,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEvB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AApBD,oFAoBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '../common/libraries/migration.utility';
2
+ export declare class AddPrePostScriptColumnSysReportDetailsTable1736396384828 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddPrePostScriptColumnSysReportDetailsTable1736396384828 = void 0;
4
+ const migration_utility_1 = require("../common/libraries/migration.utility");
5
+ class AddPrePostScriptColumnSysReportDetailsTable1736396384828 extends migration_utility_1.MigrationUtility {
6
+ constructor() {
7
+ super('sys_report_details');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.foreign({ name: 'pre_script_id', foreignTable: 'sys_system_scripts' });
12
+ this.foreign({ name: 'post_script_id', foreignTable: 'sys_system_scripts' });
13
+ }
14
+ }
15
+ exports.AddPrePostScriptColumnSysReportDetailsTable1736396384828 = AddPrePostScriptColumnSysReportDetailsTable1736396384828;
16
+ //# sourceMappingURL=1736396384828-AddPrePostScriptColumnSysReportDetailsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1736396384828-AddPrePostScriptColumnSysReportDetailsTable.js","sourceRoot":"","sources":["../../src/migrations/1736396384828-AddPrePostScriptColumnSysReportDetailsTable.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AAEzE,MAAa,wDAAyD,SAAQ,oCAAgB;IAC1F;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC,CAAC;QAC5E,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC,CAAC;IACjF,CAAC;CACJ;AAVD,4HAUC"}
@@ -29,6 +29,7 @@ __decorate([
29
29
  (0, class_transformer_1.Expose)(),
30
30
  (0, class_validator_1.IsOptional)(),
31
31
  (0, class_validator_1.IsArray)(),
32
+ (0, class_validator_1.IsNumber)({}, { each: true }),
32
33
  __metadata("design:type", Array)
33
34
  ], StringSearchDto.prototype, "ids", void 0);
34
35
  //# sourceMappingURL=string.search.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"string.search.dto.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/string.search.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAsD;AAEtD,MAAa,eAAe;CAa3B;AAbD,0CAaC;AAVG;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4CACA;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;8CACE;AAKf;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;4CACK"}
1
+ {"version":3,"file":"string.search.dto.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/string.search.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAgE;AAEhE,MAAa,eAAe;CAc3B;AAdD,0CAcC;AAXG;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4CACA;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;8CACE;AAMf;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4CACd"}
@@ -16,6 +16,7 @@ export * from './local.file.s3.upload.dto';
16
16
  export * from './mail.event.attributes.dto';
17
17
  export * from './mail.recipient.attributes.dto';
18
18
  export * from './mail.validation.dto';
19
+ export * from './material.view.attributes.dto';
19
20
  export * from './menu.list.preference.creation.dto';
20
21
  export * from './mobile.validation.dto';
21
22
  export * from './model.allowed.column.dto';
@@ -32,6 +32,7 @@ __exportStar(require("./local.file.s3.upload.dto"), exports);
32
32
  __exportStar(require("./mail.event.attributes.dto"), exports);
33
33
  __exportStar(require("./mail.recipient.attributes.dto"), exports);
34
34
  __exportStar(require("./mail.validation.dto"), exports);
35
+ __exportStar(require("./material.view.attributes.dto"), exports);
35
36
  __exportStar(require("./menu.list.preference.creation.dto"), exports);
36
37
  __exportStar(require("./mobile.validation.dto"), exports);
37
38
  __exportStar(require("./model.allowed.column.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,qEAAmD;AAAA,0DAAwC;AAAA,gEAA8C;AAAA,mEAAiD;AAAA,2DAAyC;AAAA,iEAA+C;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,oDAAkC;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,kEAAgD;AAAA,wDAAsC;AAAA,sEAAoD;AAAA,0DAAwC;AAAA,6DAA2C;AAAA,uEAAqD;AAAA,uDAAqC;AAAA,mEAAiD;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,iEAA+C;AAAA,2DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,qEAAmD;AAAA,0DAAwC;AAAA,gEAA8C;AAAA,mEAAiD;AAAA,2DAAyC;AAAA,iEAA+C;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,oDAAkC;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,kEAAgD;AAAA,wDAAsC;AAAA,iEAA+C;AAAA,sEAAoD;AAAA,0DAAwC;AAAA,6DAA2C;AAAA,uEAAqD;AAAA,uDAAqC;AAAA,mEAAiD;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,iEAA+C;AAAA,2DAAwC"}
@@ -0,0 +1,3 @@
1
+ import { CommonAttributesDto } from '../../platformUtility/dtos/common.attributes.dto';
2
+ export declare class MaterialViewAttributesDto extends CommonAttributesDto {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaterialViewAttributesDto = void 0;
4
+ const common_attributes_dto_1 = require("../../platformUtility/dtos/common.attributes.dto");
5
+ class MaterialViewAttributesDto extends common_attributes_dto_1.CommonAttributesDto {
6
+ }
7
+ exports.MaterialViewAttributesDto = MaterialViewAttributesDto;
8
+ //# sourceMappingURL=material.view.attributes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"material.view.attributes.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/material.view.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,4FAAuF;AAEvF,MAAa,yBAA0B,SAAQ,2CAAmB;CAAG;AAArE,8DAAqE"}
@@ -26,6 +26,7 @@ export * from './mail.event.entity';
26
26
  export * from './mail.log.entity';
27
27
  export * from './mail.recipient.entity';
28
28
  export * from './mail.validation.entity';
29
+ export * from './material.view.entity';
29
30
  export * from './menu.entity';
30
31
  export * from './menu.role.entity';
31
32
  export * from './mobile.validation.entity';
@@ -42,6 +42,7 @@ __exportStar(require("./mail.event.entity"), exports);
42
42
  __exportStar(require("./mail.log.entity"), exports);
43
43
  __exportStar(require("./mail.recipient.entity"), exports);
44
44
  __exportStar(require("./mail.validation.entity"), exports);
45
+ __exportStar(require("./material.view.entity"), exports);
45
46
  __exportStar(require("./menu.entity"), exports);
46
47
  __exportStar(require("./menu.role.entity"), exports);
47
48
  __exportStar(require("./mobile.validation.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AAAA,8DAA4C;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,kDAAgC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,2DAAyC;AAAA,6DAA2C;AAAA,kDAAgC;AAAA,mDAAiC;AAAA,yDAAuC;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,wDAAsC;AAAA,uDAAqC;AAAA,uDAAqC;AAAA,gDAA8B;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,oDAAkC;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,gDAA8B;AAAA,qDAAmC;AAAA,6DAA2C;AAAA,wDAAsC;AAAA,iDAA+B;AAAA,8DAA4C;AAAA,sDAAoC;AAAA,kDAAgC;AAAA,uDAAqC;AAAA,yDAAuC;AAAA,2DAAyC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,oDAAkC;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,kDAAgC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,+DAA6C;AAAA,uDAAqC;AAAA,2DAAyC;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,qDAAmC;AAAA,gEAA8C;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,6DAA2C;AAAA,iEAA+C;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,6DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AAAA,8DAA4C;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,kDAAgC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,2DAAyC;AAAA,6DAA2C;AAAA,kDAAgC;AAAA,mDAAiC;AAAA,yDAAuC;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,wDAAsC;AAAA,uDAAqC;AAAA,uDAAqC;AAAA,gDAA8B;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,oDAAkC;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,yDAAuC;AAAA,gDAA8B;AAAA,qDAAmC;AAAA,6DAA2C;AAAA,wDAAsC;AAAA,iDAA+B;AAAA,8DAA4C;AAAA,sDAAoC;AAAA,kDAAgC;AAAA,uDAAqC;AAAA,yDAAuC;AAAA,2DAAyC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,oDAAkC;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,kDAAgC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,+DAA6C;AAAA,uDAAqC;AAAA,2DAAyC;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,qDAAmC;AAAA,gEAA8C;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,6DAA2C;AAAA,iEAA+C;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,6DAA0C"}
@@ -0,0 +1,10 @@
1
+ import { CommonEntity } from '../../common/libraries/common.entity';
2
+ import { MaterialViewAttributesDto } from '../dtos/material.view.attributes.dto';
3
+ export declare class MaterialViewEntity extends CommonEntity {
4
+ table_name: string;
5
+ active: boolean;
6
+ timing: string;
7
+ last_scheduled_time: Date;
8
+ last_run_time: Date;
9
+ attributes: MaterialViewAttributesDto;
10
+ }
@@ -0,0 +1,46 @@
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.MaterialViewEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const common_entity_1 = require("../../common/libraries/common.entity");
15
+ const material_view_attributes_dto_1 = require("../dtos/material.view.attributes.dto");
16
+ let MaterialViewEntity = class MaterialViewEntity extends common_entity_1.CommonEntity {
17
+ };
18
+ exports.MaterialViewEntity = MaterialViewEntity;
19
+ __decorate([
20
+ (0, typeorm_1.Column)(),
21
+ __metadata("design:type", String)
22
+ ], MaterialViewEntity.prototype, "table_name", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)(),
25
+ __metadata("design:type", Boolean)
26
+ ], MaterialViewEntity.prototype, "active", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)(),
29
+ __metadata("design:type", String)
30
+ ], MaterialViewEntity.prototype, "timing", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)(),
33
+ __metadata("design:type", Date)
34
+ ], MaterialViewEntity.prototype, "last_scheduled_time", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)(),
37
+ __metadata("design:type", Date)
38
+ ], MaterialViewEntity.prototype, "last_run_time", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)('json'),
41
+ __metadata("design:type", material_view_attributes_dto_1.MaterialViewAttributesDto)
42
+ ], MaterialViewEntity.prototype, "attributes", void 0);
43
+ exports.MaterialViewEntity = MaterialViewEntity = __decorate([
44
+ (0, typeorm_1.Entity)('sys_material_views')
45
+ ], MaterialViewEntity);
46
+ //# sourceMappingURL=material.view.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"material.view.entity.js","sourceRoot":"","sources":["../../../src/system/entities/material.view.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,wEAAoE;AACpE,uFAAiF;AAS1E,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAY;CAoBnD,CAAA;AApBY,gDAAkB;AAE3B;IADC,IAAA,gBAAM,GAAE;;sDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;kDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;kDACM;AAGf;IADC,IAAA,gBAAM,GAAE;8BACY,IAAI;+DAAC;AAG1B;IADC,IAAA,gBAAM,GAAE;8BACM,IAAI;yDAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,wDAAyB;sDAAC;6BAjB7B,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,kBAAkB,CAoB9B"}
@@ -15,6 +15,8 @@ export declare class ReportEntity extends CommonEntity {
15
15
  name: string;
16
16
  description: string;
17
17
  query_id: number;
18
+ pre_script_id: number;
19
+ post_script_id: number;
18
20
  route: string;
19
21
  restricted_query: string;
20
22
  restricted_columns: string;
@@ -23,6 +25,8 @@ export declare class ReportEntity extends CommonEntity {
23
25
  includes: string;
24
26
  attributes: any;
25
27
  query: SystemScriptEntity;
28
+ pre_script: SystemScriptEntity;
29
+ post_script: SystemScriptEntity;
26
30
  alias: ReportColumnEntity[];
27
31
  params: ReportParamEntity[];
28
32
  columns: ColumnEntity[];
@@ -36,6 +36,14 @@ __decorate([
36
36
  (0, typeorm_1.Column)(),
37
37
  __metadata("design:type", Number)
38
38
  ], ReportEntity.prototype, "query_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)(),
41
+ __metadata("design:type", Number)
42
+ ], ReportEntity.prototype, "pre_script_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)(),
45
+ __metadata("design:type", Number)
46
+ ], ReportEntity.prototype, "post_script_id", void 0);
39
47
  __decorate([
40
48
  (0, typeorm_1.Column)(),
41
49
  __metadata("design:type", String)
@@ -69,6 +77,16 @@ __decorate([
69
77
  (0, typeorm_1.JoinColumn)({ name: 'query_id' }),
70
78
  __metadata("design:type", system_script_entity_1.SystemScriptEntity)
71
79
  ], ReportEntity.prototype, "query", void 0);
80
+ __decorate([
81
+ (0, typeorm_1.ManyToOne)(() => system_script_entity_1.SystemScriptEntity),
82
+ (0, typeorm_1.JoinColumn)({ name: 'pre_script_id' }),
83
+ __metadata("design:type", system_script_entity_1.SystemScriptEntity)
84
+ ], ReportEntity.prototype, "pre_script", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.ManyToOne)(() => system_script_entity_1.SystemScriptEntity),
87
+ (0, typeorm_1.JoinColumn)({ name: 'post_script_id' }),
88
+ __metadata("design:type", system_script_entity_1.SystemScriptEntity)
89
+ ], ReportEntity.prototype, "post_script", void 0);
72
90
  __decorate([
73
91
  (0, typeorm_1.OneToMany)(() => report_column_entity_1.ReportColumnEntity, (alias) => alias.report),
74
92
  __metadata("design:type", Array)
@@ -1 +1 @@
1
- {"version":3,"file":"report.entity.js","sourceRoot":"","sources":["../../../src/system/entities/report.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkG;AAClG,wEAAoE;AACpE,qEAAiE;AAEjE,mDAA+C;AAE/C,+DAA2D;AAC3D,iEAA4D;AAC5D,iEAA4D;AAC5D,+DAA0D;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IAAA,mBAAS,EAAC;QACP,IAAI,EAAE,oBAAoB;QAC1B,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QACjC,iBAAiB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;KAC3C,CAAC;;6CACsB;AAGxB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qDAAwB,EAAE,CAAC,oBAAoB,EAAE,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC;;0DAChD;AAQjD;IANC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,wCAAkB,CAAC;IACpC,IAAA,mBAAS,EAAC;QACP,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QACjC,iBAAiB,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE;KACjD,CAAC;;mDACkC;AAGpC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAgB,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC;;kDACxC;AAE+B;IAA/D,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAkB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;;6CAA+B;AAQ9F;IANC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;IAC5B,IAAA,mBAAS,EAAC;QACP,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QACjC,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KACzC,CAAC;;2CACkB;uBAhFX,YAAY;IADxB,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,YAAY,CAqFxB"}
@@ -56,6 +56,7 @@ import { MailEventEntity } from './entities/mail.event.entity';
56
56
  import { MailLogEntity } from './entities/mail.log.entity';
57
57
  import { MailRecipientEntity } from './entities/mail.recipient.entity';
58
58
  import { MailValidationEntity } from './entities/mail.validation.entity';
59
+ import { MaterialViewEntity } from './entities/material.view.entity';
59
60
  import { MenuEntity } from './entities/menu.entity';
60
61
  import { MenuRoleEntity } from './entities/menu.role.entity';
61
62
  import { MobileValidationEntity } from './entities/mobile.validation.entity';
@@ -102,14 +103,17 @@ import { CredentialIpJob } from './jobs/credential.ip.job';
102
103
  import { DataLogJob } from './jobs/data.log.job';
103
104
  import { DocumentJob } from './jobs/document.job';
104
105
  import { ExecuteCodeFixJob } from './jobs/execute.code.fix.job';
106
+ import { ExecuteMaterialViewJob } from './jobs/execute.material.view.job';
105
107
  import { ExecuteRecurringQueryJob } from './jobs/execute.recurring.query.job';
106
108
  import { MailEventJob } from './jobs/mail.event.job';
107
109
  import { MailRecipientJob } from './jobs/mail.recipient.job';
108
110
  import { MailValidationJob } from './jobs/mail.validation.job';
111
+ import { MaterialViewJob } from './jobs/material.view.job';
109
112
  import { MobileValidationJob } from './jobs/mobile.validation.job';
110
113
  import { ModelScannerJob } from './jobs/model.scanner.job';
111
114
  import { PropertyJob } from './jobs/property.job';
112
115
  import { RecurringQueryJob } from './jobs/recurring.query.job';
116
+ import { RefreshMaterialViewJob } from './jobs/refresh.material.view.job';
113
117
  import { RefreshPropertyCacheJob } from './jobs/refresh.property.cache.job';
114
118
  import { RelationshipMapperJob } from './jobs/relationship.mapper.job';
115
119
  import { ReportColumnSyncJob } from './jobs/report.column.sync.job';
@@ -174,6 +178,7 @@ import { DocumentSubscriber } from './subscribers/document.subscriber';
174
178
  import { MailEventSubscriber } from './subscribers/mail.event.subscriber';
175
179
  import { MailRecipientSubscriber } from './subscribers/mail.recipient.subscriber';
176
180
  import { MailValidationSubscriber } from './subscribers/mail.validation.subscriber';
181
+ import { MaterialViewSubscriber } from './subscribers/material.view.subscriber';
177
182
  import { MobileValidationSubscriber } from './subscribers/mobile.validation.subscriber';
178
183
  import { PropertySubscriber } from './subscribers/property.subscriber';
179
184
  import { RecurringQuerySubscriber } from './subscribers/recurring.query.subscriber';
@@ -187,12 +192,12 @@ declare const es6Classes: {
187
192
  commands: (typeof DbScannerCommand | typeof DynamoScannerCommand | typeof EventQueueCommand | typeof JobsScannerCommand | typeof ModelScannerCommand | typeof ReportScannerCommand | typeof ServiceScannerCommand | typeof SesEventTrackingCommand | typeof SyncAllCommand)[];
188
193
  controllers: (typeof BaseController | typeof DataController | typeof FormController | typeof MenuController | typeof PreferenceController | typeof ReportController | typeof UploadController | typeof UserPreferenceController)[];
189
194
  dtos: (typeof ClientCredentialAttributesDto | typeof FileUploadSpecDto | typeof S3UploadOptionsDto | typeof LocalFileS3UploadDto | typeof S3ObjectInfoDto | typeof AddDirectMenuDto | typeof ModelFormPreferenceCreationDto | typeof UserPreferenceCreationDto | typeof FileUploadDto | typeof AddCommentDto | typeof ClientCredentialDto | typeof JobRecordParamDto | typeof MailValidationDto | typeof MobileValidationDto | typeof ModelAllowedColumnDto | typeof OtpGenerationDto | typeof ValidationOptionsDto)[];
190
- entities: (typeof LookupTypeEntity | typeof UserGroupRoleEntity | typeof UserGroupEntity | typeof UserGroupMemberEntity | typeof BusinessRuleRoleEntity | typeof BusinessRuleEntity | typeof ColumnDefinitionEntity | typeof ColumnEntity | typeof ModelEntity | typeof FormPreferenceEntity | typeof ModelColumnEntity | typeof RelationshipEntity | typeof ModelRelationshipEntity | typeof ModelRoleEntity | typeof FormColumnEntity | typeof SystemScriptEntity | typeof UiActionPermissionEntity | typeof UiActionEntity | typeof UiActionRoleEntity | typeof PrimaryAxisEntity | typeof ChartEntity | typeof ClientEntity | typeof ClientCredentialEntity | typeof CredentialIpEntity | typeof ClientScriptEntity | typeof CodeFixScriptEntity | typeof CodeFixLogEntity | typeof DocumentEntity | typeof CommentEntity | typeof DataLogEntity | typeof DynamoTableEntity | typeof EventDetailEntity | typeof EventQueueEntity | typeof MailLogEntity | typeof MailEventEntity | typeof MailRecipientEntity | typeof MailValidationEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof ModuleEntity | typeof ModuleMenuEntity | typeof PageDefinitionEntity | typeof ParentMenuEntity | typeof MobileValidationEntity | typeof OpenPropertyEntity | typeof RecurringQueryEntity | typeof ReportFilterEntity | typeof ReportEntity | typeof ReportRelationshipEntity | typeof ReportRoleEntity | typeof ReportColumnEntity | typeof ScheduledEventEntity | typeof SecurityRuleEntity | typeof ServiceEntity | typeof SmsTemplateEntity | typeof SmsMessageEntity | typeof UserGroupPermissionEntity | typeof UserPreferenceEntity | typeof WhatsappTemplateEntity)[];
195
+ entities: (typeof LookupTypeEntity | typeof UserGroupRoleEntity | typeof UserGroupEntity | typeof UserGroupMemberEntity | typeof BusinessRuleRoleEntity | typeof BusinessRuleEntity | typeof ColumnDefinitionEntity | typeof ColumnEntity | typeof ModelEntity | typeof FormPreferenceEntity | typeof ModelColumnEntity | typeof RelationshipEntity | typeof ModelRelationshipEntity | typeof ModelRoleEntity | typeof FormColumnEntity | typeof SystemScriptEntity | typeof UiActionPermissionEntity | typeof UiActionEntity | typeof UiActionRoleEntity | typeof PrimaryAxisEntity | typeof ChartEntity | typeof ClientEntity | typeof ClientCredentialEntity | typeof CredentialIpEntity | typeof ClientScriptEntity | typeof CodeFixScriptEntity | typeof CodeFixLogEntity | typeof DocumentEntity | typeof CommentEntity | typeof DataLogEntity | typeof DynamoTableEntity | typeof EventDetailEntity | typeof EventQueueEntity | typeof MailLogEntity | typeof MailEventEntity | typeof MailRecipientEntity | typeof MailValidationEntity | typeof MaterialViewEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof ModuleEntity | typeof ModuleMenuEntity | typeof PageDefinitionEntity | typeof ParentMenuEntity | typeof MobileValidationEntity | typeof OpenPropertyEntity | typeof RecurringQueryEntity | typeof ReportFilterEntity | typeof ReportEntity | typeof ReportRelationshipEntity | typeof ReportRoleEntity | typeof ReportColumnEntity | typeof ScheduledEventEntity | typeof SecurityRuleEntity | typeof ServiceEntity | typeof SmsTemplateEntity | typeof SmsMessageEntity | typeof UserGroupPermissionEntity | typeof UserPreferenceEntity | typeof WhatsappTemplateEntity)[];
191
196
  interceptors: (typeof SentryInterceptor)[];
192
- jobs: (typeof ExecuteCodeFixJob | typeof SetScheduledEventJob | typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof SyncAllCodeJob | typeof ClientCredentialJob | typeof ClientJob | typeof CodeFixLogJob | typeof SetCodefixScriptEventJob | typeof CodeFixScriptJob | typeof ColumnMapperJob | typeof CommentJob | typeof CredentialIpJob | typeof DataLogJob | typeof DocumentJob | typeof ExecuteRecurringQueryJob | typeof MailEventJob | typeof MailRecipientJob | typeof MailValidationJob | typeof MobileValidationJob | typeof RefreshPropertyCacheJob | typeof PropertyJob | typeof SetRecurringQueryEventJob | typeof RecurringQueryJob | typeof RelationshipMapperJob | typeof ScheduledEventJob | typeof SetEventQueueJob | typeof SmsMessageJob | typeof SqsPollingJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
197
+ jobs: (typeof ExecuteCodeFixJob | typeof SetScheduledEventJob | typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof SyncAllCodeJob | typeof ClientCredentialJob | typeof ClientJob | typeof CodeFixLogJob | typeof SetCodefixScriptEventJob | typeof CodeFixScriptJob | typeof ColumnMapperJob | typeof CommentJob | typeof CredentialIpJob | typeof DataLogJob | typeof DocumentJob | typeof ExecuteMaterialViewJob | typeof ExecuteRecurringQueryJob | typeof MailEventJob | typeof MailRecipientJob | typeof MailValidationJob | typeof RefreshMaterialViewJob | typeof MaterialViewJob | typeof MobileValidationJob | typeof RefreshPropertyCacheJob | typeof PropertyJob | typeof SetRecurringQueryEventJob | typeof RecurringQueryJob | typeof RelationshipMapperJob | typeof ScheduledEventJob | typeof SetEventQueueJob | typeof SmsMessageJob | typeof SqsPollingJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
193
198
  libraries: (typeof ExecuteCodeFix | typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof SyncDynamoTables | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator | typeof ProcessMenuCreation | typeof CodeEvaluator)[];
194
199
  modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
195
200
  services: (typeof PropertyService | typeof AwsS3Service | typeof UploadService | typeof ScheduledEventService | typeof SecurityRuleService | typeof UiActionService | typeof ModelService | typeof CommonService | typeof EventDetailService | typeof EventQueueService | typeof ClientScriptService | typeof PreferenceService | typeof BusinessRuleService | typeof ListService | typeof FormService | typeof MenuService | typeof UserPreferenceService | typeof ReportService | typeof ClientCredentialService | typeof ColumnService | typeof DocumentService | typeof CommentService | typeof Es6JobsService | typeof Es6Service | typeof InternalServerConnectService | typeof MailValidationService | typeof MobileValidationService)[];
196
- subscribers: (typeof ClientCredentialSubscriber | typeof ClientSubscriber | typeof CodeFixLogSubscriber | typeof CodeFixScriptSubscriber | typeof ColumnSubscriber | typeof CommentSubscriber | typeof CredentialIpSubscriber | typeof DataLogSubscriber | typeof DocumentSubscriber | typeof MailEventSubscriber | typeof MailRecipientSubscriber | typeof MailValidationSubscriber | typeof MobileValidationSubscriber | typeof PropertySubscriber | typeof RecurringQuerySubscriber | typeof RelationshipSubscriber | typeof ScheduledEventSubscriber | typeof SmsMessageSubscriber | typeof UserGroupMemberSubscriber | typeof UserGroupPermissionSubscriber | typeof UserGroupRoleSubscriber)[];
201
+ subscribers: (typeof ClientCredentialSubscriber | typeof ClientSubscriber | typeof CodeFixLogSubscriber | typeof CodeFixScriptSubscriber | typeof ColumnSubscriber | typeof CommentSubscriber | typeof CredentialIpSubscriber | typeof DataLogSubscriber | typeof DocumentSubscriber | typeof MailEventSubscriber | typeof MailRecipientSubscriber | typeof MailValidationSubscriber | typeof MaterialViewSubscriber | typeof MobileValidationSubscriber | typeof PropertySubscriber | typeof RecurringQuerySubscriber | typeof RelationshipSubscriber | typeof ScheduledEventSubscriber | typeof SmsMessageSubscriber | typeof UserGroupMemberSubscriber | typeof UserGroupPermissionSubscriber | typeof UserGroupRoleSubscriber)[];
197
202
  };
198
203
  export default es6Classes;
@@ -35,6 +35,7 @@ const local_file_s3_upload_dto_1 = require("./dtos/local.file.s3.upload.dto");
35
35
  const mail_event_attributes_dto_1 = require("./dtos/mail.event.attributes.dto");
36
36
  const mail_recipient_attributes_dto_1 = require("./dtos/mail.recipient.attributes.dto");
37
37
  const mail_validation_dto_1 = require("./dtos/mail.validation.dto");
38
+ const material_view_attributes_dto_1 = require("./dtos/material.view.attributes.dto");
38
39
  const menu_list_preference_creation_dto_1 = require("./dtos/menu.list.preference.creation.dto");
39
40
  const mobile_validation_dto_1 = require("./dtos/mobile.validation.dto");
40
41
  const model_allowed_column_dto_1 = require("./dtos/model.allowed.column.dto");
@@ -74,6 +75,7 @@ const mail_event_entity_1 = require("./entities/mail.event.entity");
74
75
  const mail_log_entity_1 = require("./entities/mail.log.entity");
75
76
  const mail_recipient_entity_1 = require("./entities/mail.recipient.entity");
76
77
  const mail_validation_entity_1 = require("./entities/mail.validation.entity");
78
+ const material_view_entity_1 = require("./entities/material.view.entity");
77
79
  const menu_entity_1 = require("./entities/menu.entity");
78
80
  const menu_role_entity_1 = require("./entities/menu.role.entity");
79
81
  const mobile_validation_entity_1 = require("./entities/mobile.validation.entity");
@@ -123,14 +125,17 @@ const credential_ip_job_1 = require("./jobs/credential.ip.job");
123
125
  const data_log_job_1 = require("./jobs/data.log.job");
124
126
  const document_job_1 = require("./jobs/document.job");
125
127
  const execute_code_fix_job_1 = require("./jobs/execute.code.fix.job");
128
+ const execute_material_view_job_1 = require("./jobs/execute.material.view.job");
126
129
  const execute_recurring_query_job_1 = require("./jobs/execute.recurring.query.job");
127
130
  const mail_event_job_1 = require("./jobs/mail.event.job");
128
131
  const mail_recipient_job_1 = require("./jobs/mail.recipient.job");
129
132
  const mail_validation_job_1 = require("./jobs/mail.validation.job");
133
+ const material_view_job_1 = require("./jobs/material.view.job");
130
134
  const mobile_validation_job_1 = require("./jobs/mobile.validation.job");
131
135
  const model_scanner_job_1 = require("./jobs/model.scanner.job");
132
136
  const property_job_1 = require("./jobs/property.job");
133
137
  const recurring_query_job_1 = require("./jobs/recurring.query.job");
138
+ const refresh_material_view_job_1 = require("./jobs/refresh.material.view.job");
134
139
  const refresh_property_cache_job_1 = require("./jobs/refresh.property.cache.job");
135
140
  const relationship_mapper_job_1 = require("./jobs/relationship.mapper.job");
136
141
  const report_column_sync_job_1 = require("./jobs/report.column.sync.job");
@@ -195,6 +200,7 @@ const document_subscriber_1 = require("./subscribers/document.subscriber");
195
200
  const mail_event_subscriber_1 = require("./subscribers/mail.event.subscriber");
196
201
  const mail_recipient_subscriber_1 = require("./subscribers/mail.recipient.subscriber");
197
202
  const mail_validation_subscriber_1 = require("./subscribers/mail.validation.subscriber");
203
+ const material_view_subscriber_1 = require("./subscribers/material.view.subscriber");
198
204
  const mobile_validation_subscriber_1 = require("./subscribers/mobile.validation.subscriber");
199
205
  const property_subscriber_1 = require("./subscribers/property.subscriber");
200
206
  const recurring_query_subscriber_1 = require("./subscribers/recurring.query.subscriber");
@@ -245,6 +251,7 @@ const es6Classes = {
245
251
  mail_event_attributes_dto_1.MailEventAttributesDto,
246
252
  mail_recipient_attributes_dto_1.MailRecipientAttributesDto,
247
253
  mail_validation_dto_1.MailValidationDto,
254
+ material_view_attributes_dto_1.MaterialViewAttributesDto,
248
255
  menu_list_preference_creation_dto_1.MenuListPreferenceCreationDto,
249
256
  mobile_validation_dto_1.MobileValidationDto,
250
257
  model_allowed_column_dto_1.ModelAllowedColumnDto,
@@ -286,6 +293,7 @@ const es6Classes = {
286
293
  mail_log_entity_1.MailLogEntity,
287
294
  mail_recipient_entity_1.MailRecipientEntity,
288
295
  mail_validation_entity_1.MailValidationEntity,
296
+ material_view_entity_1.MaterialViewEntity,
289
297
  menu_entity_1.MenuEntity,
290
298
  menu_role_entity_1.MenuRoleEntity,
291
299
  mobile_validation_entity_1.MobileValidationEntity,
@@ -337,14 +345,17 @@ const es6Classes = {
337
345
  data_log_job_1.DataLogJob,
338
346
  document_job_1.DocumentJob,
339
347
  execute_code_fix_job_1.ExecuteCodeFixJob,
348
+ execute_material_view_job_1.ExecuteMaterialViewJob,
340
349
  execute_recurring_query_job_1.ExecuteRecurringQueryJob,
341
350
  mail_event_job_1.MailEventJob,
342
351
  mail_recipient_job_1.MailRecipientJob,
343
352
  mail_validation_job_1.MailValidationJob,
353
+ material_view_job_1.MaterialViewJob,
344
354
  mobile_validation_job_1.MobileValidationJob,
345
355
  model_scanner_job_1.ModelScannerJob,
346
356
  property_job_1.PropertyJob,
347
357
  recurring_query_job_1.RecurringQueryJob,
358
+ refresh_material_view_job_1.RefreshMaterialViewJob,
348
359
  refresh_property_cache_job_1.RefreshPropertyCacheJob,
349
360
  relationship_mapper_job_1.RelationshipMapperJob,
350
361
  report_column_sync_job_1.ReportColumnSyncJob,
@@ -414,6 +425,7 @@ const es6Classes = {
414
425
  mail_event_subscriber_1.MailEventSubscriber,
415
426
  mail_recipient_subscriber_1.MailRecipientSubscriber,
416
427
  mail_validation_subscriber_1.MailValidationSubscriber,
428
+ material_view_subscriber_1.MaterialViewSubscriber,
417
429
  mobile_validation_subscriber_1.MobileValidationSubscriber,
418
430
  property_subscriber_1.PropertySubscriber,
419
431
  recurring_query_subscriber_1.RecurringQuerySubscriber,
@@ -1 +1 @@
1
- {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,sEAAiE;AACjE,8EAAyE;AACzE,wEAAmE;AACnE,0EAAqE;AACrE,4EAAuE;AACvE,8EAAyE;AACzE,gFAA2E;AAC3E,sFAAgF;AAChF,kEAA6D;AAC7D,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,+EAA2E;AAC3E,uEAAmE;AACnE,uEAAmE;AACnE,yFAAoF;AACpF,4DAAuD;AACvD,oEAA8D;AAC9D,wEAAmE;AACnE,8FAAwF;AACxF,wEAAmE;AACnE,oFAA6E;AAC7E,0FAAmF;AAC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c;QACd,sBAAS;QACT,2CAAmB;QACnB,+CAAqB;QACrB,qCAAgB;KACnB;IACD,SAAS,EAAE,CAAC,qCAAgB,EAAE,yCAAkB,CAAC;IACjD,QAAQ,EAAE;QACN,6BAAY;QACZ,2CAAmB;QACnB,mDAAuB;QACvB,2CAAmB;QACnB,8BAAa;QACb,gCAAc;QACd,8BAAa;QACb,kCAAe;QACf,iCAAc;QACd,wBAAU;QACV,yCAAkB;QAClB,uCAAiB;QACjB,0BAAW;QACX,8DAA4B;QAC5B,0BAAW;QACX,+CAAqB;QACrB,0BAAW;QACX,mDAAuB;QACvB,4BAAY;QACZ,sCAAiB;QACjB,kCAAe;QACf,8BAAa;QACb,+CAAqB;QACrB,2CAAmB;QACnB,mCAAe;QACf,8BAAa;QACb,+CAAqB;KACxB;IACD,WAAW,EAAE;QACT,yDAA0B;QAC1B,oCAAgB;QAChB,8CAAoB;QACpB,oDAAuB;QACvB,oCAAgB;QAChB,sCAAiB;QACjB,iDAAsB;QACtB,uCAAiB;QACjB,wCAAkB;QAClB,2CAAmB;QACnB,mDAAuB;QACvB,qDAAwB;QACxB,yDAA0B;QAC1B,wCAAkB;QAClB,qDAAwB;QACxB,gDAAsB;QACtB,qDAAwB;QACxB,6CAAoB;QACpB,wDAAyB;QACzB,gEAA6B;QAC7B,oDAAuB;KAC1B;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,sEAAiE;AACjE,8EAAyE;AACzE,wEAAmE;AACnE,0EAAqE;AACrE,4EAAuE;AACvE,8EAAyE;AACzE,gFAA2E;AAC3E,sFAAgF;AAChF,kEAA6D;AAC7D,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,+EAA2E;AAC3E,uEAAmE;AACnE,uEAAmE;AACnE,yFAAoF;AACpF,4DAAuD;AACvD,oEAA8D;AAC9D,w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iB;QACjB,uDAAwB;QACxB,sCAAgB;QAChB,yDAAyB;QACzB,8CAAoB;QACpB,+BAAa;QACb,+BAAa;QACb,kCAAc;QACd,0CAAkB;QAClB,kDAAsB;QACtB,sCAAgB;KACnB;IACD,SAAS,EAAE;QACP,4DAA2B;QAC3B,0DAA0B;QAC1B,8BAAa;QACb,8BAAa;QACb,iCAAc;QACd,sBAAS;QACT,2CAAmB;QACnB,+CAAqB;QACrB,qCAAgB;KACnB;IACD,SAAS,EAAE,CAAC,qCAAgB,EAAE,yCAAkB,CAAC;IACjD,QAAQ,EAAE;QACN,6BAAY;QACZ,2CAAmB;QACnB,mDAAuB;QACvB,2CAAmB;QACnB,8BAAa;QACb,gCAAc;QACd,8BAAa;QACb,kCAAe;QACf,iCAAc;QACd,wBAAU;QACV,yCAAkB;QAClB,uCAAiB;QACjB,0BAAW;QACX,8DAA4B;QAC5B,0BAAW;QACX,+CAAqB;QACrB,0BAAW;QACX,mDAAuB;QACvB,4BAAY;QACZ,sCAAiB;QACjB,kCAAe;QACf,8BAAa;QACb,+CAAqB;QACrB,2CAAmB;QACnB,mCAAe;QACf,8BAAa;QACb,+CAAqB;KACxB;IACD,WAAW,EAAE;QACT,yDAA0B;QAC1B,oCAAgB;QAChB,8CAAoB;QACpB,oDAAuB;QACvB,oCAAgB;QAChB,sCAAiB;QACjB,iDAAsB;QACtB,uCAAiB;QACjB,wCAAkB;QAClB,2CAAmB;QACnB,mDAAuB;QACvB,qDAAwB;QACxB,iDAAsB;QACtB,yDAA0B;QAC1B,wCAAkB;QAClB,qDAAwB;QACxB,gDAAsB;QACtB,qDAAwB;QACxB,6CAAoB;QACpB,wDAAyB;QACzB,gEAA6B;QAC7B,oDAAuB;KAC1B;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { CommonJob } from '../../common/libraries/common.job';
2
+ import { QueueService } from '../../platformUtility/services/queue.service';
3
+ import { SqlService } from '../../platformUtility/services/sql.service';
4
+ import { MaterialViewEntity } from '../entities/material.view.entity';
5
+ export declare class ExecuteMaterialViewJob extends CommonJob {
6
+ protected readonly queueService: QueueService;
7
+ private readonly sqlService;
8
+ protected timeout: number;
9
+ constructor(queueService: QueueService, sqlService: SqlService);
10
+ handle(id: number): Promise<MaterialViewEntity>;
11
+ }
@@ -0,0 +1,43 @@
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.ExecuteMaterialViewJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const common_job_1 = require("../../common/libraries/common.job");
15
+ const queue_service_1 = require("../../platformUtility/services/queue.service");
16
+ const sql_service_1 = require("../../platformUtility/services/sql.service");
17
+ const material_view_entity_1 = require("../entities/material.view.entity");
18
+ let ExecuteMaterialViewJob = class ExecuteMaterialViewJob extends common_job_1.CommonJob {
19
+ constructor(queueService, sqlService) {
20
+ super('4231f833daffa443023e954b0eb026c4');
21
+ this.queueService = queueService;
22
+ this.sqlService = sqlService;
23
+ this.timeout = 300000;
24
+ }
25
+ async handle(id) {
26
+ if (!id)
27
+ return;
28
+ const view = await material_view_entity_1.MaterialViewEntity.first(+id);
29
+ if (!view?.active)
30
+ return;
31
+ const sql = `REFRESH MATERIALIZED VIEW CONCURRENTLY ${view.table_name}`;
32
+ await this.sqlService.sql(sql);
33
+ view.last_run_time = new Date();
34
+ return view.save();
35
+ }
36
+ };
37
+ exports.ExecuteMaterialViewJob = ExecuteMaterialViewJob;
38
+ exports.ExecuteMaterialViewJob = ExecuteMaterialViewJob = __decorate([
39
+ (0, common_1.Injectable)(),
40
+ __metadata("design:paramtypes", [queue_service_1.QueueService,
41
+ sql_service_1.SqlService])
42
+ ], ExecuteMaterialViewJob);
43
+ //# sourceMappingURL=execute.material.view.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.material.view.job.js","sourceRoot":"","sources":["../../../src/system/jobs/execute.material.view.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,kEAA8D;AAC9D,gFAA4E;AAC5E,4EAAwE;AACxE,2EAAsE;AAG/D,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,sBAAS;IAGjD,YACuB,YAA0B,EAC5B,UAAsB;QAEvC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAHvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,eAAU,GAAV,UAAU,CAAY;QAJjC,YAAO,GAAW,MAAM,CAAC;IAOnC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,EAAU;QACnB,IAAI,CAAC,EAAE;YAAE,OAAO;QAEhB,MAAM,IAAI,GAAG,MAAM,yCAAkB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,EAAE,MAAM;YAAE,OAAO;QAE1B,MAAM,GAAG,GAAG,0CAA0C,IAAI,CAAC,UAAU,EAAE,CAAC;QACxE,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAE/B,IAAI,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;CACJ,CAAA;AArBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAK4B,4BAAY;QAChB,wBAAU;GALlC,sBAAsB,CAqBlC"}
@@ -8,14 +8,17 @@ export * from './credential.ip.job';
8
8
  export * from './data.log.job';
9
9
  export * from './document.job';
10
10
  export * from './execute.code.fix.job';
11
+ export * from './execute.material.view.job';
11
12
  export * from './execute.recurring.query.job';
12
13
  export * from './mail.event.job';
13
14
  export * from './mail.recipient.job';
14
15
  export * from './mail.validation.job';
16
+ export * from './material.view.job';
15
17
  export * from './mobile.validation.job';
16
18
  export * from './model.scanner.job';
17
19
  export * from './property.job';
18
20
  export * from './recurring.query.job';
21
+ export * from './refresh.material.view.job';
19
22
  export * from './refresh.property.cache.job';
20
23
  export * from './relationship.mapper.job';
21
24
  export * from './report.column.sync.job';
@@ -24,14 +24,17 @@ __exportStar(require("./credential.ip.job"), exports);
24
24
  __exportStar(require("./data.log.job"), exports);
25
25
  __exportStar(require("./document.job"), exports);
26
26
  __exportStar(require("./execute.code.fix.job"), exports);
27
+ __exportStar(require("./execute.material.view.job"), exports);
27
28
  __exportStar(require("./execute.recurring.query.job"), exports);
28
29
  __exportStar(require("./mail.event.job"), exports);
29
30
  __exportStar(require("./mail.recipient.job"), exports);
30
31
  __exportStar(require("./mail.validation.job"), exports);
32
+ __exportStar(require("./material.view.job"), exports);
31
33
  __exportStar(require("./mobile.validation.job"), exports);
32
34
  __exportStar(require("./model.scanner.job"), exports);
33
35
  __exportStar(require("./property.job"), exports);
34
36
  __exportStar(require("./recurring.query.job"), exports);
37
+ __exportStar(require("./refresh.material.view.job"), exports);
35
38
  __exportStar(require("./refresh.property.cache.job"), exports);
36
39
  __exportStar(require("./relationship.mapper.job"), exports);
37
40
  __exportStar(require("./report.column.sync.job"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AAAA,+CAA6B;AAAA,qDAAmC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,gDAA8B;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,iDAA+B;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,wDAAsC;AAAA,+DAA6C;AAAA,4DAA0C;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,iEAA+C;AAAA,wDAAsC;AAAA,kEAAgD;AAAA,4DAA0C;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,sDAAoC;AAAA,0DAAwC;AAAA,8DAA4C;AAAA,wDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AAAA,+CAA6B;AAAA,qDAAmC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,gDAA8B;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,iDAA+B;AAAA,yDAAuC;AAAA,8DAA4C;AAAA,gEAA8C;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,4DAA0C;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,iEAA+C;AAAA,wDAAsC;AAAA,kEAAgD;AAAA,4DAA0C;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,sDAAoC;AAAA,0DAAwC;AAAA,8DAA4C;AAAA,wDAAqC"}
@@ -0,0 +1,13 @@
1
+ import { DatabaseEventDto } from '../../common/dtos/database.event.dto';
2
+ import { CommonJob } from '../../common/libraries/common.job';
3
+ import { QueueService } from '../../platformUtility/services/queue.service';
4
+ import { MaterialViewEntity } from '../entities/material.view.entity';
5
+ import { RefreshMaterialViewJob } from './refresh.material.view.job';
6
+ export declare class MaterialViewJob extends CommonJob {
7
+ protected readonly queueService: QueueService;
8
+ protected refreshMaterialViewJob: RefreshMaterialViewJob;
9
+ constructor(queueService: QueueService, refreshMaterialViewJob: RefreshMaterialViewJob);
10
+ handle(evt: DatabaseEventDto<MaterialViewEntity>): Promise<MaterialViewEntity>;
11
+ private setSchedule;
12
+ private cleanRecord;
13
+ }
@@ -0,0 +1,50 @@
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.MaterialViewJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const date_fns_1 = require("date-fns");
15
+ const common_job_1 = require("../../common/libraries/common.job");
16
+ const queue_service_1 = require("../../platformUtility/services/queue.service");
17
+ const material_view_entity_1 = require("../entities/material.view.entity");
18
+ const refresh_material_view_job_1 = require("./refresh.material.view.job");
19
+ const SourceHash = require("../../config/source.hash");
20
+ let MaterialViewJob = class MaterialViewJob extends common_job_1.CommonJob {
21
+ constructor(queueService, refreshMaterialViewJob) {
22
+ super('bacdea17d6822f984b34954257acebcf');
23
+ this.queueService = queueService;
24
+ this.refreshMaterialViewJob = refreshMaterialViewJob;
25
+ }
26
+ async handle(evt) {
27
+ await this.setSchedule(evt);
28
+ return evt.entity;
29
+ }
30
+ async setSchedule(evt) {
31
+ const trackingColumns = ['timing', 'active'];
32
+ if (!this.isColumnUpdated(evt, trackingColumns))
33
+ return;
34
+ await this.cleanRecord(evt);
35
+ return this.refreshMaterialViewJob.dispatch(evt.entity.id);
36
+ }
37
+ async cleanRecord(evt) {
38
+ await this.refreshMaterialViewJob.deleteActiveEvents({ source_type: SourceHash.materialView, source_id: evt.entity.id });
39
+ const r = await material_view_entity_1.MaterialViewEntity.first(evt.entity.id);
40
+ r.last_scheduled_time = (0, date_fns_1.subMinutes)(new Date(), 1);
41
+ return r.save();
42
+ }
43
+ };
44
+ exports.MaterialViewJob = MaterialViewJob;
45
+ exports.MaterialViewJob = MaterialViewJob = __decorate([
46
+ (0, common_1.Injectable)(),
47
+ __metadata("design:paramtypes", [queue_service_1.QueueService,
48
+ refresh_material_view_job_1.RefreshMaterialViewJob])
49
+ ], MaterialViewJob);
50
+ //# sourceMappingURL=material.view.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"material.view.job.js","sourceRoot":"","sources":["../../../src/system/jobs/material.view.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uCAAsC;AAEtC,kEAA8D;AAC9D,gFAA4E;AAC5E,2EAAsE;AACtE,2EAAqE;AACrE,uDAAwD;AAGjD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,sBAAS;IAC1C,YACuB,YAA0B,EACnC,sBAA8C;QAExD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAHvB,iBAAY,GAAZ,YAAY,CAAc;QACnC,2BAAsB,GAAtB,sBAAsB,CAAwB;IAG5D,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAyC;QAClD,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC5B,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,GAAyC;QAC/D,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC7C,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,CAAC;YAAE,OAAO;QAExD,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC/D,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,GAAyC;QAC/D,MAAM,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,EAAE,WAAW,EAAE,UAAU,CAAC,YAAY,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;QAEzH,MAAM,CAAC,GAAG,MAAM,yCAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACxD,CAAC,CAAC,mBAAmB,GAAG,IAAA,qBAAU,EAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QAElD,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;CACJ,CAAA;AA5BY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;qCAG4B,4BAAY;QACX,kDAAsB;GAHnD,eAAe,CA4B3B"}
@@ -0,0 +1,16 @@
1
+ import { CommonJob } from '../../common/libraries/common.job';
2
+ import { SourceColumnDto } from '../../platformUtility/dtos/source.column.dto';
3
+ import { QueueService } from '../../platformUtility/services/queue.service';
4
+ import { EventQueueEntity } from '../entities/event.queue.entity';
5
+ import { ScheduledEventService } from '../services/scheduled.event.service';
6
+ export declare class RefreshMaterialViewJob extends CommonJob {
7
+ protected readonly queueService: QueueService;
8
+ private readonly scheduledEventService;
9
+ protected timeout: number;
10
+ constructor(queueService: QueueService, scheduledEventService: ScheduledEventService);
11
+ handle(): Promise<void>;
12
+ private handleJob;
13
+ private getEligibleQueries;
14
+ deleteActiveEvents(source: SourceColumnDto): Promise<EventQueueEntity[]>;
15
+ private setNewEvent;
16
+ }
@@ -0,0 +1,85 @@
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.RefreshMaterialViewJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const date_fns_1 = require("date-fns");
15
+ const typeorm_1 = require("typeorm");
16
+ const common_job_1 = require("../../common/libraries/common.job");
17
+ const queue_service_1 = require("../../platformUtility/services/queue.service");
18
+ const event_detail_entity_1 = require("../entities/event.detail.entity");
19
+ const event_queue_entity_1 = require("../entities/event.queue.entity");
20
+ const material_view_entity_1 = require("../entities/material.view.entity");
21
+ const scheduled_event_service_1 = require("../services/scheduled.event.service");
22
+ const SourceHash = require("../../config/source.hash");
23
+ let RefreshMaterialViewJob = class RefreshMaterialViewJob extends common_job_1.CommonJob {
24
+ constructor(queueService, scheduledEventService) {
25
+ super('74be838a025f1060180afc77cc38d7ea');
26
+ this.queueService = queueService;
27
+ this.scheduledEventService = scheduledEventService;
28
+ this.timeout = 300000;
29
+ }
30
+ async handle() {
31
+ const queries = await this.getEligibleQueries();
32
+ const event = await event_detail_entity_1.EventDetailEntity.findOne({ where: { identifier: SourceHash.materialViewEvent } });
33
+ const startDate = (0, date_fns_1.subMinutes)(new Date(), 1);
34
+ const endDate = (0, date_fns_1.addYears)(new Date(), 1);
35
+ for (const view of queries) {
36
+ await this.handleJob(view, startDate, endDate, event);
37
+ }
38
+ }
39
+ async handleJob(view, startDate, endDate, event) {
40
+ const source = { source_type: SourceHash.materialView, source_id: view.id };
41
+ const dates = await this.scheduledEventService.getSchedules(source, view.timing, startDate, endDate);
42
+ if (!dates?.length)
43
+ return view;
44
+ for (const date of dates) {
45
+ await this.setNewEvent(view, date, event);
46
+ }
47
+ view.last_scheduled_time = dates.pop();
48
+ return view.save();
49
+ }
50
+ async getEligibleQueries() {
51
+ const d = (0, date_fns_1.addMinutes)(new Date(), 15);
52
+ return material_view_entity_1.MaterialViewEntity.find({
53
+ where: {
54
+ active: true,
55
+ last_scheduled_time: (0, typeorm_1.LessThanOrEqual)(d),
56
+ timing: (0, typeorm_1.Not)((0, typeorm_1.IsNull)()),
57
+ },
58
+ });
59
+ }
60
+ async deleteActiveEvents(source) {
61
+ const { source_type, source_id } = source;
62
+ return event_queue_entity_1.EventQueueEntity.softDelete({
63
+ source_type,
64
+ source_id,
65
+ start_time: (0, typeorm_1.IsNull)(),
66
+ });
67
+ }
68
+ async setNewEvent(view, date, event) {
69
+ const record = new event_queue_entity_1.EventQueueEntity();
70
+ record.name = event.name;
71
+ record.event_id = event.id;
72
+ record.parameter = view.id.toString();
73
+ record.scheduled_start_time = date;
74
+ record.source_type = SourceHash.materialView;
75
+ record.source_id = view.id;
76
+ return record.save();
77
+ }
78
+ };
79
+ exports.RefreshMaterialViewJob = RefreshMaterialViewJob;
80
+ exports.RefreshMaterialViewJob = RefreshMaterialViewJob = __decorate([
81
+ (0, common_1.Injectable)(),
82
+ __metadata("design:paramtypes", [queue_service_1.QueueService,
83
+ scheduled_event_service_1.ScheduledEventService])
84
+ ], RefreshMaterialViewJob);
85
+ //# sourceMappingURL=refresh.material.view.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refresh.material.view.job.js","sourceRoot":"","sources":["../../../src/system/jobs/refresh.material.view.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uCAA4D;AAC5D,q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,CAAC;QAEnC,MAAM,CAAC,WAAW,GAAG,UAAU,CAAC,YAAY,CAAC;QAC7C,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC;QAE3B,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;CACJ,CAAA;AAvEY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAK4B,4BAAY;QACL,+CAAqB;GALxD,sBAAsB,CAuElC"}
@@ -8,14 +8,17 @@ import { CredentialIpJob } from '../jobs/credential.ip.job';
8
8
  import { DataLogJob } from '../jobs/data.log.job';
9
9
  import { DocumentJob } from '../jobs/document.job';
10
10
  import { ExecuteCodeFixJob } from '../jobs/execute.code.fix.job';
11
+ import { ExecuteMaterialViewJob } from '../jobs/execute.material.view.job';
11
12
  import { ExecuteRecurringQueryJob } from '../jobs/execute.recurring.query.job';
12
13
  import { MailEventJob } from '../jobs/mail.event.job';
13
14
  import { MailRecipientJob } from '../jobs/mail.recipient.job';
14
15
  import { MailValidationJob } from '../jobs/mail.validation.job';
16
+ import { MaterialViewJob } from '../jobs/material.view.job';
15
17
  import { MobileValidationJob } from '../jobs/mobile.validation.job';
16
18
  import { ModelScannerJob } from '../jobs/model.scanner.job';
17
19
  import { PropertyJob } from '../jobs/property.job';
18
20
  import { RecurringQueryJob } from '../jobs/recurring.query.job';
21
+ import { RefreshMaterialViewJob } from '../jobs/refresh.material.view.job';
19
22
  import { RefreshPropertyCacheJob } from '../jobs/refresh.property.cache.job';
20
23
  import { RelationshipMapperJob } from '../jobs/relationship.mapper.job';
21
24
  import { ReportColumnSyncJob } from '../jobs/report.column.sync.job';
@@ -41,14 +44,17 @@ export declare class Es6JobsService {
41
44
  private readonly dataLogJob;
42
45
  private readonly documentJob;
43
46
  private readonly executeCodeFixJob;
47
+ private readonly executeMaterialViewJob;
44
48
  private readonly executeRecurringQueryJob;
45
49
  private readonly mailEventJob;
46
50
  private readonly mailRecipientJob;
47
51
  private readonly mailValidationJob;
52
+ private readonly materialViewJob;
48
53
  private readonly mobileValidationJob;
49
54
  private readonly modelScannerJob;
50
55
  private readonly propertyJob;
51
56
  private readonly recurringQueryJob;
57
+ private readonly refreshMaterialViewJob;
52
58
  private readonly refreshPropertyCacheJob;
53
59
  private readonly relationshipMapperJob;
54
60
  private readonly reportColumnSyncJob;
@@ -64,7 +70,7 @@ export declare class Es6JobsService {
64
70
  private readonly userGroupPermissionJob;
65
71
  private readonly userGroupRoleJob;
66
72
  private jobs;
67
- constructor(clientCredentialJob: ClientCredentialJob, clientJob: ClientJob, codeFixLogJob: CodeFixLogJob, codeFixScriptJob: CodeFixScriptJob, columnMapperJob: ColumnMapperJob, commentJob: CommentJob, credentialIpJob: CredentialIpJob, dataLogJob: DataLogJob, documentJob: DocumentJob, executeCodeFixJob: ExecuteCodeFixJob, executeRecurringQueryJob: ExecuteRecurringQueryJob, mailEventJob: MailEventJob, mailRecipientJob: MailRecipientJob, mailValidationJob: MailValidationJob, mobileValidationJob: MobileValidationJob, modelScannerJob: ModelScannerJob, propertyJob: PropertyJob, recurringQueryJob: RecurringQueryJob, refreshPropertyCacheJob: RefreshPropertyCacheJob, relationshipMapperJob: RelationshipMapperJob, reportColumnSyncJob: ReportColumnSyncJob, scheduledEventJob: ScheduledEventJob, setCodefixScriptEventJob: SetCodefixScriptEventJob, setEventQueueJob: SetEventQueueJob, setRecurringQueryEventJob: SetRecurringQueryEventJob, setScheduledEventJob: SetScheduledEventJob, smsMessageJob: SmsMessageJob, sqsPollingJob: SqsPollingJob, syncAllCodeJob: SyncAllCodeJob, userGroupMemberJob: UserGroupMemberJob, userGroupPermissionJob: UserGroupPermissionJob, userGroupRoleJob: UserGroupRoleJob);
73
+ constructor(clientCredentialJob: ClientCredentialJob, clientJob: ClientJob, codeFixLogJob: CodeFixLogJob, codeFixScriptJob: CodeFixScriptJob, columnMapperJob: ColumnMapperJob, commentJob: CommentJob, credentialIpJob: CredentialIpJob, dataLogJob: DataLogJob, documentJob: DocumentJob, executeCodeFixJob: ExecuteCodeFixJob, executeMaterialViewJob: ExecuteMaterialViewJob, executeRecurringQueryJob: ExecuteRecurringQueryJob, mailEventJob: MailEventJob, mailRecipientJob: MailRecipientJob, mailValidationJob: MailValidationJob, materialViewJob: MaterialViewJob, mobileValidationJob: MobileValidationJob, modelScannerJob: ModelScannerJob, propertyJob: PropertyJob, recurringQueryJob: RecurringQueryJob, refreshMaterialViewJob: RefreshMaterialViewJob, refreshPropertyCacheJob: RefreshPropertyCacheJob, relationshipMapperJob: RelationshipMapperJob, reportColumnSyncJob: ReportColumnSyncJob, scheduledEventJob: ScheduledEventJob, setCodefixScriptEventJob: SetCodefixScriptEventJob, setEventQueueJob: SetEventQueueJob, setRecurringQueryEventJob: SetRecurringQueryEventJob, setScheduledEventJob: SetScheduledEventJob, smsMessageJob: SmsMessageJob, sqsPollingJob: SqsPollingJob, syncAllCodeJob: SyncAllCodeJob, userGroupMemberJob: UserGroupMemberJob, userGroupPermissionJob: UserGroupPermissionJob, userGroupRoleJob: UserGroupRoleJob);
68
74
  alignJobs(): void;
69
75
  setJobs(): void;
70
76
  }
@@ -21,14 +21,17 @@ const credential_ip_job_1 = require("../jobs/credential.ip.job");
21
21
  const data_log_job_1 = require("../jobs/data.log.job");
22
22
  const document_job_1 = require("../jobs/document.job");
23
23
  const execute_code_fix_job_1 = require("../jobs/execute.code.fix.job");
24
+ const execute_material_view_job_1 = require("../jobs/execute.material.view.job");
24
25
  const execute_recurring_query_job_1 = require("../jobs/execute.recurring.query.job");
25
26
  const mail_event_job_1 = require("../jobs/mail.event.job");
26
27
  const mail_recipient_job_1 = require("../jobs/mail.recipient.job");
27
28
  const mail_validation_job_1 = require("../jobs/mail.validation.job");
29
+ const material_view_job_1 = require("../jobs/material.view.job");
28
30
  const mobile_validation_job_1 = require("../jobs/mobile.validation.job");
29
31
  const model_scanner_job_1 = require("../jobs/model.scanner.job");
30
32
  const property_job_1 = require("../jobs/property.job");
31
33
  const recurring_query_job_1 = require("../jobs/recurring.query.job");
34
+ const refresh_material_view_job_1 = require("../jobs/refresh.material.view.job");
32
35
  const refresh_property_cache_job_1 = require("../jobs/refresh.property.cache.job");
33
36
  const relationship_mapper_job_1 = require("../jobs/relationship.mapper.job");
34
37
  const report_column_sync_job_1 = require("../jobs/report.column.sync.job");
@@ -45,7 +48,7 @@ const user_group_permission_job_1 = require("../jobs/user.group.permission.job")
45
48
  const user_group_role_job_1 = require("../jobs/user.group.role.job");
46
49
  const platform_utility_1 = require("../../common/libraries/platform.utility");
47
50
  let Es6JobsService = class Es6JobsService {
48
- constructor(clientCredentialJob, clientJob, codeFixLogJob, codeFixScriptJob, columnMapperJob, commentJob, credentialIpJob, dataLogJob, documentJob, executeCodeFixJob, executeRecurringQueryJob, mailEventJob, mailRecipientJob, mailValidationJob, mobileValidationJob, modelScannerJob, propertyJob, recurringQueryJob, refreshPropertyCacheJob, relationshipMapperJob, reportColumnSyncJob, scheduledEventJob, setCodefixScriptEventJob, setEventQueueJob, setRecurringQueryEventJob, setScheduledEventJob, smsMessageJob, sqsPollingJob, syncAllCodeJob, userGroupMemberJob, userGroupPermissionJob, userGroupRoleJob) {
51
+ constructor(clientCredentialJob, clientJob, codeFixLogJob, codeFixScriptJob, columnMapperJob, commentJob, credentialIpJob, dataLogJob, documentJob, executeCodeFixJob, executeMaterialViewJob, executeRecurringQueryJob, mailEventJob, mailRecipientJob, mailValidationJob, materialViewJob, mobileValidationJob, modelScannerJob, propertyJob, recurringQueryJob, refreshMaterialViewJob, refreshPropertyCacheJob, relationshipMapperJob, reportColumnSyncJob, scheduledEventJob, setCodefixScriptEventJob, setEventQueueJob, setRecurringQueryEventJob, setScheduledEventJob, smsMessageJob, sqsPollingJob, syncAllCodeJob, userGroupMemberJob, userGroupPermissionJob, userGroupRoleJob) {
49
52
  this.clientCredentialJob = clientCredentialJob;
50
53
  this.clientJob = clientJob;
51
54
  this.codeFixLogJob = codeFixLogJob;
@@ -56,14 +59,17 @@ let Es6JobsService = class Es6JobsService {
56
59
  this.dataLogJob = dataLogJob;
57
60
  this.documentJob = documentJob;
58
61
  this.executeCodeFixJob = executeCodeFixJob;
62
+ this.executeMaterialViewJob = executeMaterialViewJob;
59
63
  this.executeRecurringQueryJob = executeRecurringQueryJob;
60
64
  this.mailEventJob = mailEventJob;
61
65
  this.mailRecipientJob = mailRecipientJob;
62
66
  this.mailValidationJob = mailValidationJob;
67
+ this.materialViewJob = materialViewJob;
63
68
  this.mobileValidationJob = mobileValidationJob;
64
69
  this.modelScannerJob = modelScannerJob;
65
70
  this.propertyJob = propertyJob;
66
71
  this.recurringQueryJob = recurringQueryJob;
72
+ this.refreshMaterialViewJob = refreshMaterialViewJob;
67
73
  this.refreshPropertyCacheJob = refreshPropertyCacheJob;
68
74
  this.relationshipMapperJob = relationshipMapperJob;
69
75
  this.reportColumnSyncJob = reportColumnSyncJob;
@@ -94,14 +100,17 @@ let Es6JobsService = class Es6JobsService {
94
100
  f8f29249c92f1efce56fc05f343d915f: this.dataLogJob,
95
101
  '64c1bbde8bd1bc6355f8fa2d86a171f1': this.documentJob,
96
102
  '66b85ebd2f93d8d9ad74f91dd448fc10': this.executeCodeFixJob,
103
+ '4231f833daffa443023e954b0eb026c4': this.executeMaterialViewJob,
97
104
  '49da21b3b3be45f66e8f88c55be55ebe': this.executeRecurringQueryJob,
98
105
  '5cfb77227fad03adc54decf4465d2673': this.mailEventJob,
99
106
  '97aad20762421f5972396cc09411f139': this.mailRecipientJob,
100
107
  '469fd6148687123ec4ef17ed0ad5ef87': this.mailValidationJob,
108
+ bacdea17d6822f984b34954257acebcf: this.materialViewJob,
101
109
  fc454d05d19747fdbb8510bbc00f67dd: this.mobileValidationJob,
102
110
  '895d52ea29c17047f690ead67db80c9c': this.modelScannerJob,
103
111
  '5b02b9f5e3aad0a0dbc8982119ced400': this.propertyJob,
104
112
  '0a4afb675c0a9e20782a12f7f6e870c2': this.recurringQueryJob,
113
+ '74be838a025f1060180afc77cc38d7ea': this.refreshMaterialViewJob,
105
114
  b7d57d912c9514786071e4e4e804db13: this.refreshPropertyCacheJob,
106
115
  '64724c02cc076f23566976dc765eb6b6': this.relationshipMapperJob,
107
116
  '7676ffc477bc85ccfd8418b70f2377c9': this.reportColumnSyncJob,
@@ -135,14 +144,17 @@ exports.Es6JobsService = Es6JobsService = __decorate([
135
144
  data_log_job_1.DataLogJob,
136
145
  document_job_1.DocumentJob,
137
146
  execute_code_fix_job_1.ExecuteCodeFixJob,
147
+ execute_material_view_job_1.ExecuteMaterialViewJob,
138
148
  execute_recurring_query_job_1.ExecuteRecurringQueryJob,
139
149
  mail_event_job_1.MailEventJob,
140
150
  mail_recipient_job_1.MailRecipientJob,
141
151
  mail_validation_job_1.MailValidationJob,
152
+ material_view_job_1.MaterialViewJob,
142
153
  mobile_validation_job_1.MobileValidationJob,
143
154
  model_scanner_job_1.ModelScannerJob,
144
155
  property_job_1.PropertyJob,
145
156
  recurring_query_job_1.RecurringQueryJob,
157
+ refresh_material_view_job_1.RefreshMaterialViewJob,
146
158
  refresh_property_cache_job_1.RefreshPropertyCacheJob,
147
159
  relationship_mapper_job_1.RelationshipMapperJob,
148
160
  report_column_sync_job_1.ReportColumnSyncJob,
@@ -1 +1 @@
1
- {"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/system/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yEAAoE;AACpE,mDAA+C;AAC/C,+DAAyD;AACzD,qEAA+D;AAC/D,iEAA4D;AAC5D,qDAAiD;AACjD,iEAA4D;AAC5D,uDAAkD;AAClD,uDAAmD;AACnD,uEAAiE;AACjE,qFAA+E;AAC/E,2DAAsD;AACtD,mEAA8D;AAC9D,qEAAgE;AAChE,yEAAoE;AACpE,iEAA4D;AAC5D,uDAAmD;AACnD,qEAAgE;AAChE,mFAA6E;AAC7E,6EAAwE;AACxE,2EAAqE;AACrE,qEAAgE;AAChE,uFAAgF;AAChF,qEAA+D;AAC/D,y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gB;QACP,yDAAyB;QAC9B,8CAAoB;QAC3B,+BAAa;QACb,+BAAa;QACZ,kCAAc;QACV,0CAAkB;QACd,kDAAsB;QAC5B,sCAAgB;GAnC9C,cAAc,CAyF1B"}
1
+ {"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/system/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yEAAoE;AACpE,mDAA+C;AAC/C,+DAAyD;AACzD,qEAA+D;AAC/D,iEAA4D;AAC5D,qDAAiD;AACjD,iEAA4D;AAC5D,uDAAkD;AAClD,uDAAmD;AACnD,uEAAiE;AACjE,iFAA2E;AAC3E,qFAA+E;AAC/E,2DAAsD;AACtD,mEAA8D;AAC9D,qEAAgE;AAChE,iEAA4D;AAC5D,yEAAoE;AACpE,iEAA4D;AAC5D,uDAAmD;AACnD,qEAAgE;AAChE,iFAA2E;AAC3E,mFAA6E;AAC7E,6EAAwE;AACxE,2EAAqE;AACrE,qEAAgE;AAChE,uFAAgF;AAChF,qEAA+D;AAC/D,yFAAkF;AAClF,6EAAuE;AACvE,6DAAwD;AACxD,6DAAwD;AACxD,iEAA2D;AAC3D,yEAAmE;AACnE,iFAA2E;AAC3E,qEAA+D;AAC/D,8EAA0E;AAQnE,IAAM,cAAc,GAApB,MAAM,cAAc;IAGvB,YACqB,mBAAwC,EACxC,SAAoB,EACpB,aAA4B,EAC5B,gBAAkC,EAClC,eAAgC,EAChC,UAAsB,EACtB,eAAgC,EAChC,UAAsB,EACtB,WAAwB,EACxB,iBAAoC,EACpC,sBAA8C,EAC9C,wBAAkD,EAClD,YAA0B,EAC1B,gBAAkC,EAClC,iBAAoC,EACpC,eAAgC,EAChC,mBAAwC,EACxC,eAAgC,EAChC,WAAwB,EACxB,iBAAoC,EACpC,sBAA8C,EAC9C,uBAAgD,EAChD,qBAA4C,EAC5C,mBAAwC,EACxC,iBAAoC,EACpC,wBAAkD,EAClD,gBAAkC,EAClC,yBAAoD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AC5D,gCAAgC,EAAE,IAAI,CAAC,iBAAiB;YACxD,kCAAkC,EAAE,IAAI,CAAC,wBAAwB;YACjE,gCAAgC,EAAE,IAAI,CAAC,gBAAgB;YACvD,kCAAkC,EAAE,IAAI,CAAC,yBAAyB;YAClE,kCAAkC,EAAE,IAAI,CAAC,oBAAoB;YAC7D,kCAAkC,EAAE,IAAI,CAAC,aAAa;YACtD,kCAAkC,EAAE,IAAI,CAAC,aAAa;YACtD,kCAAkC,EAAE,IAAI,CAAC,cAAc;YACvD,gCAAgC,EAAE,IAAI,CAAC,kBAAkB;YACzD,kCAAkC,EAAE,IAAI,CAAC,sBAAsB;YAC/D,kCAAkC,EAAE,IAAI,CAAC,gBAAgB;SAC5D,CAAC;IACN,CAAC;IAMD,OAAO;QACH,kCAAe,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ,CAAA;AA/FY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAKiC,2CAAmB;QAC7B,sBAAS;QACL,gCAAa;QACV,sCAAgB;QACjB,mCAAe;QACpB,wBAAU;QACL,mCAAe;QACpB,yBAAU;QACT,0BAAW;QACL,wCAAiB;QACZ,kDAAsB;QACpB,sDAAwB;QACpC,6BAAY;QACR,qCAAgB;QACf,uCAAiB;QACnB,mCAAe;QACX,2CAAmB;QACvB,mCAAe;QACnB,0BAAW;QACL,uCAAiB;QACZ,kDAAsB;QACrB,oDAAuB;QACzB,+CAAqB;QACvB,4CAAmB;QACrB,uCAAiB;QACV,uDAAwB;QAChC,sCAAgB;QACP,yDAAyB;QAC9B,8CAAoB;QAC3B,+BAAa;QACb,+BAAa;QACZ,kCAAc;QACV,0CAAkB;QACd,kDAAsB;QAC5B,sCAAgB;GAtC9C,cAAc,CA+F1B"}
@@ -10,6 +10,7 @@ export * from './document.subscriber';
10
10
  export * from './mail.event.subscriber';
11
11
  export * from './mail.recipient.subscriber';
12
12
  export * from './mail.validation.subscriber';
13
+ export * from './material.view.subscriber';
13
14
  export * from './mobile.validation.subscriber';
14
15
  export * from './property.subscriber';
15
16
  export * from './recurring.query.subscriber';
@@ -26,6 +26,7 @@ __exportStar(require("./document.subscriber"), exports);
26
26
  __exportStar(require("./mail.event.subscriber"), exports);
27
27
  __exportStar(require("./mail.recipient.subscriber"), exports);
28
28
  __exportStar(require("./mail.validation.subscriber"), exports);
29
+ __exportStar(require("./material.view.subscriber"), exports);
29
30
  __exportStar(require("./mobile.validation.subscriber"), exports);
30
31
  __exportStar(require("./property.subscriber"), exports);
31
32
  __exportStar(require("./recurring.query.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,4DAA0C;AAAA,+DAA6C;AAAA,sDAAoC;AAAA,uDAAqC;AAAA,6DAA2C;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,iEAA+C;AAAA,wDAAsC;AAAA,+DAA6C;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,wDAAsC;AAAA,0DAAwC;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,6DAA2C;AAAA,iEAA+C;AAAA,wDAAsC;AAAA,+DAA6C;AAAA,4DAA0C;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,iEAA+C;AAAA,qEAAmD;AAAA,+DAA4C"}
@@ -0,0 +1,12 @@
1
+ import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
2
+ import { CommonSubscriber } from '../../common/libraries/common.subscriber';
3
+ import { MaterialViewEntity } from '../entities/material.view.entity';
4
+ import { MaterialViewJob } from '../jobs/material.view.job';
5
+ export declare class MaterialViewSubscriber extends CommonSubscriber<MaterialViewEntity> {
6
+ private readonly dataSource;
7
+ protected readonly entityJob: MaterialViewJob;
8
+ constructor(dataSource: DataSource, entityJob: MaterialViewJob);
9
+ listenTo(): typeof MaterialViewEntity;
10
+ beforeInsert(event: InsertEvent<MaterialViewEntity>): Promise<void>;
11
+ beforeUpdate(event: UpdateEvent<MaterialViewEntity>): Promise<void>;
12
+ }
@@ -0,0 +1,47 @@
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.MaterialViewSubscriber = void 0;
13
+ const date_fns_1 = require("date-fns");
14
+ const typeorm_1 = require("typeorm");
15
+ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
16
+ const material_view_entity_1 = require("../entities/material.view.entity");
17
+ const material_view_job_1 = require("../jobs/material.view.job");
18
+ let MaterialViewSubscriber = class MaterialViewSubscriber extends common_subscriber_1.CommonSubscriber {
19
+ constructor(dataSource, entityJob) {
20
+ super();
21
+ this.dataSource = dataSource;
22
+ this.entityJob = entityJob;
23
+ dataSource.subscribers.push(this);
24
+ }
25
+ listenTo() {
26
+ return material_view_entity_1.MaterialViewEntity;
27
+ }
28
+ async beforeInsert(event) {
29
+ event.entity.attributes = {
30
+ ...event.entity.attributes,
31
+ ...{},
32
+ };
33
+ if (!event.entity.last_scheduled_time)
34
+ event.entity.last_scheduled_time = (0, date_fns_1.subMinutes)(new Date(), 15);
35
+ }
36
+ async beforeUpdate(event) {
37
+ if (!event.entity.last_scheduled_time)
38
+ event.entity.last_scheduled_time = (0, date_fns_1.subMinutes)(new Date(), 15);
39
+ }
40
+ };
41
+ exports.MaterialViewSubscriber = MaterialViewSubscriber;
42
+ exports.MaterialViewSubscriber = MaterialViewSubscriber = __decorate([
43
+ (0, typeorm_1.EventSubscriber)(),
44
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
45
+ material_view_job_1.MaterialViewJob])
46
+ ], MaterialViewSubscriber);
47
+ //# sourceMappingURL=material.view.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"material.view.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/material.view.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAsC;AACtC,qCAAgF;AAChF,gFAA4E;AAC5E,2EAAsE;AACtE,iEAA4D;AAGrD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oCAAoC;IAC5E,YACqB,UAAsB,EACpB,SAA0B;QAE7C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAiB;QAG7C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,yCAAkB,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAsC;QACrD,KAAK,CAAC,MAAM,CAAC,UAAU,GAAG;YACtB,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU;YAC1B,GAAG,EAAE;SACR,CAAC;QAEF,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB;YAAE,KAAK,CAAC,MAAM,CAAC,mBAAmB,GAAG,IAAA,qBAAU,EAAC,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACzG,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAsC;QACrD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB;YAAE,KAAK,CAAC,MAAM,CAAC,mBAAmB,GAAG,IAAA,qBAAU,EAAC,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACzG,CAAC;CACJ,CAAA;AAxBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,mCAAe;GAHxC,sBAAsB,CAwBlC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/nestjs-utility-services",
3
- "version": "1.2.114",
3
+ "version": "1.2.116",
4
4
  "description": "NestJS generic packages to support development",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",