o2g-node-sdk 2.4.0 → 2.4.1

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 (528) hide show
  1. package/README.md +10 -6
  2. package/dist/o2g-node-sdk.js +173 -3732
  3. package/dist/o2g-node-sdk.js.map +1 -1
  4. package/dist/types/ErrorInfo.d.ts +88 -0
  5. package/dist/types/ErrorInfo.d.ts.map +1 -0
  6. package/dist/types/host.d.ts +18 -0
  7. package/dist/types/host.d.ts.map +1 -0
  8. package/dist/types/internal/access-mode.d.ts +2 -0
  9. package/dist/types/internal/access-mode.d.ts.map +1 -0
  10. package/dist/types/internal/events/chunk-eventing.d.ts +2 -0
  11. package/dist/types/internal/events/chunk-eventing.d.ts.map +1 -0
  12. package/dist/types/internal/events/event-dispatcher.d.ts +2 -0
  13. package/dist/types/internal/events/event-dispatcher.d.ts.map +1 -0
  14. package/dist/types/internal/events/event-packages.d.ts +2 -0
  15. package/dist/types/internal/events/event-packages.d.ts.map +1 -0
  16. package/dist/types/internal/o2g-application.d.ts +2 -0
  17. package/dist/types/internal/o2g-application.d.ts.map +1 -0
  18. package/dist/types/internal/rest/analytics-rest.d.ts +2 -0
  19. package/dist/types/internal/rest/analytics-rest.d.ts.map +1 -0
  20. package/dist/types/internal/rest/authentication-rest.d.ts +2 -0
  21. package/dist/types/internal/rest/authentication-rest.d.ts.map +1 -0
  22. package/dist/types/internal/rest/ccAgent-rest.d.ts +2 -0
  23. package/dist/types/internal/rest/ccAgent-rest.d.ts.map +1 -0
  24. package/dist/types/internal/rest/ccMngt-rest.d.ts +2 -0
  25. package/dist/types/internal/rest/ccMngt-rest.d.ts.map +1 -0
  26. package/dist/types/internal/rest/ccPilot-rest.d.ts +2 -0
  27. package/dist/types/internal/rest/ccPilot-rest.d.ts.map +1 -0
  28. package/dist/types/internal/rest/ccRealtime-rest.d.ts +2 -0
  29. package/dist/types/internal/rest/ccRealtime-rest.d.ts.map +1 -0
  30. package/dist/types/internal/rest/ccStatistics-rest.d.ts +45 -0
  31. package/dist/types/internal/rest/ccStatistics-rest.d.ts.map +1 -0
  32. package/dist/types/internal/rest/comlog-rest.d.ts +2 -0
  33. package/dist/types/internal/rest/comlog-rest.d.ts.map +1 -0
  34. package/dist/types/internal/rest/directory-rest.d.ts +2 -0
  35. package/dist/types/internal/rest/directory-rest.d.ts.map +1 -0
  36. package/dist/types/internal/rest/eventSummary-rest.d.ts +2 -0
  37. package/dist/types/internal/rest/eventSummary-rest.d.ts.map +1 -0
  38. package/dist/types/internal/rest/maint-rest.d.ts +2 -0
  39. package/dist/types/internal/rest/maint-rest.d.ts.map +1 -0
  40. package/dist/types/internal/rest/messaging-rest.d.ts +2 -0
  41. package/dist/types/internal/rest/messaging-rest.d.ts.map +1 -0
  42. package/dist/types/internal/rest/o2g-rest.d.ts +2 -0
  43. package/dist/types/internal/rest/o2g-rest.d.ts.map +1 -0
  44. package/dist/types/internal/rest/pbx-mngt-rest.d.ts +2 -0
  45. package/dist/types/internal/rest/pbx-mngt-rest.d.ts.map +1 -0
  46. package/dist/types/internal/rest/phone-set-prog-rest.d.ts +2 -0
  47. package/dist/types/internal/rest/phone-set-prog-rest.d.ts.map +1 -0
  48. package/dist/types/internal/rest/rest-service.d.ts +2 -0
  49. package/dist/types/internal/rest/rest-service.d.ts.map +1 -0
  50. package/dist/types/internal/rest/routing-rest.d.ts +2 -0
  51. package/dist/types/internal/rest/routing-rest.d.ts.map +1 -0
  52. package/dist/types/internal/rest/rsi-rest.d.ts +2 -0
  53. package/dist/types/internal/rest/rsi-rest.d.ts.map +1 -0
  54. package/dist/types/internal/rest/sessions-rest.d.ts +2 -0
  55. package/dist/types/internal/rest/sessions-rest.d.ts.map +1 -0
  56. package/dist/types/internal/rest/subscriptions-rest.d.ts +2 -0
  57. package/dist/types/internal/rest/subscriptions-rest.d.ts.map +1 -0
  58. package/dist/types/internal/rest/telephony-rest.d.ts +2 -0
  59. package/dist/types/internal/rest/telephony-rest.d.ts.map +1 -0
  60. package/dist/types/internal/rest/users-mngt-rest.d.ts +2 -0
  61. package/dist/types/internal/rest/users-mngt-rest.d.ts.map +1 -0
  62. package/dist/types/internal/rest/users-rest.d.ts +2 -0
  63. package/dist/types/internal/rest/users-rest.d.ts.map +1 -0
  64. package/dist/types/internal/service-end-point.d.ts +2 -0
  65. package/dist/types/internal/service-end-point.d.ts.map +1 -0
  66. package/dist/types/internal/service-factory.d.ts +2 -0
  67. package/dist/types/internal/service-factory.d.ts.map +1 -0
  68. package/dist/types/internal/session.d.ts +2 -0
  69. package/dist/types/internal/session.d.ts.map +1 -0
  70. package/dist/types/internal/types/analytics/analytics-types.d.ts +2 -0
  71. package/dist/types/internal/types/analytics/analytics-types.d.ts.map +1 -0
  72. package/dist/types/internal/types/cc-agent/cc-agent-types.d.ts +2 -0
  73. package/dist/types/internal/types/cc-agent/cc-agent-types.d.ts.map +1 -0
  74. package/dist/types/internal/types/cc-mngt/cc-mntg-types.d.ts +2 -0
  75. package/dist/types/internal/types/cc-mngt/cc-mntg-types.d.ts.map +1 -0
  76. package/dist/types/internal/types/cc-pilot/cc-pilot-types.d.ts +2 -0
  77. package/dist/types/internal/types/cc-pilot/cc-pilot-types.d.ts.map +1 -0
  78. package/dist/types/internal/types/cc-rt/cc-rt-types.d.ts +2 -0
  79. package/dist/types/internal/types/cc-rt/cc-rt-types.d.ts.map +1 -0
  80. package/dist/types/internal/types/cc-stat/abstract-filter.d.ts +2 -0
  81. package/dist/types/internal/types/cc-stat/abstract-filter.d.ts.map +1 -0
  82. package/dist/types/internal/types/cc-stat/ag-filter-impl.d.ts +2 -0
  83. package/dist/types/internal/types/cc-stat/ag-filter-impl.d.ts.map +1 -0
  84. package/dist/types/internal/types/cc-stat/cc-stat-types.d.ts +56 -0
  85. package/dist/types/internal/types/cc-stat/cc-stat-types.d.ts.map +1 -0
  86. package/dist/types/internal/types/cc-stat/context-impl.d.ts +2 -0
  87. package/dist/types/internal/types/cc-stat/context-impl.d.ts.map +1 -0
  88. package/dist/types/internal/types/cc-stat/on-stats-progress.d.ts +2 -0
  89. package/dist/types/internal/types/cc-stat/on-stats-progress.d.ts.map +1 -0
  90. package/dist/types/internal/types/cc-stat/pil-filter-impl.d.ts +2 -0
  91. package/dist/types/internal/types/cc-stat/pil-filter-impl.d.ts.map +1 -0
  92. package/dist/types/internal/types/cc-stat/requester-impl.d.ts +2 -0
  93. package/dist/types/internal/types/cc-stat/requester-impl.d.ts.map +1 -0
  94. package/dist/types/internal/types/cc-stat/scheduled-rep-impl.d.ts +2 -0
  95. package/dist/types/internal/types/cc-stat/scheduled-rep-impl.d.ts.map +1 -0
  96. package/dist/types/internal/types/comlog/comlog-types.d.ts +2 -0
  97. package/dist/types/internal/types/comlog/comlog-types.d.ts.map +1 -0
  98. package/dist/types/internal/types/common/common-types.d.ts +2 -0
  99. package/dist/types/internal/types/common/common-types.d.ts.map +1 -0
  100. package/dist/types/internal/types/directory/directory-types.d.ts +2 -0
  101. package/dist/types/internal/types/directory/directory-types.d.ts.map +1 -0
  102. package/dist/types/internal/types/eventsummary/eventsummary-types.d.ts +14 -0
  103. package/dist/types/internal/types/eventsummary/eventsummary-types.d.ts.map +1 -0
  104. package/dist/types/internal/types/maint/maint-types.d.ts +2 -0
  105. package/dist/types/internal/types/maint/maint-types.d.ts.map +1 -0
  106. package/dist/types/internal/types/messaging/messaging-types.d.ts +2 -0
  107. package/dist/types/internal/types/messaging/messaging-types.d.ts.map +1 -0
  108. package/dist/types/internal/types/pbxmngt/pbxmngt-types.d.ts +2 -0
  109. package/dist/types/internal/types/pbxmngt/pbxmngt-types.d.ts.map +1 -0
  110. package/dist/types/internal/types/phoneset/phoneset-types.d.ts +2 -0
  111. package/dist/types/internal/types/phoneset/phoneset-types.d.ts.map +1 -0
  112. package/dist/types/internal/types/routing/routing-types.d.ts +2 -0
  113. package/dist/types/internal/types/routing/routing-types.d.ts.map +1 -0
  114. package/dist/types/internal/types/rsi/rsi-types.d.ts +2 -0
  115. package/dist/types/internal/types/rsi/rsi-types.d.ts.map +1 -0
  116. package/dist/types/internal/types/telephony/telephony-types.d.ts +2 -0
  117. package/dist/types/internal/types/telephony/telephony-types.d.ts.map +1 -0
  118. package/dist/types/internal/types/users/users-types.d.ts +2 -0
  119. package/dist/types/internal/types/users/users-types.d.ts.map +1 -0
  120. package/dist/types/internal/util/IHttpClient.d.ts +2 -0
  121. package/dist/types/internal/util/IHttpClient.d.ts.map +1 -0
  122. package/dist/types/internal/util/assert.d.ts +2 -0
  123. package/dist/types/internal/util/assert.d.ts.map +1 -0
  124. package/dist/types/internal/util/file-utils.d.ts +2 -0
  125. package/dist/types/internal/util/file-utils.d.ts.map +1 -0
  126. package/dist/types/internal/util/format-util.d.ts +2 -0
  127. package/dist/types/internal/util/format-util.d.ts.map +1 -0
  128. package/dist/types/internal/util/hexa-string.d.ts +2 -0
  129. package/dist/types/internal/util/hexa-string.d.ts.map +1 -0
  130. package/dist/types/internal/util/http-client.d.ts +2 -0
  131. package/dist/types/internal/util/http-client.d.ts.map +1 -0
  132. package/dist/types/internal/util/http-content.d.ts +2 -0
  133. package/dist/types/internal/util/http-content.d.ts.map +1 -0
  134. package/dist/types/internal/util/http-response.d.ts +2 -0
  135. package/dist/types/internal/util/http-response.d.ts.map +1 -0
  136. package/dist/types/internal/util/injection-container.d.ts +5 -0
  137. package/dist/types/internal/util/injection-container.d.ts.map +1 -0
  138. package/dist/types/internal/util/logger.d.ts +7 -0
  139. package/dist/types/internal/util/logger.d.ts.map +1 -0
  140. package/dist/types/internal/util/util-uri.d.ts +2 -0
  141. package/dist/types/internal/util/util-uri.d.ts.map +1 -0
  142. package/dist/types/o2g-analytics.d.ts +61 -0
  143. package/dist/types/o2g-analytics.d.ts.map +1 -0
  144. package/dist/types/o2g-cc-agent.d.ts +376 -0
  145. package/dist/types/o2g-cc-agent.d.ts.map +1 -0
  146. package/dist/types/o2g-cc-mngt.d.ts +213 -0
  147. package/dist/types/o2g-cc-mngt.d.ts.map +1 -0
  148. package/dist/types/o2g-cc-pilot.d.ts +71 -0
  149. package/dist/types/o2g-cc-pilot.d.ts.map +1 -0
  150. package/dist/types/o2g-cc-rt.d.ts +163 -0
  151. package/dist/types/o2g-cc-rt.d.ts.map +1 -0
  152. package/dist/types/o2g-cc-stat.d.ts +450 -0
  153. package/dist/types/o2g-cc-stat.d.ts.map +1 -0
  154. package/dist/types/o2g-comlog.d.ts +245 -0
  155. package/dist/types/o2g-comlog.d.ts.map +1 -0
  156. package/dist/types/o2g-directory.d.ts +109 -0
  157. package/dist/types/o2g-directory.d.ts.map +1 -0
  158. package/dist/types/o2g-eventSummary.d.ts +44 -0
  159. package/dist/types/o2g-eventSummary.d.ts.map +1 -0
  160. package/dist/types/o2g-maint.d.ts +82 -0
  161. package/dist/types/o2g-maint.d.ts.map +1 -0
  162. package/dist/types/o2g-messaging.d.ts +137 -0
  163. package/dist/types/o2g-messaging.d.ts.map +1 -0
  164. package/dist/types/o2g-node-sdk.d.ts +421 -0
  165. package/dist/types/o2g-node-sdk.d.ts.map +1 -0
  166. package/dist/types/o2g-pbx-mngt.d.ts +244 -0
  167. package/dist/types/o2g-pbx-mngt.d.ts.map +1 -0
  168. package/dist/types/o2g-phone-set-prog.d.ts +269 -0
  169. package/dist/types/o2g-phone-set-prog.d.ts.map +1 -0
  170. package/dist/types/o2g-routing.d.ts +313 -0
  171. package/dist/types/o2g-routing.d.ts.map +1 -0
  172. package/dist/types/o2g-rsi.d.ts +155 -0
  173. package/dist/types/o2g-rsi.d.ts.map +1 -0
  174. package/dist/types/o2g-telephony.d.ts +895 -0
  175. package/dist/types/o2g-telephony.d.ts.map +1 -0
  176. package/dist/types/o2g-users-mngt.d.ts +83 -0
  177. package/dist/types/o2g-users-mngt.d.ts.map +1 -0
  178. package/dist/types/o2g-users.d.ts +127 -0
  179. package/dist/types/o2g-users.d.ts.map +1 -0
  180. package/dist/types/subscription.d.ts +379 -0
  181. package/dist/types/subscription.d.ts.map +1 -0
  182. package/dist/types/supervised-account.d.ts +40 -0
  183. package/dist/types/supervised-account.d.ts.map +1 -0
  184. package/dist/types/types/analytics/call-type.d.ts +25 -0
  185. package/dist/types/types/analytics/call-type.d.ts.map +1 -0
  186. package/dist/types/types/analytics/charging-file.d.ts +13 -0
  187. package/dist/types/types/analytics/charging-file.d.ts.map +1 -0
  188. package/dist/types/types/analytics/charging-result.d.ts +50 -0
  189. package/dist/types/types/analytics/charging-result.d.ts.map +1 -0
  190. package/dist/types/types/analytics/charging.d.ts +69 -0
  191. package/dist/types/types/analytics/charging.d.ts.map +1 -0
  192. package/dist/types/types/analytics/incident.d.ts +41 -0
  193. package/dist/types/types/analytics/incident.d.ts.map +1 -0
  194. package/dist/types/types/analytics/tel-facility.d.ts +45 -0
  195. package/dist/types/types/analytics/tel-facility.d.ts.map +1 -0
  196. package/dist/types/types/cc-agent/agent-groups.d.ts +11 -0
  197. package/dist/types/types/cc-agent/agent-groups.d.ts.map +1 -0
  198. package/dist/types/types/cc-agent/agent-skill-set.d.ts +43 -0
  199. package/dist/types/types/cc-agent/agent-skill-set.d.ts.map +1 -0
  200. package/dist/types/types/cc-agent/agent-skill.d.ts +15 -0
  201. package/dist/types/types/cc-agent/agent-skill.d.ts.map +1 -0
  202. package/dist/types/types/cc-agent/cc-agent-events.d.ts +44 -0
  203. package/dist/types/types/cc-agent/cc-agent-events.d.ts.map +1 -0
  204. package/dist/types/types/cc-agent/intrusion-mode.d.ts +25 -0
  205. package/dist/types/types/cc-agent/intrusion-mode.d.ts.map +1 -0
  206. package/dist/types/types/cc-agent/operator-config.d.ts +76 -0
  207. package/dist/types/types/cc-agent/operator-config.d.ts.map +1 -0
  208. package/dist/types/types/cc-agent/operator-state.d.ts +100 -0
  209. package/dist/types/types/cc-agent/operator-state.d.ts.map +1 -0
  210. package/dist/types/types/cc-agent/operator-type.d.ts +17 -0
  211. package/dist/types/types/cc-agent/operator-type.d.ts.map +1 -0
  212. package/dist/types/types/cc-agent/withdraw-reason.d.ts +23 -0
  213. package/dist/types/types/cc-agent/withdraw-reason.d.ts.map +1 -0
  214. package/dist/types/types/cc-mngt/calendar/abstract-calendar.d.ts +8 -0
  215. package/dist/types/types/cc-mngt/calendar/abstract-calendar.d.ts.map +1 -0
  216. package/dist/types/types/cc-mngt/calendar/calendar.d.ts +22 -0
  217. package/dist/types/types/cc-mngt/calendar/calendar.d.ts.map +1 -0
  218. package/dist/types/types/cc-mngt/calendar/exception-calendar.d.ts +31 -0
  219. package/dist/types/types/cc-mngt/calendar/exception-calendar.d.ts.map +1 -0
  220. package/dist/types/types/cc-mngt/calendar/normal-calendar.d.ts +31 -0
  221. package/dist/types/types/cc-mngt/calendar/normal-calendar.d.ts.map +1 -0
  222. package/dist/types/types/cc-mngt/calendar/pilot-operating-Mode.d.ts +18 -0
  223. package/dist/types/types/cc-mngt/calendar/pilot-operating-Mode.d.ts.map +1 -0
  224. package/dist/types/types/cc-mngt/calendar/transition.d.ts +65 -0
  225. package/dist/types/types/cc-mngt/calendar/transition.d.ts.map +1 -0
  226. package/dist/types/types/cc-mngt/pilot-rule-set.d.ts +33 -0
  227. package/dist/types/types/cc-mngt/pilot-rule-set.d.ts.map +1 -0
  228. package/dist/types/types/cc-mngt/pilot-rule.d.ts +24 -0
  229. package/dist/types/types/cc-mngt/pilot-rule.d.ts.map +1 -0
  230. package/dist/types/types/cc-mngt/pilot.d.ts +58 -0
  231. package/dist/types/types/cc-mngt/pilot.d.ts.map +1 -0
  232. package/dist/types/types/cc-pilot/call-data-pilot.d.ts +50 -0
  233. package/dist/types/types/cc-pilot/call-data-pilot.d.ts.map +1 -0
  234. package/dist/types/types/cc-pilot/cc-pilot-events.d.ts +131 -0
  235. package/dist/types/types/cc-pilot/cc-pilot-events.d.ts.map +1 -0
  236. package/dist/types/types/cc-rt/agent-attributes.d.ts +50 -0
  237. package/dist/types/types/cc-rt/agent-attributes.d.ts.map +1 -0
  238. package/dist/types/types/cc-rt/agent-pg-attributes.d.ts +50 -0
  239. package/dist/types/types/cc-rt/agent-pg-attributes.d.ts.map +1 -0
  240. package/dist/types/types/cc-rt/agent-pg-type.d.ts +17 -0
  241. package/dist/types/types/cc-rt/agent-pg-type.d.ts.map +1 -0
  242. package/dist/types/types/cc-rt/agent-phone-state.d.ts +67 -0
  243. package/dist/types/types/cc-rt/agent-phone-state.d.ts.map +1 -0
  244. package/dist/types/types/cc-rt/agent-service-type.d.ts +16 -0
  245. package/dist/types/types/cc-rt/agent-service-type.d.ts.map +1 -0
  246. package/dist/types/types/cc-rt/agent-type.d.ts +16 -0
  247. package/dist/types/types/cc-rt/agent-type.d.ts.map +1 -0
  248. package/dist/types/types/cc-rt/cc-rt-events.d.ts +274 -0
  249. package/dist/types/types/cc-rt/cc-rt-events.d.ts.map +1 -0
  250. package/dist/types/types/cc-rt/other-pg-attributes.d.ts +18 -0
  251. package/dist/types/types/cc-rt/other-pg-attributes.d.ts.map +1 -0
  252. package/dist/types/types/cc-rt/other-pg-type.d.ts +22 -0
  253. package/dist/types/types/cc-rt/other-pg-type.d.ts.map +1 -0
  254. package/dist/types/types/cc-rt/pilot-attributes.d.ts +40 -0
  255. package/dist/types/types/cc-rt/pilot-attributes.d.ts.map +1 -0
  256. package/dist/types/types/cc-rt/queue-attributes.d.ts +30 -0
  257. package/dist/types/types/cc-rt/queue-attributes.d.ts.map +1 -0
  258. package/dist/types/types/cc-rt/queue-type.d.ts +23 -0
  259. package/dist/types/types/cc-rt/queue-type.d.ts.map +1 -0
  260. package/dist/types/types/cc-rt/rti-context.d.ts +56 -0
  261. package/dist/types/types/cc-rt/rti-context.d.ts.map +1 -0
  262. package/dist/types/types/cc-rt/rti-filter.d.ts +117 -0
  263. package/dist/types/types/cc-rt/rti-filter.d.ts.map +1 -0
  264. package/dist/types/types/cc-rt/rti-object-identifier.d.ts +34 -0
  265. package/dist/types/types/cc-rt/rti-object-identifier.d.ts.map +1 -0
  266. package/dist/types/types/cc-rt/rti-objects.d.ts +72 -0
  267. package/dist/types/types/cc-rt/rti-objects.d.ts.map +1 -0
  268. package/dist/types/types/cc-stats/agbypilot-attributes.d.ts +73 -0
  269. package/dist/types/types/cc-stats/agbypilot-attributes.d.ts.map +1 -0
  270. package/dist/types/types/cc-stats/agent-attributes.d.ts +377 -0
  271. package/dist/types/types/cc-stats/agent-attributes.d.ts.map +1 -0
  272. package/dist/types/types/cc-stats/agent-filter.d.ts +60 -0
  273. package/dist/types/types/cc-stats/agent-filter.d.ts.map +1 -0
  274. package/dist/types/types/cc-stats/data/ag-by-pil-stats-row.d.ts +184 -0
  275. package/dist/types/types/cc-stats/data/ag-by-pil-stats-row.d.ts.map +1 -0
  276. package/dist/types/types/cc-stats/data/ag-stats-row.d.ts +608 -0
  277. package/dist/types/types/cc-stats/data/ag-stats-row.d.ts.map +1 -0
  278. package/dist/types/types/cc-stats/data/data-obs-period.d.ts +20 -0
  279. package/dist/types/types/cc-stats/data/data-obs-period.d.ts.map +1 -0
  280. package/dist/types/types/cc-stats/data/pil-stats-row.d.ts +623 -0
  281. package/dist/types/types/cc-stats/data/pil-stats-row.d.ts.map +1 -0
  282. package/dist/types/types/cc-stats/data/selected-period.d.ts +49 -0
  283. package/dist/types/types/cc-stats/data/selected-period.d.ts.map +1 -0
  284. package/dist/types/types/cc-stats/data/stat-value.d.ts +36 -0
  285. package/dist/types/types/cc-stats/data/stat-value.d.ts.map +1 -0
  286. package/dist/types/types/cc-stats/data/stats-data.d.ts +64 -0
  287. package/dist/types/types/cc-stats/data/stats-data.d.ts.map +1 -0
  288. package/dist/types/types/cc-stats/events/progress-callback.d.ts +9 -0
  289. package/dist/types/types/cc-stats/events/progress-callback.d.ts.map +1 -0
  290. package/dist/types/types/cc-stats/events/progress-step.d.ts +20 -0
  291. package/dist/types/types/cc-stats/events/progress-step.d.ts.map +1 -0
  292. package/dist/types/types/cc-stats/language.d.ts +15 -0
  293. package/dist/types/types/cc-stats/language.d.ts.map +1 -0
  294. package/dist/types/types/cc-stats/pilot-attributes.d.ts +185 -0
  295. package/dist/types/types/cc-stats/pilot-attributes.d.ts.map +1 -0
  296. package/dist/types/types/cc-stats/pilot-filter.d.ts +45 -0
  297. package/dist/types/types/cc-stats/pilot-filter.d.ts.map +1 -0
  298. package/dist/types/types/cc-stats/requester.d.ts +33 -0
  299. package/dist/types/types/cc-stats/requester.d.ts.map +1 -0
  300. package/dist/types/types/cc-stats/scheduled/recurrence.d.ts +69 -0
  301. package/dist/types/types/cc-stats/scheduled/recurrence.d.ts.map +1 -0
  302. package/dist/types/types/cc-stats/scheduled/report-obs-period.d.ts +87 -0
  303. package/dist/types/types/cc-stats/scheduled/report-obs-period.d.ts.map +1 -0
  304. package/dist/types/types/cc-stats/scheduled/scheduled-report.d.ts +132 -0
  305. package/dist/types/types/cc-stats/scheduled/scheduled-report.d.ts.map +1 -0
  306. package/dist/types/types/cc-stats/stats-context.d.ts +66 -0
  307. package/dist/types/types/cc-stats/stats-context.d.ts.map +1 -0
  308. package/dist/types/types/cc-stats/stats-filter.d.ts +34 -0
  309. package/dist/types/types/cc-stats/stats-filter.d.ts.map +1 -0
  310. package/dist/types/types/cc-stats/stats-format.d.ts +17 -0
  311. package/dist/types/types/cc-stats/stats-format.d.ts.map +1 -0
  312. package/dist/types/types/cc-stats/time-interval.d.ts +19 -0
  313. package/dist/types/types/cc-stats/time-interval.d.ts.map +1 -0
  314. package/dist/types/types/comlog/com-record-participant.d.ts +75 -0
  315. package/dist/types/types/comlog/com-record-participant.d.ts.map +1 -0
  316. package/dist/types/types/comlog/com-record.d.ts +97 -0
  317. package/dist/types/types/comlog/com-record.d.ts.map +1 -0
  318. package/dist/types/types/comlog/comlog-events.d.ts +110 -0
  319. package/dist/types/types/comlog/comlog-events.d.ts.map +1 -0
  320. package/dist/types/types/comlog/filter-option.d.ts +24 -0
  321. package/dist/types/types/comlog/filter-option.d.ts.map +1 -0
  322. package/dist/types/types/comlog/page.d.ts +34 -0
  323. package/dist/types/types/comlog/page.d.ts.map +1 -0
  324. package/dist/types/types/comlog/query-filter.d.ts +79 -0
  325. package/dist/types/types/comlog/query-filter.d.ts.map +1 -0
  326. package/dist/types/types/comlog/query-result.d.ts +55 -0
  327. package/dist/types/types/comlog/query-result.d.ts.map +1 -0
  328. package/dist/types/types/comlog/reason.d.ts +62 -0
  329. package/dist/types/types/comlog/reason.d.ts.map +1 -0
  330. package/dist/types/types/comlog/role.d.ts +18 -0
  331. package/dist/types/types/comlog/role.d.ts.map +1 -0
  332. package/dist/types/types/common/date-range.d.ts +17 -0
  333. package/dist/types/types/common/date-range.d.ts.map +1 -0
  334. package/dist/types/types/common/day-of-week.d.ts +15 -0
  335. package/dist/types/types/common/day-of-week.d.ts.map +1 -0
  336. package/dist/types/types/common/device-type.d.ts +22 -0
  337. package/dist/types/types/common/device-type.d.ts.map +1 -0
  338. package/dist/types/types/common/device.d.ts +75 -0
  339. package/dist/types/types/common/device.d.ts.map +1 -0
  340. package/dist/types/types/common/identifier.d.ts +20 -0
  341. package/dist/types/types/common/identifier.d.ts.map +1 -0
  342. package/dist/types/types/common/main-type.d.ts +26 -0
  343. package/dist/types/types/common/main-type.d.ts.map +1 -0
  344. package/dist/types/types/common/party-info-type.d.ts +22 -0
  345. package/dist/types/types/common/party-info-type.d.ts.map +1 -0
  346. package/dist/types/types/common/party-info.d.ts +28 -0
  347. package/dist/types/types/common/party-info.d.ts.map +1 -0
  348. package/dist/types/types/common/service-state.d.ts +20 -0
  349. package/dist/types/types/common/service-state.d.ts.map +1 -0
  350. package/dist/types/types/directory/criteria.d.ts +95 -0
  351. package/dist/types/types/directory/criteria.d.ts.map +1 -0
  352. package/dist/types/types/directory/filter-item.d.ts +22 -0
  353. package/dist/types/types/directory/filter-item.d.ts.map +1 -0
  354. package/dist/types/types/directory/logical-operation.d.ts +14 -0
  355. package/dist/types/types/directory/logical-operation.d.ts.map +1 -0
  356. package/dist/types/types/directory/operation-filter.d.ts +22 -0
  357. package/dist/types/types/directory/operation-filter.d.ts.map +1 -0
  358. package/dist/types/types/directory/result-item.d.ts +22 -0
  359. package/dist/types/types/directory/result-item.d.ts.map +1 -0
  360. package/dist/types/types/directory/search-result.d.ts +64 -0
  361. package/dist/types/types/directory/search-result.d.ts.map +1 -0
  362. package/dist/types/types/events/events.d.ts +77 -0
  363. package/dist/types/types/events/events.d.ts.map +1 -0
  364. package/dist/types/types/eventsummary/event-summary-counter.d.ts +69 -0
  365. package/dist/types/types/eventsummary/event-summary-counter.d.ts.map +1 -0
  366. package/dist/types/types/eventsummary/event-summary-events.d.ts +26 -0
  367. package/dist/types/types/eventsummary/event-summary-events.d.ts.map +1 -0
  368. package/dist/types/types/maint/configuration-type.d.ts +15 -0
  369. package/dist/types/types/maint/configuration-type.d.ts.map +1 -0
  370. package/dist/types/types/maint/cti-link-state.d.ts +19 -0
  371. package/dist/types/types/maint/cti-link-state.d.ts.map +1 -0
  372. package/dist/types/types/maint/license-status.d.ts +42 -0
  373. package/dist/types/types/maint/license-status.d.ts.map +1 -0
  374. package/dist/types/types/maint/license-type.d.ts +19 -0
  375. package/dist/types/types/maint/license-type.d.ts.map +1 -0
  376. package/dist/types/types/maint/license.d.ts +38 -0
  377. package/dist/types/types/maint/license.d.ts.map +1 -0
  378. package/dist/types/types/maint/maint-events.d.ts +105 -0
  379. package/dist/types/types/maint/maint-events.d.ts.map +1 -0
  380. package/dist/types/types/maint/pbx-status.d.ts +77 -0
  381. package/dist/types/types/maint/pbx-status.d.ts.map +1 -0
  382. package/dist/types/types/maint/server-address.d.ts +25 -0
  383. package/dist/types/types/maint/server-address.d.ts.map +1 -0
  384. package/dist/types/types/maint/service-status.d.ts +31 -0
  385. package/dist/types/types/maint/service-status.d.ts.map +1 -0
  386. package/dist/types/types/maint/subscriber-filter.d.ts +24 -0
  387. package/dist/types/types/maint/subscriber-filter.d.ts.map +1 -0
  388. package/dist/types/types/maint/sys-service-status.d.ts +33 -0
  389. package/dist/types/types/maint/sys-service-status.d.ts.map +1 -0
  390. package/dist/types/types/maint/sys-status.d.ts +79 -0
  391. package/dist/types/types/maint/sys-status.d.ts.map +1 -0
  392. package/dist/types/types/messaging/mailbox-info.d.ts +35 -0
  393. package/dist/types/types/messaging/mailbox-info.d.ts.map +1 -0
  394. package/dist/types/types/messaging/mailbox.d.ts +119 -0
  395. package/dist/types/types/messaging/mailbox.d.ts.map +1 -0
  396. package/dist/types/types/messaging/voice-message.d.ts +57 -0
  397. package/dist/types/types/messaging/voice-message.d.ts.map +1 -0
  398. package/dist/types/types/pbxmngt/attribute-filter.d.ts +31 -0
  399. package/dist/types/types/pbxmngt/attribute-filter.d.ts.map +1 -0
  400. package/dist/types/types/pbxmngt/instance-filter.d.ts +72 -0
  401. package/dist/types/types/pbxmngt/instance-filter.d.ts.map +1 -0
  402. package/dist/types/types/pbxmngt/model.d.ts +221 -0
  403. package/dist/types/types/pbxmngt/model.d.ts.map +1 -0
  404. package/dist/types/types/pbxmngt/octet-string-length.d.ts +12 -0
  405. package/dist/types/types/pbxmngt/octet-string-length.d.ts.map +1 -0
  406. package/dist/types/types/pbxmngt/pbx-attr-map.d.ts +96 -0
  407. package/dist/types/types/pbxmngt/pbx-attr-map.d.ts.map +1 -0
  408. package/dist/types/types/pbxmngt/pbx-attribute.d.ts +182 -0
  409. package/dist/types/types/pbxmngt/pbx-attribute.d.ts.map +1 -0
  410. package/dist/types/types/pbxmngt/pbx-object.d.ts +73 -0
  411. package/dist/types/types/pbxmngt/pbx-object.d.ts.map +1 -0
  412. package/dist/types/types/pbxmngt/pbx.d.ts +23 -0
  413. package/dist/types/types/pbxmngt/pbx.d.ts.map +1 -0
  414. package/dist/types/types/pbxmngt/pbxmngt-events.d.ts +74 -0
  415. package/dist/types/types/pbxmngt/pbxmngt-events.d.ts.map +1 -0
  416. package/dist/types/types/phoneset/device-key.d.ts +36 -0
  417. package/dist/types/types/phoneset/device-key.d.ts.map +1 -0
  418. package/dist/types/types/phoneset/dynamic-state.d.ts +30 -0
  419. package/dist/types/types/phoneset/dynamic-state.d.ts.map +1 -0
  420. package/dist/types/types/phoneset/pin.d.ts +53 -0
  421. package/dist/types/types/phoneset/pin.d.ts.map +1 -0
  422. package/dist/types/types/phoneset/prog-key.d.ts +26 -0
  423. package/dist/types/types/phoneset/prog-key.d.ts.map +1 -0
  424. package/dist/types/types/phoneset/soft-key.d.ts +18 -0
  425. package/dist/types/types/phoneset/soft-key.d.ts.map +1 -0
  426. package/dist/types/types/routing/destination.d.ts +18 -0
  427. package/dist/types/types/routing/destination.d.ts.map +1 -0
  428. package/dist/types/types/routing/dnd-state.d.ts +9 -0
  429. package/dist/types/types/routing/dnd-state.d.ts.map +1 -0
  430. package/dist/types/types/routing/forward-condition.d.ts +26 -0
  431. package/dist/types/types/routing/forward-condition.d.ts.map +1 -0
  432. package/dist/types/types/routing/forward.d.ts +53 -0
  433. package/dist/types/types/routing/forward.d.ts.map +1 -0
  434. package/dist/types/types/routing/overflow-condition.d.ts +22 -0
  435. package/dist/types/types/routing/overflow-condition.d.ts.map +1 -0
  436. package/dist/types/types/routing/overflow.d.ts +50 -0
  437. package/dist/types/types/routing/overflow.d.ts.map +1 -0
  438. package/dist/types/types/routing/routing-capabilities.d.ts +15 -0
  439. package/dist/types/types/routing/routing-capabilities.d.ts.map +1 -0
  440. package/dist/types/types/routing/routing-events.d.ts +23 -0
  441. package/dist/types/types/routing/routing-events.d.ts.map +1 -0
  442. package/dist/types/types/routing/routing-state.d.ts +52 -0
  443. package/dist/types/types/routing/routing-state.d.ts.map +1 -0
  444. package/dist/types/types/rsi/add-digit-coll-criteria.d.ts +17 -0
  445. package/dist/types/types/rsi/add-digit-coll-criteria.d.ts.map +1 -0
  446. package/dist/types/types/rsi/collection-cause.d.ts +22 -0
  447. package/dist/types/types/rsi/collection-cause.d.ts.map +1 -0
  448. package/dist/types/types/rsi/route-session.d.ts +21 -0
  449. package/dist/types/types/rsi/route-session.d.ts.map +1 -0
  450. package/dist/types/types/rsi/routing-caller-type.d.ts +18 -0
  451. package/dist/types/types/rsi/routing-caller-type.d.ts.map +1 -0
  452. package/dist/types/types/rsi/routing-reason.d.ts +26 -0
  453. package/dist/types/types/rsi/routing-reason.d.ts.map +1 -0
  454. package/dist/types/types/rsi/rsi-events.d.ts +47 -0
  455. package/dist/types/types/rsi/rsi-events.d.ts.map +1 -0
  456. package/dist/types/types/rsi/rsi-point.d.ts +17 -0
  457. package/dist/types/types/rsi/rsi-point.d.ts.map +1 -0
  458. package/dist/types/types/rsi/tones.d.ts +26 -0
  459. package/dist/types/types/rsi/tones.d.ts.map +1 -0
  460. package/dist/types/types/telephony/RecordingAction.d.ts +7 -0
  461. package/dist/types/types/telephony/RecordingAction.d.ts.map +1 -0
  462. package/dist/types/types/telephony/call/call-cause.d.ts +123 -0
  463. package/dist/types/types/telephony/call/call-cause.d.ts.map +1 -0
  464. package/dist/types/types/telephony/call/call-data.d.ts +81 -0
  465. package/dist/types/types/telephony/call/call-data.d.ts.map +1 -0
  466. package/dist/types/types/telephony/call/ccd/acd-call-info.d.ts +35 -0
  467. package/dist/types/types/telephony/call/ccd/acd-call-info.d.ts.map +1 -0
  468. package/dist/types/types/telephony/call/ccd/acd-data.d.ts +50 -0
  469. package/dist/types/types/telephony/call/ccd/acd-data.d.ts.map +1 -0
  470. package/dist/types/types/telephony/call/ccd/call-profile.d.ts +112 -0
  471. package/dist/types/types/telephony/call/ccd/call-profile.d.ts.map +1 -0
  472. package/dist/types/types/telephony/call/ccd/pilot-info.d.ts +43 -0
  473. package/dist/types/types/telephony/call/ccd/pilot-info.d.ts.map +1 -0
  474. package/dist/types/types/telephony/call/ccd/pilot-status.d.ts +38 -0
  475. package/dist/types/types/telephony/call/ccd/pilot-status.d.ts.map +1 -0
  476. package/dist/types/types/telephony/call/ccd/pilot-transfer-info.d.ts +24 -0
  477. package/dist/types/types/telephony/call/ccd/pilot-transfer-info.d.ts.map +1 -0
  478. package/dist/types/types/telephony/call/ccd/pilot-transfer-query-param.d.ts +104 -0
  479. package/dist/types/types/telephony/call/ccd/pilot-transfer-query-param.d.ts.map +1 -0
  480. package/dist/types/types/telephony/call/ccd/queue-data.d.ts +23 -0
  481. package/dist/types/types/telephony/call/ccd/queue-data.d.ts.map +1 -0
  482. package/dist/types/types/telephony/call/correlator-data.d.ts +54 -0
  483. package/dist/types/types/telephony/call/correlator-data.d.ts.map +1 -0
  484. package/dist/types/types/telephony/call/leg.d.ts +57 -0
  485. package/dist/types/types/telephony/call/leg.d.ts.map +1 -0
  486. package/dist/types/types/telephony/call/media-state.d.ts +42 -0
  487. package/dist/types/types/telephony/call/media-state.d.ts.map +1 -0
  488. package/dist/types/types/telephony/call/participant.d.ts +34 -0
  489. package/dist/types/types/telephony/call/participant.d.ts.map +1 -0
  490. package/dist/types/types/telephony/call/record-state.d.ts +14 -0
  491. package/dist/types/types/telephony/call/record-state.d.ts.map +1 -0
  492. package/dist/types/types/telephony/call/tag.d.ts +37 -0
  493. package/dist/types/types/telephony/call/tag.d.ts.map +1 -0
  494. package/dist/types/types/telephony/call.d.ts +90 -0
  495. package/dist/types/types/telephony/call.d.ts.map +1 -0
  496. package/dist/types/types/telephony/callback.d.ts +33 -0
  497. package/dist/types/types/telephony/callback.d.ts.map +1 -0
  498. package/dist/types/types/telephony/device/device-state.d.ts +30 -0
  499. package/dist/types/types/telephony/device/device-state.d.ts.map +1 -0
  500. package/dist/types/types/telephony/device/operational-state.d.ts +18 -0
  501. package/dist/types/types/telephony/device/operational-state.d.ts.map +1 -0
  502. package/dist/types/types/telephony/hunting-group-status.d.ts +25 -0
  503. package/dist/types/types/telephony/hunting-group-status.d.ts.map +1 -0
  504. package/dist/types/types/telephony/hunting-groups.d.ts +33 -0
  505. package/dist/types/types/telephony/hunting-groups.d.ts.map +1 -0
  506. package/dist/types/types/telephony/mini-message.d.ts +37 -0
  507. package/dist/types/types/telephony/mini-message.d.ts.map +1 -0
  508. package/dist/types/types/telephony/telephonic-state.d.ts +34 -0
  509. package/dist/types/types/telephony/telephonic-state.d.ts.map +1 -0
  510. package/dist/types/types/telephony/telephony-events.d.ts +223 -0
  511. package/dist/types/types/telephony/telephony-events.d.ts.map +1 -0
  512. package/dist/types/types/telephony/trunk-indentification.d.ts +19 -0
  513. package/dist/types/types/telephony/trunk-indentification.d.ts.map +1 -0
  514. package/dist/types/types/telephony/user/user-state.d.ts +18 -0
  515. package/dist/types/types/telephony/user/user-state.d.ts.map +1 -0
  516. package/dist/types/types/users/preferences.d.ts +29 -0
  517. package/dist/types/types/users/preferences.d.ts.map +1 -0
  518. package/dist/types/types/users/supported-languages.d.ts +29 -0
  519. package/dist/types/types/users/supported-languages.d.ts.map +1 -0
  520. package/dist/types/types/users/user.d.ts +67 -0
  521. package/dist/types/types/users/user.d.ts.map +1 -0
  522. package/dist/types/types/users/users-events.d.ts +78 -0
  523. package/dist/types/types/users/users-events.d.ts.map +1 -0
  524. package/dist/types/types/users/voicemail-type.d.ts +18 -0
  525. package/dist/types/types/users/voicemail-type.d.ts.map +1 -0
  526. package/dist/types/types/users/voicemail.d.ts +20 -0
  527. package/dist/types/types/users/voicemail.d.ts.map +1 -0
  528. package/package.json +6 -4
