@optimiser/common 1.0.365 → 1.0.367

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.
Files changed (69) hide show
  1. package/dist/aws/awsservices.d.ts +39 -39
  2. package/dist/aws/awsservices.js +398 -398
  3. package/dist/constants.d.ts +35 -35
  4. package/dist/constants.js +36 -36
  5. package/dist/enums/databasetype.enum.d.ts +7 -7
  6. package/dist/enums/databasetype.enum.js +11 -11
  7. package/dist/enums/log.enum.d.ts +22 -22
  8. package/dist/enums/log.enum.js +26 -26
  9. package/dist/index.d.ts +25 -25
  10. package/dist/index.js +69 -61
  11. package/dist/lib/activity.d.ts +1 -1
  12. package/dist/lib/activity.js +44 -44
  13. package/dist/lib/calculatedbsize.d.ts +15 -15
  14. package/dist/lib/calculatedbsize.js +75 -75
  15. package/dist/lib/connection.d.ts +116 -116
  16. package/dist/lib/connection.js +595 -595
  17. package/dist/lib/convertfilesize.d.ts +2 -2
  18. package/dist/lib/convertfilesize.js +15 -15
  19. package/dist/lib/countrycode.d.ts +2 -2
  20. package/dist/lib/countrycode.js +255 -255
  21. package/dist/lib/event.d.ts +26 -26
  22. package/dist/lib/event.js +252 -248
  23. package/dist/lib/helper.d.ts +94 -93
  24. package/dist/lib/helper.js +1016 -1009
  25. package/dist/lib/memoryserverclient.d.ts +40 -40
  26. package/dist/lib/memoryserverclient.js +256 -252
  27. package/dist/lib/operautilitycommon.d.ts +65 -65
  28. package/dist/lib/operautilitycommon.js +620 -620
  29. package/dist/lib/redis.d.ts +21 -21
  30. package/dist/lib/redis.js +46 -46
  31. package/dist/lib/socketidfromredis.d.ts +3 -3
  32. package/dist/lib/socketidfromredis.js +5 -5
  33. package/dist/lib/taskutils.d.ts +40 -40
  34. package/dist/lib/taskutils.js +656 -656
  35. package/dist/lib/utility.d.ts +300 -298
  36. package/dist/lib/utility.js +5626 -5621
  37. package/dist/lib/validateRequest.d.ts +3 -3
  38. package/dist/lib/validateRequest.js +13 -13
  39. package/dist/logs/auditlog.d.ts +25 -25
  40. package/dist/logs/auditlog.js +1033 -1029
  41. package/dist/logs/checklogtable.d.ts +3 -3
  42. package/dist/logs/checklogtable.js +67 -67
  43. package/dist/logs/log.table.d.ts +7 -7
  44. package/dist/logs/log.table.js +127 -127
  45. package/dist/modals/connection.modal.d.ts +32 -32
  46. package/dist/modals/connection.modal.js +2 -2
  47. package/dist/modals/globalNotification.modal.d.ts +8 -8
  48. package/dist/modals/globalNotification.modal.js +2 -2
  49. package/dist/modals/log.modal.d.ts +64 -64
  50. package/dist/modals/log.modal.js +2 -2
  51. package/dist/modals/mail.modal.d.ts +6 -6
  52. package/dist/modals/mail.modal.js +2 -2
  53. package/dist/modals/notificationData.modal.d.ts +29 -29
  54. package/dist/modals/notificationData.modal.js +2 -2
  55. package/dist/modals/redisconfig.modal.d.ts +6 -6
  56. package/dist/modals/redisconfig.modal.js +2 -2
  57. package/dist/modals/sqsconfig.modal.d.ts +8 -8
  58. package/dist/modals/sqsconfig.modal.js +2 -2
  59. package/dist/modals/utility.modal.d.ts +17 -17
  60. package/dist/modals/utility.modal.js +2 -2
  61. package/dist/utility/crypto.d.ts +4 -4
  62. package/dist/utility/crypto.js +43 -43
  63. package/dist/utility/errorHandler.d.ts +30 -30
  64. package/dist/utility/errorHandler.js +24 -24
  65. package/dist/utility/errorHandlerForServices.d.ts +22 -22
  66. package/dist/utility/errorHandlerForServices.js +19 -19
  67. package/dist/utility/mail.d.ts +21 -21
  68. package/dist/utility/mail.js +91 -87
  69. package/package.json +3 -3
