@servicelabsco/slabs-access-manager 1.0.34 → 1.0.35
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.
|
@@ -2,17 +2,11 @@ import { EventTriggerListFilterDto } from '../dtos/event.trigger.list.filter.dto
|
|
|
2
2
|
import { ListResponseDto } from '../dtos/list.response.dto';
|
|
3
3
|
import { AccessBusinessEntity } from '../entities/access.business.entity';
|
|
4
4
|
import { ListingService } from '../services/listing.service';
|
|
5
|
-
import {
|
|
6
|
-
export declare class ProcessEventTriggerList extends
|
|
5
|
+
import { ProcessCommonList } from './process.common.list';
|
|
6
|
+
export declare class ProcessEventTriggerList extends ProcessCommonList {
|
|
7
7
|
protected readonly business: AccessBusinessEntity;
|
|
8
8
|
protected readonly listingService: ListingService;
|
|
9
9
|
protected filter: EventTriggerListFilterDto;
|
|
10
|
-
protected config: {
|
|
11
|
-
sql: string;
|
|
12
|
-
order: string;
|
|
13
|
-
columns: string[];
|
|
14
|
-
metrics: any[];
|
|
15
|
-
};
|
|
16
10
|
constructor(business: AccessBusinessEntity, listingService: ListingService);
|
|
17
11
|
process(filter: EventTriggerListFilterDto): Promise<ListResponseDto>;
|
|
18
12
|
private processFilters;
|
|
@@ -1,33 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProcessEventTriggerList = void 0;
|
|
4
|
-
const
|
|
5
|
-
class ProcessEventTriggerList extends
|
|
4
|
+
const process_common_list_1 = require("./process.common.list");
|
|
5
|
+
class ProcessEventTriggerList extends process_common_list_1.ProcessCommonList {
|
|
6
6
|
constructor(business, listingService) {
|
|
7
7
|
super();
|
|
8
8
|
this.business = business;
|
|
9
9
|
this.listingService = listingService;
|
|
10
|
-
this.config = {
|
|
11
|
-
sql: `bz_event_triggers a where a.deleted_at is null`,
|
|
12
|
-
order: 'sq.priority asc, sq.created_at desc',
|
|
13
|
-
columns: [
|
|
14
|
-
'a.id',
|
|
15
|
-
'a.name',
|
|
16
|
-
'a.table_name',
|
|
17
|
-
'a.model_id',
|
|
18
|
-
'a.filter_condition_id',
|
|
19
|
-
'a.script_id',
|
|
20
|
-
'a.priority',
|
|
21
|
-
'a.description',
|
|
22
|
-
'a.active',
|
|
23
|
-
'a.created_at',
|
|
24
|
-
'a.attributes',
|
|
25
|
-
],
|
|
26
|
-
metrics: [],
|
|
27
|
-
};
|
|
28
10
|
}
|
|
29
11
|
async process(filter) {
|
|
30
12
|
this.filter = filter;
|
|
13
|
+
await this.initialize();
|
|
31
14
|
this.processFilters();
|
|
32
15
|
return this.handle();
|
|
33
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.event.trigger.list.js","sourceRoot":"","sources":["../../../src/access/libraries/process.event.trigger.list.ts"],"names":[],"mappings":";;;AAIA,+
|
|
1
|
+
{"version":3,"file":"process.event.trigger.list.js","sourceRoot":"","sources":["../../../src/access/libraries/process.event.trigger.list.ts"],"names":[],"mappings":";;;AAIA,+DAA0D;AAY1D,MAAa,uBAAwB,SAAQ,uCAAiB;IAa1D,YACuB,QAA8B,EAC9B,cAA8B;QAEjD,KAAK,EAAE,CAAC;QAHW,aAAQ,GAAR,QAAQ,CAAsB;QAC9B,mBAAc,GAAd,cAAc,CAAgB;IAGrD,CAAC;IAOD,KAAK,CAAC,OAAO,CAAC,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QAExB,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC;IAMO,cAAc;QAClB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAMO,MAAM;QACV,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;YAAE,OAAO;QAChC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAE/B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,GAAG,8BAA8B,GAAG,KAAK,CAAC,CAAC;IACzF,CAAC;CACJ;AAtDD,0DAsDC"}
|
package/package.json
CHANGED