@@ -0,0 +1,450 @@
1
+ import { StatisticsData } from './types/cc-stats/data/stats-data';
2
+ import { ProgressCallback } from './types/cc-stats/events/progress-callback';
3
+ import { Language } from './types/cc-stats/language';
4
+ import { Requester } from './types/cc-stats/requester';
5
+ import { ScheduledReport } from './types/cc-stats/scheduled/scheduled-report';
6
+ import { StatsFormat } from './types/cc-stats/stats-format';
7
+ import { StatsContext } from './types/cc-stats/stats-context';
8
+ import { StatsFilter } from './types/cc-stats/stats-filter';
9
+ import { TimeInterval } from './types/cc-stats/time-interval';
10
+ import { DateRange } from './types/common/date-range';
11
+ import { Recurrence } from './types/cc-stats/scheduled/recurrence';
12
+ import { ReportObservationPeriod } from './types/cc-stats/scheduled/report-obs-period';
13
+ /**
14
+ * CallCenterStatistics provides access to historical ACD statistics and reporting.
15
+ * Using this service requires having a <b>CONTACTCENTER_SRV</b> license.
16
+ * <p>
17
+ * Statistics are accessed through a two-level hierarchy:
18
+ * <ul>
19
+ * <li>A {@link Requester} defines the scope of agents whose data can be accessed.</li>
20
+ * <li>A {@link StatsContext} defines the filter criteria (pilots, agents, queues)
21
+ * for which statistics are collected.</li>
22
+ * </ul>
23
+ * <p>
24
+ * The typical usage sequence for retrieving statistics is:
25
+ * <ol>
26
+ * <li>Create a requester with {@link createRequester}, specifying the agents in scope.</li>
27
+ * <li>Create a context with {@link createContext}, specifying the filter criteria.</li>
28
+ * <li>Retrieve data with {@link getDayData} for a single day, or {@link getDaysData}
29
+ * for a date range.</li>
30
+ * <li>Delete the context and requester when done.</li>
31
+ * </ol>
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * // Create a requester scoped to two agents
36
+ * const requester = await O2G.callCenterStatistics.createRequester(
37
+ * "myRequester",
38
+ * Language.ENGLISH,
39
+ * "Europe/Paris",
40
+ * "60119", "60120"
41
+ * );
42
+ *
43
+ * // Create a context with a filter on a specific pilot
44
+ * const filter = new StatsFilter();
45
+ * filter.addPilot("60141");
46
+ * const context = await O2G.callCenterStatistics.createContext(
47
+ * requester,
48
+ * "myContext",
49
+ * "Pilot 60141 statistics",
50
+ * filter
51
+ * );
52
+ *
53
+ * // Retrieve statistics for today in 30-minute intervals
54
+ * const data = await O2G.callCenterStatistics.getDayData(context, new Date(), TimeInterval.THIRTY_MINUTES);
55
+ *
56
+ * // Retrieve statistics for a date range
57
+ * const range = new DateRange(new Date("2025-01-01"), new Date("2025-01-31"));
58
+ * const monthData = await O2G.callCenterStatistics.getDaysData(context, range);
59
+ *
60
+ * // Clean up
61
+ * await O2G.callCenterStatistics.deleteContexts(requester);
62
+ * await O2G.callCenterStatistics.deleteRequester(requester);
63
+ * ```
64
+ */
65
+ export declare class CallCenterStatistics {
66
+ #private;
67
+ /**
68
+ * Returns whether there is an asynchronous statistics request currently in progress.
69
+ *
70
+ * This can be useful to check before calling {@link getDayFileData} or {@link getDaysFileData},
71
+ * since both methods enforce that only one request can run at a time.
72
+ *
73
+ * @returns `true` if a statistics request is currently active, `false` otherwise
74
+ */
75
+ hasAsyncRequestInProgress(): boolean;
76
+ /**
77
+ * Creates a new `Requester` with the specified identifier, language, and time zone,
78
+ * and establishes the statistics scope defining which agents' data the requester
79
+ * is authorized to access.
80
+ *
81
+ * This method determines the set of agents whose statistics can be retrieved by
82
+ * the specified requester. Once the scope is created, the requester can query
83
+ * individual or aggregated statistics for those agents through the reporting services.
84
+ *
85
+ * @example
86
+ * ```typescript
87
+ * // Create a requester scoped to specific agents
88
+ * const requester = await O2G.callCenterStatistics.createRequester(
89
+ * "supervisor01",
90
+ * Language.ENGLISH,
91
+ * "Europe/Paris",
92
+ * "60119", "60120", "60121"
93
+ * );
94
+ *
95
+ * // Create a requester scoped to a single agent
96
+ * const singleAgentRequester = await O2G.callCenterStatistics.createRequester(
97
+ * "supervisor02",
98
+ * Language.FRENCH,
99
+ * "Europe/London",
100
+ * "60119"
101
+ * );
102
+ * ```
103
+ *
104
+ * @param id the unique identifier of the requester
105
+ * @param language the requester's preferred {@link Language}
106
+ * @param timezone the requester's time zone (e.g. `"Europe/Paris"`)
107
+ * @param agents the agent identifiers that define the scope of accessible statistics
108
+ * @returns the newly created {@link Requester} on success; `null` otherwise.
109
+ * @see deleteRequester
110
+ */
111
+ createRequester(id: string, language: Language, timezone: string, ...agents: string[]): Promise<Requester | null>;
112
+ /**
113
+ * Removes the requester and all its associated contexts.
114
+ *
115
+ * After calling this method, the specified requester will no longer have
116
+ * access to any agent statistics defined under their scope.
117
+ *
118
+ * @param requester - The requester to removed.
119
+ * @returns `true` if the requester was successfully removed; otherwise, `false`.
120
+ */
121
+ deleteRequester(requester: Requester): Promise<boolean>;
122
+ /**
123
+ * Retrieves the requester associated with the specified identifier.
124
+ *
125
+ * The returned requester represents the scope of agents for which statistics
126
+ * can be accessed. If no requester exists with the given ID, this method
127
+ * returns `null`.
128
+ *
129
+ * @param id - The unique identifier of the requester.
130
+ * @returns The `Requester` object corresponding to the ID, or `null`
131
+ * if no matching requester is found.
132
+ */
133
+ getRequester(id: string): Promise<Requester | null>;
134
+ /**
135
+ * Creates a new statistical context with the specified label, description, and filter
136
+ * for the given requester.
137
+ *
138
+ * A context defines a scope for which call center statistics can be collected and analyzed
139
+ * according to the specified filter criteria.
140
+ *
141
+ * @param requester - the requester for whom the context is being created
142
+ * @param label - a short label identifying this context
143
+ * @param description - a detailed description of the context
144
+ * @param filter - the filter defining the selection criteria for the context
145
+ * @returns the created `StatContext` if successful; `null` otherwise
146
+ */
147
+ createContext(requester: Requester, label: string, description: string, filter: StatsFilter): Promise<StatsContext | null>;
148
+ /**
149
+ * Deletes all statistical contexts associated with the specified requester.
150
+ *
151
+ * A context defines a scope for collecting and analyzing call center statistics
152
+ * according to its associated filter criteria.
153
+ *
154
+ * @param requester - The requester whose contexts should be deleted.
155
+ * @returns `true` if all contexts were successfully deleted; `false`
156
+ * if an error occurred or no contexts were deleted.
157
+ *
158
+ * @see createContext
159
+ */
160
+ deleteContexts(requester: Requester): Promise<boolean>;
161
+ /**
162
+ * Retrieves the statistical contexts created for the specified requester.
163
+ *
164
+ * Each context defines a scope for collecting and analyzing call center statistics
165
+ * according to its associated filter criteria.
166
+ *
167
+ * @param requester - The requester whose contexts are being retrieved.
168
+ * @returns An array of `Context` objects if successful; `null`
169
+ * if there is an error or if no contexts exist for this requester.
170
+ * @see createContext
171
+ */
172
+ getContexts(requester: Requester): Promise<StatsContext[] | null>;
173
+ /**
174
+ * Retrieves a statistical context by its identifier for the specified requester.
175
+ *
176
+ * A context defines a scope for collecting and analyzing call center statistics
177
+ * according to its associated filter criteria.
178
+ *
179
+ * @param requester - The requester who owns the context.
180
+ * @param contextId - The unique identifier of the context.
181
+ * @returns The {@link StatsContext} if found and retrieval is successful; `null`
182
+ * if there is an error or if no context exists with the specified identifier.
183
+ */
184
+ getContext(requester: Requester, contextId: string): Promise<StatsContext | null>;
185
+ /**
186
+ * Deletes the specified statistical context.
187
+ *
188
+ * A context defines a scope for collecting and analyzing call center statistics
189
+ * according to its associated filter criteria.
190
+ *
191
+ * @param context - The context to be deleted.
192
+ * @returns `true` if the context was successfully deleted; `false`
193
+ * if an error occurred or the context could not be deleted.
194
+ * @see createContext(requester: Requester, name: string, description: string, filter: Filter)
195
+ */
196
+ deleteContext(context: StatsContext): Promise<boolean>;
197
+ /**
198
+ * Retrieves statistical data for the specified context.
199
+ *
200
+ * This method generates a multi-day report corresponding to the time range
201
+ * defined by the provided {@link DateRange}. It allows reporting and analysis
202
+ * of call center metrics across multiple days within the selected period.
203
+ *
204
+ * The returned {@link StatisticsData} object contains the aggregated data,
205
+ * suitable for further processing or integration.
206
+ *
207
+ * @param context - The context defining the scope and filters for the statistics.
208
+ * @param range - The date range over which to collect statistics.
209
+ * @returns A {@link StatisticsData} object containing the data,
210
+ * or `null` if the data could not be retrieved.
211
+ */
212
+ getDaysData(context: StatsContext, range: DateRange): Promise<StatisticsData | null>;
213
+ /**
214
+ * Retrieves statistical data for the specified context for a single day.
215
+ *
216
+ * The statistics are provided in time slots according to the `timeInterval` parameter.
217
+ *
218
+ * - If `date` is not provided, the current day is used.
219
+ * - If `timeInterval` is not provided or `undefined`, it is ignored and
220
+ * `TimeInterval.QUARTE_HOUR` is used as the default value.
221
+ *
222
+ * @param context - The context defining the scope and filters for the statistics
223
+ * @param date - (Optional) The specific day for which to collect statistics; defaults to today if not provided
224
+ * @param timeInterval - (Optional) The time slot interval for reporting (e.g., 15 or 30 minutes);
225
+ * defaults to `TimeInterval.QUARTE_HOUR` if not provided
226
+ * @returns A `StatisticsData` object containing the data, or `null` if the data could not be retrieved
227
+ */
228
+ getDayData(context: StatsContext, date?: Date, timeInterval?: TimeInterval): Promise<StatisticsData | null>;
229
+ /**
230
+ * Asynchronously retrieves statistical data for the specified context for a single day
231
+ * and stores it as a report file in the given directory.
232
+ * <p>
233
+ * The statistics are reported in time slots defined by the `timeInterval` parameter,
234
+ * spanning from 00:00 until the last completed interval of the specified day.
235
+ * <p>
236
+ * Only one report generation request can be active at a time. Use
237
+ * {@link hasAsyncRequestInProgress} to check before calling this method. Any attempt
238
+ * to start another request while one is already in progress will reject the returned
239
+ * `Promise` with an `Error`.
240
+ *
241
+ * @example
242
+ * ```typescript
243
+ * // Check no request is already running
244
+ * if (!O2G.callCenterStatistics.hasAsyncRequestInProgress()) {
245
+ * const filePath = await O2G.callCenterStatistics.getDayFileData(
246
+ * context,
247
+ * new Date(2025, 9, 5), // October 5, 2025 (months are 0-based)
248
+ * TimeInterval.HOUR,
249
+ * StatsFormat.CSV,
250
+ * "/tmp/stats",
251
+ * (step) => console.log(`Progress: ${step}`)
252
+ * );
253
+ * console.log(`Report saved at: ${filePath}`);
254
+ * }
255
+ *
256
+ * // Cancel if needed
257
+ * await O2G.callCenterStatistics.cancelRequest(context);
258
+ * ```
259
+ *
260
+ * @param context the context defining the scope and filters for the statistics
261
+ * @param date the date for which to generate the report
262
+ * @param timeInterval the length of each reporting interval within the day
263
+ * @param format the output format for the report file
264
+ * @param directory the directory in which to save the generated report file
265
+ * @param progressCallback optional callback invoked to report progress of the operation
266
+ * @returns a `Promise` that resolves with the path to the generated report file,
267
+ * or rejects if an error occurs, the operation is cancelled, or another
268
+ * request is already in progress
269
+ * @see getDaysFileData
270
+ * @see hasAsyncRequestInProgress
271
+ * @see cancelRequest
272
+ */
273
+ getDayFileData(context: StatsContext, date: Date, timeInterval: TimeInterval, format: StatsFormat, directory: string, progressCallback?: ProgressCallback): Promise<string>;
274
+ /**
275
+ * Asynchronously retrieves statistical data for the specified context over a date range
276
+ * and stores it as a report file in the given directory.
277
+ * <p>
278
+ * Only one report generation request can be active at a time. Use
279
+ * {@link hasAsyncRequestInProgress} to check before calling this method. Any attempt
280
+ * to start another request while one is already in progress will reject the returned
281
+ * `Promise` with an `Error`.
282
+ *
283
+ * @example
284
+ * ```typescript
285
+ * // Check no request is already running
286
+ * if (!O2G.callCenterStatistics.hasAsyncRequestInProgress()) {
287
+ * const range = new DateRange(
288
+ * new Date(2025, 8, 1), // September 1, 2025
289
+ * new Date(2025, 8, 30) // September 30, 2025
290
+ * );
291
+ * const filePath = await O2G.callCenterStatistics.getDaysFileData(
292
+ * context,
293
+ * range,
294
+ * StatsFormat.CSV,
295
+ * "/tmp/stats",
296
+ * (step) => console.log(`Progress: ${step}`)
297
+ * );
298
+ * console.log(`Report saved at: ${filePath}`);
299
+ * }
300
+ *
301
+ * // Cancel if needed
302
+ * await O2G.callCenterStatistics.cancelRequest(context);
303
+ * ```
304
+ *
305
+ * @param context the context defining the scope and filters for the statistics
306
+ * @param range the date range over which to collect statistics
307
+ * @param format the output format for the report file
308
+ * @param directory the directory in which to save the generated report file
309
+ * @param progressCallback optional callback invoked to report progress of the operation
310
+ * @returns a `Promise` that resolves with the path to the generated report file,
311
+ * or rejects if an error occurs, the operation is cancelled, or another
312
+ * request is already in progress
313
+ * @see getDayFileData
314
+ * @see hasAsyncRequestInProgress
315
+ * @see cancelRequest
316
+ */
317
+ getDaysFileData(context: StatsContext, range: DateRange, format: StatsFormat, directory: string, progressCallback?: ProgressCallback): Promise<string>;
318
+ /**
319
+ * Attempts to cancel an ongoing statistics report generation for the specified context.
320
+ *
321
+ * If a report generation process for the given `context` is currently running,
322
+ * this method will attempt to stop it. Cancellation may succeed only if the process
323
+ * has not already completed.
324
+ *
325
+ * The method returns immediately and does not block until the process is fully terminated.
326
+ *
327
+ * @param context - The context identifying the report generation process to cancel
328
+ * @returns `true` if a running report generation was found and successfully requested to be cancelled,
329
+ * `false` if there was no running process for the specified context or if it could not be cancelled
330
+ */
331
+ cancelRequest(context: StatsContext): Promise<boolean>;
332
+ /**
333
+ * Creates a new recurrent scheduled report with the specified configuration.
334
+ * <p>
335
+ * The report will be generated repeatedly according to the given `recurrence`
336
+ * pattern and `observationPeriod`, formatted in the specified output format,
337
+ * and sent to the provided recipients.
338
+ *
339
+ * @example
340
+ * ```typescript
341
+ * // Create a weekly report sent every Monday covering the previous week
342
+ * const report = await O2G.callCenterStatistics.createRecurrentScheduledReport(
343
+ * context,
344
+ * "weeklyReport",
345
+ * "Weekly pilot statistics",
346
+ * ReportObservationPeriod.PREVIOUS_WEEK,
347
+ * Recurrence.WEEKLY,
348
+ * StatsFormat.CSV,
349
+ * ["supervisor@company.com", "manager@company.com"]
350
+ * );
351
+ *
352
+ * // Disable the report temporarily
353
+ * await O2G.callCenterStatistics.setScheduledReportEnabled(report, false);
354
+ *
355
+ * // Re-enable it later
356
+ * await O2G.callCenterStatistics.setScheduledReportEnabled(report, true);
357
+ * ```
358
+ *
359
+ * @param context the context defining which data and counters to include
360
+ * @param id a unique identifier for the scheduled report
361
+ * @param description a human-readable description of the report
362
+ * @param observationPeriod the period over which statistics are collected
363
+ * @param recurrence the recurrence pattern for generating the report
364
+ * @param format the output format of the report
365
+ * @param recipients the list of email addresses to receive the report
366
+ * @returns the newly created {@link ScheduledReport} on success; `null` otherwise.
367
+ * @see createOneTimeScheduledReport
368
+ * @see deleteScheduledReport
369
+ * @see setScheduledReportEnabled
370
+ */
371
+ createRecurrentScheduledReport(context: StatsContext, id: string, description: string, observationPeriod: ReportObservationPeriod, recurrence: Recurrence, format: StatsFormat, recipients: string[]): Promise<ScheduledReport | null>;
372
+ /**
373
+ * Creates a new one-time scheduled report with the specified configuration.
374
+ * <p>
375
+ * Unlike {@link createRecurrentScheduledReport}, this report is generated only
376
+ * once for the specified `observationPeriod`, then it is no longer active.
377
+ *
378
+ * @example
379
+ * ```typescript
380
+ * // Create a one-time report covering the previous month
381
+ * const report = await O2G.callCenterStatistics.createOneTimeScheduledReport(
382
+ * context,
383
+ * "monthlySnapshot",
384
+ * "End of month statistics snapshot",
385
+ * ReportObservationPeriod.PREVIOUS_MONTH,
386
+ * StatsFormat.CSV,
387
+ * ["supervisor@company.com"]
388
+ * );
389
+ * ```
390
+ *
391
+ * @param context the context defining which data and counters to include
392
+ * @param id a unique identifier for the scheduled report
393
+ * @param description a human-readable description of the report
394
+ * @param observationPeriod the period over which statistics are collected
395
+ * @param format the output format of the report
396
+ * @param recipients the list of email addresses to receive the report
397
+ * @returns the newly created {@link ScheduledReport} on success; `null` otherwise.
398
+ * @see createRecurrentScheduledReport
399
+ * @see deleteScheduledReport
400
+ */
401
+ createOneTimeScheduledReport(context: StatsContext, id: string, description: string, observationPeriod: ReportObservationPeriod, format: StatsFormat, recipients: string[]): Promise<ScheduledReport | null>;
402
+ /**
403
+ * Returns all scheduled reports associated with the given context.
404
+ *
405
+ * @param context - The context defining which reports to retrieve
406
+ * @returns An array of {@link ScheduledReport} objects for the specified context;
407
+ * may be empty if no reports exist
408
+ */
409
+ getScheduledReports(context: StatsContext): Promise<ScheduledReport[] | null>;
410
+ /**
411
+ * Deletes the specified scheduled report.
412
+ *
413
+ * @param report The scheduled report to delete.
414
+ * @returns `true` if the report was successfully deleted, `false` otherwise.
415
+ */
416
+ deleteScheduledReport(report: ScheduledReport): Promise<boolean>;
417
+ /**
418
+ * Enables or disables the specified scheduled report.
419
+ *
420
+ * @param report The scheduled report to update.
421
+ * @param enabled `true` to enable the report, `false` to disable it.
422
+ * @returns `true` if the report state was successfully updated, `false` otherwise.
423
+ */
424
+ setScheduledReportEnabled(report: ScheduledReport, enabled: boolean): Promise<boolean>;
425
+ /**
426
+ * Retrieves a previously created scheduled report by its unique identifier.
427
+ *
428
+ * This method requires a valid `StatsContext` to perform the retrieval operation.
429
+ * The `scheduleReportId` must correspond to an existing scheduled report.
430
+ *
431
+ * @param context The session context used to access the service.
432
+ * @param scheduleReportId The unique identifier of the scheduled report to retrieve.
433
+ * @returns The `ScheduledReport` corresponding to the specified ID,
434
+ * or `null` if no report exists with that ID.
435
+ */
436
+ getScheduledReport(context: StatsContext, scheduleReportId: string): Promise<ScheduledReport | null>;
437
+ /**
438
+ * Updates the configuration of an existing scheduled report.
439
+ *
440
+ * This method persists any changes made to the provided `ScheduledReport` instance,
441
+ * including its description, observation period, recurrence, format, and recipients.
442
+ * Implementations should ensure that the report exists and that the updates are valid.
443
+ *
444
+ * @param report The `ScheduledReport` instance containing the updated information.
445
+ * @returns `true` if the update was successful; `false` if the report does not exist
446
+ * or the update could not be applied.
447
+ */
448
+ updateScheduledReport(report: ScheduledReport): Promise<boolean>;
449
+ }
450
+ //# sourceMappingURL=o2g-cc-stat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"o2g-cc-stat.d.ts","sourceRoot":"","sources":["../../src/o2g-cc-stat.ts"],"names":[],"mappings":"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"}