@servicelabsco/nestjs-utility-services 1.1.2 → 1.1.3
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/app.controller.js +2 -1
- package/dist/app.controller.js.map +1 -1
- package/dist/auth/es6.classes.d.ts +1 -2
- package/dist/auth/es6.classes.js +1 -2
- package/dist/auth/es6.classes.js.map +1 -1
- package/dist/auth/middlewares/basic.auth.middleware.js.map +1 -1
- package/dist/auth/services/access.manager.js.map +1 -1
- package/dist/auth/services/es6.service.d.ts +1 -3
- package/dist/auth/services/es6.service.js +1 -5
- package/dist/auth/services/es6.service.js.map +1 -1
- package/dist/auth/services/index.d.ts +0 -1
- package/dist/auth/services/index.js +0 -1
- package/dist/auth/services/index.js.map +1 -1
- package/dist/common/dtos/capture.record.show.dto.js.map +1 -1
- package/dist/common/dtos/index.params.dto.js.map +1 -1
- package/dist/common/libraries/class.mapper.js +4 -3
- package/dist/common/libraries/class.mapper.js.map +1 -1
- package/dist/common/libraries/common.entity.d.ts +1 -1
- package/dist/common/libraries/common.entity.js +3 -3
- package/dist/common/libraries/common.entity.js.map +1 -1
- package/dist/platformUtility/commands/entity.generator.command.js +4 -6
- package/dist/platformUtility/commands/entity.generator.command.js.map +1 -1
- package/dist/platformUtility/controllers/index.d.ts +1 -0
- package/dist/platformUtility/controllers/index.js +18 -0
- package/dist/platformUtility/controllers/index.js.map +1 -0
- package/dist/platformUtility/controllers/queue.controller.d.ts +19 -0
- package/dist/platformUtility/controllers/queue.controller.js +142 -0
- package/dist/platformUtility/controllers/queue.controller.js.map +1 -0
- package/dist/platformUtility/es6.classes.d.ts +3 -1
- package/dist/platformUtility/es6.classes.js +2 -0
- package/dist/platformUtility/es6.classes.js.map +1 -1
- package/dist/platformUtility/jobs/test.job.js +2 -1
- package/dist/platformUtility/jobs/test.job.js.map +1 -1
- package/dist/platformUtility/libraries/create.es6.jobs.file.js +1 -1
- package/dist/platformUtility/libraries/create.es6.jobs.file.js.map +1 -1
- package/dist/platformUtility/libraries/create.es6.service.file.d.ts +1 -1
- package/dist/platformUtility/libraries/create.es6.service.file.js +1 -1
- package/dist/platformUtility/libraries/create.es6.service.file.js.map +1 -1
- package/dist/platformUtility/libraries/create.index.file.js.map +1 -1
- package/dist/platformUtility/libraries/process.postmark.mail.js +1 -2
- package/dist/platformUtility/libraries/process.postmark.mail.js.map +1 -1
- package/dist/platformUtility/services/sql.service.d.ts +3 -3
- package/dist/platformUtility/services/sql.service.js +2 -2
- package/dist/platformUtility/services/sql.service.js.map +1 -1
- package/dist/platformUtility/services/sqs.service.js +1 -1
- package/dist/platformUtility/services/sqs.service.js.map +1 -1
- package/dist/platformUtility/subscribers/base.subscriber.d.ts +2 -2
- package/dist/platformUtility/subscribers/base.subscriber.js +3 -3
- package/dist/platformUtility/subscribers/base.subscriber.js.map +1 -1
- package/dist/system/commands/db.scanner.command.js.map +1 -1
- package/dist/system/commands/sync.all.command.d.ts +4 -4
- package/dist/system/commands/sync.all.command.js +8 -8
- package/dist/system/commands/sync.all.command.js.map +1 -1
- package/dist/system/controllers/base.controller.d.ts +2 -2
- package/dist/system/controllers/base.controller.js +3 -3
- package/dist/system/controllers/base.controller.js.map +1 -1
- package/dist/system/controllers/job.controller.js.map +1 -1
- 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/jobs/index.d.ts +1 -0
- package/dist/system/jobs/index.js +1 -0
- package/dist/system/jobs/index.js.map +1 -1
- package/dist/system/jobs/property.job.d.ts +10 -0
- package/dist/system/jobs/property.job.js +47 -0
- package/dist/system/jobs/property.job.js.map +1 -0
- package/dist/system/services/es6.jobs.service.d.ts +3 -1
- package/dist/system/services/es6.jobs.service.js +5 -1
- package/dist/system/services/es6.jobs.service.js.map +1 -1
- package/dist/system/services/scheduled.event.service.js +2 -2
- package/dist/system/services/scheduled.event.service.js.map +1 -1
- package/dist/system/services/upload.service.js +4 -4
- package/dist/system/services/upload.service.js.map +1 -1
- package/dist/system/subscribers/column.subscriber.d.ts +3 -3
- package/dist/system/subscribers/column.subscriber.js +4 -4
- package/dist/system/subscribers/property.subscriber.d.ts +10 -9
- package/dist/system/subscribers/property.subscriber.js +13 -11
- package/dist/system/subscribers/property.subscriber.js.map +1 -1
- package/dist/system/subscribers/relationship.subscriber.d.ts +3 -3
- package/dist/system/subscribers/relationship.subscriber.js +4 -4
- package/dist/system/subscribers/scheduled.event.subscriber.d.ts +3 -3
- package/dist/system/subscribers/scheduled.event.subscriber.js +4 -4
- package/dist/system/subscribers/user.group.member.subscriber.d.ts +3 -3
- package/dist/system/subscribers/user.group.member.subscriber.js +4 -4
- package/dist/system/subscribers/user.group.permission.subscriber.d.ts +3 -3
- package/dist/system/subscribers/user.group.permission.subscriber.js +4 -4
- package/dist/system/subscribers/user.group.role.subscriber.d.ts +3 -3
- package/dist/system/subscribers/user.group.role.subscriber.js +4 -4
- package/package.json +2 -1
- package/dist/auth/services/role.manager.d.ts +0 -8
- package/dist/auth/services/role.manager.js +0 -79
- package/dist/auth/services/role.manager.js.map +0 -1
- package/dist/config/sentry.config.d.ts +0 -0
- package/dist/config/sentry.config.js +0 -1
- package/dist/config/sentry.config.js.map +0 -1
- package/dist/migrations/1659428189771-DeleteColumnSysUsersTable.ts.d.ts +0 -5
- package/dist/migrations/1659428189771-DeleteColumnSysUsersTable.ts.js +0 -15
- package/dist/migrations/1659428189771-DeleteColumnSysUsersTable.ts.js.map +0 -1
@@ -14,6 +14,7 @@ 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
16
|
const model_scanner_job_1 = require("../jobs/model.scanner.job");
|
17
|
+
const property_job_1 = require("../jobs/property.job");
|
17
18
|
const relationship_mapper_job_1 = require("../jobs/relationship.mapper.job");
|
18
19
|
const report_column_sync_job_1 = require("../jobs/report.column.sync.job");
|
19
20
|
const scheduled_event_job_1 = require("../jobs/scheduled.event.job");
|
@@ -23,10 +24,11 @@ const user_group_permission_job_1 = require("../jobs/user.group.permission.job")
|
|
23
24
|
const user_group_role_job_1 = require("../jobs/user.group.role.job");
|
24
25
|
const local_property_service_1 = require("../../platformUtility/services/local.property.service");
|
25
26
|
let Es6JobsService = class Es6JobsService {
|
26
|
-
constructor(cleanScheduledEventJob, columnMapperJob, modelScannerJob, relationshipMapperJob, reportColumnSyncJob, scheduledEventJob, scheduledEventsJob, userGroupMemberJob, userGroupPermissionJob, userGroupRoleJob, localPropertyService) {
|
27
|
+
constructor(cleanScheduledEventJob, columnMapperJob, modelScannerJob, propertyJob, relationshipMapperJob, reportColumnSyncJob, scheduledEventJob, scheduledEventsJob, userGroupMemberJob, userGroupPermissionJob, userGroupRoleJob, localPropertyService) {
|
27
28
|
this.cleanScheduledEventJob = cleanScheduledEventJob;
|
28
29
|
this.columnMapperJob = columnMapperJob;
|
29
30
|
this.modelScannerJob = modelScannerJob;
|
31
|
+
this.propertyJob = propertyJob;
|
30
32
|
this.relationshipMapperJob = relationshipMapperJob;
|
31
33
|
this.reportColumnSyncJob = reportColumnSyncJob;
|
32
34
|
this.scheduledEventJob = scheduledEventJob;
|
@@ -44,6 +46,7 @@ let Es6JobsService = class Es6JobsService {
|
|
44
46
|
'81ea0517a8863d42db2d9cca74cb75e6': this.cleanScheduledEventJob,
|
45
47
|
'3528f0a8dfc3ef35cbeda636d91c7274': this.columnMapperJob,
|
46
48
|
b98597e52145a536f807481c3830fe2c: this.modelScannerJob,
|
49
|
+
f00eb0de506a45ef7e845c5a6ec2aa72: this.propertyJob,
|
47
50
|
d7d7619ff3d2b479bbdc6ff313af925c: this.relationshipMapperJob,
|
48
51
|
d68758d01d2e34317264c2fa8ad772f8: this.reportColumnSyncJob,
|
49
52
|
'2c33fd6bffb9a0fb71fa1f739f49e88c': this.scheduledEventJob,
|
@@ -63,6 +66,7 @@ Es6JobsService = __decorate([
|
|
63
66
|
__metadata("design:paramtypes", [clean_scheduled_event_job_1.CleanScheduledEventJob,
|
64
67
|
column_mapper_job_1.ColumnMapperJob,
|
65
68
|
model_scanner_job_1.ModelScannerJob,
|
69
|
+
property_job_1.PropertyJob,
|
66
70
|
relationship_mapper_job_1.RelationshipMapperJob,
|
67
71
|
report_column_sync_job_1.ReportColumnSyncJob,
|
68
72
|
scheduled_event_job_1.ScheduledEventJob,
|
@@ -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,iEAA4D;AAC5D,6EAAwE;AACxE,2EAAqE;AACrE,qEAAgE;AAChE,uEAAkE;AAClE,yEAAmE;AACnE,iFAA2E;AAC3E,qEAA+D;AAC/D,kGAA6F;AAQ7F,IAAa,cAAc,GAA3B,MAAa,cAAc;IAGvB,YACqB,sBAA8C,EAC9C,eAAgC,EAChC,eAAgC,EAChC,qBAA4C,EAC5C,mBAAwC,EACxC,iBAAoC,EACpC,kBAAsC,EACtC,kBAAsC,EACtC,sBAA8C,EAC9C,gBAAkC,EAClC,oBAA0C;
|
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,iEAA4D;AAC5D,uDAAmD;AACnD,6EAAwE;AACxE,2EAAqE;AACrE,qEAAgE;AAChE,uEAAkE;AAClE,yEAAmE;AACnE,iFAA2E;AAC3E,qEAA+D;AAC/D,kGAA6F;AAQ7F,IAAa,cAAc,GAA3B,MAAa,cAAc;IAGvB,YACqB,sBAA8C,EAC9C,eAAgC,EAChC,eAAgC,EAChC,WAAwB,EACxB,qBAA4C,EAC5C,mBAAwC,EACxC,iBAAoC,EACp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,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,MAAM,kCAC7B,YAAY,GACZ,IAAI,CAAC,IAAI,EACd,CAAC;IACP,CAAC;CACJ,CAAA;AApDY,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAKoC,kDAAsB;QAC7B,mCAAe;QACf,mCAAe;QACnB,0BAAW;QACD,+CAAqB;QACvB,4CAAmB;QACrB,uCAAiB;QAChB,yCAAkB;QAClB,0CAAkB;QACd,kDAAsB;QAC5B,sCAAgB;QACZ,6CAAoB;GAftD,cAAc,CAoD1B;AApDY,wCAAc"}
|
@@ -17,12 +17,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
18
|
exports.ScheduledEventService = void 0;
|
19
19
|
const common_1 = require("@nestjs/common");
|
20
|
+
const parser = require("cron-parser");
|
20
21
|
const typeorm_1 = require("typeorm");
|
22
|
+
const date_util_1 = require("../../common/libraries/date.util");
|
21
23
|
const event_queue_entity_1 = require("../entities/event.queue.entity");
|
22
24
|
const scheduled_event_entity_1 = require("../entities/scheduled.event.entity");
|
23
25
|
const SOURCEHASH = require("../../config/source.hash");
|
24
|
-
const date_util_1 = require("../../common/libraries/date.util");
|
25
|
-
const parser = require("cron-parser");
|
26
26
|
let ScheduledEventService = class ScheduledEventService {
|
27
27
|
getActiveEvents(id) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scheduled.event.service.js","sourceRoot":"","sources":["../../../src/system/services/scheduled.event.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAgD;AAChD,uEAAkE;AAClE,+EAA0E;AAC1E,uDAAwD;
|
1
|
+
{"version":3,"file":"scheduled.event.service.js","sourceRoot":"","sources":["../../../src/system/services/scheduled.event.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA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AAC,QAAQ;aACxB,CAAC,CAAC;YAGH,OAAO,OAAO,IAAI,EAAE,EAAE;gBAClB,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;oBAAE,OAAO;gBAGhC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;gBAEpE,GAAG,CAAC,mBAAmB,GAAG,KAAK,CAAC,oBAAoB,CAAC;gBAErD,EAAE,OAAO,CAAC;aACb;YAGD,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;YAEjB,OAAO,GAAG,CAAC;QACf,CAAC;KAAA;IAOY,kBAAkB;;YAC3B,OAAO,6CAAoB,CAAC,IAAI,CAAC;gBAC7B,SAAS,EAAE,CAAC,OAAO,CAAC;gBACpB,KAAK,EAAE;oBACH,MAAM,EAAE,IAAI;oBACZ,QAAQ,EAAE,IAAA,aAAG,EAAC,IAAA,kBAAQ,EAAC,oBAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;oBAC/C,mBAAmB,EAAE,IAAA,kBAAQ,EAAC,oBAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;iBAChE;aACJ,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAA;AApJY,qBAAqB;IADjC,IAAA,mBAAU,GAAE;GACA,qBAAqB,CAoJjC;AApJY,sDAAqB"}
|
@@ -51,10 +51,10 @@ let UploadService = class UploadService {
|
|
51
51
|
Body: data,
|
52
52
|
ACL: options.visibility || 'private',
|
53
53
|
};
|
54
|
-
s3.upload(params, function (
|
55
|
-
if (
|
56
|
-
return reject(
|
57
|
-
return resolve(
|
54
|
+
s3.upload(params, function (error, res) {
|
55
|
+
if (error)
|
56
|
+
return reject(error);
|
57
|
+
return resolve(res.Location);
|
58
58
|
});
|
59
59
|
});
|
60
60
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"upload.service.js","sourceRoot":"","sources":["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F,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,KAAK,EAAE,GAAG;wBAClC,IAAI,KAAK;4BAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;wBAEhC,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;oBACjC,CAAC,CAAC,CAAC;gBACP,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;IAEK,QAAQ,CAAC,IAAS;;YACpB,MAAM,MAAM,GAAG,UAAU,IAAI,CAAC,YAAY,EAAE,CAAC;YAC7C,OAAO;gBACH,IAAI,EAAE,IAAI,CAAC,MAAM;gBACjB,MAAM,EAAE,QAAQ,CAAC,MAAM;gBACvB,GAAG,EAAE,MAAM;gBACX,GAAG,EAAE,aAAa;aACrB,CAAC;QACN,CAAC;KAAA;CACJ,CAAA;AAxDY,aAAa;IADzB,IAAA,mBAAU,GAAE;GACA,aAAa,CAwDzB;AAxDY,sCAAa"}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
3
|
import { ColumnEntity } from '../entities/column.entity';
|
4
4
|
import { ColumnMapperJob } from '../jobs/column.mapper.job';
|
5
5
|
export declare class ColumnSubscriber extends CommonSubscriber<ColumnEntity> {
|
6
|
-
private readonly
|
6
|
+
private readonly dataSource;
|
7
7
|
private readonly columnMapperJob;
|
8
|
-
constructor(
|
8
|
+
constructor(dataSource: DataSource, columnMapperJob: ColumnMapperJob);
|
9
9
|
listenTo(): typeof ColumnEntity;
|
10
10
|
afterInsert(event: InsertEvent<ColumnEntity>): Promise<void>;
|
11
11
|
afterUpdate(event: UpdateEvent<ColumnEntity>): Promise<void>;
|
@@ -24,11 +24,11 @@ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
|
24
24
|
const column_entity_1 = require("../entities/column.entity");
|
25
25
|
const column_mapper_job_1 = require("../jobs/column.mapper.job");
|
26
26
|
let ColumnSubscriber = class ColumnSubscriber extends common_subscriber_1.CommonSubscriber {
|
27
|
-
constructor(
|
27
|
+
constructor(dataSource, columnMapperJob) {
|
28
28
|
super();
|
29
|
-
this.
|
29
|
+
this.dataSource = dataSource;
|
30
30
|
this.columnMapperJob = columnMapperJob;
|
31
|
-
|
31
|
+
dataSource.subscribers.push(this);
|
32
32
|
}
|
33
33
|
listenTo() {
|
34
34
|
return column_entity_1.ColumnEntity;
|
@@ -46,7 +46,7 @@ let ColumnSubscriber = class ColumnSubscriber extends common_subscriber_1.Common
|
|
46
46
|
};
|
47
47
|
ColumnSubscriber = __decorate([
|
48
48
|
(0, typeorm_1.EventSubscriber)(),
|
49
|
-
__metadata("design:paramtypes", [typeorm_1.
|
49
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource, column_mapper_job_1.ColumnMapperJob])
|
50
50
|
], ColumnSubscriber);
|
51
51
|
exports.ColumnSubscriber = ColumnSubscriber;
|
52
52
|
//# sourceMappingURL=column.subscriber.js.map
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
|
5
|
-
|
6
|
-
private readonly
|
7
|
-
|
1
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
2
|
+
import { CommonSubscriber } from '../../common';
|
3
|
+
import { PropertyEntity } from '../entities';
|
4
|
+
import { PropertyJob } from '../jobs/property.job';
|
5
|
+
export declare class PropertySubscriber extends CommonSubscriber<PropertyEntity> {
|
6
|
+
private readonly dataSource;
|
7
|
+
private readonly propertyJob;
|
8
|
+
constructor(dataSource: DataSource, propertyJob: PropertyJob);
|
8
9
|
listenTo(): typeof PropertyEntity;
|
9
|
-
afterInsert(event: InsertEvent<PropertyEntity>): Promise<
|
10
|
-
afterUpdate(event: UpdateEvent<PropertyEntity>): Promise<
|
10
|
+
afterInsert(event: InsertEvent<PropertyEntity>): Promise<any>;
|
11
|
+
afterUpdate(event: UpdateEvent<PropertyEntity>): Promise<any>;
|
11
12
|
}
|
@@ -20,31 +20,33 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
21
21
|
exports.PropertySubscriber = void 0;
|
22
22
|
const typeorm_1 = require("typeorm");
|
23
|
-
const
|
24
|
-
const
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
const common_1 = require("../../common");
|
24
|
+
const entities_1 = require("../entities");
|
25
|
+
const property_job_1 = require("../jobs/property.job");
|
26
|
+
let PropertySubscriber = class PropertySubscriber extends common_1.CommonSubscriber {
|
27
|
+
constructor(dataSource, propertyJob) {
|
28
|
+
super();
|
29
|
+
this.dataSource = dataSource;
|
30
|
+
this.propertyJob = propertyJob;
|
31
|
+
dataSource.subscribers.push(this);
|
30
32
|
}
|
31
33
|
listenTo() {
|
32
|
-
return
|
34
|
+
return entities_1.PropertyEntity;
|
33
35
|
}
|
34
36
|
afterInsert(event) {
|
35
37
|
return __awaiter(this, void 0, void 0, function* () {
|
36
|
-
|
38
|
+
return this.propertyJob.dispatch(this.getInsertEventData(event));
|
37
39
|
});
|
38
40
|
}
|
39
41
|
afterUpdate(event) {
|
40
42
|
return __awaiter(this, void 0, void 0, function* () {
|
41
|
-
|
43
|
+
return this.propertyJob.dispatch(this.getUpdateEventData(event));
|
42
44
|
});
|
43
45
|
}
|
44
46
|
};
|
45
47
|
PropertySubscriber = __decorate([
|
46
48
|
(0, typeorm_1.EventSubscriber)(),
|
47
|
-
__metadata("design:paramtypes", [typeorm_1.
|
49
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource, property_job_1.PropertyJob])
|
48
50
|
], PropertySubscriber);
|
49
51
|
exports.PropertySubscriber = PropertySubscriber;
|
50
52
|
//# sourceMappingURL=property.subscriber.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"property.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/property.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"property.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/property.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qCAAgF;AAChF,yCAAgD;AAChD,0CAA6C;AAC7C,uDAAmD;AAEnD,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,yBAAgC;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,yBAAc,CAAC;IAC1B,CAAC;IACK,WAAW,CAAC,KAAkC;;YAChD,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;QACrE,CAAC;KAAA;IACK,WAAW,CAAC,KAAkC;;YAChD,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;QACrE,CAAC;KAAA;CACJ,CAAA;AAdY,kBAAkB;IAD9B,IAAA,yBAAe,GAAE;qCAE2B,oBAAU,EAAgC,0BAAW;GADrF,kBAAkB,CAc9B;AAdY,gDAAkB"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { DataSource, EntitySubscriberInterface, InsertEvent, UpdateEvent } from 'typeorm';
|
2
2
|
import { RelationshipEntity } from '../entities/relationship.entity';
|
3
3
|
import { RelationshipMapperJob } from '../jobs/relationship.mapper.job';
|
4
4
|
export declare class RelationshipSubscriber implements EntitySubscriberInterface<RelationshipEntity> {
|
5
|
-
private readonly
|
5
|
+
private readonly dataSource;
|
6
6
|
private readonly relationshipMapperJob;
|
7
|
-
constructor(
|
7
|
+
constructor(dataSource: DataSource, relationshipMapperJob: RelationshipMapperJob);
|
8
8
|
listenTo(): typeof RelationshipEntity;
|
9
9
|
afterInsert(event: InsertEvent<RelationshipEntity>): Promise<void>;
|
10
10
|
afterUpdate(event: UpdateEvent<RelationshipEntity>): Promise<void>;
|
@@ -23,10 +23,10 @@ const typeorm_1 = require("typeorm");
|
|
23
23
|
const relationship_entity_1 = require("../entities/relationship.entity");
|
24
24
|
const relationship_mapper_job_1 = require("../jobs/relationship.mapper.job");
|
25
25
|
let RelationshipSubscriber = class RelationshipSubscriber {
|
26
|
-
constructor(
|
27
|
-
this.
|
26
|
+
constructor(dataSource, relationshipMapperJob) {
|
27
|
+
this.dataSource = dataSource;
|
28
28
|
this.relationshipMapperJob = relationshipMapperJob;
|
29
|
-
|
29
|
+
dataSource.subscribers.push(this);
|
30
30
|
}
|
31
31
|
listenTo() {
|
32
32
|
return relationship_entity_1.RelationshipEntity;
|
@@ -44,7 +44,7 @@ let RelationshipSubscriber = class RelationshipSubscriber {
|
|
44
44
|
};
|
45
45
|
RelationshipSubscriber = __decorate([
|
46
46
|
(0, typeorm_1.EventSubscriber)(),
|
47
|
-
__metadata("design:paramtypes", [typeorm_1.
|
47
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource, relationship_mapper_job_1.RelationshipMapperJob])
|
48
48
|
], RelationshipSubscriber);
|
49
49
|
exports.RelationshipSubscriber = RelationshipSubscriber;
|
50
50
|
//# sourceMappingURL=relationship.subscriber.js.map
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import {
|
1
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
3
|
import { ScheduledEventEntity } from '../entities/scheduled.event.entity';
|
4
4
|
import { CleanScheduledEventJob } from '../jobs/clean.scheduled.event.job';
|
5
5
|
import { ScheduledEventJob } from '../jobs/scheduled.event.job';
|
6
6
|
export declare class ScheduledEventSubscriber extends CommonSubscriber<ScheduledEventEntity> {
|
7
|
-
private readonly
|
7
|
+
private readonly dataSource;
|
8
8
|
private readonly scheduledEventJob;
|
9
9
|
private readonly cleanScheduledEventJob;
|
10
|
-
constructor(
|
10
|
+
constructor(dataSource: DataSource, scheduledEventJob: ScheduledEventJob, cleanScheduledEventJob: CleanScheduledEventJob);
|
11
11
|
listenTo(): typeof ScheduledEventEntity;
|
12
12
|
afterInsert(event: InsertEvent<ScheduledEventEntity>): Promise<void>;
|
13
13
|
afterUpdate(event: UpdateEvent<ScheduledEventEntity>): Promise<void>;
|
@@ -25,12 +25,12 @@ const scheduled_event_entity_1 = require("../entities/scheduled.event.entity");
|
|
25
25
|
const clean_scheduled_event_job_1 = require("../jobs/clean.scheduled.event.job");
|
26
26
|
const scheduled_event_job_1 = require("../jobs/scheduled.event.job");
|
27
27
|
let ScheduledEventSubscriber = class ScheduledEventSubscriber extends common_subscriber_1.CommonSubscriber {
|
28
|
-
constructor(
|
28
|
+
constructor(dataSource, scheduledEventJob, cleanScheduledEventJob) {
|
29
29
|
super();
|
30
|
-
this.
|
30
|
+
this.dataSource = dataSource;
|
31
31
|
this.scheduledEventJob = scheduledEventJob;
|
32
32
|
this.cleanScheduledEventJob = cleanScheduledEventJob;
|
33
|
-
|
33
|
+
dataSource.subscribers.push(this);
|
34
34
|
}
|
35
35
|
listenTo() {
|
36
36
|
return scheduled_event_entity_1.ScheduledEventEntity;
|
@@ -50,7 +50,7 @@ let ScheduledEventSubscriber = class ScheduledEventSubscriber extends common_sub
|
|
50
50
|
};
|
51
51
|
ScheduledEventSubscriber = __decorate([
|
52
52
|
(0, typeorm_1.EventSubscriber)(),
|
53
|
-
__metadata("design:paramtypes", [typeorm_1.
|
53
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
54
54
|
scheduled_event_job_1.ScheduledEventJob,
|
55
55
|
clean_scheduled_event_job_1.CleanScheduledEventJob])
|
56
56
|
], ScheduledEventSubscriber);
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common';
|
3
3
|
import { UserGroupMemberEntity } from '../entities/user.group.member.entity';
|
4
4
|
import { UserGroupMemberJob } from '../jobs/user.group.member.job';
|
5
5
|
export declare class UserGroupMemberSubscriber extends CommonSubscriber<UserGroupMemberEntity> {
|
6
|
-
private readonly
|
6
|
+
private readonly dataSource;
|
7
7
|
private readonly userGroupMemberJob;
|
8
|
-
constructor(
|
8
|
+
constructor(dataSource: DataSource, userGroupMemberJob: UserGroupMemberJob);
|
9
9
|
listenTo(): typeof UserGroupMemberEntity;
|
10
10
|
afterInsert(event: InsertEvent<UserGroupMemberEntity>): Promise<void>;
|
11
11
|
afterUpdate(event: UpdateEvent<UserGroupMemberEntity>): Promise<void>;
|
@@ -24,11 +24,11 @@ const common_1 = require("../../common");
|
|
24
24
|
const user_group_member_entity_1 = require("../entities/user.group.member.entity");
|
25
25
|
const user_group_member_job_1 = require("../jobs/user.group.member.job");
|
26
26
|
let UserGroupMemberSubscriber = class UserGroupMemberSubscriber extends common_1.CommonSubscriber {
|
27
|
-
constructor(
|
27
|
+
constructor(dataSource, userGroupMemberJob) {
|
28
28
|
super();
|
29
|
-
this.
|
29
|
+
this.dataSource = dataSource;
|
30
30
|
this.userGroupMemberJob = userGroupMemberJob;
|
31
|
-
|
31
|
+
dataSource.subscribers.push(this);
|
32
32
|
}
|
33
33
|
listenTo() {
|
34
34
|
return user_group_member_entity_1.UserGroupMemberEntity;
|
@@ -46,7 +46,7 @@ let UserGroupMemberSubscriber = class UserGroupMemberSubscriber extends common_1
|
|
46
46
|
};
|
47
47
|
UserGroupMemberSubscriber = __decorate([
|
48
48
|
(0, typeorm_1.EventSubscriber)(),
|
49
|
-
__metadata("design:paramtypes", [typeorm_1.
|
49
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource, user_group_member_job_1.UserGroupMemberJob])
|
50
50
|
], UserGroupMemberSubscriber);
|
51
51
|
exports.UserGroupMemberSubscriber = UserGroupMemberSubscriber;
|
52
52
|
//# sourceMappingURL=user.group.member.subscriber.js.map
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common';
|
3
3
|
import { UserGroupPermissionEntity } from '../entities/user.group.permission.entity';
|
4
4
|
import { UserGroupPermissionJob } from '../jobs/user.group.permission.job';
|
5
5
|
export declare class UserGroupPermissionSubscriber extends CommonSubscriber<UserGroupPermissionEntity> {
|
6
|
-
private readonly
|
6
|
+
private readonly dataSource;
|
7
7
|
private readonly userGroupPermissionJob;
|
8
|
-
constructor(
|
8
|
+
constructor(dataSource: DataSource, userGroupPermissionJob: UserGroupPermissionJob);
|
9
9
|
listenTo(): typeof UserGroupPermissionEntity;
|
10
10
|
afterInsert(event: InsertEvent<UserGroupPermissionEntity>): Promise<void>;
|
11
11
|
afterUpdate(event: UpdateEvent<UserGroupPermissionEntity>): Promise<void>;
|
@@ -24,11 +24,11 @@ const common_1 = require("../../common");
|
|
24
24
|
const user_group_permission_entity_1 = require("../entities/user.group.permission.entity");
|
25
25
|
const user_group_permission_job_1 = require("../jobs/user.group.permission.job");
|
26
26
|
let UserGroupPermissionSubscriber = class UserGroupPermissionSubscriber extends common_1.CommonSubscriber {
|
27
|
-
constructor(
|
27
|
+
constructor(dataSource, userGroupPermissionJob) {
|
28
28
|
super();
|
29
|
-
this.
|
29
|
+
this.dataSource = dataSource;
|
30
30
|
this.userGroupPermissionJob = userGroupPermissionJob;
|
31
|
-
|
31
|
+
dataSource.subscribers.push(this);
|
32
32
|
}
|
33
33
|
listenTo() {
|
34
34
|
return user_group_permission_entity_1.UserGroupPermissionEntity;
|
@@ -46,7 +46,7 @@ let UserGroupPermissionSubscriber = class UserGroupPermissionSubscriber extends
|
|
46
46
|
};
|
47
47
|
UserGroupPermissionSubscriber = __decorate([
|
48
48
|
(0, typeorm_1.EventSubscriber)(),
|
49
|
-
__metadata("design:paramtypes", [typeorm_1.
|
49
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource, user_group_permission_job_1.UserGroupPermissionJob])
|
50
50
|
], UserGroupPermissionSubscriber);
|
51
51
|
exports.UserGroupPermissionSubscriber = UserGroupPermissionSubscriber;
|
52
52
|
//# sourceMappingURL=user.group.permission.subscriber.js.map
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common';
|
3
3
|
import { UserGroupRoleEntity } from '../entities/user.group.role.entity';
|
4
4
|
import { UserGroupRoleJob } from '../jobs/user.group.role.job';
|
5
5
|
export declare class UserGroupRoleSubscriber extends CommonSubscriber<UserGroupRoleEntity> {
|
6
|
-
private readonly
|
6
|
+
private readonly dataSource;
|
7
7
|
private readonly userGroupRoleJob;
|
8
|
-
constructor(
|
8
|
+
constructor(dataSource: DataSource, userGroupRoleJob: UserGroupRoleJob);
|
9
9
|
listenTo(): typeof UserGroupRoleEntity;
|
10
10
|
afterInsert(event: InsertEvent<UserGroupRoleEntity>): Promise<void>;
|
11
11
|
afterUpdate(event: UpdateEvent<UserGroupRoleEntity>): Promise<void>;
|
@@ -24,11 +24,11 @@ const common_1 = require("../../common");
|
|
24
24
|
const user_group_role_entity_1 = require("../entities/user.group.role.entity");
|
25
25
|
const user_group_role_job_1 = require("../jobs/user.group.role.job");
|
26
26
|
let UserGroupRoleSubscriber = class UserGroupRoleSubscriber extends common_1.CommonSubscriber {
|
27
|
-
constructor(
|
27
|
+
constructor(dataSource, userGroupRoleJob) {
|
28
28
|
super();
|
29
|
-
this.
|
29
|
+
this.dataSource = dataSource;
|
30
30
|
this.userGroupRoleJob = userGroupRoleJob;
|
31
|
-
|
31
|
+
dataSource.subscribers.push(this);
|
32
32
|
}
|
33
33
|
listenTo() {
|
34
34
|
return user_group_role_entity_1.UserGroupRoleEntity;
|
@@ -46,7 +46,7 @@ let UserGroupRoleSubscriber = class UserGroupRoleSubscriber extends common_1.Com
|
|
46
46
|
};
|
47
47
|
UserGroupRoleSubscriber = __decorate([
|
48
48
|
(0, typeorm_1.EventSubscriber)(),
|
49
|
-
__metadata("design:paramtypes", [typeorm_1.
|
49
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource, user_group_role_job_1.UserGroupRoleJob])
|
50
50
|
], UserGroupRoleSubscriber);
|
51
51
|
exports.UserGroupRoleSubscriber = UserGroupRoleSubscriber;
|
52
52
|
//# sourceMappingURL=user.group.role.subscriber.js.map
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@servicelabsco/nestjs-utility-services",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.3",
|
4
4
|
"description": "NestJS generic packages to support development",
|
5
5
|
"author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -106,6 +106,7 @@
|
|
106
106
|
"eslint-plugin-prettier": "^4.2.1",
|
107
107
|
"jest": "^28.1.2",
|
108
108
|
"prettier": "^2.7.1",
|
109
|
+
"sonarqube-scanner": "^2.8.1",
|
109
110
|
"source-map-support": "^0.5.21",
|
110
111
|
"supertest": "^6.2.4",
|
111
112
|
"ts-jest": "^28.0.5",
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { UserAccessDto } from '../dtos/user.access.dto';
|
2
|
-
export declare class RoleManager {
|
3
|
-
_getUser(): UserAccessDto;
|
4
|
-
validate(roles: string | number | string[] | number[]): boolean;
|
5
|
-
_checkGlobalAccess(): boolean;
|
6
|
-
_validateRoleId(roleId: number): boolean;
|
7
|
-
_validateRoleIdentifier(role: string): boolean;
|
8
|
-
}
|
@@ -1,79 +0,0 @@
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
9
|
-
exports.RoleManager = void 0;
|
10
|
-
const common_1 = require("@nestjs/common");
|
11
|
-
const auth_1 = require("../../common/libraries/auth");
|
12
|
-
let RoleManager = class RoleManager {
|
13
|
-
_getUser() {
|
14
|
-
return auth_1.Auth.user();
|
15
|
-
}
|
16
|
-
validate(roles) {
|
17
|
-
if (this._checkGlobalAccess())
|
18
|
-
return true;
|
19
|
-
if (Array.isArray(roles)) {
|
20
|
-
for (const i in roles) {
|
21
|
-
if (!roles.hasOwnProperty(i))
|
22
|
-
continue;
|
23
|
-
const role = roles[i];
|
24
|
-
if (typeof role === 'string') {
|
25
|
-
if (this._validateRoleIdentifier(role))
|
26
|
-
return true;
|
27
|
-
}
|
28
|
-
else {
|
29
|
-
if (this._validateRoleId(role))
|
30
|
-
return true;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
34
|
-
else {
|
35
|
-
if (typeof roles === 'string') {
|
36
|
-
if (this._validateRoleIdentifier(roles))
|
37
|
-
return true;
|
38
|
-
}
|
39
|
-
else {
|
40
|
-
if (this._validateRoleId(roles))
|
41
|
-
return true;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
return false;
|
45
|
-
}
|
46
|
-
_checkGlobalAccess() {
|
47
|
-
const user = this._getUser();
|
48
|
-
if (!user)
|
49
|
-
return false;
|
50
|
-
if (user.roles.indexOf(1) !== -1)
|
51
|
-
return true;
|
52
|
-
return false;
|
53
|
-
}
|
54
|
-
_validateRoleId(roleId) {
|
55
|
-
if (roleId === 2)
|
56
|
-
return true;
|
57
|
-
const user = this._getUser();
|
58
|
-
if (!user)
|
59
|
-
return false;
|
60
|
-
if (user.roles.indexOf(roleId) !== -1)
|
61
|
-
return true;
|
62
|
-
return false;
|
63
|
-
}
|
64
|
-
_validateRoleIdentifier(role) {
|
65
|
-
if (role === 'public')
|
66
|
-
return true;
|
67
|
-
const user = this._getUser();
|
68
|
-
if (!user)
|
69
|
-
return false;
|
70
|
-
if (user.role_identifiers.indexOf(role) !== -1)
|
71
|
-
return true;
|
72
|
-
return false;
|
73
|
-
}
|
74
|
-
};
|
75
|
-
RoleManager = __decorate([
|
76
|
-
(0, common_1.Injectable)()
|
77
|
-
], RoleManager);
|
78
|
-
exports.RoleManager = RoleManager;
|
79
|
-
//# sourceMappingURL=role.manager.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"role.manager.js","sourceRoot":"","sources":["../../../src/auth/services/role.manager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAE5C,sDAAmD;AAWnD,IAAa,WAAW,GAAxB,MAAa,WAAW;IAMpB,QAAQ;QACJ,OAAO,WAAI,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;IAQD,QAAQ,CAAC,KAA4C;QAEjD,IAAI,IAAI,CAAC,kBAAkB,EAAE;YAAE,OAAO,IAAI,CAAC;QAE3C,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACtB,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;gBACnB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;oBAAE,SAAS;gBACvC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;gBAEtB,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;oBAC1B,IAAI,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC;wBAAE,OAAO,IAAI,CAAC;iBACvD;qBAAM;oBACH,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,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AA7FY,WAAW;IADvB,IAAA,mBAAU,GAAE;GACA,WAAW,CA6FvB;AA7FY,kCAAW"}
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=sentry.config.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sentry.config.js","sourceRoot":"","sources":["../../src/config/sentry.config.ts"],"names":[],"mappings":""}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DeleteColumnSysUsersTable1659428189771 = void 0;
|
4
|
-
const common_1 = require("../common");
|
5
|
-
class DeleteColumnSysUsersTable1659428189771 extends common_1.MigrationUtility {
|
6
|
-
constructor() {
|
7
|
-
super('sys_users');
|
8
|
-
this.process();
|
9
|
-
}
|
10
|
-
process() {
|
11
|
-
this.number('delete_this');
|
12
|
-
}
|
13
|
-
}
|
14
|
-
exports.DeleteColumnSysUsersTable1659428189771 = DeleteColumnSysUsersTable1659428189771;
|
15
|
-
//# sourceMappingURL=1659428189771-DeleteColumnSysUsersTable.ts.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"1659428189771-DeleteColumnSysUsersTable.ts.js","sourceRoot":"","sources":["../../src/migrations/1659428189771-DeleteColumnSysUsersTable.ts.ts"],"names":[],"mappings":";;;AAAA,sCAA6C;AAE7C,MAAa,sCAAuC,SAAQ,yBAAgB;IACxE;QACI,KAAK,CAAC,WAAW,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC/B,CAAC;CACJ;AATD,wFASC"}
|