@servicelabsco/nestjs-utility-services 1.2.106 → 1.2.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/dtos/index.d.ts +3 -0
- package/dist/common/dtos/index.js +3 -0
- package/dist/common/dtos/index.js.map +1 -1
- package/dist/common/dtos/json.condition.settings.dto.d.ts +6 -0
- package/dist/common/dtos/json.condition.settings.dto.js +8 -0
- package/dist/common/dtos/json.condition.settings.dto.js.map +1 -0
- package/dist/common/dtos/json.field.condition.dto.d.ts +5 -0
- package/dist/common/dtos/json.field.condition.dto.js +7 -0
- package/dist/common/dtos/json.field.condition.dto.js.map +1 -0
- package/dist/common/dtos/json.field.rule.dto.d.ts +9 -0
- package/dist/common/dtos/json.field.rule.dto.js +8 -0
- package/dist/common/dtos/json.field.rule.dto.js.map +1 -0
- package/dist/common/es6.classes.d.ts +2 -1
- package/dist/common/es6.classes.js +8 -0
- package/dist/common/es6.classes.js.map +1 -1
- package/dist/common/libraries/index.d.ts +1 -0
- package/dist/common/libraries/index.js +1 -0
- package/dist/common/libraries/index.js.map +1 -1
- package/dist/common/libraries/json.evaluator.d.ts +10 -0
- package/dist/common/libraries/json.evaluator.js +250 -0
- package/dist/common/libraries/json.evaluator.js.map +1 -0
- package/dist/system/es6.classes.d.ts +2 -1
- package/dist/system/es6.classes.js +2 -0
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/libraries/code.evaluator.d.ts +9 -0
- package/dist/system/libraries/code.evaluator.js +33 -0
- package/dist/system/libraries/code.evaluator.js.map +1 -0
- package/dist/system/libraries/index.d.ts +1 -0
- package/dist/system/libraries/index.js +1 -0
- package/dist/system/libraries/index.js.map +1 -1
- package/package.json +1 -1
@@ -8,6 +8,9 @@ export * from './generic.show.param.dto';
|
|
8
8
|
export * from './group.param.dto';
|
9
9
|
export * from './index.column.dto';
|
10
10
|
export * from './index.params.dto';
|
11
|
+
export * from './json.condition.settings.dto';
|
12
|
+
export * from './json.field.condition.dto';
|
13
|
+
export * from './json.field.rule.dto';
|
11
14
|
export * from './key.value.param.dto';
|
12
15
|
export * from './layout.column.db.dto';
|
13
16
|
export * from './meta.data.dto';
|
@@ -24,6 +24,9 @@ __exportStar(require("./generic.show.param.dto"), exports);
|
|
24
24
|
__exportStar(require("./group.param.dto"), exports);
|
25
25
|
__exportStar(require("./index.column.dto"), exports);
|
26
26
|
__exportStar(require("./index.params.dto"), exports);
|
27
|
+
__exportStar(require("./json.condition.settings.dto"), exports);
|
28
|
+
__exportStar(require("./json.field.condition.dto"), exports);
|
29
|
+
__exportStar(require("./json.field.rule.dto"), exports);
|
27
30
|
__exportStar(require("./key.value.param.dto"), exports);
|
28
31
|
__exportStar(require("./layout.column.db.dto"), exports);
|
29
32
|
__exportStar(require("./meta.data.dto"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,4DAA0C;AAAA,2DAAyC;AAAA,oDAAkC;AAAA,qDAAmC;AAAA,qDAAmC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,kDAAgC;AAAA,4DAA0C;AAAA,mDAAiC;AAAA,sDAAoC;AAAA,oDAAkC;AAAA,4DAAyC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,4DAA0C;AAAA,2DAAyC;AAAA,oDAAkC;AAAA,qDAAmC;AAAA,qDAAmC;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,kDAAgC;AAAA,4DAA0C;AAAA,mDAAiC;AAAA,sDAAoC;AAAA,oDAAkC;AAAA,4DAAyC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { JsonFieldConditionDto } from './json.field.condition.dto';
|
2
|
+
export declare class JsonConditionSettingsDto extends JsonFieldConditionDto {
|
3
|
+
transformValueFn?: (value: any, reference: any, property: string) => any;
|
4
|
+
previousValueFn?: (reference: any, property: string) => any;
|
5
|
+
log?: (str: string) => void;
|
6
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.JsonConditionSettingsDto = void 0;
|
4
|
+
const json_field_condition_dto_1 = require("./json.field.condition.dto");
|
5
|
+
class JsonConditionSettingsDto extends json_field_condition_dto_1.JsonFieldConditionDto {
|
6
|
+
}
|
7
|
+
exports.JsonConditionSettingsDto = JsonConditionSettingsDto;
|
8
|
+
//# sourceMappingURL=json.condition.settings.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json.condition.settings.dto.js","sourceRoot":"","sources":["../../../src/common/dtos/json.condition.settings.dto.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AAEnE,MAAa,wBAAyB,SAAQ,gDAAqB;CAIlE;AAJD,4DAIC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.JsonFieldConditionDto = void 0;
|
4
|
+
class JsonFieldConditionDto {
|
5
|
+
}
|
6
|
+
exports.JsonFieldConditionDto = JsonFieldConditionDto;
|
7
|
+
//# sourceMappingURL=json.field.condition.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json.field.condition.dto.js","sourceRoot":"","sources":["../../../src/common/dtos/json.field.condition.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;CAGjC;AAHD,sDAGC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { JsonFieldConditionDto } from './json.field.condition.dto';
|
2
|
+
type JsonConditionOptions = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'null' | 'not null' | 'all' | 'some' | 'none' | 'crosses' | 'startsWith' | 'endsWith' | 'contains' | 'not contains' | 'notContains' | 'in' | 'notIn' | 'matches' | 'not matches' | 'like' | 'between' | 'notBetween' | 'notNull';
|
3
|
+
export declare class JsonFieldRuleDto extends JsonFieldConditionDto {
|
4
|
+
field: string;
|
5
|
+
operator: JsonConditionOptions;
|
6
|
+
value: any;
|
7
|
+
required?: boolean;
|
8
|
+
}
|
9
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.JsonFieldRuleDto = void 0;
|
4
|
+
const json_field_condition_dto_1 = require("./json.field.condition.dto");
|
5
|
+
class JsonFieldRuleDto extends json_field_condition_dto_1.JsonFieldConditionDto {
|
6
|
+
}
|
7
|
+
exports.JsonFieldRuleDto = JsonFieldRuleDto;
|
8
|
+
//# sourceMappingURL=json.field.rule.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json.field.rule.dto.js","sourceRoot":"","sources":["../../../src/common/dtos/json.field.rule.dto.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AA6BnE,MAAa,gBAAiB,SAAQ,gDAAqB;CAK1D;AALD,4CAKC"}
|
@@ -8,6 +8,7 @@ import { GenericIndexParamDto } from './dtos/generic.index.param.dto';
|
|
8
8
|
import { GenericShowParamDto } from './dtos/generic.show.param.dto';
|
9
9
|
import { GroupParamDto } from './dtos/group.param.dto';
|
10
10
|
import { IndexColumnDto } from './dtos/index.column.dto';
|
11
|
+
import { JsonFieldConditionDto } from './dtos/json.field.condition.dto';
|
11
12
|
import { KeyValueParamDto } from './dtos/key.value.param.dto';
|
12
13
|
import { LayoutColumnDbDto } from './dtos/layout.column.db.dto';
|
13
14
|
import { MetaDataDto } from './dtos/meta.data.dto';
|
@@ -31,7 +32,7 @@ import { ReportListManager } from './libraries/report.list.manager';
|
|
31
32
|
import { SeederUtility } from './libraries/seeder.utility';
|
32
33
|
declare const es6Classes: {
|
33
34
|
adapters: (typeof RedisIoAdapter)[];
|
34
|
-
dtos: (typeof MetaDataDto | typeof DatabaseEventDto | typeof LayoutColumnDbDto | typeof GenericIndexParamDto | typeof RecordDataManagerDto | typeof RecordTabDto | typeof AggregationParamDto | typeof GroupParamDto | typeof ReportBodyDto | typeof ReportDataManagerDto | typeof CaptureRecordIndexDto | typeof CaptureRecordShowDto | typeof ForeignMigrationDto | typeof GenericShowParamDto | typeof IndexColumnDto | typeof KeyValueParamDto | typeof RenameColumnDto)[];
|
35
|
+
dtos: (typeof MetaDataDto | typeof DatabaseEventDto | typeof LayoutColumnDbDto | typeof GenericIndexParamDto | typeof RecordDataManagerDto | typeof RecordTabDto | typeof AggregationParamDto | typeof GroupParamDto | typeof ReportBodyDto | typeof ReportDataManagerDto | typeof CaptureRecordIndexDto | typeof CaptureRecordShowDto | typeof ForeignMigrationDto | typeof GenericShowParamDto | typeof IndexColumnDto | typeof JsonFieldConditionDto | typeof KeyValueParamDto | typeof RenameColumnDto)[];
|
35
36
|
exceptions: (typeof AccessException)[];
|
36
37
|
libraries: (typeof CommonJob | typeof GenericIndexParser | typeof GenericShowParser | typeof DataManager | typeof ListManager | typeof RecordManager | typeof ReportDataManager | typeof ReportListManager | typeof BaseMigrationUtility | typeof CommonConsumer | typeof DatabaseEventEvaluator | typeof SeederUtility)[];
|
37
38
|
};
|
@@ -11,6 +11,9 @@ const generic_show_param_dto_1 = require("./dtos/generic.show.param.dto");
|
|
11
11
|
const group_param_dto_1 = require("./dtos/group.param.dto");
|
12
12
|
const index_column_dto_1 = require("./dtos/index.column.dto");
|
13
13
|
const index_params_dto_1 = require("./dtos/index.params.dto");
|
14
|
+
const json_condition_settings_dto_1 = require("./dtos/json.condition.settings.dto");
|
15
|
+
const json_field_condition_dto_1 = require("./dtos/json.field.condition.dto");
|
16
|
+
const json_field_rule_dto_1 = require("./dtos/json.field.rule.dto");
|
14
17
|
const key_value_param_dto_1 = require("./dtos/key.value.param.dto");
|
15
18
|
const layout_column_db_dto_1 = require("./dtos/layout.column.db.dto");
|
16
19
|
const meta_data_dto_1 = require("./dtos/meta.data.dto");
|
@@ -42,6 +45,7 @@ const entity_evaluator_1 = require("./libraries/entity.evaluator");
|
|
42
45
|
const generic_index_parser_1 = require("./libraries/generic.index.parser");
|
43
46
|
const generic_show_parser_1 = require("./libraries/generic.show.parser");
|
44
47
|
const hash_1 = require("./libraries/hash");
|
48
|
+
const json_evaluator_1 = require("./libraries/json.evaluator");
|
45
49
|
const list_manager_1 = require("./libraries/list.manager");
|
46
50
|
const migration_utility_1 = require("./libraries/migration.utility");
|
47
51
|
const platform_utility_1 = require("./libraries/platform.utility");
|
@@ -64,6 +68,9 @@ const es6Classes = {
|
|
64
68
|
group_param_dto_1.GroupParamDto,
|
65
69
|
index_column_dto_1.IndexColumnDto,
|
66
70
|
index_params_dto_1.IndexParamsDto,
|
71
|
+
json_condition_settings_dto_1.JsonConditionSettingsDto,
|
72
|
+
json_field_condition_dto_1.JsonFieldConditionDto,
|
73
|
+
json_field_rule_dto_1.JsonFieldRuleDto,
|
67
74
|
key_value_param_dto_1.KeyValueParamDto,
|
68
75
|
layout_column_db_dto_1.LayoutColumnDbDto,
|
69
76
|
meta_data_dto_1.MetaDataDto,
|
@@ -92,6 +99,7 @@ const es6Classes = {
|
|
92
99
|
generic_index_parser_1.GenericIndexParser,
|
93
100
|
generic_show_parser_1.GenericShowParser,
|
94
101
|
hash_1.Hash,
|
102
|
+
json_evaluator_1.JsonEvaluator,
|
95
103
|
list_manager_1.ListManager,
|
96
104
|
migration_utility_1.MigrationUtility,
|
97
105
|
platform_utility_1.PlatformUtility,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/common/es6.classes.ts"],"names":[],"mappings":";;AAAA,kEAA6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AW;QACX,gCAAc;QACd,4BAAY;QACZ,sBAAS;QACT,mCAAe;QACf,uCAAiB;QACjB,oCAAgB;QAChB,0BAAW;QACX,0BAAW;QACX,iDAAsB;QACtB,oBAAQ;QACR,kCAAe;QACf,yCAAkB;QAClB,uCAAiB;QACjB,WAAI;QACJ,0BAAW;QACX,oCAAgB;QAChB,kCAAe;QACf,8BAAa;QACb,qCAAgB;QAChB,uCAAiB;QACjB,uCAAiB;QACjB,mDAAuB;QACvB,8BAAa;KAChB;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/common/es6.classes.ts"],"names":[],"mappings":";;AAAA,kEAA6D;AAC7D,wEAAmE;AACnE,8EAAwE;AACxE,4EAAsE;AACtE,kEAA6D;AAC7D,wEAAmE;AACnE,4EAAsE;AACtE,0EAAoE;AACpE,4DAAuD;AACvD,8DAAyD;AACzD,8DAAyD;AACzD,oFAA8E;AAC9E,8EAAwE;AACxE,oEAA8D;AAC9D,oEAA8D;AAC9D,sEAAgE;AAChE,wDAAmD;AACnD,4EAAsE;AACtE,0DAAqD;AACrD,gEAA2D;AAC3D,4DAAuD;AACvD,4EAAsE;AACtE,oEAAgE;AAChE,gEAA4D;AAC5D,8EAA0E;AAC1E,oFAA8E;AAC9E,0EAAsE;AACtE,gFAA4E;AAC5E,2CAAwC;AACxC,+EAA0E;AAC1E,2DAAuD;AACvD,iEAA6D;AAC7D,6DAAyD;AACzD,uDAAmD;AACnD,qEAAgE;AAChE,yEAAoE;AACpE,qEAAiE;AACjE,2DAAuD;AACvD,2DAAuD;AACvD,mFAA8E;AAC9E,qDAAiD;AACjD,mEAA+D;AAC/D,2EAAsE;AACtE,yEAAoE;AACpE,2CAAwC;AACxC,+DAA2D;AAC3D,2DAAuD;AACvD,qEAAiE;AACjE,mEAA+D;AAC/D,+DAA2D;AAC3D,uEAAkE;AAClE,yEAAoE;AACpE,yEAAoE;AACpE,qFAAgF;AAChF,+DAA2D;AAE3D,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,iCAAc,CAAC;IAC1B,IAAI,EAAE;QACF,2CAAmB;QACnB,gDAAqB;QACrB,8CAAoB;QACpB,qCAAgB;QAChB,2CAAmB;QACnB,8CAAoB;QACpB,4CAAmB;QACnB,+BAAa;QACb,iCAAc;QACd,iCAAc;QACd,sDAAwB;QACxB,gDAAqB;QACrB,sCAAgB;QAChB,sCAAgB;QAChB,wCAAiB;QACjB,2BAAW;QACX,8CAAoB;QACpB,6BAAY;QACZ,mCAAe;QACf,+BAAa;QACb,8CAAoB;KACvB;IACD,UAAU,EAAE,CAAC,kCAAe,EAAE,8BAAa,EAAE,4CAAoB,EAAE,gDAAqB,EAAE,wCAAkB,EAAE,8CAAqB,CAAC;IACpI,SAAS,EAAE;QACP,WAAI;QACJ,6CAAoB;QACpB,0BAAW;QACX,gCAAc;QACd,4BAAY;QACZ,sBAAS;QACT,mCAAe;QACf,uCAAiB;QACjB,oCAAgB;QAChB,0BAAW;QACX,0BAAW;QACX,iDAAsB;QACtB,oBAAQ;QACR,kCAAe;QACf,yCAAkB;QAClB,uCAAiB;QACjB,WAAI;QACJ,8BAAa;QACb,0BAAW;QACX,oCAAgB;QAChB,kCAAe;QACf,8BAAa;QACb,qCAAgB;QAChB,uCAAiB;QACjB,uCAAiB;QACjB,mDAAuB;QACvB,8BAAa;KAChB;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
@@ -16,6 +16,7 @@ export * from './entity.evaluator';
|
|
16
16
|
export * from './generic.index.parser';
|
17
17
|
export * from './generic.show.parser';
|
18
18
|
export * from './hash';
|
19
|
+
export * from './json.evaluator';
|
19
20
|
export * from './list.manager';
|
20
21
|
export * from './migration.utility';
|
21
22
|
export * from './platform.utility';
|
@@ -32,6 +32,7 @@ __exportStar(require("./entity.evaluator"), exports);
|
|
32
32
|
__exportStar(require("./generic.index.parser"), exports);
|
33
33
|
__exportStar(require("./generic.show.parser"), exports);
|
34
34
|
__exportStar(require("./hash"), exports);
|
35
|
+
__exportStar(require("./json.evaluator"), exports);
|
35
36
|
__exportStar(require("./list.manager"), exports);
|
36
37
|
__exportStar(require("./migration.utility"), exports);
|
37
38
|
__exportStar(require("./platform.utility"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AAAA,uDAAqC;AAAA,2DAAyC;AAAA,iDAA+B;AAAA,oDAAkC;AAAA,kDAAgC;AAAA,+CAA6B;AAAA,sDAAoC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,8CAA4B;AAAA,qDAAmC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,yCAAuB;AAAA,iDAA+B;AAAA,sDAAoC;AAAA,qDAAmC;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,mDAAgC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AAAA,uDAAqC;AAAA,2DAAyC;AAAA,iDAA+B;AAAA,oDAAkC;AAAA,kDAAgC;AAAA,+CAA6B;AAAA,sDAAoC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,8CAA4B;AAAA,qDAAmC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,yCAAuB;AAAA,mDAAiC;AAAA,iDAA+B;AAAA,sDAAoC;AAAA,qDAAmC;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,mDAAgC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { JsonConditionSettingsDto } from '../dtos/json.condition.settings.dto';
|
2
|
+
export declare class JsonEvaluator {
|
3
|
+
validate(settings: JsonConditionSettingsDto, reference: any): boolean;
|
4
|
+
private getObjectProperty;
|
5
|
+
private toString;
|
6
|
+
private getDateValue;
|
7
|
+
private isLiteralDateColumn;
|
8
|
+
private getLiteralDateValue;
|
9
|
+
private isValidDate;
|
10
|
+
}
|
@@ -0,0 +1,250 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.JsonEvaluator = void 0;
|
4
|
+
const date_fns_1 = require("date-fns");
|
5
|
+
const locale_1 = require("date-fns/locale");
|
6
|
+
class JsonEvaluator {
|
7
|
+
validate(settings, reference) {
|
8
|
+
if (!(settings && Array.isArray(settings.rules)))
|
9
|
+
return false;
|
10
|
+
let debugStr = '';
|
11
|
+
let requiredPassed = 0;
|
12
|
+
let normalPassed = 0;
|
13
|
+
settings.rules.map((rule, index) => {
|
14
|
+
let result;
|
15
|
+
if (rule.combinator) {
|
16
|
+
result = this.validate(rule, reference);
|
17
|
+
if (result) {
|
18
|
+
if (rule.required)
|
19
|
+
requiredPassed += 1;
|
20
|
+
else
|
21
|
+
normalPassed += 1;
|
22
|
+
}
|
23
|
+
return;
|
24
|
+
}
|
25
|
+
let error;
|
26
|
+
if (!rule.field) {
|
27
|
+
error = new Error(`field not specified for rule ${index}`);
|
28
|
+
error.rule = rule;
|
29
|
+
throw error;
|
30
|
+
}
|
31
|
+
let value = this.getObjectProperty(reference, rule.field);
|
32
|
+
if (rule.field.includes('[]')) {
|
33
|
+
const [topPath, nPath] = rule.field.split('[]');
|
34
|
+
const nestedPath = nPath.substring(1);
|
35
|
+
value = this.getObjectProperty(reference, topPath).map((item) => (nestedPath ? this.getObjectProperty(item, nestedPath) : item));
|
36
|
+
}
|
37
|
+
let targetValue = rule.value;
|
38
|
+
const targetArrayValue = Array.isArray(targetValue)
|
39
|
+
? targetValue
|
40
|
+
: this.toString(targetValue)
|
41
|
+
.replaceAll('\\', '')
|
42
|
+
.split(',')
|
43
|
+
.map((item) => item.trim());
|
44
|
+
if (typeof settings.transformValueFn === 'function') {
|
45
|
+
targetValue = settings.transformValueFn(targetValue, reference, rule.field);
|
46
|
+
}
|
47
|
+
let altComparison = null;
|
48
|
+
if (typeof value === 'boolean' && (typeof targetValue === 'string' || targetValue instanceof String)) {
|
49
|
+
if (targetValue.toLowerCase() === 'false')
|
50
|
+
altComparison = false;
|
51
|
+
if (targetValue.toLowerCase() === 'true')
|
52
|
+
altComparison = true;
|
53
|
+
}
|
54
|
+
switch (rule.operator) {
|
55
|
+
case '=':
|
56
|
+
result = value === targetValue;
|
57
|
+
if (this.isValidDate(value)) {
|
58
|
+
result = (0, date_fns_1.isEqual)(this.getDateValue(value), this.getDateValue(targetValue));
|
59
|
+
}
|
60
|
+
if (this.isLiteralDateColumn(targetValue) && this.isValidDate(value)) {
|
61
|
+
result = (0, date_fns_1.isEqual)((0, date_fns_1.startOfDay)(this.getDateValue(value)), (0, date_fns_1.startOfDay)(this.getLiteralDateValue(targetValue, reference)));
|
62
|
+
}
|
63
|
+
if (altComparison !== null)
|
64
|
+
result = result || value === altComparison;
|
65
|
+
break;
|
66
|
+
case '!=':
|
67
|
+
result = value !== targetValue;
|
68
|
+
if (this.isValidDate(value)) {
|
69
|
+
result = !(0, date_fns_1.isEqual)(this.getDateValue(value), this.getDateValue(targetValue));
|
70
|
+
}
|
71
|
+
if (this.isLiteralDateColumn(targetValue) && this.isValidDate(value)) {
|
72
|
+
result = !(0, date_fns_1.isEqual)((0, date_fns_1.startOfDay)(this.getDateValue(value)), (0, date_fns_1.startOfDay)(this.getLiteralDateValue(targetValue, reference)));
|
73
|
+
}
|
74
|
+
if (altComparison !== null)
|
75
|
+
result = result && value !== altComparison;
|
76
|
+
break;
|
77
|
+
case '>':
|
78
|
+
result = value > targetValue;
|
79
|
+
if (this.isValidDate(value)) {
|
80
|
+
result = (0, date_fns_1.isAfter)(this.getDateValue(value), this.getDateValue(targetValue));
|
81
|
+
}
|
82
|
+
if (this.isLiteralDateColumn(targetValue) && this.isValidDate(value)) {
|
83
|
+
result = (0, date_fns_1.isAfter)(this.getDateValue(value), this.getLiteralDateValue(targetValue, reference));
|
84
|
+
}
|
85
|
+
break;
|
86
|
+
case '>=':
|
87
|
+
result = value >= targetValue;
|
88
|
+
if (this.isValidDate(value)) {
|
89
|
+
result =
|
90
|
+
(0, date_fns_1.isAfter)(this.getDateValue(value), this.getDateValue(targetValue)) ||
|
91
|
+
(0, date_fns_1.isEqual)(this.getDateValue(value), this.getDateValue(targetValue));
|
92
|
+
}
|
93
|
+
if (this.isLiteralDateColumn(targetValue) && this.isValidDate(value)) {
|
94
|
+
result =
|
95
|
+
(0, date_fns_1.isAfter)(this.getDateValue(value), this.getLiteralDateValue(targetValue, reference)) ||
|
96
|
+
(0, date_fns_1.isEqual)((0, date_fns_1.startOfDay)(this.getDateValue(value)), (0, date_fns_1.startOfDay)(this.getLiteralDateValue(targetValue, reference)));
|
97
|
+
}
|
98
|
+
break;
|
99
|
+
case '<':
|
100
|
+
result = value < targetValue;
|
101
|
+
if (this.isValidDate(value)) {
|
102
|
+
result = (0, date_fns_1.isBefore)(this.getDateValue(value), this.getDateValue(targetValue));
|
103
|
+
}
|
104
|
+
if (this.isLiteralDateColumn(targetValue) && this.isValidDate(value)) {
|
105
|
+
result = (0, date_fns_1.isBefore)(this.getDateValue(value), this.getLiteralDateValue(targetValue, reference));
|
106
|
+
}
|
107
|
+
break;
|
108
|
+
case '<=':
|
109
|
+
result = value <= targetValue;
|
110
|
+
if (this.isValidDate(value)) {
|
111
|
+
result =
|
112
|
+
(0, date_fns_1.isBefore)(this.getDateValue(value), this.getDateValue(targetValue)) ||
|
113
|
+
(0, date_fns_1.isEqual)(this.getDateValue(value), this.getDateValue(targetValue));
|
114
|
+
}
|
115
|
+
if (this.isLiteralDateColumn(targetValue) && this.isValidDate(value)) {
|
116
|
+
result =
|
117
|
+
(0, date_fns_1.isBefore)(this.getDateValue(value), this.getLiteralDateValue(targetValue, reference)) ||
|
118
|
+
(0, date_fns_1.isEqual)((0, date_fns_1.startOfDay)(this.getDateValue(value)), (0, date_fns_1.startOfDay)(this.getLiteralDateValue(targetValue, reference)));
|
119
|
+
}
|
120
|
+
break;
|
121
|
+
case 'startsWith':
|
122
|
+
result = this.toString(value).startsWith(targetValue);
|
123
|
+
break;
|
124
|
+
case 'endsWith':
|
125
|
+
result = this.toString(value).endsWith(targetValue);
|
126
|
+
break;
|
127
|
+
case 'like':
|
128
|
+
result = this.toString(value).includes(targetValue);
|
129
|
+
break;
|
130
|
+
case 'not null':
|
131
|
+
result = Boolean(value);
|
132
|
+
break;
|
133
|
+
case 'notNull':
|
134
|
+
result = Boolean(value);
|
135
|
+
break;
|
136
|
+
case 'null':
|
137
|
+
result = !value;
|
138
|
+
break;
|
139
|
+
case 'matches':
|
140
|
+
result = value == this.getObjectProperty(reference, targetValue);
|
141
|
+
break;
|
142
|
+
case 'not matches':
|
143
|
+
result = value != this.getObjectProperty(reference, targetValue);
|
144
|
+
break;
|
145
|
+
case 'contains':
|
146
|
+
global.console.log('targetArrayValue', targetArrayValue);
|
147
|
+
result = targetArrayValue.some((targetValue) => targetValue == value);
|
148
|
+
break;
|
149
|
+
case 'not contains':
|
150
|
+
result = !targetArrayValue.some((targetValue) => targetValue == value);
|
151
|
+
break;
|
152
|
+
case 'all':
|
153
|
+
result = Array.isArray(value) && !value.find((v) => v !== targetValue);
|
154
|
+
break;
|
155
|
+
case 'some':
|
156
|
+
result = Array.isArray(value) && value.includes(targetValue);
|
157
|
+
break;
|
158
|
+
case 'none':
|
159
|
+
result = (Array.isArray(value) || value === null || typeof value === 'undefined') && !(value || []).includes(targetValue);
|
160
|
+
break;
|
161
|
+
case 'crosses': {
|
162
|
+
if (typeof settings.previousValueFn !== 'function') {
|
163
|
+
throw new Error('Comparison "crosses" selected, but no function supplied to return previous value');
|
164
|
+
}
|
165
|
+
const lastValue = settings.previousValueFn(reference, rule.field);
|
166
|
+
result = targetValue > lastValue && targetValue <= value;
|
167
|
+
debugStr = `(${index}) ${rule.field} was ${lastValue} and became ${value}. crossed ${targetValue}? ${result}\n`;
|
168
|
+
break;
|
169
|
+
}
|
170
|
+
case 'between': {
|
171
|
+
const between = rule.value.split(',').map((a) => Number(a));
|
172
|
+
const val = this.getObjectProperty(reference, rule.field);
|
173
|
+
result = val > between[0] && val < between[1];
|
174
|
+
break;
|
175
|
+
}
|
176
|
+
case 'notBetween': {
|
177
|
+
const notBetween = rule.value.split(',').map((a) => Number(a));
|
178
|
+
const refVal = this.getObjectProperty(reference, rule.field);
|
179
|
+
result = refVal <= notBetween[0] || refVal >= notBetween[1];
|
180
|
+
break;
|
181
|
+
}
|
182
|
+
default:
|
183
|
+
error = new Error(`Unknown comparison for rule (${rule.operator})`);
|
184
|
+
error.rule = rule;
|
185
|
+
throw error;
|
186
|
+
}
|
187
|
+
if (result) {
|
188
|
+
if (rule.required)
|
189
|
+
requiredPassed += 1;
|
190
|
+
else
|
191
|
+
normalPassed += 1;
|
192
|
+
}
|
193
|
+
const unary = ['absent', 'present'].includes(rule.operator);
|
194
|
+
debugStr += `(${index}) ${rule.field} (${value}) ${unary ? 'is' : ''} ${rule.operator} ${unary ? '' : targetValue}? ${result}\n`;
|
195
|
+
});
|
196
|
+
const requiredTotal = settings.rules.reduce((total, rule) => total + (rule.required ? 1 : 0), 0);
|
197
|
+
const normalTotal = settings.rules.length - requiredTotal;
|
198
|
+
const combinator = settings.combinator || 'or';
|
199
|
+
const requiredSatisfied = !requiredTotal || requiredTotal === requiredPassed;
|
200
|
+
const normalSatisfied = !normalTotal || (combinator === 'and' ? normalPassed === normalTotal : normalPassed > 0);
|
201
|
+
const outcome = normalSatisfied && requiredSatisfied;
|
202
|
+
if (normalTotal > 0) {
|
203
|
+
debugStr += `Passed ${normalPassed} / ${normalTotal} (need ${combinator}, ${normalSatisfied ? 'pass' : 'fail'})\n`;
|
204
|
+
}
|
205
|
+
if (requiredTotal > 0)
|
206
|
+
debugStr += `Passed ${requiredPassed} / ${requiredTotal} required conditions (${requiredSatisfied ? 'pass' : 'fail'})\n`;
|
207
|
+
debugStr += `Result: ${outcome ? 'PASS' : 'FAIL'}`;
|
208
|
+
if (settings.log)
|
209
|
+
settings.log(debugStr);
|
210
|
+
return outcome;
|
211
|
+
}
|
212
|
+
getObjectProperty(object, path, defVal = undefined) {
|
213
|
+
if (typeof path === 'string')
|
214
|
+
path = path.split('.');
|
215
|
+
if (Array.isArray(path) && path.length < 1)
|
216
|
+
return object[path[0]] || defVal;
|
217
|
+
return path.reduce((xs, x) => (xs && xs[x] !== undefined ? xs[x] : defVal), object);
|
218
|
+
}
|
219
|
+
toString(value) {
|
220
|
+
return typeof value === 'string' ? value : JSON.stringify(value);
|
221
|
+
}
|
222
|
+
getDateValue(value) {
|
223
|
+
if ((0, date_fns_1.isValid)(new Date(value)))
|
224
|
+
return new Date(value);
|
225
|
+
return (0, date_fns_1.parse)(value, 'P', new Date(), { locale: locale_1.enIN });
|
226
|
+
}
|
227
|
+
isLiteralDateColumn(value) {
|
228
|
+
return Array.isArray(value) && value.length === 3;
|
229
|
+
}
|
230
|
+
getLiteralDateValue(value, reference) {
|
231
|
+
const [days, direction, selector] = value;
|
232
|
+
let date = (0, date_fns_1.startOfDay)(new Date());
|
233
|
+
if (selector !== 'today') {
|
234
|
+
date = this.getDateValue(this.getObjectProperty(reference, selector));
|
235
|
+
}
|
236
|
+
if (direction === 'before') {
|
237
|
+
date = (0, date_fns_1.subDays)(date, days);
|
238
|
+
}
|
239
|
+
if (direction === 'after') {
|
240
|
+
date = (0, date_fns_1.addDays)(date, days);
|
241
|
+
}
|
242
|
+
return date;
|
243
|
+
}
|
244
|
+
isValidDate(value) {
|
245
|
+
const parsedDate = this.getDateValue(value);
|
246
|
+
return (0, date_fns_1.isValid)(parsedDate);
|
247
|
+
}
|
248
|
+
}
|
249
|
+
exports.JsonEvaluator = JsonEvaluator;
|
250
|
+
//# sourceMappingURL=json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group.role.job';
|
121
121
|
import { BusinessRuleFilterValidator } from './libraries/business.rule.filter.validator';
|
122
122
|
import { BusinessRuleQueryEvaluator } from './libraries/business.rule.query.evaluator';
|
123
|
+
import { CodeEvaluator } from './libraries/code.evaluator';
|
123
124
|
import { ColumnManager } from './libraries/column.manager';
|
124
125
|
import { ExecuteCodeFix } from './libraries/execute.code.fix';
|
125
126
|
import { ModelSync } from './libraries/model.sync';
|
@@ -181,7 +182,7 @@ declare const es6Classes: {
|
|
181
182
|
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 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 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)[];
|
182
183
|
interceptors: (typeof SentryInterceptor)[];
|
183
184
|
jobs: (typeof ExecuteCodeFixJob | typeof SetScheduledEventJob | typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof SyncAllCodeJob | typeof CleanScheduledEventJob | typeof ClientCredentialJob | typeof ClientJob | typeof CodeFixLogJob | typeof CodeFixScriptJob | typeof ColumnMapperJob | typeof CommentJob | typeof CredentialIpJob | typeof DocumentJob | typeof MailEventJob | typeof MailRecipientJob | typeof MailValidationJob | typeof MobileValidationJob | typeof RefreshPropertyCacheJob | typeof PropertyJob | typeof RelationshipMapperJob | typeof ScheduledEventJob | typeof SetEventQueueJob | typeof SmsMessageJob | typeof SqsPollingJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
|
184
|
-
libraries: (typeof ExecuteCodeFix | typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof SyncDynamoTables | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator | typeof ProcessMenuCreation)[];
|
185
|
+
libraries: (typeof ExecuteCodeFix | typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof SyncDynamoTables | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator | typeof ProcessMenuCreation | typeof CodeEvaluator)[];
|
185
186
|
modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
|
186
187
|
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)[];
|
187
188
|
subscribers: (typeof ClientCredentialSubscriber | typeof ClientSubscriber | typeof CodeFixLogSubscriber | typeof CodeFixScriptSubscriber | typeof ColumnSubscriber | typeof CommentSubscriber | typeof CredentialIpSubscriber | typeof DocumentSubscriber | typeof MailEventSubscriber | typeof MailRecipientSubscriber | typeof MailValidationSubscriber | typeof MobileValidationSubscriber | typeof PropertySubscriber | typeof RelationshipSubscriber | typeof ScheduledEventSubscriber | typeof SmsMessageSubscriber | typeof UserGroupMemberSubscriber | typeof UserGroupPermissionSubscriber | typeof UserGroupRoleSubscriber)[];
|
@@ -139,6 +139,7 @@ const user_group_permission_job_1 = require("./jobs/user.group.permission.job");
|
|
139
139
|
const user_group_role_job_1 = require("./jobs/user.group.role.job");
|
140
140
|
const business_rule_filter_validator_1 = require("./libraries/business.rule.filter.validator");
|
141
141
|
const business_rule_query_evaluator_1 = require("./libraries/business.rule.query.evaluator");
|
142
|
+
const code_evaluator_1 = require("./libraries/code.evaluator");
|
142
143
|
const column_manager_1 = require("./libraries/column.manager");
|
143
144
|
const execute_code_fix_1 = require("./libraries/execute.code.fix");
|
144
145
|
const model_sync_1 = require("./libraries/model.sync");
|
@@ -344,6 +345,7 @@ const es6Classes = {
|
|
344
345
|
libraries: [
|
345
346
|
business_rule_filter_validator_1.BusinessRuleFilterValidator,
|
346
347
|
business_rule_query_evaluator_1.BusinessRuleQueryEvaluator,
|
348
|
+
code_evaluator_1.CodeEvaluator,
|
347
349
|
column_manager_1.ColumnManager,
|
348
350
|
execute_code_fix_1.ExecuteCodeFix,
|
349
351
|
model_sync_1.ModelSync,
|
@@ -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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N,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,wCAAkB;QAClB,2CAAmB;QACnB,mDAAuB;QACvB,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,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;AACnF,0EAAqE;AACrE,sFAAgF;AAChF,4EAAuE;AACvE,4DAAuD;AACvD,sEAAgE;AAChE,sEAAgE;AAChE,8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BAAW;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,wCAAkB;QAClB,2CAAmB;QACnB,mDAAuB;QACvB,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,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CodeEvaluator = void 0;
|
4
|
+
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
5
|
+
class CodeEvaluator {
|
6
|
+
async execute(script, context) {
|
7
|
+
const fn = this;
|
8
|
+
const data = context?.data;
|
9
|
+
const ctx = context?.fn;
|
10
|
+
const code = `
|
11
|
+
(async () => {
|
12
|
+
${script}
|
13
|
+
})()
|
14
|
+
`;
|
15
|
+
await eval(code);
|
16
|
+
}
|
17
|
+
getEntity(sourceType) {
|
18
|
+
return platform_utility_1.PlatformUtility.getEntity(sourceType);
|
19
|
+
}
|
20
|
+
getService(sourceType) {
|
21
|
+
return platform_utility_1.PlatformUtility.getService(sourceType);
|
22
|
+
}
|
23
|
+
async dispatchJob(sourceType, data, delay = 0) {
|
24
|
+
const job = platform_utility_1.PlatformUtility.getJob(sourceType);
|
25
|
+
if (!job) {
|
26
|
+
console.log(`given job ${sourceType} not found`);
|
27
|
+
return;
|
28
|
+
}
|
29
|
+
return job.dispatch(data, { delay });
|
30
|
+
}
|
31
|
+
}
|
32
|
+
exports.CodeEvaluator = CodeEvaluator;
|
33
|
+
//# sourceMappingURL=code.evaluator.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"code.evaluator.js","sourceRoot":"","sources":["../../../src/system/libraries/code.evaluator.ts"],"names":[],"mappings":";;;AAAA,8EAA0E;AAE1E,MAAa,aAAa;IAQtB,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,OAA+B;QACzD,MAAM,EAAE,GAAG,IAAI,CAAC;QAChB,MAAM,IAAI,GAAG,OAAO,EAAE,IAAI,CAAC;QAC3B,MAAM,GAAG,GAAG,OAAO,EAAE,EAAE,CAAC;QAExB,MAAM,IAAI,GAAG;;kBAEH,MAAM;;SAEf,CAAC;QAEF,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IAQO,SAAS,CAAC,UAAkB;QAChC,OAAO,kCAAe,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAQO,UAAU,CAAC,UAAkB;QACjC,OAAO,kCAAe,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAUO,KAAK,CAAC,WAAW,CAAC,UAAkB,EAAE,IAAS,EAAE,QAAgB,CAAC;QACtE,MAAM,GAAG,GAAG,kCAAe,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,GAAG,EAAE,CAAC;YACP,OAAO,CAAC,GAAG,CAAC,aAAa,UAAU,YAAY,CAAC,CAAC;YACjD,OAAO;QACX,CAAC;QAED,OAAO,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACzC,CAAC;CACJ;AA3DD,sCA2DC"}
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./business.rule.filter.validator"), exports);
|
18
18
|
__exportStar(require("./business.rule.query.evaluator"), exports);
|
19
|
+
__exportStar(require("./code.evaluator"), exports);
|
19
20
|
__exportStar(require("./column.manager"), exports);
|
20
21
|
__exportStar(require("./execute.code.fix"), exports);
|
21
22
|
__exportStar(require("./model.sync"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AAAA,kEAAgD;AAAA,mDAAiC;AAAA,qDAAmC;AAAA,+CAA6B;AAAA,0DAAwC;AAAA,4DAA0C;AAAA,uDAAoC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AAAA,kEAAgD;AAAA,mDAAiC;AAAA,mDAAiC;AAAA,qDAAmC;AAAA,+CAA6B;AAAA,0DAAwC;AAAA,4DAA0C;AAAA,uDAAoC"}
|
package/package.json
CHANGED