@servicelabsco/nestjs-utility-services 1.2.104 → 1.2.105
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.d.ts +4 -3
- package/dist/app.controller.js +6 -8
- package/dist/app.controller.js.map +1 -1
- package/dist/config/entity.constants.d.ts +4 -0
- package/dist/config/entity.constants.js +4 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/migrations/1732960894547-CreateCodeFixScriptTable.d.ts +5 -0
- package/dist/migrations/1732960894547-CreateCodeFixScriptTable.js +22 -0
- package/dist/migrations/1732960894547-CreateCodeFixScriptTable.js.map +1 -0
- package/dist/migrations/1732961040333-CreateCodeFixLogTable.d.ts +5 -0
- package/dist/migrations/1732961040333-CreateCodeFixLogTable.js +24 -0
- package/dist/migrations/1732961040333-CreateCodeFixLogTable.js.map +1 -0
- package/dist/migrations/1732962774052-AddJsonDataSysScheduledEventsTable.ts.d.ts +5 -0
- package/dist/migrations/1732962774052-AddJsonDataSysScheduledEventsTable.ts.js +15 -0
- package/dist/migrations/1732962774052-AddJsonDataSysScheduledEventsTable.ts.js.map +1 -0
- package/dist/migrations/1732962856845-AddJsonPayloadSysEventQueuesTable.ts.d.ts +5 -0
- package/dist/migrations/1732962856845-AddJsonPayloadSysEventQueuesTable.ts.js +15 -0
- package/dist/migrations/1732962856845-AddJsonPayloadSysEventQueuesTable.ts.js.map +1 -0
- package/dist/system/dtos/code.fix.log.attributes.dto.d.ts +3 -0
- package/dist/system/dtos/code.fix.log.attributes.dto.js +8 -0
- package/dist/system/dtos/code.fix.log.attributes.dto.js.map +1 -0
- package/dist/system/dtos/code.fix.script.attributes.dto.d.ts +3 -0
- package/dist/system/dtos/code.fix.script.attributes.dto.js +8 -0
- package/dist/system/dtos/code.fix.script.attributes.dto.js.map +1 -0
- package/dist/system/dtos/index.d.ts +2 -0
- package/dist/system/dtos/index.js +2 -0
- package/dist/system/dtos/index.js.map +1 -1
- package/dist/system/entities/code.fix.log.entity.d.ts +16 -0
- package/dist/system/entities/code.fix.log.entity.js +68 -0
- package/dist/system/entities/code.fix.log.entity.js.map +1 -0
- package/dist/system/entities/code.fix.script.entity.d.ts +11 -0
- package/dist/system/entities/code.fix.script.entity.js +48 -0
- package/dist/system/entities/code.fix.script.entity.js.map +1 -0
- package/dist/system/entities/event.queue.entity.d.ts +1 -0
- package/dist/system/entities/event.queue.entity.js +4 -0
- package/dist/system/entities/event.queue.entity.js.map +1 -1
- package/dist/system/entities/index.d.ts +2 -0
- package/dist/system/entities/index.js +2 -0
- package/dist/system/entities/index.js.map +1 -1
- package/dist/system/entities/scheduled.event.entity.d.ts +1 -0
- package/dist/system/entities/scheduled.event.entity.js +4 -0
- package/dist/system/entities/scheduled.event.entity.js.map +1 -1
- package/dist/system/es6.classes.d.ts +12 -4
- package/dist/system/es6.classes.js +20 -0
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/jobs/code.fix.log.job.d.ts +9 -0
- package/dist/system/jobs/code.fix.log.job.js +30 -0
- package/dist/system/jobs/code.fix.log.job.js.map +1 -0
- package/dist/system/jobs/code.fix.script.job.d.ts +9 -0
- package/dist/system/jobs/code.fix.script.job.js +30 -0
- package/dist/system/jobs/code.fix.script.job.js.map +1 -0
- package/dist/system/jobs/execute.code.fix.job.d.ts +12 -0
- package/dist/system/jobs/execute.code.fix.job.js +35 -0
- package/dist/system/jobs/execute.code.fix.job.js.map +1 -0
- package/dist/system/jobs/index.d.ts +3 -0
- package/dist/system/jobs/index.js +3 -0
- package/dist/system/jobs/index.js.map +1 -1
- package/dist/system/jobs/set.event.queue.job.d.ts +1 -0
- package/dist/system/jobs/set.event.queue.job.js +13 -7
- package/dist/system/jobs/set.event.queue.job.js.map +1 -1
- package/dist/system/libraries/execute.code.fix.d.ts +13 -0
- package/dist/system/libraries/execute.code.fix.js +60 -0
- package/dist/system/libraries/execute.code.fix.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/dist/system/services/es6.jobs.service.d.ts +7 -1
- package/dist/system/services/es6.jobs.service.js +13 -1
- package/dist/system/services/es6.jobs.service.js.map +1 -1
- package/dist/system/services/scheduled.event.service.js +1 -0
- package/dist/system/services/scheduled.event.service.js.map +1 -1
- package/dist/system/services/upload.service.d.ts +1 -1
- package/dist/system/subscribers/code.fix.log.subscriber.d.ts +10 -0
- package/dist/system/subscribers/code.fix.log.subscriber.js +34 -0
- package/dist/system/subscribers/code.fix.log.subscriber.js.map +1 -0
- package/dist/system/subscribers/code.fix.script.subscriber.d.ts +10 -0
- package/dist/system/subscribers/code.fix.script.subscriber.js +34 -0
- package/dist/system/subscribers/code.fix.script.subscriber.js.map +1 -0
- package/dist/system/subscribers/index.d.ts +2 -0
- package/dist/system/subscribers/index.js +2 -0
- package/dist/system/subscribers/index.js.map +1 -1
- package/package.json +1 -1
@@ -38,6 +38,8 @@ import { ChartEntity } from './entities/chart.entity';
|
|
38
38
|
import { ClientCredentialEntity } from './entities/client.credential.entity';
|
39
39
|
import { ClientEntity } from './entities/client.entity';
|
40
40
|
import { ClientScriptEntity } from './entities/client.script.entity';
|
41
|
+
import { CodeFixLogEntity } from './entities/code.fix.log.entity';
|
42
|
+
import { CodeFixScriptEntity } from './entities/code.fix.script.entity';
|
41
43
|
import { ColumnDefinitionEntity } from './entities/column.definition.entity';
|
42
44
|
import { ColumnEntity } from './entities/column.entity';
|
43
45
|
import { CommentEntity } from './entities/comment.entity';
|
@@ -91,10 +93,13 @@ import { SentryInterceptor } from './interceptors/sentry.interceptor';
|
|
91
93
|
import { CleanScheduledEventJob } from './jobs/clean.scheduled.event.job';
|
92
94
|
import { ClientCredentialJob } from './jobs/client.credential.job';
|
93
95
|
import { ClientJob } from './jobs/client.job';
|
96
|
+
import { CodeFixLogJob } from './jobs/code.fix.log.job';
|
97
|
+
import { CodeFixScriptJob } from './jobs/code.fix.script.job';
|
94
98
|
import { ColumnMapperJob } from './jobs/column.mapper.job';
|
95
99
|
import { CommentJob } from './jobs/comment.job';
|
96
100
|
import { CredentialIpJob } from './jobs/credential.ip.job';
|
97
101
|
import { DocumentJob } from './jobs/document.job';
|
102
|
+
import { ExecuteCodeFixJob } from './jobs/execute.code.fix.job';
|
98
103
|
import { MailEventJob } from './jobs/mail.event.job';
|
99
104
|
import { MailRecipientJob } from './jobs/mail.recipient.job';
|
100
105
|
import { MailValidationJob } from './jobs/mail.validation.job';
|
@@ -115,6 +120,7 @@ import { UserGroupRoleJob } from './jobs/user.group.role.job';
|
|
115
120
|
import { BusinessRuleFilterValidator } from './libraries/business.rule.filter.validator';
|
116
121
|
import { BusinessRuleQueryEvaluator } from './libraries/business.rule.query.evaluator';
|
117
122
|
import { ColumnManager } from './libraries/column.manager';
|
123
|
+
import { ExecuteCodeFix } from './libraries/execute.code.fix';
|
118
124
|
import { ModelSync } from './libraries/model.sync';
|
119
125
|
import { ProcessMenuCreation } from './libraries/process.menu.creation';
|
120
126
|
import { SecurityRuleEvaluator } from './libraries/security.rule.evaluator';
|
@@ -150,6 +156,8 @@ import { UploadService } from './services/upload.service';
|
|
150
156
|
import { UserPreferenceService } from './services/user.preference.service';
|
151
157
|
import { ClientCredentialSubscriber } from './subscribers/client.credential.subscriber';
|
152
158
|
import { ClientSubscriber } from './subscribers/client.subscriber';
|
159
|
+
import { CodeFixLogSubscriber } from './subscribers/code.fix.log.subscriber';
|
160
|
+
import { CodeFixScriptSubscriber } from './subscribers/code.fix.script.subscriber';
|
153
161
|
import { ColumnSubscriber } from './subscribers/column.subscriber';
|
154
162
|
import { CommentSubscriber } from './subscribers/comment.subscriber';
|
155
163
|
import { CredentialIpSubscriber } from './subscribers/credential.ip.subscriber';
|
@@ -169,12 +177,12 @@ declare const es6Classes: {
|
|
169
177
|
commands: (typeof DbScannerCommand | typeof DynamoScannerCommand | typeof EventQueueCommand | typeof JobsScannerCommand | typeof ModelScannerCommand | typeof ReportScannerCommand | typeof ServiceScannerCommand | typeof SesEventTrackingCommand | typeof SyncAllCommand)[];
|
170
178
|
controllers: (typeof BaseController | typeof DataController | typeof FormController | typeof MenuController | typeof PreferenceController | typeof ReportController | typeof UploadController | typeof UserPreferenceController)[];
|
171
179
|
dtos: (typeof ClientCredentialAttributesDto | typeof FileUploadSpecDto | typeof S3UploadOptionsDto | typeof LocalFileS3UploadDto | typeof S3ObjectInfoDto | typeof AddDirectMenuDto | typeof ModelFormPreferenceCreationDto | typeof UserPreferenceCreationDto | typeof FileUploadDto | typeof AddCommentDto | typeof ClientCredentialDto | typeof JobRecordParamDto | typeof MailValidationDto | typeof MobileValidationDto | typeof ModelAllowedColumnDto | typeof OtpGenerationDto | typeof ValidationOptionsDto)[];
|
172
|
-
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 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)[];
|
180
|
+
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)[];
|
173
181
|
interceptors: (typeof SentryInterceptor)[];
|
174
|
-
jobs: (typeof SetScheduledEventJob | typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof CleanScheduledEventJob | typeof ClientCredentialJob | typeof ClientJob | 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)[];
|
175
|
-
libraries: (typeof SyncDynamoTables | typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator | typeof ProcessMenuCreation)[];
|
182
|
+
jobs: (typeof ExecuteCodeFixJob | typeof SetScheduledEventJob | typeof ModelScannerJob | typeof ReportColumnSyncJob | 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)[];
|
183
|
+
libraries: (typeof ExecuteCodeFix | typeof SyncDynamoTables | typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator | typeof ProcessMenuCreation)[];
|
176
184
|
modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
|
177
185
|
services: (typeof PropertyService | typeof AwsS3Service | typeof UploadService | typeof ScheduledEventService | typeof EventQueueService | typeof EventDetailService | typeof SecurityRuleService | typeof UiActionService | typeof ModelService | typeof CommonService | typeof ClientScriptService | typeof PreferenceService | typeof BusinessRuleService | typeof ListService | typeof FormService | typeof MenuService | typeof UserPreferenceService | typeof ReportService | typeof ClientCredentialService | typeof ColumnService | typeof DocumentService | typeof CommentService | typeof Es6JobsService | typeof Es6Service | typeof InternalServerConnectService | typeof MailValidationService | typeof MobileValidationService)[];
|
178
|
-
subscribers: (typeof ClientCredentialSubscriber | typeof ClientSubscriber | 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)[];
|
186
|
+
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)[];
|
179
187
|
};
|
180
188
|
export default es6Classes;
|
@@ -22,6 +22,8 @@ const add_direct_menu_dto_1 = require("./dtos/add.direct.menu.dto");
|
|
22
22
|
const client_attributes_dto_1 = require("./dtos/client.attributes.dto");
|
23
23
|
const client_credential_attributes_dto_1 = require("./dtos/client.credential.attributes.dto");
|
24
24
|
const client_credential_dto_1 = require("./dtos/client.credential.dto");
|
25
|
+
const code_fix_log_attributes_dto_1 = require("./dtos/code.fix.log.attributes.dto");
|
26
|
+
const code_fix_script_attributes_dto_1 = require("./dtos/code.fix.script.attributes.dto");
|
25
27
|
const comment_attributes_dto_1 = require("./dtos/comment.attributes.dto");
|
26
28
|
const credential_ip_attributes_dto_1 = require("./dtos/credential.ip.attributes.dto");
|
27
29
|
const document_attributes_dto_1 = require("./dtos/document.attributes.dto");
|
@@ -48,6 +50,8 @@ const chart_entity_1 = require("./entities/chart.entity");
|
|
48
50
|
const client_credential_entity_1 = require("./entities/client.credential.entity");
|
49
51
|
const client_entity_1 = require("./entities/client.entity");
|
50
52
|
const client_script_entity_1 = require("./entities/client.script.entity");
|
53
|
+
const code_fix_log_entity_1 = require("./entities/code.fix.log.entity");
|
54
|
+
const code_fix_script_entity_1 = require("./entities/code.fix.script.entity");
|
51
55
|
const column_definition_entity_1 = require("./entities/column.definition.entity");
|
52
56
|
const column_entity_1 = require("./entities/column.entity");
|
53
57
|
const comment_entity_1 = require("./entities/comment.entity");
|
@@ -108,10 +112,13 @@ const sentry_interceptor_1 = require("./interceptors/sentry.interceptor");
|
|
108
112
|
const clean_scheduled_event_job_1 = require("./jobs/clean.scheduled.event.job");
|
109
113
|
const client_credential_job_1 = require("./jobs/client.credential.job");
|
110
114
|
const client_job_1 = require("./jobs/client.job");
|
115
|
+
const code_fix_log_job_1 = require("./jobs/code.fix.log.job");
|
116
|
+
const code_fix_script_job_1 = require("./jobs/code.fix.script.job");
|
111
117
|
const column_mapper_job_1 = require("./jobs/column.mapper.job");
|
112
118
|
const comment_job_1 = require("./jobs/comment.job");
|
113
119
|
const credential_ip_job_1 = require("./jobs/credential.ip.job");
|
114
120
|
const document_job_1 = require("./jobs/document.job");
|
121
|
+
const execute_code_fix_job_1 = require("./jobs/execute.code.fix.job");
|
115
122
|
const mail_event_job_1 = require("./jobs/mail.event.job");
|
116
123
|
const mail_recipient_job_1 = require("./jobs/mail.recipient.job");
|
117
124
|
const mail_validation_job_1 = require("./jobs/mail.validation.job");
|
@@ -132,6 +139,7 @@ const user_group_role_job_1 = require("./jobs/user.group.role.job");
|
|
132
139
|
const business_rule_filter_validator_1 = require("./libraries/business.rule.filter.validator");
|
133
140
|
const business_rule_query_evaluator_1 = require("./libraries/business.rule.query.evaluator");
|
134
141
|
const column_manager_1 = require("./libraries/column.manager");
|
142
|
+
const execute_code_fix_1 = require("./libraries/execute.code.fix");
|
135
143
|
const model_sync_1 = require("./libraries/model.sync");
|
136
144
|
const process_menu_creation_1 = require("./libraries/process.menu.creation");
|
137
145
|
const security_rule_evaluator_1 = require("./libraries/security.rule.evaluator");
|
@@ -167,6 +175,8 @@ const upload_service_1 = require("./services/upload.service");
|
|
167
175
|
const user_preference_service_1 = require("./services/user.preference.service");
|
168
176
|
const client_credential_subscriber_1 = require("./subscribers/client.credential.subscriber");
|
169
177
|
const client_subscriber_1 = require("./subscribers/client.subscriber");
|
178
|
+
const code_fix_log_subscriber_1 = require("./subscribers/code.fix.log.subscriber");
|
179
|
+
const code_fix_script_subscriber_1 = require("./subscribers/code.fix.script.subscriber");
|
170
180
|
const column_subscriber_1 = require("./subscribers/column.subscriber");
|
171
181
|
const comment_subscriber_1 = require("./subscribers/comment.subscriber");
|
172
182
|
const credential_ip_subscriber_1 = require("./subscribers/credential.ip.subscriber");
|
@@ -210,6 +220,8 @@ const es6Classes = {
|
|
210
220
|
client_attributes_dto_1.ClientAttributesDto,
|
211
221
|
client_credential_attributes_dto_1.ClientCredentialAttributesDto,
|
212
222
|
client_credential_dto_1.ClientCredentialDto,
|
223
|
+
code_fix_log_attributes_dto_1.CodeFixLogAttributesDto,
|
224
|
+
code_fix_script_attributes_dto_1.CodeFixScriptAttributesDto,
|
213
225
|
comment_attributes_dto_1.CommentAttributesDto,
|
214
226
|
credential_ip_attributes_dto_1.CredentialIpAttributesDto,
|
215
227
|
document_attributes_dto_1.DocumentAttributesDto,
|
@@ -238,6 +250,8 @@ const es6Classes = {
|
|
238
250
|
client_credential_entity_1.ClientCredentialEntity,
|
239
251
|
client_entity_1.ClientEntity,
|
240
252
|
client_script_entity_1.ClientScriptEntity,
|
253
|
+
code_fix_log_entity_1.CodeFixLogEntity,
|
254
|
+
code_fix_script_entity_1.CodeFixScriptEntity,
|
241
255
|
column_definition_entity_1.ColumnDefinitionEntity,
|
242
256
|
column_entity_1.ColumnEntity,
|
243
257
|
comment_entity_1.CommentEntity,
|
@@ -300,10 +314,13 @@ const es6Classes = {
|
|
300
314
|
clean_scheduled_event_job_1.CleanScheduledEventJob,
|
301
315
|
client_credential_job_1.ClientCredentialJob,
|
302
316
|
client_job_1.ClientJob,
|
317
|
+
code_fix_log_job_1.CodeFixLogJob,
|
318
|
+
code_fix_script_job_1.CodeFixScriptJob,
|
303
319
|
column_mapper_job_1.ColumnMapperJob,
|
304
320
|
comment_job_1.CommentJob,
|
305
321
|
credential_ip_job_1.CredentialIpJob,
|
306
322
|
document_job_1.DocumentJob,
|
323
|
+
execute_code_fix_job_1.ExecuteCodeFixJob,
|
307
324
|
mail_event_job_1.MailEventJob,
|
308
325
|
mail_recipient_job_1.MailRecipientJob,
|
309
326
|
mail_validation_job_1.MailValidationJob,
|
@@ -326,6 +343,7 @@ const es6Classes = {
|
|
326
343
|
business_rule_filter_validator_1.BusinessRuleFilterValidator,
|
327
344
|
business_rule_query_evaluator_1.BusinessRuleQueryEvaluator,
|
328
345
|
column_manager_1.ColumnManager,
|
346
|
+
execute_code_fix_1.ExecuteCodeFix,
|
329
347
|
model_sync_1.ModelSync,
|
330
348
|
process_menu_creation_1.ProcessMenuCreation,
|
331
349
|
security_rule_evaluator_1.SecurityRuleEvaluator,
|
@@ -364,6 +382,8 @@ const es6Classes = {
|
|
364
382
|
subscribers: [
|
365
383
|
client_credential_subscriber_1.ClientCredentialSubscriber,
|
366
384
|
client_subscriber_1.ClientSubscriber,
|
385
|
+
code_fix_log_subscriber_1.CodeFixLogSubscriber,
|
386
|
+
code_fix_script_subscriber_1.CodeFixScriptSubscriber,
|
367
387
|
column_subscriber_1.ColumnSubscriber,
|
368
388
|
comment_subscriber_1.CommentSubscriber,
|
369
389
|
credential_ip_subscriber_1.CredentialIpSubscriber,
|
@@ -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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V,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,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,8EAAuE;AACvE,gFAA0E;AAC1E,wFAAkF;AAClF,oEAA+D;AAC/D,gGAAyF;AACzF,wEAAmE;AACnE,8EAAwE;AACxE,kGAA2F;AAC3F,kEAA6D;AAC7D,kEAA4D;AAC5D,wEAAkE;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AAuB;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,9 @@
|
|
1
|
+
import { CodeFixLogEntity } from '../entities/code.fix.log.entity';
|
2
|
+
import { DatabaseEventDto } from '../../common/dtos/database.event.dto';
|
3
|
+
import { CommonJob } from '../../common/libraries/common.job';
|
4
|
+
import { QueueService } from '../../platformUtility/services/queue.service';
|
5
|
+
export declare class CodeFixLogJob extends CommonJob {
|
6
|
+
protected readonly queueService: QueueService;
|
7
|
+
constructor(queueService: QueueService);
|
8
|
+
handle(evt: DatabaseEventDto<CodeFixLogEntity>): Promise<CodeFixLogEntity>;
|
9
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.CodeFixLogJob = void 0;
|
13
|
+
const common_1 = require("@nestjs/common");
|
14
|
+
const common_job_1 = require("../../common/libraries/common.job");
|
15
|
+
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
16
|
+
let CodeFixLogJob = class CodeFixLogJob extends common_job_1.CommonJob {
|
17
|
+
constructor(queueService) {
|
18
|
+
super('22f3e204e242b61c405ded5eb2825441');
|
19
|
+
this.queueService = queueService;
|
20
|
+
}
|
21
|
+
async handle(evt) {
|
22
|
+
return evt.entity;
|
23
|
+
}
|
24
|
+
};
|
25
|
+
exports.CodeFixLogJob = CodeFixLogJob;
|
26
|
+
exports.CodeFixLogJob = CodeFixLogJob = __decorate([
|
27
|
+
(0, common_1.Injectable)(),
|
28
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService])
|
29
|
+
], CodeFixLogJob);
|
30
|
+
//# sourceMappingURL=code.fix.log.job.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"code.fix.log.job.js","sourceRoot":"","sources":["../../../src/system/jobs/code.fix.log.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAG5C,kEAA8D;AAC9D,gFAA4E;AAErE,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,sBAAS;IACxC,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAuC;QAChD,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAEoC,4BAAY;GADhD,aAAa,CAOzB"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { CodeFixScriptEntity } from '../entities/code.fix.script.entity';
|
2
|
+
import { DatabaseEventDto } from '../../common/dtos/database.event.dto';
|
3
|
+
import { CommonJob } from '../../common/libraries/common.job';
|
4
|
+
import { QueueService } from '../../platformUtility/services/queue.service';
|
5
|
+
export declare class CodeFixScriptJob extends CommonJob {
|
6
|
+
protected readonly queueService: QueueService;
|
7
|
+
constructor(queueService: QueueService);
|
8
|
+
handle(evt: DatabaseEventDto<CodeFixScriptEntity>): Promise<CodeFixScriptEntity>;
|
9
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.CodeFixScriptJob = void 0;
|
13
|
+
const common_1 = require("@nestjs/common");
|
14
|
+
const common_job_1 = require("../../common/libraries/common.job");
|
15
|
+
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
16
|
+
let CodeFixScriptJob = class CodeFixScriptJob extends common_job_1.CommonJob {
|
17
|
+
constructor(queueService) {
|
18
|
+
super('46043a7eb56579d19cc50088d849535d');
|
19
|
+
this.queueService = queueService;
|
20
|
+
}
|
21
|
+
async handle(evt) {
|
22
|
+
return evt.entity;
|
23
|
+
}
|
24
|
+
};
|
25
|
+
exports.CodeFixScriptJob = CodeFixScriptJob;
|
26
|
+
exports.CodeFixScriptJob = CodeFixScriptJob = __decorate([
|
27
|
+
(0, common_1.Injectable)(),
|
28
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService])
|
29
|
+
], CodeFixScriptJob);
|
30
|
+
//# sourceMappingURL=code.fix.script.job.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"code.fix.script.job.js","sourceRoot":"","sources":["../../../src/system/jobs/code.fix.script.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAG5C,kEAA8D;AAC9D,gFAA4E;AAErE,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,sBAAS;IAC3C,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAA0C;QACnD,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAEoC,4BAAY;GADhD,gBAAgB,CAO5B"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { CommonJob } from '../../common/libraries/common.job';
|
2
|
+
import { QueueService } from '../../platformUtility/services/queue.service';
|
3
|
+
import { SqlService } from '../../platformUtility/services/sql.service';
|
4
|
+
export declare class ExecuteCodeFixJob extends CommonJob {
|
5
|
+
protected readonly queueService: QueueService;
|
6
|
+
protected readonly sqlService: SqlService;
|
7
|
+
constructor(queueService: QueueService, sqlService: SqlService);
|
8
|
+
handle(options: {
|
9
|
+
identifier: string;
|
10
|
+
context: any;
|
11
|
+
}): Promise<void>;
|
12
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.ExecuteCodeFixJob = void 0;
|
13
|
+
const common_1 = require("@nestjs/common");
|
14
|
+
const common_job_1 = require("../../common/libraries/common.job");
|
15
|
+
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
16
|
+
const sql_service_1 = require("../../platformUtility/services/sql.service");
|
17
|
+
const execute_code_fix_1 = require("../libraries/execute.code.fix");
|
18
|
+
let ExecuteCodeFixJob = class ExecuteCodeFixJob extends common_job_1.CommonJob {
|
19
|
+
constructor(queueService, sqlService) {
|
20
|
+
super('66b85ebd2f93d8d9ad74f91dd448fc10');
|
21
|
+
this.queueService = queueService;
|
22
|
+
this.sqlService = sqlService;
|
23
|
+
}
|
24
|
+
async handle(options) {
|
25
|
+
const { identifier, context } = options;
|
26
|
+
return new execute_code_fix_1.ExecuteCodeFix(this.sqlService).process(identifier, context);
|
27
|
+
}
|
28
|
+
};
|
29
|
+
exports.ExecuteCodeFixJob = ExecuteCodeFixJob;
|
30
|
+
exports.ExecuteCodeFixJob = ExecuteCodeFixJob = __decorate([
|
31
|
+
(0, common_1.Injectable)(),
|
32
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService,
|
33
|
+
sql_service_1.SqlService])
|
34
|
+
], ExecuteCodeFixJob);
|
35
|
+
//# sourceMappingURL=execute.code.fix.job.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"execute.code.fix.job.js","sourceRoot":"","sources":["../../../src/system/jobs/execute.code.fix.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,kEAA8D;AAC9D,gFAA4E;AAC5E,4EAAwE;AACxE,oEAA+D;AAGxD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,sBAAS;IAC5C,YACuB,YAA0B,EAC1B,UAAsB;QAEzC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAHvB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,eAAU,GAAV,UAAU,CAAY;IAG7C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA6C;QACtD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QACxC,OAAO,IAAI,iCAAc,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AAZY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAG4B,4BAAY;QACd,wBAAU;GAHpC,iBAAiB,CAY7B"}
|
@@ -1,10 +1,13 @@
|
|
1
1
|
export * from './clean.scheduled.event.job';
|
2
2
|
export * from './client.credential.job';
|
3
3
|
export * from './client.job';
|
4
|
+
export * from './code.fix.log.job';
|
5
|
+
export * from './code.fix.script.job';
|
4
6
|
export * from './column.mapper.job';
|
5
7
|
export * from './comment.job';
|
6
8
|
export * from './credential.ip.job';
|
7
9
|
export * from './document.job';
|
10
|
+
export * from './execute.code.fix.job';
|
8
11
|
export * from './mail.event.job';
|
9
12
|
export * from './mail.recipient.job';
|
10
13
|
export * from './mail.validation.job';
|
@@ -17,10 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./clean.scheduled.event.job"), exports);
|
18
18
|
__exportStar(require("./client.credential.job"), exports);
|
19
19
|
__exportStar(require("./client.job"), exports);
|
20
|
+
__exportStar(require("./code.fix.log.job"), exports);
|
21
|
+
__exportStar(require("./code.fix.script.job"), exports);
|
20
22
|
__exportStar(require("./column.mapper.job"), exports);
|
21
23
|
__exportStar(require("./comment.job"), exports);
|
22
24
|
__exportStar(require("./credential.ip.job"), exports);
|
23
25
|
__exportStar(require("./document.job"), exports);
|
26
|
+
__exportStar(require("./execute.code.fix.job"), exports);
|
24
27
|
__exportStar(require("./mail.event.job"), exports);
|
25
28
|
__exportStar(require("./mail.recipient.job"), exports);
|
26
29
|
__exportStar(require("./mail.validation.job"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAAA,0DAAwC;AAAA,+CAA6B;AAAA,sDAAoC;AAAA,gDAA8B;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,+DAA6C;AAAA,4DAA0C;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,4DAA0C;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,0DAAwC;AAAA,8DAA4C;AAAA,wDAAqC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAAA,0DAAwC;AAAA,+CAA6B;AAAA,qDAAmC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,gDAA8B;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,yDAAuC;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,+DAA6C;AAAA,4DAA0C;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,4DAA0C;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,0DAAwC;AAAA,8DAA4C;AAAA,wDAAqC"}
|
@@ -30,7 +30,6 @@ let SetEventQueueJob = class SetEventQueueJob extends common_job_1.CommonJob {
|
|
30
30
|
const pollQueue = this.configService.get('EVENT_QUEUE_POLL');
|
31
31
|
if (!pollQueue)
|
32
32
|
return;
|
33
|
-
global.console.log('new Date()', new Date());
|
34
33
|
await this.pollQueue();
|
35
34
|
return this.removeCompletedEvents();
|
36
35
|
}
|
@@ -46,18 +45,25 @@ let SetEventQueueJob = class SetEventQueueJob extends common_job_1.CommonJob {
|
|
46
45
|
}
|
47
46
|
async setEvent(event) {
|
48
47
|
event.start_time = date_util_1.DateUtil.getDateTime();
|
49
|
-
await event.save();
|
50
48
|
try {
|
51
|
-
const payload = this.
|
49
|
+
const payload = this.getPayload(event);
|
52
50
|
const job = await this.queueService.addJob(event.event.identifier, payload);
|
51
|
+
event.attributes = { ...event.attributes, job_id: job.id };
|
53
52
|
global.console.log('triggered event : ', event.event.identifier, payload, job.id);
|
54
53
|
}
|
55
54
|
catch (error) {
|
56
|
-
|
57
|
-
global.console.error(error);
|
55
|
+
event.attributes = { ...event.attributes, no_trigger: true };
|
58
56
|
}
|
59
|
-
|
60
|
-
|
57
|
+
finally {
|
58
|
+
event.end_time = date_util_1.DateUtil.getDateTime();
|
59
|
+
return event.save();
|
60
|
+
}
|
61
|
+
}
|
62
|
+
getPayload(event) {
|
63
|
+
const { payload, parameter } = event;
|
64
|
+
if (Object.keys(payload || {}).length)
|
65
|
+
return payload;
|
66
|
+
return this.typeCastParameter(parameter);
|
61
67
|
}
|
62
68
|
typeCastParameter(value) {
|
63
69
|
if (!value.length)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"set.event.queue.job.js","sourceRoot":"","sources":["../../../src/system/jobs/set.event.queue.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,uCAAmC;AACnC,kEAA8D;AAC9D,gEAA4D;AAC5D,gFAA4E;AAC5E,4EAAwE;AAExE,yEAAoE;AAG7D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,sBAAS;IAC3C,YACqB,iBAAoC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AK,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC/B,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;YAAE,OAAO,CAAC,KAAK,CAAC;QAElC,MAAM,GAAG,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;QAEhC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAClC,IAAI,GAAG,KAAK,MAAM;gBAAE,OAAO,IAAI,CAAC;YAChC,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IAQO,KAAK,CAAC,qBAAqB;QAC/B,MAAM,CAAC,GAAG,IAAA,kBAAO,EAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QACjC,MAAM,GAAG,GAAG,+EAA+E,oBAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC,GAAG,CAAC;QAC9H,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;CACJ,CAAA;AAlHY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAG+B,uCAAiB;QACpB,4BAAY;QACX,sBAAa;QAChB,wBAAU;GALpC,gBAAgB,CAkH5B"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { SqlService } from '../../platformUtility/services/sql.service';
|
2
|
+
export declare class ExecuteCodeFix {
|
3
|
+
protected readonly sqlService: SqlService;
|
4
|
+
private log;
|
5
|
+
constructor(sqlService: SqlService);
|
6
|
+
process(identifier: string, context: any): Promise<void>;
|
7
|
+
private execute;
|
8
|
+
private getEntity;
|
9
|
+
private getService;
|
10
|
+
private dispatchJob;
|
11
|
+
private init;
|
12
|
+
private close;
|
13
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ExecuteCodeFix = void 0;
|
4
|
+
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
5
|
+
const code_fix_log_entity_1 = require("../entities/code.fix.log.entity");
|
6
|
+
const code_fix_script_entity_1 = require("../entities/code.fix.script.entity");
|
7
|
+
class ExecuteCodeFix {
|
8
|
+
constructor(sqlService) {
|
9
|
+
this.sqlService = sqlService;
|
10
|
+
}
|
11
|
+
async process(identifier, context) {
|
12
|
+
const script = await code_fix_script_entity_1.CodeFixScriptEntity.findOne({ where: { identifier }, relations: ['script'] });
|
13
|
+
if (!script) {
|
14
|
+
console.log(`given script ${identifier} not found`);
|
15
|
+
return;
|
16
|
+
}
|
17
|
+
await this.init(script, context?.data);
|
18
|
+
return this.execute(script, context);
|
19
|
+
}
|
20
|
+
async execute(script, context) {
|
21
|
+
const fn = this;
|
22
|
+
let logContext = {};
|
23
|
+
const data = context?.data;
|
24
|
+
const code = `
|
25
|
+
(async () => {
|
26
|
+
${script.script.script}
|
27
|
+
})()
|
28
|
+
`;
|
29
|
+
await eval(code);
|
30
|
+
return this.close(logContext);
|
31
|
+
}
|
32
|
+
getEntity(sourceType) {
|
33
|
+
return platform_utility_1.PlatformUtility.getEntity(sourceType);
|
34
|
+
}
|
35
|
+
getService(sourceType) {
|
36
|
+
return platform_utility_1.PlatformUtility.getService(sourceType);
|
37
|
+
}
|
38
|
+
async dispatchJob(sourceType, data, delay = 0) {
|
39
|
+
const job = platform_utility_1.PlatformUtility.getJob(sourceType);
|
40
|
+
if (!job) {
|
41
|
+
console.log(`given job ${sourceType} not found`);
|
42
|
+
return;
|
43
|
+
}
|
44
|
+
return job.dispatch(data, { delay });
|
45
|
+
}
|
46
|
+
async init(script, data) {
|
47
|
+
const log = code_fix_log_entity_1.CodeFixLogEntity.create({ script_id: script.id, data });
|
48
|
+
log.start_time = new Date();
|
49
|
+
this.log = await log.save();
|
50
|
+
}
|
51
|
+
async close(context) {
|
52
|
+
for (const [key, value] of Object.entries(context)) {
|
53
|
+
this.log[key] = value;
|
54
|
+
}
|
55
|
+
this.log.end_time = new Date();
|
56
|
+
await this.log.save();
|
57
|
+
}
|
58
|
+
}
|
59
|
+
exports.ExecuteCodeFix = ExecuteCodeFix;
|
60
|
+
//# sourceMappingURL=execute.code.fix.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"execute.code.fix.js","sourceRoot":"","sources":["../../../src/system/libraries/execute.code.fix.ts"],"names":[],"mappings":";;;AAAA,8EAA0E;AAE1E,yEAAmE;AACnE,+EAAyE;AAEzE,MAAa,cAAc;IAGvB,YAA+B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IASzD,KAAK,CAAC,OAAO,CAAC,UAAkB,EAAE,OAAY;QAC1C,MAAM,MAAM,GAAG,MAAM,4CAAmB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAEnG,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,OAAO,CAAC,GAAG,CAAC,gBAAgB,UAAU,YAAY,CAAC,CAAC;YACpD,OAAO;QACX,CAAC;QAED,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC;IASO,KAAK,CAAC,OAAO,CAAC,MAA2B,EAAE,OAAY;QAC3D,MAAM,EAAE,GAAG,IAAI,CAAC;QAChB,IAAI,UAAU,GAAQ,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,OAAO,EAAE,IAAI,CAAC;QAE3B,MAAM,IAAI,GAAG;;kBAEH,MAAM,CAAC,MAAM,CAAC,MAAM;;SAE7B,CAAC;QAEF,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC;QAEjB,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAQO,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from './business.rule.filter.validator';
|
2
2
|
export * from './business.rule.query.evaluator';
|
3
3
|
export * from './column.manager';
|
4
|
+
export * from './execute.code.fix';
|
4
5
|
export * from './model.sync';
|
5
6
|
export * from './process.menu.creation';
|
6
7
|
export * from './security.rule.evaluator';
|
@@ -17,6 +17,7 @@ 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
19
|
__exportStar(require("./column.manager"), exports);
|
20
|
+
__exportStar(require("./execute.code.fix"), exports);
|
20
21
|
__exportStar(require("./model.sync"), exports);
|
21
22
|
__exportStar(require("./process.menu.creation"), exports);
|
22
23
|
__exportStar(require("./security.rule.evaluator"), 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,+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,qDAAmC;AAAA,+CAA6B;AAAA,0DAAwC;AAAA,4DAA0C;AAAA,uDAAoC"}
|
@@ -1,10 +1,13 @@
|
|
1
1
|
import { CleanScheduledEventJob } from '../jobs/clean.scheduled.event.job';
|
2
2
|
import { ClientCredentialJob } from '../jobs/client.credential.job';
|
3
3
|
import { ClientJob } from '../jobs/client.job';
|
4
|
+
import { CodeFixLogJob } from '../jobs/code.fix.log.job';
|
5
|
+
import { CodeFixScriptJob } from '../jobs/code.fix.script.job';
|
4
6
|
import { ColumnMapperJob } from '../jobs/column.mapper.job';
|
5
7
|
import { CommentJob } from '../jobs/comment.job';
|
6
8
|
import { CredentialIpJob } from '../jobs/credential.ip.job';
|
7
9
|
import { DocumentJob } from '../jobs/document.job';
|
10
|
+
import { ExecuteCodeFixJob } from '../jobs/execute.code.fix.job';
|
8
11
|
import { MailEventJob } from '../jobs/mail.event.job';
|
9
12
|
import { MailRecipientJob } from '../jobs/mail.recipient.job';
|
10
13
|
import { MailValidationJob } from '../jobs/mail.validation.job';
|
@@ -26,10 +29,13 @@ export declare class Es6JobsService {
|
|
26
29
|
private readonly cleanScheduledEventJob;
|
27
30
|
private readonly clientCredentialJob;
|
28
31
|
private readonly clientJob;
|
32
|
+
private readonly codeFixLogJob;
|
33
|
+
private readonly codeFixScriptJob;
|
29
34
|
private readonly columnMapperJob;
|
30
35
|
private readonly commentJob;
|
31
36
|
private readonly credentialIpJob;
|
32
37
|
private readonly documentJob;
|
38
|
+
private readonly executeCodeFixJob;
|
33
39
|
private readonly mailEventJob;
|
34
40
|
private readonly mailRecipientJob;
|
35
41
|
private readonly mailValidationJob;
|
@@ -48,7 +54,7 @@ export declare class Es6JobsService {
|
|
48
54
|
private readonly userGroupPermissionJob;
|
49
55
|
private readonly userGroupRoleJob;
|
50
56
|
private jobs;
|
51
|
-
constructor(cleanScheduledEventJob: CleanScheduledEventJob, clientCredentialJob: ClientCredentialJob, clientJob: ClientJob, columnMapperJob: ColumnMapperJob, commentJob: CommentJob, credentialIpJob: CredentialIpJob, documentJob: DocumentJob, mailEventJob: MailEventJob, mailRecipientJob: MailRecipientJob, mailValidationJob: MailValidationJob, mobileValidationJob: MobileValidationJob, modelScannerJob: ModelScannerJob, propertyJob: PropertyJob, refreshPropertyCacheJob: RefreshPropertyCacheJob, relationshipMapperJob: RelationshipMapperJob, reportColumnSyncJob: ReportColumnSyncJob, scheduledEventJob: ScheduledEventJob, setEventQueueJob: SetEventQueueJob, setScheduledEventJob: SetScheduledEventJob, smsMessageJob: SmsMessageJob, sqsPollingJob: SqsPollingJob, userGroupMemberJob: UserGroupMemberJob, userGroupPermissionJob: UserGroupPermissionJob, userGroupRoleJob: UserGroupRoleJob);
|
57
|
+
constructor(cleanScheduledEventJob: CleanScheduledEventJob, clientCredentialJob: ClientCredentialJob, clientJob: ClientJob, codeFixLogJob: CodeFixLogJob, codeFixScriptJob: CodeFixScriptJob, columnMapperJob: ColumnMapperJob, commentJob: CommentJob, credentialIpJob: CredentialIpJob, documentJob: DocumentJob, executeCodeFixJob: ExecuteCodeFixJob, mailEventJob: MailEventJob, mailRecipientJob: MailRecipientJob, mailValidationJob: MailValidationJob, mobileValidationJob: MobileValidationJob, modelScannerJob: ModelScannerJob, propertyJob: PropertyJob, refreshPropertyCacheJob: RefreshPropertyCacheJob, relationshipMapperJob: RelationshipMapperJob, reportColumnSyncJob: ReportColumnSyncJob, scheduledEventJob: ScheduledEventJob, setEventQueueJob: SetEventQueueJob, setScheduledEventJob: SetScheduledEventJob, smsMessageJob: SmsMessageJob, sqsPollingJob: SqsPollingJob, userGroupMemberJob: UserGroupMemberJob, userGroupPermissionJob: UserGroupPermissionJob, userGroupRoleJob: UserGroupRoleJob);
|
52
58
|
alignJobs(): void;
|
53
59
|
setJobs(): void;
|
54
60
|
}
|