hgs-twilio-class-lib 1.1.53 → 1.1.55

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 (480) hide show
  1. package/lib/aws/abstract/ServiceObjectStore.d.ts +9 -0
  2. package/lib/aws/abstract/ServiceObjectStore.js +10 -1
  3. package/lib/aws/abstract/ServiceOpenRequest.d.ts +7 -0
  4. package/lib/aws/abstract/ServiceOpenRequest.js +10 -1
  5. package/lib/aws/abstract/ServiceRequest.d.ts +3 -0
  6. package/lib/aws/abstract/ServiceRequest.js +7 -1
  7. package/lib/aws/abstract/ServiceResource.d.ts +20 -0
  8. package/lib/aws/abstract/ServiceResource.js +31 -1
  9. package/lib/aws/abstract/ServiceResourceFactory.d.ts +13 -0
  10. package/lib/aws/abstract/ServiceResourceFactory.js +14 -1
  11. package/lib/aws/abstract/ServiceTransaction.d.ts +6 -0
  12. package/lib/aws/abstract/ServiceTransaction.js +11 -1
  13. package/lib/aws/impl/AWSAPIConfig.d.ts +14 -0
  14. package/lib/aws/impl/AWSAPIConfig.js +38 -1
  15. package/lib/aws/impl/AWSClient.d.ts +5 -0
  16. package/lib/aws/impl/AWSClient.js +21 -1
  17. package/lib/aws/impl/AWSConnectAPIConfig.d.ts +17 -0
  18. package/lib/aws/impl/AWSConnectAPIConfig.js +38 -1
  19. package/lib/aws/impl/DynamoDB/DynamoOpenRequest.d.ts +18 -0
  20. package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +24 -1
  21. package/lib/aws/impl/DynamoDB/DynamoRequest.d.ts +16 -0
  22. package/lib/aws/impl/DynamoDB/DynamoRequest.js +21 -1
  23. package/lib/aws/impl/DynamoDB/DynamoResourse.d.ts +29 -0
  24. package/lib/aws/impl/DynamoDB/DynamoResourse.js +45 -1
  25. package/lib/aws/impl/DynamoDB/DynamoServiceFactory.d.ts +16 -0
  26. package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +63 -1
  27. package/lib/aws/impl/DynamoDB/DynamoTable.d.ts +26 -0
  28. package/lib/aws/impl/DynamoDB/DynamoTable.js +126 -1
  29. package/lib/aws/impl/DynamoDB/DynamoTransaction.d.ts +21 -0
  30. package/lib/aws/impl/DynamoDB/DynamoTransaction.js +37 -1
  31. package/lib/aws/impl/HoopServices/HoopService.d.ts +28 -0
  32. package/lib/aws/impl/HoopServices/HoopService.js +124 -1
  33. package/lib/aws/impl/HoopServices/HoopServiceFactory.d.ts +17 -0
  34. package/lib/aws/impl/HoopServices/HoopServiceFactory.js +53 -1
  35. package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.d.ts +18 -0
  36. package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +24 -1
  37. package/lib/aws/impl/HoopServices/HoopServiceResource.d.ts +29 -0
  38. package/lib/aws/impl/HoopServices/HoopServiceResource.js +46 -1
  39. package/lib/aws/impl/HoopServices/HoopServiceTransaction.d.ts +22 -0
  40. package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +37 -1
  41. package/lib/aws/interface/IDirection.d.ts +2 -0
  42. package/lib/aws/interface/IDirection.js +2 -1
  43. package/lib/aws/interface/ILink.d.ts +2 -0
  44. package/lib/aws/interface/ILink.js +2 -1
  45. package/lib/aws/interface/IServiceDBOpenRequest.d.ts +3 -0
  46. package/lib/aws/interface/IServiceDBOpenRequest.js +2 -1
  47. package/lib/aws/interface/IServiceObjectStore.d.ts +3 -0
  48. package/lib/aws/interface/IServiceObjectStore.js +2 -1
  49. package/lib/aws/interface/IServiceObjectStoreParameters.d.ts +4 -0
  50. package/lib/aws/interface/IServiceObjectStoreParameters.js +2 -1
  51. package/lib/aws/interface/IServiceRequest.d.ts +3 -0
  52. package/lib/aws/interface/IServiceRequest.js +2 -1
  53. package/lib/aws/interface/IServiceResource.d.ts +7 -0
  54. package/lib/aws/interface/IServiceResource.js +2 -1
  55. package/lib/aws/interface/IServiceTransation.d.ts +3 -0
  56. package/lib/aws/interface/IServiceTransation.js +2 -1
  57. package/lib/aws/interface/ISubResourceUri.d.ts +2 -0
  58. package/lib/aws/interface/ISubResourceUri.js +2 -1
  59. package/lib/aws/interface/ISyncItemData.d.ts +0 -0
  60. package/lib/aws/interface/ISyncItemData.js +1 -1
  61. package/lib/aws/interface/ISyncObjectStoreParameters.d.ts +0 -0
  62. package/lib/aws/interface/ISyncObjectStoreParameters.js +1 -1
  63. package/lib/aws/interface/ISyncTransactionOptions.d.ts +4 -0
  64. package/lib/aws/interface/ISyncTransactionOptions.js +2 -1
  65. package/lib/common/abstract/CommonError.d.ts +8 -0
  66. package/lib/common/abstract/CommonError.js +12 -1
  67. package/lib/common/abstract/Database.d.ts +44 -0
  68. package/lib/common/abstract/Database.js +58 -1
  69. package/lib/common/abstract/DatabaseClient.d.ts +11 -0
  70. package/lib/common/abstract/DatabaseClient.js +21 -1
  71. package/lib/common/abstract/DatabaseClientConfig.d.ts +5 -0
  72. package/lib/common/abstract/DatabaseClientConfig.js +9 -1
  73. package/lib/common/abstract/DatabaseFactory.d.ts +70 -0
  74. package/lib/common/abstract/DatabaseFactory.js +32 -1
  75. package/lib/common/abstract/DatabaseObjectStore.d.ts +29 -0
  76. package/lib/common/abstract/DatabaseObjectStore.js +13 -1
  77. package/lib/common/abstract/DatabaseOpenRequest.d.ts +24 -0
  78. package/lib/common/abstract/DatabaseOpenRequest.js +13 -1
  79. package/lib/common/abstract/DatabaseRequest.d.ts +21 -0
  80. package/lib/common/abstract/DatabaseRequest.js +14 -1
  81. package/lib/common/abstract/DatabaseTransaction.d.ts +22 -0
  82. package/lib/common/abstract/DatabaseTransaction.js +13 -1
  83. package/lib/common/abstract/Filter.d.ts +12 -0
  84. package/lib/common/abstract/Filter.js +30 -1
  85. package/lib/common/enum/ErrorTypes.d.ts +4 -0
  86. package/lib/common/enum/ErrorTypes.js +9 -1
  87. package/lib/common/enum/FilterTypes.d.ts +10 -0
  88. package/lib/common/enum/FilterTypes.js +14 -1
  89. package/lib/common/interface/IDatabaesInfo.d.ts +2 -0
  90. package/lib/common/interface/IDatabaesInfo.js +2 -1
  91. package/lib/common/interface/IDatabase.d.ts +4 -0
  92. package/lib/common/interface/IDatabase.js +2 -1
  93. package/lib/common/interface/IDatabaseClient.d.ts +5 -0
  94. package/lib/common/interface/IDatabaseClient.js +2 -1
  95. package/lib/common/interface/IDatabaseConfig.d.ts +8 -0
  96. package/lib/common/interface/IDatabaseConfig.js +10 -1
  97. package/lib/common/interface/IDatabaseDBOpenRequest.d.ts +2 -0
  98. package/lib/common/interface/IDatabaseDBOpenRequest.js +2 -1
  99. package/lib/common/interface/IDatabaseFactory.d.ts +21 -0
  100. package/lib/common/interface/IDatabaseFactory.js +2 -1
  101. package/lib/common/interface/IDatabaseObjectStore.d.ts +2 -0
  102. package/lib/common/interface/IDatabaseObjectStore.js +2 -1
  103. package/lib/common/interface/IDatabaseObjectStoreParameters.d.ts +2 -0
  104. package/lib/common/interface/IDatabaseObjectStoreParameters.js +2 -1
  105. package/lib/common/interface/IDatabaseRecord.d.ts +2 -0
  106. package/lib/common/interface/IDatabaseRecord.js +2 -1
  107. package/lib/common/interface/IDatabaseRequest.d.ts +2 -0
  108. package/lib/common/interface/IDatabaseRequest.js +2 -1
  109. package/lib/common/interface/IDatabaseTransaction.d.ts +2 -0
  110. package/lib/common/interface/IDatabaseTransaction.js +2 -1
  111. package/lib/common/interface/IDatabaseTransactionOptions.d.ts +2 -0
  112. package/lib/common/interface/IDatabaseTransactionOptions.js +2 -1
  113. package/lib/common/interface/IError.d.ts +5 -0
  114. package/lib/common/interface/IError.js +2 -1
  115. package/lib/common/interface/IErrorDetails.d.ts +6 -0
  116. package/lib/common/interface/IErrorDetails.js +2 -1
  117. package/lib/common/interface/IFilter.d.ts +25 -0
  118. package/lib/common/interface/IFilter.js +2 -1
  119. package/lib/common/type/DatabaseReadyType.d.ts +1 -0
  120. package/lib/common/type/DatabaseReadyType.js +2 -1
  121. package/lib/common/type/FilterInputType.d.ts +1 -0
  122. package/lib/common/type/FilterInputType.js +2 -1
  123. package/lib/common/type/SearchParameterType.d.ts +15 -0
  124. package/lib/common/type/SearchParameterType.js +3 -1
  125. package/lib/common/utils/dateFormat.d.ts +1 -0
  126. package/lib/common/utils/dateFormat.js +58 -1
  127. package/lib/common/utils/filter.d.ts +1 -0
  128. package/lib/common/utils/filter.js +99 -1
  129. package/lib/common/utils/newFilter.d.ts +1 -0
  130. package/lib/common/utils/newFilter.js +126 -1
  131. package/lib/common/utils/pagination.d.ts +1 -0
  132. package/lib/common/utils/pagination.js +9 -1
  133. package/lib/common/utils/search.d.ts +1 -0
  134. package/lib/common/utils/search.js +14 -1
  135. package/lib/common/utils/sort.d.ts +1 -0
  136. package/lib/common/utils/sort.js +13 -1
  137. package/lib/config/AWSConfig.d.ts +6 -0
  138. package/lib/config/AWSConfig.js +9 -1
  139. package/lib/config/DatabaseConfig.d.ts +33 -0
  140. package/lib/config/DatabaseConfig.js +36 -1
  141. package/lib/config/TwilioConfig.d.ts +4 -0
  142. package/lib/config/TwilioConfig.js +7 -1
  143. package/lib/controller/Common.d.ts +20 -0
  144. package/lib/controller/Common.js +57 -1
  145. package/lib/controller/DatabaseFactoryCollection.d.ts +6 -0
  146. package/lib/controller/DatabaseFactoryCollection.js +14 -1
  147. package/lib/controller/MainController.d.ts +6 -0
  148. package/lib/controller/MainController.js +174 -1
  149. package/lib/controller/aws/HoopBuisnessHours.d.ts +23 -0
  150. package/lib/controller/aws/HoopBuisnessHours.js +408 -1
  151. package/lib/controller/aws/HoopOperationsController.d.ts +9 -0
  152. package/lib/controller/aws/HoopOperationsController.js +86 -1
  153. package/lib/controller/aws/HoopOverrideBranchesController.d.ts +7 -0
  154. package/lib/controller/aws/HoopOverrideBranchesController.js +40 -1
  155. package/lib/controller/aws/HoopProfilesListController.d.ts +8 -0
  156. package/lib/controller/aws/HoopProfilesListController.js +61 -1
  157. package/lib/controller/aws/PlaybackScreenrecordings.d.ts +9 -0
  158. package/lib/controller/aws/PlaybackScreenrecordings.js +63 -1
  159. package/lib/controller/twilio/AgentActionsController.d.ts +54 -0
  160. package/lib/controller/twilio/AgentActionsController.js +177 -1
  161. package/lib/controller/twilio/AgentScorecardController.d.ts +53 -0
  162. package/lib/controller/twilio/AgentScorecardController.js +173 -1
  163. package/lib/controller/twilio/AuditLogController.d.ts +15 -0
  164. package/lib/controller/twilio/AuditLogController.js +137 -1
  165. package/lib/controller/twilio/CallLogsController.d.ts +12 -0
  166. package/lib/controller/twilio/CallLogsController.js +131 -1
  167. package/lib/controller/twilio/CallbackAndVoicemailController.d.ts +12 -0
  168. package/lib/controller/twilio/CallbackAndVoicemailController.js +114 -1
  169. package/lib/controller/twilio/ChannelSettingTaskInfoController.d.ts +11 -0
  170. package/lib/controller/twilio/ChannelSettingTaskInfoController.js +117 -1
  171. package/lib/controller/twilio/ChannelSettingsController.d.ts +16 -0
  172. package/lib/controller/twilio/ChannelSettingsController.js +142 -1
  173. package/lib/controller/twilio/CxConfigAssetController.d.ts +12 -0
  174. package/lib/controller/twilio/CxConfigAssetController.js +128 -1
  175. package/lib/controller/twilio/CxConfigController.d.ts +18 -0
  176. package/lib/controller/twilio/CxConfigController.js +112 -1
  177. package/lib/controller/twilio/CxConfigExternalNumbersController.d.ts +12 -0
  178. package/lib/controller/twilio/CxConfigExternalNumbersController.js +138 -1
  179. package/lib/controller/twilio/CxConfigOther.d.ts +16 -0
  180. package/lib/controller/twilio/CxConfigOther.js +128 -1
  181. package/lib/controller/twilio/CxConfigQueueMenuController.d.ts +12 -0
  182. package/lib/controller/twilio/CxConfigQueueMenuController.js +129 -1
  183. package/lib/controller/twilio/CxConfigUIconfigController.d.ts +12 -0
  184. package/lib/controller/twilio/CxConfigUIconfigController.js +132 -1
  185. package/lib/controller/twilio/GPMController.d.ts +12 -0
  186. package/lib/controller/twilio/GPMController.js +151 -1
  187. package/lib/controller/twilio/HoopBusinessHoursController.d.ts +18 -0
  188. package/lib/controller/twilio/HoopBusinessHoursController.js +285 -1
  189. package/lib/controller/twilio/HoopHolidaysController.d.ts +14 -0
  190. package/lib/controller/twilio/HoopHolidaysController.js +150 -1
  191. package/lib/controller/twilio/HoopMainController.d.ts +13 -0
  192. package/lib/controller/twilio/HoopMainController.js +297 -1
  193. package/lib/controller/twilio/HoopNotesController.d.ts +14 -0
  194. package/lib/controller/twilio/HoopNotesController.js +149 -1
  195. package/lib/controller/twilio/HoopOperationsController.d.ts +14 -0
  196. package/lib/controller/twilio/HoopOperationsController.js +138 -1
  197. package/lib/controller/twilio/HoopOverrideBranchesController.d.ts +14 -0
  198. package/lib/controller/twilio/HoopOverrideBranchesController.js +137 -1
  199. package/lib/controller/twilio/HoopPartialDaysController.d.ts +14 -0
  200. package/lib/controller/twilio/HoopPartialDaysController.js +150 -1
  201. package/lib/controller/twilio/HoopProfilesListController.d.ts +14 -0
  202. package/lib/controller/twilio/HoopProfilesListController.js +147 -1
  203. package/lib/controller/twilio/NavigationController.d.ts +13 -0
  204. package/lib/controller/twilio/NavigationController.js +170 -1
  205. package/lib/controller/twilio/QualityFormsController.d.ts +12 -0
  206. package/lib/controller/twilio/QualityFormsController.js +129 -1
  207. package/lib/controller/twilio/QuickLinkController.d.ts +11 -0
  208. package/lib/controller/twilio/QuickLinkController.js +122 -1
  209. package/lib/controller/twilio/RealTimeReportQueueDetailsController.d.ts +14 -0
  210. package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +126 -1
  211. package/lib/controller/twilio/RealTimeReportsWGDetailsController.d.ts +53 -0
  212. package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +160 -1
  213. package/lib/controller/twilio/TaskInfoPanelController.d.ts +15 -0
  214. package/lib/controller/twilio/TaskInfoPanelController.js +134 -1
  215. package/lib/controller/twilio/filterImpl/AgentScorecardFilter.d.ts +12 -0
  216. package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +52 -1
  217. package/lib/controller/twilio/filterImpl/AuditLogsFilter.d.ts +12 -0
  218. package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +89 -1
  219. package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.d.ts +12 -0
  220. package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +81 -1
  221. package/lib/controller/twilio/filterImpl/CallLogsFilter.d.ts +20 -0
  222. package/lib/controller/twilio/filterImpl/CallLogsFilter.js +101 -1
  223. package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.d.ts +12 -0
  224. package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +59 -1
  225. package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.d.ts +12 -0
  226. package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +67 -1
  227. package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.d.ts +14 -0
  228. package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +52 -1
  229. package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.d.ts +17 -0
  230. package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +78 -1
  231. package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.d.ts +12 -0
  232. package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +51 -1
  233. package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.d.ts +12 -0
  234. package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +55 -1
  235. package/lib/controller/twilio/filterImpl/HoopNotesFilter.d.ts +12 -0
  236. package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +51 -1
  237. package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +12 -0
  238. package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +55 -1
  239. package/lib/controller/twilio/filterImpl/MainFilterService.d.ts +4 -0
  240. package/lib/controller/twilio/filterImpl/MainFilterService.js +108 -1
  241. package/lib/controller/twilio/filterImpl/NavigationFilter.d.ts +20 -0
  242. package/lib/controller/twilio/filterImpl/NavigationFilter.js +90 -1
  243. package/lib/controller/twilio/filterImpl/QueueDetailsFilter.d.ts +14 -0
  244. package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +53 -1
  245. package/lib/controller/twilio/filterImpl/TaskCompleteFilter.d.ts +12 -0
  246. package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +62 -1
  247. package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.d.ts +12 -0
  248. package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +52 -1
  249. package/lib/express/ApiResponse.d.ts +15 -0
  250. package/lib/express/ApiResponse.js +11 -1
  251. package/lib/express/RequestValidator.d.ts +50 -0
  252. package/lib/express/RequestValidator.js +77 -1
  253. package/lib/express/RequireParamsPicker.d.ts +7 -0
  254. package/lib/express/RequireParamsPicker.js +14 -1
  255. package/lib/express/ValidateRequireParameters.d.ts +3 -0
  256. package/lib/express/ValidateRequireParameters.js +39 -1
  257. package/lib/index.d.ts +39 -0
  258. package/lib/index.js +100 -1
  259. package/lib/models/BatchUpdateSkills.model.d.ts +0 -0
  260. package/lib/models/BatchUpdateSkills.model.js +11 -1
  261. package/lib/models/CannedMessage.model.d.ts +4 -0
  262. package/lib/models/CannedMessage.model.js +1 -1
  263. package/lib/models/ChannelSettingsTaskInfo.model.d.ts +87 -0
  264. package/lib/models/ChannelSettingsTaskInfo.model.js +1 -1
  265. package/lib/models/CustomerFeedback.model.d.ts +9 -0
  266. package/lib/models/CustomerFeedback.model.js +1 -1
  267. package/lib/models/Filter.model.d.ts +15 -0
  268. package/lib/models/Filter.model.js +2 -1
  269. package/lib/models/Hoop.model.d.ts +9 -0
  270. package/lib/models/Hoop.model.js +9 -1
  271. package/lib/models/Navigation.model.d.ts +28 -0
  272. package/lib/models/Navigation.model.js +8 -1
  273. package/lib/models/Roles.Model.d.ts +8 -0
  274. package/lib/models/Roles.Model.js +1 -1
  275. package/lib/models/abstract/BaseModel.d.ts +17 -0
  276. package/lib/models/abstract/BaseModel.js +40 -1
  277. package/lib/models/impl/AgentActionsLogsModel.d.ts +27 -0
  278. package/lib/models/impl/AgentActionsLogsModel.js +89 -1
  279. package/lib/models/impl/AgentActionsModel.d.ts +19 -0
  280. package/lib/models/impl/AgentActionsModel.js +60 -1
  281. package/lib/models/impl/AgentScorecardModel.d.ts +66 -0
  282. package/lib/models/impl/AgentScorecardModel.js +282 -1
  283. package/lib/models/impl/AuditLogsModel.d.ts +31 -0
  284. package/lib/models/impl/AuditLogsModel.js +146 -1
  285. package/lib/models/impl/CallLogsModel.d.ts +37 -0
  286. package/lib/models/impl/CallLogsModel.js +109 -1
  287. package/lib/models/impl/CallStatisticsModel.d.ts +16 -0
  288. package/lib/models/impl/CallStatisticsModel.js +52 -1
  289. package/lib/models/impl/CategoryDetailsModel.d.ts +17 -0
  290. package/lib/models/impl/CategoryDetailsModel.js +44 -1
  291. package/lib/models/impl/MemberModel.d.ts +42 -0
  292. package/lib/models/impl/MemberModel.js +170 -1
  293. package/lib/models/impl/ModelValidationError.d.ts +6 -0
  294. package/lib/models/impl/ModelValidationError.js +15 -1
  295. package/lib/models/impl/NavigationModel.d.ts +39 -0
  296. package/lib/models/impl/NavigationModel.js +126 -1
  297. package/lib/models/impl/PerformanceStatisticsModel.d.ts +41 -0
  298. package/lib/models/impl/PerformanceStatisticsModel.js +129 -1
  299. package/lib/models/impl/PlaybackScreenrecordings.d.ts +39 -0
  300. package/lib/models/impl/PlaybackScreenrecordings.js +133 -1
  301. package/lib/models/impl/ProfileModel.d.ts +23 -0
  302. package/lib/models/impl/ProfileModel.js +102 -1
  303. package/lib/models/impl/QualityFormsModel.d.ts +39 -0
  304. package/lib/models/impl/QualityFormsModel.js +150 -1
  305. package/lib/models/impl/QuestionDetailsModel.d.ts +39 -0
  306. package/lib/models/impl/QuestionDetailsModel.js +173 -1
  307. package/lib/models/impl/QueueDetailsModel.d.ts +63 -0
  308. package/lib/models/impl/QueueDetailsModel.js +261 -1
  309. package/lib/models/impl/QueueModel.d.ts +39 -0
  310. package/lib/models/impl/QueueModel.js +156 -1
  311. package/lib/models/impl/QuickLinkModel.d.ts +24 -0
  312. package/lib/models/impl/QuickLinkModel.js +122 -1
  313. package/lib/models/impl/StatisticsNumberDetailsModel.d.ts +18 -0
  314. package/lib/models/impl/StatisticsNumberDetailsModel.js +72 -1
  315. package/lib/models/impl/StatisticsTimeDetailsModel.d.ts +18 -0
  316. package/lib/models/impl/StatisticsTimeDetailsModel.js +72 -1
  317. package/lib/models/impl/TaskAttributesModel.d.ts +31 -0
  318. package/lib/models/impl/TaskAttributesModel.js +108 -1
  319. package/lib/models/impl/TaskChannelModel.d.ts +15 -0
  320. package/lib/models/impl/TaskChannelModel.js +69 -1
  321. package/lib/models/impl/TaskComplete.d.ts +0 -0
  322. package/lib/models/impl/TaskComplete.js +1 -1
  323. package/lib/models/impl/TaskInfoPanelModel.d.ts +16 -0
  324. package/lib/models/impl/TaskInfoPanelModel.js +69 -1
  325. package/lib/models/impl/TaskModel.d.ts +59 -0
  326. package/lib/models/impl/TaskModel.js +234 -1
  327. package/lib/models/impl/WorkGroupDetailsModel.d.ts +63 -0
  328. package/lib/models/impl/WorkGroupDetailsModel.js +281 -1
  329. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.d.ts +33 -0
  330. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +140 -1
  331. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.d.ts +8 -0
  332. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +12 -1
  333. package/lib/models/impl/callbackandvoicemail/CallbackModel.d.ts +19 -0
  334. package/lib/models/impl/callbackandvoicemail/CallbackModel.js +82 -1
  335. package/lib/models/impl/callbackandvoicemail/VoicemailModel.d.ts +25 -0
  336. package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +108 -1
  337. package/lib/models/impl/channelsettings/ChannelSettingModel.d.ts +68 -0
  338. package/lib/models/impl/channelsettings/ChannelSettingModel.js +240 -1
  339. package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.d.ts +31 -0
  340. package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +106 -1
  341. package/lib/models/impl/channelsettings/TaskInfoAttributeModel.d.ts +25 -0
  342. package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +80 -1
  343. package/lib/models/impl/channelsettings/TaskInfoModel.d.ts +13 -0
  344. package/lib/models/impl/channelsettings/TaskInfoModel.js +52 -1
  345. package/lib/models/impl/cxconfig/CxConfigNamespace.d.ts +16 -0
  346. package/lib/models/impl/cxconfig/CxConfigNamespace.js +20 -1
  347. package/lib/models/impl/cxconfig/CxConfigUIConfigModel.d.ts +27 -0
  348. package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +173 -1
  349. package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.d.ts +24 -0
  350. package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +103 -1
  351. package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.d.ts +24 -0
  352. package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +149 -1
  353. package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.d.ts +27 -0
  354. package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +179 -1
  355. package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.d.ts +40 -0
  356. package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +213 -1
  357. package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.d.ts +27 -0
  358. package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +159 -1
  359. package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.d.ts +40 -0
  360. package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +128 -1
  361. package/lib/models/impl/hoop/HoopBusinessHoursModel.d.ts +39 -0
  362. package/lib/models/impl/hoop/HoopBusinessHoursModel.js +122 -1
  363. package/lib/models/impl/hoop/HoopDescriptionModel.d.ts +16 -0
  364. package/lib/models/impl/hoop/HoopDescriptionModel.js +64 -1
  365. package/lib/models/impl/hoop/HoopHolidaysImplModel.d.ts +25 -0
  366. package/lib/models/impl/hoop/HoopHolidaysImplModel.js +118 -1
  367. package/lib/models/impl/hoop/HoopNotesImplModel.d.ts +25 -0
  368. package/lib/models/impl/hoop/HoopNotesImplModel.js +117 -1
  369. package/lib/models/impl/hoop/HoopOperationsImplModel.d.ts +28 -0
  370. package/lib/models/impl/hoop/HoopOperationsImplModel.js +161 -1
  371. package/lib/models/impl/hoop/HoopOverrideImplModel.d.ts +22 -0
  372. package/lib/models/impl/hoop/HoopOverrideImplModel.js +143 -1
  373. package/lib/models/impl/hoop/HoopPartialDaysImplModel.d.ts +31 -0
  374. package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +140 -1
  375. package/lib/models/impl/hoop/HoopProfilesListImplModel.d.ts +22 -0
  376. package/lib/models/impl/hoop/HoopProfilesListImplModel.js +104 -1
  377. package/lib/models/impl/hoop/HoopWeeklyTimingModel.d.ts +22 -0
  378. package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +86 -1
  379. package/lib/models/index.d.ts +25 -0
  380. package/lib/models/index.js +53 -1
  381. package/lib/models/interface/IBaseModel.d.ts +11 -0
  382. package/lib/models/interface/IBaseModel.js +2 -1
  383. package/lib/models/types/AgentScorecard.type.d.ts +6 -0
  384. package/lib/models/types/AgentScorecard.type.js +7 -1
  385. package/lib/models/types/AuditLog.type.d.ts +13 -0
  386. package/lib/models/types/AuditLog.type.js +10 -1
  387. package/lib/models/types/CallLog.type.d.ts +16 -0
  388. package/lib/models/types/CallLog.type.js +10 -1
  389. package/lib/models/types/ChannelSetting.type.d.ts +7 -0
  390. package/lib/models/types/ChannelSetting.type.js +11 -1
  391. package/lib/models/types/CxConfig.type.d.ts +72 -0
  392. package/lib/models/types/CxConfig.type.js +43 -1
  393. package/lib/models/types/Hoop.type.d.ts +9 -0
  394. package/lib/models/types/Hoop.type.js +13 -1
  395. package/lib/models/types/Navigation.type.d.ts +11 -0
  396. package/lib/models/types/Navigation.type.js +8 -1
  397. package/lib/models/types/Profile.type.d.ts +1 -0
  398. package/lib/models/types/Profile.type.js +2 -1
  399. package/lib/models/types/QueueDetails.type.d.ts +6 -0
  400. package/lib/models/types/QueueDetails.type.js +7 -1
  401. package/lib/models/types/TaskComplete.type.d.ts +7 -0
  402. package/lib/models/types/TaskComplete.type.js +6 -1
  403. package/lib/models/types/TaskInfoPanel.type.d.ts +6 -0
  404. package/lib/models/types/TaskInfoPanel.type.js +7 -1
  405. package/lib/server.d.ts +1 -0
  406. package/lib/server.js +39 -1
  407. package/lib/twilio/abstract/ServiceObjectStore.d.ts +6 -0
  408. package/lib/twilio/abstract/ServiceObjectStore.js +10 -1
  409. package/lib/twilio/abstract/ServiceOpenRequest.d.ts +7 -0
  410. package/lib/twilio/abstract/ServiceOpenRequest.js +10 -1
  411. package/lib/twilio/abstract/ServiceRequest.d.ts +3 -0
  412. package/lib/twilio/abstract/ServiceRequest.js +7 -1
  413. package/lib/twilio/abstract/ServiceResource.d.ts +23 -0
  414. package/lib/twilio/abstract/ServiceResource.js +37 -1
  415. package/lib/twilio/abstract/ServiceResourceFactory.d.ts +15 -0
  416. package/lib/twilio/abstract/ServiceResourceFactory.js +18 -1
  417. package/lib/twilio/abstract/ServiceTransaction.d.ts +6 -0
  418. package/lib/twilio/abstract/ServiceTransaction.js +11 -1
  419. package/lib/twilio/abstract/SyncServiceItemResource.d.ts +31 -0
  420. package/lib/twilio/abstract/SyncServiceItemResource.js +60 -1
  421. package/lib/twilio/abstract/TwilioClientConfig.d.ts +0 -0
  422. package/lib/twilio/abstract/TwilioClientConfig.js +1 -1
  423. package/lib/twilio/impl/TwilioAPIKeyConfig.d.ts +14 -0
  424. package/lib/twilio/impl/TwilioAPIKeyConfig.js +31 -1
  425. package/lib/twilio/impl/TwilioAuthTokenConfig.d.ts +11 -0
  426. package/lib/twilio/impl/TwilioAuthTokenConfig.js +24 -1
  427. package/lib/twilio/impl/TwilioClient.d.ts +6 -0
  428. package/lib/twilio/impl/TwilioClient.js +21 -1
  429. package/lib/twilio/impl/message/messageService.d.ts +0 -0
  430. package/lib/twilio/impl/message/messageService.js +42 -1
  431. package/lib/twilio/impl/sync/SyncDocument.d.ts +24 -0
  432. package/lib/twilio/impl/sync/SyncDocument.js +52 -1
  433. package/lib/twilio/impl/sync/SyncDocumentTransaction.d.ts +20 -0
  434. package/lib/twilio/impl/sync/SyncDocumentTransaction.js +31 -1
  435. package/lib/twilio/impl/sync/SyncList.d.ts +24 -0
  436. package/lib/twilio/impl/sync/SyncList.js +52 -1
  437. package/lib/twilio/impl/sync/SyncListItem.d.ts +5 -0
  438. package/lib/twilio/impl/sync/SyncListItem.js +22 -1
  439. package/lib/twilio/impl/sync/SyncListTransaction.d.ts +20 -0
  440. package/lib/twilio/impl/sync/SyncListTransaction.js +31 -1
  441. package/lib/twilio/impl/sync/SyncMap.d.ts +25 -0
  442. package/lib/twilio/impl/sync/SyncMap.js +139 -1
  443. package/lib/twilio/impl/sync/SyncMapItem.d.ts +5 -0
  444. package/lib/twilio/impl/sync/SyncMapItem.js +7 -1
  445. package/lib/twilio/impl/sync/SyncMapTransaction.d.ts +22 -0
  446. package/lib/twilio/impl/sync/SyncMapTransaction.js +38 -1
  447. package/lib/twilio/impl/sync/SyncOpenRequest.d.ts +18 -0
  448. package/lib/twilio/impl/sync/SyncOpenRequest.js +24 -1
  449. package/lib/twilio/impl/sync/SyncRequest.d.ts +16 -0
  450. package/lib/twilio/impl/sync/SyncRequest.js +21 -1
  451. package/lib/twilio/impl/sync/SyncResource.d.ts +50 -0
  452. package/lib/twilio/impl/sync/SyncResource.js +97 -1
  453. package/lib/twilio/impl/sync/SyncServiceFactory.d.ts +22 -0
  454. package/lib/twilio/impl/sync/SyncServiceFactory.js +117 -1
  455. package/lib/twilio/interface/IDirection.d.ts +2 -0
  456. package/lib/twilio/interface/IDirection.js +2 -1
  457. package/lib/twilio/interface/ILink.d.ts +2 -0
  458. package/lib/twilio/interface/ILink.js +2 -1
  459. package/lib/twilio/interface/IServiceDBOpenRequest.d.ts +3 -0
  460. package/lib/twilio/interface/IServiceDBOpenRequest.js +2 -1
  461. package/lib/twilio/interface/IServiceObjectStore.d.ts +3 -0
  462. package/lib/twilio/interface/IServiceObjectStore.js +2 -1
  463. package/lib/twilio/interface/IServiceObjectStoreParameters.d.ts +4 -0
  464. package/lib/twilio/interface/IServiceObjectStoreParameters.js +2 -1
  465. package/lib/twilio/interface/IServiceRequest.d.ts +3 -0
  466. package/lib/twilio/interface/IServiceRequest.js +2 -1
  467. package/lib/twilio/interface/IServiceResource.d.ts +8 -0
  468. package/lib/twilio/interface/IServiceResource.js +2 -1
  469. package/lib/twilio/interface/IServiceTransation.d.ts +3 -0
  470. package/lib/twilio/interface/IServiceTransation.js +2 -1
  471. package/lib/twilio/interface/ISubResourceUri.d.ts +2 -0
  472. package/lib/twilio/interface/ISubResourceUri.js +2 -1
  473. package/lib/twilio/interface/ISyncItemData.d.ts +0 -0
  474. package/lib/twilio/interface/ISyncItemData.js +1 -1
  475. package/lib/twilio/interface/ISyncObjectStoreParameters.d.ts +0 -0
  476. package/lib/twilio/interface/ISyncObjectStoreParameters.js +1 -1
  477. package/lib/twilio/interface/ISyncTransactionOptions.d.ts +4 -0
  478. package/lib/twilio/interface/ISyncTransactionOptions.js +2 -1
  479. package/package.json +9 -5
  480. package/lib/models/abstract/BaseModelOld.js +0 -1
