@servicelabsco/nestjs-utility-services 1.2.108 → 1.2.110
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/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/config/source.hash.d.ts +2 -0
- package/dist/config/source.hash.js +2 -0
- package/dist/config/source.hash.js.map +1 -1
- package/dist/migrations/1734632235444-CreateRecurringQueryTable.d.ts +5 -0
- package/dist/migrations/1734632235444-CreateRecurringQueryTable.js +22 -0
- package/dist/migrations/1734632235444-CreateRecurringQueryTable.js.map +1 -0
- package/dist/migrations/1734941912633-CreateDataLogTable.d.ts +5 -0
- package/dist/migrations/1734941912633-CreateDataLogTable.js +19 -0
- package/dist/migrations/1734941912633-CreateDataLogTable.js.map +1 -0
- package/dist/system/dtos/data.log.attributes.dto.d.ts +3 -0
- package/dist/system/dtos/data.log.attributes.dto.js +8 -0
- package/dist/system/dtos/data.log.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/dtos/recurring.query.attributes.dto.d.ts +3 -0
- package/dist/system/dtos/recurring.query.attributes.dto.js +8 -0
- package/dist/system/dtos/recurring.query.attributes.dto.js.map +1 -0
- package/dist/system/entities/data.log.entity.d.ts +8 -0
- package/dist/system/entities/data.log.entity.js +38 -0
- package/dist/system/entities/data.log.entity.js.map +1 -0
- 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/recurring.query.entity.d.ts +10 -0
- package/dist/system/entities/recurring.query.entity.js +46 -0
- package/dist/system/entities/recurring.query.entity.js.map +1 -0
- package/dist/system/es6.classes.d.ts +11 -4
- package/dist/system/es6.classes.js +20 -2
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/jobs/data.log.job.d.ts +9 -0
- package/dist/system/jobs/data.log.job.js +30 -0
- package/dist/system/jobs/data.log.job.js.map +1 -0
- package/dist/system/jobs/execute.recurring.query.job.d.ts +10 -0
- package/dist/system/jobs/{clean.scheduled.event.job.js → execute.recurring.query.job.js} +19 -16
- package/dist/system/jobs/execute.recurring.query.job.js.map +1 -0
- package/dist/system/jobs/index.d.ts +4 -1
- package/dist/system/jobs/index.js +4 -1
- package/dist/system/jobs/index.js.map +1 -1
- package/dist/system/jobs/recurring.query.job.d.ts +15 -0
- package/dist/system/jobs/recurring.query.job.js +52 -0
- package/dist/system/jobs/recurring.query.job.js.map +1 -0
- package/dist/system/jobs/scheduled.event.job.d.ts +3 -3
- package/dist/system/jobs/scheduled.event.job.js +14 -12
- package/dist/system/jobs/scheduled.event.job.js.map +1 -1
- package/dist/system/jobs/{clean.scheduled.event.job.d.ts → set.recurring.query.event.job.d.ts} +8 -5
- package/dist/system/jobs/set.recurring.query.event.job.js +81 -0
- package/dist/system/jobs/set.recurring.query.event.job.js.map +1 -0
- package/dist/system/jobs/set.scheduled.event.job.d.ts +3 -0
- package/dist/system/jobs/set.scheduled.event.job.js +42 -2
- package/dist/system/jobs/set.scheduled.event.job.js.map +1 -1
- package/dist/system/libraries/code.evaluator.d.ts +2 -2
- package/dist/system/libraries/code.evaluator.js.map +1 -1
- package/dist/system/services/es6.jobs.service.d.ts +9 -3
- package/dist/system/services/es6.jobs.service.js +18 -6
- package/dist/system/services/es6.jobs.service.js.map +1 -1
- package/dist/system/services/scheduled.event.service.d.ts +4 -6
- package/dist/system/services/scheduled.event.service.js +21 -58
- package/dist/system/services/scheduled.event.service.js.map +1 -1
- package/dist/system/subscribers/data.log.subscriber.d.ts +10 -0
- package/dist/system/subscribers/data.log.subscriber.js +34 -0
- package/dist/system/subscribers/data.log.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/dist/system/subscribers/recurring.query.subscriber.d.ts +12 -0
- package/dist/system/subscribers/recurring.query.subscriber.js +47 -0
- package/dist/system/subscribers/recurring.query.subscriber.js.map +1 -0
- package/dist/system/subscribers/scheduled.event.subscriber.d.ts +2 -1
- package/dist/system/subscribers/scheduled.event.subscriber.js +7 -0
- package/dist/system/subscribers/scheduled.event.subscriber.js.map +1 -1
- package/package.json +1 -1
- package/dist/system/jobs/clean.scheduled.event.job.js.map +0 -1
@@ -26,6 +26,7 @@ const code_fix_log_attributes_dto_1 = require("./dtos/code.fix.log.attributes.dt
|
|
26
26
|
const code_fix_script_attributes_dto_1 = require("./dtos/code.fix.script.attributes.dto");
|
27
27
|
const comment_attributes_dto_1 = require("./dtos/comment.attributes.dto");
|
28
28
|
const credential_ip_attributes_dto_1 = require("./dtos/credential.ip.attributes.dto");
|
29
|
+
const data_log_attributes_dto_1 = require("./dtos/data.log.attributes.dto");
|
29
30
|
const document_attributes_dto_1 = require("./dtos/document.attributes.dto");
|
30
31
|
const file_upload_dto_1 = require("./dtos/file.upload.dto");
|
31
32
|
const file_upload_spec_dto_1 = require("./dtos/file.upload.spec.dto");
|
@@ -39,6 +40,7 @@ const mobile_validation_dto_1 = require("./dtos/mobile.validation.dto");
|
|
39
40
|
const model_allowed_column_dto_1 = require("./dtos/model.allowed.column.dto");
|
40
41
|
const model_form_preference_creation_dto_1 = require("./dtos/model.form.preference.creation.dto");
|
41
42
|
const otp_generation_dto_1 = require("./dtos/otp.generation.dto");
|
43
|
+
const recurring_query_attributes_dto_1 = require("./dtos/recurring.query.attributes.dto");
|
42
44
|
const s3_object_info_dto_1 = require("./dtos/s3.object.info.dto");
|
43
45
|
const s3_upload_options_dto_1 = require("./dtos/s3.upload.options.dto");
|
44
46
|
const sms_message_attributes_dto_1 = require("./dtos/sms.message.attributes.dto");
|
@@ -56,6 +58,7 @@ const column_definition_entity_1 = require("./entities/column.definition.entity"
|
|
56
58
|
const column_entity_1 = require("./entities/column.entity");
|
57
59
|
const comment_entity_1 = require("./entities/comment.entity");
|
58
60
|
const credential_ip_entity_1 = require("./entities/credential.ip.entity");
|
61
|
+
const data_log_entity_1 = require("./entities/data.log.entity");
|
59
62
|
const document_entity_1 = require("./entities/document.entity");
|
60
63
|
const dynamo_table_entity_1 = require("./entities/dynamo.table.entity");
|
61
64
|
const email_template_entity_1 = require("./entities/email.template.entity");
|
@@ -85,6 +88,7 @@ const page_definition_entity_1 = require("./entities/page.definition.entity");
|
|
85
88
|
const parent_menu_entity_1 = require("./entities/parent.menu.entity");
|
86
89
|
const primary_axis_entity_1 = require("./entities/primary.axis.entity");
|
87
90
|
const property_entity_1 = require("./entities/property.entity");
|
91
|
+
const recurring_query_entity_1 = require("./entities/recurring.query.entity");
|
88
92
|
const relationship_entity_1 = require("./entities/relationship.entity");
|
89
93
|
const report_column_entity_1 = require("./entities/report.column.entity");
|
90
94
|
const report_entity_1 = require("./entities/report.entity");
|
@@ -109,7 +113,6 @@ const user_group_role_entity_1 = require("./entities/user.group.role.entity");
|
|
109
113
|
const user_preference_entity_1 = require("./entities/user.preference.entity");
|
110
114
|
const whatsapp_template_entity_1 = require("./entities/whatsapp.template.entity");
|
111
115
|
const sentry_interceptor_1 = require("./interceptors/sentry.interceptor");
|
112
|
-
const clean_scheduled_event_job_1 = require("./jobs/clean.scheduled.event.job");
|
113
116
|
const client_credential_job_1 = require("./jobs/client.credential.job");
|
114
117
|
const client_job_1 = require("./jobs/client.job");
|
115
118
|
const code_fix_log_job_1 = require("./jobs/code.fix.log.job");
|
@@ -117,19 +120,23 @@ const code_fix_script_job_1 = require("./jobs/code.fix.script.job");
|
|
117
120
|
const column_mapper_job_1 = require("./jobs/column.mapper.job");
|
118
121
|
const comment_job_1 = require("./jobs/comment.job");
|
119
122
|
const credential_ip_job_1 = require("./jobs/credential.ip.job");
|
123
|
+
const data_log_job_1 = require("./jobs/data.log.job");
|
120
124
|
const document_job_1 = require("./jobs/document.job");
|
121
125
|
const execute_code_fix_job_1 = require("./jobs/execute.code.fix.job");
|
126
|
+
const execute_recurring_query_job_1 = require("./jobs/execute.recurring.query.job");
|
122
127
|
const mail_event_job_1 = require("./jobs/mail.event.job");
|
123
128
|
const mail_recipient_job_1 = require("./jobs/mail.recipient.job");
|
124
129
|
const mail_validation_job_1 = require("./jobs/mail.validation.job");
|
125
130
|
const mobile_validation_job_1 = require("./jobs/mobile.validation.job");
|
126
131
|
const model_scanner_job_1 = require("./jobs/model.scanner.job");
|
127
132
|
const property_job_1 = require("./jobs/property.job");
|
133
|
+
const recurring_query_job_1 = require("./jobs/recurring.query.job");
|
128
134
|
const refresh_property_cache_job_1 = require("./jobs/refresh.property.cache.job");
|
129
135
|
const relationship_mapper_job_1 = require("./jobs/relationship.mapper.job");
|
130
136
|
const report_column_sync_job_1 = require("./jobs/report.column.sync.job");
|
131
137
|
const scheduled_event_job_1 = require("./jobs/scheduled.event.job");
|
132
138
|
const set_event_queue_job_1 = require("./jobs/set.event.queue.job");
|
139
|
+
const set_recurring_query_event_job_1 = require("./jobs/set.recurring.query.event.job");
|
133
140
|
const set_scheduled_event_job_1 = require("./jobs/set.scheduled.event.job");
|
134
141
|
const sms_message_job_1 = require("./jobs/sms.message.job");
|
135
142
|
const sqs_polling_job_1 = require("./jobs/sqs.polling.job");
|
@@ -182,12 +189,14 @@ const code_fix_script_subscriber_1 = require("./subscribers/code.fix.script.subs
|
|
182
189
|
const column_subscriber_1 = require("./subscribers/column.subscriber");
|
183
190
|
const comment_subscriber_1 = require("./subscribers/comment.subscriber");
|
184
191
|
const credential_ip_subscriber_1 = require("./subscribers/credential.ip.subscriber");
|
192
|
+
const data_log_subscriber_1 = require("./subscribers/data.log.subscriber");
|
185
193
|
const document_subscriber_1 = require("./subscribers/document.subscriber");
|
186
194
|
const mail_event_subscriber_1 = require("./subscribers/mail.event.subscriber");
|
187
195
|
const mail_recipient_subscriber_1 = require("./subscribers/mail.recipient.subscriber");
|
188
196
|
const mail_validation_subscriber_1 = require("./subscribers/mail.validation.subscriber");
|
189
197
|
const mobile_validation_subscriber_1 = require("./subscribers/mobile.validation.subscriber");
|
190
198
|
const property_subscriber_1 = require("./subscribers/property.subscriber");
|
199
|
+
const recurring_query_subscriber_1 = require("./subscribers/recurring.query.subscriber");
|
191
200
|
const relationship_subscriber_1 = require("./subscribers/relationship.subscriber");
|
192
201
|
const scheduled_event_subscriber_1 = require("./subscribers/scheduled.event.subscriber");
|
193
202
|
const sms_message_subscriber_1 = require("./subscribers/sms.message.subscriber");
|
@@ -226,6 +235,7 @@ const es6Classes = {
|
|
226
235
|
code_fix_script_attributes_dto_1.CodeFixScriptAttributesDto,
|
227
236
|
comment_attributes_dto_1.CommentAttributesDto,
|
228
237
|
credential_ip_attributes_dto_1.CredentialIpAttributesDto,
|
238
|
+
data_log_attributes_dto_1.DataLogAttributesDto,
|
229
239
|
document_attributes_dto_1.DocumentAttributesDto,
|
230
240
|
file_upload_dto_1.FileUploadDto,
|
231
241
|
file_upload_spec_dto_1.FileUploadSpecDto,
|
@@ -239,6 +249,7 @@ const es6Classes = {
|
|
239
249
|
model_allowed_column_dto_1.ModelAllowedColumnDto,
|
240
250
|
model_form_preference_creation_dto_1.ModelFormPreferenceCreationDto,
|
241
251
|
otp_generation_dto_1.OtpGenerationDto,
|
252
|
+
recurring_query_attributes_dto_1.RecurringQueryAttributesDto,
|
242
253
|
s3_object_info_dto_1.S3ObjectInfoDto,
|
243
254
|
s3_upload_options_dto_1.S3UploadOptionsDto,
|
244
255
|
sms_message_attributes_dto_1.SmsMessageAttributesDto,
|
@@ -258,6 +269,7 @@ const es6Classes = {
|
|
258
269
|
column_entity_1.ColumnEntity,
|
259
270
|
comment_entity_1.CommentEntity,
|
260
271
|
credential_ip_entity_1.CredentialIpEntity,
|
272
|
+
data_log_entity_1.DataLogEntity,
|
261
273
|
document_entity_1.DocumentEntity,
|
262
274
|
dynamo_table_entity_1.DynamoTableEntity,
|
263
275
|
email_template_entity_1.EmailTemplateEntity,
|
@@ -287,6 +299,7 @@ const es6Classes = {
|
|
287
299
|
parent_menu_entity_1.ParentMenuEntity,
|
288
300
|
primary_axis_entity_1.PrimaryAxisEntity,
|
289
301
|
property_entity_1.PropertyEntity,
|
302
|
+
recurring_query_entity_1.RecurringQueryEntity,
|
290
303
|
relationship_entity_1.RelationshipEntity,
|
291
304
|
report_column_entity_1.ReportColumnEntity,
|
292
305
|
report_entity_1.ReportEntity,
|
@@ -313,7 +326,6 @@ const es6Classes = {
|
|
313
326
|
],
|
314
327
|
interceptors: [sentry_interceptor_1.SentryInterceptor],
|
315
328
|
jobs: [
|
316
|
-
clean_scheduled_event_job_1.CleanScheduledEventJob,
|
317
329
|
client_credential_job_1.ClientCredentialJob,
|
318
330
|
client_job_1.ClientJob,
|
319
331
|
code_fix_log_job_1.CodeFixLogJob,
|
@@ -321,19 +333,23 @@ const es6Classes = {
|
|
321
333
|
column_mapper_job_1.ColumnMapperJob,
|
322
334
|
comment_job_1.CommentJob,
|
323
335
|
credential_ip_job_1.CredentialIpJob,
|
336
|
+
data_log_job_1.DataLogJob,
|
324
337
|
document_job_1.DocumentJob,
|
325
338
|
execute_code_fix_job_1.ExecuteCodeFixJob,
|
339
|
+
execute_recurring_query_job_1.ExecuteRecurringQueryJob,
|
326
340
|
mail_event_job_1.MailEventJob,
|
327
341
|
mail_recipient_job_1.MailRecipientJob,
|
328
342
|
mail_validation_job_1.MailValidationJob,
|
329
343
|
mobile_validation_job_1.MobileValidationJob,
|
330
344
|
model_scanner_job_1.ModelScannerJob,
|
331
345
|
property_job_1.PropertyJob,
|
346
|
+
recurring_query_job_1.RecurringQueryJob,
|
332
347
|
refresh_property_cache_job_1.RefreshPropertyCacheJob,
|
333
348
|
relationship_mapper_job_1.RelationshipMapperJob,
|
334
349
|
report_column_sync_job_1.ReportColumnSyncJob,
|
335
350
|
scheduled_event_job_1.ScheduledEventJob,
|
336
351
|
set_event_queue_job_1.SetEventQueueJob,
|
352
|
+
set_recurring_query_event_job_1.SetRecurringQueryEventJob,
|
337
353
|
set_scheduled_event_job_1.SetScheduledEventJob,
|
338
354
|
sms_message_job_1.SmsMessageJob,
|
339
355
|
sqs_polling_job_1.SqsPollingJob,
|
@@ -391,12 +407,14 @@ const es6Classes = {
|
|
391
407
|
column_subscriber_1.ColumnSubscriber,
|
392
408
|
comment_subscriber_1.CommentSubscriber,
|
393
409
|
credential_ip_subscriber_1.CredentialIpSubscriber,
|
410
|
+
data_log_subscriber_1.DataLogSubscriber,
|
394
411
|
document_subscriber_1.DocumentSubscriber,
|
395
412
|
mail_event_subscriber_1.MailEventSubscriber,
|
396
413
|
mail_recipient_subscriber_1.MailRecipientSubscriber,
|
397
414
|
mail_validation_subscriber_1.MailValidationSubscriber,
|
398
415
|
mobile_validation_subscriber_1.MobileValidationSubscriber,
|
399
416
|
property_subscriber_1.PropertySubscriber,
|
417
|
+
recurring_query_subscriber_1.RecurringQuerySubscriber,
|
400
418
|
relationship_subscriber_1.RelationshipSubscriber,
|
401
419
|
scheduled_event_subscriber_1.ScheduledEventSubscriber,
|
402
420
|
sms_message_subscriber_1.SmsMessageSubscriber,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,sEAAiE;AACjE,8EAAyE;AACzE,wEAAmE;AACnE,0EAAqE;AACrE,4EAAuE;AACvE,8EAAyE;AACzE,gFAA2E;AAC3E,sFAAgF;AAChF,kEAA6D;AAC7D,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,+EAA2E;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;AAClE,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,gEAA4D;AAC5D,wEAAmE;AACnE,4EAAuE;AACvE,wEAAmE;AACnE,sEAAiE;AACjE,sEAAiE;AACjE,wDAAoD;AACpD,8EAAyE;AACzE,8EAAyE;AACzE,sEAAiE;AACjE,wEAAmE;AACnE,oEAA+D;AAC/D,gEAA2D;AAC3D,4EAAuE;AACvE,8EAAyE;AACzE,wDAAoD;AACpD,kEAA6D;AAC7D,kFAA6E;AAC7E,wEAAmE;AACnE,0DAAsD;AACtD,oFAA+E;AAC/E,oEAA+D;AAC/D,4DAAwD;AACxD,sEAAiE;AACjE,0EAAqE;AACrE,8EAAyE;AACzE,sEAAiE;AACjE,wEAAmE;AACnE,gEAA4D;AAC5D,wEAAoE;AACpE,0EAAqE;AACrE,4DAAwD;AACxD,0EAAqE;AACrE,wEAAmE;AACnE,sFAAiF;AACjF,sEAAiE;AACjE,8EAAyE;AACzE,4EAAuE;AACvE,0EAAqE;AACrE,8DAA0D;AAC1D,sEAAiE;AACjE,wEAAmE;AACnE,0EAAqE;AACrE,kEAA6D;AAC7D,wFAAkF;AAClF,4EAAsE;AACtE,oEAA+D;AAC/D,kFAA4E;AAC5E,0FAAoF;AACpF,8EAAwE;AACxE,8EAAyE;AACzE,kFAA6E;AAC7E,0EAAsE;AACtE,
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings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import { DataLogEntity } from '../entities/data.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 DataLogJob extends CommonJob {
|
6
|
+
protected readonly queueService: QueueService;
|
7
|
+
constructor(queueService: QueueService);
|
8
|
+
handle(evt: DatabaseEventDto<DataLogEntity>): Promise<DataLogEntity>;
|
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.DataLogJob = 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 DataLogJob = class DataLogJob extends common_job_1.CommonJob {
|
17
|
+
constructor(queueService) {
|
18
|
+
super('f8f29249c92f1efce56fc05f343d915f');
|
19
|
+
this.queueService = queueService;
|
20
|
+
}
|
21
|
+
async handle(evt) {
|
22
|
+
return evt.entity;
|
23
|
+
}
|
24
|
+
};
|
25
|
+
exports.DataLogJob = DataLogJob;
|
26
|
+
exports.DataLogJob = DataLogJob = __decorate([
|
27
|
+
(0, common_1.Injectable)(),
|
28
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService])
|
29
|
+
], DataLogJob);
|
30
|
+
//# sourceMappingURL=data.log.job.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"data.log.job.js","sourceRoot":"","sources":["../../../src/system/jobs/data.log.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAG5C,kEAA8D;AAC9D,gFAA4E;AAErE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,sBAAS;IACrC,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;IAEzD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAoC;QAC7C,OAAO,GAAG,CAAC,MAAM,CAAC;IACtB,CAAC;CACJ,CAAA;AAPY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;qCAEoC,4BAAY;GADhD,UAAU,CAOtB"}
|
@@ -0,0 +1,10 @@
|
|
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 ExecuteRecurringQueryJob extends CommonJob {
|
5
|
+
protected readonly queueService: QueueService;
|
6
|
+
private readonly sqlService;
|
7
|
+
protected timeout: number;
|
8
|
+
constructor(queueService: QueueService, sqlService: SqlService);
|
9
|
+
handle(id: number): Promise<any>;
|
10
|
+
}
|
@@ -9,29 +9,32 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.ExecuteRecurringQueryJob = void 0;
|
13
13
|
const common_1 = require("@nestjs/common");
|
14
14
|
const common_job_1 = require("../../common/libraries/common.job");
|
15
15
|
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
16
|
-
const
|
17
|
-
const
|
18
|
-
let
|
19
|
-
constructor(queueService,
|
20
|
-
super('
|
16
|
+
const sql_service_1 = require("../../platformUtility/services/sql.service");
|
17
|
+
const recurring_query_entity_1 = require("../entities/recurring.query.entity");
|
18
|
+
let ExecuteRecurringQueryJob = class ExecuteRecurringQueryJob extends common_job_1.CommonJob {
|
19
|
+
constructor(queueService, sqlService) {
|
20
|
+
super('49da21b3b3be45f66e8f88c55be55ebe');
|
21
21
|
this.queueService = queueService;
|
22
|
-
this.
|
23
|
-
this.
|
22
|
+
this.sqlService = sqlService;
|
23
|
+
this.timeout = 300000;
|
24
24
|
}
|
25
25
|
async handle(id) {
|
26
|
-
|
27
|
-
|
26
|
+
if (!id)
|
27
|
+
return;
|
28
|
+
const query = await recurring_query_entity_1.RecurringQueryEntity.first(+id);
|
29
|
+
if (!query?.query)
|
30
|
+
return;
|
31
|
+
return this.sqlService.sql(query.query);
|
28
32
|
}
|
29
33
|
};
|
30
|
-
exports.
|
31
|
-
exports.
|
34
|
+
exports.ExecuteRecurringQueryJob = ExecuteRecurringQueryJob;
|
35
|
+
exports.ExecuteRecurringQueryJob = ExecuteRecurringQueryJob = __decorate([
|
32
36
|
(0, common_1.Injectable)(),
|
33
37
|
__metadata("design:paramtypes", [queue_service_1.QueueService,
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
//# sourceMappingURL=clean.scheduled.event.job.js.map
|
38
|
+
sql_service_1.SqlService])
|
39
|
+
], ExecuteRecurringQueryJob);
|
40
|
+
//# sourceMappingURL=execute.recurring.query.job.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"execute.recurring.query.job.js","sourceRoot":"","sources":["../../../src/system/jobs/execute.recurring.query.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,kEAA8D;AAC9D,gFAA4E;AAC5E,4EAAwE;AACxE,+EAA0E;AAGnE,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,sBAAS;IAGnD,YACuB,YAA0B,EAC5B,UAAsB;QAEvC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAHvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,eAAU,GAAV,UAAU,CAAY;QAJjC,YAAO,GAAW,MAAM,CAAC;IAOnC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,EAAU;QACnB,IAAI,CAAC,EAAE;YAAE,OAAO;QAEhB,MAAM,KAAK,GAAG,MAAM,6CAAoB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;QAEpD,IAAI,CAAC,KAAK,EAAE,KAAK;YAAE,OAAO;QAE1B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;AAlBY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAK4B,4BAAY;QAChB,wBAAU;GALlC,wBAAwB,CAkBpC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
export * from './clean.scheduled.event.job';
|
2
1
|
export * from './client.credential.job';
|
3
2
|
export * from './client.job';
|
4
3
|
export * from './code.fix.log.job';
|
@@ -6,19 +5,23 @@ export * from './code.fix.script.job';
|
|
6
5
|
export * from './column.mapper.job';
|
7
6
|
export * from './comment.job';
|
8
7
|
export * from './credential.ip.job';
|
8
|
+
export * from './data.log.job';
|
9
9
|
export * from './document.job';
|
10
10
|
export * from './execute.code.fix.job';
|
11
|
+
export * from './execute.recurring.query.job';
|
11
12
|
export * from './mail.event.job';
|
12
13
|
export * from './mail.recipient.job';
|
13
14
|
export * from './mail.validation.job';
|
14
15
|
export * from './mobile.validation.job';
|
15
16
|
export * from './model.scanner.job';
|
16
17
|
export * from './property.job';
|
18
|
+
export * from './recurring.query.job';
|
17
19
|
export * from './refresh.property.cache.job';
|
18
20
|
export * from './relationship.mapper.job';
|
19
21
|
export * from './report.column.sync.job';
|
20
22
|
export * from './scheduled.event.job';
|
21
23
|
export * from './set.event.queue.job';
|
24
|
+
export * from './set.recurring.query.event.job';
|
22
25
|
export * from './set.scheduled.event.job';
|
23
26
|
export * from './sms.message.job';
|
24
27
|
export * from './sqs.polling.job';
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./clean.scheduled.event.job"), exports);
|
18
17
|
__exportStar(require("./client.credential.job"), exports);
|
19
18
|
__exportStar(require("./client.job"), exports);
|
20
19
|
__exportStar(require("./code.fix.log.job"), exports);
|
@@ -22,19 +21,23 @@ __exportStar(require("./code.fix.script.job"), exports);
|
|
22
21
|
__exportStar(require("./column.mapper.job"), exports);
|
23
22
|
__exportStar(require("./comment.job"), exports);
|
24
23
|
__exportStar(require("./credential.ip.job"), exports);
|
24
|
+
__exportStar(require("./data.log.job"), exports);
|
25
25
|
__exportStar(require("./document.job"), exports);
|
26
26
|
__exportStar(require("./execute.code.fix.job"), exports);
|
27
|
+
__exportStar(require("./execute.recurring.query.job"), exports);
|
27
28
|
__exportStar(require("./mail.event.job"), exports);
|
28
29
|
__exportStar(require("./mail.recipient.job"), exports);
|
29
30
|
__exportStar(require("./mail.validation.job"), exports);
|
30
31
|
__exportStar(require("./mobile.validation.job"), exports);
|
31
32
|
__exportStar(require("./model.scanner.job"), exports);
|
32
33
|
__exportStar(require("./property.job"), exports);
|
34
|
+
__exportStar(require("./recurring.query.job"), exports);
|
33
35
|
__exportStar(require("./refresh.property.cache.job"), exports);
|
34
36
|
__exportStar(require("./relationship.mapper.job"), exports);
|
35
37
|
__exportStar(require("./report.column.sync.job"), exports);
|
36
38
|
__exportStar(require("./scheduled.event.job"), exports);
|
37
39
|
__exportStar(require("./set.event.queue.job"), exports);
|
40
|
+
__exportStar(require("./set.recurring.query.event.job"), exports);
|
38
41
|
__exportStar(require("./set.scheduled.event.job"), exports);
|
39
42
|
__exportStar(require("./sms.message.job"), exports);
|
40
43
|
__exportStar(require("./sqs.polling.job"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AAAA,+CAA6B;AAAA,qDAAmC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,gDAA8B;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,iDAA+B;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,iDAA+B;AAAA,wDAAsC;AAAA,+DAA6C;AAAA,4DAA0C;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,kEAAgD;AAAA,4DAA0C;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,sDAAoC;AAAA,0DAAwC;AAAA,8DAA4C;AAAA,wDAAqC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { DatabaseEventDto } from '../../common/dtos/database.event.dto';
|
2
|
+
import { CommonJob } from '../../common/libraries/common.job';
|
3
|
+
import { QueueService } from '../../platformUtility/services/queue.service';
|
4
|
+
import { RecurringQueryEntity } from '../entities/recurring.query.entity';
|
5
|
+
import { ScheduledEventService } from '../services/scheduled.event.service';
|
6
|
+
import { SetRecurringQueryEventJob } from './set.recurring.query.event.job';
|
7
|
+
export declare class RecurringQueryJob extends CommonJob {
|
8
|
+
protected readonly queueService: QueueService;
|
9
|
+
private readonly scheduledEventService;
|
10
|
+
protected readonly setRecurringQueryEventJob: SetRecurringQueryEventJob;
|
11
|
+
constructor(queueService: QueueService, scheduledEventService: ScheduledEventService, setRecurringQueryEventJob: SetRecurringQueryEventJob);
|
12
|
+
handle(event: DatabaseEventDto<RecurringQueryEntity>): Promise<void>;
|
13
|
+
private setSchedule;
|
14
|
+
private cleanRecord;
|
15
|
+
}
|
@@ -0,0 +1,52 @@
|
|
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.RecurringQueryJob = void 0;
|
13
|
+
const common_1 = require("@nestjs/common");
|
14
|
+
const date_fns_1 = require("date-fns");
|
15
|
+
const common_job_1 = require("../../common/libraries/common.job");
|
16
|
+
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
17
|
+
const recurring_query_entity_1 = require("../entities/recurring.query.entity");
|
18
|
+
const scheduled_event_service_1 = require("../services/scheduled.event.service");
|
19
|
+
const set_recurring_query_event_job_1 = require("./set.recurring.query.event.job");
|
20
|
+
const SourceHash = require("../../config/source.hash");
|
21
|
+
let RecurringQueryJob = class RecurringQueryJob extends common_job_1.CommonJob {
|
22
|
+
constructor(queueService, scheduledEventService, setRecurringQueryEventJob) {
|
23
|
+
super('0a4afb675c0a9e20782a12f7f6e870c2');
|
24
|
+
this.queueService = queueService;
|
25
|
+
this.scheduledEventService = scheduledEventService;
|
26
|
+
this.setRecurringQueryEventJob = setRecurringQueryEventJob;
|
27
|
+
}
|
28
|
+
async handle(event) {
|
29
|
+
await this.setSchedule(event);
|
30
|
+
}
|
31
|
+
async setSchedule(event) {
|
32
|
+
const trackingColumns = ['timing', 'active'];
|
33
|
+
if (!this.isColumnUpdated(event, trackingColumns))
|
34
|
+
return;
|
35
|
+
await this.cleanRecord(event);
|
36
|
+
return this.setRecurringQueryEventJob.dispatch(event.entity.id);
|
37
|
+
}
|
38
|
+
async cleanRecord(event) {
|
39
|
+
await this.scheduledEventService.deleteActiveEvents({ source_type: SourceHash.scheduledEvent, source_id: event.entity.id });
|
40
|
+
const r = await recurring_query_entity_1.RecurringQueryEntity.first(event.entity.id);
|
41
|
+
r.last_scheduled_time = (0, date_fns_1.subMinutes)(new Date(), 1);
|
42
|
+
return r.save();
|
43
|
+
}
|
44
|
+
};
|
45
|
+
exports.RecurringQueryJob = RecurringQueryJob;
|
46
|
+
exports.RecurringQueryJob = RecurringQueryJob = __decorate([
|
47
|
+
(0, common_1.Injectable)(),
|
48
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService,
|
49
|
+
scheduled_event_service_1.ScheduledEventService,
|
50
|
+
set_recurring_query_event_job_1.SetRecurringQueryEventJob])
|
51
|
+
], RecurringQueryJob);
|
52
|
+
//# sourceMappingURL=recurring.query.job.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"recurring.query.job.js","sourceRoot":"","sources":["../../../src/system/jobs/recurring.query.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uCAAsC;AAEtC,kEAA8D;AAC9D,gFAA4E;AAC5E,+EAA0E;AAC1E,iFAA4E;AAC5E,mFAA4E;AAC5E,uDAAwD;AAEjD,IAAM,iBAAiB,GAAvB,MAAM,iBAA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AJlE,iBAAiB,CA4B7B"}
|
@@ -2,13 +2,13 @@ import { DatabaseEventDto } from '../../common/dtos/database.event.dto';
|
|
2
2
|
import { CommonJob } from '../../common/libraries/common.job';
|
3
3
|
import { QueueService } from '../../platformUtility/services/queue.service';
|
4
4
|
import { ScheduledEventEntity } from '../entities/scheduled.event.entity';
|
5
|
-
import {
|
5
|
+
import { ScheduledEventService } from '../services/scheduled.event.service';
|
6
6
|
import { SetScheduledEventJob } from './set.scheduled.event.job';
|
7
7
|
export declare class ScheduledEventJob extends CommonJob {
|
8
8
|
protected readonly queueService: QueueService;
|
9
|
-
private readonly
|
9
|
+
private readonly scheduledEventService;
|
10
10
|
private readonly setScheduledEventJob;
|
11
|
-
constructor(queueService: QueueService,
|
11
|
+
constructor(queueService: QueueService, scheduledEventService: ScheduledEventService, setScheduledEventJob: SetScheduledEventJob);
|
12
12
|
handle(event: DatabaseEventDto<ScheduledEventEntity>): Promise<void>;
|
13
13
|
private setSchedule;
|
14
14
|
private cleanRecord;
|
@@ -13,38 +13,40 @@ exports.ScheduledEventJob = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
14
14
|
const common_job_1 = require("../../common/libraries/common.job");
|
15
15
|
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
16
|
-
const
|
16
|
+
const scheduled_event_entity_1 = require("../entities/scheduled.event.entity");
|
17
|
+
const scheduled_event_service_1 = require("../services/scheduled.event.service");
|
17
18
|
const set_scheduled_event_job_1 = require("./set.scheduled.event.job");
|
19
|
+
const SourceHash = require("../../config/source.hash");
|
20
|
+
const date_fns_1 = require("date-fns");
|
18
21
|
let ScheduledEventJob = class ScheduledEventJob extends common_job_1.CommonJob {
|
19
|
-
constructor(queueService,
|
22
|
+
constructor(queueService, scheduledEventService, setScheduledEventJob) {
|
20
23
|
super('bb97644f2c505dc135d01f4c6959ec1f');
|
21
24
|
this.queueService = queueService;
|
22
|
-
this.
|
25
|
+
this.scheduledEventService = scheduledEventService;
|
23
26
|
this.setScheduledEventJob = setScheduledEventJob;
|
24
27
|
}
|
25
28
|
async handle(event) {
|
26
|
-
await this.cleanRecord(event);
|
27
29
|
await this.setSchedule(event);
|
28
30
|
}
|
29
31
|
async setSchedule(event) {
|
30
|
-
|
32
|
+
const trackingColumns = ['event_id', 'parameter', 'timing', 'active', 'start_time', 'end_time'];
|
33
|
+
if (!this.isColumnUpdated(event, trackingColumns))
|
31
34
|
return;
|
35
|
+
await this.cleanRecord(event);
|
32
36
|
return this.setScheduledEventJob.dispatch(event.entity.id);
|
33
37
|
}
|
34
38
|
async cleanRecord(event) {
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
return;
|
40
|
-
return this.cleanScheduledEventJob.dispatch(event.entity.id);
|
39
|
+
await this.scheduledEventService.deleteActiveEvents({ source_type: SourceHash.scheduledEvent, source_id: event.entity.id });
|
40
|
+
const r = await scheduled_event_entity_1.ScheduledEventEntity.first(event.entity.id);
|
41
|
+
r.last_scheduled_time = (0, date_fns_1.subMinutes)(new Date(), 1);
|
42
|
+
return r.save();
|
41
43
|
}
|
42
44
|
};
|
43
45
|
exports.ScheduledEventJob = ScheduledEventJob;
|
44
46
|
exports.ScheduledEventJob = ScheduledEventJob = __decorate([
|
45
47
|
(0, common_1.Injectable)(),
|
46
48
|
__metadata("design:paramtypes", [queue_service_1.QueueService,
|
47
|
-
|
49
|
+
scheduled_event_service_1.ScheduledEventService,
|
48
50
|
set_scheduled_event_job_1.SetScheduledEventJob])
|
49
51
|
], ScheduledEventJob);
|
50
52
|
//# sourceMappingURL=scheduled.event.job.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scheduled.event.job.js","sourceRoot":"","sources":["../../../src/system/jobs/scheduled.event.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,kEAA8D;AAC9D,gFAA4E;
|
1
|
+
{"version":3,"file":"scheduled.event.job.js","sourceRoot":"","sources":["../../../src/system/jobs/scheduled.event.job.ts"],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AAG,IAAA,qBAAU,EAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QAElD,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;CACJ,CAAA;AA5BY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAG4B,4BAAY;QACL,+CAAqB;QACtB,8CAAoB;GAJtD,iBAAiB,CA4B7B"}
|
package/dist/system/jobs/{clean.scheduled.event.job.d.ts → set.recurring.query.event.job.d.ts}
RENAMED
@@ -1,11 +1,14 @@
|
|
1
1
|
import { CommonJob } from '../../common/libraries/common.job';
|
2
2
|
import { QueueService } from '../../platformUtility/services/queue.service';
|
3
3
|
import { ScheduledEventService } from '../services/scheduled.event.service';
|
4
|
-
|
5
|
-
export declare class CleanScheduledEventJob extends CommonJob {
|
4
|
+
export declare class SetRecurringQueryEventJob extends CommonJob {
|
6
5
|
protected readonly queueService: QueueService;
|
7
6
|
private readonly scheduledEventService;
|
8
|
-
|
9
|
-
constructor(queueService: QueueService, scheduledEventService: ScheduledEventService
|
10
|
-
handle(
|
7
|
+
protected timeout: number;
|
8
|
+
constructor(queueService: QueueService, scheduledEventService: ScheduledEventService);
|
9
|
+
handle(): Promise<void>;
|
10
|
+
private handleAllActiveJobs;
|
11
|
+
private handleJob;
|
12
|
+
private getEligibleScheduledEvents;
|
13
|
+
private setNewEvent;
|
11
14
|
}
|
@@ -0,0 +1,81 @@
|
|
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.SetRecurringQueryEventJob = void 0;
|
13
|
+
const common_1 = require("@nestjs/common");
|
14
|
+
const date_fns_1 = require("date-fns");
|
15
|
+
const typeorm_1 = require("typeorm");
|
16
|
+
const common_job_1 = require("../../common/libraries/common.job");
|
17
|
+
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
18
|
+
const event_detail_entity_1 = require("../entities/event.detail.entity");
|
19
|
+
const event_queue_entity_1 = require("../entities/event.queue.entity");
|
20
|
+
const recurring_query_entity_1 = require("../entities/recurring.query.entity");
|
21
|
+
const scheduled_event_service_1 = require("../services/scheduled.event.service");
|
22
|
+
const SourceHash = require("../../config/source.hash");
|
23
|
+
let SetRecurringQueryEventJob = class SetRecurringQueryEventJob extends common_job_1.CommonJob {
|
24
|
+
constructor(queueService, scheduledEventService) {
|
25
|
+
super('6f2c6980763ef0de2b4b7ee850319f6b');
|
26
|
+
this.queueService = queueService;
|
27
|
+
this.scheduledEventService = scheduledEventService;
|
28
|
+
this.timeout = 300000;
|
29
|
+
}
|
30
|
+
async handle() {
|
31
|
+
return this.handleAllActiveJobs();
|
32
|
+
}
|
33
|
+
async handleAllActiveJobs() {
|
34
|
+
const scheduledJobs = await this.getEligibleScheduledEvents();
|
35
|
+
const event = await event_detail_entity_1.EventDetailEntity.findOne({ where: { identifier: SourceHash.recurringQueryEvent } });
|
36
|
+
const startDate = (0, date_fns_1.subMinutes)(new Date(), 1);
|
37
|
+
const endDate = (0, date_fns_1.addYears)(new Date(), 1);
|
38
|
+
for (const scheduledJob of scheduledJobs) {
|
39
|
+
await this.handleJob(scheduledJob, startDate, endDate, event);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
async handleJob(job, startDate, endDate, event) {
|
43
|
+
const source = { source_type: SourceHash.recurringQuery, source_id: job.id };
|
44
|
+
const dates = await this.scheduledEventService.getSchedules(source, job.timing, startDate, endDate);
|
45
|
+
if (!dates?.length)
|
46
|
+
return job;
|
47
|
+
for (const date of dates) {
|
48
|
+
await this.setNewEvent(job, date, event);
|
49
|
+
}
|
50
|
+
job.last_scheduled_time = dates.pop();
|
51
|
+
return job.save();
|
52
|
+
}
|
53
|
+
async getEligibleScheduledEvents() {
|
54
|
+
const d = (0, date_fns_1.addMinutes)(new Date(), 15);
|
55
|
+
return recurring_query_entity_1.RecurringQueryEntity.find({
|
56
|
+
where: {
|
57
|
+
active: true,
|
58
|
+
last_scheduled_time: (0, typeorm_1.LessThanOrEqual)(d),
|
59
|
+
timing: (0, typeorm_1.Not)((0, typeorm_1.IsNull)()),
|
60
|
+
},
|
61
|
+
});
|
62
|
+
}
|
63
|
+
async setNewEvent(job, date, event) {
|
64
|
+
const record = new event_queue_entity_1.EventQueueEntity();
|
65
|
+
record.name = event.name;
|
66
|
+
record.event_id = event.id;
|
67
|
+
record.parameter = job.id.toString();
|
68
|
+
record.scheduled_start_time = date;
|
69
|
+
record.source_type = SourceHash.recurringQuery;
|
70
|
+
record.source_id = job.id;
|
71
|
+
await record.save();
|
72
|
+
return record;
|
73
|
+
}
|
74
|
+
};
|
75
|
+
exports.SetRecurringQueryEventJob = SetRecurringQueryEventJob;
|
76
|
+
exports.SetRecurringQueryEventJob = SetRecurringQueryEventJob = __decorate([
|
77
|
+
(0, common_1.Injectable)(),
|
78
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService,
|
79
|
+
scheduled_event_service_1.ScheduledEventService])
|
80
|
+
], SetRecurringQueryEventJob);
|
81
|
+
//# sourceMappingURL=set.recurring.query.event.job.js.map
|