@servicelabsco/nestjs-utility-services 1.0.153 → 1.0.156
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 +0 -0
- package/CONTRIBUTING.md +0 -0
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/common/es6.classes.js +2 -1
- package/dist/common/es6.classes.js.map +1 -1
- package/dist/common/exceptions/subscription.exception.d.ts +4 -0
- package/dist/common/exceptions/subscription.exception.js +11 -0
- package/dist/common/exceptions/subscription.exception.js.map +1 -0
- 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/1643899218270-CreateSmsMessageTable.js +2 -0
- package/dist/migrations/1643899218270-CreateSmsMessageTable.js.map +1 -1
- package/dist/migrations/1645738975654-CreateEmailTemplateTable.d.ts +5 -0
- package/dist/migrations/1645738975654-CreateEmailTemplateTable.js +21 -0
- package/dist/migrations/1645738975654-CreateEmailTemplateTable.js.map +1 -0
- package/dist/migrations/1645739142116-CreateWhatsappTemplateTable.d.ts +5 -0
- package/dist/migrations/1645739142116-CreateWhatsappTemplateTable.js +21 -0
- package/dist/migrations/1645739142116-CreateWhatsappTemplateTable.js.map +1 -0
- package/dist/system/entities/email.template.entity.d.ts +8 -0
- package/dist/system/entities/email.template.entity.js +41 -0
- package/dist/system/entities/email.template.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/sms.message.entity.d.ts +1 -0
- package/dist/system/entities/sms.message.entity.js +4 -0
- package/dist/system/entities/sms.message.entity.js.map +1 -1
- package/dist/system/entities/whatsapp.template.entity.d.ts +7 -0
- package/dist/system/entities/whatsapp.template.entity.js +37 -0
- package/dist/system/entities/whatsapp.template.entity.js.map +1 -0
- package/dist/system/es6.classes.d.ts +2 -1
- package/dist/system/es6.classes.js +4 -0
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/services/property.service.d.ts +1 -1
- package/dist/system/services/property.service.js +10 -3
- package/dist/system/services/property.service.js.map +1 -1
- package/package.json +1 -1
- package/dist/system/commands/vaccine.command.d.ts +0 -17
- package/dist/system/commands/vaccine.command.js +0 -113
- package/dist/system/commands/vaccine.command.js.map +0 -1
package/CHANGELOG.md
CHANGED
File without changes
|
package/CONTRIBUTING.md
CHANGED
File without changes
|
package/LICENSE
CHANGED
File without changes
|
package/README.md
CHANGED
File without changes
|
@@ -22,6 +22,7 @@ const access_exception_1 = require("./exceptions/access.exception");
|
|
22
22
|
const maintenance_exception_1 = require("./exceptions/maintenance.exception");
|
23
23
|
const no_logged_user_exception_1 = require("./exceptions/no.logged.user.exception");
|
24
24
|
const operation_exception_1 = require("./exceptions/operation.exception");
|
25
|
+
const subscription_exception_1 = require("./exceptions/subscription.exception");
|
25
26
|
const login_guard_1 = require("./guards/login.guard");
|
26
27
|
const auth_1 = require("./libraries/auth");
|
27
28
|
const base_migration_utility_1 = require("./libraries/base.migration.utility");
|
@@ -67,7 +68,7 @@ const es6Classes = {
|
|
67
68
|
report_body_dto_1.ReportBodyDto,
|
68
69
|
report_data_manager_dto_1.ReportDataManagerDto,
|
69
70
|
],
|
70
|
-
exceptions: [access_exception_1.AccessException, maintenance_exception_1.MaintenanceException, no_logged_user_exception_1.NoLoggedUserException, operation_exception_1.OperationException],
|
71
|
+
exceptions: [access_exception_1.AccessException, maintenance_exception_1.MaintenanceException, no_logged_user_exception_1.NoLoggedUserException, operation_exception_1.OperationException, subscription_exception_1.SubscriptionException],
|
71
72
|
guards: [login_guard_1.LoginGuard],
|
72
73
|
libraries: [
|
73
74
|
auth_1.Auth,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/common/es6.classes.ts"],"names":[],"mappings":";;AAAA,wEAAmE;AACnE,8EAAwE;AACxE,4EAAsE;AACtE,gDAA4C;AAC5C,wEAAmE;AACnE,4EAAsE;AACtE,0EAAoE;AACpE,4DAAuD;AACvD,8DAAyD;AACzD,8DAAyD;AACzD,oEAA8D;AAC9D,sEAAgE;AAChE,wDAAmD;AACnD,4EAAsE;AACtE,0DAAqD;AACrD,gEAA2D;AAC3D,4DAAuD;AACvD,4EAAsE;AACtE,oEAAgE;AAChE,8EAA0E;AAC1E,oFAA8E;AAC9E,0EAAsE;AACtE,sDAAkD;AAClD,2CAAwC;AACxC,+EAA0E;AAC1E,2DAAuD;AACvD,iEAA6D;AAC7D,6DAAyD;AACzD,uDAAmD;AACnD,qEAAgE;AAChE,qEAAiE;AACjE,2DAAuD;AACvD,2DAAuD;AACvD,qDAAiD;AACjD,2EAAsE;AACtE,yEAAoE;AACpE,2CAAwC;AACxC,2DAAuD;AACvD,qEAAiE;AACjE,mEAA+D;AAC/D,+DAA2D;AAC3D,uEAAkE;AAClE,yEAAoE;AACpE,yEAAoE;AACpE,qFAAgF;AAChF,+DAA2D;AAE3D,MAAM,UAAU,GAAG;IACf,IAAI,EAAE;QACF,2CAAmB;QACnB,gDAAqB;QACrB,8CAAoB;QACpB,oBAAQ;QACR,2CAAmB;QACnB,8CAAoB;QACpB,4CAAmB;QACnB,+BAAa;QACb,iCAAc;QACd,iCAAc;QACd,sCAAgB;QAChB,wCAAiB;QACjB,2BAAW;QACX,8CAAoB;QACpB,6BAAY;QACZ,mCAAe;QACf,+BAAa;QACb,8CAAoB;KACvB;IACD,UAAU,EAAE,CAAC,kCAAe,EAAE,4CAAoB,EAAE,gDAAqB,EAAE,wCAAkB,CAAC;
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/common/es6.classes.ts"],"names":[],"mappings":";;AAAA,wEAAmE;AACnE,8EAAwE;AACxE,4EAAsE;AACtE,gDAA4C;AAC5C,wEAAmE;AACnE,4EAAsE;AACtE,0EAAoE;AACpE,4DAAuD;AACvD,8DAAyD;AACzD,8DAAyD;AACzD,oEAA8D;A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,uCAAiB;QACjB,mDAAuB;QACvB,8BAAa;KAChB;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubscriptionException = void 0;
|
4
|
+
const common_1 = require("@nestjs/common");
|
5
|
+
class SubscriptionException extends common_1.HttpException {
|
6
|
+
constructor(message = 'No active Subscription!') {
|
7
|
+
super(message, common_1.HttpStatus.CONFLICT);
|
8
|
+
}
|
9
|
+
}
|
10
|
+
exports.SubscriptionException = SubscriptionException;
|
11
|
+
//# sourceMappingURL=subscription.exception.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"subscription.exception.js","sourceRoot":"","sources":["../../../src/common/exceptions/subscription.exception.ts"],"names":[],"mappings":";;;AAAA,2CAA2D;AAS3D,MAAa,qBAAsB,SAAQ,sBAAa;IAKpD,YAAY,OAAO,GAAG,yBAAyB;QAC3C,KAAK,CAAC,OAAO,EAAE,mBAAU,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;CACJ;AARD,sDAQC"}
|
@@ -16,6 +16,7 @@ import { ColumnDefinitionEntity } from '../system/entities/column.definition.ent
|
|
16
16
|
import { ColumnEntity } from '../system/entities/column.entity';
|
17
17
|
import { CommentEntity } from '../system/entities/comment.entity';
|
18
18
|
import { DocumentEntity } from '../system/entities/document.entity';
|
19
|
+
import { EmailTemplateEntity } from '../system/entities/email.template.entity';
|
19
20
|
import { EventDetailEntity } from '../system/entities/event.detail.entity';
|
20
21
|
import { EventQueueEntity } from '../system/entities/event.queue.entity';
|
21
22
|
import { FormColumnEntity } from '../system/entities/form.column.entity';
|
@@ -59,6 +60,7 @@ import { UserGroupMemberEntity } from '../system/entities/user.group.member.enti
|
|
59
60
|
import { UserGroupPermissionEntity } from '../system/entities/user.group.permission.entity';
|
60
61
|
import { UserGroupRoleEntity } from '../system/entities/user.group.role.entity';
|
61
62
|
import { UserPreferenceEntity } from '../system/entities/user.preference.entity';
|
63
|
+
import { WhatsappTemplateEntity } from '../system/entities/whatsapp.template.entity';
|
62
64
|
declare const entityConstants: {
|
63
65
|
'7e1f48140385af894747c48011b08a86': typeof CountryEntity;
|
64
66
|
'4a3c55afec159ad19c6e4f8fe5f4fae7': typeof CreatorEntity;
|
@@ -78,6 +80,7 @@ declare const entityConstants: {
|
|
78
80
|
'09e3f4fa64b56c119292be9e3faae89a': typeof ColumnEntity;
|
79
81
|
d77868f65dfb326a4cfb0378ff0c3ad8: typeof CommentEntity;
|
80
82
|
e062598479cbb7e16c15395b928ea5a7: typeof DocumentEntity;
|
83
|
+
'4c391f9687715eeaddf71d95bdcf755b': typeof EmailTemplateEntity;
|
81
84
|
'2dae2bd5b36499ec6a777896b68e8e12': typeof EventDetailEntity;
|
82
85
|
abe2f9b99031a918a06fcc1b0ce8baf5: typeof EventQueueEntity;
|
83
86
|
ad293f8758bb8d0555218444f24dc4b6: typeof FormColumnEntity;
|
@@ -121,5 +124,6 @@ declare const entityConstants: {
|
|
121
124
|
'1470b76ddab877cfa1ae2151ce107a5b': typeof UserGroupPermissionEntity;
|
122
125
|
'5b50a6aedf8d924856ee8ff6452b8ef4': typeof UserGroupRoleEntity;
|
123
126
|
ccb9464d313296272e44f3cda36ba5d8: typeof UserPreferenceEntity;
|
127
|
+
'42bd562e84731ea30603c1dc18d867c5': typeof WhatsappTemplateEntity;
|
124
128
|
};
|
125
129
|
export = entityConstants;
|
@@ -17,6 +17,7 @@ const column_definition_entity_1 = require("../system/entities/column.definition
|
|
17
17
|
const column_entity_1 = require("../system/entities/column.entity");
|
18
18
|
const comment_entity_1 = require("../system/entities/comment.entity");
|
19
19
|
const document_entity_1 = require("../system/entities/document.entity");
|
20
|
+
const email_template_entity_1 = require("../system/entities/email.template.entity");
|
20
21
|
const event_detail_entity_1 = require("../system/entities/event.detail.entity");
|
21
22
|
const event_queue_entity_1 = require("../system/entities/event.queue.entity");
|
22
23
|
const form_column_entity_1 = require("../system/entities/form.column.entity");
|
@@ -60,6 +61,7 @@ const user_group_member_entity_1 = require("../system/entities/user.group.member
|
|
60
61
|
const user_group_permission_entity_1 = require("../system/entities/user.group.permission.entity");
|
61
62
|
const user_group_role_entity_1 = require("../system/entities/user.group.role.entity");
|
62
63
|
const user_preference_entity_1 = require("../system/entities/user.preference.entity");
|
64
|
+
const whatsapp_template_entity_1 = require("../system/entities/whatsapp.template.entity");
|
63
65
|
const entityConstants = {
|
64
66
|
'7e1f48140385af894747c48011b08a86': country_entity_1.CountryEntity,
|
65
67
|
'4a3c55afec159ad19c6e4f8fe5f4fae7': creator_entity_1.CreatorEntity,
|
@@ -79,6 +81,7 @@ const entityConstants = {
|
|
79
81
|
'09e3f4fa64b56c119292be9e3faae89a': column_entity_1.ColumnEntity,
|
80
82
|
d77868f65dfb326a4cfb0378ff0c3ad8: comment_entity_1.CommentEntity,
|
81
83
|
e062598479cbb7e16c15395b928ea5a7: document_entity_1.DocumentEntity,
|
84
|
+
'4c391f9687715eeaddf71d95bdcf755b': email_template_entity_1.EmailTemplateEntity,
|
82
85
|
'2dae2bd5b36499ec6a777896b68e8e12': event_detail_entity_1.EventDetailEntity,
|
83
86
|
abe2f9b99031a918a06fcc1b0ce8baf5: event_queue_entity_1.EventQueueEntity,
|
84
87
|
ad293f8758bb8d0555218444f24dc4b6: form_column_entity_1.FormColumnEntity,
|
@@ -122,6 +125,7 @@ const entityConstants = {
|
|
122
125
|
'1470b76ddab877cfa1ae2151ce107a5b': user_group_permission_entity_1.UserGroupPermissionEntity,
|
123
126
|
'5b50a6aedf8d924856ee8ff6452b8ef4': user_group_role_entity_1.UserGroupRoleEntity,
|
124
127
|
ccb9464d313296272e44f3cda36ba5d8: user_preference_entity_1.UserPreferenceEntity,
|
128
|
+
'42bd562e84731ea30603c1dc18d867c5': whatsapp_template_entity_1.WhatsappTemplateEntity,
|
125
129
|
};
|
126
130
|
module.exports = entityConstants;
|
127
131
|
//# sourceMappingURL=entity.constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,oEAAgE;AAChE,oEAAgE;AAChE,8EAAyE;AACzE,gFAA2E;AAC3E,8DAA0D;AAC1D,gFAA2E;AAC3E,8EAA0E;AAC1E,kEAA8D;AAC9D,wFAAmF;AACnF,4EAAuE;AACvE,kFAA6E;AAC7E,4FAAsF;AACtF,kEAA8D;AAC9D,kFAA6E;AAC7E,0FAAqF;AACrF,oEAAgE;AAChE,sEAAkE;AAClE,wEAAoE;AACpE,gFAA2E;AAC3E,8EAAyE;AACzE,8EAAyE;AACzE,gEAA4D;AAC5D,sFAAiF;AACjF,sFAAiF;AACjF,8EAAyE;AACzE,gFAA2E;AAC3E,wEAAmE;AACnE,gEAA4D;AAC5D,0EAAqE;AACrE,gFAA2E;AAC3E,kEAA8D;AAC9D,4FAAuF;AACvF,4EAAuE;AACvE,oEAAgE;AAChE,8EAAyE;AACzE,kFAA6E;AAC7E,sFAAiF;AACjF,8EAAyE;AACzE,gFAA2E;AAC3E,wEAAoE;AACpE,gFAA4E;AAC5E,kFAA6E;AAC7E,oEAAgE;AAChE,gFAA2E;AAC3E,8FAAyF;AACzF,8EAAyE;AACzE,sFAAiF;AACjF,oFAA+E;AAC/E,kFAA6E;AAC7E,sEAAkE;AAClE,8EAAyE;AACzE,gFAA2E;AAC3E,kFAA6E;AAC7E,0EAAqE;AACrE,gGAA0F;AAC1F,oFAA8E;AAC9E,4EAAuE;AACvE,0FAAoF;AACpF,kGAA4F;AAC5F,sFAAgF;AAChF,sFAAiF;
|
1
|
+
{"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,oEAAgE;AAChE,oEAAgE;AAChE,8EAAyE;AACzE,gFAA2E;AAC3E,8DAA0D;AAC1D,gFAA2E;AAC3E,8EAA0E;AAC1E,kEAA8D;AAC9D,wFAA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AAkB;IACtD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,gDAAqB;IACzD,kCAAkC,EAAE,wDAAyB;IAC7D,kCAAkC,EAAE,4CAAmB;IACvD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,iDAAsB;CAC7D,CAAC;AAEF,iBAAS,eAAe,CAAC"}
|
@@ -15,9 +15,11 @@ class CreateSmsMessageTable1643899218270 extends migration_utility_1.MigrationUt
|
|
15
15
|
this.string('content', { length: '1024' });
|
16
16
|
this.foreign({ name: 'template_id', foreignTable: 'sys_sms_templates' });
|
17
17
|
this.foreign({ name: 'gateway_id', foreignTable: 'sys_lookup_values' });
|
18
|
+
this.string('identifier');
|
18
19
|
this.dateTime('delivered_on');
|
19
20
|
this.json('attributes');
|
20
21
|
this.whoColumns();
|
22
|
+
this.index(['identifier']);
|
21
23
|
}
|
22
24
|
}
|
23
25
|
exports.CreateSmsMessageTable1643899218270 = CreateSmsMessageTable1643899218270;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"1643899218270-CreateSmsMessageTable.js","sourceRoot":"","sources":["../../src/migrations/1643899218270-CreateSmsMessageTable.ts"],"names":[],"mappings":";;;AAAA,+EAA2E;AAE3E,MAAa,kCAAmC,SAAQ,oCAAgB;IACpE;QACI,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC1B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QAErC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAE3C,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAA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,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/B,CAAC;CACJ;AA3BD,gFA2BC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateEmailTemplateTable1645738975654 = void 0;
|
4
|
+
const migration_utility_1 = require("./../common/libraries/migration.utility");
|
5
|
+
class CreateEmailTemplateTable1645738975654 extends migration_utility_1.MigrationUtility {
|
6
|
+
constructor() {
|
7
|
+
super('sys_email_templates');
|
8
|
+
this.process();
|
9
|
+
}
|
10
|
+
process() {
|
11
|
+
this.primary();
|
12
|
+
this.string('name');
|
13
|
+
this.string('identifier');
|
14
|
+
this.string('path');
|
15
|
+
this.text('body');
|
16
|
+
this.json('attributes');
|
17
|
+
this.whoColumns();
|
18
|
+
}
|
19
|
+
}
|
20
|
+
exports.CreateEmailTemplateTable1645738975654 = CreateEmailTemplateTable1645738975654;
|
21
|
+
//# sourceMappingURL=1645738975654-CreateEmailTemplateTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1645738975654-CreateEmailTemplateTable.js","sourceRoot":"","sources":["../../src/migrations/1645738975654-CreateEmailTemplateTable.ts"],"names":[],"mappings":";;;AAAA,+EAA2E;AAC3E,MAAa,qCAAsC,SAAQ,oCAAgB;IACvE;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAE1B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAEpB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAElB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAExB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AApBD,sFAoBC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateWhatsappTemplateTable1645739142116 = void 0;
|
4
|
+
const migration_utility_1 = require("./../common/libraries/migration.utility");
|
5
|
+
class CreateWhatsappTemplateTable1645739142116 extends migration_utility_1.MigrationUtility {
|
6
|
+
constructor() {
|
7
|
+
super('sys_whatsapp_templates');
|
8
|
+
this.process();
|
9
|
+
}
|
10
|
+
process() {
|
11
|
+
this.primary();
|
12
|
+
this.string('name');
|
13
|
+
this.string('identifier');
|
14
|
+
this.string('path');
|
15
|
+
this.text('body');
|
16
|
+
this.json('attributes');
|
17
|
+
this.whoColumns();
|
18
|
+
}
|
19
|
+
}
|
20
|
+
exports.CreateWhatsappTemplateTable1645739142116 = CreateWhatsappTemplateTable1645739142116;
|
21
|
+
//# sourceMappingURL=1645739142116-CreateWhatsappTemplateTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1645739142116-CreateWhatsappTemplateTable.js","sourceRoot":"","sources":["../../src/migrations/1645739142116-CreateWhatsappTemplateTable.ts"],"names":[],"mappings":";;;AAAA,+EAA2E;AAE3E,MAAa,wCAAyC,SAAQ,oCAAgB;IAC1E;QACI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAE1B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAEpB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAElB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAExB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AApBD,4FAoBC"}
|
@@ -0,0 +1,41 @@
|
|
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.EmailTemplateEntity = void 0;
|
13
|
+
const common_entity_1 = require("./../../common/libraries/common.entity");
|
14
|
+
const typeorm_1 = require("typeorm");
|
15
|
+
let EmailTemplateEntity = class EmailTemplateEntity extends common_entity_1.CommonEntity {
|
16
|
+
};
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.Column)(),
|
19
|
+
__metadata("design:type", String)
|
20
|
+
], EmailTemplateEntity.prototype, "name", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)(),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], EmailTemplateEntity.prototype, "identifier", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, typeorm_1.Column)(),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], EmailTemplateEntity.prototype, "path", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, typeorm_1.Column)(),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], EmailTemplateEntity.prototype, "body", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, typeorm_1.Column)('json'),
|
35
|
+
__metadata("design:type", Object)
|
36
|
+
], EmailTemplateEntity.prototype, "attributes", void 0);
|
37
|
+
EmailTemplateEntity = __decorate([
|
38
|
+
(0, typeorm_1.Entity)('sys_email_templates')
|
39
|
+
], EmailTemplateEntity);
|
40
|
+
exports.EmailTemplateEntity = EmailTemplateEntity;
|
41
|
+
//# sourceMappingURL=email.template.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"email.template.entity.js","sourceRoot":"","sources":["../../../src/system/entities/email.template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qCAAyC;AASzC,IAAa,mBAAmB,GAAhC,MAAa,mBAAoB,SAAQ,4BAAY;CAiBpD,CAAA;AAfG;IADC,IAAA,gBAAM,GAAE;;iDACI;AAGb;IADC,IAAA,gBAAM,GAAE;;uDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;iDACI;AAGb;IADC,IAAA,gBAAM,GAAE;;iDACI;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;uDACC;AAdP,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,mBAAmB,CAiB/B;AAjBY,kDAAmB"}
|
@@ -49,3 +49,5 @@ export * from './user.group.member.entity';
|
|
49
49
|
export * from './user.group.permission.entity';
|
50
50
|
export * from './user.group.role.entity';
|
51
51
|
export * from './user.preference.entity';
|
52
|
+
export * from './email.template.entity';
|
53
|
+
export * from './whatsapp.template.entity';
|
@@ -61,4 +61,6 @@ __exportStar(require("./user.group.member.entity"), exports);
|
|
61
61
|
__exportStar(require("./user.group.permission.entity"), exports);
|
62
62
|
__exportStar(require("./user.group.role.entity"), exports);
|
63
63
|
__exportStar(require("./user.preference.entity"), exports);
|
64
|
+
__exportStar(require("./email.template.entity"), exports);
|
65
|
+
__exportStar(require("./whatsapp.template.entity"), exports);
|
64
66
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAuC;AACvC,8DAA4C;AAC5C,iDAA+B;AAC/B,yDAAuC;AACvC,6DAA2C;AAC3C,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,wDAAsC;AACtC,uDAAqC;AACrC,uDAAqC;AACrC,gDAA8B;AAC9B,2DAAyC;AACzC,2DAAyC;AACzC,uDAAqC;AACrC,wDAAsC;AACtC,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,wDAAsC;AACtC,iDAA+B;AAC/B,8DAA4C;AAC5C,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,uDAAqC;AACrC,wDAAsC;AACtC,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,kDAAgC;AAChC,wDAAsC;AACtC,+DAA6C;AAC7C,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAC9C,0DAAwC;AACxC,sDAAoC;AACpC,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,2DAAyC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAuC;AACvC,8DAA4C;AAC5C,iDAA+B;AAC/B,yDAAuC;AACvC,6DAA2C;AAC3C,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,wDAAsC;AACtC,uDAAqC;AACrC,uDAAqC;AACrC,gDAA8B;AAC9B,2DAAyC;AACzC,2DAAyC;AACzC,uDAAqC;AACrC,wDAAsC;AACtC,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,wDAAsC;AACtC,iDAA+B;AAC/B,8DAA4C;AAC5C,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,uDAAqC;AACrC,wDAAsC;AACtC,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,kDAAgC;AAChC,wDAAsC;AACtC,+DAA6C;AAC7C,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAC9C,0DAAwC;AACxC,sDAAoC;AACpC,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,2DAAyC;AACzC,0DAAwC;AACxC,6DAA2C"}
|
@@ -48,6 +48,10 @@ __decorate([
|
|
48
48
|
(0, typeorm_1.Column)(),
|
49
49
|
__metadata("design:type", Date)
|
50
50
|
], SmsMessageEntity.prototype, "delivered_on", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, typeorm_1.Column)(),
|
53
|
+
__metadata("design:type", String)
|
54
|
+
], SmsMessageEntity.prototype, "identifier", void 0);
|
51
55
|
__decorate([
|
52
56
|
(0, typeorm_1.Column)('json'),
|
53
57
|
__metadata("design:type", Object)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sms.message.entity.js","sourceRoot":"","sources":["../../../src/system/entities/sms.message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,0EAAsE;AACtE,+DAA0D;AAC1D,+DAA0D;AAS1D,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,4BAAY;
|
1
|
+
{"version":3,"file":"sms.message.entity.js","sourceRoot":"","sources":["../../../src/system/entities/sms.message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,0EAAsE;AACtE,+DAA0D;AAC1D,+DAA0D;AAS1D,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,4BAAY;CAkCjD,CAAA;AAhCG;IADC,IAAA,gBAAM,GAAE;;qDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;mDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;sDACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;gDACM;AAGf;IADC,IAAA,gBAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;qDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;oDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;8BACK,IAAI;sDAAC;AAGnB;IADC,IAAA,gBAAM,GAAE;;oDACU;AAGnB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;oDACC;AAGyD;IAAxE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,uCAAiB;kDAAC;AAC7B;IAAvE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAAU,uCAAiB;iDAAC;AAjC1F,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,kBAAkB,CAAC;GACd,gBAAgB,CAkC5B;AAlCY,4CAAgB"}
|
@@ -0,0 +1,37 @@
|
|
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.WhatsappTemplateEntity = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const common_entity_1 = require("./../../common/libraries/common.entity");
|
15
|
+
let WhatsappTemplateEntity = class WhatsappTemplateEntity extends common_entity_1.CommonEntity {
|
16
|
+
};
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.Column)(),
|
19
|
+
__metadata("design:type", String)
|
20
|
+
], WhatsappTemplateEntity.prototype, "name", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)(),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], WhatsappTemplateEntity.prototype, "identifier", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, typeorm_1.Column)(),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], WhatsappTemplateEntity.prototype, "body", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, typeorm_1.Column)('json'),
|
31
|
+
__metadata("design:type", Object)
|
32
|
+
], WhatsappTemplateEntity.prototype, "attributes", void 0);
|
33
|
+
WhatsappTemplateEntity = __decorate([
|
34
|
+
(0, typeorm_1.Entity)('sys_whatsapp_templates')
|
35
|
+
], WhatsappTemplateEntity);
|
36
|
+
exports.WhatsappTemplateEntity = WhatsappTemplateEntity;
|
37
|
+
//# sourceMappingURL=whatsapp.template.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"whatsapp.template.entity.js","sourceRoot":"","sources":["../../../src/system/entities/whatsapp.template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,0EAAsE;AAStE,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,4BAAY;CAcvD,CAAA;AAZG;IADC,IAAA,gBAAM,GAAE;;oDACI;AAGb;IADC,IAAA,gBAAM,GAAE;;0DACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;oDACI;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;0DACC;AAXP,sBAAsB;IADlC,IAAA,gBAAM,EAAC,wBAAwB,CAAC;GACpB,sBAAsB,CAclC;AAdY,wDAAsB"}
|
@@ -63,6 +63,7 @@ import { UserGroupMemberEntity } from './entities/user.group.member.entity';
|
|
63
63
|
import { UserGroupPermissionEntity } from './entities/user.group.permission.entity';
|
64
64
|
import { UserGroupRoleEntity } from './entities/user.group.role.entity';
|
65
65
|
import { UserPreferenceEntity } from './entities/user.preference.entity';
|
66
|
+
import { WhatsappTemplateEntity } from './entities/whatsapp.template.entity';
|
66
67
|
import { CleanScheduledEventJob } from './jobs/clean.scheduled.event.job';
|
67
68
|
import { ColumnMapperJob } from './jobs/column.mapper.job';
|
68
69
|
import { ModelScannerJob } from './jobs/model.scanner.job';
|
@@ -113,7 +114,7 @@ declare const es6Classes: {
|
|
113
114
|
commands: (typeof EventQueueCommand | typeof JobsScannerCommand | typeof ModelScannerCommand | typeof ReportScannerCommand | typeof ServiceScannerCommand | typeof DbScannerCommand)[];
|
114
115
|
controllers: (typeof BaseController | typeof DataController | typeof FormController | typeof JobController | typeof MenuController | typeof PreferenceController | typeof ReportController | typeof UploadController | typeof UserPreferenceController)[];
|
115
116
|
dtos: (typeof JobRecordParamDto | typeof ModelFormPreferenceCreationDto | typeof LocalFileS3UploadDto | typeof UserPreferenceCreationDto | typeof ModelAllowedColumnDto)[];
|
116
|
-
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 ClientScriptEntity | typeof CommentEntity | typeof DocumentEntity | typeof EventDetailEntity | typeof EventQueueEntity | typeof MailLogEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof ModuleEntity | typeof ModuleMenuEntity | typeof PageDefinitionEntity | typeof ParentMenuEntity | typeof OpenPropertyEntity | typeof ReportEntity | typeof ReportRelationshipEntity | typeof ReportRoleEntity | typeof ReportColumnEntity | typeof ScheduledEventEntity | typeof SecurityRuleEntity | typeof ServiceEntity | typeof SmsTemplateEntity | typeof SmsMessageEntity | typeof UserGroupPermissionEntity | typeof UserPreferenceEntity)[];
|
117
|
+
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 ClientScriptEntity | typeof CommentEntity | typeof DocumentEntity | typeof EventDetailEntity | typeof EventQueueEntity | typeof MailLogEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof ModuleEntity | typeof ModuleMenuEntity | typeof PageDefinitionEntity | typeof ParentMenuEntity | typeof OpenPropertyEntity | typeof ReportEntity | typeof ReportRelationshipEntity | typeof ReportRoleEntity | typeof ReportColumnEntity | typeof ScheduledEventEntity | typeof SecurityRuleEntity | typeof ServiceEntity | typeof SmsTemplateEntity | typeof SmsMessageEntity | typeof UserGroupPermissionEntity | typeof UserPreferenceEntity | typeof WhatsappTemplateEntity)[];
|
117
118
|
jobs: (typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof ScheduledEventJob | typeof CleanScheduledEventJob | typeof ColumnMapperJob | typeof RelationshipMapperJob | typeof ScheduledEventsJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
|
118
119
|
libraries: (typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator)[];
|
119
120
|
modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
|
@@ -29,6 +29,7 @@ const column_definition_entity_1 = require("./entities/column.definition.entity"
|
|
29
29
|
const column_entity_1 = require("./entities/column.entity");
|
30
30
|
const comment_entity_1 = require("./entities/comment.entity");
|
31
31
|
const document_entity_1 = require("./entities/document.entity");
|
32
|
+
const email_template_entity_1 = require("./entities/email.template.entity");
|
32
33
|
const event_detail_entity_1 = require("./entities/event.detail.entity");
|
33
34
|
const event_queue_entity_1 = require("./entities/event.queue.entity");
|
34
35
|
const form_column_entity_1 = require("./entities/form.column.entity");
|
@@ -72,6 +73,7 @@ const user_group_member_entity_1 = require("./entities/user.group.member.entity"
|
|
72
73
|
const user_group_permission_entity_1 = require("./entities/user.group.permission.entity");
|
73
74
|
const user_group_role_entity_1 = require("./entities/user.group.role.entity");
|
74
75
|
const user_preference_entity_1 = require("./entities/user.preference.entity");
|
76
|
+
const whatsapp_template_entity_1 = require("./entities/whatsapp.template.entity");
|
75
77
|
const clean_scheduled_event_job_1 = require("./jobs/clean.scheduled.event.job");
|
76
78
|
const column_mapper_job_1 = require("./jobs/column.mapper.job");
|
77
79
|
const model_scanner_job_1 = require("./jobs/model.scanner.job");
|
@@ -148,6 +150,7 @@ const es6Classes = {
|
|
148
150
|
column_entity_1.ColumnEntity,
|
149
151
|
comment_entity_1.CommentEntity,
|
150
152
|
document_entity_1.DocumentEntity,
|
153
|
+
email_template_entity_1.EmailTemplateEntity,
|
151
154
|
event_detail_entity_1.EventDetailEntity,
|
152
155
|
event_queue_entity_1.EventQueueEntity,
|
153
156
|
form_column_entity_1.FormColumnEntity,
|
@@ -191,6 +194,7 @@ const es6Classes = {
|
|
191
194
|
user_group_permission_entity_1.UserGroupPermissionEntity,
|
192
195
|
user_group_role_entity_1.UserGroupRoleEntity,
|
193
196
|
user_preference_entity_1.UserPreferenceEntity,
|
197
|
+
whatsapp_template_entity_1.WhatsappTemplateEntity,
|
194
198
|
],
|
195
199
|
jobs: [
|
196
200
|
clean_scheduled_event_job_1.CleanScheduledEventJob,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,sEAAiE;AACjE,wEAAmE;AACnE,0EAAqE;AACrE,4EAAuE;AACvE,8EAAyE;AACzE,gFAA2E;AAC3E,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,iEAA6D;AAC7D,mEAA+D;AAC/D,+EAA2E;AAC3E,uEAAmE;AACnE,uEAAmE;AACnE,yFAAoF;AACpF,sEAAgE;AAChE,8EAAuE;AACvE,gGAAyF;AACzF,8EAAwE;AACxE,kGAA2F;AAC3F,sFAAgF;AAChF,0EAAqE;AACrE,oFAA8E;AAC9E,0DAAsD;AACtD,0EAAqE;AACrE,kFAA6E;AAC7E,4DAAwD;AACxD,8DAA0D;AAC1D,gEAA4D;AAC5D,wEAAmE;AACnE,sEAAiE;AACjE,sEAAiE;AACjE,wDAAoD;AACpD,8EAAyE;AACzE,8EAAyE;AACzE,sEAAiE;AACjE,wEAAmE;AACnE,gEAA2D;AAC3D,wDAAoD;AACpD,kEAA6D;AAC7D,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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IAAI,EAAE;QACF,wCAAiB;QACjB,+CAAoB;QACpB,iEAA6B;QAC7B,gDAAqB;QACrB,mEAA8B;QAC9B,wDAAyB;KAC5B;IACD,QAAQ,EAAE;QACN,yCAAkB;QAClB,kDAAsB;QACtB,0BAAW;QACX,yCAAkB;QAClB,iDAAsB;QACtB,4BAAY;QACZ,8BAAa;QACb,gCAAc;QACd,uCAAiB;QACjB,qCAAgB;QAChB,qCAAgB;QAChB,wBAAU;QACV,6CAAoB;QACpB,6CAAoB;QACpB,qCAAgB;QAChB,uCAAiB;QACjB,+BAAa;QACb,wBAAU;QACV,iCAAc;QACd,uCAAiB;QACjB,0BAAW;QACX,mDAAuB;QACvB,mCAAe;QACf,4BAAY;QACZ,qCAAgB;QAChB,yCAAkB;QAClB,6CAAoB;QACpB,qCAAgB;QAChB,uCAAiB;QACjB,gCAAc;QACd,wCAAkB;QAClB,yCAAkB;QAClB,4BAAY;QACZ,uCAAiB;QACjB,qDAAwB;QACxB,qCAAgB;QAChB,6CAAoB;QACpB,2CAAmB;QACnB,yCAAkB;QAClB,8BAAa;QACb,qCAAgB;QAChB,uCAAiB;QACjB,yCAAkB;QAClB,iCAAc;QACd,sDAAwB;QACxB,0CAAkB;QAClB,mCAAe;QACf,gDAAqB;QACrB,wDAAyB;QACzB,4CAAmB;QACnB,6CAAoB;
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,sEAAiE;AACjE,wEAAmE;AACnE,0EAAqE;AACrE,4EAAuE;AACvE,8EAAyE;AACzE,gFAA2E;AAC3E,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,iEAA6D;AAC7D,mEAA+D;AAC/D,+EAA2E;AAC3E,uEAAmE;AACnE,uEAAmE;AACnE,yFAAoF;AACpF,sEAAgE;AAChE,8EAAuE;AACvE,gGAAyF;AACzF,8EAAwE;AACxE,kGAA2F;AAC3F,sFAAgF;AAChF,0EAAq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CAAkB;QAClB,iCAAc;QACd,sDAAwB;QACxB,0CAAkB;QAClB,mCAAe;QACf,gDAAqB;QACrB,wDAAyB;QACzB,4CAAmB;QACnB,6CAAoB;QACpB,iDAAsB;KACzB;IACD,IAAI,EAAE;QACF,kDAAsB;QACtB,mCAAe;QACf,mCAAe;QACf,+CAAqB;QACrB,4CAAmB;QACnB,uCAAiB;QACjB,yCAAkB;QAClB,0CAAkB;QAClB,kDAAsB;QACtB,sCAAgB;KACnB;IACD,SAAS,EAAE,CAAC,4DAA2B,EAAE,0DAA0B,EAAE,8BAAa,EAAE,sBAAS,EAAE,+CAAqB,CAAC;IACrH,SAAS,EAAE,CAAC,qCAAgB,EAAE,yCAAkB,CAAC;IACjD,QAAQ,EAAE;QACN,2CAAmB;QACnB,2CAAmB;QACnB,8BAAa;QACb,gCAAc;QACd,8BAAa;QACb,kCAAe;QACf,iCAAc;QACd,wBAAU;QACV,yCAAkB;QAClB,uCAAiB;QACjB,0BAAW;QACX,0BAAW;QACX,0BAAW;QACX,4BAAY;QACZ,sCAAiB;QACjB,kCAAe;QACf,8BAAa;QACb,+CAAqB;QACrB,2CAAmB;QACnB,mCAAe;QACf,8BAAa;QACb,+CAAqB;KACxB;IACD,WAAW,EAAE;QACT,oCAAgB;QAChB,wCAAkB;QAClB,gDAAsB;QACtB,qDAAwB;QACxB,wDAAyB;QACzB,gEAA6B;QAC7B,oDAAuB;KAC1B;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
@@ -4,5 +4,5 @@ export declare class PropertyService {
|
|
4
4
|
private readonly cacheService;
|
5
5
|
constructor(cacheService: CacheService);
|
6
6
|
get(key: string, defaultValue?: any): Promise<string>;
|
7
|
-
set(property: PropertyEntity | any): Promise<
|
7
|
+
set(property: Partial<PropertyEntity> | any): Promise<PropertyEntity>;
|
8
8
|
}
|
@@ -44,11 +44,18 @@ let PropertyService = class PropertyService {
|
|
44
44
|
});
|
45
45
|
}
|
46
46
|
set(property) {
|
47
|
+
var _a;
|
47
48
|
return __awaiter(this, void 0, void 0, function* () {
|
48
|
-
const
|
49
|
-
|
50
|
-
|
49
|
+
const record = yield property_entity_1.PropertyEntity.firstOrNew({
|
50
|
+
name: property.name,
|
51
|
+
});
|
52
|
+
record.value = property.value;
|
53
|
+
record.is_caching_enabled = (_a = property.is_caching_enabled) !== null && _a !== void 0 ? _a : true;
|
54
|
+
yield record.save();
|
55
|
+
if (record && record.is_caching_enabled) {
|
56
|
+
yield this.cacheService.set(`property.${property.name}`, property.value, date_util_1.DateUtil.getFutureDateTime(15));
|
51
57
|
}
|
58
|
+
return record;
|
52
59
|
});
|
53
60
|
}
|
54
61
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"property.service.js","sourceRoot":"","sources":["../../../src/system/services/property.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gFAA4E;AAC5E,gEAA4D;AAC5D,iEAA6D;AAQ7D,IAAa,eAAe,GAA5B,MAAa,eAAe;IAMxB,YAA6B,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAAG,CAAC;IASrD,GAAG,CAAC,GAAW,EAAE,YAAkB;;YACrC,YAAY,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,IAAI,CAAC;YAEpC,MAAM,KAAK,GAAG,YAAY,GAAG,EAAE,CAAC;YAChC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAEvD,IAAI,KAAK,IAAI,IAAI;gBAAE,OAAO,KAAK,CAAC;YAEhC,MAAM,QAAQ,GAAG,MAAM,gCAAc,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;YACxE,IAAI,CAAC,QAAQ;gBAAE,OAAO,YAAY,CAAC;YAGnC,IAAI,QAAQ,CAAC,kBAAkB,EAAE;gBAC7B,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uC;;;YAC7C,MAAM,MAAM,GAAG,MAAM,gCAAc,CAAC,UAAU,CAAC;gBAC3C,IAAI,EAAE,QAAQ,CAAC,IAAI;aACtB,CAAC,CAAC;YAEH,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;YAC9B,MAAM,CAAC,kBAAkB,GAAG,MAAA,QAAQ,CAAC,kBAAkB,mCAAI,IAAI,CAAC;YAEhE,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;YAEpB,IAAI,MAAM,IAAI,MAAM,CAAC,kBAAkB,EAAE;gBACrC,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,QAAQ,CAAC,IAAI,EAAE,EAAE,QAAQ,CAAC,KAAK,EAAE,oBAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;aAC5G;YAED,OAAO,MAAM,CAAC;;KACjB;CACJ,CAAA;AAxDY,eAAe;IAD3B,IAAA,mBAAU,GAAE;qCAOkC,4BAAY;GAN9C,eAAe,CAwD3B;AAxDY,0CAAe"}
|
package/package.json
CHANGED
@@ -1,17 +0,0 @@
|
|
1
|
-
import { ConsoleService } from 'nestjs-console';
|
2
|
-
import { QueueService } from '../../platformUtility/services/queue.service';
|
3
|
-
import { RemoteRequestService } from '../../platformUtility/services/remote.request.service';
|
4
|
-
import { MailService } from './../../platformUtility/services/mail.service';
|
5
|
-
export declare class VaccineCommand {
|
6
|
-
private readonly queueService;
|
7
|
-
private readonly consoleService;
|
8
|
-
private readonly remoteRequestService;
|
9
|
-
private readonly mailService;
|
10
|
-
constructor(queueService: QueueService, consoleService: ConsoleService, remoteRequestService: RemoteRequestService, mailService: MailService);
|
11
|
-
syncModel: () => Promise<void>;
|
12
|
-
getVaccineStatus(): Promise<boolean>;
|
13
|
-
runForDate(date: string, district: number): Promise<any[]>;
|
14
|
-
getResults(date: string, district_id: number): Promise<any>;
|
15
|
-
createHtml(found: any): string;
|
16
|
-
sleep(ms: any): Promise<unknown>;
|
17
|
-
}
|
@@ -1,113 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
18
|
-
});
|
19
|
-
};
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
21
|
-
exports.VaccineCommand = void 0;
|
22
|
-
const common_1 = require("@nestjs/common");
|
23
|
-
const nestjs_console_1 = require("nestjs-console");
|
24
|
-
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
25
|
-
const remote_request_service_1 = require("../../platformUtility/services/remote.request.service");
|
26
|
-
const mail_service_1 = require("./../../platformUtility/services/mail.service");
|
27
|
-
let VaccineCommand = class VaccineCommand {
|
28
|
-
constructor(queueService, consoleService, remoteRequestService, mailService) {
|
29
|
-
this.queueService = queueService;
|
30
|
-
this.consoleService = consoleService;
|
31
|
-
this.remoteRequestService = remoteRequestService;
|
32
|
-
this.mailService = mailService;
|
33
|
-
this.syncModel = () => __awaiter(this, void 0, void 0, function* () {
|
34
|
-
while (true) {
|
35
|
-
const found = yield this.getVaccineStatus();
|
36
|
-
if (found)
|
37
|
-
return;
|
38
|
-
yield this.sleep(30000);
|
39
|
-
}
|
40
|
-
});
|
41
|
-
const cli = this.consoleService.getCli();
|
42
|
-
this.consoleService.createCommand({
|
43
|
-
command: 'sync:vaccine',
|
44
|
-
description: 'sync all entities and their definitions defined within the system',
|
45
|
-
}, this.syncModel, cli);
|
46
|
-
}
|
47
|
-
getVaccineStatus() {
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
49
|
-
const dates = ['26-05-2021'];
|
50
|
-
const districts = [294, 276, 265];
|
51
|
-
return false;
|
52
|
-
});
|
53
|
-
}
|
54
|
-
runForDate(date, district) {
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
56
|
-
const records = yield this.getResults(date, district);
|
57
|
-
const found = [];
|
58
|
-
records.centers.forEach((record) => {
|
59
|
-
record.sessions.forEach((session) => {
|
60
|
-
if (session.min_age_limit === 18 && session.available_capacity > 0 && session.vaccine === 'COVAXIN') {
|
61
|
-
const object = {
|
62
|
-
name: record.name,
|
63
|
-
pincode: record.pincode,
|
64
|
-
date: session.date,
|
65
|
-
vaccine: session.vaccine,
|
66
|
-
availability: session.available_capacity,
|
67
|
-
};
|
68
|
-
found.push(object);
|
69
|
-
}
|
70
|
-
});
|
71
|
-
});
|
72
|
-
return found;
|
73
|
-
});
|
74
|
-
}
|
75
|
-
getResults(date, district_id) {
|
76
|
-
return __awaiter(this, void 0, void 0, function* () {
|
77
|
-
const options = {
|
78
|
-
method: 'GET',
|
79
|
-
url: `https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict`,
|
80
|
-
headers: {
|
81
|
-
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36',
|
82
|
-
},
|
83
|
-
params: {
|
84
|
-
district_id,
|
85
|
-
date,
|
86
|
-
},
|
87
|
-
};
|
88
|
-
return this.remoteRequestService.sendThroughAxios(options);
|
89
|
-
});
|
90
|
-
}
|
91
|
-
createHtml(found) {
|
92
|
-
let html = `<table border="1" bgcolor="#ACD13C" font-size"12px" width="100%" cellpadding="2" cellspacing="0"><thead> <th> Hospital </th><th> Pincode</th><th> Date</th><th> vaccine</th><th> Availability</th><tbody>`;
|
93
|
-
found.forEach((record) => {
|
94
|
-
html += `<tr><td>${record.name}</td><td>${record.pincode}</td><td>${record.date}</td><td>${record.vaccine}</td><td>${record.availability}</td></tr>`;
|
95
|
-
});
|
96
|
-
html += `</tbody></table>`;
|
97
|
-
return html;
|
98
|
-
}
|
99
|
-
sleep(ms) {
|
100
|
-
return __awaiter(this, void 0, void 0, function* () {
|
101
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
102
|
-
});
|
103
|
-
}
|
104
|
-
};
|
105
|
-
VaccineCommand = __decorate([
|
106
|
-
(0, common_1.Injectable)(),
|
107
|
-
__metadata("design:paramtypes", [queue_service_1.QueueService,
|
108
|
-
nestjs_console_1.ConsoleService,
|
109
|
-
remote_request_service_1.RemoteRequestService,
|
110
|
-
mail_service_1.MailService])
|
111
|
-
], VaccineCommand);
|
112
|
-
exports.VaccineCommand = VaccineCommand;
|
113
|
-
//# sourceMappingURL=vaccine.command.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"vaccine.command.js","sourceRoot":"","sources":["../../../src/system/commands/vaccine.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mDAAgD;AAChD,gFAA4E;AAC5E,kGAA6F;AAC7F,gFAA4E;AAG5E,IAAa,cAAc,GAA3B,MAAa,cAAc;IAM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