@@ -1 +1,146 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuditLogModel=void 0;const e=require("../abstract/BaseModel"),t=require("uuid");class i extends e.BaseModel{constructor(e,t,i,r,s,a,o,n){super(),this._id=e,this._workerSid=t,this._fieldName=i,this._category=r,this._date=s,this._oldValue=a,this._newValue=o,this._action=n,this.validateData()}get id(){return this._id}get workerSid(){return this._workerSid}get fieldName(){return this._fieldName}get category(){return this._category}get date(){return this._date}get oldValue(){return this._oldValue}get newValue(){return this._newValue}get action(){return this._action}set id(e){if(!(0,t.validate)(e))throw new Error("Invalid ID format.");this._id=e}set workerSid(e){if("string"!=typeof e||""===e.trim())throw new Error("workerSid must be a non-empty string.");this._workerSid=e}set fieldName(e){if("string"!=typeof e||""===e.trim())throw new Error("fieldName must be a non-empty string.");this._fieldName=e}set category(e){if("string"!=typeof e||""===e.trim())throw new Error("category must be a non-empty string.");this._category=e}set date(e){if(!(e instanceof Date)||isNaN(e.getTime()))throw new Error("Invalid date value.");this._date=e}set oldValue(e){if("string"!=typeof e&&null!==e)throw new Error("oldValue must be a string or null.");this._oldValue=e}set newValue(e){if("string"!=typeof e&&""!==e)throw new Error("newValue must be a string or null.");this._newValue=e}set action(e){if(!["create","edit","delete"].includes(e))throw new Error("Invalid action value.");this._action=e}validateData(){this.validationMessages=[];const e={id:e=>"string"==typeof e&&(0,t.validate)(e),workerSid:e=>"string"==typeof e&&""!==e.trim(),fieldName:e=>"string"==typeof e&&""!==e.trim(),category:e=>"string"==typeof e&&""!==e.trim(),date:e=>e instanceof Date&&!isNaN(e.getTime()),oldValue:e=>"string"==typeof e||null===e,newValue:e=>"string"==typeof e||null===e,action:e=>["create","edit","delete"].includes(e)};for(const t in e){(0,e[t])(this[t])||this.setValidationMessages({type:"Error",fieldDescription:t,message:`${t} is invalid.`})}return this.validationMessages}setValidationMessages(e){this.validationMessages.push(e)}}exports.AuditLogModel=i;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuditLogModel = void 0;
4
+ const BaseModel_1 = require("../abstract/BaseModel");
5
+ const uuid_1 = require("uuid");
6
+ class AuditLogModel extends BaseModel_1.BaseModel {
7
+ constructor(id, workerSid, fieldName, category, date, oldValue, newValue, action) {
8
+ super();
9
+ // Initialize private attributes
10
+ this._id = id;
11
+ this._workerSid = workerSid;
12
+ this._fieldName = fieldName;
13
+ this._category = category;
14
+ this._date = date;
15
+ this._oldValue = oldValue;
16
+ this._newValue = newValue;
17
+ this._action = action;
18
+ this.validateData();
19
+ }
20
+ // Getters
21
+ get id() {
22
+ return this._id;
23
+ }
24
+ get workerSid() {
25
+ return this._workerSid;
26
+ }
27
+ get fieldName() {
28
+ return this._fieldName;
29
+ }
30
+ get category() {
31
+ return this._category;
32
+ }
33
+ get date() {
34
+ return this._date;
35
+ }
36
+ get oldValue() {
37
+ return this._oldValue;
38
+ }
39
+ get newValue() {
40
+ return this._newValue;
41
+ }
42
+ get action() {
43
+ return this._action;
44
+ }
45
+ // Setters
46
+ set id(value) {
47
+ if (!(0, uuid_1.validate)(value)) {
48
+ throw new Error("Invalid ID format.");
49
+ }
50
+ this._id = value;
51
+ }
52
+ set workerSid(value) {
53
+ if (typeof value !== "string" || value.trim() === "") {
54
+ throw new Error("workerSid must be a non-empty string.");
55
+ }
56
+ this._workerSid = value;
57
+ }
58
+ set fieldName(value) {
59
+ if (typeof value !== "string" || value.trim() === "") {
60
+ throw new Error("fieldName must be a non-empty string.");
61
+ }
62
+ this._fieldName = value;
63
+ }
64
+ set category(value) {
65
+ if (typeof value !== "string" || value.trim() === "") {
66
+ throw new Error("category must be a non-empty string.");
67
+ }
68
+ this._category = value;
69
+ }
70
+ set date(value) {
71
+ if (!(value instanceof Date) || isNaN(value.getTime())) {
72
+ throw new Error("Invalid date value.");
73
+ }
74
+ this._date = value;
75
+ }
76
+ set oldValue(value) {
77
+ if (typeof value !== "string" && value !== null) {
78
+ throw new Error("oldValue must be a string or null.");
79
+ }
80
+ this._oldValue = value;
81
+ }
82
+ set newValue(value) {
83
+ if (typeof value !== "string" && value !== "") {
84
+ throw new Error("newValue must be a string or null.");
85
+ }
86
+ this._newValue = value;
87
+ }
88
+ set action(value) {
89
+ if (!["create", "edit", "delete"].includes(value)) {
90
+ throw new Error("Invalid action value.");
91
+ }
92
+ this._action = value;
93
+ }
94
+ // Validation logic
95
+ validateData() {
96
+ this.validationMessages = [];
97
+ const validationRules = {
98
+ id: (value) => typeof value === "string" && (0, uuid_1.validate)(value),
99
+ workerSid: (value) => typeof value === "string" && value.trim() !== "",
100
+ fieldName: (value) => typeof value === "string" && value.trim() !== "",
101
+ category: (value) => typeof value === "string" && value.trim() !== "",
102
+ date: (value) => value instanceof Date && !isNaN(value.getTime()),
103
+ oldValue: (value) => typeof value === "string" || value === null,
104
+ newValue: (value) => typeof value === "string" || value === null,
105
+ action: (value) => ["create", "edit", "delete"].includes(value),
106
+ };
107
+ for (const key in validationRules) {
108
+ const validator = validationRules[key];
109
+ const value = this[key];
110
+ if (!validator(value)) {
111
+ this.setValidationMessages({
112
+ type: "Error",
113
+ fieldDescription: key,
114
+ message: `${key} is invalid.`,
115
+ });
116
+ }
117
+ }
118
+ return this.validationMessages;
119
+ }
120
+ setValidationMessages(message) {
121
+ this.validationMessages.push(message);
122
+ }
123
+ }
124
+ exports.AuditLogModel = AuditLogModel;
125
+ // var auditLog = new AuditLogModel("b84f9268-3c34-4e33-a4d9-c8f3154",
126
+ // "",
127
+ // "",
128
+ // "status",
129
+ // new Date(),
130
+ // "",
131
+ // "closed",
132
+ // "edit"
133
+ // );
134
+ // console.log(auditLog.validationMessages);
135
+ // console.log(auditLog.serialize);
136
+ // auditLog.deserialize({
137
+ // id: 'b84f9268-3c34-4e33-a4d9-c8f3154',
138
+ // workerSid: '',
139
+ // fieldName: '',
140
+ // category: 'status',
141
+ // date: "2025-01-03T18:22:30.135Z",
142
+ // oldValue: '',
143
+ // newValue: 'closed',
144
+ // action: 'edit'
145
+ // })
146
+ // console.log(auditLog);
@@ -0,0 +1,37 @@
1
+ import { BaseModel } from "../abstract/BaseModel";
2
+ import { validationMessage } from "../interface/IBaseModel";
3
+ import { hangUpType } from "../types/CallLog.type";
4
+ export declare class CallLogsModel extends BaseModel {
5
+ private _id;
6
+ private _uniqueName;
7
+ private _disposition;
8
+ private _fromNumber;
9
+ private _toNumber;
10
+ private _start;
11
+ private _end;
12
+ private _duration;
13
+ private _hangUpDirection;
14
+ private _callSid;
15
+ constructor(id: string, uniqueName: string, disposition: string | null, fromNumber: string | null, toNumber: string | null, start: Date | undefined, end: Date | undefined, duration: number, hangUpDirection: hangUpType, callSid: string | null);
16
+ get id(): string;
17
+ set id(value: string);
18
+ get uniqueName(): string;
19
+ set uniqueName(value: string);
20
+ get disposition(): string | null;
21
+ set disposition(value: string | null);
22
+ get fromNumber(): string | null;
23
+ set fromNumber(value: string | null);
24
+ get toNumber(): string | null;
25
+ set toNumber(value: string | null);
26
+ get start(): Date | undefined;
27
+ set start(value: Date | undefined);
28
+ get end(): Date | undefined;
29
+ set end(value: Date | undefined);
30
+ get duration(): number;
31
+ set duration(value: number);
32
+ get hangUpDirection(): hangUpType;
33
+ set hangUpDirection(value: hangUpType);
34
+ get callSid(): string | null;
35
+ set callSid(value: string | null);
36
+ validateData(): validationMessage[];
37
+ }
@@ -1 +1,109 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.CallLogsModel=void 0;const t=require("../abstract/BaseModel"),i=require("uuid");class e extends t.BaseModel{constructor(t,i,e,s,r,n,o,a,u,d){super(),this._id=t,this._uniqueName=i,this._disposition=e,this._fromNumber=s,this._toNumber=r,this._start=n,this._end=o,this._duration=a,this._hangUpDirection=u,this._callSid=d}get id(){return this._id}set id(t){this._id=t}get uniqueName(){return this._uniqueName}set uniqueName(t){this._uniqueName=t}get disposition(){return this._disposition}set disposition(t){this._disposition=t}get fromNumber(){return this._fromNumber}set fromNumber(t){this._fromNumber=t}get toNumber(){return this._toNumber}set toNumber(t){this._toNumber=t}get start(){return this._start}set start(t){this._start=t}get end(){return this._end}set end(t){this._end=t}get duration(){return this._duration}set duration(t){this._duration=t}get hangUpDirection(){return this._hangUpDirection}set hangUpDirection(t){this._hangUpDirection=t}get callSid(){return this._callSid}set callSid(t){this._callSid=t}validateData(){this.validationMessages=[];const t={id:t=>"string"==typeof t&&(0,i.validate)(t),disposition:t=>null===t||"string"==typeof t&&""!==t.trim(),fromNumber:t=>null===t||"string"==typeof t&&""!==t.trim(),toNumber:t=>null===t||"string"==typeof t&&""!==t.trim(),start:t=>!isNaN(new Date(t).getTime()),end:t=>!isNaN(new Date(t).getTime()),duration:t=>"number"==typeof t&&t>=0,hangUpDirection:t=>"string"==typeof t&&""!==t.trim(),callSid:t=>null===t||"string"==typeof t&&""!==t.trim()};for(const i in t){(0,t[i])(this[`_${i}`])||this.validationMessages.push({type:"Error",fieldDescription:i,message:`${i} is not valid`})}return this.validationMessages}}exports.CallLogsModel=e;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CallLogsModel = void 0;
4
+ const BaseModel_1 = require("../abstract/BaseModel");
5
+ const uuid_1 = require("uuid");
6
+ class CallLogsModel extends BaseModel_1.BaseModel {
7
+ constructor(id, uniqueName, disposition, fromNumber, toNumber, start, end, duration, hangUpDirection, callSid) {
8
+ super();
9
+ this._id = id;
10
+ this._uniqueName = uniqueName;
11
+ this._disposition = disposition;
12
+ this._fromNumber = fromNumber;
13
+ this._toNumber = toNumber;
14
+ this._start = start;
15
+ this._end = end;
16
+ this._duration = duration;
17
+ this._hangUpDirection = hangUpDirection;
18
+ this._callSid = callSid;
19
+ }
20
+ // Getters and Setters
21
+ get id() {
22
+ return this._id;
23
+ }
24
+ set id(value) {
25
+ this._id = value;
26
+ }
27
+ get uniqueName() {
28
+ return this._uniqueName;
29
+ }
30
+ set uniqueName(value) {
31
+ this._uniqueName = value;
32
+ }
33
+ get disposition() {
34
+ return this._disposition;
35
+ }
36
+ set disposition(value) {
37
+ this._disposition = value;
38
+ }
39
+ get fromNumber() {
40
+ return this._fromNumber;
41
+ }
42
+ set fromNumber(value) {
43
+ this._fromNumber = value;
44
+ }
45
+ get toNumber() {
46
+ return this._toNumber;
47
+ }
48
+ set toNumber(value) {
49
+ this._toNumber = value;
50
+ }
51
+ get start() {
52
+ return this._start;
53
+ }
54
+ set start(value) {
55
+ this._start = value;
56
+ }
57
+ get end() {
58
+ return this._end;
59
+ }
60
+ set end(value) {
61
+ this._end = value;
62
+ }
63
+ get duration() {
64
+ return this._duration;
65
+ }
66
+ set duration(value) {
67
+ this._duration = value;
68
+ }
69
+ get hangUpDirection() {
70
+ return this._hangUpDirection;
71
+ }
72
+ set hangUpDirection(value) {
73
+ this._hangUpDirection = value;
74
+ }
75
+ get callSid() {
76
+ return this._callSid;
77
+ }
78
+ set callSid(value) {
79
+ this._callSid = value;
80
+ }
81
+ // Validation logic
82
+ validateData() {
83
+ this.validationMessages = [];
84
+ const validationRules = {
85
+ id: (value) => typeof value === "string" && (0, uuid_1.validate)(value),
86
+ disposition: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
87
+ fromNumber: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
88
+ toNumber: (value) => value === null || (typeof value === "string" && value.trim() !== ""),
89
+ start: (value) => !isNaN(new Date(value).getTime()),
90
+ end: (value) => !isNaN(new Date(value).getTime()),
91
+ duration: (value) => typeof value === "number" && value >= 0,
92
+ hangUpDirection: (value) => typeof value === "string" && value.trim() !== "",
93
+ callSid: (value) => value === null || (typeof value === "string" && value.trim() !== "")
94
+ };
95
+ for (const key in validationRules) {
96
+ const validator = validationRules[key];
97
+ const value = this[`_${key}`];
98
+ if (!validator(value)) {
99
+ this.validationMessages.push({
100
+ type: 'Error',
101
+ fieldDescription: key,
102
+ message: `${key} is not valid`,
103
+ });
104
+ }
105
+ }
106
+ return this.validationMessages;
107
+ }
108
+ }
109
+ exports.CallLogsModel = CallLogsModel;
@@ -0,0 +1,16 @@
1
+ import { BaseModel } from "../abstract/BaseModel";
2
+ import { validationMessage } from "../interface/IBaseModel";
3
+ import { StatisticsNumberDetailsModel } from "./StatisticsNumberDetailsModel";
4
+ export declare class CallStatisticsModel extends BaseModel {
5
+ private _interactionsReceived;
6
+ private _interactionsAnswered;
7
+ private _interactionsAbandoned;
8
+ constructor(interactionsReceived: StatisticsNumberDetailsModel, interactionsAnswered: StatisticsNumberDetailsModel, interactionsAbandoned: StatisticsNumberDetailsModel);
9
+ get interactionsReceived(): StatisticsNumberDetailsModel;
10
+ set interactionsReceived(value: StatisticsNumberDetailsModel);
11
+ get interactionsAnswered(): StatisticsNumberDetailsModel;
12
+ set interactionsAnswered(value: StatisticsNumberDetailsModel);
13
+ get interactionsAbandoned(): StatisticsNumberDetailsModel;
14
+ set interactionsAbandoned(value: StatisticsNumberDetailsModel);
15
+ validateData(): validationMessage[];
16
+ }
@@ -1 +1,52 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.CallStatisticsModel=void 0;const e=require("../abstract/BaseModel"),t=require("./StatisticsNumberDetailsModel");class i extends e.BaseModel{constructor(e,t,i){super(),this._interactionsReceived=e,this._interactionsAnswered=t,this._interactionsAbandoned=i}get interactionsReceived(){return this._interactionsReceived}set interactionsReceived(e){this._interactionsReceived=e}get interactionsAnswered(){return this._interactionsAnswered}set interactionsAnswered(e){this._interactionsAnswered=e}get interactionsAbandoned(){return this._interactionsAbandoned}set interactionsAbandoned(e){this._interactionsAbandoned=e}validateData(){this.validationMessages=[];return[{field:this._interactionsReceived,name:"interactionsReceived"},{field:this._interactionsAnswered,name:"interactionsAnswered"},{field:this._interactionsAbandoned,name:"interactionsAbandoned"}].forEach((({field:e,name:i})=>{e instanceof t.StatisticsNumberDetailsModel||this.validationMessages.push({type:"Error",fieldDescription:i,message:"Invalid StatisticsNumberDetailsModel instance"})})),this.validationMessages}}exports.CallStatisticsModel=i;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CallStatisticsModel = void 0;
4
+ const BaseModel_1 = require("../abstract/BaseModel");
5
+ const StatisticsNumberDetailsModel_1 = require("./StatisticsNumberDetailsModel");
6
+ class CallStatisticsModel extends BaseModel_1.BaseModel {
7
+ constructor(interactionsReceived, interactionsAnswered, interactionsAbandoned) {
8
+ super();
9
+ this._interactionsReceived = interactionsReceived;
10
+ this._interactionsAnswered = interactionsAnswered;
11
+ this._interactionsAbandoned = interactionsAbandoned;
12
+ }
13
+ // Getters and Setters
14
+ get interactionsReceived() {
15
+ return this._interactionsReceived;
16
+ }
17
+ set interactionsReceived(value) {
18
+ this._interactionsReceived = value;
19
+ }
20
+ get interactionsAnswered() {
21
+ return this._interactionsAnswered;
22
+ }
23
+ set interactionsAnswered(value) {
24
+ this._interactionsAnswered = value;
25
+ }
26
+ get interactionsAbandoned() {
27
+ return this._interactionsAbandoned;
28
+ }
29
+ set interactionsAbandoned(value) {
30
+ this._interactionsAbandoned = value;
31
+ }
32
+ // Validation Method
33
+ validateData() {
34
+ this.validationMessages = [];
35
+ const fields = [
36
+ { field: this._interactionsReceived, name: "interactionsReceived" },
37
+ { field: this._interactionsAnswered, name: "interactionsAnswered" },
38
+ { field: this._interactionsAbandoned, name: "interactionsAbandoned" },
39
+ ];
40
+ fields.forEach(({ field, name }) => {
41
+ if (!(field instanceof StatisticsNumberDetailsModel_1.StatisticsNumberDetailsModel)) {
42
+ this.validationMessages.push({
43
+ type: "Error",
44
+ fieldDescription: name,
45
+ message: "Invalid StatisticsNumberDetailsModel instance",
46
+ });
47
+ }
48
+ });
49
+ return this.validationMessages;
50
+ }
51
+ }
52
+ exports.CallStatisticsModel = CallStatisticsModel;
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from "../abstract/BaseModel";
2
+ import { validationMessage } from "../interface/IBaseModel";
3
+ import { QuestionDetailsModel } from "./QuestionDetailsModel";
4
+ export declare class CategoryDetailModel extends BaseModel {
5
+ private _categories;
6
+ constructor(categories: {
7
+ [category: string]: QuestionDetailsModel[];
8
+ });
9
+ get categories(): {
10
+ [category: string]: QuestionDetailsModel[];
11
+ };
12
+ set categories(value: {
13
+ [category: string]: QuestionDetailsModel[];
14
+ });
15
+ private validateCategories;
16
+ validateData(): validationMessage[];
17
+ }
@@ -1 +1,44 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.CategoryDetailModel=void 0;const e=require("../abstract/BaseModel"),t=require("./QuestionDetailsModel");class s extends e.BaseModel{constructor(e){super(),this._categories=e}get categories(){return this._categories}set categories(e){if(!this.validateCategories(e))throw new Error("Invalid categories data");this._categories=e}validateCategories(e){return"object"==typeof e&&null!==e&&Object.keys(e).every((s=>"string"==typeof s&&Array.isArray(e[s])&&e[s].every((e=>e instanceof t.QuestionDetailsModel))))}validateData(){return this.validationMessages=[],this.validateCategories(this._categories)||this.validationMessages.push({type:"Error",fieldDescription:"categories",message:"Categories must be an object with keys as strings and values as arrays of QuestionDetailsModel instances."}),this.validationMessages}}exports.CategoryDetailModel=s;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CategoryDetailModel = void 0;
4
+ const BaseModel_1 = require("../abstract/BaseModel");
5
+ const QuestionDetailsModel_1 = require("./QuestionDetailsModel");
6
+ class CategoryDetailModel extends BaseModel_1.BaseModel {
7
+ constructor(categories) {
8
+ super();
9
+ this._categories = categories;
10
+ }
11
+ // Getter and Setter
12
+ get categories() {
13
+ return this._categories;
14
+ }
15
+ set categories(value) {
16
+ if (this.validateCategories(value)) {
17
+ this._categories = value;
18
+ }
19
+ else {
20
+ throw new Error("Invalid categories data");
21
+ }
22
+ }
23
+ // Validation for categories
24
+ validateCategories(value) {
25
+ return (typeof value === "object" &&
26
+ value !== null &&
27
+ Object.keys(value).every((key) => typeof key === "string" &&
28
+ Array.isArray(value[key]) &&
29
+ value[key].every((item) => item instanceof QuestionDetailsModel_1.QuestionDetailsModel)));
30
+ }
31
+ // Validate Data
32
+ validateData() {
33
+ this.validationMessages = [];
34
+ if (!this.validateCategories(this._categories)) {
35
+ this.validationMessages.push({
36
+ type: "Error",
37
+ fieldDescription: "categories",
38
+ message: "Categories must be an object with keys as strings and values as arrays of QuestionDetailsModel instances.",
39
+ });
40
+ }
41
+ return this.validationMessages;
42
+ }
43
+ }
44
+ exports.CategoryDetailModel = CategoryDetailModel;
@@ -0,0 +1,42 @@
1
+ import { BaseModel } from "../abstract/BaseModel";
2
+ import { validationMessage } from "../interface/IBaseModel";
3
+ type Department = "gather" | "say";
4
+ type Skills = "aext" | "audio";
5
+ export declare class MemberModel extends BaseModel {
6
+ private _id;
7
+ private _fullName;
8
+ private _extension;
9
+ private _department;
10
+ private _skills;
11
+ private _status;
12
+ private _loggedOn;
13
+ private _timeInStatus;
14
+ private _state;
15
+ private _duration;
16
+ private _interactionId;
17
+ constructor(id: string, fullName: string, extension: string, department: Department, skills: Skills, status: string, loggedOn: string | null, timeInStatus: string | null, state: string, duration: string | null, interactionId: string);
18
+ get id(): string;
19
+ set id(value: string);
20
+ get fullName(): string;
21
+ set fullName(value: string);
22
+ get extension(): string;
23
+ set extension(value: string);
24
+ get department(): Department;
25
+ set department(value: Department);
26
+ get skills(): Skills;
27
+ set skills(value: Skills);
28
+ get status(): string;
29
+ set status(value: string);
30
+ get loggedOn(): string | null;
31
+ set loggedOn(value: string | null);
32
+ get timeInStatus(): string | null;
33
+ set timeInStatus(value: string | null);
34
+ get state(): string;
35
+ set state(value: string);
36
+ get duration(): string | null;
37
+ set duration(value: string | null);
38
+ get interactionId(): string;
39
+ set interactionId(value: string);
40
+ validateData(): validationMessage[];
41
+ }
42
+ export {};
@@ -1 +1,170 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.MemberModel=void 0;const t=require("../abstract/BaseModel");class s extends t.BaseModel{constructor(t,s,e,i,n,r,a,o,l,u,h){super(),this._id=t,this._fullName=s,this._extension=e,this._department=i,this._skills=n,this._status=r,this._loggedOn=a,this._timeInStatus=o,this._state=l,this._duration=u,this._interactionId=h}get id(){return this._id}set id(t){this._id=t}get fullName(){return this._fullName}set fullName(t){this._fullName=t}get extension(){return this._extension}set extension(t){this._extension=t}get department(){return this._department}set department(t){this._department=t}get skills(){return this._skills}set skills(t){this._skills=t}get status(){return this._status}set status(t){this._status=t}get loggedOn(){return this._loggedOn}set loggedOn(t){this._loggedOn=t}get timeInStatus(){return this._timeInStatus}set timeInStatus(t){this._timeInStatus=t}get state(){return this._state}set state(t){this._state=t}get duration(){return this._duration}set duration(t){this._duration=t}get interactionId(){return this._interactionId}set interactionId(t){this._interactionId=t}validateData(){return this.validationMessages=[],"string"==typeof this._id&&this._id.trim()||this.validationMessages.push({type:"Error",fieldDescription:"id",message:"ID must be a non-empty string"}),"string"==typeof this._fullName&&this._fullName.trim()||this.validationMessages.push({type:"Error",fieldDescription:"fullName",message:"Full name must be a non-empty string"}),"string"==typeof this._extension&&this._extension.trim()||this.validationMessages.push({type:"Error",fieldDescription:"extension",message:"Extension must be a non-empty string"}),["Gather","Say"].includes(this._department)||this.validationMessages.push({type:"Error",fieldDescription:"department",message:"Department must be either 'Gather' or 'Say'"}),["Text","Audio"].includes(this._skills)||this.validationMessages.push({type:"Error",fieldDescription:"skills",message:"Skills must be either 'Text' or 'Audio'"}),"string"==typeof this._status&&this._status.trim()||this.validationMessages.push({type:"Error",fieldDescription:"status",message:"Status must be a non-empty string"}),this._loggedOn&&"string"!=typeof this._loggedOn&&this.validationMessages.push({type:"Error",fieldDescription:"loggedOn",message:"LoggedOn must be a string or null"}),this._timeInStatus&&"string"!=typeof this._timeInStatus&&this.validationMessages.push({type:"Error",fieldDescription:"timeInStatus",message:"TimeInStatus must be a string or null"}),"string"==typeof this._state&&this._state.trim()||this.validationMessages.push({type:"Error",fieldDescription:"state",message:"State must be a non-empty string"}),this._duration&&"string"!=typeof this._duration&&this.validationMessages.push({type:"Error",fieldDescription:"duration",message:"Duration must be a string or null"}),"string"==typeof this._interactionId&&this._interactionId.trim()||this.validationMessages.push({type:"Error",fieldDescription:"interactionId",message:"Interaction ID must be a non-empty string"}),this.validationMessages}}exports.MemberModel=s;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MemberModel = void 0;
4
+ const BaseModel_1 = require("../abstract/BaseModel");
5
+ class MemberModel extends BaseModel_1.BaseModel {
6
+ constructor(id, fullName, extension, department, skills, status, loggedOn, timeInStatus, state, duration, interactionId) {
7
+ super();
8
+ this._id = id;
9
+ this._fullName = fullName;
10
+ this._extension = extension;
11
+ this._department = department;
12
+ this._skills = skills;
13
+ this._status = status;
14
+ this._loggedOn = loggedOn;
15
+ this._timeInStatus = timeInStatus;
16
+ this._state = state;
17
+ this._duration = duration;
18
+ this._interactionId = interactionId;
19
+ }
20
+ // Getters and Setters
21
+ get id() {
22
+ return this._id;
23
+ }
24
+ set id(value) {
25
+ this._id = value;
26
+ }
27
+ get fullName() {
28
+ return this._fullName;
29
+ }
30
+ set fullName(value) {
31
+ this._fullName = value;
32
+ }
33
+ get extension() {
34
+ return this._extension;
35
+ }
36
+ set extension(value) {
37
+ this._extension = value;
38
+ }
39
+ get department() {
40
+ return this._department;
41
+ }
42
+ set department(value) {
43
+ this._department = value;
44
+ }
45
+ get skills() {
46
+ return this._skills;
47
+ }
48
+ set skills(value) {
49
+ this._skills = value;
50
+ }
51
+ get status() {
52
+ return this._status;
53
+ }
54
+ set status(value) {
55
+ this._status = value;
56
+ }
57
+ get loggedOn() {
58
+ return this._loggedOn;
59
+ }
60
+ set loggedOn(value) {
61
+ this._loggedOn = value;
62
+ }
63
+ get timeInStatus() {
64
+ return this._timeInStatus;
65
+ }
66
+ set timeInStatus(value) {
67
+ this._timeInStatus = value;
68
+ }
69
+ get state() {
70
+ return this._state;
71
+ }
72
+ set state(value) {
73
+ this._state = value;
74
+ }
75
+ get duration() {
76
+ return this._duration;
77
+ }
78
+ set duration(value) {
79
+ this._duration = value;
80
+ }
81
+ get interactionId() {
82
+ return this._interactionId;
83
+ }
84
+ set interactionId(value) {
85
+ this._interactionId = value;
86
+ }
87
+ // Validation Method
88
+ validateData() {
89
+ this.validationMessages = [];
90
+ if (typeof this._id !== "string" || !this._id.trim()) {
91
+ this.validationMessages.push({
92
+ type: "Error",
93
+ fieldDescription: "id",
94
+ message: "ID must be a non-empty string",
95
+ });
96
+ }
97
+ if (typeof this._fullName !== "string" || !this._fullName.trim()) {
98
+ this.validationMessages.push({
99
+ type: "Error",
100
+ fieldDescription: "fullName",
101
+ message: "Full name must be a non-empty string",
102
+ });
103
+ }
104
+ if (typeof this._extension !== "string" || !this._extension.trim()) {
105
+ this.validationMessages.push({
106
+ type: "Error",
107
+ fieldDescription: "extension",
108
+ message: "Extension must be a non-empty string",
109
+ });
110
+ }
111
+ if (!["Gather", "Say"].includes(this._department)) {
112
+ this.validationMessages.push({
113
+ type: "Error",
114
+ fieldDescription: "department",
115
+ message: "Department must be either 'Gather' or 'Say'",
116
+ });
117
+ }
118
+ if (!["Text", "Audio"].includes(this._skills)) {
119
+ this.validationMessages.push({
120
+ type: "Error",
121
+ fieldDescription: "skills",
122
+ message: "Skills must be either 'Text' or 'Audio'",
123
+ });
124
+ }
125
+ if (typeof this._status !== "string" || !this._status.trim()) {
126
+ this.validationMessages.push({
127
+ type: "Error",
128
+ fieldDescription: "status",
129
+ message: "Status must be a non-empty string",
130
+ });
131
+ }
132
+ if (this._loggedOn && typeof this._loggedOn !== "string") {
133
+ this.validationMessages.push({
134
+ type: "Error",
135
+ fieldDescription: "loggedOn",
136
+ message: "LoggedOn must be a string or null",
137
+ });
138
+ }
139
+ if (this._timeInStatus && typeof this._timeInStatus !== "string") {
140
+ this.validationMessages.push({
141
+ type: "Error",
142
+ fieldDescription: "timeInStatus",
143
+ message: "TimeInStatus must be a string or null",
144
+ });
145
+ }
146
+ if (typeof this._state !== "string" || !this._state.trim()) {
147
+ this.validationMessages.push({
148
+ type: "Error",
149
+ fieldDescription: "state",
150
+ message: "State must be a non-empty string",
151
+ });
152
+ }
153
+ if (this._duration && typeof this._duration !== "string") {
154
+ this.validationMessages.push({
155
+ type: "Error",
156
+ fieldDescription: "duration",
157
+ message: "Duration must be a string or null",
158
+ });
159
+ }
160
+ if (typeof this._interactionId !== "string" || !this._interactionId.trim()) {
161
+ this.validationMessages.push({
162
+ type: "Error",
163
+ fieldDescription: "interactionId",
164
+ message: "Interaction ID must be a non-empty string",
165
+ });
166
+ }
167
+ return this.validationMessages;
168
+ }
169
+ }
170
+ exports.MemberModel = MemberModel;
@@ -0,0 +1,6 @@
1
+ import { CommonError } from "../../common/abstract/CommonError";
2
+ import { IErrorDetails } from "../../common/interface/IErrorDetails";
3
+ export declare class ModelValidationError extends CommonError {
4
+ constructor(error: IErrorDetails);
5
+ handleError(error: IErrorDetails): IErrorDetails;
6
+ }