@servicelabsco/nestjs-utility-services 3.0.4 → 3.0.5
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/CHANGELOG.md +42 -6
- package/README.md +164 -60
- package/dist/auth/es6.classes.d.ts +3 -6
- package/dist/auth/es6.classes.js +2 -6
- package/dist/auth/es6.classes.js.map +1 -1
- package/dist/auth/index.d.ts +0 -2
- package/dist/auth/index.js +0 -2
- package/dist/auth/index.js.map +1 -1
- package/dist/config/sentry.config.d.ts +1 -1
- package/dist/platformUtility/es6.classes.d.ts +1 -2
- package/dist/platformUtility/es6.classes.js +1 -10
- package/dist/platformUtility/es6.classes.js.map +1 -1
- package/dist/platformUtility/jobs/index.d.ts +0 -1
- package/dist/platformUtility/jobs/index.js +0 -1
- package/dist/platformUtility/jobs/index.js.map +1 -1
- package/dist/platformUtility/services/es6.jobs.service.d.ts +1 -3
- package/dist/platformUtility/services/es6.jobs.service.js +1 -5
- package/dist/platformUtility/services/es6.jobs.service.js.map +1 -1
- package/dist/platformUtility/subscribers/dispatcher.subscriber.d.ts +1 -4
- package/dist/platformUtility/subscribers/dispatcher.subscriber.js +43 -30
- package/dist/platformUtility/subscribers/dispatcher.subscriber.js.map +1 -1
- package/dist/system/es6.classes.d.ts +8 -11
- package/dist/system/es6.classes.js +14 -20
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/index.d.ts +1 -0
- package/dist/system/index.js +1 -0
- package/dist/system/index.js.map +1 -1
- package/dist/system/jobs/client.credential.job.d.ts +0 -2
- package/dist/system/jobs/client.credential.job.js +0 -4
- package/dist/system/jobs/client.credential.job.js.map +1 -1
- package/dist/system/jobs/code.fix.script.job.d.ts +0 -4
- package/dist/system/jobs/code.fix.script.job.js +0 -21
- package/dist/system/jobs/code.fix.script.job.js.map +1 -1
- package/dist/system/jobs/index.d.ts +0 -10
- package/dist/system/jobs/index.js +0 -10
- package/dist/system/jobs/index.js.map +1 -1
- package/dist/system/jobs/material.view.job.d.ts +0 -4
- package/dist/system/jobs/material.view.job.js +0 -21
- package/dist/system/jobs/material.view.job.js.map +1 -1
- package/dist/system/jobs/property.job.d.ts +0 -3
- package/dist/system/jobs/property.job.js +0 -9
- package/dist/system/jobs/property.job.js.map +1 -1
- package/dist/system/jobs/recurring.query.job.d.ts +0 -4
- package/dist/system/jobs/recurring.query.job.js +0 -21
- package/dist/system/jobs/recurring.query.job.js.map +1 -1
- package/dist/system/jobs/scheduled.event.job.d.ts +0 -4
- package/dist/system/jobs/scheduled.event.job.js +0 -21
- package/dist/system/jobs/scheduled.event.job.js.map +1 -1
- package/dist/system/services/es6.jobs.service.d.ts +1 -21
- package/dist/system/services/es6.jobs.service.js +1 -41
- package/dist/system/services/es6.jobs.service.js.map +1 -1
- package/dist/system/subscribers/client.credential.subscriber.d.ts +9 -0
- package/dist/system/subscribers/client.credential.subscriber.js +35 -0
- package/dist/system/subscribers/client.credential.subscriber.js.map +1 -0
- package/dist/system/subscribers/code.fix.script.subscriber.d.ts +11 -0
- package/dist/system/subscribers/code.fix.script.subscriber.js +53 -0
- package/dist/system/subscribers/code.fix.script.subscriber.js.map +1 -0
- package/dist/system/subscribers/index.d.ts +6 -0
- package/dist/{auth/jobs → system/subscribers}/index.js +6 -1
- package/dist/system/subscribers/index.js.map +1 -0
- package/dist/system/subscribers/material.view.subscriber.d.ts +11 -0
- package/dist/system/subscribers/material.view.subscriber.js +53 -0
- package/dist/system/subscribers/material.view.subscriber.js.map +1 -0
- package/dist/system/subscribers/property.subscriber.d.ts +10 -0
- package/dist/{auth/subscribers/session.identifier.subscriber.js → system/subscribers/property.subscriber.js} +17 -17
- package/dist/system/subscribers/property.subscriber.js.map +1 -0
- package/dist/system/subscribers/recurring.query.subscriber.d.ts +11 -0
- package/dist/system/subscribers/recurring.query.subscriber.js +53 -0
- package/dist/system/subscribers/recurring.query.subscriber.js.map +1 -0
- package/dist/system/subscribers/scheduled.event.subscriber.d.ts +11 -0
- package/dist/system/subscribers/scheduled.event.subscriber.js +53 -0
- package/dist/system/subscribers/scheduled.event.subscriber.js.map +1 -0
- package/dist/system/system.module.js +1 -1
- package/dist/system/system.module.js.map +1 -1
- package/docs/subscribe-for.md +201 -19
- package/package.json +1 -1
- package/dist/auth/jobs/index.d.ts +0 -1
- package/dist/auth/jobs/index.js.map +0 -1
- package/dist/auth/jobs/session.identifier.job.d.ts +0 -9
- package/dist/auth/jobs/session.identifier.job.js +0 -30
- package/dist/auth/jobs/session.identifier.job.js.map +0 -1
- package/dist/auth/services/es6.jobs.service.d.ts +0 -8
- package/dist/auth/services/es6.jobs.service.js +0 -37
- package/dist/auth/services/es6.jobs.service.js.map +0 -1
- package/dist/auth/subscribers/index.d.ts +0 -1
- package/dist/auth/subscribers/index.js +0 -18
- package/dist/auth/subscribers/index.js.map +0 -1
- package/dist/auth/subscribers/session.identifier.subscriber.d.ts +0 -12
- package/dist/auth/subscribers/session.identifier.subscriber.js.map +0 -1
- package/dist/platformUtility/jobs/remote.request.log.job.d.ts +0 -9
- package/dist/platformUtility/jobs/remote.request.log.job.js +0 -33
- package/dist/platformUtility/jobs/remote.request.log.job.js.map +0 -1
- package/dist/system/jobs/client.job.d.ts +0 -12
- package/dist/system/jobs/client.job.js +0 -46
- package/dist/system/jobs/client.job.js.map +0 -1
- package/dist/system/jobs/code.fix.log.job.d.ts +0 -9
- package/dist/system/jobs/code.fix.log.job.js +0 -33
- package/dist/system/jobs/code.fix.log.job.js.map +0 -1
- package/dist/system/jobs/data.log.job.d.ts +0 -9
- package/dist/system/jobs/data.log.job.js +0 -33
- package/dist/system/jobs/data.log.job.js.map +0 -1
- package/dist/system/jobs/executable.script.job.d.ts +0 -9
- package/dist/system/jobs/executable.script.job.js +0 -33
- package/dist/system/jobs/executable.script.job.js.map +0 -1
- package/dist/system/jobs/mail.event.job.d.ts +0 -9
- package/dist/system/jobs/mail.event.job.js +0 -33
- package/dist/system/jobs/mail.event.job.js.map +0 -1
- package/dist/system/jobs/mail.recipient.job.d.ts +0 -9
- package/dist/system/jobs/mail.recipient.job.js +0 -33
- package/dist/system/jobs/mail.recipient.job.js.map +0 -1
- package/dist/system/jobs/mail.validation.job.d.ts +0 -9
- package/dist/system/jobs/mail.validation.job.js +0 -31
- package/dist/system/jobs/mail.validation.job.js.map +0 -1
- package/dist/system/jobs/mobile.validation.job.d.ts +0 -9
- package/dist/system/jobs/mobile.validation.job.js +0 -31
- package/dist/system/jobs/mobile.validation.job.js.map +0 -1
- package/dist/system/jobs/report.sheet.job.d.ts +0 -9
- package/dist/system/jobs/report.sheet.job.js +0 -33
- package/dist/system/jobs/report.sheet.job.js.map +0 -1
- package/dist/system/jobs/sms.message.job.d.ts +0 -9
- package/dist/system/jobs/sms.message.job.js +0 -31
- package/dist/system/jobs/sms.message.job.js.map +0 -1
|
@@ -1,10 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
2
18
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
20
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
21
|
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
22
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
23
|
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
8
41
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
42
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
43
|
};
|
|
@@ -12,6 +45,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
45
|
exports.DispatcherSubscriber = void 0;
|
|
13
46
|
const common_1 = require("@nestjs/common");
|
|
14
47
|
const core_1 = require("@nestjs/core");
|
|
48
|
+
const Sentry = __importStar(require("@sentry/node"));
|
|
15
49
|
const typeorm_1 = require("typeorm");
|
|
16
50
|
const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
|
17
51
|
const subscriber_registry_1 = require("../../common/libraries/subscriber.registry");
|
|
@@ -33,17 +67,20 @@ let DispatcherSubscriber = class DispatcherSubscriber extends common_subscriber_
|
|
|
33
67
|
`for entity ${entityClass.name} via ModuleRef. ` +
|
|
34
68
|
`Is the job registered as a provider in its module's es6.classes.ts?`);
|
|
35
69
|
}
|
|
70
|
+
this.warnIgnoredPrePersistHooks(job, jobClass, entityClass);
|
|
36
71
|
resolved.push(job);
|
|
37
72
|
}
|
|
38
73
|
this.jobs.set(entityClass, resolved);
|
|
39
74
|
}
|
|
40
|
-
this.assertNoConflicts();
|
|
41
|
-
}
|
|
42
|
-
async beforeInsert(evt) {
|
|
43
|
-
return this.routeBeforeHook(evt, 'beforeInsert');
|
|
44
75
|
}
|
|
45
|
-
|
|
46
|
-
|
|
76
|
+
warnIgnoredPrePersistHooks(job, jobClass, entityClass) {
|
|
77
|
+
const hooks = ['beforeInsert', 'beforeUpdate'].filter((hook) => typeof job?.[hook] === 'function');
|
|
78
|
+
if (!hooks.length)
|
|
79
|
+
return;
|
|
80
|
+
const message = `DispatcherSubscriber: ${jobClass.name} (@SubscribeFor ${entityClass.name}) defines ${hooks.join(' / ')}, ` +
|
|
81
|
+
`which is no longer invoked on jobs. Move pre-persist logic to a standalone CommonSubscriber.`;
|
|
82
|
+
global.console.error(message);
|
|
83
|
+
Sentry.captureMessage(message, { level: 'error', tags: { component: 'DispatcherSubscriber', job: jobClass.name } });
|
|
47
84
|
}
|
|
48
85
|
async afterInsert(evt) {
|
|
49
86
|
return this.routeDispatch(evt);
|
|
@@ -61,30 +98,6 @@ let DispatcherSubscriber = class DispatcherSubscriber extends common_subscriber_
|
|
|
61
98
|
await this.enqueueDispatch(evt.queryRunner, job, data);
|
|
62
99
|
}
|
|
63
100
|
}
|
|
64
|
-
async routeBeforeHook(evt, hook) {
|
|
65
|
-
const target = evt.metadata.target;
|
|
66
|
-
const jobs = this.jobs.get(target);
|
|
67
|
-
const job = jobs?.[0];
|
|
68
|
-
if (!job || typeof job[hook] !== 'function')
|
|
69
|
-
return;
|
|
70
|
-
return job[hook](evt);
|
|
71
|
-
}
|
|
72
|
-
assertNoConflicts() {
|
|
73
|
-
for (const sub of this.dataSource.subscribers) {
|
|
74
|
-
if (sub === this)
|
|
75
|
-
continue;
|
|
76
|
-
const listenTo = sub.listenTo;
|
|
77
|
-
if (typeof listenTo !== 'function')
|
|
78
|
-
continue;
|
|
79
|
-
const listened = listenTo.call(sub);
|
|
80
|
-
if (listened && this.jobs.has(listened)) {
|
|
81
|
-
const standaloneName = sub.constructor?.name ?? 'unknown subscriber';
|
|
82
|
-
throw new Error(`DispatcherSubscriber: ${listened.name} is both decorated with @SubscribeFor ` +
|
|
83
|
-
`job(s) and has a standalone subscriber (${standaloneName}). Pick one — delete the standalone ` +
|
|
84
|
-
`subscriber file, or remove @SubscribeFor from the job(s).`);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
101
|
};
|
|
89
102
|
exports.DispatcherSubscriber = DispatcherSubscriber;
|
|
90
103
|
exports.DispatcherSubscriber = DispatcherSubscriber = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.subscriber.js","sourceRoot":"","sources":["../../../src/platformUtility/subscribers/dispatcher.subscriber.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dispatcher.subscriber.js","sourceRoot":"","sources":["../../../src/platformUtility/subscribers/dispatcher.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA0D;AAC1D,uCAAyC;AACzC,qDAAuC;AACvC,qCAAgF;AAChF,gFAA4E;AAC5E,oFAAgF;AAuBzE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oCAAqB;IAG3D,YACqB,UAAsB,EACtB,SAAoB;QAErC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,cAAS,GAAT,SAAS,CAAW;QAJxB,SAAI,GAAG,IAAI,GAAG,EAAkD,CAAC;QAO9E,UAAU,CAAC,WAAW,CAAC,IA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AAO,CAAC,CAAC;QAC9B,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,sBAAsB,EAAE,GAAG,EAAE,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACxH,CAAC;IAMD,KAAK,CAAC,WAAW,CAAC,GAAqB;QACnC,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAqB;QACnC,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IAEO,KAAK,CAAC,aAAa,CAAC,GAAwC;QAChE,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAC,MAAqC,CAAC;QAClE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACnC,IAAI,CAAC,IAAI,EAAE,MAAM;YAAE,OAAO;QAE1B,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QACpC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACrB,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC;CACJ,CAAA;AAtEY,oDAAoB;+BAApB,oBAAoB;IAFhC,IAAA,mBAAU,GAAE;IACZ,IAAA,yBAAe,GAAE;qCAKmB,oBAAU;QACX,gBAAS;GALhC,oBAAoB,CAsEhC"}
|
|
@@ -86,23 +86,15 @@ import { UserGroupRoleEntity } from './entities/user.group.role.entity';
|
|
|
86
86
|
import { UserPreferenceEntity } from './entities/user.preference.entity';
|
|
87
87
|
import { WhatsappTemplateEntity } from './entities/whatsapp.template.entity';
|
|
88
88
|
import { ClientCredentialJob } from './jobs/client.credential.job';
|
|
89
|
-
import { ClientJob } from './jobs/client.job';
|
|
90
|
-
import { CodeFixLogJob } from './jobs/code.fix.log.job';
|
|
91
89
|
import { CodeFixScriptJob } from './jobs/code.fix.script.job';
|
|
92
90
|
import { ColumnMapperJob } from './jobs/column.mapper.job';
|
|
93
91
|
import { CommentJob } from './jobs/comment.job';
|
|
94
92
|
import { CredentialIpJob } from './jobs/credential.ip.job';
|
|
95
|
-
import { DataLogJob } from './jobs/data.log.job';
|
|
96
93
|
import { DocumentJob } from './jobs/document.job';
|
|
97
|
-
import { ExecutableScriptJob } from './jobs/executable.script.job';
|
|
98
94
|
import { ExecuteCodeFixJob } from './jobs/execute.code.fix.job';
|
|
99
95
|
import { ExecuteMaterialViewJob } from './jobs/execute.material.view.job';
|
|
100
96
|
import { ExecuteRecurringQueryJob } from './jobs/execute.recurring.query.job';
|
|
101
|
-
import { MailEventJob } from './jobs/mail.event.job';
|
|
102
|
-
import { MailRecipientJob } from './jobs/mail.recipient.job';
|
|
103
|
-
import { MailValidationJob } from './jobs/mail.validation.job';
|
|
104
97
|
import { MaterialViewJob } from './jobs/material.view.job';
|
|
105
|
-
import { MobileValidationJob } from './jobs/mobile.validation.job';
|
|
106
98
|
import { ModelScannerJob } from './jobs/model.scanner.job';
|
|
107
99
|
import { OrphanSweeperJob } from './jobs/orphan.sweeper.job';
|
|
108
100
|
import { PropertyJob } from './jobs/property.job';
|
|
@@ -111,13 +103,11 @@ import { RefreshMaterialViewJob } from './jobs/refresh.material.view.job';
|
|
|
111
103
|
import { RefreshPropertyCacheJob } from './jobs/refresh.property.cache.job';
|
|
112
104
|
import { RelationshipMapperJob } from './jobs/relationship.mapper.job';
|
|
113
105
|
import { ReportColumnSyncJob } from './jobs/report.column.sync.job';
|
|
114
|
-
import { ReportSheetJob } from './jobs/report.sheet.job';
|
|
115
106
|
import { ScheduledEventJob } from './jobs/scheduled.event.job';
|
|
116
107
|
import { SetCodefixScriptEventJob } from './jobs/set.codefix.script.event.job';
|
|
117
108
|
import { SetEventQueueJob } from './jobs/set.event.queue.job';
|
|
118
109
|
import { SetRecurringQueryEventJob } from './jobs/set.recurring.query.event.job';
|
|
119
110
|
import { SetScheduledEventJob } from './jobs/set.scheduled.event.job';
|
|
120
|
-
import { SmsMessageJob } from './jobs/sms.message.job';
|
|
121
111
|
import { SqsPollingJob } from './jobs/sqs.polling.job';
|
|
122
112
|
import { SyncAllCodeJob } from './jobs/sync.all.code.job';
|
|
123
113
|
import { UserGroupMemberJob } from './jobs/user.group.member.job';
|
|
@@ -173,6 +163,12 @@ import { StorageService } from './services/storage.service';
|
|
|
173
163
|
import { UiActionService } from './services/ui.action.service';
|
|
174
164
|
import { UploadService } from './services/upload.service';
|
|
175
165
|
import { UserPreferenceService } from './services/user.preference.service';
|
|
166
|
+
import { ClientCredentialSubscriber } from './subscribers/client.credential.subscriber';
|
|
167
|
+
import { CodeFixScriptSubscriber } from './subscribers/code.fix.script.subscriber';
|
|
168
|
+
import { MaterialViewSubscriber } from './subscribers/material.view.subscriber';
|
|
169
|
+
import { PropertySubscriber } from './subscribers/property.subscriber';
|
|
170
|
+
import { RecurringQuerySubscriber } from './subscribers/recurring.query.subscriber';
|
|
171
|
+
import { ScheduledEventSubscriber } from './subscribers/scheduled.event.subscriber';
|
|
176
172
|
declare const es6Classes: {
|
|
177
173
|
constants: ({
|
|
178
174
|
PUBLIC: Set<string>;
|
|
@@ -191,9 +187,10 @@ declare const es6Classes: {
|
|
|
191
187
|
dtos: (typeof FileUploadSpecDto | typeof StorageUploadOptionsDto | typeof LocalFileS3UploadDto | typeof S3ObjectInfoDto | typeof ClientCredentialAttributesDto | typeof AddDirectMenuDto | typeof ModelFormPreferenceCreationDto | typeof UserPreferenceCreationDto | typeof FileUploadDto | typeof AddCommentDto | typeof ClientCredentialDto | typeof ExecutableScriptPayloadDto | typeof JobRecordParamDto | typeof MailValidationDto | typeof MobileValidationDto | typeof ModelAllowedColumnDto | typeof OtpGenerationDto | typeof ValidationOptionsDto)[];
|
|
192
188
|
entities: (typeof LookupTypeEntity | typeof UserGroupRoleEntity | typeof UserGroupEntity | typeof UserGroupMemberEntity | typeof BusinessRuleRoleEntity | typeof BusinessRuleEntity | typeof ColumnDefinitionEntity | typeof ColumnEntity | typeof ModelEntity | typeof FormPreferenceEntity | typeof ModelColumnEntity | typeof RelationshipEntity | typeof ModelRelationshipEntity | typeof ModelRoleEntity | typeof FormColumnEntity | typeof SystemScriptEntity | typeof UiActionPermissionEntity | typeof UiActionEntity | typeof UiActionRoleEntity | typeof PrimaryAxisEntity | typeof ChartEntity | typeof ClientEntity | typeof ClientCredentialEntity | typeof CredentialIpEntity | typeof ClientScriptEntity | typeof CodeFixScriptEntity | typeof CodeFixLogEntity | typeof DocumentEntity | typeof CommentEntity | typeof DataLogEntity | typeof DynamoTableEntity | typeof EventDetailEntity | typeof EventQueueEntity | typeof MailLogEntity | typeof MailEventEntity | typeof MailRecipientEntity | typeof MailValidationEntity | typeof MaterialViewEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof ModuleEntity | typeof ModuleMenuEntity | typeof PageDefinitionEntity | typeof ParentMenuEntity | typeof MobileValidationEntity | typeof OpenPropertyEntity | typeof RecurringQueryEntity | typeof ReportFilterEntity | typeof ReportEntity | typeof ReportRelationshipEntity | typeof ReportRoleEntity | typeof ReportColumnEntity | typeof ReportSheetEntity | typeof ScheduledEventEntity | typeof SecurityRuleEntity | typeof ServiceEntity | typeof SmsTemplateEntity | typeof SmsMessageEntity | typeof UserGroupPermissionEntity | typeof UserPreferenceEntity | typeof WhatsappTemplateEntity)[];
|
|
193
189
|
interfaces: any[];
|
|
194
|
-
jobs: (typeof ExecuteCodeFixJob | typeof SetScheduledEventJob | typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof SyncAllCodeJob | typeof ClientCredentialJob | typeof
|
|
190
|
+
jobs: (typeof ExecuteCodeFixJob | typeof SetScheduledEventJob | typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof SyncAllCodeJob | typeof ClientCredentialJob | typeof SetCodefixScriptEventJob | typeof CodeFixScriptJob | typeof ColumnMapperJob | typeof CommentJob | typeof CredentialIpJob | typeof DocumentJob | typeof ExecuteMaterialViewJob | typeof ExecuteRecurringQueryJob | typeof RefreshMaterialViewJob | typeof MaterialViewJob | typeof OrphanSweeperJob | typeof RefreshPropertyCacheJob | typeof PropertyJob | typeof SetRecurringQueryEventJob | typeof RecurringQueryJob | typeof RelationshipMapperJob | typeof ScheduledEventJob | typeof SetEventQueueJob | typeof SqsPollingJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
|
|
195
191
|
libraries: (typeof FileTypeDetector | typeof CommonStorageService | typeof SandboxedScriptExecutor | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof ScriptFnHelpers | typeof ExecuteCodeFix | typeof ModelSync | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator | typeof ProcessMenuCreation | typeof MaterialViewFreshness | typeof CodeEvaluator | typeof CryptReEncryptProcessor | typeof GetReportQuery | typeof ReportBatchPaginator | typeof GenerateDownloadableReportFile | typeof ProcessScriptExecution | typeof SyncDynamoTables)[];
|
|
196
192
|
modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
|
|
197
193
|
services: (typeof PropertyService | typeof AwsS3Service | typeof CloudflareR2Service | typeof StorageService | typeof UploadService | typeof SecurityRuleService | typeof UiActionService | typeof ModelService | typeof BaseService | typeof ScheduledEventService | typeof EventDetailService | typeof ClientScriptService | typeof PreferenceService | typeof BusinessRuleService | typeof ListService | typeof FormService | typeof MenuService | typeof UserPreferenceService | typeof ReportService | typeof ClientCredentialService | typeof EventQueueService | typeof ColumnService | typeof DocumentService | typeof CommentService | typeof Es6JobsService | typeof ExecutableScriptService | typeof InternalServerConnectService | typeof MailValidationService | typeof MobileValidationService)[];
|
|
194
|
+
subscribers: (typeof ClientCredentialSubscriber | typeof CodeFixScriptSubscriber | typeof MaterialViewSubscriber | typeof PropertySubscriber | typeof RecurringQuerySubscriber | typeof ScheduledEventSubscriber)[];
|
|
198
195
|
};
|
|
199
196
|
export default es6Classes;
|
|
@@ -117,23 +117,15 @@ const user_group_role_entity_1 = require("./entities/user.group.role.entity");
|
|
|
117
117
|
const user_preference_entity_1 = require("./entities/user.preference.entity");
|
|
118
118
|
const whatsapp_template_entity_1 = require("./entities/whatsapp.template.entity");
|
|
119
119
|
const client_credential_job_1 = require("./jobs/client.credential.job");
|
|
120
|
-
const client_job_1 = require("./jobs/client.job");
|
|
121
|
-
const code_fix_log_job_1 = require("./jobs/code.fix.log.job");
|
|
122
120
|
const code_fix_script_job_1 = require("./jobs/code.fix.script.job");
|
|
123
121
|
const column_mapper_job_1 = require("./jobs/column.mapper.job");
|
|
124
122
|
const comment_job_1 = require("./jobs/comment.job");
|
|
125
123
|
const credential_ip_job_1 = require("./jobs/credential.ip.job");
|
|
126
|
-
const data_log_job_1 = require("./jobs/data.log.job");
|
|
127
124
|
const document_job_1 = require("./jobs/document.job");
|
|
128
|
-
const executable_script_job_1 = require("./jobs/executable.script.job");
|
|
129
125
|
const execute_code_fix_job_1 = require("./jobs/execute.code.fix.job");
|
|
130
126
|
const execute_material_view_job_1 = require("./jobs/execute.material.view.job");
|
|
131
127
|
const execute_recurring_query_job_1 = require("./jobs/execute.recurring.query.job");
|
|
132
|
-
const mail_event_job_1 = require("./jobs/mail.event.job");
|
|
133
|
-
const mail_recipient_job_1 = require("./jobs/mail.recipient.job");
|
|
134
|
-
const mail_validation_job_1 = require("./jobs/mail.validation.job");
|
|
135
128
|
const material_view_job_1 = require("./jobs/material.view.job");
|
|
136
|
-
const mobile_validation_job_1 = require("./jobs/mobile.validation.job");
|
|
137
129
|
const model_scanner_job_1 = require("./jobs/model.scanner.job");
|
|
138
130
|
const orphan_sweeper_job_1 = require("./jobs/orphan.sweeper.job");
|
|
139
131
|
const property_job_1 = require("./jobs/property.job");
|
|
@@ -142,13 +134,11 @@ const refresh_material_view_job_1 = require("./jobs/refresh.material.view.job");
|
|
|
142
134
|
const refresh_property_cache_job_1 = require("./jobs/refresh.property.cache.job");
|
|
143
135
|
const relationship_mapper_job_1 = require("./jobs/relationship.mapper.job");
|
|
144
136
|
const report_column_sync_job_1 = require("./jobs/report.column.sync.job");
|
|
145
|
-
const report_sheet_job_1 = require("./jobs/report.sheet.job");
|
|
146
137
|
const scheduled_event_job_1 = require("./jobs/scheduled.event.job");
|
|
147
138
|
const set_codefix_script_event_job_1 = require("./jobs/set.codefix.script.event.job");
|
|
148
139
|
const set_event_queue_job_1 = require("./jobs/set.event.queue.job");
|
|
149
140
|
const set_recurring_query_event_job_1 = require("./jobs/set.recurring.query.event.job");
|
|
150
141
|
const set_scheduled_event_job_1 = require("./jobs/set.scheduled.event.job");
|
|
151
|
-
const sms_message_job_1 = require("./jobs/sms.message.job");
|
|
152
142
|
const sqs_polling_job_1 = require("./jobs/sqs.polling.job");
|
|
153
143
|
const sync_all_code_job_1 = require("./jobs/sync.all.code.job");
|
|
154
144
|
const user_group_member_job_1 = require("./jobs/user.group.member.job");
|
|
@@ -204,6 +194,12 @@ const storage_service_1 = require("./services/storage.service");
|
|
|
204
194
|
const ui_action_service_1 = require("./services/ui.action.service");
|
|
205
195
|
const upload_service_1 = require("./services/upload.service");
|
|
206
196
|
const user_preference_service_1 = require("./services/user.preference.service");
|
|
197
|
+
const client_credential_subscriber_1 = require("./subscribers/client.credential.subscriber");
|
|
198
|
+
const code_fix_script_subscriber_1 = require("./subscribers/code.fix.script.subscriber");
|
|
199
|
+
const material_view_subscriber_1 = require("./subscribers/material.view.subscriber");
|
|
200
|
+
const property_subscriber_1 = require("./subscribers/property.subscriber");
|
|
201
|
+
const recurring_query_subscriber_1 = require("./subscribers/recurring.query.subscriber");
|
|
202
|
+
const scheduled_event_subscriber_1 = require("./subscribers/scheduled.event.subscriber");
|
|
207
203
|
const es6Classes = {
|
|
208
204
|
constants: [storage_constants_1.StorageConstants, ui_action_constants_1.UiActionConstants, upload_allow_list_1.UploadAllowList],
|
|
209
205
|
controllers: [
|
|
@@ -328,23 +324,15 @@ const es6Classes = {
|
|
|
328
324
|
interfaces: [],
|
|
329
325
|
jobs: [
|
|
330
326
|
client_credential_job_1.ClientCredentialJob,
|
|
331
|
-
client_job_1.ClientJob,
|
|
332
|
-
code_fix_log_job_1.CodeFixLogJob,
|
|
333
327
|
code_fix_script_job_1.CodeFixScriptJob,
|
|
334
328
|
column_mapper_job_1.ColumnMapperJob,
|
|
335
329
|
comment_job_1.CommentJob,
|
|
336
330
|
credential_ip_job_1.CredentialIpJob,
|
|
337
|
-
data_log_job_1.DataLogJob,
|
|
338
331
|
document_job_1.DocumentJob,
|
|
339
|
-
executable_script_job_1.ExecutableScriptJob,
|
|
340
332
|
execute_code_fix_job_1.ExecuteCodeFixJob,
|
|
341
333
|
execute_material_view_job_1.ExecuteMaterialViewJob,
|
|
342
334
|
execute_recurring_query_job_1.ExecuteRecurringQueryJob,
|
|
343
|
-
mail_event_job_1.MailEventJob,
|
|
344
|
-
mail_recipient_job_1.MailRecipientJob,
|
|
345
|
-
mail_validation_job_1.MailValidationJob,
|
|
346
335
|
material_view_job_1.MaterialViewJob,
|
|
347
|
-
mobile_validation_job_1.MobileValidationJob,
|
|
348
336
|
model_scanner_job_1.ModelScannerJob,
|
|
349
337
|
orphan_sweeper_job_1.OrphanSweeperJob,
|
|
350
338
|
property_job_1.PropertyJob,
|
|
@@ -353,13 +341,11 @@ const es6Classes = {
|
|
|
353
341
|
refresh_property_cache_job_1.RefreshPropertyCacheJob,
|
|
354
342
|
relationship_mapper_job_1.RelationshipMapperJob,
|
|
355
343
|
report_column_sync_job_1.ReportColumnSyncJob,
|
|
356
|
-
report_sheet_job_1.ReportSheetJob,
|
|
357
344
|
scheduled_event_job_1.ScheduledEventJob,
|
|
358
345
|
set_codefix_script_event_job_1.SetCodefixScriptEventJob,
|
|
359
346
|
set_event_queue_job_1.SetEventQueueJob,
|
|
360
347
|
set_recurring_query_event_job_1.SetRecurringQueryEventJob,
|
|
361
348
|
set_scheduled_event_job_1.SetScheduledEventJob,
|
|
362
|
-
sms_message_job_1.SmsMessageJob,
|
|
363
349
|
sqs_polling_job_1.SqsPollingJob,
|
|
364
350
|
sync_all_code_job_1.SyncAllCodeJob,
|
|
365
351
|
user_group_member_job_1.UserGroupMemberJob,
|
|
@@ -419,6 +405,14 @@ const es6Classes = {
|
|
|
419
405
|
upload_service_1.UploadService,
|
|
420
406
|
user_preference_service_1.UserPreferenceService,
|
|
421
407
|
],
|
|
408
|
+
subscribers: [
|
|
409
|
+
client_credential_subscriber_1.ClientCredentialSubscriber,
|
|
410
|
+
code_fix_script_subscriber_1.CodeFixScriptSubscriber,
|
|
411
|
+
material_view_subscriber_1.MaterialViewSubscriber,
|
|
412
|
+
property_subscriber_1.PropertySubscriber,
|
|
413
|
+
recurring_query_subscriber_1.RecurringQuerySubscriber,
|
|
414
|
+
scheduled_event_subscriber_1.ScheduledEventSubscriber,
|
|
415
|
+
],
|
|
422
416
|
};
|
|
423
417
|
exports.default = es6Classes;
|
|
424
418
|
//# sourceMappingURL=es6.classes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,qEAAiE;AACjE,yEAAoE;AACpE,qEAAgE;AAChE,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,4EAAsE;AACtE,4EAAuE;AACvE,8FAAwF;AACxF,wFAAkF;AAClF,4DAAuD;AACvD,sEAAgE;AAChE,sEAAgE;AAChE,8EAAuE;AACvE,gFAA0E;AAC1E,wFAAkF;AAClF,oEAA+D;AAC/D,sFAAgF;AAChF,gGAAy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AC7E,wEAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,qEAAiE;AACjE,yEAAoE;AACpE,qEAAgE;AAChE,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,4EAAsE;AACtE,4EAAuE;AACvE,8FAAwF;AACxF,wFAAkF;AAClF,4DAAuD;AACvD,sEAAgE;AAChE,sEAAgE;AAChE,8EAAuE;AACvE,gFAA0E;AAC1E,wFAAkF;AAClF,oEAA+D;AAC/D,sFAAgF;AAChF,gGAAyF;AACzF,wEAAmE;AACnE,8EAAwE;AACxE,kGAA2F;AAC3F,kEAA6D;AAC7D,0FAAoF;AACpF,oFAA8E;AAC9E,kEAA4D;AAC5D,wEAAkE;AAClE,0FAAoF;AACpF,kFAA4E;AAC5E,oFAA8E;AAC9E,kFAA4E;AAC5E,sFAAgF;AAChF,0EAAqE;AACrE,0EAAqE;AACrE,oFAA8E;AAC9E,0DAAsD;AACtD,kFAA6E;AAC7E,4DAAwD;AACxD,0EAAqE;AACrE,wEAAkE;AAClE,8EAAwE;AACxE,kFAA6E;AAC7E,4DAAwD;AACxD,8DAA0D;AAC1D,0EAAqE;AACrE,gEAA2D;AAC3D,gEAA4D;AAC5D,wEAAmE;AACnE,4EAAuE;AACvE,wEAAmE;AACnE,sEAAiE;AACjE,kFAA6E;AAC7E,sEAAiE;AACjE,wDAAoD;AACpD,8EAAyE;AACzE,8EAAyE;AACzE,sEAAiE;AACjE,wEAAmE;AACnE,oEAA+D;AAC/D,gEAA2D;AAC3D,4EAAuE;AACvE,8EAAyE;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ist/system/index.d.ts
CHANGED
package/dist/system/index.js
CHANGED
|
@@ -23,5 +23,6 @@ __exportStar(require("./jobs"), exports);
|
|
|
23
23
|
__exportStar(require("./libraries"), exports);
|
|
24
24
|
__exportStar(require("./modifiers"), exports);
|
|
25
25
|
__exportStar(require("./services"), exports);
|
|
26
|
+
__exportStar(require("./subscribers"), exports);
|
|
26
27
|
__exportStar(require("./system.module"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
package/dist/system/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAAA,gDAA8B;AAAA,yCAAuB;AAAA,6CAA2B;AAAA,+CAA6B;AAAA,yCAAuB;AAAA,8CAA4B;AAAA,8CAA4B;AAAA,6CAA2B;AAAA,kDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAAA,gDAA8B;AAAA,yCAAuB;AAAA,6CAA2B;AAAA,+CAA6B;AAAA,yCAAuB;AAAA,8CAA4B;AAAA,8CAA4B;AAAA,6CAA2B;AAAA,gDAA8B;AAAA,kDAA+B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InsertEvent } from 'typeorm';
|
|
2
1
|
import { DatabaseEventDto } from '../../common/dtos/database.event.dto';
|
|
3
2
|
import { CommonJob } from '../../common/libraries/common.job';
|
|
4
3
|
import { QueueService } from '../../platformUtility/services/queue.service';
|
|
@@ -8,7 +7,6 @@ export declare class ClientCredentialJob extends CommonJob {
|
|
|
8
7
|
protected readonly queueService: QueueService;
|
|
9
8
|
private readonly clientCredentialService;
|
|
10
9
|
constructor(queueService: QueueService, clientCredentialService: ClientCredentialService);
|
|
11
|
-
beforeInsert(evt: InsertEvent<ClientCredentialEntity>): Promise<void>;
|
|
12
10
|
handle(evt: DatabaseEventDto<ClientCredentialEntity>): Promise<void>;
|
|
13
11
|
refreshCacheKey(evt: DatabaseEventDto<ClientCredentialEntity>): Promise<void>;
|
|
14
12
|
setKey(evt: DatabaseEventDto<ClientCredentialEntity>): Promise<void>;
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ClientCredentialJob = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const common_job_1 = require("../../common/libraries/common.job");
|
|
15
|
-
const hash_1 = require("../../common/libraries/hash");
|
|
16
15
|
const subscriber_registry_1 = require("../../common/libraries/subscriber.registry");
|
|
17
16
|
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
|
18
17
|
const client_credential_entity_1 = require("../entities/client.credential.entity");
|
|
@@ -23,9 +22,6 @@ let ClientCredentialJob = class ClientCredentialJob extends common_job_1.CommonJ
|
|
|
23
22
|
this.queueService = queueService;
|
|
24
23
|
this.clientCredentialService = clientCredentialService;
|
|
25
24
|
}
|
|
26
|
-
async beforeInsert(evt) {
|
|
27
|
-
evt.entity.credential = hash_1.Hash.hash(evt.entity.credential);
|
|
28
|
-
}
|
|
29
25
|
async handle(evt) {
|
|
30
26
|
await this.refreshCacheKey(evt);
|
|
31
27
|
await this.setKey(evt);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.credential.job.js","sourceRoot":"","sources":["../../../src/system/jobs/client.credential.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;
|
|
1
|
+
{"version":3,"file":"client.credential.job.js","sourceRoot":"","sources":["../../../src/system/jobs/client.credential.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,kEAA8D;AAC9D,oFAA0E;AAC1E,gFAA4E;AAC5E,mFAA8E;AAC9E,qFAAgF;AAIzE,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,sBAAS;IAC9C,YACuB,YAA0B,EAC5B,uBAAgD;QAEjE,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAHvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,4BAAuB,GAAvB,uBAAuB,CAAyB;IAGrE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAA6C;QACtD,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;QAChC,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,GAA6C;QAC/D,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;YAAE,OAAO;QACjE,MAAM,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACjF,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAA6C;QACtD,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC;YAAE,OAAO;QACnC,MAAM,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACjF,CAAC;CACJ,CAAA;AAtBY,kDAAmB;8BAAnB,mBAAmB;IAF/B,IAAA,mBAAU,GAAE;IACZ,IAAA,kCAAY,EAAC,iDAAsB,CAAC;qCAGI,4BAAY;QACH,mDAAuB;GAH5D,mBAAmB,CAsB/B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InsertEvent, UpdateEvent } from 'typeorm';
|
|
2
1
|
import { DatabaseEventDto } from '../../common/dtos/database.event.dto';
|
|
3
2
|
import { CommonJob } from '../../common/libraries/common.job';
|
|
4
3
|
import { QueueService } from '../../platformUtility/services/queue.service';
|
|
@@ -10,9 +9,6 @@ export declare class CodeFixScriptJob extends CommonJob {
|
|
|
10
9
|
private readonly scheduledEventService;
|
|
11
10
|
private readonly setCodefixScriptEventJob;
|
|
12
11
|
constructor(queueService: QueueService, scheduledEventService: ScheduledEventService, setCodefixScriptEventJob: SetCodefixScriptEventJob);
|
|
13
|
-
beforeInsert(event: InsertEvent<CodeFixScriptEntity>): Promise<void>;
|
|
14
|
-
beforeUpdate(event: UpdateEvent<CodeFixScriptEntity>): Promise<void>;
|
|
15
|
-
private validateTiming;
|
|
16
12
|
handle(evt: DatabaseEventDto<CodeFixScriptEntity>): Promise<void>;
|
|
17
13
|
private setSchedule;
|
|
18
14
|
private cleanRecord;
|
|
@@ -12,9 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CodeFixScriptJob = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const date_fns_1 = require("date-fns");
|
|
15
|
-
const form_exception_1 = require("../../common/exceptions/form.exception");
|
|
16
15
|
const common_job_1 = require("../../common/libraries/common.job");
|
|
17
|
-
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
|
18
16
|
const subscriber_registry_1 = require("../../common/libraries/subscriber.registry");
|
|
19
17
|
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
|
20
18
|
const code_fix_script_entity_1 = require("../entities/code.fix.script.entity");
|
|
@@ -28,25 +26,6 @@ let CodeFixScriptJob = class CodeFixScriptJob extends common_job_1.CommonJob {
|
|
|
28
26
|
this.scheduledEventService = scheduledEventService;
|
|
29
27
|
this.setCodefixScriptEventJob = setCodefixScriptEventJob;
|
|
30
28
|
}
|
|
31
|
-
async beforeInsert(event) {
|
|
32
|
-
event.entity.attributes = {
|
|
33
|
-
...event.entity.attributes,
|
|
34
|
-
...{},
|
|
35
|
-
};
|
|
36
|
-
this.validateTiming(event.entity?.timing);
|
|
37
|
-
if (!event.entity?.last_scheduled_time)
|
|
38
|
-
event.entity.last_scheduled_time = (0, date_fns_1.subMinutes)(new Date(), 15);
|
|
39
|
-
}
|
|
40
|
-
async beforeUpdate(event) {
|
|
41
|
-
this.validateTiming(event.entity?.timing);
|
|
42
|
-
if (!event.entity?.last_scheduled_time)
|
|
43
|
-
event.entity.last_scheduled_time = (0, date_fns_1.subMinutes)(new Date(), 15);
|
|
44
|
-
}
|
|
45
|
-
validateTiming(timing) {
|
|
46
|
-
if (timing && !platform_utility_1.PlatformUtility.isValidCronExpression(timing)) {
|
|
47
|
-
throw new form_exception_1.FormException({ column: 'timing', err: `Invalid cron expression: ${timing}` });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
29
|
async handle(evt) {
|
|
51
30
|
await this.setSchedule(evt);
|
|
52
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code.fix.script.job.js","sourceRoot":"","sources":["../../../src/system/jobs/code.fix.script.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uCAAsC;AAEtC,
|
|
1
|
+
{"version":3,"file":"code.fix.script.job.js","sourceRoot":"","sources":["../../../src/system/jobs/code.fix.script.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uCAAsC;AAEtC,kEAA8D;AAC9D,oFAA0E;AAC1E,gFAA4E;AAC5E,+EAAyE;AACzE,iFAA4E;AAC5E,iFAA0E;AAC1E,uDAAwD;AAIjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,sBAAS;IAC3C,YACuB,YAA0B,EAC5B,qBAA4C,EAC5C,wBAAkD;QAEnE,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAJvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,6BAAwB,GAAxB,wBAAwB,CAA0B;IAGvE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAA0C;QACnD,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,GAA0C;QAChE,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC7C,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,CAAC;YAAE,OAAO;QAExD,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACjE,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,GAA0C;QAChE,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,EAAE,WAAW,EAAE,UAAU,CAAC,aAAa,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;QAEzH,MAAM,CAAC,GAAG,MAAM,4CAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACzD,CAAC,CAAC,mBAAmB,GAAG,IAAA,qBAAU,EAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QAElD,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;CACJ,CAAA;AA7BY,4CAAgB;2BAAhB,gBAAgB;IAF5B,IAAA,mBAAU,GAAE;IACZ,IAAA,kCAAY,EAAC,4CAAmB,CAAC;qCAGO,4BAAY;QACL,+CAAqB;QAClB,uDAAwB;GAJ9D,gBAAgB,CA6B5B"}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
export * from './client.credential.job';
|
|
2
|
-
export * from './client.job';
|
|
3
|
-
export * from './code.fix.log.job';
|
|
4
2
|
export * from './code.fix.script.job';
|
|
5
3
|
export * from './column.mapper.job';
|
|
6
4
|
export * from './comment.job';
|
|
7
5
|
export * from './credential.ip.job';
|
|
8
|
-
export * from './data.log.job';
|
|
9
6
|
export * from './document.job';
|
|
10
|
-
export * from './executable.script.job';
|
|
11
7
|
export * from './execute.code.fix.job';
|
|
12
8
|
export * from './execute.material.view.job';
|
|
13
9
|
export * from './execute.recurring.query.job';
|
|
14
|
-
export * from './mail.event.job';
|
|
15
|
-
export * from './mail.recipient.job';
|
|
16
|
-
export * from './mail.validation.job';
|
|
17
10
|
export * from './material.view.job';
|
|
18
|
-
export * from './mobile.validation.job';
|
|
19
11
|
export * from './model.scanner.job';
|
|
20
12
|
export * from './orphan.sweeper.job';
|
|
21
13
|
export * from './property.job';
|
|
@@ -24,13 +16,11 @@ export * from './refresh.material.view.job';
|
|
|
24
16
|
export * from './refresh.property.cache.job';
|
|
25
17
|
export * from './relationship.mapper.job';
|
|
26
18
|
export * from './report.column.sync.job';
|
|
27
|
-
export * from './report.sheet.job';
|
|
28
19
|
export * from './scheduled.event.job';
|
|
29
20
|
export * from './set.codefix.script.event.job';
|
|
30
21
|
export * from './set.event.queue.job';
|
|
31
22
|
export * from './set.recurring.query.event.job';
|
|
32
23
|
export * from './set.scheduled.event.job';
|
|
33
|
-
export * from './sms.message.job';
|
|
34
24
|
export * from './sqs.polling.job';
|
|
35
25
|
export * from './sync.all.code.job';
|
|
36
26
|
export * from './user.group.member.job';
|
|
@@ -15,23 +15,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client.credential.job"), exports);
|
|
18
|
-
__exportStar(require("./client.job"), exports);
|
|
19
|
-
__exportStar(require("./code.fix.log.job"), exports);
|
|
20
18
|
__exportStar(require("./code.fix.script.job"), exports);
|
|
21
19
|
__exportStar(require("./column.mapper.job"), exports);
|
|
22
20
|
__exportStar(require("./comment.job"), exports);
|
|
23
21
|
__exportStar(require("./credential.ip.job"), exports);
|
|
24
|
-
__exportStar(require("./data.log.job"), exports);
|
|
25
22
|
__exportStar(require("./document.job"), exports);
|
|
26
|
-
__exportStar(require("./executable.script.job"), exports);
|
|
27
23
|
__exportStar(require("./execute.code.fix.job"), exports);
|
|
28
24
|
__exportStar(require("./execute.material.view.job"), exports);
|
|
29
25
|
__exportStar(require("./execute.recurring.query.job"), exports);
|
|
30
|
-
__exportStar(require("./mail.event.job"), exports);
|
|
31
|
-
__exportStar(require("./mail.recipient.job"), exports);
|
|
32
|
-
__exportStar(require("./mail.validation.job"), exports);
|
|
33
26
|
__exportStar(require("./material.view.job"), exports);
|
|
34
|
-
__exportStar(require("./mobile.validation.job"), exports);
|
|
35
27
|
__exportStar(require("./model.scanner.job"), exports);
|
|
36
28
|
__exportStar(require("./orphan.sweeper.job"), exports);
|
|
37
29
|
__exportStar(require("./property.job"), exports);
|
|
@@ -40,13 +32,11 @@ __exportStar(require("./refresh.material.view.job"), exports);
|
|
|
40
32
|
__exportStar(require("./refresh.property.cache.job"), exports);
|
|
41
33
|
__exportStar(require("./relationship.mapper.job"), exports);
|
|
42
34
|
__exportStar(require("./report.column.sync.job"), exports);
|
|
43
|
-
__exportStar(require("./report.sheet.job"), exports);
|
|
44
35
|
__exportStar(require("./scheduled.event.job"), exports);
|
|
45
36
|
__exportStar(require("./set.codefix.script.event.job"), exports);
|
|
46
37
|
__exportStar(require("./set.event.queue.job"), exports);
|
|
47
38
|
__exportStar(require("./set.recurring.query.event.job"), exports);
|
|
48
39
|
__exportStar(require("./set.scheduled.event.job"), exports);
|
|
49
|
-
__exportStar(require("./sms.message.job"), exports);
|
|
50
40
|
__exportStar(require("./sqs.polling.job"), exports);
|
|
51
41
|
__exportStar(require("./sync.all.code.job"), exports);
|
|
52
42
|
__exportStar(require("./user.group.member.job"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,gDAA8B;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,yDAAuC;AAAA,8DAA4C;AAAA,gEAA8C;AAAA,sDAAoC;AAAA,sDAAoC;AAAA,uDAAqC;AAAA,iDAA+B;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,4DAA0C;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,iEAA+C;AAAA,wDAAsC;AAAA,kEAAgD;AAAA,4DAA0C;AAAA,oDAAkC;AAAA,sDAAoC;AAAA,0DAAwC;AAAA,8DAA4C;AAAA,wDAAqC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InsertEvent, UpdateEvent } from 'typeorm';
|
|
2
1
|
import { DatabaseEventDto } from '../../common/dtos/database.event.dto';
|
|
3
2
|
import { CommonJob } from '../../common/libraries/common.job';
|
|
4
3
|
import { QueueService } from '../../platformUtility/services/queue.service';
|
|
@@ -8,9 +7,6 @@ export declare class MaterialViewJob extends CommonJob {
|
|
|
8
7
|
protected readonly queueService: QueueService;
|
|
9
8
|
protected refreshMaterialViewJob: RefreshMaterialViewJob;
|
|
10
9
|
constructor(queueService: QueueService, refreshMaterialViewJob: RefreshMaterialViewJob);
|
|
11
|
-
beforeInsert(event: InsertEvent<MaterialViewEntity>): Promise<void>;
|
|
12
|
-
beforeUpdate(event: UpdateEvent<MaterialViewEntity>): Promise<void>;
|
|
13
|
-
private validateTiming;
|
|
14
10
|
handle(evt: DatabaseEventDto<MaterialViewEntity>): Promise<MaterialViewEntity>;
|
|
15
11
|
private setSchedule;
|
|
16
12
|
private cleanRecord;
|
|
@@ -12,9 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.MaterialViewJob = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const date_fns_1 = require("date-fns");
|
|
15
|
-
const form_exception_1 = require("../../common/exceptions/form.exception");
|
|
16
15
|
const common_job_1 = require("../../common/libraries/common.job");
|
|
17
|
-
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
|
18
16
|
const subscriber_registry_1 = require("../../common/libraries/subscriber.registry");
|
|
19
17
|
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
|
20
18
|
const material_view_entity_1 = require("../entities/material.view.entity");
|
|
@@ -26,25 +24,6 @@ let MaterialViewJob = class MaterialViewJob extends common_job_1.CommonJob {
|
|
|
26
24
|
this.queueService = queueService;
|
|
27
25
|
this.refreshMaterialViewJob = refreshMaterialViewJob;
|
|
28
26
|
}
|
|
29
|
-
async beforeInsert(event) {
|
|
30
|
-
event.entity.attributes = {
|
|
31
|
-
...event.entity.attributes,
|
|
32
|
-
...{},
|
|
33
|
-
};
|
|
34
|
-
this.validateTiming(event.entity?.timing);
|
|
35
|
-
if (!event.entity.last_scheduled_time)
|
|
36
|
-
event.entity.last_scheduled_time = (0, date_fns_1.subMinutes)(new Date(), 15);
|
|
37
|
-
}
|
|
38
|
-
async beforeUpdate(event) {
|
|
39
|
-
this.validateTiming(event.entity?.timing);
|
|
40
|
-
if (!event.entity.last_scheduled_time)
|
|
41
|
-
event.entity.last_scheduled_time = (0, date_fns_1.subMinutes)(new Date(), 15);
|
|
42
|
-
}
|
|
43
|
-
validateTiming(timing) {
|
|
44
|
-
if (timing && !platform_utility_1.PlatformUtility.isValidCronExpression(timing)) {
|
|
45
|
-
throw new form_exception_1.FormException({ column: 'timing', err: `Invalid cron expression: ${timing}` });
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
27
|
async handle(evt) {
|
|
49
28
|
await this.setSchedule(evt);
|
|
50
29
|
return evt.entity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"material.view.job.js","sourceRoot":"","sources":["../../../src/system/jobs/material.view.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uCAAsC;AAEtC,
|
|
1
|
+
{"version":3,"file":"material.view.job.js","sourceRoot":"","sources":["../../../src/system/jobs/material.view.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CA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C;IACpB,CAAC;CACJ,CAAA;AA7BY,0CAAe;0BAAf,eAAe;IAF3B,IAAA,mBAAU,GAAE;IACZ,IAAA,kCAAY,EAAC,yCAAkB,CAAC;qCAGQ,4BAAY;QACX,kDAAsB;GAHnD,eAAe,CA6B3B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InsertEvent, UpdateEvent } from 'typeorm';
|
|
2
1
|
import { DatabaseEventDto } from '../../common/dtos/database.event.dto';
|
|
3
2
|
import { CommonJob } from '../../common/libraries/common.job';
|
|
4
3
|
import { QueueService } from '../../platformUtility/services/queue.service';
|
|
@@ -8,7 +7,5 @@ export declare class PropertyJob extends CommonJob {
|
|
|
8
7
|
protected readonly queueService: QueueService;
|
|
9
8
|
private readonly refreshPropertyCacheJob;
|
|
10
9
|
constructor(queueService: QueueService, refreshPropertyCacheJob: RefreshPropertyCacheJob);
|
|
11
|
-
beforeInsert(event: InsertEvent<PropertyEntity>): Promise<void>;
|
|
12
|
-
beforeUpdate(evt: UpdateEvent<PropertyEntity>): Promise<void>;
|
|
13
10
|
handle(event: DatabaseEventDto<PropertyEntity>): Promise<void>;
|
|
14
11
|
}
|