@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.
- package/dist/aws/awsservices.d.ts +39 -39
- package/dist/aws/awsservices.js +398 -398
- package/dist/constants.d.ts +35 -35
- package/dist/constants.js +36 -36
- package/dist/enums/databasetype.enum.d.ts +7 -7
- package/dist/enums/databasetype.enum.js +11 -11
- package/dist/enums/log.enum.d.ts +22 -22
- package/dist/enums/log.enum.js +26 -26
- package/dist/index.d.ts +25 -25
- package/dist/index.js +69 -61
- package/dist/lib/activity.d.ts +1 -1
- package/dist/lib/activity.js +44 -44
- package/dist/lib/calculatedbsize.d.ts +15 -15
- package/dist/lib/calculatedbsize.js +75 -75
- package/dist/lib/connection.d.ts +116 -116
- package/dist/lib/connection.js +595 -595
- package/dist/lib/convertfilesize.d.ts +2 -2
- package/dist/lib/convertfilesize.js +15 -15
- package/dist/lib/countrycode.d.ts +2 -2
- package/dist/lib/countrycode.js +255 -255
- package/dist/lib/event.d.ts +26 -26
- package/dist/lib/event.js +252 -248
- package/dist/lib/helper.d.ts +94 -93
- package/dist/lib/helper.js +1016 -1009
- package/dist/lib/memoryserverclient.d.ts +40 -40
- package/dist/lib/memoryserverclient.js +256 -252
- package/dist/lib/operautilitycommon.d.ts +65 -65
- package/dist/lib/operautilitycommon.js +620 -620
- package/dist/lib/redis.d.ts +21 -21
- package/dist/lib/redis.js +46 -46
- package/dist/lib/socketidfromredis.d.ts +3 -3
- package/dist/lib/socketidfromredis.js +5 -5
- package/dist/lib/taskutils.d.ts +40 -40
- package/dist/lib/taskutils.js +656 -656
- package/dist/lib/utility.d.ts +300 -298
- package/dist/lib/utility.js +5626 -5621
- package/dist/lib/validateRequest.d.ts +3 -3
- package/dist/lib/validateRequest.js +13 -13
- package/dist/logs/auditlog.d.ts +25 -25
- package/dist/logs/auditlog.js +1033 -1029
- package/dist/logs/checklogtable.d.ts +3 -3
- package/dist/logs/checklogtable.js +67 -67
- package/dist/logs/log.table.d.ts +7 -7
- package/dist/logs/log.table.js +127 -127
- package/dist/modals/connection.modal.d.ts +32 -32
- package/dist/modals/connection.modal.js +2 -2
- package/dist/modals/globalNotification.modal.d.ts +8 -8
- package/dist/modals/globalNotification.modal.js +2 -2
- package/dist/modals/log.modal.d.ts +64 -64
- package/dist/modals/log.modal.js +2 -2
- package/dist/modals/mail.modal.d.ts +6 -6
- package/dist/modals/mail.modal.js +2 -2
- package/dist/modals/notificationData.modal.d.ts +29 -29
- package/dist/modals/notificationData.modal.js +2 -2
- package/dist/modals/redisconfig.modal.d.ts +6 -6
- package/dist/modals/redisconfig.modal.js +2 -2
- package/dist/modals/sqsconfig.modal.d.ts +8 -8
- package/dist/modals/sqsconfig.modal.js +2 -2
- package/dist/modals/utility.modal.d.ts +17 -17
- package/dist/modals/utility.modal.js +2 -2
- package/dist/utility/crypto.d.ts +4 -4
- package/dist/utility/crypto.js +43 -43
- package/dist/utility/errorHandler.d.ts +30 -30
- package/dist/utility/errorHandler.js +24 -24
- package/dist/utility/errorHandlerForServices.d.ts +22 -22
- package/dist/utility/errorHandlerForServices.js +19 -19
- package/dist/utility/mail.d.ts +21 -21
- package/dist/utility/mail.js +91 -87
- package/package.json +3 -3
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { Db } from "mongodb";
|
|
2
|
-
import { AnyObjectInterface } from "../modals/utility.modal";
|
|
3
|
-
declare const GetIntegrationSettings: (db: Db, hotelCode: string) => Promise<Error | AnyObjectInterface | null>;
|
|
4
|
-
declare const SyncContactWithOperaOnEmailUnsubscribe: (db: Db, email: string) => void;
|
|
5
|
-
declare const OperaErrorHandler: (db: Db, ex: Error) => void;
|
|
6
|
-
/**
|
|
7
|
-
* This function is used to search profiles by dynamics fields in both Memory server and db.
|
|
8
|
-
* If data found in memory server then it search data by _id in db the return data.
|
|
9
|
-
*
|
|
10
|
-
* @param params.ModuleName Name of Module either Account | Contact.
|
|
11
|
-
* @param params.MappingFields fields which is used for searching
|
|
12
|
-
* @param params.ModuleData Data of fields
|
|
13
|
-
* @param params.db database objects
|
|
14
|
-
* @param params.MongodbTransactionQueryOptions Mongodb query option, it may have transaction as well.
|
|
15
|
-
* @param params.SelectedFields to get only selected fields
|
|
16
|
-
* @param params.AllowInactive to search data without IsActive field.
|
|
17
|
-
* @param params.SearchFromMemoryServer to indicate searcing is to do from memory server
|
|
18
|
-
* @param params.MemoryServerClient memory server client object to get data from memory server
|
|
19
|
-
* @param params.CompanyId to indicate searcing is to do from memory server
|
|
20
|
-
* @param params.DataSet to indicate searcing is to do from memory server
|
|
21
|
-
*
|
|
22
|
-
* @returns [error,ResultData]
|
|
23
|
-
*/
|
|
24
|
-
declare const GetProfileDetailByDynamicFields: (params: AnyObjectInterface) => Promise<any[]>;
|
|
25
|
-
/**
|
|
26
|
-
* This function is used to update data.
|
|
27
|
-
* @param params.ModuleName Name of Module either Account | Contact.
|
|
28
|
-
* @param params.Collection Name of Collection
|
|
29
|
-
* @param params.Id which doucment has to update
|
|
30
|
-
* @param params.db database objects
|
|
31
|
-
* @param params.MongodbTransactionQueryOptions Mongodb query option object , it may have transaction as well.
|
|
32
|
-
* @param params.UpdateObj to update data in collection.
|
|
33
|
-
|
|
34
|
-
* @returns
|
|
35
|
-
*/
|
|
36
|
-
declare const UpdateInitialSyncData: (params: AnyObjectInterface) => Promise<unknown>;
|
|
37
|
-
/**
|
|
38
|
-
* This function is used to stop unnecessary databse hits for checking any data available send to opera.
|
|
39
|
-
* this flag will be in reddis
|
|
40
|
-
* @param params.RedisClient reddis client
|
|
41
|
-
* @param params.CompanyId to create/check opera key with company id
|
|
42
|
-
* @param params.Mode GET/SET operation to perform on reddis
|
|
43
|
-
* @param params.db database objects
|
|
44
|
-
* @param params.isAvailable value to set in reddis
|
|
45
|
-
|
|
46
|
-
* @returns
|
|
47
|
-
*/
|
|
48
|
-
declare const AddToQueueForOpera: (params: AnyObjectInterface) => Promise<any[] | undefined>;
|
|
49
|
-
/**
|
|
50
|
-
* This function is used to search data in case of contact from memory server using email
|
|
51
|
-
* @param params.db database objects
|
|
52
|
-
* @param params.ProfileType profile type account/contact
|
|
53
|
-
* @param params.PrimaryEmail primary email
|
|
54
|
-
* @param params.SecondaryEmail secondary email
|
|
55
|
-
* @param params.MongodbTransactionQueryOptions Mongodb query option, it may have transaction as well.
|
|
56
|
-
* @param params.SelectedFields to get only selected fields
|
|
57
|
-
* @param params.SearchFromMemoryServer to indicate searcing is to do from memory server
|
|
58
|
-
* @param params.MemoryServerClient memory server client object to get data from memory server
|
|
59
|
-
* @param params.CompanyId to indicate searcing is to do from memory server
|
|
60
|
-
* @param params.DataSet to indicate searcing is to do from memory server
|
|
61
|
-
*
|
|
62
|
-
* @returns
|
|
63
|
-
*/
|
|
64
|
-
declare const EmailPrioritySearch: (params: AnyObjectInterface) => Promise<unknown>;
|
|
65
|
-
export { GetIntegrationSettings, SyncContactWithOperaOnEmailUnsubscribe, OperaErrorHandler, GetProfileDetailByDynamicFields, UpdateInitialSyncData, AddToQueueForOpera, EmailPrioritySearch };
|
|
1
|
+
import { Db } from "mongodb";
|
|
2
|
+
import { AnyObjectInterface } from "../modals/utility.modal";
|
|
3
|
+
declare const GetIntegrationSettings: (db: Db, hotelCode: string) => Promise<Error | AnyObjectInterface | null>;
|
|
4
|
+
declare const SyncContactWithOperaOnEmailUnsubscribe: (db: Db, email: string) => void;
|
|
5
|
+
declare const OperaErrorHandler: (db: Db, ex: Error) => void;
|
|
6
|
+
/**
|
|
7
|
+
* This function is used to search profiles by dynamics fields in both Memory server and db.
|
|
8
|
+
* If data found in memory server then it search data by _id in db the return data.
|
|
9
|
+
*
|
|
10
|
+
* @param params.ModuleName Name of Module either Account | Contact.
|
|
11
|
+
* @param params.MappingFields fields which is used for searching
|
|
12
|
+
* @param params.ModuleData Data of fields
|
|
13
|
+
* @param params.db database objects
|
|
14
|
+
* @param params.MongodbTransactionQueryOptions Mongodb query option, it may have transaction as well.
|
|
15
|
+
* @param params.SelectedFields to get only selected fields
|
|
16
|
+
* @param params.AllowInactive to search data without IsActive field.
|
|
17
|
+
* @param params.SearchFromMemoryServer to indicate searcing is to do from memory server
|
|
18
|
+
* @param params.MemoryServerClient memory server client object to get data from memory server
|
|
19
|
+
* @param params.CompanyId to indicate searcing is to do from memory server
|
|
20
|
+
* @param params.DataSet to indicate searcing is to do from memory server
|
|
21
|
+
*
|
|
22
|
+
* @returns [error,ResultData]
|
|
23
|
+
*/
|
|
24
|
+
declare const GetProfileDetailByDynamicFields: (params: AnyObjectInterface) => Promise<any[]>;
|
|
25
|
+
/**
|
|
26
|
+
* This function is used to update data.
|
|
27
|
+
* @param params.ModuleName Name of Module either Account | Contact.
|
|
28
|
+
* @param params.Collection Name of Collection
|
|
29
|
+
* @param params.Id which doucment has to update
|
|
30
|
+
* @param params.db database objects
|
|
31
|
+
* @param params.MongodbTransactionQueryOptions Mongodb query option object , it may have transaction as well.
|
|
32
|
+
* @param params.UpdateObj to update data in collection.
|
|
33
|
+
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
declare const UpdateInitialSyncData: (params: AnyObjectInterface) => Promise<unknown>;
|
|
37
|
+
/**
|
|
38
|
+
* This function is used to stop unnecessary databse hits for checking any data available send to opera.
|
|
39
|
+
* this flag will be in reddis
|
|
40
|
+
* @param params.RedisClient reddis client
|
|
41
|
+
* @param params.CompanyId to create/check opera key with company id
|
|
42
|
+
* @param params.Mode GET/SET operation to perform on reddis
|
|
43
|
+
* @param params.db database objects
|
|
44
|
+
* @param params.isAvailable value to set in reddis
|
|
45
|
+
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
declare const AddToQueueForOpera: (params: AnyObjectInterface) => Promise<any[] | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* This function is used to search data in case of contact from memory server using email
|
|
51
|
+
* @param params.db database objects
|
|
52
|
+
* @param params.ProfileType profile type account/contact
|
|
53
|
+
* @param params.PrimaryEmail primary email
|
|
54
|
+
* @param params.SecondaryEmail secondary email
|
|
55
|
+
* @param params.MongodbTransactionQueryOptions Mongodb query option, it may have transaction as well.
|
|
56
|
+
* @param params.SelectedFields to get only selected fields
|
|
57
|
+
* @param params.SearchFromMemoryServer to indicate searcing is to do from memory server
|
|
58
|
+
* @param params.MemoryServerClient memory server client object to get data from memory server
|
|
59
|
+
* @param params.CompanyId to indicate searcing is to do from memory server
|
|
60
|
+
* @param params.DataSet to indicate searcing is to do from memory server
|
|
61
|
+
*
|
|
62
|
+
* @returns
|
|
63
|
+
*/
|
|
64
|
+
declare const EmailPrioritySearch: (params: AnyObjectInterface) => Promise<unknown>;
|
|
65
|
+
export { GetIntegrationSettings, SyncContactWithOperaOnEmailUnsubscribe, OperaErrorHandler, GetProfileDetailByDynamicFields, UpdateInitialSyncData, AddToQueueForOpera, EmailPrioritySearch };
|