hgs-twilio-class-lib 1.1.72 → 1.1.73

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 (479) hide show
  1. package/lib/aws/abstract/ServiceObjectStore.d.ts +9 -0
  2. package/lib/aws/abstract/ServiceObjectStore.js +10 -0
  3. package/lib/aws/abstract/ServiceOpenRequest.d.ts +7 -0
  4. package/lib/aws/abstract/ServiceOpenRequest.js +10 -0
  5. package/lib/aws/abstract/ServiceRequest.d.ts +3 -0
  6. package/lib/aws/abstract/ServiceRequest.js +7 -0
  7. package/lib/aws/abstract/ServiceResource.d.ts +20 -0
  8. package/lib/aws/abstract/ServiceResource.js +31 -0
  9. package/lib/aws/abstract/ServiceResourceFactory.d.ts +13 -0
  10. package/lib/aws/abstract/ServiceResourceFactory.js +14 -0
  11. package/lib/aws/abstract/ServiceTransaction.d.ts +6 -0
  12. package/lib/aws/abstract/ServiceTransaction.js +11 -0
  13. package/lib/aws/impl/AWSAPIConfig.d.ts +14 -0
  14. package/lib/aws/impl/AWSAPIConfig.js +38 -0
  15. package/lib/aws/impl/AWSClient.d.ts +5 -0
  16. package/lib/aws/impl/AWSClient.js +21 -0
  17. package/lib/aws/impl/AWSConnectAPIConfig.d.ts +17 -0
  18. package/lib/aws/impl/AWSConnectAPIConfig.js +38 -0
  19. package/lib/aws/impl/DynamoDB/DynamoOpenRequest.d.ts +18 -0
  20. package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +24 -0
  21. package/lib/aws/impl/DynamoDB/DynamoRequest.d.ts +16 -0
  22. package/lib/aws/impl/DynamoDB/DynamoRequest.js +21 -0
  23. package/lib/aws/impl/DynamoDB/DynamoResourse.d.ts +29 -0
  24. package/lib/aws/impl/DynamoDB/DynamoResourse.js +45 -0
  25. package/lib/aws/impl/DynamoDB/DynamoServiceFactory.d.ts +16 -0
  26. package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +63 -0
  27. package/lib/aws/impl/DynamoDB/DynamoTable.d.ts +26 -0
  28. package/lib/aws/impl/DynamoDB/DynamoTable.js +126 -0
  29. package/lib/aws/impl/DynamoDB/DynamoTransaction.d.ts +21 -0
  30. package/lib/aws/impl/DynamoDB/DynamoTransaction.js +37 -0
  31. package/lib/aws/impl/HoopServices/HoopService.d.ts +28 -0
  32. package/lib/aws/impl/HoopServices/HoopService.js +124 -0
  33. package/lib/aws/impl/HoopServices/HoopServiceFactory.d.ts +17 -0
  34. package/lib/aws/impl/HoopServices/HoopServiceFactory.js +53 -0
  35. package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.d.ts +18 -0
  36. package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +24 -0
  37. package/lib/aws/impl/HoopServices/HoopServiceResource.d.ts +29 -0
  38. package/lib/aws/impl/HoopServices/HoopServiceResource.js +46 -0
  39. package/lib/aws/impl/HoopServices/HoopServiceTransaction.d.ts +22 -0
  40. package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +37 -0
  41. package/lib/aws/interface/IDirection.d.ts +2 -0
  42. package/lib/aws/interface/IDirection.js +2 -0
  43. package/lib/aws/interface/ILink.d.ts +2 -0
  44. package/lib/aws/interface/ILink.js +2 -0
  45. package/lib/aws/interface/IServiceDBOpenRequest.d.ts +3 -0
  46. package/lib/aws/interface/IServiceDBOpenRequest.js +2 -0
  47. package/lib/aws/interface/IServiceObjectStore.d.ts +3 -0
  48. package/lib/aws/interface/IServiceObjectStore.js +2 -0
  49. package/lib/aws/interface/IServiceObjectStoreParameters.d.ts +4 -0
  50. package/lib/aws/interface/IServiceObjectStoreParameters.js +2 -0
  51. package/lib/aws/interface/IServiceRequest.d.ts +3 -0
  52. package/lib/aws/interface/IServiceRequest.js +2 -0
  53. package/lib/aws/interface/IServiceResource.d.ts +7 -0
  54. package/lib/aws/interface/IServiceResource.js +2 -0
  55. package/lib/aws/interface/IServiceTransation.d.ts +3 -0
  56. package/lib/aws/interface/IServiceTransation.js +2 -0
  57. package/lib/aws/interface/ISubResourceUri.d.ts +2 -0
  58. package/lib/aws/interface/ISubResourceUri.js +2 -0
  59. package/lib/aws/interface/ISyncItemData.d.ts +0 -0
  60. package/lib/aws/interface/ISyncItemData.js +1 -0
  61. package/lib/aws/interface/ISyncObjectStoreParameters.d.ts +0 -0
  62. package/lib/aws/interface/ISyncObjectStoreParameters.js +1 -0
  63. package/lib/aws/interface/ISyncTransactionOptions.d.ts +4 -0
  64. package/lib/aws/interface/ISyncTransactionOptions.js +2 -0
  65. package/lib/common/abstract/CommonError.d.ts +8 -0
  66. package/lib/common/abstract/CommonError.js +12 -0
  67. package/lib/common/abstract/Database.d.ts +44 -0
  68. package/lib/common/abstract/Database.js +58 -0
  69. package/lib/common/abstract/DatabaseClient.d.ts +11 -0
  70. package/lib/common/abstract/DatabaseClient.js +21 -0
  71. package/lib/common/abstract/DatabaseClientConfig.d.ts +5 -0
  72. package/lib/common/abstract/DatabaseClientConfig.js +9 -0
  73. package/lib/common/abstract/DatabaseFactory.d.ts +70 -0
  74. package/lib/common/abstract/DatabaseFactory.js +32 -0
  75. package/lib/common/abstract/DatabaseObjectStore.d.ts +29 -0
  76. package/lib/common/abstract/DatabaseObjectStore.js +13 -0
  77. package/lib/common/abstract/DatabaseOpenRequest.d.ts +24 -0
  78. package/lib/common/abstract/DatabaseOpenRequest.js +13 -0
  79. package/lib/common/abstract/DatabaseRequest.d.ts +21 -0
  80. package/lib/common/abstract/DatabaseRequest.js +14 -0
  81. package/lib/common/abstract/DatabaseTransaction.d.ts +22 -0
  82. package/lib/common/abstract/DatabaseTransaction.js +13 -0
  83. package/lib/common/abstract/Filter.d.ts +12 -0
  84. package/lib/common/abstract/Filter.js +30 -0
  85. package/lib/common/enum/ErrorTypes.d.ts +4 -0
  86. package/lib/common/enum/ErrorTypes.js +9 -0
  87. package/lib/common/enum/FilterTypes.d.ts +10 -0
  88. package/lib/common/enum/FilterTypes.js +14 -0
  89. package/lib/common/interface/IDatabaesInfo.d.ts +2 -0
  90. package/lib/common/interface/IDatabaesInfo.js +2 -0
  91. package/lib/common/interface/IDatabase.d.ts +4 -0
  92. package/lib/common/interface/IDatabase.js +2 -0
  93. package/lib/common/interface/IDatabaseClient.d.ts +5 -0
  94. package/lib/common/interface/IDatabaseClient.js +2 -0
  95. package/lib/common/interface/IDatabaseConfig.d.ts +8 -0
  96. package/lib/common/interface/IDatabaseConfig.js +10 -0
  97. package/lib/common/interface/IDatabaseDBOpenRequest.d.ts +2 -0
  98. package/lib/common/interface/IDatabaseDBOpenRequest.js +2 -0
  99. package/lib/common/interface/IDatabaseFactory.d.ts +21 -0
  100. package/lib/common/interface/IDatabaseFactory.js +2 -0
  101. package/lib/common/interface/IDatabaseObjectStore.d.ts +2 -0
  102. package/lib/common/interface/IDatabaseObjectStore.js +2 -0
  103. package/lib/common/interface/IDatabaseObjectStoreParameters.d.ts +2 -0
  104. package/lib/common/interface/IDatabaseObjectStoreParameters.js +2 -0
  105. package/lib/common/interface/IDatabaseRecord.d.ts +2 -0
  106. package/lib/common/interface/IDatabaseRecord.js +2 -0
  107. package/lib/common/interface/IDatabaseRequest.d.ts +2 -0
  108. package/lib/common/interface/IDatabaseRequest.js +2 -0
  109. package/lib/common/interface/IDatabaseTransaction.d.ts +2 -0
  110. package/lib/common/interface/IDatabaseTransaction.js +2 -0
  111. package/lib/common/interface/IDatabaseTransactionOptions.d.ts +2 -0
  112. package/lib/common/interface/IDatabaseTransactionOptions.js +2 -0
  113. package/lib/common/interface/IError.d.ts +5 -0
  114. package/lib/common/interface/IError.js +2 -0
  115. package/lib/common/interface/IErrorDetails.d.ts +6 -0
  116. package/lib/common/interface/IErrorDetails.js +2 -0
  117. package/lib/common/interface/IFilter.d.ts +25 -0
  118. package/lib/common/interface/IFilter.js +2 -0
  119. package/lib/common/type/DatabaseReadyType.d.ts +1 -0
  120. package/lib/common/type/DatabaseReadyType.js +2 -0
  121. package/lib/common/type/FilterInputType.d.ts +1 -0
  122. package/lib/common/type/FilterInputType.js +2 -0
  123. package/lib/common/type/SearchParameterType.d.ts +15 -0
  124. package/lib/common/type/SearchParameterType.js +3 -0
  125. package/lib/common/utils/dateFormat.d.ts +1 -0
  126. package/lib/common/utils/dateFormat.js +58 -0
  127. package/lib/common/utils/filter.d.ts +1 -0
  128. package/lib/common/utils/filter.js +99 -0
  129. package/lib/common/utils/newFilter.d.ts +1 -0
  130. package/lib/common/utils/newFilter.js +126 -0
  131. package/lib/common/utils/pagination.d.ts +1 -0
  132. package/lib/common/utils/pagination.js +9 -0
  133. package/lib/common/utils/search.d.ts +1 -0
  134. package/lib/common/utils/search.js +14 -0
  135. package/lib/common/utils/sort.d.ts +1 -0
  136. package/lib/common/utils/sort.js +29 -0
  137. package/lib/config/AWSConfig.d.ts +6 -0
  138. package/lib/config/AWSConfig.js +9 -0
  139. package/lib/config/DatabaseConfig.d.ts +33 -0
  140. package/lib/config/DatabaseConfig.js +36 -0
  141. package/lib/config/TwilioConfig.d.ts +4 -0
  142. package/lib/config/TwilioConfig.js +7 -0
  143. package/lib/controller/Common.d.ts +20 -0
  144. package/lib/controller/Common.js +57 -0
  145. package/lib/controller/DatabaseFactoryCollection.d.ts +6 -0
  146. package/lib/controller/DatabaseFactoryCollection.js +14 -0
  147. package/lib/controller/MainController.d.ts +6 -0
  148. package/lib/controller/MainController.js +174 -0
  149. package/lib/controller/aws/HoopBuisnessHours.d.ts +23 -0
  150. package/lib/controller/aws/HoopBuisnessHours.js +408 -0
  151. package/lib/controller/aws/HoopOperationsController.d.ts +9 -0
  152. package/lib/controller/aws/HoopOperationsController.js +86 -0
  153. package/lib/controller/aws/HoopOverrideBranchesController.d.ts +7 -0
  154. package/lib/controller/aws/HoopOverrideBranchesController.js +40 -0
  155. package/lib/controller/aws/HoopProfilesListController.d.ts +8 -0
  156. package/lib/controller/aws/HoopProfilesListController.js +61 -0
  157. package/lib/controller/aws/PlaybackScreenrecordings.d.ts +9 -0
  158. package/lib/controller/aws/PlaybackScreenrecordings.js +63 -0
  159. package/lib/controller/twilio/AgentActionsController.d.ts +54 -0
  160. package/lib/controller/twilio/AgentActionsController.js +177 -0
  161. package/lib/controller/twilio/AgentScorecardController.d.ts +53 -0
  162. package/lib/controller/twilio/AgentScorecardController.js +173 -0
  163. package/lib/controller/twilio/AuditLogController.d.ts +15 -0
  164. package/lib/controller/twilio/AuditLogController.js +137 -0
  165. package/lib/controller/twilio/CallLogsController.d.ts +12 -0
  166. package/lib/controller/twilio/CallLogsController.js +131 -0
  167. package/lib/controller/twilio/CallbackAndVoicemailController.d.ts +12 -0
  168. package/lib/controller/twilio/CallbackAndVoicemailController.js +114 -0
  169. package/lib/controller/twilio/ChannelSettingTaskInfoController.d.ts +11 -0
  170. package/lib/controller/twilio/ChannelSettingTaskInfoController.js +117 -0
  171. package/lib/controller/twilio/ChannelSettingsController.d.ts +16 -0
  172. package/lib/controller/twilio/ChannelSettingsController.js +142 -0
  173. package/lib/controller/twilio/CxConfigAssetController.d.ts +12 -0
  174. package/lib/controller/twilio/CxConfigAssetController.js +128 -0
  175. package/lib/controller/twilio/CxConfigController.d.ts +18 -0
  176. package/lib/controller/twilio/CxConfigController.js +112 -0
  177. package/lib/controller/twilio/CxConfigExternalNumbersController.d.ts +12 -0
  178. package/lib/controller/twilio/CxConfigExternalNumbersController.js +138 -0
  179. package/lib/controller/twilio/CxConfigOther.d.ts +16 -0
  180. package/lib/controller/twilio/CxConfigOther.js +138 -0
  181. package/lib/controller/twilio/CxConfigQueueMenuController.d.ts +12 -0
  182. package/lib/controller/twilio/CxConfigQueueMenuController.js +129 -0
  183. package/lib/controller/twilio/CxConfigUIconfigController.d.ts +12 -0
  184. package/lib/controller/twilio/CxConfigUIconfigController.js +132 -0
  185. package/lib/controller/twilio/GPMController.d.ts +12 -0
  186. package/lib/controller/twilio/GPMController.js +151 -0
  187. package/lib/controller/twilio/HoopBusinessHoursController.d.ts +18 -0
  188. package/lib/controller/twilio/HoopBusinessHoursController.js +285 -0
  189. package/lib/controller/twilio/HoopHolidaysController.d.ts +14 -0
  190. package/lib/controller/twilio/HoopHolidaysController.js +152 -0
  191. package/lib/controller/twilio/HoopMainController.d.ts +13 -0
  192. package/lib/controller/twilio/HoopMainController.js +297 -0
  193. package/lib/controller/twilio/HoopNotesController.d.ts +14 -0
  194. package/lib/controller/twilio/HoopNotesController.js +149 -0
  195. package/lib/controller/twilio/HoopOperationsController.d.ts +14 -0
  196. package/lib/controller/twilio/HoopOperationsController.js +138 -0
  197. package/lib/controller/twilio/HoopOverrideBranchesController.d.ts +14 -0
  198. package/lib/controller/twilio/HoopOverrideBranchesController.js +137 -0
  199. package/lib/controller/twilio/HoopPartialDaysController.d.ts +14 -0
  200. package/lib/controller/twilio/HoopPartialDaysController.js +152 -0
  201. package/lib/controller/twilio/HoopProfilesListController.d.ts +14 -0
  202. package/lib/controller/twilio/HoopProfilesListController.js +147 -0
  203. package/lib/controller/twilio/NavigationController.d.ts +13 -0
  204. package/lib/controller/twilio/NavigationController.js +170 -0
  205. package/lib/controller/twilio/QualityFormsController.d.ts +12 -0
  206. package/lib/controller/twilio/QualityFormsController.js +129 -0
  207. package/lib/controller/twilio/QuickLinkController.d.ts +11 -0
  208. package/lib/controller/twilio/QuickLinkController.js +122 -0
  209. package/lib/controller/twilio/RealTimeReportQueueDetailsController.d.ts +14 -0
  210. package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +126 -0
  211. package/lib/controller/twilio/RealTimeReportsWGDetailsController.d.ts +53 -0
  212. package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +160 -0
  213. package/lib/controller/twilio/TaskInfoPanelController.d.ts +15 -0
  214. package/lib/controller/twilio/TaskInfoPanelController.js +134 -0
  215. package/lib/controller/twilio/filterImpl/AgentScorecardFilter.d.ts +12 -0
  216. package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +52 -0
  217. package/lib/controller/twilio/filterImpl/AuditLogsFilter.d.ts +12 -0
  218. package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +89 -0
  219. package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.d.ts +12 -0
  220. package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +81 -0
  221. package/lib/controller/twilio/filterImpl/CallLogsFilter.d.ts +20 -0
  222. package/lib/controller/twilio/filterImpl/CallLogsFilter.js +101 -0
  223. package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.d.ts +12 -0
  224. package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +59 -0
  225. package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.d.ts +12 -0
  226. package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +67 -0
  227. package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.d.ts +14 -0
  228. package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +52 -0
  229. package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.d.ts +17 -0
  230. package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +78 -0
  231. package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.d.ts +12 -0
  232. package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +51 -0
  233. package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.d.ts +14 -0
  234. package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +58 -0
  235. package/lib/controller/twilio/filterImpl/HoopNotesFilter.d.ts +12 -0
  236. package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +51 -0
  237. package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +14 -0
  238. package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +58 -0
  239. package/lib/controller/twilio/filterImpl/MainFilterService.d.ts +4 -0
  240. package/lib/controller/twilio/filterImpl/MainFilterService.js +108 -0
  241. package/lib/controller/twilio/filterImpl/NavigationFilter.d.ts +20 -0
  242. package/lib/controller/twilio/filterImpl/NavigationFilter.js +90 -0
  243. package/lib/controller/twilio/filterImpl/QueueDetailsFilter.d.ts +14 -0
  244. package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +53 -0
  245. package/lib/controller/twilio/filterImpl/TaskCompleteFilter.d.ts +12 -0
  246. package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +62 -0
  247. package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.d.ts +12 -0
  248. package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +52 -0
  249. package/lib/express/ApiResponse.d.ts +15 -0
  250. package/lib/express/ApiResponse.js +11 -0
  251. package/lib/express/RequestValidator.d.ts +50 -0
  252. package/lib/express/RequestValidator.js +77 -0
  253. package/lib/express/RequireParamsPicker.d.ts +7 -0
  254. package/lib/express/RequireParamsPicker.js +14 -0
  255. package/lib/express/ValidateRequireParameters.d.ts +3 -0
  256. package/lib/express/ValidateRequireParameters.js +39 -0
  257. package/lib/index.d.ts +39 -0
  258. package/lib/index.js +100 -0
  259. package/lib/models/BatchUpdateSkills.model.d.ts +0 -0
  260. package/lib/models/BatchUpdateSkills.model.js +11 -0
  261. package/lib/models/CannedMessage.model.d.ts +4 -0
  262. package/lib/models/CannedMessage.model.js +1 -0
  263. package/lib/models/ChannelSettingsTaskInfo.model.d.ts +87 -0
  264. package/lib/models/ChannelSettingsTaskInfo.model.js +1 -0
  265. package/lib/models/CustomerFeedback.model.d.ts +9 -0
  266. package/lib/models/CustomerFeedback.model.js +1 -0
  267. package/lib/models/Filter.model.d.ts +15 -0
  268. package/lib/models/Filter.model.js +2 -0
  269. package/lib/models/Hoop.model.d.ts +15 -0
  270. package/lib/models/Hoop.model.js +18 -0
  271. package/lib/models/Navigation.model.d.ts +28 -0
  272. package/lib/models/Navigation.model.js +8 -0
  273. package/lib/models/Roles.Model.d.ts +8 -0
  274. package/lib/models/Roles.Model.js +1 -0
  275. package/lib/models/abstract/BaseModel.d.ts +17 -0
  276. package/lib/models/abstract/BaseModel.js +40 -0
  277. package/lib/models/impl/AgentActionsLogsModel.d.ts +27 -0
  278. package/lib/models/impl/AgentActionsLogsModel.js +89 -0
  279. package/lib/models/impl/AgentActionsModel.d.ts +19 -0
  280. package/lib/models/impl/AgentActionsModel.js +60 -0
  281. package/lib/models/impl/AgentScorecardModel.d.ts +66 -0
  282. package/lib/models/impl/AgentScorecardModel.js +282 -0
  283. package/lib/models/impl/AuditLogsModel.d.ts +31 -0
  284. package/lib/models/impl/AuditLogsModel.js +146 -0
  285. package/lib/models/impl/CallLogsModel.d.ts +37 -0
  286. package/lib/models/impl/CallLogsModel.js +109 -0
  287. package/lib/models/impl/CallStatisticsModel.d.ts +16 -0
  288. package/lib/models/impl/CallStatisticsModel.js +52 -0
  289. package/lib/models/impl/CategoryDetailsModel.d.ts +17 -0
  290. package/lib/models/impl/CategoryDetailsModel.js +44 -0
  291. package/lib/models/impl/MemberModel.d.ts +42 -0
  292. package/lib/models/impl/MemberModel.js +170 -0
  293. package/lib/models/impl/ModelValidationError.d.ts +6 -0
  294. package/lib/models/impl/ModelValidationError.js +15 -0
  295. package/lib/models/impl/NavigationModel.d.ts +39 -0
  296. package/lib/models/impl/NavigationModel.js +126 -0
  297. package/lib/models/impl/PerformanceStatisticsModel.d.ts +41 -0
  298. package/lib/models/impl/PerformanceStatisticsModel.js +129 -0
  299. package/lib/models/impl/PlaybackScreenrecordings.d.ts +39 -0
  300. package/lib/models/impl/PlaybackScreenrecordings.js +133 -0
  301. package/lib/models/impl/ProfileModel.d.ts +23 -0
  302. package/lib/models/impl/ProfileModel.js +102 -0
  303. package/lib/models/impl/QualityFormsModel.d.ts +39 -0
  304. package/lib/models/impl/QualityFormsModel.js +150 -0
  305. package/lib/models/impl/QuestionDetailsModel.d.ts +39 -0
  306. package/lib/models/impl/QuestionDetailsModel.js +173 -0
  307. package/lib/models/impl/QueueDetailsModel.d.ts +63 -0
  308. package/lib/models/impl/QueueDetailsModel.js +261 -0
  309. package/lib/models/impl/QueueModel.d.ts +39 -0
  310. package/lib/models/impl/QueueModel.js +156 -0
  311. package/lib/models/impl/QuickLinkModel.d.ts +24 -0
  312. package/lib/models/impl/QuickLinkModel.js +122 -0
  313. package/lib/models/impl/StatisticsNumberDetailsModel.d.ts +18 -0
  314. package/lib/models/impl/StatisticsNumberDetailsModel.js +72 -0
  315. package/lib/models/impl/StatisticsTimeDetailsModel.d.ts +18 -0
  316. package/lib/models/impl/StatisticsTimeDetailsModel.js +72 -0
  317. package/lib/models/impl/TaskAttributesModel.d.ts +31 -0
  318. package/lib/models/impl/TaskAttributesModel.js +108 -0
  319. package/lib/models/impl/TaskChannelModel.d.ts +15 -0
  320. package/lib/models/impl/TaskChannelModel.js +69 -0
  321. package/lib/models/impl/TaskComplete.d.ts +0 -0
  322. package/lib/models/impl/TaskComplete.js +1 -0
  323. package/lib/models/impl/TaskInfoPanelModel.d.ts +16 -0
  324. package/lib/models/impl/TaskInfoPanelModel.js +69 -0
  325. package/lib/models/impl/TaskModel.d.ts +59 -0
  326. package/lib/models/impl/TaskModel.js +234 -0
  327. package/lib/models/impl/WorkGroupDetailsModel.d.ts +63 -0
  328. package/lib/models/impl/WorkGroupDetailsModel.js +281 -0
  329. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.d.ts +33 -0
  330. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +140 -0
  331. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.d.ts +8 -0
  332. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +12 -0
  333. package/lib/models/impl/callbackandvoicemail/CallbackModel.d.ts +19 -0
  334. package/lib/models/impl/callbackandvoicemail/CallbackModel.js +82 -0
  335. package/lib/models/impl/callbackandvoicemail/VoicemailModel.d.ts +25 -0
  336. package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +108 -0
  337. package/lib/models/impl/channelsettings/ChannelSettingModel.d.ts +68 -0
  338. package/lib/models/impl/channelsettings/ChannelSettingModel.js +240 -0
  339. package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.d.ts +31 -0
  340. package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +106 -0
  341. package/lib/models/impl/channelsettings/TaskInfoAttributeModel.d.ts +25 -0
  342. package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +80 -0
  343. package/lib/models/impl/channelsettings/TaskInfoModel.d.ts +13 -0
  344. package/lib/models/impl/channelsettings/TaskInfoModel.js +52 -0
  345. package/lib/models/impl/cxconfig/CxConfigNamespace.d.ts +16 -0
  346. package/lib/models/impl/cxconfig/CxConfigNamespace.js +20 -0
  347. package/lib/models/impl/cxconfig/CxConfigUIConfigModel.d.ts +27 -0
  348. package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +173 -0
  349. package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.d.ts +24 -0
  350. package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +103 -0
  351. package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.d.ts +24 -0
  352. package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +149 -0
  353. package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.d.ts +27 -0
  354. package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +179 -0
  355. package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.d.ts +37 -0
  356. package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +197 -0
  357. package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.d.ts +27 -0
  358. package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +159 -0
  359. package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.d.ts +40 -0
  360. package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +128 -0
  361. package/lib/models/impl/hoop/HoopBusinessHoursModel.d.ts +39 -0
  362. package/lib/models/impl/hoop/HoopBusinessHoursModel.js +122 -0
  363. package/lib/models/impl/hoop/HoopDescriptionModel.d.ts +16 -0
  364. package/lib/models/impl/hoop/HoopDescriptionModel.js +64 -0
  365. package/lib/models/impl/hoop/HoopHolidaysImplModel.d.ts +25 -0
  366. package/lib/models/impl/hoop/HoopHolidaysImplModel.js +118 -0
  367. package/lib/models/impl/hoop/HoopNotesImplModel.d.ts +25 -0
  368. package/lib/models/impl/hoop/HoopNotesImplModel.js +117 -0
  369. package/lib/models/impl/hoop/HoopOperationsImplModel.d.ts +28 -0
  370. package/lib/models/impl/hoop/HoopOperationsImplModel.js +161 -0
  371. package/lib/models/impl/hoop/HoopOverrideImplModel.d.ts +22 -0
  372. package/lib/models/impl/hoop/HoopOverrideImplModel.js +143 -0
  373. package/lib/models/impl/hoop/HoopPartialDaysImplModel.d.ts +31 -0
  374. package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +140 -0
  375. package/lib/models/impl/hoop/HoopProfilesListImplModel.d.ts +22 -0
  376. package/lib/models/impl/hoop/HoopProfilesListImplModel.js +104 -0
  377. package/lib/models/impl/hoop/HoopWeeklyTimingModel.d.ts +22 -0
  378. package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +86 -0
  379. package/lib/models/index.d.ts +25 -0
  380. package/lib/models/index.js +53 -0
  381. package/lib/models/interface/IBaseModel.d.ts +11 -0
  382. package/lib/models/interface/IBaseModel.js +2 -0
  383. package/lib/models/types/AgentScorecard.type.d.ts +6 -0
  384. package/lib/models/types/AgentScorecard.type.js +7 -0
  385. package/lib/models/types/AuditLog.type.d.ts +13 -0
  386. package/lib/models/types/AuditLog.type.js +10 -0
  387. package/lib/models/types/CallLog.type.d.ts +16 -0
  388. package/lib/models/types/CallLog.type.js +10 -0
  389. package/lib/models/types/ChannelSetting.type.d.ts +7 -0
  390. package/lib/models/types/ChannelSetting.type.js +11 -0
  391. package/lib/models/types/CxConfig.type.d.ts +72 -0
  392. package/lib/models/types/CxConfig.type.js +43 -0
  393. package/lib/models/types/Hoop.type.d.ts +9 -0
  394. package/lib/models/types/Hoop.type.js +13 -0
  395. package/lib/models/types/Navigation.type.d.ts +11 -0
  396. package/lib/models/types/Navigation.type.js +8 -0
  397. package/lib/models/types/Profile.type.d.ts +1 -0
  398. package/lib/models/types/Profile.type.js +2 -0
  399. package/lib/models/types/QueueDetails.type.d.ts +6 -0
  400. package/lib/models/types/QueueDetails.type.js +7 -0
  401. package/lib/models/types/TaskComplete.type.d.ts +7 -0
  402. package/lib/models/types/TaskComplete.type.js +6 -0
  403. package/lib/models/types/TaskInfoPanel.type.d.ts +6 -0
  404. package/lib/models/types/TaskInfoPanel.type.js +7 -0
  405. package/lib/server.d.ts +1 -0
  406. package/lib/server.js +39 -0
  407. package/lib/twilio/abstract/ServiceObjectStore.d.ts +6 -0
  408. package/lib/twilio/abstract/ServiceObjectStore.js +10 -0
  409. package/lib/twilio/abstract/ServiceOpenRequest.d.ts +7 -0
  410. package/lib/twilio/abstract/ServiceOpenRequest.js +10 -0
  411. package/lib/twilio/abstract/ServiceRequest.d.ts +3 -0
  412. package/lib/twilio/abstract/ServiceRequest.js +7 -0
  413. package/lib/twilio/abstract/ServiceResource.d.ts +23 -0
  414. package/lib/twilio/abstract/ServiceResource.js +37 -0
  415. package/lib/twilio/abstract/ServiceResourceFactory.d.ts +15 -0
  416. package/lib/twilio/abstract/ServiceResourceFactory.js +18 -0
  417. package/lib/twilio/abstract/ServiceTransaction.d.ts +6 -0
  418. package/lib/twilio/abstract/ServiceTransaction.js +11 -0
  419. package/lib/twilio/abstract/SyncServiceItemResource.d.ts +31 -0
  420. package/lib/twilio/abstract/SyncServiceItemResource.js +60 -0
  421. package/lib/twilio/abstract/TwilioClientConfig.d.ts +0 -0
  422. package/lib/twilio/abstract/TwilioClientConfig.js +1 -0
  423. package/lib/twilio/impl/TwilioAPIKeyConfig.d.ts +14 -0
  424. package/lib/twilio/impl/TwilioAPIKeyConfig.js +31 -0
  425. package/lib/twilio/impl/TwilioAuthTokenConfig.d.ts +11 -0
  426. package/lib/twilio/impl/TwilioAuthTokenConfig.js +24 -0
  427. package/lib/twilio/impl/TwilioClient.d.ts +6 -0
  428. package/lib/twilio/impl/TwilioClient.js +21 -0
  429. package/lib/twilio/impl/message/messageService.d.ts +0 -0
  430. package/lib/twilio/impl/message/messageService.js +42 -0
  431. package/lib/twilio/impl/sync/SyncDocument.d.ts +24 -0
  432. package/lib/twilio/impl/sync/SyncDocument.js +52 -0
  433. package/lib/twilio/impl/sync/SyncDocumentTransaction.d.ts +20 -0
  434. package/lib/twilio/impl/sync/SyncDocumentTransaction.js +31 -0
  435. package/lib/twilio/impl/sync/SyncList.d.ts +24 -0
  436. package/lib/twilio/impl/sync/SyncList.js +52 -0
  437. package/lib/twilio/impl/sync/SyncListItem.d.ts +5 -0
  438. package/lib/twilio/impl/sync/SyncListItem.js +22 -0
  439. package/lib/twilio/impl/sync/SyncListTransaction.d.ts +20 -0
  440. package/lib/twilio/impl/sync/SyncListTransaction.js +31 -0
  441. package/lib/twilio/impl/sync/SyncMap.d.ts +25 -0
  442. package/lib/twilio/impl/sync/SyncMap.js +139 -0
  443. package/lib/twilio/impl/sync/SyncMapItem.d.ts +5 -0
  444. package/lib/twilio/impl/sync/SyncMapItem.js +7 -0
  445. package/lib/twilio/impl/sync/SyncMapTransaction.d.ts +22 -0
  446. package/lib/twilio/impl/sync/SyncMapTransaction.js +38 -0
  447. package/lib/twilio/impl/sync/SyncOpenRequest.d.ts +18 -0
  448. package/lib/twilio/impl/sync/SyncOpenRequest.js +24 -0
  449. package/lib/twilio/impl/sync/SyncRequest.d.ts +16 -0
  450. package/lib/twilio/impl/sync/SyncRequest.js +21 -0
  451. package/lib/twilio/impl/sync/SyncResource.d.ts +50 -0
  452. package/lib/twilio/impl/sync/SyncResource.js +97 -0
  453. package/lib/twilio/impl/sync/SyncServiceFactory.d.ts +22 -0
  454. package/lib/twilio/impl/sync/SyncServiceFactory.js +117 -0
  455. package/lib/twilio/interface/IDirection.d.ts +2 -0
  456. package/lib/twilio/interface/IDirection.js +2 -0
  457. package/lib/twilio/interface/ILink.d.ts +2 -0
  458. package/lib/twilio/interface/ILink.js +2 -0
  459. package/lib/twilio/interface/IServiceDBOpenRequest.d.ts +3 -0
  460. package/lib/twilio/interface/IServiceDBOpenRequest.js +2 -0
  461. package/lib/twilio/interface/IServiceObjectStore.d.ts +3 -0
  462. package/lib/twilio/interface/IServiceObjectStore.js +2 -0
  463. package/lib/twilio/interface/IServiceObjectStoreParameters.d.ts +4 -0
  464. package/lib/twilio/interface/IServiceObjectStoreParameters.js +2 -0
  465. package/lib/twilio/interface/IServiceRequest.d.ts +3 -0
  466. package/lib/twilio/interface/IServiceRequest.js +2 -0
  467. package/lib/twilio/interface/IServiceResource.d.ts +8 -0
  468. package/lib/twilio/interface/IServiceResource.js +2 -0
  469. package/lib/twilio/interface/IServiceTransation.d.ts +3 -0
  470. package/lib/twilio/interface/IServiceTransation.js +2 -0
  471. package/lib/twilio/interface/ISubResourceUri.d.ts +2 -0
  472. package/lib/twilio/interface/ISubResourceUri.js +2 -0
  473. package/lib/twilio/interface/ISyncItemData.d.ts +0 -0
  474. package/lib/twilio/interface/ISyncItemData.js +1 -0
  475. package/lib/twilio/interface/ISyncObjectStoreParameters.d.ts +0 -0
  476. package/lib/twilio/interface/ISyncObjectStoreParameters.js +1 -0
  477. package/lib/twilio/interface/ISyncTransactionOptions.d.ts +4 -0
  478. package/lib/twilio/interface/ISyncTransactionOptions.js +2 -0
  479. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TwilioAPIKeyConfig = void 0;
