@servicelabsco/nestjs-utility-services 1.1.96 → 1.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +1 -1
- package/dist/migrations/1692726438006-AddColumnTypeSysReportFiltersTable.ts.d.ts +5 -0
- package/dist/migrations/1692726438006-AddColumnTypeSysReportFiltersTable.ts.js +19 -0
- package/dist/migrations/1692726438006-AddColumnTypeSysReportFiltersTable.ts.js.map +1 -0
- package/dist/platformUtility/dtos/common.attributes.dto.d.ts +2 -0
- package/dist/platformUtility/dtos/common.attributes.dto.js.map +1 -1
- package/dist/platformUtility/dtos/date.range.filter.dto.d.ts +2 -2
- package/dist/platformUtility/dtos/date.range.filter.dto.js +2 -3
- package/dist/platformUtility/dtos/date.range.filter.dto.js.map +1 -1
- package/dist/platformUtility/dtos/string.search.dto.js.map +1 -1
- package/dist/platformUtility/libraries/process.date.filter.js +8 -15
- package/dist/platformUtility/libraries/process.date.filter.js.map +1 -1
- package/dist/system/entities/report.filter.entity.d.ts +9 -0
- package/dist/system/entities/report.filter.entity.js +32 -0
- package/dist/system/entities/report.filter.entity.js.map +1 -1
- package/dist/system/es6.classes.d.ts +6 -2
- package/dist/system/es6.classes.js +8 -0
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/jobs/comment.job.d.ts +10 -0
- package/dist/system/jobs/comment.job.js +45 -0
- package/dist/system/jobs/comment.job.js.map +1 -0
- package/dist/system/jobs/document.job.d.ts +10 -0
- package/dist/system/jobs/document.job.js +45 -0
- package/dist/system/jobs/document.job.js.map +1 -0
- package/dist/system/jobs/index.d.ts +2 -0
- package/dist/system/jobs/index.js +2 -0
- package/dist/system/jobs/index.js.map +1 -1
- package/dist/system/services/comment.service.d.ts +1 -0
- package/dist/system/services/comment.service.js +1 -1
- package/dist/system/services/comment.service.js.map +1 -1
- package/dist/system/services/document.service.d.ts +1 -0
- package/dist/system/services/document.service.js +1 -0
- package/dist/system/services/document.service.js.map +1 -1
- package/dist/system/services/es6.jobs.service.d.ts +5 -1
- package/dist/system/services/es6.jobs.service.js +9 -1
- package/dist/system/services/es6.jobs.service.js.map +1 -1
- package/dist/system/subscribers/comment.subscriber.d.ts +12 -0
- package/dist/system/subscribers/comment.subscriber.js +39 -0
- package/dist/system/subscribers/comment.subscriber.js.map +1 -0
- package/dist/system/subscribers/document.subscriber.d.ts +12 -0
- package/dist/system/subscribers/document.subscriber.js +39 -0
- package/dist/system/subscribers/document.subscriber.js.map +1 -0
- package/dist/system/subscribers/index.d.ts +2 -0
- package/dist/system/subscribers/index.js +2 -0
- package/dist/system/subscribers/index.js.map +1 -1
- package/package.json +1 -1
package/.vscode/settings.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"javascript.preferences.importModuleSpecifier": "relative",
|
3
|
-
"javascript.preferences.importModuleSpecifierEnding": "minimal",
|
3
|
+
// "javascript.preferences.importModuleSpecifierEnding": "minimal",
|
4
4
|
"javascript.preferences.quoteStyle": "single",
|
5
5
|
"path-intellisense.absolutePathToWorkspace": false,
|
6
6
|
"workbench.editor.limit.enabled": true,
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AddColumnTypeSysReportFiltersTable1692726438006 = void 0;
|
4
|
+
const migration_utility_1 = require("../common/libraries/migration.utility");
|
5
|
+
class AddColumnTypeSysReportFiltersTable1692726438006 extends migration_utility_1.MigrationUtility {
|
6
|
+
constructor() {
|
7
|
+
super('sys_report_filters');
|
8
|
+
this.process();
|
9
|
+
}
|
10
|
+
process() {
|
11
|
+
this.string('name');
|
12
|
+
this.foreign({ name: 'column_type_id', foreignTable: 'sys_column_definitions' });
|
13
|
+
this.foreign({ name: 'reference_model_id', foreignTable: 'sys_model_details' });
|
14
|
+
this.boolean('active', true);
|
15
|
+
this.boolean('visible', true);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
exports.AddColumnTypeSysReportFiltersTable1692726438006 = AddColumnTypeSysReportFiltersTable1692726438006;
|
19
|
+
//# sourceMappingURL=1692726438006-AddColumnTypeSysReportFiltersTable.ts.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1692726438006-AddColumnTypeSysReportFiltersTable.ts.js","sourceRoot":"","sources":["../../src/migrations/1692726438006-AddColumnTypeSysReportFiltersTable.ts.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AAEzE,MAAa,+CAAgD,SAAQ,oCAAgB;IACjF;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAEpB,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,wBAAwB,EAAE,CAAC,CAAC;QACjF,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAChF,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;CACJ;AAdD,0GAcC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.attributes.dto.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/common.attributes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAwD;AACxD,MAAa,mBAAmB;
|
1
|
+
{"version":3,"file":"common.attributes.dto.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/common.attributes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAwD;AACxD,MAAa,mBAAmB;CAkB/B;AAjBG;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oDACM;AAElB;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;0DACY;AAExB;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;uDACS;AAdzB,kDAkBC"}
|
@@ -16,15 +16,14 @@ class DateRangeFilterDto {
|
|
16
16
|
}
|
17
17
|
__decorate([
|
18
18
|
(0, class_validator_1.IsNotEmpty)(),
|
19
|
-
(0, class_validator_1.IsISO8601)(),
|
20
19
|
(0, class_transformer_1.Expose)(),
|
21
|
-
__metadata("design:type",
|
20
|
+
__metadata("design:type", Date)
|
22
21
|
], DateRangeFilterDto.prototype, "min", void 0);
|
23
22
|
__decorate([
|
24
23
|
(0, class_validator_1.IsNotEmpty)(),
|
25
24
|
(0, class_validator_1.IsISO8601)(),
|
26
25
|
(0, class_transformer_1.Expose)(),
|
27
|
-
__metadata("design:type",
|
26
|
+
__metadata("design:type", Date)
|
28
27
|
], DateRangeFilterDto.prototype, "max", void 0);
|
29
28
|
exports.DateRangeFilterDto = DateRangeFilterDto;
|
30
29
|
//# sourceMappingURL=date.range.filter.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"date.range.filter.dto.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/date.range.filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAwD;AAExD,MAAa,kBAAkB;
|
1
|
+
{"version":3,"file":"date.range.filter.dto.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/date.range.filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAwD;AAExD,MAAa,kBAAkB;CAS9B;AARG;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;8BACJ,IAAI;+CAAC;AAEV;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAM,GAAE;8BACJ,IAAI;+CAAC;AARd,gDASC"}
|
@@ -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;AAZG;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4CACA;AAEb;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;8CACE;AAEf;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;
|
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;AAZG;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4CACA;AAEb;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;8CACE;AAEf;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;4CACK;AAZnB,0CAaC"}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ProcessDateFilter = void 0;
|
4
4
|
const date_fns_1 = require("date-fns");
|
5
|
-
const date_util_1 = require("../../common/libraries/date.util");
|
6
5
|
class ProcessDateFilter {
|
7
6
|
process(filter) {
|
8
7
|
if (!filter)
|
@@ -27,36 +26,30 @@ class ProcessDateFilter {
|
|
27
26
|
today() {
|
28
27
|
if (!this.filter.today)
|
29
28
|
return;
|
30
|
-
const today =
|
31
|
-
this.range = { min: today, max: today };
|
29
|
+
const today = new Date();
|
30
|
+
this.range = { min: (0, date_fns_1.startOfDay)(today), max: (0, date_fns_1.endOfDay)(today) };
|
32
31
|
}
|
33
32
|
week() {
|
34
33
|
if (!this.filter.week)
|
35
34
|
return;
|
36
|
-
const
|
37
|
-
|
38
|
-
this.range = { min: monday, max: today };
|
35
|
+
const now = new Date();
|
36
|
+
this.range = { min: (0, date_fns_1.startOfWeek)(now, { weekStartsOn: 1 }), max: (0, date_fns_1.endOfDay)(now) };
|
39
37
|
}
|
40
38
|
month() {
|
41
39
|
if (!this.filter.month)
|
42
40
|
return;
|
43
|
-
const
|
44
|
-
|
45
|
-
this.range = { min: monthStartDate, max: today };
|
41
|
+
const now = new Date();
|
42
|
+
this.range = { min: (0, date_fns_1.startOfMonth)(now), max: (0, date_fns_1.endOfDay)(now) };
|
46
43
|
}
|
47
44
|
year() {
|
48
45
|
if (!this.filter.year)
|
49
46
|
return;
|
50
|
-
const
|
51
|
-
|
52
|
-
this.range = { min: yearStartDate, max: today };
|
47
|
+
const now = new Date();
|
48
|
+
this.range = { min: (0, date_fns_1.startOfYear)(now), max: (0, date_fns_1.endOfDay)(now) };
|
53
49
|
}
|
54
50
|
financialYear() {
|
55
51
|
if (!this.filter.financial_year)
|
56
52
|
return;
|
57
|
-
const today = date_util_1.DateUtil.getDateInFormat();
|
58
|
-
const yearStartDate = '2020-04-01';
|
59
|
-
this.range = { min: yearStartDate, max: today };
|
60
53
|
}
|
61
54
|
checkRange() {
|
62
55
|
if (!this.filter.range)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"process.date.filter.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/process.date.filter.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"process.date.filter.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/process.date.filter.ts"],"names":[],"mappings":";;;AAAA,uCAAwF;AAQxF,MAAa,iBAAiB;IAsB1B,OAAO,CAAC,MAAqB;QACzB,IAAI,CAAC,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,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,EAAE,GAAG,EAAE,IAAA,uBAAY,EAAC,GAAG,CAAC,EAAE,GAAG,EAAE,IAAA,mBAAQ,EAAC,GAAG,CAAC,EAAE,CAAC;IAChE,CAAC;IAQO,IAAI;QACR,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;YAAE,OAAO;QAC9B,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;QAEvB,IAAI,CAAC,KAAK,GAAG,EAAE,GAAG,EAAE,IAAA,sBAAW,EAAC,GAAG,CAAC,EAAE,GAAG,EAAE,IAAA,mBAAQ,EAAC,GAAG,CAAC,EAAE,CAAC;IAC/D,CAAC;IAQO,aAAa;QACjB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc;YAAE,OAAO;IAG5C,CAAC;IAQO,UAAU;QACd,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK;YAAE,OAAO;QAE/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IACnC,CAAC;CACJ;AA1HD,8CA0HC"}
|
@@ -1,10 +1,19 @@
|
|
1
1
|
import { CommonEntity } from '../../common/libraries/common.entity';
|
2
|
+
import { ColumnDefinitionEntity } from './column.definition.entity';
|
3
|
+
import { ModelEntity } from './model.entity';
|
2
4
|
import { ReportEntity } from './report.entity';
|
3
5
|
export declare class ReportFilterEntity extends CommonEntity {
|
4
6
|
report_id: number;
|
7
|
+
name: string;
|
5
8
|
column: string;
|
6
9
|
identifier: string;
|
10
|
+
column_type_id: number;
|
11
|
+
reference_model_id: number;
|
12
|
+
active: boolean;
|
13
|
+
visible: boolean;
|
7
14
|
is_optional: boolean;
|
8
15
|
attributes: any;
|
9
16
|
report: ReportEntity;
|
17
|
+
reference_model: ModelEntity;
|
18
|
+
column_type: ColumnDefinitionEntity;
|
10
19
|
}
|
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ReportFilterEntity = void 0;
|
13
13
|
const typeorm_1 = require("typeorm");
|
14
14
|
const common_entity_1 = require("../../common/libraries/common.entity");
|
15
|
+
const column_definition_entity_1 = require("./column.definition.entity");
|
16
|
+
const model_entity_1 = require("./model.entity");
|
15
17
|
const report_entity_1 = require("./report.entity");
|
16
18
|
let ReportFilterEntity = class ReportFilterEntity extends common_entity_1.CommonEntity {
|
17
19
|
};
|
@@ -19,6 +21,10 @@ __decorate([
|
|
19
21
|
(0, typeorm_1.Column)(),
|
20
22
|
__metadata("design:type", Number)
|
21
23
|
], ReportFilterEntity.prototype, "report_id", void 0);
|
24
|
+
__decorate([
|
25
|
+
(0, typeorm_1.Column)(),
|
26
|
+
__metadata("design:type", String)
|
27
|
+
], ReportFilterEntity.prototype, "name", void 0);
|
22
28
|
__decorate([
|
23
29
|
(0, typeorm_1.Column)(),
|
24
30
|
__metadata("design:type", String)
|
@@ -27,6 +33,22 @@ __decorate([
|
|
27
33
|
(0, typeorm_1.Column)(),
|
28
34
|
__metadata("design:type", String)
|
29
35
|
], ReportFilterEntity.prototype, "identifier", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, typeorm_1.Column)(),
|
38
|
+
__metadata("design:type", Number)
|
39
|
+
], ReportFilterEntity.prototype, "column_type_id", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, typeorm_1.Column)(),
|
42
|
+
__metadata("design:type", Number)
|
43
|
+
], ReportFilterEntity.prototype, "reference_model_id", void 0);
|
44
|
+
__decorate([
|
45
|
+
(0, typeorm_1.Column)(),
|
46
|
+
__metadata("design:type", Boolean)
|
47
|
+
], ReportFilterEntity.prototype, "active", void 0);
|
48
|
+
__decorate([
|
49
|
+
(0, typeorm_1.Column)(),
|
50
|
+
__metadata("design:type", Boolean)
|
51
|
+
], ReportFilterEntity.prototype, "visible", void 0);
|
30
52
|
__decorate([
|
31
53
|
(0, typeorm_1.Column)(),
|
32
54
|
__metadata("design:type", Boolean)
|
@@ -40,6 +62,16 @@ __decorate([
|
|
40
62
|
(0, typeorm_1.JoinColumn)({ name: 'report_id' }),
|
41
63
|
__metadata("design:type", report_entity_1.ReportEntity)
|
42
64
|
], ReportFilterEntity.prototype, "report", void 0);
|
65
|
+
__decorate([
|
66
|
+
(0, typeorm_1.ManyToOne)(() => model_entity_1.ModelEntity),
|
67
|
+
(0, typeorm_1.JoinColumn)({ name: 'reference_model_id' }),
|
68
|
+
__metadata("design:type", model_entity_1.ModelEntity)
|
69
|
+
], ReportFilterEntity.prototype, "reference_model", void 0);
|
70
|
+
__decorate([
|
71
|
+
(0, typeorm_1.ManyToOne)(() => column_definition_entity_1.ColumnDefinitionEntity),
|
72
|
+
(0, typeorm_1.JoinColumn)({ name: 'column_type_id' }),
|
73
|
+
__metadata("design:type", column_definition_entity_1.ColumnDefinitionEntity)
|
74
|
+
], ReportFilterEntity.prototype, "column_type", void 0);
|
43
75
|
ReportFilterEntity = __decorate([
|
44
76
|
(0, typeorm_1.Entity)('sys_report_filters')
|
45
77
|
], ReportFilterEntity);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"report.filter.entity.js","sourceRoot":"","sources":["../../../src/system/entities/report.filter.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,wEAAoE;AACpE,mDAA+C;AASxC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAY;
|
1
|
+
{"version":3,"file":"report.filter.entity.js","sourceRoot":"","sources":["../../../src/system/entities/report.filter.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,wEAAoE;AACpE,yEAAoE;AACpE,iDAA6C;AAC7C,mDAA+C;AASxC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAY;CAoCnD,CAAA;AAnCG;IAAC,IAAA,gBAAM,GAAE;;qDACS;AAElB;IAAC,IAAA,gBAAM,GAAE;;gDACI;AAEb;IAAC,IAAA,gBAAM,GAAE;;kDACM;AAEf;IAAC,IAAA,gBAAM,GAAE;;sDACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;0DACc;AAEvB;IAAC,IAAA,gBAAM,GAAE;;8DACkB;AAE3B;IAAC,IAAA,gBAAM,GAAE;;kDACO;AAEhB;IAAC,IAAA,gBAAM,GAAE;;mDACQ;AAEjB;IAAC,IAAA,gBAAM,GAAE;;uDACY;AAErB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;;sDACC;AAEhB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAAS,4BAAY;kDAAC;AAEvF;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;8BAAkB,0BAAW;2DAAC;AAEvG;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iDAAsB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BAAc,iDAAsB;uDAAC;AAnC5G,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,kBAAkB,CAoC9B;AApCY,gDAAkB"}
|
@@ -81,6 +81,8 @@ import { UserPreferenceEntity } from './entities/user.preference.entity';
|
|
81
81
|
import { WhatsappTemplateEntity } from './entities/whatsapp.template.entity';
|
82
82
|
import { CleanScheduledEventJob } from './jobs/clean.scheduled.event.job';
|
83
83
|
import { ColumnMapperJob } from './jobs/column.mapper.job';
|
84
|
+
import { CommentJob } from './jobs/comment.job';
|
85
|
+
import { DocumentJob } from './jobs/document.job';
|
84
86
|
import { MailValidationJob } from './jobs/mail.validation.job';
|
85
87
|
import { MobileValidationJob } from './jobs/mobile.validation.job';
|
86
88
|
import { ModelScannerJob } from './jobs/model.scanner.job';
|
@@ -128,6 +130,8 @@ import { UiActionService } from './services/ui.action.service';
|
|
128
130
|
import { UploadService } from './services/upload.service';
|
129
131
|
import { UserPreferenceService } from './services/user.preference.service';
|
130
132
|
import { ColumnSubscriber } from './subscribers/column.subscriber';
|
133
|
+
import { CommentSubscriber } from './subscribers/comment.subscriber';
|
134
|
+
import { DocumentSubscriber } from './subscribers/document.subscriber';
|
131
135
|
import { MailValidationSubscriber } from './subscribers/mail.validation.subscriber';
|
132
136
|
import { MobileValidationSubscriber } from './subscribers/mobile.validation.subscriber';
|
133
137
|
import { PropertySubscriber } from './subscribers/property.subscriber';
|
@@ -142,10 +146,10 @@ declare const es6Classes: {
|
|
142
146
|
controllers: (typeof BaseController | typeof DataController | typeof FormController | typeof MenuController | typeof PreferenceController | typeof UploadController | typeof UserPreferenceController | typeof ReportController)[];
|
143
147
|
dtos: (typeof ModelFormPreferenceCreationDto | typeof FileUploadSpecDto | typeof S3UploadOptionsDto | typeof LocalFileS3UploadDto | typeof S3ObjectInfoDto | typeof UserPreferenceCreationDto | typeof AddCommentDto | typeof CommentAttributesDto | typeof FileUploadDto | typeof JobRecordParamDto | typeof MailValidationDto | typeof MobileValidationDto | typeof ModelAllowedColumnDto | typeof OtpGenerationDto | typeof ValidationOptionsDto)[];
|
144
148
|
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 ClientScriptEntity | typeof CommentEntity | typeof DocumentEntity | typeof DynamoTableEntity | typeof EventDetailEntity | typeof EventQueueEntity | typeof ReportColumnEntity | typeof ReportEntity | typeof ReportRelationshipEntity | typeof ReportRoleEntity | typeof ServiceEntity | typeof SecurityRuleEntity | typeof MailLogEntity | typeof SmsTemplateEntity | typeof SmsMessageEntity | typeof MailValidationEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof ModuleEntity | typeof ModuleMenuEntity | typeof PageDefinitionEntity | typeof ParentMenuEntity | typeof MobileValidationEntity | typeof OpenPropertyEntity | typeof ReportFilterEntity | typeof ScheduledEventEntity | typeof UserGroupPermissionEntity | typeof UserPreferenceEntity | typeof WhatsappTemplateEntity)[];
|
145
|
-
jobs: (typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof ScheduledEventJob | typeof CleanScheduledEventJob | typeof ColumnMapperJob | typeof MailValidationJob | typeof MobileValidationJob | typeof RefreshPropertyCacheJob | typeof PropertyJob | typeof RelationshipMapperJob | typeof ScheduledEventsJob | typeof SmsMessageJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
|
149
|
+
jobs: (typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof ScheduledEventJob | typeof CleanScheduledEventJob | typeof ColumnMapperJob | typeof CommentJob | typeof DocumentJob | typeof MailValidationJob | typeof MobileValidationJob | typeof RefreshPropertyCacheJob | typeof PropertyJob | typeof RelationshipMapperJob | typeof ScheduledEventsJob | typeof SmsMessageJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
|
146
150
|
libraries: (typeof SyncDynamoTables | typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator)[];
|
147
151
|
modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
|
148
152
|
services: (typeof PropertyService | typeof EventQueueService | typeof EventDetailService | typeof SecurityRuleService | typeof UiActionService | typeof ModelService | typeof CommonService | typeof ClientScriptService | typeof PreferenceService | typeof BusinessRuleService | typeof ListService | typeof FormService | typeof MenuService | typeof UserPreferenceService | typeof ReportService | typeof AwsS3Service | typeof UploadService | typeof ScheduledEventService | typeof ColumnService | typeof CommentService | typeof DocumentService | typeof MailValidationService | typeof MobileValidationService | typeof Es6JobsService | typeof Es6Service)[];
|
149
|
-
subscribers: (typeof ColumnSubscriber | typeof MailValidationSubscriber | typeof MobileValidationSubscriber | typeof PropertySubscriber | typeof RelationshipSubscriber | typeof ScheduledEventSubscriber | typeof SmsMessageSubscriber | typeof UserGroupMemberSubscriber | typeof UserGroupPermissionSubscriber | typeof UserGroupRoleSubscriber)[];
|
153
|
+
subscribers: (typeof ColumnSubscriber | typeof CommentSubscriber | typeof DocumentSubscriber | typeof MailValidationSubscriber | typeof MobileValidationSubscriber | typeof PropertySubscriber | typeof RelationshipSubscriber | typeof ScheduledEventSubscriber | typeof SmsMessageSubscriber | typeof UserGroupMemberSubscriber | typeof UserGroupPermissionSubscriber | typeof UserGroupRoleSubscriber)[];
|
150
154
|
};
|
151
155
|
export default es6Classes;
|
@@ -93,6 +93,8 @@ const user_preference_entity_1 = require("./entities/user.preference.entity");
|
|
93
93
|
const whatsapp_template_entity_1 = require("./entities/whatsapp.template.entity");
|
94
94
|
const clean_scheduled_event_job_1 = require("./jobs/clean.scheduled.event.job");
|
95
95
|
const column_mapper_job_1 = require("./jobs/column.mapper.job");
|
96
|
+
const comment_job_1 = require("./jobs/comment.job");
|
97
|
+
const document_job_1 = require("./jobs/document.job");
|
96
98
|
const mail_validation_job_1 = require("./jobs/mail.validation.job");
|
97
99
|
const mobile_validation_job_1 = require("./jobs/mobile.validation.job");
|
98
100
|
const model_scanner_job_1 = require("./jobs/model.scanner.job");
|
@@ -140,6 +142,8 @@ const ui_action_service_1 = require("./services/ui.action.service");
|
|
140
142
|
const upload_service_1 = require("./services/upload.service");
|
141
143
|
const user_preference_service_1 = require("./services/user.preference.service");
|
142
144
|
const column_subscriber_1 = require("./subscribers/column.subscriber");
|
145
|
+
const comment_subscriber_1 = require("./subscribers/comment.subscriber");
|
146
|
+
const document_subscriber_1 = require("./subscribers/document.subscriber");
|
143
147
|
const mail_validation_subscriber_1 = require("./subscribers/mail.validation.subscriber");
|
144
148
|
const mobile_validation_subscriber_1 = require("./subscribers/mobile.validation.subscriber");
|
145
149
|
const property_subscriber_1 = require("./subscribers/property.subscriber");
|
@@ -252,6 +256,8 @@ const es6Classes = {
|
|
252
256
|
jobs: [
|
253
257
|
clean_scheduled_event_job_1.CleanScheduledEventJob,
|
254
258
|
column_mapper_job_1.ColumnMapperJob,
|
259
|
+
comment_job_1.CommentJob,
|
260
|
+
document_job_1.DocumentJob,
|
255
261
|
mail_validation_job_1.MailValidationJob,
|
256
262
|
mobile_validation_job_1.MobileValidationJob,
|
257
263
|
model_scanner_job_1.ModelScannerJob,
|
@@ -297,6 +303,8 @@ const es6Classes = {
|
|
297
303
|
],
|
298
304
|
subscribers: [
|
299
305
|
column_subscriber_1.ColumnSubscriber,
|
306
|
+
comment_subscriber_1.CommentSubscriber,
|
307
|
+
document_subscriber_1.DocumentSubscriber,
|
300
308
|
mail_validation_subscriber_1.MailValidationSubscriber,
|
301
309
|
mobile_validation_subscriber_1.MobileValidationSubscriber,
|
302
310
|
property_subscriber_1.PropertySubscriber,
|
@@ -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,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,0EAAqE;AACrE,4EAAuE;AACvE,4DAAuD;AACvD,sEAAgE;AAChE,sEAAgE;AAChE,8EAAuE;AACvE,oEAA+D;AAC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;QACb,gCAAc;QACd,8BAAa;QACb,kCAAe;QACf,iCAAc;QACd,wBAAU;QACV,yCAAkB;QAClB,uCAAiB;QACjB,0BAAW;QACX,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,oCAAgB;QAChB,qDAAwB;QACxB,yDAA0B;QAC1B,wCAAkB;QAClB,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,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,0EAAqE;AACrE,4EAAuE;AACvE,4DAAuD;AACvD,sEAAgE;AAChE,sEAAgE;AAChE,8EAAuE;AACvE,oEAA+D;AAC/D,gGAAyF;AACzF,wEAAmE;AACnE,8EAAwE;AACxE,kGAA2F;AAC3F,kEAA6D;AAC7D,kEAA4D;AAC5D,wEAAkE;AAClE,kFAA4E;AAC5E,sFAAgF;AAChF,0EAAqE;AACrE,0EAAqE;AACrE,oFAA8E;AAC9E,0DAAsD;AACtD,0EAAqE;AACrE,kFAA6E;AAC7E,4DAAwD;AACxD,8DAA0D;AAC1D,gEAA4D;AAC5D,wEAAmE;AACnE,4EAAuE;AACvE,wE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rB,2CAAmB;QACnB,mCAAe;QACf,8BAAa;QACb,+CAAqB;KACxB;IACD,WAAW,EAAE;QACT,oCAAgB;QAChB,sCAAiB;QACjB,wCAAkB;QAClB,qDAAwB;QACxB,yDAA0B;QAC1B,wCAAkB;QAClB,gDAAsB;QACtB,qDAAwB;QACxB,6CAAoB;QACpB,wDAAyB;QACzB,gEAA6B;QAC7B,oDAAuB;KAC1B;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
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 { CommentEntity } from '../entities/comment.entity';
|
5
|
+
export declare class CommentJob extends CommonJob {
|
6
|
+
protected readonly queueService: QueueService;
|
7
|
+
constructor(queueService: QueueService);
|
8
|
+
handle(evt: DatabaseEventDto<CommentEntity>): Promise<any>;
|
9
|
+
syncCommentCount(evt: DatabaseEventDto<CommentEntity>): Promise<any>;
|
10
|
+
}
|
@@ -0,0 +1,45 @@
|
|
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.CommentJob = void 0;
|
13
|
+
const common_1 = require("@nestjs/common");
|
14
|
+
const common_2 = require("../../common");
|
15
|
+
const common_job_1 = require("../../common/libraries/common.job");
|
16
|
+
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
17
|
+
const comment_entity_1 = require("../entities/comment.entity");
|
18
|
+
let CommentJob = class CommentJob extends common_job_1.CommonJob {
|
19
|
+
constructor(queueService) {
|
20
|
+
super();
|
21
|
+
this.queueService = queueService;
|
22
|
+
}
|
23
|
+
async handle(evt) {
|
24
|
+
return this.syncCommentCount(evt);
|
25
|
+
}
|
26
|
+
async syncCommentCount(evt) {
|
27
|
+
if (!this.isColumnUpdated(evt, ['deleted_at']))
|
28
|
+
return;
|
29
|
+
const entity = common_2.PlatformUtility.getEntity(evt.entity.source_type);
|
30
|
+
if (!entity)
|
31
|
+
return;
|
32
|
+
const r = await entity.first(evt.entity.source_id);
|
33
|
+
if (!r)
|
34
|
+
return;
|
35
|
+
const count = await comment_entity_1.CommentEntity.count({ where: { source_type: evt.entity.source_type, source_id: evt.entity.source_id } });
|
36
|
+
r.attributes = { ...r.attributes, comments_count: count || 0 };
|
37
|
+
return r.save();
|
38
|
+
}
|
39
|
+
};
|
40
|
+
CommentJob = __decorate([
|
41
|
+
(0, common_1.Injectable)(),
|
42
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService])
|
43
|
+
], CommentJob);
|
44
|
+
exports.CommentJob = CommentJob;
|
45
|
+
//# sourceMappingURL=comment.job.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"comment.job.js","sourceRoot":"","sources":["../../../src/system/jobs/comment.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yCAA+C;AAE/C,kEAA8D;AAC9D,gFAA4E;AAC5E,+DAA2D;AAGpD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,sBAAS;IACrC,YAA+B,YAA0B;QACrD,KAAK,EAAE,CAAC;QADmB,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAoC;QAC7C,OAAO,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,GAAoC;QACvD,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC;YAAE,OAAO;QAEvD,MAAM,MAAM,GAAG,wBAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACjE,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACnD,IAAI,CAAC,CAAC;YAAE,OAAO;QAEf,MAAM,KAAK,GAAG,MAAM,8BAAa,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QAE7H,CAAC,CAAC,UAAU,GAAG,EAAE,GAAG,CAAC,CAAC,UAAU,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QAC/D,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;CACJ,CAAA;AAtBY,UAAU;IADtB,IAAA,mBAAU,GAAE;qCAEoC,4BAAY;GADhD,UAAU,CAsBtB;AAtBY,gCAAU"}
|
@@ -0,0 +1,10 @@
|
|
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 { DocumentEntity } from '../entities/document.entity';
|
5
|
+
export declare class DocumentJob extends CommonJob {
|
6
|
+
protected readonly queueService: QueueService;
|
7
|
+
constructor(queueService: QueueService);
|
8
|
+
handle(evt: DatabaseEventDto<DocumentEntity>): Promise<any>;
|
9
|
+
syncDocumentCount(evt: DatabaseEventDto<DocumentEntity>): Promise<any>;
|
10
|
+
}
|
@@ -0,0 +1,45 @@
|
|
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.DocumentJob = void 0;
|
13
|
+
const common_1 = require("@nestjs/common");
|
14
|
+
const common_2 = require("../../common");
|
15
|
+
const common_job_1 = require("../../common/libraries/common.job");
|
16
|
+
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
17
|
+
const document_entity_1 = require("../entities/document.entity");
|
18
|
+
let DocumentJob = class DocumentJob extends common_job_1.CommonJob {
|
19
|
+
constructor(queueService) {
|
20
|
+
super();
|
21
|
+
this.queueService = queueService;
|
22
|
+
}
|
23
|
+
async handle(evt) {
|
24
|
+
return this.syncDocumentCount(evt);
|
25
|
+
}
|
26
|
+
async syncDocumentCount(evt) {
|
27
|
+
if (!this.isColumnUpdated(evt, ['deleted_at']))
|
28
|
+
return;
|
29
|
+
const entity = common_2.PlatformUtility.getEntity(evt.entity.source_type);
|
30
|
+
if (!entity)
|
31
|
+
return;
|
32
|
+
const r = await entity.first(evt.entity.source_id);
|
33
|
+
if (!r)
|
34
|
+
return;
|
35
|
+
const count = await document_entity_1.DocumentEntity.count({ where: { source_type: evt.entity.source_type, source_id: evt.entity.source_id } });
|
36
|
+
r.attributes = { ...r.attributes, documents_count: count || 0 };
|
37
|
+
return r.save();
|
38
|
+
}
|
39
|
+
};
|
40
|
+
DocumentJob = __decorate([
|
41
|
+
(0, common_1.Injectable)(),
|
42
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService])
|
43
|
+
], DocumentJob);
|
44
|
+
exports.DocumentJob = DocumentJob;
|
45
|
+
//# sourceMappingURL=document.job.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"document.job.js","sourceRoot":"","sources":["../../../src/system/jobs/document.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yCAA+C;AAE/C,kEAA8D;AAC9D,gFAA4E;AAC5E,iEAA6D;AAGtD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,sBAAS;IACtC,YAA+B,YAA0B;QACrD,KAAK,EAAE,CAAC;QADmB,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAqC;QAC9C,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,GAAqC;QACzD,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC;YAAE,OAAO;QAEvD,MAAM,MAAM,GAAG,wBAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACjE,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACnD,IAAI,CAAC,CAAC;YAAE,OAAO;QAEf,MAAM,KAAK,GAAG,MAAM,gCAAc,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QAE9H,CAAC,CAAC,UAAU,GAAG,EAAE,GAAG,CAAC,CAAC,UAAU,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QAChE,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;CACJ,CAAA;AAtBY,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAEoC,4BAAY;GADhD,WAAW,CAsBvB;AAtBY,kCAAW"}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
export * from './clean.scheduled.event.job';
|
2
2
|
export * from './column.mapper.job';
|
3
|
+
export * from './comment.job';
|
4
|
+
export * from './document.job';
|
3
5
|
export * from './mail.validation.job';
|
4
6
|
export * from './mobile.validation.job';
|
5
7
|
export * from './model.scanner.job';
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./clean.scheduled.event.job"), exports);
|
18
18
|
__exportStar(require("./column.mapper.job"), exports);
|
19
|
+
__exportStar(require("./comment.job"), exports);
|
20
|
+
__exportStar(require("./document.job"), exports);
|
19
21
|
__exportStar(require("./mail.validation.job"), exports);
|
20
22
|
__exportStar(require("./mobile.validation.job"), exports);
|
21
23
|
__exportStar(require("./model.scanner.job"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,sDAAoC;AACpC,wDAAsC;AACtC,0DAAwC;AACxC,sDAAoC;AACpC,iDAA+B;AAC/B,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,wDAAsC;AACtC,yDAAuC;AACvC,oDAAkC;AAClC,0DAAwC;AACxC,8DAA4C;AAC5C,wDAAsC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,sDAAoC;AACpC,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,0DAAwC;AACxC,sDAAoC;AACpC,iDAA+B;AAC/B,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,wDAAsC;AACtC,yDAAuC;AACvC,oDAAkC;AAClC,0DAAwC;AACxC,8DAA4C;AAC5C,wDAAsC"}
|
@@ -11,7 +11,7 @@ const common_1 = require("@nestjs/common");
|
|
11
11
|
const comment_entity_1 = require("../entities/comment.entity");
|
12
12
|
let CommentService = class CommentService {
|
13
13
|
async getComments(query) {
|
14
|
-
return comment_entity_1.CommentEntity.find({ where: query, relations: ['creator'] });
|
14
|
+
return comment_entity_1.CommentEntity.find({ where: query, relations: ['creator'], take: query.limit || 100 });
|
15
15
|
}
|
16
16
|
async setComment(body, source) {
|
17
17
|
if (!body.comments)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"comment.service.js","sourceRoot":"","sources":["../../../src/system/services/comment.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAG5C,+DAA2D;AAQpD,IAAM,cAAc,GAApB,MAAM,cAAc;IAQvB,KAAK,CAAC,WAAW,CAAC,
|
1
|
+
{"version":3,"file":"comment.service.js","sourceRoot":"","sources":["../../../src/system/services/comment.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAG5C,+DAA2D;AAQpD,IAAM,cAAc,GAApB,MAAM,cAAc;IAQvB,KAAK,CAAC,WAAW,CAAC,KAAmF;QACjG,OAAO,8BAAa,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,IAAI,GAAG,EAAE,CAAC,CAAC;IAClG,CAAC;IASD,KAAK,CAAC,UAAU,CAAC,IAAmB,EAAE,MAAwB;QAC1D,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO;QAE3B,IAAI,MAAM,GAAG,IAAI,8BAAa,EAAE,CAAC;QAEjC,IAAI,IAAI,CAAC,EAAE;YAAE,MAAM,GAAG,MAAM,8BAAa,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAEzD,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE;YACb,MAAM,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;YACxC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAEpC,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,IAAI,KAAK,CAAC;SAClE;QAED,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAEhC,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;CACJ,CAAA;AArCY,cAAc;IAD1B,IAAA,mBAAU,GAAE;GACA,cAAc,CAqC1B;AArCY,wCAAc"}
|
@@ -6,6 +6,7 @@ export declare class DocumentService {
|
|
6
6
|
source_type: string;
|
7
7
|
source_id: number;
|
8
8
|
type_id?: number;
|
9
|
+
limit?: number;
|
9
10
|
}): Promise<any[]>;
|
10
11
|
setDocument(source: SourceColumnDto, file: FileUploadDto): Promise<DocumentEntity>;
|
11
12
|
setDocuments(source: SourceColumnDto, files: FileUploadDto[]): Promise<DocumentEntity[]>;
|
@@ -16,6 +16,7 @@ let DocumentService = class DocumentService {
|
|
16
16
|
return document_entity_1.DocumentEntity.find({
|
17
17
|
where: { ...query, document_url: (0, typeorm_1.Not)((0, typeorm_1.IsNull)()) },
|
18
18
|
relations: ['creator'],
|
19
|
+
take: query.limit | 100
|
19
20
|
});
|
20
21
|
}
|
21
22
|
async setDocument(source, file) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"document.service.js","sourceRoot":"","sources":["../../../src/system/services/document.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAsC;AACtC,yCAAgE;AAGhE,iEAA6D;AAQtD,IAAM,eAAe,GAArB,MAAM,eAAe;IAQxB,KAAK,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"document.service.js","sourceRoot":"","sources":["../../../src/system/services/document.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAsC;AACtC,yCAAgE;AAGhE,iEAA6D;AAQtD,IAAM,eAAe,GAArB,MAAM,eAAe;IAQxB,KAAK,CAAC,YAAY,CAAC,KAAmF;QAClG,OAAO,gCAAc,CAAC,IAAI,CAAC;YACvB,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,YAAY,EAAE,IAAA,aAAG,EAAC,IAAA,gBAAM,GAAE,CAAC,EAAE;YAChD,SAAS,EAAE,CAAC,SAAS,CAAC;YACtB,IAAI,EAAE,KAAK,CAAC,KAAK,GAAG,GAAG;SAC1B,CAAC,CAAC;IACP,CAAC;IASD,KAAK,CAAC,WAAW,CAAC,MAAuB,EAAE,IAAmB;QAC1D,IAAI,CAAC,IAAI,CAAC,YAAY;YAAE,OAAO;QAC/B,IAAI,CAAC,wBAAe,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;YAAE,OAAO;QAE3D,IAAI,QAAQ,GAAmB,gCAAc,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;QAEvH,IAAI,IAAI,CAAC,EAAE;YAAE,QAAQ,GAAG,MAAM,gCAAc,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAE5D,IAAI,CAAC,CAAC,QAAQ,CAA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
|
import { ColumnMapperJob } from '../jobs/column.mapper.job';
|
3
|
+
import { CommentJob } from '../jobs/comment.job';
|
4
|
+
import { DocumentJob } from '../jobs/document.job';
|
3
5
|
import { MailValidationJob } from '../jobs/mail.validation.job';
|
4
6
|
import { MobileValidationJob } from '../jobs/mobile.validation.job';
|
5
7
|
import { ModelScannerJob } from '../jobs/model.scanner.job';
|
@@ -16,6 +18,8 @@ import { UserGroupRoleJob } from '../jobs/user.group.role.job';
|
|
16
18
|
export declare class Es6JobsService {
|
17
19
|
private readonly cleanScheduledEventJob;
|
18
20
|
private readonly columnMapperJob;
|
21
|
+
private readonly commentJob;
|
22
|
+
private readonly documentJob;
|
19
23
|
private readonly mailValidationJob;
|
20
24
|
private readonly mobileValidationJob;
|
21
25
|
private readonly modelScannerJob;
|
@@ -30,7 +34,7 @@ export declare class Es6JobsService {
|
|
30
34
|
private readonly userGroupPermissionJob;
|
31
35
|
private readonly userGroupRoleJob;
|
32
36
|
private jobs;
|
33
|
-
constructor(cleanScheduledEventJob: CleanScheduledEventJob, columnMapperJob: ColumnMapperJob, mailValidationJob: MailValidationJob, mobileValidationJob: MobileValidationJob, modelScannerJob: ModelScannerJob, propertyJob: PropertyJob, refreshPropertyCacheJob: RefreshPropertyCacheJob, relationshipMapperJob: RelationshipMapperJob, reportColumnSyncJob: ReportColumnSyncJob, scheduledEventJob: ScheduledEventJob, scheduledEventsJob: ScheduledEventsJob, smsMessageJob: SmsMessageJob, userGroupMemberJob: UserGroupMemberJob, userGroupPermissionJob: UserGroupPermissionJob, userGroupRoleJob: UserGroupRoleJob);
|
37
|
+
constructor(cleanScheduledEventJob: CleanScheduledEventJob, columnMapperJob: ColumnMapperJob, commentJob: CommentJob, documentJob: DocumentJob, mailValidationJob: MailValidationJob, mobileValidationJob: MobileValidationJob, modelScannerJob: ModelScannerJob, propertyJob: PropertyJob, refreshPropertyCacheJob: RefreshPropertyCacheJob, relationshipMapperJob: RelationshipMapperJob, reportColumnSyncJob: ReportColumnSyncJob, scheduledEventJob: ScheduledEventJob, scheduledEventsJob: ScheduledEventsJob, smsMessageJob: SmsMessageJob, userGroupMemberJob: UserGroupMemberJob, userGroupPermissionJob: UserGroupPermissionJob, userGroupRoleJob: UserGroupRoleJob);
|
34
38
|
alignJobs(): void;
|
35
39
|
setJobs(): void;
|
36
40
|
}
|
@@ -13,6 +13,8 @@ exports.Es6JobsService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
14
14
|
const clean_scheduled_event_job_1 = require("../jobs/clean.scheduled.event.job");
|
15
15
|
const column_mapper_job_1 = require("../jobs/column.mapper.job");
|
16
|
+
const comment_job_1 = require("../jobs/comment.job");
|
17
|
+
const document_job_1 = require("../jobs/document.job");
|
16
18
|
const mail_validation_job_1 = require("../jobs/mail.validation.job");
|
17
19
|
const mobile_validation_job_1 = require("../jobs/mobile.validation.job");
|
18
20
|
const model_scanner_job_1 = require("../jobs/model.scanner.job");
|
@@ -28,9 +30,11 @@ const user_group_permission_job_1 = require("../jobs/user.group.permission.job")
|
|
28
30
|
const user_group_role_job_1 = require("../jobs/user.group.role.job");
|
29
31
|
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
30
32
|
let Es6JobsService = class Es6JobsService {
|
31
|
-
constructor(cleanScheduledEventJob, columnMapperJob, mailValidationJob, mobileValidationJob, modelScannerJob, propertyJob, refreshPropertyCacheJob, relationshipMapperJob, reportColumnSyncJob, scheduledEventJob, scheduledEventsJob, smsMessageJob, userGroupMemberJob, userGroupPermissionJob, userGroupRoleJob) {
|
33
|
+
constructor(cleanScheduledEventJob, columnMapperJob, commentJob, documentJob, mailValidationJob, mobileValidationJob, modelScannerJob, propertyJob, refreshPropertyCacheJob, relationshipMapperJob, reportColumnSyncJob, scheduledEventJob, scheduledEventsJob, smsMessageJob, userGroupMemberJob, userGroupPermissionJob, userGroupRoleJob) {
|
32
34
|
this.cleanScheduledEventJob = cleanScheduledEventJob;
|
33
35
|
this.columnMapperJob = columnMapperJob;
|
36
|
+
this.commentJob = commentJob;
|
37
|
+
this.documentJob = documentJob;
|
34
38
|
this.mailValidationJob = mailValidationJob;
|
35
39
|
this.mobileValidationJob = mobileValidationJob;
|
36
40
|
this.modelScannerJob = modelScannerJob;
|
@@ -52,6 +56,8 @@ let Es6JobsService = class Es6JobsService {
|
|
52
56
|
this.jobs = {
|
53
57
|
'81ea0517a8863d42db2d9cca74cb75e6': this.cleanScheduledEventJob,
|
54
58
|
'3528f0a8dfc3ef35cbeda636d91c7274': this.columnMapperJob,
|
59
|
+
f959e148ad7816c3e56c2b6cde28fa92: this.commentJob,
|
60
|
+
'85fc9b7831f0f96844e542e608ff48a7': this.documentJob,
|
55
61
|
a4c53b980443bba62582a3924d730965: this.mailValidationJob,
|
56
62
|
'90c0cea3abcf74ee20991ba5881e8683': this.mobileValidationJob,
|
57
63
|
b98597e52145a536f807481c3830fe2c: this.modelScannerJob,
|
@@ -75,6 +81,8 @@ Es6JobsService = __decorate([
|
|
75
81
|
(0, common_1.Injectable)(),
|
76
82
|
__metadata("design:paramtypes", [clean_scheduled_event_job_1.CleanScheduledEventJob,
|
77
83
|
column_mapper_job_1.ColumnMapperJob,
|
84
|
+
comment_job_1.CommentJob,
|
85
|
+
document_job_1.DocumentJob,
|
78
86
|
mail_validation_job_1.MailValidationJob,
|
79
87
|
mobile_validation_job_1.MobileValidationJob,
|
80
88
|
model_scanner_job_1.ModelScannerJob,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/system/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,iFAA2E;AAC3E,iEAA4D;AAC5D,qEAAgE;AAChE,yEAAoE;AACpE,iEAA4D;AAC5D,uDAAmD;AACnD,mFAA6E;AAC7E,6EAAwE;AACxE,2EAAqE;AACrE,qEAAgE;AAChE,uEAAkE;AAClE,6DAAwD;AACxD,yEAAmE;AACnE,iFAA2E;AAC3E,qEAA+D;AAC/D,8EAA0E;AAQnE,IAAM,cAAc,GAApB,MAAM,cAAc;IAGvB,YACqB,sBAA8C,EAC9C,eAAgC,EAChC,iBAAoC,EACpC,mBAAwC,EACxC,eAAgC,EAChC,WAAwB,EACxB,uBAAgD,EAChD,qBAA4C,EAC5C,mBAAwC,EACxC,iBAAoC,EACpC,kBAAsC,EACtC,aAA4B,EAC5B,kBAAsC,EACtC,sBAA8C,EAC9C,gBAAkC;
|
1
|
+
{"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/system/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,iFAA2E;AAC3E,iEAA4D;AAC5D,qDAAiD;AACjD,uDAAmD;AACnD,qEAAgE;AAChE,yEAAoE;AACpE,iEAA4D;AAC5D,uDAAmD;AACnD,mFAA6E;AAC7E,6EAAwE;AACxE,2EAAqE;AACrE,qEAAgE;AAChE,uEAAkE;AAClE,6DAAwD;AACxD,yEAAmE;AACnE,iFAA2E;AAC3E,qEAA+D;AAC/D,8EAA0E;AAQnE,IAAM,cAAc,GAApB,MAAM,cAAc;IAGvB,YACqB,sBAA8C,EAC9C,eAAgC,EAChC,UAAsB,EACtB,WAAwB,EACxB,iBAAoC,EACpC,mBAAwC,EACxC,eAAgC,EAChC,WAAwB,EACxB,uBAAgD,EAChD,qBAA4C,EAC5C,mBAAwC,EACxC,iBAAoC,EACpC,kBAAsC,EACtC,aAA4B,EAC5B,kBAAsC,EACtC,sBAA8C,EAC9C,gBAAkC;QAhBlC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,oBAAe,GAAf,eAAe,CAAiB;QAChC,eAAU,GAAV,UAAU,CAAY;QACtB,gBAAW,GAAX,WAAW,CAAa;QACxB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,oBAAe,GAAf,eAAe,CAAiB;QAChC,gBAAW,GAAX,WAAW,CAAa;QACxB,4BAA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C,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ,CAAA;AA3DY,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAKoC,kDAAsB;QAC7B,mCAAe;QACpB,wBAAU;QACT,0BAAW;QACL,uCAAiB;QACf,2CAAmB;QACvB,mCAAe;QACnB,0BAAW;QACC,oDAAuB;QACzB,+CAAqB;QACvB,4CAAmB;QACrB,uCAAiB;QAChB,yCAAkB;QACvB,+BAAa;QACR,0CAAkB;QACd,kDAAsB;QAC5B,sCAAgB;GApB9C,cAAc,CA2D1B;AA3DY,wCAAc"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
2
|
+
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
|
+
import { CommentEntity } from '../entities/comment.entity';
|
4
|
+
import { CommentJob } from '../jobs/comment.job';
|
5
|
+
export declare class CommentSubscriber extends CommonSubscriber<CommentEntity> {
|
6
|
+
private readonly dataSource;
|
7
|
+
private readonly commentJob;
|
8
|
+
constructor(dataSource: DataSource, commentJob: CommentJob);
|
9
|
+
listenTo(): typeof CommentEntity;
|
10
|
+
afterInsert(event: InsertEvent<CommentEntity>): Promise<void>;
|
11
|
+
afterUpdate(event: UpdateEvent<CommentEntity>): Promise<void>;
|
12
|
+
}
|
@@ -0,0 +1,39 @@
|
|
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.CommentSubscriber = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
15
|
+
const comment_entity_1 = require("../entities/comment.entity");
|
16
|
+
const comment_job_1 = require("../jobs/comment.job");
|
17
|
+
let CommentSubscriber = class CommentSubscriber extends common_subscriber_1.CommonSubscriber {
|
18
|
+
constructor(dataSource, commentJob) {
|
19
|
+
super();
|
20
|
+
this.dataSource = dataSource;
|
21
|
+
this.commentJob = commentJob;
|
22
|
+
dataSource.subscribers.push(this);
|
23
|
+
}
|
24
|
+
listenTo() {
|
25
|
+
return comment_entity_1.CommentEntity;
|
26
|
+
}
|
27
|
+
async afterInsert(event) {
|
28
|
+
await this.commentJob.delayedDispatch(this.getEventData(event));
|
29
|
+
}
|
30
|
+
async afterUpdate(event) {
|
31
|
+
await this.commentJob.delayedDispatch(this.getEventData(event));
|
32
|
+
}
|
33
|
+
};
|
34
|
+
CommentSubscriber = __decorate([
|
35
|
+
(0, typeorm_1.EventSubscriber)(),
|
36
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource, comment_job_1.CommentJob])
|
37
|
+
], CommentSubscriber);
|
38
|
+
exports.CommentSubscriber = CommentSubscriber;
|
39
|
+
//# sourceMappingURL=comment.subscriber.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"comment.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/comment.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,+DAA2D;AAC3D,qDAAiD;AAG1C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oCAA+B;IAClE,YAA6B,UAAsB,EAAmB,UAAsB;QACxF,KAAK,EAAE,CAAC;QADiB,eAAU,GAAV,UAAU,CAAY;QAAmB,eAAU,GAAV,UAAU,CAAY;QAExF,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,8BAAa,CAAC;IACzB,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAiC;QAC/C,MAAM,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAiC;QAC/C,MAAM,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;CACJ,CAAA;AAfY,iBAAiB;IAD7B,IAAA,yBAAe,GAAE;qCAE2B,oBAAU,EAA+B,wBAAU;GADnF,iBAAiB,CAe7B;AAfY,8CAAiB"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
2
|
+
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
|
+
import { DocumentEntity } from '../entities/document.entity';
|
4
|
+
import { DocumentJob } from '../jobs/document.job';
|
5
|
+
export declare class DocumentSubscriber extends CommonSubscriber<DocumentEntity> {
|
6
|
+
private readonly dataSource;
|
7
|
+
private readonly documentJob;
|
8
|
+
constructor(dataSource: DataSource, documentJob: DocumentJob);
|
9
|
+
listenTo(): typeof DocumentEntity;
|
10
|
+
afterInsert(event: InsertEvent<DocumentEntity>): Promise<void>;
|
11
|
+
afterUpdate(event: UpdateEvent<DocumentEntity>): Promise<void>;
|
12
|
+
}
|
@@ -0,0 +1,39 @@
|
|
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.DocumentSubscriber = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
15
|
+
const document_entity_1 = require("../entities/document.entity");
|
16
|
+
const document_job_1 = require("../jobs/document.job");
|
17
|
+
let DocumentSubscriber = class DocumentSubscriber extends common_subscriber_1.CommonSubscriber {
|
18
|
+
constructor(dataSource, documentJob) {
|
19
|
+
super();
|
20
|
+
this.dataSource = dataSource;
|
21
|
+
this.documentJob = documentJob;
|
22
|
+
dataSource.subscribers.push(this);
|
23
|
+
}
|
24
|
+
listenTo() {
|
25
|
+
return document_entity_1.DocumentEntity;
|
26
|
+
}
|
27
|
+
async afterInsert(event) {
|
28
|
+
await this.documentJob.delayedDispatch(this.getEventData(event));
|
29
|
+
}
|
30
|
+
async afterUpdate(event) {
|
31
|
+
await this.documentJob.delayedDispatch(this.getEventData(event));
|
32
|
+
}
|
33
|
+
};
|
34
|
+
DocumentSubscriber = __decorate([
|
35
|
+
(0, typeorm_1.EventSubscriber)(),
|
36
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource, document_job_1.DocumentJob])
|
37
|
+
], DocumentSubscriber);
|
38
|
+
exports.DocumentSubscriber = DocumentSubscriber;
|
39
|
+
//# sourceMappingURL=document.subscriber.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"document.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/document.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,iEAA6D;AAC7D,uDAAmD;AAG5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oCAAgC;IACpE,YAA6B,UAAsB,EAAmB,WAAwB;QAC1F,KAAK,EAAE,CAAC;QADiB,eAAU,GAAV,UAAU,CAAY;QAAmB,gBAAW,GAAX,WAAW,CAAa;QAE1F,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,gCAAc,CAAC;IAC1B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAkC;QAChD,MAAM,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAkC;QAChD,MAAM,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACJ,CAAA;AAfY,kBAAkB;IAD9B,IAAA,yBAAe,GAAE;qCAE2B,oBAAU,EAAgC,0BAAW;GADrF,kBAAkB,CAe9B;AAfY,gDAAkB"}
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./column.subscriber"), exports);
|
18
|
+
__exportStar(require("./comment.subscriber"), exports);
|
19
|
+
__exportStar(require("./document.subscriber"), exports);
|
18
20
|
__exportStar(require("./mail.validation.subscriber"), exports);
|
19
21
|
__exportStar(require("./mobile.validation.subscriber"), exports);
|
20
22
|
__exportStar(require("./property.subscriber"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+DAA6C;AAC7C,iEAA+C;AAC/C,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,2DAAyC;AACzC,iEAA+C;AAC/C,qEAAmD;AACnD,+DAA6C"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,uDAAqC;AACrC,wDAAsC;AACtC,+DAA6C;AAC7C,iEAA+C;AAC/C,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,2DAAyC;AACzC,iEAA+C;AAC/C,qEAAmD;AACnD,+DAA6C"}
|
package/package.json
CHANGED