@@ -1,35 +1,35 @@
1
- declare const _default: {
2
- LookupAlias: string;
3
- LookupTypeFields: string[];
4
- SearchValueAlias: string;
5
- USER_STATUS: {
6
- ACTIVE: string;
7
- SUSPEND: string;
8
- REPLACE: string;
9
- };
10
- ProjectName: string;
11
- SystemEmail: string;
12
- ProjectDomain: string;
13
- STORE_APP_NAMES: {
14
- OPERA_PMS: string;
15
- };
16
- CompanyAppStatus: {
17
- ENABLE: string;
18
- DISABLE: string;
19
- ADMIN_DISABLED: string;
20
- };
21
- OperaPropertyStatus: {
22
- Active: string;
23
- Suspended: string;
24
- };
25
- OperaSyncStatus: {
26
- NOT_STARTED: string;
27
- READY: string;
28
- IN_PROCESS: string;
29
- SUCCESS: string;
30
- FAIL: string;
31
- };
32
- QrPendingAlias: string;
33
- QrPendingFields: string;
34
- };
35
- export default _default;
1
+ declare const _default: {
2
+ LookupAlias: string;
3
+ LookupTypeFields: string[];
4
+ SearchValueAlias: string;
5
+ USER_STATUS: {
6
+ ACTIVE: string;
7
+ SUSPEND: string;
8
+ REPLACE: string;
9
+ };
10
+ ProjectName: string;
11
+ SystemEmail: string;
12
+ ProjectDomain: string;
13
+ STORE_APP_NAMES: {
14
+ OPERA_PMS: string;
15
+ };
16
+ CompanyAppStatus: {
17
+ ENABLE: string;
18
+ DISABLE: string;
19
+ ADMIN_DISABLED: string;
20
+ };
21
+ OperaPropertyStatus: {
22
+ Active: string;
23
+ Suspended: string;
24
+ };
25
+ OperaSyncStatus: {
26
+ NOT_STARTED: string;
27
+ READY: string;
28
+ IN_PROCESS: string;
29
+ SUCCESS: string;
30
+ FAIL: string;
31
+ };
32
+ QrPendingAlias: string;
33
+ QrPendingFields: string;
34
+ };
35
+ export default _default;
package/dist/constants.js CHANGED
@@ -1,36 +1,36 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- LookupAlias: '_LookupData',
5
- LookupTypeFields: ["lookup", "multilookup", "dropdown", "multiselect", "file", "image"],
6
- SearchValueAlias: '_SearchValue',
7
- USER_STATUS: {
8
- ACTIVE: 'Active',
9
- SUSPEND: 'Suspend',
10
- REPLACE: "Replace"
11
- },
12
- ProjectName: "Optimiser",
13
- SystemEmail: "noreply@optimiser.com",
14
- ProjectDomain: process.env.PROJECT_DOMAIN || "platform.optimiser.com",
15
- STORE_APP_NAMES: {
16
- OPERA_PMS: "OperaPMS"
17
- },
18
- CompanyAppStatus: {
19
- ENABLE: "Enable",
20
- DISABLE: "Disable",
21
- ADMIN_DISABLED: "ForceDisable"
22
- },
23
- OperaPropertyStatus: {
24
- Active: "0",
25
- Suspended: "1"
26
- },
27
- OperaSyncStatus: {
28
- NOT_STARTED: "0",
29
- READY: "1",
30
- IN_PROCESS: "2",
31
- SUCCESS: "3",
32
- FAIL: "4"
33
- },
34
- QrPendingAlias: "_QRPENDING",
35
- QrPendingFields: "qrcode"
36
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ LookupAlias: '_LookupData',
5
+ LookupTypeFields: ["lookup", "multilookup", "dropdown", "multiselect", "file", "image"],
6
+ SearchValueAlias: '_SearchValue',
7
+ USER_STATUS: {
8
+ ACTIVE: 'Active',
9
+ SUSPEND: 'Suspend',
10
+ REPLACE: "Replace"
11
+ },
12
+ ProjectName: "Optimiser",
13
+ SystemEmail: "noreply@optimiser.com",
14
+ ProjectDomain: process.env.PROJECT_DOMAIN || "platform.optimiser.com",
15
+ STORE_APP_NAMES: {
16
+ OPERA_PMS: "OperaPMS"
17
+ },
18
+ CompanyAppStatus: {
19
+ ENABLE: "Enable",
20
+ DISABLE: "Disable",
21
+ ADMIN_DISABLED: "ForceDisable"
22
+ },
23
+ OperaPropertyStatus: {
24
+ Active: "0",
25
+ Suspended: "1"
26
+ },
27
+ OperaSyncStatus: {
28
+ NOT_STARTED: "0",
29
+ READY: "1",
30
+ IN_PROCESS: "2",
31
+ SUCCESS: "3",
32
+ FAIL: "4"
33
+ },
34
+ QrPendingAlias: "_QRPENDING",
35
+ QrPendingFields: "qrcode"
36
+ };
@@ -1,7 +1,7 @@
1
- export declare enum DatabaseTypes {
2
- MySql = "mysql",
3
- Postgres = "postgres",
4
- Sqlite = "sqlite",
5
- Mariadb = "mariadb",
6
- Mssql = "mssql"
7
- }
1
+ export declare enum DatabaseTypes {
2
+ MySql = "mysql",
3
+ Postgres = "postgres",
4
+ Sqlite = "sqlite",
5
+ Mariadb = "mariadb",
6
+ Mssql = "mssql"
7
+ }
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DatabaseTypes = void 0;
4
- var DatabaseTypes;
5
- (function (DatabaseTypes) {
6
- DatabaseTypes["MySql"] = "mysql";
7
- DatabaseTypes["Postgres"] = "postgres";
8
- DatabaseTypes["Sqlite"] = "sqlite";
9
- DatabaseTypes["Mariadb"] = "mariadb";
10
- DatabaseTypes["Mssql"] = "mssql";
11
- })(DatabaseTypes = exports.DatabaseTypes || (exports.DatabaseTypes = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DatabaseTypes = void 0;
4
+ var DatabaseTypes;
5
+ (function (DatabaseTypes) {
6
+ DatabaseTypes["MySql"] = "mysql";
7
+ DatabaseTypes["Postgres"] = "postgres";
8
+ DatabaseTypes["Sqlite"] = "sqlite";
9
+ DatabaseTypes["Mariadb"] = "mariadb";
10
+ DatabaseTypes["Mssql"] = "mssql";
11
+ })(DatabaseTypes || (exports.DatabaseTypes = DatabaseTypes = {}));
@@ -1,22 +1,22 @@
1
- export declare enum EventType {
2
- CalendarUpdate = "calendarUpdate",
3
- CalendarAdd = "calendarAdd",
4
- CalendarDelete = "calendarDelete",
5
- DriveDelete = "driveDelete",
6
- DriveAdd = "driveAdd",
7
- TemplateAdd = "templateAdd",
8
- DriveUpdate = "driveUpdate",
9
- TemplateUpdate = "templateUpdate",
10
- TemplateDelete = "templateDelete",
11
- ContentStudioAdd = "contentStudioAdd",
12
- ContentStudioDelete = "contentStudioDelete",
13
- ContentStudioUpdate = "contentStudioUpdate",
14
- RecipientListAdd = "recipientListAdd",
15
- RecipientListUpdate = "recipientListUpdate",
16
- RecipientListDelete = "recipientListDelete",
17
- SingleRecipientAdded = "singleRecipientAdded",
18
- AddTag = "addTag",
19
- Add = "add",
20
- Update = "update",
21
- Delete = "delete"
22
- }
1
+ export declare enum EventType {
2
+ CalendarUpdate = "calendarUpdate",
3
+ CalendarAdd = "calendarAdd",
4
+ CalendarDelete = "calendarDelete",
5
+ DriveDelete = "driveDelete",
6
+ DriveAdd = "driveAdd",
7
+ TemplateAdd = "templateAdd",
8
+ DriveUpdate = "driveUpdate",
9
+ TemplateUpdate = "templateUpdate",
10
+ TemplateDelete = "templateDelete",
11
+ ContentStudioAdd = "contentStudioAdd",
12
+ ContentStudioDelete = "contentStudioDelete",
13
+ ContentStudioUpdate = "contentStudioUpdate",
14
+ RecipientListAdd = "recipientListAdd",
15
+ RecipientListUpdate = "recipientListUpdate",
16
+ RecipientListDelete = "recipientListDelete",
17
+ SingleRecipientAdded = "singleRecipientAdded",
18
+ AddTag = "addTag",
19
+ Add = "add",// Default add event
20
+ Update = "update",// Default update event
21
+ Delete = "delete"
22
+ }
@@ -1,26 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventType = void 0;
4
- var EventType;
5
- (function (EventType) {
6
- EventType["CalendarUpdate"] = "calendarUpdate";
7
- EventType["CalendarAdd"] = "calendarAdd";
8
- EventType["CalendarDelete"] = "calendarDelete";
9
- EventType["DriveDelete"] = "driveDelete";
10
- EventType["DriveAdd"] = "driveAdd";
11
- EventType["TemplateAdd"] = "templateAdd";
12
- EventType["DriveUpdate"] = "driveUpdate";
13
- EventType["TemplateUpdate"] = "templateUpdate";
14
- EventType["TemplateDelete"] = "templateDelete";
15
- EventType["ContentStudioAdd"] = "contentStudioAdd";
16
- EventType["ContentStudioDelete"] = "contentStudioDelete";
17
- EventType["ContentStudioUpdate"] = "contentStudioUpdate";
18
- EventType["RecipientListAdd"] = "recipientListAdd";
19
- EventType["RecipientListUpdate"] = "recipientListUpdate";
20
- EventType["RecipientListDelete"] = "recipientListDelete";
21
- EventType["SingleRecipientAdded"] = "singleRecipientAdded";
22
- EventType["AddTag"] = "addTag";
23
- EventType["Add"] = "add";
24
- EventType["Update"] = "update";
25
- EventType["Delete"] = "delete";
26
- })(EventType = exports.EventType || (exports.EventType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventType = void 0;
4
+ var EventType;
5
+ (function (EventType) {
6
+ EventType["CalendarUpdate"] = "calendarUpdate";
7
+ EventType["CalendarAdd"] = "calendarAdd";
8
+ EventType["CalendarDelete"] = "calendarDelete";
9
+ EventType["DriveDelete"] = "driveDelete";
10
+ EventType["DriveAdd"] = "driveAdd";
11
+ EventType["TemplateAdd"] = "templateAdd";
12
+ EventType["DriveUpdate"] = "driveUpdate";
13
+ EventType["TemplateUpdate"] = "templateUpdate";
14
+ EventType["TemplateDelete"] = "templateDelete";
15
+ EventType["ContentStudioAdd"] = "contentStudioAdd";
16
+ EventType["ContentStudioDelete"] = "contentStudioDelete";
17
+ EventType["ContentStudioUpdate"] = "contentStudioUpdate";
18
+ EventType["RecipientListAdd"] = "recipientListAdd";
19
+ EventType["RecipientListUpdate"] = "recipientListUpdate";
20
+ EventType["RecipientListDelete"] = "recipientListDelete";
21
+ EventType["SingleRecipientAdded"] = "singleRecipientAdded";
22
+ EventType["AddTag"] = "addTag";
23
+ EventType["Add"] = "add";
24
+ EventType["Update"] = "update";
25
+ EventType["Delete"] = "delete";
26
+ })(EventType || (exports.EventType = EventType = {}));
package/dist/index.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- export { default as Redis } from "./lib/redis";
2
- export * from "./lib/event";
3
- export { Connection } from "./lib/connection";
4
- export { MailSetup, SendMail } from "./utility/mail";
5
- export * as _utility from "./lib/utility";
6
- export * as cryptoService from "./utility/crypto";
7
- export * as helperLib from "./lib/helper";
8
- export * as _activity from "./lib/activity";
9
- export * as _operaUtilCommon from "./lib/operautilitycommon";
10
- export * as taskutils from "./lib/taskutils";
11
- export { MemoryDBConnect } from "./lib/memoryserverclient";
12
- export * from "./modals/connection.modal";
13
- export * from "./modals/redisconfig.modal";
14
- export * from "./modals/notificationData.modal";
15
- export * from "./modals/sqsconfig.modal";
16
- export * from "./modals/mail.modal";
17
- export * from "./modals/log.modal";
18
- export * from "./lib/countrycode";
19
- export * from "./logs/auditlog";
20
- export * from "./logs/checklogtable";
21
- export * from "./logs/log.table";
22
- export { validateRequest } from "./lib/validateRequest";
23
- export { calculatedbsize } from "./lib/calculatedbsize";
24
- export { convertfilesize } from "./lib/convertfilesize";
25
- export { default as AwsServices } from "./aws/awsservices";
1
+ export { default as Redis } from "./lib/redis";
2
+ export * from "./lib/event";
3
+ export { Connection } from "./lib/connection";
4
+ export { MailSetup, SendMail } from "./utility/mail";
5
+ export * as _utility from "./lib/utility";
6
+ export * as cryptoService from "./utility/crypto";
7
+ export * as helperLib from "./lib/helper";
8
+ export * as _activity from "./lib/activity";
9
+ export * as _operaUtilCommon from "./lib/operautilitycommon";
10
+ export * as taskutils from "./lib/taskutils";
11
+ export { MemoryDBConnect } from "./lib/memoryserverclient";
12
+ export * from "./modals/connection.modal";
13
+ export * from "./modals/redisconfig.modal";
14
+ export * from "./modals/notificationData.modal";
15
+ export * from "./modals/sqsconfig.modal";
16
+ export * from "./modals/mail.modal";
17
+ export * from "./modals/log.modal";
18
+ export * from "./lib/countrycode";
19
+ export * from "./logs/auditlog";
20
+ export * from "./logs/checklogtable";
21
+ export * from "./logs/log.table";
22
+ export { validateRequest } from "./lib/validateRequest";
23
+ export { calculatedbsize } from "./lib/calculatedbsize";
24
+ export { convertfilesize } from "./lib/convertfilesize";
25
+ export { default as AwsServices } from "./aws/awsservices";
package/dist/index.js CHANGED
@@ -1,61 +1,69 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
16
- };
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- //Library Exports
26
- var redis_1 = require("./lib/redis");
27
- Object.defineProperty(exports, "Redis", { enumerable: true, get: function () { return redis_1.default; } });
28
- __exportStar(require("./lib/event"), exports);
29
- // Connection export
30
- var connection_1 = require("./lib/connection");
31
- Object.defineProperty(exports, "Connection", { enumerable: true, get: function () { return connection_1.Connection; } });
32
- var mail_1 = require("./utility/mail");
33
- Object.defineProperty(exports, "MailSetup", { enumerable: true, get: function () { return mail_1.MailSetup; } });
34
- Object.defineProperty(exports, "SendMail", { enumerable: true, get: function () { return mail_1.SendMail; } });
35
- exports._utility = __importStar(require("./lib/utility"));
36
- exports.cryptoService = __importStar(require("./utility/crypto"));
37
- exports.helperLib = __importStar(require("./lib/helper"));
38
- exports._activity = __importStar(require("./lib/activity"));
39
- exports._operaUtilCommon = __importStar(require("./lib/operautilitycommon"));
40
- exports.taskutils = __importStar(require("./lib/taskutils"));
41
- var memoryserverclient_1 = require("./lib/memoryserverclient");
42
- Object.defineProperty(exports, "MemoryDBConnect", { enumerable: true, get: function () { return memoryserverclient_1.MemoryDBConnect; } });
43
- // Interface Exports
44
- __exportStar(require("./modals/connection.modal"), exports);
45
- __exportStar(require("./modals/redisconfig.modal"), exports);
46
- __exportStar(require("./modals/notificationData.modal"), exports);
47
- __exportStar(require("./modals/sqsconfig.modal"), exports);
48
- __exportStar(require("./modals/mail.modal"), exports);
49
- __exportStar(require("./modals/log.modal"), exports);
50
- __exportStar(require("./lib/countrycode"), exports);
51
- __exportStar(require("./logs/auditlog"), exports);
52
- __exportStar(require("./logs/checklogtable"), exports);
53
- __exportStar(require("./logs/log.table"), exports);
54
- var validateRequest_1 = require("./lib/validateRequest");
55
- Object.defineProperty(exports, "validateRequest", { enumerable: true, get: function () { return validateRequest_1.validateRequest; } });
56
- var calculatedbsize_1 = require("./lib/calculatedbsize");
57
- Object.defineProperty(exports, "calculatedbsize", { enumerable: true, get: function () { return calculatedbsize_1.calculatedbsize; } });
58
- var convertfilesize_1 = require("./lib/convertfilesize");
59
- Object.defineProperty(exports, "convertfilesize", { enumerable: true, get: function () { return convertfilesize_1.convertfilesize; } });
60
- var awsservices_1 = require("./aws/awsservices");
61
- Object.defineProperty(exports, "AwsServices", { enumerable: true, get: function () { return awsservices_1.default; } });
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.AwsServices = exports.convertfilesize = exports.calculatedbsize = exports.validateRequest = exports.MemoryDBConnect = exports.taskutils = exports._operaUtilCommon = exports._activity = exports.helperLib = exports.cryptoService = exports._utility = exports.SendMail = exports.MailSetup = exports.Connection = exports.Redis = void 0;
33
+ //Library Exports
34
+ var redis_1 = require("./lib/redis");
35
+ Object.defineProperty(exports, "Redis", { enumerable: true, get: function () { return __importDefault(redis_1).default; } });
36
+ __exportStar(require("./lib/event"), exports);
37
+ // Connection export
38
+ var connection_1 = require("./lib/connection");
39
+ Object.defineProperty(exports, "Connection", { enumerable: true, get: function () { return connection_1.Connection; } });
40
+ var mail_1 = require("./utility/mail");
41
+ Object.defineProperty(exports, "MailSetup", { enumerable: true, get: function () { return mail_1.MailSetup; } });
42
+ Object.defineProperty(exports, "SendMail", { enumerable: true, get: function () { return mail_1.SendMail; } });
43
+ exports._utility = __importStar(require("./lib/utility"));
44
+ exports.cryptoService = __importStar(require("./utility/crypto"));
45
+ exports.helperLib = __importStar(require("./lib/helper"));
46
+ exports._activity = __importStar(require("./lib/activity"));
47
+ exports._operaUtilCommon = __importStar(require("./lib/operautilitycommon"));
48
+ exports.taskutils = __importStar(require("./lib/taskutils"));
49
+ var memoryserverclient_1 = require("./lib/memoryserverclient");
50
+ Object.defineProperty(exports, "MemoryDBConnect", { enumerable: true, get: function () { return memoryserverclient_1.MemoryDBConnect; } });
51
+ // Interface Exports
52
+ __exportStar(require("./modals/connection.modal"), exports);
53
+ __exportStar(require("./modals/redisconfig.modal"), exports);
54
+ __exportStar(require("./modals/notificationData.modal"), exports);
55
+ __exportStar(require("./modals/sqsconfig.modal"), exports);
56
+ __exportStar(require("./modals/mail.modal"), exports);
57
+ __exportStar(require("./modals/log.modal"), exports);
58
+ __exportStar(require("./lib/countrycode"), exports);
59
+ __exportStar(require("./logs/auditlog"), exports);
60
+ __exportStar(require("./logs/checklogtable"), exports);
61
+ __exportStar(require("./logs/log.table"), exports);
62
+ var validateRequest_1 = require("./lib/validateRequest");
63
+ Object.defineProperty(exports, "validateRequest", { enumerable: true, get: function () { return validateRequest_1.validateRequest; } });
64
+ var calculatedbsize_1 = require("./lib/calculatedbsize");
65
+ Object.defineProperty(exports, "calculatedbsize", { enumerable: true, get: function () { return calculatedbsize_1.calculatedbsize; } });
66
+ var convertfilesize_1 = require("./lib/convertfilesize");
67
+ Object.defineProperty(exports, "convertfilesize", { enumerable: true, get: function () { return convertfilesize_1.convertfilesize; } });
68
+ var awsservices_1 = require("./aws/awsservices");
69
+ Object.defineProperty(exports, "AwsServices", { enumerable: true, get: function () { return __importDefault(awsservices_1).default; } });
@@ -1 +1 @@
1
- export declare function QueryMakerForActivity(newStartDateTime: any, newEndDateTime: any, isAllDay: any, extraConditions: any): {};
1
+ export declare function QueryMakerForActivity(newStartDateTime: any, newEndDateTime: any, isAllDay: any, extraConditions: any): {};
@@ -1,44 +1,44 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QueryMakerForActivity = void 0;
4
- function QueryMakerForActivity(newStartDateTime, newEndDateTime, isAllDay, extraConditions) {
5
- var returnObj = {};
6
- returnObj = {
7
- $and: [
8
- extraConditions,
9
- { IsActive: true },
10
- { IsAllDay: isAllDay },
11
- {
12
- $or: [
13
- {
14
- $and: [
15
- { 'StartDate': { $lte: newStartDateTime } },
16
- { 'EndDate': { $gte: newStartDateTime } }
17
- ]
18
- },
19
- {
20
- $and: [
21
- { 'StartDate': { $gte: newStartDateTime } },
22
- { 'StartDate': { $lte: newEndDateTime } }
23
- ]
24
- },
25
- {
26
- $and: [
27
- { 'EndDate': { $gte: newStartDateTime } },
28
- { 'EndDate': { $lte: newEndDateTime } }
29
- ]
30
- },
31
- {
32
- $and: [
33
- { 'StartDate': { $gte: newStartDateTime } },
34
- { 'EndDate': { $lte: newEndDateTime } }
35
- ]
36
- }
37
- ]
38
- }
39
- ]
40
- };
41
- return returnObj;
42
- }
43
- exports.QueryMakerForActivity = QueryMakerForActivity;
44
- ;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueryMakerForActivity = void 0;
4
+ function QueryMakerForActivity(newStartDateTime, newEndDateTime, isAllDay, extraConditions) {
5
+ var returnObj = {};
6
+ returnObj = {
7
+ $and: [
8
+ extraConditions,
9
+ { IsActive: true },
10
+ { IsAllDay: isAllDay },
11
+ {
12
+ $or: [
13
+ {
14
+ $and: [
15
+ { 'StartDate': { $lte: newStartDateTime } },
16
+ { 'EndDate': { $gte: newStartDateTime } }
17
+ ]
18
+ },
19
+ {
20
+ $and: [
21
+ { 'StartDate': { $gte: newStartDateTime } },
22
+ { 'StartDate': { $lte: newEndDateTime } }
23
+ ]
24
+ },
25
+ {
26
+ $and: [
27
+ { 'EndDate': { $gte: newStartDateTime } },
28
+ { 'EndDate': { $lte: newEndDateTime } }
29
+ ]
30
+ },
31
+ {
32
+ $and: [
33
+ { 'StartDate': { $gte: newStartDateTime } },
34
+ { 'EndDate': { $lte: newEndDateTime } }
35
+ ]
36
+ }
37
+ ]
38
+ }
39
+ ]
40
+ };
41
+ return returnObj;
42
+ }
43
+ exports.QueryMakerForActivity = QueryMakerForActivity;
44
+ ;
@@ -1,15 +1,15 @@
1
- import { NextFunction } from "express";
2
- import { Db } from "mongodb";
3
- /**
4
- *
5
- * @name Calculates total Database Size with Document and Drive Size in bytes
6
- * @author Ansh Nagrath
7
- * @param db(database connection) , next Function (Error handlinf=g purpose)
8
- * @returns object with integers { Database:38349875 , Drive:8978 ,Document : 234232 }
9
- */
10
- declare const calculatedbsize: (db: Db, next: NextFunction) => Promise<{
11
- Database: number;
12
- Drive: number;
13
- Document: number;
14
- }>;
15
- export { calculatedbsize };
1
+ import { NextFunction } from "express";
2
+ import { Db } from "mongodb";
3
+ /**
4
+ *
5
+ * @name Calculates total Database Size with Document and Drive Size in bytes
6
+ * @author Ansh Nagrath
7
+ * @param db(database connection) , next Function (Error handlinf=g purpose)
8
+ * @returns object with integers { Database:38349875 , Drive:8978 ,Document : 234232 }
9
+ */
10
+ declare const calculatedbsize: (db: Db, next: NextFunction) => Promise<{
11
+ Database: number;
12
+ Drive: number;
13
+ Document: number;
14
+ }>;
15
+ export { calculatedbsize };