4
+ const IDatabaseConfig_1 = require("../../common/interface/IDatabaseConfig");
5
+ class TwilioAPIKeyConfig {
6
+ constructor(accountSid, apiKey, apiSecret) {
7
+ this.type = IDatabaseConfig_1.DatabaseTypes.TwilioSync;
8
+ this.accountSid = accountSid;
9
+ this.apiKey = apiKey;
10
+ this.apiSecret = apiSecret;
11
+ }
12
+ set apiKey(value) {
13
+ this._apiKey = value;
14
+ }
15
+ get apiKey() {
16
+ return this._apiKey;
17
+ }
18
+ set apiSecret(value) {
19
+ this._apiSecret = value;
20
+ }
21
+ get apiSecret() {
22
+ return this._apiSecret;
23
+ }
24
+ set accountSid(value) {
25
+ this._accountSid = value;
26
+ }
27
+ get accountSid() {
28
+ return this._accountSid;
29
+ }
30
+ }
31
+ exports.TwilioAPIKeyConfig = TwilioAPIKeyConfig;
@@ -0,0 +1,11 @@
1
+ import { DatabaseTypes, IDatabaseClientConfig } from "../../common/interface/IDatabaseConfig";
2
+ export declare class TwilioAuthTokenConfig implements IDatabaseClientConfig {
3
+ type: DatabaseTypes;
4
+ private _accountSid;
5
+ private _authToken;
6
+ constructor(accountSid: string, authToken: string);
7
+ get accountSid(): string;
8
+ set accountSid(value: string);
9
+ get authToken(): string;
10
+ set authToken(value: string);
11
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TwilioAuthTokenConfig = void 0;
4
+ const IDatabaseConfig_1 = require("../../common/interface/IDatabaseConfig");
5
+ class TwilioAuthTokenConfig {
6
+ constructor(accountSid, authToken) {
7
+ this.type = IDatabaseConfig_1.DatabaseTypes.TwilioSync;
8
+ this.accountSid = accountSid;
9
+ this.authToken = authToken;
10
+ }
11
+ get accountSid() {
12
+ return this._accountSid;
13
+ }
14
+ set accountSid(value) {
15
+ this._accountSid = value;
16
+ }
17
+ get authToken() {
18
+ return this._authToken;
19
+ }
20
+ set authToken(value) {
21
+ this._authToken = value;
22
+ }
23
+ }
24
+ exports.TwilioAuthTokenConfig = TwilioAuthTokenConfig;
@@ -0,0 +1,6 @@
1
+ import { DatabaseClient } from "../../common/abstract/DatabaseClient";
2
+ import { TwilioAuthTokenConfig } from "./TwilioAuthTokenConfig";
3
+ import { TwilioAPIKeyConfig } from "./TwilioAPIKeyConfig";
4
+ export declare class TwilioClient extends DatabaseClient {
5
+ constructor(twilioClientConfig: TwilioAPIKeyConfig | TwilioAuthTokenConfig);
6
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TwilioClient = void 0;
4
+ const twilio_1 = require("twilio");
5
+ const DatabaseClient_1 = require("../../common/abstract/DatabaseClient");
6
+ const TwilioAuthTokenConfig_1 = require("./TwilioAuthTokenConfig");
7
+ const TwilioAPIKeyConfig_1 = require("./TwilioAPIKeyConfig");
8
+ class TwilioClient extends DatabaseClient_1.DatabaseClient {
9
+ constructor(twilioClientConfig) {
10
+ super(twilioClientConfig);
11
+ if (twilioClientConfig instanceof TwilioAPIKeyConfig_1.TwilioAPIKeyConfig) {
12
+ const _twilioAPIKeyConfig = twilioClientConfig;
13
+ this.databaseInstance = new twilio_1.Twilio(_twilioAPIKeyConfig.apiKey, _twilioAPIKeyConfig.apiSecret, { accountSid: _twilioAPIKeyConfig.accountSid });
14
+ }
15
+ if (twilioClientConfig instanceof TwilioAuthTokenConfig_1.TwilioAuthTokenConfig) {
16
+ const _twilioAPIKeyConfig = twilioClientConfig;
17
+ this.databaseInstance = new twilio_1.Twilio(_twilioAPIKeyConfig.accountSid, _twilioAPIKeyConfig.authToken);
18
+ }
19
+ }
20
+ }
21
+ exports.TwilioClient = TwilioClient;
File without changes
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ // import { IDatabase } from "../../../common/interface/IDatabase";
3
+ // import { AbstractServiceResource } from "../../abstract/ServiceResource";
4
+ // import { InterfaceSubResourceUris } from "../../interface/ISubResourceUri";
5
+ // export class MessageService extends AbstractServiceResource {
6
+ // connect(): Promise<IDatabase> {
7
+ // throw new Error("Method not implemented.");
8
+ // }
9
+ // disconnect(): void {
10
+ // throw new Error("Method not implemented.");
11
+ // }
12
+ // create(): Promise<IDatabase> {
13
+ // throw new Error("Method not implemented.");
14
+ // }
15
+ // datasets(): Promise<IDataset[]> {
16
+ // throw new Error("Method not implemented.");
17
+ // }
18
+ // update(): Promise<IDatabase> {
19
+ // throw new Error("Method not implemented.");
20
+ // }
21
+ // delete(): void {
22
+ // throw new Error("Method not implemented.");
23
+ // }
24
+ // apiVersion?: string;
25
+ // body?: string;
26
+ // dateSent?: Date;
27
+ // errorCode?: string;
28
+ // errorMessage?: string;
29
+ // from?: string;
30
+ // messagingServiceSid?: string;
31
+ // numMedia?: number;
32
+ // numSegments?: string;
33
+ // price?: string;
34
+ // priceUnit?: string;
35
+ // status?: string;
36
+ // subresourceUris?: InterfaceSubResourceUris
37
+ // to?: string;
38
+ // uri?: string;
39
+ // }
40
+ // // interface
41
+ // // create
42
+ // //update the attributes as private accessor
@@ -0,0 +1,24 @@
1
+ import { SearchParameterType } from "../../../common/type/SearchParameterType";
2
+ import { ServiceObjectStore } from "../../abstract/ServiceObjectStore";
3
+ export declare class SyncDocument extends ServiceObjectStore {
4
+ constructor(name: string, transaction: IDBTransaction, autoIncrement?: boolean, indexNames?: DOMStringList, keyPath?: string);
5
+ add(value: any, key?: IDBValidKey | undefined): IDBRequest<IDBValidKey>;
6
+ clear(): IDBRequest<undefined>;
7
+ count(query?: IDBValidKey | IDBKeyRange | undefined): IDBRequest<number>;
8
+ createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters | undefined): IDBIndex;
9
+ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters | undefined): IDBIndex;
10
+ createIndex(name: unknown, keyPath: unknown, options?: unknown): IDBIndex;
11
+ delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
12
+ delete(query: IDBValidKey | IDBKeyRange): Promise<IDBRequest<undefined>>;
13
+ deleteIndex(name: string): void;
14
+ get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
15
+ getAll(query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined): IDBRequest<any[]>;
16
+ getAll(query?: IDBValidKey | IDBKeyRange | SearchParameterType | null | undefined, count?: number | undefined): Promise<IDBRequest<any[]>>;
17
+ getAllKeys(query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined): IDBRequest<IDBValidKey[]>;
18
+ getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
19
+ index(name: string): IDBIndex;
20
+ openCursor(query?: IDBValidKey | IDBKeyRange | null | undefined, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursorWithValue | null>;
21
+ openKeyCursor(query?: IDBValidKey | IDBKeyRange | null | undefined, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursor | null>;
22
+ put(value: any, key?: IDBValidKey | undefined): IDBRequest<IDBValidKey>;
23
+ put(value: Object, key: IDBValidKey): Promise<IDBRequest<IDBValidKey>>;
24
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncDocument = void 0;
4
+ const ServiceObjectStore_1 = require("../../abstract/ServiceObjectStore");
5
+ class SyncDocument extends ServiceObjectStore_1.ServiceObjectStore {
6
+ constructor(name, transaction, autoIncrement, indexNames, keyPath) {
7
+ super(name, transaction, autoIncrement, indexNames, keyPath);
8
+ }
9
+ add(value, key) {
10
+ throw new Error("Method not implemented.");
11
+ }
12
+ clear() {
13
+ throw new Error("Method not implemented.");
14
+ }
15
+ count(query) {
16
+ throw new Error("Method not implemented.");
17
+ }
18
+ createIndex(name, keyPath, options) {
19
+ throw new Error("Method not implemented.");
20
+ }
21
+ delete(query) {
22
+ throw new Error("Method not implemented.");
23
+ }
24
+ deleteIndex(name) {
25
+ throw new Error("Method not implemented.");
26
+ }
27
+ get(query) {
28
+ throw new Error("Method not implemented.");
29
+ }
30
+ getAll(query, count) {
31
+ throw new Error("Method not implemented.");
32
+ }
33
+ getAllKeys(query, count) {
34
+ throw new Error("Method not implemented.");
35
+ }
36
+ getKey(query) {
37
+ throw new Error("Method not implemented.");
38
+ }
39
+ index(name) {
40
+ throw new Error("Method not implemented.");
41
+ }
42
+ openCursor(query, direction) {
43
+ throw new Error("Method not implemented.");
44
+ }
45
+ openKeyCursor(query, direction) {
46
+ throw new Error("Method not implemented.");
47
+ }
48
+ put(value, key) {
49
+ throw new Error("Method not implemented.");
50
+ }
51
+ }
52
+ exports.SyncDocument = SyncDocument;
@@ -0,0 +1,20 @@
1
+ import { ServiceTransaction } from "../../abstract/ServiceTransaction";
2
+ import { IServiceObjectStore } from "../../interface/IServiceObjectStore";
3
+ import { IServiceResource } from "../../interface/IServiceResource";
4
+ import { IServiceTransaction } from "../../interface/IServiceTransation";
5
+ export declare class SyncDocumentTransaction extends ServiceTransaction {
6
+ constructor(db: IServiceResource, mode: IDBTransactionMode, error?: DOMException | null, objectStoreNames?: DOMStringList, durability?: IDBTransactionDurability);
7
+ onabort: ((this: IDBTransaction, ev: Event) => any) | null;
8
+ oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
9
+ onerror: ((this: IDBTransaction, ev: Event) => any) | null;
10
+ abort(): void;
11
+ commit(): void;
12
+ objectStore(name: string): IServiceObjectStore;
13
+ addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IServiceTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
14
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
15
+ addEventListener(type: unknown, listener: unknown, options?: unknown): void;
16
+ removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IServiceTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
17
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
18
+ removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
19
+ dispatchEvent(event: Event): boolean;
20
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncDocumentTransaction = void 0;
4
+ const ServiceTransaction_1 = require("../../abstract/ServiceTransaction");
5
+ class SyncDocumentTransaction extends ServiceTransaction_1.ServiceTransaction {
6
+ constructor(db, mode, error, objectStoreNames, durability) {
7
+ super(db, mode, error, objectStoreNames, durability);
8
+ this.onabort = null;
9
+ this.oncomplete = null;
10
+ this.onerror = null;
11
+ }
12
+ abort() {
13
+ throw new Error("Method not implemented.");
14
+ }
15
+ commit() {
16
+ throw new Error("Method not implemented.");
17
+ }
18
+ objectStore(name) {
19
+ throw new Error("Method not implemented.");
20
+ }
21
+ addEventListener(type, listener, options) {
22
+ throw new Error("Method not implemented.");
23
+ }
24
+ removeEventListener(type, listener, options) {
25
+ throw new Error("Method not implemented.");
26
+ }
27
+ dispatchEvent(event) {
28
+ throw new Error("Method not implemented.");
29
+ }
30
+ }
31
+ exports.SyncDocumentTransaction = SyncDocumentTransaction;
@@ -0,0 +1,24 @@
1
+ import { SearchParameterType } from "../../../common/type/SearchParameterType";
2
+ import { ServiceObjectStore } from "../../abstract/ServiceObjectStore";
3
+ export declare class SyncList extends ServiceObjectStore {
4
+ constructor(name: string, transaction: IDBTransaction, autoIncrement?: boolean, indexNames?: DOMStringList, keyPath?: string);
5
+ add(value: any, key?: IDBValidKey | undefined): IDBRequest<IDBValidKey>;
6
+ clear(): IDBRequest<undefined>;
7
+ count(query?: IDBValidKey | IDBKeyRange | undefined): IDBRequest<number>;
8
+ createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters | undefined): IDBIndex;
9
+ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters | undefined): IDBIndex;
10
+ createIndex(name: unknown, keyPath: unknown, options?: unknown): IDBIndex;
11
+ delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
12
+ delete(query: IDBValidKey | IDBKeyRange): Promise<IDBRequest<undefined>>;
13
+ deleteIndex(name: string): void;
14
+ get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
15
+ getAll(query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined): IDBRequest<any[]>;
16
+ getAll(query?: IDBValidKey | IDBKeyRange | SearchParameterType | null | undefined, count?: number | undefined): Promise<IDBRequest<any[]>>;
17
+ getAllKeys(query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined): IDBRequest<IDBValidKey[]>;
18
+ getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
19
+ index(name: string): IDBIndex;
20
+ openCursor(query?: IDBValidKey | IDBKeyRange | null | undefined, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursorWithValue | null>;
21
+ openKeyCursor(query?: IDBValidKey | IDBKeyRange | null | undefined, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursor | null>;
22
+ put(value: any, key?: IDBValidKey | undefined): IDBRequest<IDBValidKey>;
23
+ put(value: Object, key: IDBValidKey): Promise<IDBRequest<IDBValidKey>>;
24
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncList = void 0;
4
+ const ServiceObjectStore_1 = require("../../abstract/ServiceObjectStore");
5
+ class SyncList extends ServiceObjectStore_1.ServiceObjectStore {
6
+ constructor(name, transaction, autoIncrement, indexNames, keyPath) {
7
+ super(name, transaction, autoIncrement, indexNames, keyPath);
8
+ }
9
+ add(value, key) {
10
+ throw new Error("Method not implemented.");
11
+ }
12
+ clear() {
13
+ throw new Error("Method not implemented.");
14
+ }
15
+ count(query) {
16
+ throw new Error("Method not implemented.");
17
+ }
18
+ createIndex(name, keyPath, options) {
19
+ throw new Error("Method not implemented.");
20
+ }
21
+ delete(query) {
22
+ throw new Error("Method not implemented.");
23
+ }
24
+ deleteIndex(name) {
25
+ throw new Error("Method not implemented.");
26
+ }
27
+ get(query) {
28
+ throw new Error("Method not implemented.");
29
+ }
30
+ getAll(query, count) {
31
+ throw new Error("Method not implemented.");
32
+ }
33
+ getAllKeys(query, count) {
34
+ throw new Error("Method not implemented.");
35
+ }
36
+ getKey(query) {
37
+ throw new Error("Method not implemented.");
38
+ }
39
+ index(name) {
40
+ throw new Error("Method not implemented.");
41
+ }
42
+ openCursor(query, direction) {
43
+ throw new Error("Method not implemented.");
44
+ }
45
+ openKeyCursor(query, direction) {
46
+ throw new Error("Method not implemented.");
47
+ }
48
+ put(value, key) {
49
+ throw new Error("Method not implemented.");
50
+ }
51
+ }
52
+ exports.SyncList = SyncList;
@@ -0,0 +1,5 @@
1
+ import { SyncServiceItemResource } from "../../abstract/SyncServiceItemResource";
2
+ export declare class SyncListItems extends SyncServiceItemResource {
3
+ listSid: string;
4
+ index: number;
5
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncListItems = void 0;
4
+ const SyncServiceItemResource_1 = require("../../abstract/SyncServiceItemResource");
5
+ class SyncListItems extends SyncServiceItemResource_1.SyncServiceItemResource {
6
+ }
7
+ exports.SyncListItems = SyncListItems;
8
+ // Server
9
+ // Database1 IDatabase
10
+ // table1 IDatabaseOperations
11
+ // record1
12
+ // table2
13
+ // record1
14
+ // Database2
15
+ // Sync - server / database IDatabaseFactory //flex2-1
16
+ // Document - table / Records IDatabase
17
+ // List1 - Table1 IDatabaseObjectStore
18
+ // ListItem1 - record1
19
+ // Map - Table // gpm
20
+ // MapItem - record // gpm-1 , gpm-2 use uuidv4
21
+ // IDBDatabase - database, creates Database - is it IDatabaseFactory
22
+ // IDBObjectStore - Table IDatabase
@@ -0,0 +1,20 @@
1
+ import { ServiceTransaction } from "../../abstract/ServiceTransaction";
2
+ import { IServiceObjectStore } from "../../interface/IServiceObjectStore";
3
+ import { IServiceResource } from "../../interface/IServiceResource";
4
+ import { IServiceTransaction } from "../../interface/IServiceTransation";
5
+ export declare class SyncListTransaction extends ServiceTransaction {
6
+ constructor(db: IServiceResource, mode: IDBTransactionMode, error?: DOMException | null, objectStoreNames?: DOMStringList, durability?: IDBTransactionDurability);
7
+ onabort: ((this: IDBTransaction, ev: Event) => any) | null;
8
+ oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
9
+ onerror: ((this: IDBTransaction, ev: Event) => any) | null;
10
+ abort(): void;
11
+ commit(): void;
12
+ objectStore(name: string): IServiceObjectStore;
13
+ addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IServiceTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
14
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
15
+ addEventListener(type: unknown, listener: unknown, options?: unknown): void;
16
+ removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IServiceTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
17
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
18
+ removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
19
+ dispatchEvent(event: Event): boolean;
20
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncListTransaction = void 0;
4
+ const ServiceTransaction_1 = require("../../abstract/ServiceTransaction");
5
+ class SyncListTransaction extends ServiceTransaction_1.ServiceTransaction {
6
+ constructor(db, mode, error, objectStoreNames, durability) {
7
+ super(db, mode, error, objectStoreNames, durability);
8
+ this.onabort = null;
9
+ this.oncomplete = null;
10
+ this.onerror = null;
11
+ }
12
+ abort() {
13
+ throw new Error("Method not implemented.");
14
+ }
15
+ commit() {
16
+ throw new Error("Method not implemented.");
17
+ }
18
+ objectStore(name) {
19
+ throw new Error("Method not implemented.");
20
+ }
21
+ addEventListener(type, listener, options) {
22
+ throw new Error("Method not implemented.");
23
+ }
24
+ removeEventListener(type, listener, options) {
25
+ throw new Error("Method not implemented.");
26
+ }
27
+ dispatchEvent(event) {
28
+ throw new Error("Method not implemented.");
29
+ }
30
+ }
31
+ exports.SyncListTransaction = SyncListTransaction;
@@ -0,0 +1,25 @@
1
+ import { SearchParameterType } from "../../../common/type/SearchParameterType";
2
+ import { ServiceObjectStore } from "../../abstract/ServiceObjectStore";
3
+ export declare class SyncMap extends ServiceObjectStore {
4
+ constructor(name: string, transaction?: IDBTransaction, autoIncrement?: boolean, indexNames?: DOMStringList, keyPath?: string);
5
+ getMap(): IDBRequest<any>;
6
+ add(value: any, key?: IDBValidKey | undefined, ttl?: Number | undefined): IDBRequest<IDBValidKey>;
7
+ clear(): IDBRequest<undefined>;
8
+ count(query?: IDBValidKey | IDBKeyRange | undefined): IDBRequest<number>;
9
+ createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters | undefined): IDBIndex;
10
+ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters | undefined): IDBIndex;
11
+ createIndex(name: unknown, keyPath: unknown, options?: unknown): IDBIndex;
12
+ delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
13
+ delete(query: IDBValidKey | IDBKeyRange): Promise<IDBRequest<undefined>>;
14
+ deleteIndex(name: string): void;
15
+ get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
16
+ getAll(query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined): IDBRequest<any[]>;
17
+ getAll(query: SearchParameterType, count?: number | undefined): Promise<IDBRequest<any[]>>;
18
+ getAllKeys(query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined): IDBRequest<IDBValidKey[]>;
19
+ getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
20
+ index(name: string): IDBIndex;
21
+ openCursor(query?: IDBValidKey | IDBKeyRange | null | undefined, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursorWithValue | null>;
22
+ openKeyCursor(query?: IDBValidKey | IDBKeyRange | null | undefined, direction?: IDBCursorDirection | undefined): IDBRequest<IDBCursor | null>;
23
+ put(value: any, key?: IDBValidKey | undefined): IDBRequest<IDBValidKey>;
24
+ put(value: Object, key: IDBValidKey): Promise<IDBRequest<IDBValidKey>>;
25
+ }
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncMap = void 0;
4
+ const pagination_1 = require("../../../common/utils/pagination");
5
+ const sort_1 = require("../../../common/utils/sort");
6
+ const search_1 = require("../../../common/utils/search");
7
+ const newFilter_1 = require("../../../common/utils/newFilter");
8
+ const dateFormat_1 = require("../../../common/utils/dateFormat");
9
+ const ServiceObjectStore_1 = require("../../abstract/ServiceObjectStore");
10
+ const SyncMapTransaction_1 = require("./SyncMapTransaction");
11
+ const Filter_1 = require("../../../common/abstract/Filter");
12
+ class SyncMap extends ServiceObjectStore_1.ServiceObjectStore {
13
+ constructor(name, transaction, autoIncrement, indexNames, keyPath) {
14
+ super(name, transaction, autoIncrement, indexNames, keyPath);
15
+ }
16
+ getMap() {
17
+ return SyncMapTransaction_1.SyncMapTransaction.syncMapInstance.fetch().then((map) => {
18
+ return map;
19
+ });
20
+ }
21
+ add(value, key, ttl) {
22
+ console.log('value ', value, key);
23
+ return SyncMapTransaction_1.SyncMapTransaction.syncMapInstance.syncMapItems.create({ key: key, data: value, ttl: ttl });
24
+ }
25
+ clear() {
26
+ throw new Error("Method not implemented.");
27
+ }
28
+ count(query) {
29
+ throw new Error("Method not implemented.");
30
+ }
31
+ createIndex(name, keyPath, options) {
32
+ throw new Error("Method not implemented.");
33
+ }
34
+ delete(query) {
35
+ return SyncMapTransaction_1.SyncMapTransaction.syncMapInstance.syncMapItems(query).remove().then((mapItem) => {
36
+ console.log('delete map item ', mapItem);
37
+ return "success";
38
+ }).catch((error) => {
39
+ throw error;
40
+ });
41
+ }
42
+ deleteIndex(name) {
43
+ throw new Error("Method not implemented.");
44
+ }
45
+ get(query) {
46
+ return SyncMapTransaction_1.SyncMapTransaction.syncMapInstance.syncMapItems(query).fetch().then((mapItem) => {
47
+ return mapItem.data;
48
+ });
49
+ }
50
+ getAll(query, count) {
51
+ return SyncMapTransaction_1.SyncMapTransaction.syncMapInstance.syncMapItems.list().then((mapItems) => {
52
+ let items = mapItems.map((item) => item.data);
53
+ let totalPages = 0;
54
+ if (query && typeof query === 'object' && "sortOptions" in query) {
55
+ let sortBy;
56
+ let direction;
57
+ if (typeof query.sortOptions === "string") {
58
+ query.sortOptions = JSON.parse(query.sortOptions);
59
+ }
60
+ if (Array.isArray(query.sortOptions)) {
61
+ query.sortOptions.forEach(item => {
62
+ if (Object.keys(item)[0] && item[Object.keys(item)[0]]) {
63
+ sortBy = Object.keys(item)[0];
64
+ direction = item[Object.keys(item)[0]].toUpperCase() === 'ASC' ? true : false;
65
+ }
66
+ items = (0, sort_1.sortData)(items, sortBy, direction);
67
+ });
68
+ }
69
+ else if (query.sortOptions) {
70
+ let sortOptions;
71
+ sortOptions = query.sortOptions;
72
+ Object.keys(query.sortOptions).forEach(item => {
73
+ if (sortOptions[item]) {
74
+ sortBy = item;
75
+ direction = sortOptions[item].toUpperCase() === 'ASC' ? true : false;
76
+ }
77
+ items = (0, sort_1.sortData)(items, sortBy, direction);
78
+ });
79
+ }
80
+ }
81
+ let filterOptions = null;
82
+ if (query && typeof query === 'object' && "allowedFields" in query) {
83
+ filterOptions = Filter_1.Filter.generateFilterOptions(items, query.allowedFields);
84
+ }
85
+ if (query && typeof query === 'object' && ("timezone" in query || "dateFormat" in query || "timeFormat" in query)) {
86
+ let timezone = "timezone" in query ? query.timezone : "";
87
+ let dateFormat = "dateFormat" in query ? query.dateFormat : "";
88
+ let timeFormat = "timeFormat" in query ? query.timeFormat : "";
89
+ items = (0, dateFormat_1.dateFormatData)(items, dateFormat, timeFormat, timezone);
90
+ }
91
+ if (query && typeof query === "object" && "filters" in query && "category" in query) {
92
+ let filters = query.filters;
93
+ let category = typeof query.category === "string" ? query.category : "";
94
+ items = (0, newFilter_1.filterData)(items, filters, category);
95
+ }
96
+ if (query && typeof query === 'object' && "searchOptions" in query && query.searchOptions) {
97
+ let searchOptions = typeof query === 'object' && "searchOptions" in query ? query.searchOptions : "";
98
+ items = (0, search_1.searchData)(items, searchOptions);
99
+ }
100
+ // if (query && typeof query === 'object' && "filters" in query && query.filters) {
101
+ // let filters: any = typeof query === 'object' && "filters" in query ? query.filters : "";
102
+ // // console.log("filtered data:::", typeof JSON.parse(filters));
103
+ // items = filterData(items, filters)
104
+ // }
105
+ if (query && typeof query === 'object' && "itemsPerPage" in query) {
106
+ let itemsPerPage = typeof query === 'object' && "itemsPerPage" in query ? query.itemsPerPage : 5;
107
+ let pageNo = typeof query === 'object' && "pageNo" in query ? query.pageNo : 1;
108
+ totalPages = (items.length !== 0) && ((itemsPerPage < items.length) || (itemsPerPage > items.length)) ? Math.ceil(items.length / itemsPerPage) : 1;
109
+ items = (0, pagination_1.paginateData)(items, itemsPerPage, pageNo);
110
+ }
111
+ return {
112
+ totalPages,
113
+ items,
114
+ filterOptions
115
+ };
116
+ });
117
+ }
118
+ getAllKeys(query, count) {
119
+ throw new Error("Method not implemented.");
120
+ }
121
+ getKey(query) {
122
+ throw new Error("Method not implemented.");
123
+ }
124
+ index(name) {
125
+ throw new Error("Method not implemented.");
126
+ }
127
+ openCursor(query, direction) {
128
+ throw new Error("Method not implemented.");
129
+ }
130
+ openKeyCursor(query, direction) {
131
+ throw new Error("Method not implemented.");
132
+ }
133
+ put(value, key) {
134
+ return SyncMapTransaction_1.SyncMapTransaction.syncMapInstance.syncMapItems(key).update({ data: value }).then((mapItem) => {
135
+ return mapItem.key;
136
+ });
137
+ }
138
+ }
139
+ exports.SyncMap = SyncMap;
@@ -0,0 +1,5 @@
1
+ import { SyncServiceItemResource } from "../../abstract/SyncServiceItemResource";
2
+ export declare class SyncMapItem extends SyncServiceItemResource {
3
+ key: string;
4
+ sid: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncMapItem = void 0;
4
+ const SyncServiceItemResource_1 = require("../../abstract/SyncServiceItemResource");
5
+ class SyncMapItem extends SyncServiceItemResource_1.SyncServiceItemResource {
6
+ }
7
+ exports.SyncMapItem = SyncMapItem;
@@ -0,0 +1,22 @@
1
+ import { ServiceTransaction } from "../../abstract/ServiceTransaction";
2
+ import { IServiceResource } from "../../interface/IServiceResource";
3
+ import { IServiceTransaction } from "../../interface/IServiceTransation";
4
+ import { SyncMap } from "./SyncMap";
5
+ export declare class SyncMapTransaction extends ServiceTransaction {
6
+ private static _syncMapInstance;
7
+ constructor(db: IServiceResource, mode: IDBTransactionMode, error?: DOMException | null, objectStoreNames?: DOMStringList, durability?: IDBTransactionDurability);
8
+ static get syncMapInstance(): any;
9
+ onabort: ((this: IDBTransaction, ev: Event) => any) | null;
10
+ oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
11
+ onerror: ((this: IDBTransaction, ev: Event) => any) | null;
12
+ abort(): void;
13
+ commit(): void;
14
+ objectStore(name: string): SyncMap;
15
+ addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IServiceTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
16
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
17
+ addEventListener(type: unknown, listener: unknown, options?: unknown): void;
18
+ removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IServiceTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
19
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
20
+ removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
21
+ dispatchEvent(event: Event): boolean;
22
+ }