o2g-node-sdk 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -7
- package/dist/o2g-node-sdk.js +2165 -4487
- package/dist/o2g-node-sdk.js.map +1 -1
- package/dist/types/ErrorInfo.d.ts +88 -0
- package/dist/types/ErrorInfo.d.ts.map +1 -0
- package/dist/types/host.d.ts +18 -0
- package/dist/types/host.d.ts.map +1 -0
- package/dist/types/internal/access-mode.d.ts +2 -0
- package/dist/types/internal/access-mode.d.ts.map +1 -0
- package/dist/types/internal/events/chunk-eventing.d.ts +2 -0
- package/dist/types/internal/events/chunk-eventing.d.ts.map +1 -0
- package/dist/types/internal/events/event-dispatcher.d.ts +2 -0
- package/dist/types/internal/events/event-dispatcher.d.ts.map +1 -0
- package/dist/types/internal/events/event-packages.d.ts +2 -0
- package/dist/types/internal/events/event-packages.d.ts.map +1 -0
- package/dist/types/internal/o2g-application.d.ts +2 -0
- package/dist/types/internal/o2g-application.d.ts.map +1 -0
- package/dist/types/internal/rest/analytics-rest.d.ts +2 -0
- package/dist/types/internal/rest/analytics-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/authentication-rest.d.ts +2 -0
- package/dist/types/internal/rest/authentication-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/ccAgent-rest.d.ts +2 -0
- package/dist/types/internal/rest/ccAgent-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/ccMngt-rest.d.ts +2 -0
- package/dist/types/internal/rest/ccMngt-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/ccPilot-rest.d.ts +2 -0
- package/dist/types/internal/rest/ccPilot-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/ccRealtime-rest.d.ts +2 -0
- package/dist/types/internal/rest/ccRealtime-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/ccStatistics-rest.d.ts +45 -0
- package/dist/types/internal/rest/ccStatistics-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/comlog-rest.d.ts +2 -0
- package/dist/types/internal/rest/comlog-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/directory-rest.d.ts +2 -0
- package/dist/types/internal/rest/directory-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/eventSummary-rest.d.ts +2 -0
- package/dist/types/internal/rest/eventSummary-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/maint-rest.d.ts +2 -0
- package/dist/types/internal/rest/maint-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/messaging-rest.d.ts +2 -0
- package/dist/types/internal/rest/messaging-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/o2g-rest.d.ts +2 -0
- package/dist/types/internal/rest/o2g-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/pbx-mngt-rest.d.ts +2 -0
- package/dist/types/internal/rest/pbx-mngt-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/phone-set-prog-rest.d.ts +2 -0
- package/dist/types/internal/rest/phone-set-prog-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/rest-service.d.ts +2 -0
- package/dist/types/internal/rest/rest-service.d.ts.map +1 -0
- package/dist/types/internal/rest/routing-rest.d.ts +2 -0
- package/dist/types/internal/rest/routing-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/rsi-rest.d.ts +2 -0
- package/dist/types/internal/rest/rsi-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/sessions-rest.d.ts +2 -0
- package/dist/types/internal/rest/sessions-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/subscriptions-rest.d.ts +2 -0
- package/dist/types/internal/rest/subscriptions-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/telephony-rest.d.ts +2 -0
- package/dist/types/internal/rest/telephony-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/users-mngt-rest.d.ts +2 -0
- package/dist/types/internal/rest/users-mngt-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/users-rest.d.ts +2 -0
- package/dist/types/internal/rest/users-rest.d.ts.map +1 -0
- package/dist/types/internal/service-end-point.d.ts +2 -0
- package/dist/types/internal/service-end-point.d.ts.map +1 -0
- package/dist/types/internal/service-factory.d.ts +2 -0
- package/dist/types/internal/service-factory.d.ts.map +1 -0
- package/dist/types/internal/session.d.ts +2 -0
- package/dist/types/internal/session.d.ts.map +1 -0
- package/dist/types/internal/types/analytics/analytics-types.d.ts +2 -0
- package/dist/types/internal/types/analytics/analytics-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-agent/cc-agent-types.d.ts +2 -0
- package/dist/types/internal/types/cc-agent/cc-agent-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-mngt/cc-mntg-types.d.ts +2 -0
- package/dist/types/internal/types/cc-mngt/cc-mntg-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-pilot/cc-pilot-types.d.ts +2 -0
- package/dist/types/internal/types/cc-pilot/cc-pilot-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-rt/cc-rt-types.d.ts +2 -0
- package/dist/types/internal/types/cc-rt/cc-rt-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/abstract-filter.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/abstract-filter.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/ag-filter-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/ag-filter-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/cc-stat-types.d.ts +57 -0
- package/dist/types/internal/types/cc-stats/cc-stat-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/context-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/context-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/on-stats-progress.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/on-stats-progress.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/pil-aband-calls-filter-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/pil-aband-calls-filter-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/pil-filter-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/pil-filter-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/requester-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/requester-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/scheduled-rep-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/scheduled-rep-impl.d.ts.map +1 -0
- package/dist/types/internal/types/comlog/comlog-types.d.ts +2 -0
- package/dist/types/internal/types/comlog/comlog-types.d.ts.map +1 -0
- package/dist/types/internal/types/common/common-types.d.ts +2 -0
- package/dist/types/internal/types/common/common-types.d.ts.map +1 -0
- package/dist/types/internal/types/directory/directory-types.d.ts +2 -0
- package/dist/types/internal/types/directory/directory-types.d.ts.map +1 -0
- package/dist/types/internal/types/eventsummary/eventsummary-types.d.ts +14 -0
- package/dist/types/internal/types/eventsummary/eventsummary-types.d.ts.map +1 -0
- package/dist/types/internal/types/maint/maint-types.d.ts +2 -0
- package/dist/types/internal/types/maint/maint-types.d.ts.map +1 -0
- package/dist/types/internal/types/messaging/messaging-types.d.ts +2 -0
- package/dist/types/internal/types/messaging/messaging-types.d.ts.map +1 -0
- package/dist/types/internal/types/pbxmngt/pbxmngt-types.d.ts +2 -0
- package/dist/types/internal/types/pbxmngt/pbxmngt-types.d.ts.map +1 -0
- package/dist/types/internal/types/phoneset/phoneset-types.d.ts +2 -0
- package/dist/types/internal/types/phoneset/phoneset-types.d.ts.map +1 -0
- package/dist/types/internal/types/routing/routing-types.d.ts +2 -0
- package/dist/types/internal/types/routing/routing-types.d.ts.map +1 -0
- package/dist/types/internal/types/rsi/rsi-types.d.ts +2 -0
- package/dist/types/internal/types/rsi/rsi-types.d.ts.map +1 -0
- package/dist/types/internal/types/telephony/telephony-types.d.ts +4 -0
- package/dist/types/internal/types/telephony/telephony-types.d.ts.map +1 -0
- package/dist/types/internal/types/users/users-types.d.ts +2 -0
- package/dist/types/internal/types/users/users-types.d.ts.map +1 -0
- package/dist/types/internal/util/IHttpClient.d.ts +2 -0
- package/dist/types/internal/util/IHttpClient.d.ts.map +1 -0
- package/dist/types/internal/util/assert.d.ts +2 -0
- package/dist/types/internal/util/assert.d.ts.map +1 -0
- package/dist/types/internal/util/file-utils.d.ts +2 -0
- package/dist/types/internal/util/file-utils.d.ts.map +1 -0
- package/dist/types/internal/util/format-util.d.ts +2 -0
- package/dist/types/internal/util/format-util.d.ts.map +1 -0
- package/dist/types/internal/util/hexa-string.d.ts +2 -0
- package/dist/types/internal/util/hexa-string.d.ts.map +1 -0
- package/dist/types/internal/util/http-client.d.ts +2 -0
- package/dist/types/internal/util/http-client.d.ts.map +1 -0
- package/dist/types/internal/util/http-content.d.ts +2 -0
- package/dist/types/internal/util/http-content.d.ts.map +1 -0
- package/dist/types/internal/util/http-response.d.ts +2 -0
- package/dist/types/internal/util/http-response.d.ts.map +1 -0
- package/dist/types/internal/util/injection-container.d.ts +5 -0
- package/dist/types/internal/util/injection-container.d.ts.map +1 -0
- package/dist/types/internal/util/logger.d.ts +40 -0
- package/dist/types/internal/util/logger.d.ts.map +1 -0
- package/dist/types/internal/util/util-uri.d.ts +2 -0
- package/dist/types/internal/util/util-uri.d.ts.map +1 -0
- package/dist/types/o2g-analytics.d.ts +61 -0
- package/dist/types/o2g-analytics.d.ts.map +1 -0
- package/dist/types/o2g-cc-agent.d.ts +376 -0
- package/dist/types/o2g-cc-agent.d.ts.map +1 -0
- package/dist/types/o2g-cc-mngt.d.ts +213 -0
- package/dist/types/o2g-cc-mngt.d.ts.map +1 -0
- package/dist/types/o2g-cc-pilot.d.ts +71 -0
- package/dist/types/o2g-cc-pilot.d.ts.map +1 -0
- package/dist/types/o2g-cc-rt.d.ts +163 -0
- package/dist/types/o2g-cc-rt.d.ts.map +1 -0
- package/dist/types/o2g-cc-stat.d.ts +454 -0
- package/dist/types/o2g-cc-stat.d.ts.map +1 -0
- package/dist/types/o2g-comlog.d.ts +245 -0
- package/dist/types/o2g-comlog.d.ts.map +1 -0
- package/dist/types/o2g-directory.d.ts +109 -0
- package/dist/types/o2g-directory.d.ts.map +1 -0
- package/dist/types/o2g-eventSummary.d.ts +44 -0
- package/dist/types/o2g-eventSummary.d.ts.map +1 -0
- package/dist/types/o2g-maint.d.ts +92 -0
- package/dist/types/o2g-maint.d.ts.map +1 -0
- package/dist/types/o2g-messaging.d.ts +137 -0
- package/dist/types/o2g-messaging.d.ts.map +1 -0
- package/dist/types/o2g-node-sdk.d.ts +421 -0
- package/dist/types/o2g-node-sdk.d.ts.map +1 -0
- package/dist/types/o2g-pbx-mngt.d.ts +244 -0
- package/dist/types/o2g-pbx-mngt.d.ts.map +1 -0
- package/dist/types/o2g-phone-set-prog.d.ts +269 -0
- package/dist/types/o2g-phone-set-prog.d.ts.map +1 -0
- package/dist/types/o2g-routing.d.ts +313 -0
- package/dist/types/o2g-routing.d.ts.map +1 -0
- package/dist/types/o2g-rsi.d.ts +155 -0
- package/dist/types/o2g-rsi.d.ts.map +1 -0
- package/dist/types/o2g-telephony.d.ts +895 -0
- package/dist/types/o2g-telephony.d.ts.map +1 -0
- package/dist/types/o2g-users-mngt.d.ts +83 -0
- package/dist/types/o2g-users-mngt.d.ts.map +1 -0
- package/dist/types/o2g-users.d.ts +127 -0
- package/dist/types/o2g-users.d.ts.map +1 -0
- package/dist/types/subscription.d.ts +379 -0
- package/dist/types/subscription.d.ts.map +1 -0
- package/dist/types/supervised-account.d.ts +40 -0
- package/dist/types/supervised-account.d.ts.map +1 -0
- package/dist/types/types/analytics/call-type.d.ts +25 -0
- package/dist/types/types/analytics/call-type.d.ts.map +1 -0
- package/dist/types/types/analytics/charging-file.d.ts +13 -0
- package/dist/types/types/analytics/charging-file.d.ts.map +1 -0
- package/dist/types/types/analytics/charging-result.d.ts +50 -0
- package/dist/types/types/analytics/charging-result.d.ts.map +1 -0
- package/dist/types/types/analytics/charging.d.ts +69 -0
- package/dist/types/types/analytics/charging.d.ts.map +1 -0
- package/dist/types/types/analytics/incident.d.ts +41 -0
- package/dist/types/types/analytics/incident.d.ts.map +1 -0
- package/dist/types/types/analytics/tel-facility.d.ts +45 -0
- package/dist/types/types/analytics/tel-facility.d.ts.map +1 -0
- package/dist/types/types/cc-agent/agent-groups.d.ts +11 -0
- package/dist/types/types/cc-agent/agent-groups.d.ts.map +1 -0
- package/dist/types/types/cc-agent/agent-skill-set.d.ts +73 -0
- package/dist/types/types/cc-agent/agent-skill-set.d.ts.map +1 -0
- package/dist/types/types/cc-agent/agent-skill.d.ts +59 -0
- package/dist/types/types/cc-agent/agent-skill.d.ts.map +1 -0
- package/dist/types/types/cc-agent/cc-agent-events.d.ts +44 -0
- package/dist/types/types/cc-agent/cc-agent-events.d.ts.map +1 -0
- package/dist/types/types/cc-agent/intrusion-mode.d.ts +25 -0
- package/dist/types/types/cc-agent/intrusion-mode.d.ts.map +1 -0
- package/dist/types/types/cc-agent/operator-config.d.ts +72 -0
- package/dist/types/types/cc-agent/operator-config.d.ts.map +1 -0
- package/dist/types/types/cc-agent/operator-state.d.ts +100 -0
- package/dist/types/types/cc-agent/operator-state.d.ts.map +1 -0
- package/dist/types/types/cc-agent/operator-type.d.ts +17 -0
- package/dist/types/types/cc-agent/operator-type.d.ts.map +1 -0
- package/dist/types/types/cc-agent/withdraw-reason.d.ts +23 -0
- package/dist/types/types/cc-agent/withdraw-reason.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/abstract-calendar.d.ts +8 -0
- package/dist/types/types/cc-mngt/calendar/abstract-calendar.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/calendar.d.ts +22 -0
- package/dist/types/types/cc-mngt/calendar/calendar.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/exception-calendar.d.ts +31 -0
- package/dist/types/types/cc-mngt/calendar/exception-calendar.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/normal-calendar.d.ts +31 -0
- package/dist/types/types/cc-mngt/calendar/normal-calendar.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/pilot-operating-Mode.d.ts +18 -0
- package/dist/types/types/cc-mngt/calendar/pilot-operating-Mode.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/transition.d.ts +65 -0
- package/dist/types/types/cc-mngt/calendar/transition.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/pilot-rule-set.d.ts +33 -0
- package/dist/types/types/cc-mngt/pilot-rule-set.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/pilot-rule.d.ts +24 -0
- package/dist/types/types/cc-mngt/pilot-rule.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/pilot.d.ts +58 -0
- package/dist/types/types/cc-mngt/pilot.d.ts.map +1 -0
- package/dist/types/types/cc-pilot/call-data-pilot.d.ts +50 -0
- package/dist/types/types/cc-pilot/call-data-pilot.d.ts.map +1 -0
- package/dist/types/types/cc-pilot/cc-pilot-events.d.ts +131 -0
- package/dist/types/types/cc-pilot/cc-pilot-events.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-attributes.d.ts +50 -0
- package/dist/types/types/cc-rt/agent-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-pg-attributes.d.ts +50 -0
- package/dist/types/types/cc-rt/agent-pg-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-pg-type.d.ts +17 -0
- package/dist/types/types/cc-rt/agent-pg-type.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-phone-state.d.ts +67 -0
- package/dist/types/types/cc-rt/agent-phone-state.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-service-type.d.ts +16 -0
- package/dist/types/types/cc-rt/agent-service-type.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-type.d.ts +16 -0
- package/dist/types/types/cc-rt/agent-type.d.ts.map +1 -0
- package/dist/types/types/cc-rt/cc-rt-events.d.ts +274 -0
- package/dist/types/types/cc-rt/cc-rt-events.d.ts.map +1 -0
- package/dist/types/types/cc-rt/other-pg-attributes.d.ts +18 -0
- package/dist/types/types/cc-rt/other-pg-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-rt/other-pg-type.d.ts +22 -0
- package/dist/types/types/cc-rt/other-pg-type.d.ts.map +1 -0
- package/dist/types/types/cc-rt/pilot-attributes.d.ts +40 -0
- package/dist/types/types/cc-rt/pilot-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-rt/queue-attributes.d.ts +30 -0
- package/dist/types/types/cc-rt/queue-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-rt/queue-type.d.ts +23 -0
- package/dist/types/types/cc-rt/queue-type.d.ts.map +1 -0
- package/dist/types/types/cc-rt/rti-context.d.ts +56 -0
- package/dist/types/types/cc-rt/rti-context.d.ts.map +1 -0
- package/dist/types/types/cc-rt/rti-filter.d.ts +117 -0
- package/dist/types/types/cc-rt/rti-filter.d.ts.map +1 -0
- package/dist/types/types/cc-rt/rti-object-identifier.d.ts +34 -0
- package/dist/types/types/cc-rt/rti-object-identifier.d.ts.map +1 -0
- package/dist/types/types/cc-rt/rti-objects.d.ts +72 -0
- package/dist/types/types/cc-rt/rti-objects.d.ts.map +1 -0
- package/dist/types/types/cc-stats/agbypilot-attributes.d.ts +73 -0
- package/dist/types/types/cc-stats/agbypilot-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-stats/agent-attributes.d.ts +377 -0
- package/dist/types/types/cc-stats/agent-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-stats/agent-filter.d.ts +60 -0
- package/dist/types/types/cc-stats/agent-filter.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/ag-by-pil-stats-row.d.ts +184 -0
- package/dist/types/types/cc-stats/data/ag-by-pil-stats-row.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/ag-stats-row.d.ts +608 -0
- package/dist/types/types/cc-stats/data/ag-stats-row.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/data-obs-period.d.ts +20 -0
- package/dist/types/types/cc-stats/data/data-obs-period.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/pil-stats-row.d.ts +623 -0
- package/dist/types/types/cc-stats/data/pil-stats-row.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/selected-period.d.ts +49 -0
- package/dist/types/types/cc-stats/data/selected-period.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/stat-value.d.ts +36 -0
- package/dist/types/types/cc-stats/data/stat-value.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/stats-data.d.ts +64 -0
- package/dist/types/types/cc-stats/data/stats-data.d.ts.map +1 -0
- package/dist/types/types/cc-stats/events/progress-callback.d.ts +9 -0
- package/dist/types/types/cc-stats/events/progress-callback.d.ts.map +1 -0
- package/dist/types/types/cc-stats/events/progress-step.d.ts +20 -0
- package/dist/types/types/cc-stats/events/progress-step.d.ts.map +1 -0
- package/dist/types/types/cc-stats/language.d.ts +15 -0
- package/dist/types/types/cc-stats/language.d.ts.map +1 -0
- package/dist/types/types/cc-stats/pilot-abandoned-calls-attributes.d.ts +48 -0
- package/dist/types/types/cc-stats/pilot-abandoned-calls-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-stats/pilot-abandonned-calls-filter.d.ts +46 -0
- package/dist/types/types/cc-stats/pilot-abandonned-calls-filter.d.ts.map +1 -0
- package/dist/types/types/cc-stats/pilot-attributes.d.ts +185 -0
- package/dist/types/types/cc-stats/pilot-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-stats/pilot-filter.d.ts +45 -0
- package/dist/types/types/cc-stats/pilot-filter.d.ts.map +1 -0
- package/dist/types/types/cc-stats/requester.d.ts +33 -0
- package/dist/types/types/cc-stats/requester.d.ts.map +1 -0
- package/dist/types/types/cc-stats/scheduled/recurrence.d.ts +69 -0
- package/dist/types/types/cc-stats/scheduled/recurrence.d.ts.map +1 -0
- package/dist/types/types/cc-stats/scheduled/report-obs-period.d.ts +87 -0
- package/dist/types/types/cc-stats/scheduled/report-obs-period.d.ts.map +1 -0
- package/dist/types/types/cc-stats/scheduled/scheduled-report.d.ts +137 -0
- package/dist/types/types/cc-stats/scheduled/scheduled-report.d.ts.map +1 -0
- package/dist/types/types/cc-stats/stats-context.d.ts +72 -0
- package/dist/types/types/cc-stats/stats-context.d.ts.map +1 -0
- package/dist/types/types/cc-stats/stats-filter.d.ts +41 -0
- package/dist/types/types/cc-stats/stats-filter.d.ts.map +1 -0
- package/dist/types/types/cc-stats/stats-format.d.ts +17 -0
- package/dist/types/types/cc-stats/stats-format.d.ts.map +1 -0
- package/dist/types/types/cc-stats/time-interval.d.ts +19 -0
- package/dist/types/types/cc-stats/time-interval.d.ts.map +1 -0
- package/dist/types/types/comlog/com-record-participant.d.ts +75 -0
- package/dist/types/types/comlog/com-record-participant.d.ts.map +1 -0
- package/dist/types/types/comlog/com-record.d.ts +97 -0
- package/dist/types/types/comlog/com-record.d.ts.map +1 -0
- package/dist/types/types/comlog/comlog-events.d.ts +110 -0
- package/dist/types/types/comlog/comlog-events.d.ts.map +1 -0
- package/dist/types/types/comlog/filter-option.d.ts +24 -0
- package/dist/types/types/comlog/filter-option.d.ts.map +1 -0
- package/dist/types/types/comlog/page.d.ts +34 -0
- package/dist/types/types/comlog/page.d.ts.map +1 -0
- package/dist/types/types/comlog/query-filter.d.ts +79 -0
- package/dist/types/types/comlog/query-filter.d.ts.map +1 -0
- package/dist/types/types/comlog/query-result.d.ts +55 -0
- package/dist/types/types/comlog/query-result.d.ts.map +1 -0
- package/dist/types/types/comlog/reason.d.ts +62 -0
- package/dist/types/types/comlog/reason.d.ts.map +1 -0
- package/dist/types/types/comlog/role.d.ts +18 -0
- package/dist/types/types/comlog/role.d.ts.map +1 -0
- package/dist/types/types/common/date-range.d.ts +17 -0
- package/dist/types/types/common/date-range.d.ts.map +1 -0
- package/dist/types/types/common/day-of-week.d.ts +15 -0
- package/dist/types/types/common/day-of-week.d.ts.map +1 -0
- package/dist/types/types/common/device-type.d.ts +22 -0
- package/dist/types/types/common/device-type.d.ts.map +1 -0
- package/dist/types/types/common/device.d.ts +75 -0
- package/dist/types/types/common/device.d.ts.map +1 -0
- package/dist/types/types/common/identifier.d.ts +20 -0
- package/dist/types/types/common/identifier.d.ts.map +1 -0
- package/dist/types/types/common/main-type.d.ts +26 -0
- package/dist/types/types/common/main-type.d.ts.map +1 -0
- package/dist/types/types/common/party-info-type.d.ts +22 -0
- package/dist/types/types/common/party-info-type.d.ts.map +1 -0
- package/dist/types/types/common/party-info.d.ts +28 -0
- package/dist/types/types/common/party-info.d.ts.map +1 -0
- package/dist/types/types/common/service-state.d.ts +20 -0
- package/dist/types/types/common/service-state.d.ts.map +1 -0
- package/dist/types/types/directory/criteria.d.ts +95 -0
- package/dist/types/types/directory/criteria.d.ts.map +1 -0
- package/dist/types/types/directory/filter-item.d.ts +22 -0
- package/dist/types/types/directory/filter-item.d.ts.map +1 -0
- package/dist/types/types/directory/logical-operation.d.ts +14 -0
- package/dist/types/types/directory/logical-operation.d.ts.map +1 -0
- package/dist/types/types/directory/operation-filter.d.ts +22 -0
- package/dist/types/types/directory/operation-filter.d.ts.map +1 -0
- package/dist/types/types/directory/result-item.d.ts +22 -0
- package/dist/types/types/directory/result-item.d.ts.map +1 -0
- package/dist/types/types/directory/search-result.d.ts +64 -0
- package/dist/types/types/directory/search-result.d.ts.map +1 -0
- package/dist/types/types/events/events.d.ts +79 -0
- package/dist/types/types/events/events.d.ts.map +1 -0
- package/dist/types/types/eventsummary/event-summary-counter.d.ts +69 -0
- package/dist/types/types/eventsummary/event-summary-counter.d.ts.map +1 -0
- package/dist/types/types/eventsummary/event-summary-events.d.ts +26 -0
- package/dist/types/types/eventsummary/event-summary-events.d.ts.map +1 -0
- package/dist/types/types/maint/configuration-type.d.ts +15 -0
- package/dist/types/types/maint/configuration-type.d.ts.map +1 -0
- package/dist/types/types/maint/cti-link-state.d.ts +19 -0
- package/dist/types/types/maint/cti-link-state.d.ts.map +1 -0
- package/dist/types/types/maint/license-status.d.ts +42 -0
- package/dist/types/types/maint/license-status.d.ts.map +1 -0
- package/dist/types/types/maint/license-type.d.ts +19 -0
- package/dist/types/types/maint/license-type.d.ts.map +1 -0
- package/dist/types/types/maint/license.d.ts +38 -0
- package/dist/types/types/maint/license.d.ts.map +1 -0
- package/dist/types/types/maint/maint-events.d.ts +131 -0
- package/dist/types/types/maint/maint-events.d.ts.map +1 -0
- package/dist/types/types/maint/pbx-status.d.ts +77 -0
- package/dist/types/types/maint/pbx-status.d.ts.map +1 -0
- package/dist/types/types/maint/server-address.d.ts +25 -0
- package/dist/types/types/maint/server-address.d.ts.map +1 -0
- package/dist/types/types/maint/service-status.d.ts +31 -0
- package/dist/types/types/maint/service-status.d.ts.map +1 -0
- package/dist/types/types/maint/subscriber-filter.d.ts +24 -0
- package/dist/types/types/maint/subscriber-filter.d.ts.map +1 -0
- package/dist/types/types/maint/sys-service-status.d.ts +33 -0
- package/dist/types/types/maint/sys-service-status.d.ts.map +1 -0
- package/dist/types/types/maint/sys-status.d.ts +83 -0
- package/dist/types/types/maint/sys-status.d.ts.map +1 -0
- package/dist/types/types/messaging/mailbox-info.d.ts +35 -0
- package/dist/types/types/messaging/mailbox-info.d.ts.map +1 -0
- package/dist/types/types/messaging/mailbox.d.ts +119 -0
- package/dist/types/types/messaging/mailbox.d.ts.map +1 -0
- package/dist/types/types/messaging/voice-message.d.ts +57 -0
- package/dist/types/types/messaging/voice-message.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/attribute-filter.d.ts +31 -0
- package/dist/types/types/pbxmngt/attribute-filter.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/instance-filter.d.ts +72 -0
- package/dist/types/types/pbxmngt/instance-filter.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/model.d.ts +221 -0
- package/dist/types/types/pbxmngt/model.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/octet-string-length.d.ts +12 -0
- package/dist/types/types/pbxmngt/octet-string-length.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/pbx-attr-map.d.ts +96 -0
- package/dist/types/types/pbxmngt/pbx-attr-map.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/pbx-attribute.d.ts +182 -0
- package/dist/types/types/pbxmngt/pbx-attribute.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/pbx-object.d.ts +73 -0
- package/dist/types/types/pbxmngt/pbx-object.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/pbx.d.ts +23 -0
- package/dist/types/types/pbxmngt/pbx.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/pbxmngt-events.d.ts +74 -0
- package/dist/types/types/pbxmngt/pbxmngt-events.d.ts.map +1 -0
- package/dist/types/types/phoneset/device-key.d.ts +36 -0
- package/dist/types/types/phoneset/device-key.d.ts.map +1 -0
- package/dist/types/types/phoneset/dynamic-state.d.ts +30 -0
- package/dist/types/types/phoneset/dynamic-state.d.ts.map +1 -0
- package/dist/types/types/phoneset/pin.d.ts +53 -0
- package/dist/types/types/phoneset/pin.d.ts.map +1 -0
- package/dist/types/types/phoneset/prog-key.d.ts +26 -0
- package/dist/types/types/phoneset/prog-key.d.ts.map +1 -0
- package/dist/types/types/phoneset/soft-key.d.ts +18 -0
- package/dist/types/types/phoneset/soft-key.d.ts.map +1 -0
- package/dist/types/types/routing/destination.d.ts +18 -0
- package/dist/types/types/routing/destination.d.ts.map +1 -0
- package/dist/types/types/routing/dnd-state.d.ts +9 -0
- package/dist/types/types/routing/dnd-state.d.ts.map +1 -0
- package/dist/types/types/routing/forward-condition.d.ts +26 -0
- package/dist/types/types/routing/forward-condition.d.ts.map +1 -0
- package/dist/types/types/routing/forward.d.ts +53 -0
- package/dist/types/types/routing/forward.d.ts.map +1 -0
- package/dist/types/types/routing/overflow-condition.d.ts +22 -0
- package/dist/types/types/routing/overflow-condition.d.ts.map +1 -0
- package/dist/types/types/routing/overflow.d.ts +50 -0
- package/dist/types/types/routing/overflow.d.ts.map +1 -0
- package/dist/types/types/routing/routing-capabilities.d.ts +15 -0
- package/dist/types/types/routing/routing-capabilities.d.ts.map +1 -0
- package/dist/types/types/routing/routing-events.d.ts +23 -0
- package/dist/types/types/routing/routing-events.d.ts.map +1 -0
- package/dist/types/types/routing/routing-state.d.ts +52 -0
- package/dist/types/types/routing/routing-state.d.ts.map +1 -0
- package/dist/types/types/rsi/add-digit-coll-criteria.d.ts +17 -0
- package/dist/types/types/rsi/add-digit-coll-criteria.d.ts.map +1 -0
- package/dist/types/types/rsi/collection-cause.d.ts +22 -0
- package/dist/types/types/rsi/collection-cause.d.ts.map +1 -0
- package/dist/types/types/rsi/route-session.d.ts +21 -0
- package/dist/types/types/rsi/route-session.d.ts.map +1 -0
- package/dist/types/types/rsi/routing-caller-type.d.ts +18 -0
- package/dist/types/types/rsi/routing-caller-type.d.ts.map +1 -0
- package/dist/types/types/rsi/routing-reason.d.ts +26 -0
- package/dist/types/types/rsi/routing-reason.d.ts.map +1 -0
- package/dist/types/types/rsi/rsi-events.d.ts +47 -0
- package/dist/types/types/rsi/rsi-events.d.ts.map +1 -0
- package/dist/types/types/rsi/rsi-point.d.ts +17 -0
- package/dist/types/types/rsi/rsi-point.d.ts.map +1 -0
- package/dist/types/types/rsi/tones.d.ts +26 -0
- package/dist/types/types/rsi/tones.d.ts.map +1 -0
- package/dist/types/types/telephony/RecordingAction.d.ts +7 -0
- package/dist/types/types/telephony/RecordingAction.d.ts.map +1 -0
- package/dist/types/types/telephony/call/call-cause.d.ts +123 -0
- package/dist/types/types/telephony/call/call-cause.d.ts.map +1 -0
- package/dist/types/types/telephony/call/call-data.d.ts +81 -0
- package/dist/types/types/telephony/call/call-data.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/acd-call-info.d.ts +35 -0
- package/dist/types/types/telephony/call/ccd/acd-call-info.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/acd-data.d.ts +50 -0
- package/dist/types/types/telephony/call/ccd/acd-data.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/call-profile.d.ts +112 -0
- package/dist/types/types/telephony/call/ccd/call-profile.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/pilot-info.d.ts +43 -0
- package/dist/types/types/telephony/call/ccd/pilot-info.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/pilot-status.d.ts +38 -0
- package/dist/types/types/telephony/call/ccd/pilot-status.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/pilot-transfer-info.d.ts +24 -0
- package/dist/types/types/telephony/call/ccd/pilot-transfer-info.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/pilot-transfer-query-param.d.ts +104 -0
- package/dist/types/types/telephony/call/ccd/pilot-transfer-query-param.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/queue-data.d.ts +23 -0
- package/dist/types/types/telephony/call/ccd/queue-data.d.ts.map +1 -0
- package/dist/types/types/telephony/call/correlator-data.d.ts +54 -0
- package/dist/types/types/telephony/call/correlator-data.d.ts.map +1 -0
- package/dist/types/types/telephony/call/leg.d.ts +57 -0
- package/dist/types/types/telephony/call/leg.d.ts.map +1 -0
- package/dist/types/types/telephony/call/media-state.d.ts +42 -0
- package/dist/types/types/telephony/call/media-state.d.ts.map +1 -0
- package/dist/types/types/telephony/call/participant.d.ts +34 -0
- package/dist/types/types/telephony/call/participant.d.ts.map +1 -0
- package/dist/types/types/telephony/call/record-state.d.ts +14 -0
- package/dist/types/types/telephony/call/record-state.d.ts.map +1 -0
- package/dist/types/types/telephony/call/tag.d.ts +37 -0
- package/dist/types/types/telephony/call/tag.d.ts.map +1 -0
- package/dist/types/types/telephony/call.d.ts +90 -0
- package/dist/types/types/telephony/call.d.ts.map +1 -0
- package/dist/types/types/telephony/callback.d.ts +33 -0
- package/dist/types/types/telephony/callback.d.ts.map +1 -0
- package/dist/types/types/telephony/device/device-state.d.ts +30 -0
- package/dist/types/types/telephony/device/device-state.d.ts.map +1 -0
- package/dist/types/types/telephony/device/operational-state.d.ts +18 -0
- package/dist/types/types/telephony/device/operational-state.d.ts.map +1 -0
- package/dist/types/types/telephony/hunting-group-status.d.ts +25 -0
- package/dist/types/types/telephony/hunting-group-status.d.ts.map +1 -0
- package/dist/types/types/telephony/hunting-groups.d.ts +33 -0
- package/dist/types/types/telephony/hunting-groups.d.ts.map +1 -0
- package/dist/types/types/telephony/mini-message.d.ts +37 -0
- package/dist/types/types/telephony/mini-message.d.ts.map +1 -0
- package/dist/types/types/telephony/telephonic-state.d.ts +41 -0
- package/dist/types/types/telephony/telephonic-state.d.ts.map +1 -0
- package/dist/types/types/telephony/telephony-events.d.ts +223 -0
- package/dist/types/types/telephony/telephony-events.d.ts.map +1 -0
- package/dist/types/types/telephony/trunk-indentification.d.ts +19 -0
- package/dist/types/types/telephony/trunk-indentification.d.ts.map +1 -0
- package/dist/types/types/telephony/user/user-state.d.ts +18 -0
- package/dist/types/types/telephony/user/user-state.d.ts.map +1 -0
- package/dist/types/types/users/preferences.d.ts +29 -0
- package/dist/types/types/users/preferences.d.ts.map +1 -0
- package/dist/types/types/users/supported-languages.d.ts +29 -0
- package/dist/types/types/users/supported-languages.d.ts.map +1 -0
- package/dist/types/types/users/user.d.ts +67 -0
- package/dist/types/types/users/user.d.ts.map +1 -0
- package/dist/types/types/users/users-events.d.ts +78 -0
- package/dist/types/types/users/users-events.d.ts.map +1 -0
- package/dist/types/types/users/voicemail-type.d.ts +18 -0
- package/dist/types/types/users/voicemail-type.d.ts.map +1 -0
- package/dist/types/types/users/voicemail.d.ts +20 -0
- package/dist/types/types/users/voicemail.d.ts.map +1 -0
- package/package.json +6 -4
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import EventEmitter from 'events';
|
|
2
|
+
import { RtiObjects } from './types/cc-rt/rti-objects';
|
|
3
|
+
import { RtiObjectIdentifier } from './types/cc-rt/rti-object-identifier';
|
|
4
|
+
import { RtiContext } from './types/cc-rt/rti-context';
|
|
5
|
+
/**
|
|
6
|
+
* Provides real-time information about CCD objects from an OXE system
|
|
7
|
+
* in the form of events.
|
|
8
|
+
* <p>
|
|
9
|
+
* This service is available only to administrators and delivers the same
|
|
10
|
+
* level of information as the legacy RTI interface available in the CCS.
|
|
11
|
+
* <p>
|
|
12
|
+
* The CCD objects that can be monitored include CCD agents, pilots, waiting
|
|
13
|
+
* queues, processing groups associated with agents, and other processing
|
|
14
|
+
* groups (e.g. forward, guide).
|
|
15
|
+
* <p>
|
|
16
|
+
* The typical usage sequence is:
|
|
17
|
+
* <ol>
|
|
18
|
+
* <li>Build an {@link RtiFilter} specifying which objects and attributes to monitor.</li>
|
|
19
|
+
* <li>Create an {@link RtiContext} with the filter and the desired notification frequency.</li>
|
|
20
|
+
* <li>Set the context with {@link setContext}.</li>
|
|
21
|
+
* <li>Register event listeners for the RTI events of interest.</li>
|
|
22
|
+
* <li>Start monitoring with {@link start}.</li>
|
|
23
|
+
* </ol>
|
|
24
|
+
* <p>
|
|
25
|
+
* After initialization, the application is notified whenever one or more monitored
|
|
26
|
+
* attributes change. Each event contains only the attributes that have changed
|
|
27
|
+
* since the previous notification.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* // Build a filter for specific agents and attributes
|
|
32
|
+
* const filter = new RtiFilter();
|
|
33
|
+
* filter.setAgentAttributes(
|
|
34
|
+
* AgentAttributes.PrivateCallsTotalDuration,
|
|
35
|
+
* AgentAttributes.AssociatedSet,
|
|
36
|
+
* AgentAttributes.LogonDate
|
|
37
|
+
* );
|
|
38
|
+
* filter.setAgentNumbers(["60119", "60120"]);
|
|
39
|
+
*
|
|
40
|
+
* // Create a context: notification every 30s, data refresh every 5s
|
|
41
|
+
* const context = new RtiContext(30, 5, filter);
|
|
42
|
+
* await O2G.callCenterRealtime.setContext(context);
|
|
43
|
+
*
|
|
44
|
+
* // Register event listeners
|
|
45
|
+
* O2G.callCenterRealtime.on(CallCenterRealtime.ON_AGENT_RTI_CHANGED, (event) => {
|
|
46
|
+
* console.log("Agent RTI changed:", event);
|
|
47
|
+
* });
|
|
48
|
+
*
|
|
49
|
+
* // Start monitoring
|
|
50
|
+
* await O2G.callCenterRealtime.start();
|
|
51
|
+
*
|
|
52
|
+
* // Stop monitoring and clean up when done
|
|
53
|
+
* await O2G.callCenterRealtime.deleteContext();
|
|
54
|
+
* O2G.callCenterRealtime.removeAllListeners(CallCenterRealtime.ON_AGENT_RTI_CHANGED);
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @since 2.7.4
|
|
58
|
+
*/
|
|
59
|
+
export declare class CallCenterRealtime extends EventEmitter {
|
|
60
|
+
#private;
|
|
61
|
+
/**
|
|
62
|
+
* Occurs when the real-time information of a CCD agent has changed.
|
|
63
|
+
* @event
|
|
64
|
+
*/
|
|
65
|
+
static readonly ON_AGENT_RTI_CHANGED = "OnAgentRtiChanged";
|
|
66
|
+
/**
|
|
67
|
+
* Occurs when the real-time information of a CCD queue has changed.
|
|
68
|
+
* @event
|
|
69
|
+
*/
|
|
70
|
+
static readonly ON_QUEUE_RTI_CHANGED = "OnQueueRtiChanged";
|
|
71
|
+
/**
|
|
72
|
+
* Occurs when the real-time information of a CCD pilot has changed.
|
|
73
|
+
* @event
|
|
74
|
+
*/
|
|
75
|
+
static readonly ON_PILOT_RTI_CHANGED = "OnPilotRtiChanged";
|
|
76
|
+
/**
|
|
77
|
+
* Occurs when the real-time information of a CCD agent processing group has changed.
|
|
78
|
+
* @event
|
|
79
|
+
*/
|
|
80
|
+
static readonly ON_AGENT_PG_RTI_CHANGED = "OnPGAgentRtiChanged";
|
|
81
|
+
/**
|
|
82
|
+
* Occurs when the real-time information of a CCD other processing group has changed.
|
|
83
|
+
* @event
|
|
84
|
+
*/
|
|
85
|
+
static readonly ON_OTHER_PG_RTI_CHANGED = "OnPGOtherRtiChanged";
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves all CCD objects that currently provide real-time information.
|
|
88
|
+
*
|
|
89
|
+
* The returned {@link RtiObjects} includes collections of agents, pilots,
|
|
90
|
+
* queues, and processing groups that can be monitored.
|
|
91
|
+
*
|
|
92
|
+
* Returns `null` if no objects are available or an error occurs.
|
|
93
|
+
*/
|
|
94
|
+
getRtiObjects(): Promise<RtiObjects | null>;
|
|
95
|
+
/**
|
|
96
|
+
* Returns all CCD agents that provide real-time information.
|
|
97
|
+
*
|
|
98
|
+
* @returns An array of {@link RtiObjectIdentifier} representing agents,
|
|
99
|
+
* or an empty array if none exist.
|
|
100
|
+
*/
|
|
101
|
+
getAgents(): Promise<RtiObjectIdentifier[] | null>;
|
|
102
|
+
/**
|
|
103
|
+
* Returns all CCD pilots that provide real-time information.
|
|
104
|
+
*
|
|
105
|
+
* @returns A promise resolving to an array of {@link RtiObjectIdentifier} for pilots,
|
|
106
|
+
* or an empty array if none exist, or `null` if an error occurs.
|
|
107
|
+
*/
|
|
108
|
+
getPilots(): Promise<RtiObjectIdentifier[] | null>;
|
|
109
|
+
/**
|
|
110
|
+
* Returns all CCD queues that provide real-time information.
|
|
111
|
+
*
|
|
112
|
+
* @returns A promise resolving to an array of {@link RtiObjectIdentifier} for queues,
|
|
113
|
+
* or an empty array if none exist, or `null` if an error occurs.
|
|
114
|
+
*/
|
|
115
|
+
getQueues(): Promise<RtiObjectIdentifier[] | null>;
|
|
116
|
+
/**
|
|
117
|
+
* Returns all CCD agent processing groups that provide real-time information.
|
|
118
|
+
*
|
|
119
|
+
* @returns A promise resolving to an array of {@link RtiObjectIdentifier} for agent processing groups,
|
|
120
|
+
* or an empty array if none exist, or `null` if an error occurs.
|
|
121
|
+
*/
|
|
122
|
+
getAgentProcessingGroups(): Promise<RtiObjectIdentifier[] | null>;
|
|
123
|
+
/**
|
|
124
|
+
* Returns all CCD processing groups (other than agents) that provide real-time information.
|
|
125
|
+
*
|
|
126
|
+
* @returns A promise resolving to an array of {@link RtiObjectIdentifier} for other processing groups,
|
|
127
|
+
* or an empty array if none exist, or `null` if an error occurs.
|
|
128
|
+
*/
|
|
129
|
+
getOtherProcessingGroups(): Promise<RtiObjectIdentifier[] | null>;
|
|
130
|
+
/**
|
|
131
|
+
* Returns the monitoring Context associated with this administrator (session).
|
|
132
|
+
*
|
|
133
|
+
* @returns The Context associated with this administrator, or `null` if none exists.
|
|
134
|
+
*/
|
|
135
|
+
getContext(): Promise<RtiContext | null>;
|
|
136
|
+
/**
|
|
137
|
+
* Deletes the monitoring Context associated with this administrator (session),
|
|
138
|
+
* stopping any RTI event notifications.
|
|
139
|
+
*
|
|
140
|
+
* @returns `true` if the deletion was successful; `false` otherwise.
|
|
141
|
+
*/
|
|
142
|
+
deleteContext(): Promise<boolean>;
|
|
143
|
+
/**
|
|
144
|
+
* Associates or updates the monitoring Context for this administrator (session).
|
|
145
|
+
* If no context exists, a new one is created.
|
|
146
|
+
*
|
|
147
|
+
* The context defines which objects and attributes are monitored and the
|
|
148
|
+
* notification frequency for RTI events.
|
|
149
|
+
*
|
|
150
|
+
* @param context The Context to associate with this administrator.
|
|
151
|
+
* @returns `true` if the update was successful; `false` otherwise.
|
|
152
|
+
*/
|
|
153
|
+
setContext(context: RtiContext): Promise<boolean>;
|
|
154
|
+
/**
|
|
155
|
+
* Starts the monitoring of CCD objects according to the associated context.
|
|
156
|
+
*
|
|
157
|
+
* After calling this method, RTI events will be sent to any registered listeners.
|
|
158
|
+
*
|
|
159
|
+
* @returns `true` if the monitoring started successfully; `false` otherwise.
|
|
160
|
+
*/
|
|
161
|
+
start(): Promise<boolean>;
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=o2g-cc-rt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-cc-rt.d.ts","sourceRoot":"","sources":["../../src/o2g-cc-rt.ts"],"names":[],"mappings":"AAmBA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AASvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,qBAAa,kBAAmB,SAAQ,YAAY;;IAGhD;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,oBAAoB,uBAAuB;IAE3D;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,oBAAoB,uBAAuB;IAE3D;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,oBAAoB,uBAAuB;IAE3D;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,uBAAuB,yBAAyB;IAEhE;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,uBAAuB,yBAAyB;IAgBhE;;;;;;;OAOG;IACG,aAAa,IAAI,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAIjD;;;;;OAKG;IACG,SAAS,IAAI,OAAO,CAAC,mBAAmB,EAAE,GAAG,IAAI,CAAC;IAIxD;;;;;OAKG;IACG,SAAS,IAAI,OAAO,CAAC,mBAAmB,EAAE,GAAG,IAAI,CAAC;IAIxD;;;;;OAKG;IACG,SAAS,IAAI,OAAO,CAAC,mBAAmB,EAAE,GAAG,IAAI,CAAC;IAIxD;;;;;OAKG;IACG,wBAAwB,IAAI,OAAO,CAAC,mBAAmB,EAAE,GAAG,IAAI,CAAC;IAIvE;;;;;OAKG;IACG,wBAAwB,IAAI,OAAO,CAAC,mBAAmB,EAAE,GAAG,IAAI,CAAC;IAIvE;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAI9C;;;;;OAKG;IACG,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC;IAIvC;;;;;;;;;OASG;IACG,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvD;;;;;;OAMG;IACG,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;CAGlC"}
|
|
@@ -0,0 +1,454 @@
|
|
|
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
|
+
* @param shortHeader - True to return only limited number of headers in response
|
|
210
|
+
* @returns A {@link StatisticsData} object containing the data,
|
|
211
|
+
* or `null` if the data could not be retrieved.
|
|
212
|
+
*/
|
|
213
|
+
getDaysData(context: StatsContext, range: DateRange, shortHeader?: boolean): Promise<StatisticsData | null>;
|
|
214
|
+
/**
|
|
215
|
+
* Retrieves statistical data for the specified context for a single day.
|
|
216
|
+
*
|
|
217
|
+
* The statistics are provided in time slots according to the `timeInterval` parameter.
|
|
218
|
+
*
|
|
219
|
+
* - If `date` is not provided, the current day is used.
|
|
220
|
+
* - If `timeInterval` is not provided or `undefined`, it is ignored and
|
|
221
|
+
* `TimeInterval.QUARTE_HOUR` is used as the default value.
|
|
222
|
+
*
|
|
223
|
+
* @param context - The context defining the scope and filters for the statistics
|
|
224
|
+
* @param date - (Optional) The specific day for which to collect statistics; defaults to today if not provided
|
|
225
|
+
* @param timeInterval - (Optional) The time slot interval for reporting (e.g., 15 or 30 minutes);
|
|
226
|
+
* defaults to `TimeInterval.QUARTE_HOUR` if not provided
|
|
227
|
+
* @param shortHeader - True to return only limited number of headers in response
|
|
228
|
+
* @returns A `StatisticsData` object containing the data, or `null` if the data could not be retrieved
|
|
229
|
+
*/
|
|
230
|
+
getDayData(context: StatsContext, date?: Date, timeInterval?: TimeInterval, shortHeader?: boolean): Promise<StatisticsData | null>;
|
|
231
|
+
/**
|
|
232
|
+
* Asynchronously retrieves statistical data for the specified context for a single day
|
|
233
|
+
* and stores it as a report file in the given directory.
|
|
234
|
+
* <p>
|
|
235
|
+
* The statistics are reported in time slots defined by the `timeInterval` parameter,
|
|
236
|
+
* spanning from 00:00 until the last completed interval of the specified day.
|
|
237
|
+
* <p>
|
|
238
|
+
* Only one report generation request can be active at a time. Use
|
|
239
|
+
* {@link hasAsyncRequestInProgress} to check before calling this method. Any attempt
|
|
240
|
+
* to start another request while one is already in progress will reject the returned
|
|
241
|
+
* `Promise` with an `Error`.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* ```typescript
|
|
245
|
+
* // Check no request is already running
|
|
246
|
+
* if (!O2G.callCenterStatistics.hasAsyncRequestInProgress()) {
|
|
247
|
+
* const filePath = await O2G.callCenterStatistics.getDayFileData(
|
|
248
|
+
* context,
|
|
249
|
+
* new Date(2025, 9, 5), // October 5, 2025 (months are 0-based)
|
|
250
|
+
* TimeInterval.HOUR,
|
|
251
|
+
* StatsFormat.CSV,
|
|
252
|
+
* "/tmp/stats",
|
|
253
|
+
* (step) => console.log(`Progress: ${step}`)
|
|
254
|
+
* );
|
|
255
|
+
* console.log(`Report saved at: ${filePath}`);
|
|
256
|
+
* }
|
|
257
|
+
*
|
|
258
|
+
* // Cancel if needed
|
|
259
|
+
* await O2G.callCenterStatistics.cancelRequest(context);
|
|
260
|
+
* ```
|
|
261
|
+
*
|
|
262
|
+
* @param context the context defining the scope and filters for the statistics
|
|
263
|
+
* @param date the date for which to generate the report
|
|
264
|
+
* @param timeInterval the length of each reporting interval within the day
|
|
265
|
+
* @param format the output format for the report file
|
|
266
|
+
* @param shortHeader true to return only limited number of headers in response
|
|
267
|
+
* @param directory the directory in which to save the generated report file
|
|
268
|
+
* @param progressCallback optional callback invoked to report progress of the operation
|
|
269
|
+
* @returns a `Promise` that resolves with the path to the generated report file,
|
|
270
|
+
* or rejects if an error occurs, the operation is cancelled, or another
|
|
271
|
+
* request is already in progress
|
|
272
|
+
* @see getDaysFileData
|
|
273
|
+
* @see hasAsyncRequestInProgress
|
|
274
|
+
* @see cancelRequest
|
|
275
|
+
*/
|
|
276
|
+
getDayFileData(context: StatsContext, date: Date, timeInterval: TimeInterval, format: StatsFormat, shortHeader: boolean | undefined, directory: string, progressCallback?: ProgressCallback): Promise<string>;
|
|
277
|
+
/**
|
|
278
|
+
* Asynchronously retrieves statistical data for the specified context over a date range
|
|
279
|
+
* and stores it as a report file in the given directory.
|
|
280
|
+
* <p>
|
|
281
|
+
* Only one report generation request can be active at a time. Use
|
|
282
|
+
* {@link hasAsyncRequestInProgress} to check before calling this method. Any attempt
|
|
283
|
+
* to start another request while one is already in progress will reject the returned
|
|
284
|
+
* `Promise` with an `Error`.
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* ```typescript
|
|
288
|
+
* // Check no request is already running
|
|
289
|
+
* if (!O2G.callCenterStatistics.hasAsyncRequestInProgress()) {
|
|
290
|
+
* const range = new DateRange(
|
|
291
|
+
* new Date(2025, 8, 1), // September 1, 2025
|
|
292
|
+
* new Date(2025, 8, 30) // September 30, 2025
|
|
293
|
+
* );
|
|
294
|
+
* const filePath = await O2G.callCenterStatistics.getDaysFileData(
|
|
295
|
+
* context,
|
|
296
|
+
* range,
|
|
297
|
+
* StatsFormat.CSV,
|
|
298
|
+
* "/tmp/stats",
|
|
299
|
+
* (step) => console.log(`Progress: ${step}`)
|
|
300
|
+
* );
|
|
301
|
+
* console.log(`Report saved at: ${filePath}`);
|
|
302
|
+
* }
|
|
303
|
+
*
|
|
304
|
+
* // Cancel if needed
|
|
305
|
+
* await O2G.callCenterStatistics.cancelRequest(context);
|
|
306
|
+
* ```
|
|
307
|
+
*
|
|
308
|
+
* @param context the context defining the scope and filters for the statistics
|
|
309
|
+
* @param range the date range over which to collect statistics
|
|
310
|
+
* @param format the output format for the report file
|
|
311
|
+
* @param shortHeader true to return only limited number of headers in response
|
|
312
|
+
* @param directory the directory in which to save the generated report file
|
|
313
|
+
* @param progressCallback optional callback invoked to report progress of the operation
|
|
314
|
+
* @returns a `Promise` that resolves with the path to the generated report file,
|
|
315
|
+
* or rejects if an error occurs, the operation is cancelled, or another
|
|
316
|
+
* request is already in progress
|
|
317
|
+
* @see getDayFileData
|
|
318
|
+
* @see hasAsyncRequestInProgress
|
|
319
|
+
* @see cancelRequest
|
|
320
|
+
*/
|
|
321
|
+
getDaysFileData(context: StatsContext, range: DateRange, format: StatsFormat, shortHeader: boolean | undefined, directory: string, progressCallback?: ProgressCallback): Promise<string>;
|
|
322
|
+
/**
|
|
323
|
+
* Attempts to cancel an ongoing statistics report generation for the specified context.
|
|
324
|
+
*
|
|
325
|
+
* If a report generation process for the given `context` is currently running,
|
|
326
|
+
* this method will attempt to stop it. Cancellation may succeed only if the process
|
|
327
|
+
* has not already completed.
|
|
328
|
+
*
|
|
329
|
+
* The method returns immediately and does not block until the process is fully terminated.
|
|
330
|
+
*
|
|
331
|
+
* @param context - The context identifying the report generation process to cancel
|
|
332
|
+
* @returns `true` if a running report generation was found and successfully requested to be cancelled,
|
|
333
|
+
* `false` if there was no running process for the specified context or if it could not be cancelled
|
|
334
|
+
*/
|
|
335
|
+
cancelRequest(context: StatsContext): Promise<boolean>;
|
|
336
|
+
/**
|
|
337
|
+
* Creates a new recurrent scheduled report with the specified configuration.
|
|
338
|
+
* <p>
|
|
339
|
+
* The report will be generated repeatedly according to the given `recurrence`
|
|
340
|
+
* pattern and `observationPeriod`, formatted in the specified output format,
|
|
341
|
+
* and sent to the provided recipients.
|
|
342
|
+
*
|
|
343
|
+
* @example
|
|
344
|
+
* ```typescript
|
|
345
|
+
* // Create a weekly report sent every Monday covering the previous week
|
|
346
|
+
* const report = await O2G.callCenterStatistics.createRecurrentScheduledReport(
|
|
347
|
+
* context,
|
|
348
|
+
* "weeklyReport",
|
|
349
|
+
* "Weekly pilot statistics",
|
|
350
|
+
* ReportObservationPeriod.PREVIOUS_WEEK,
|
|
351
|
+
* Recurrence.WEEKLY,
|
|
352
|
+
* StatsFormat.CSV,
|
|
353
|
+
* ["supervisor@company.com", "manager@company.com"]
|
|
354
|
+
* );
|
|
355
|
+
*
|
|
356
|
+
* // Disable the report temporarily
|
|
357
|
+
* await O2G.callCenterStatistics.setScheduledReportEnabled(report, false);
|
|
358
|
+
*
|
|
359
|
+
* // Re-enable it later
|
|
360
|
+
* await O2G.callCenterStatistics.setScheduledReportEnabled(report, true);
|
|
361
|
+
* ```
|
|
362
|
+
*
|
|
363
|
+
* @param context the context defining which data and counters to include
|
|
364
|
+
* @param id a unique identifier for the scheduled report
|
|
365
|
+
* @param description a human-readable description of the report
|
|
366
|
+
* @param observationPeriod the period over which statistics are collected
|
|
367
|
+
* @param recurrence the recurrence pattern for generating the report
|
|
368
|
+
* @param format the output format of the report
|
|
369
|
+
* @param recipients the list of email addresses to receive the report
|
|
370
|
+
* @returns the newly created {@link ScheduledReport} on success; `null` otherwise.
|
|
371
|
+
* @see createOneTimeScheduledReport
|
|
372
|
+
* @see deleteScheduledReport
|
|
373
|
+
* @see setScheduledReportEnabled
|
|
374
|
+
*/
|
|
375
|
+
createRecurrentScheduledReport(context: StatsContext, id: string, description: string, observationPeriod: ReportObservationPeriod, recurrence: Recurrence, format: StatsFormat, recipients: string[]): Promise<ScheduledReport | null>;
|
|
376
|
+
/**
|
|
377
|
+
* Creates a new one-time scheduled report with the specified configuration.
|
|
378
|
+
* <p>
|
|
379
|
+
* Unlike {@link createRecurrentScheduledReport}, this report is generated only
|
|
380
|
+
* once for the specified `observationPeriod`, then it is no longer active.
|
|
381
|
+
*
|
|
382
|
+
* @example
|
|
383
|
+
* ```typescript
|
|
384
|
+
* // Create a one-time report covering the previous month
|
|
385
|
+
* const report = await O2G.callCenterStatistics.createOneTimeScheduledReport(
|
|
386
|
+
* context,
|
|
387
|
+
* "monthlySnapshot",
|
|
388
|
+
* "End of month statistics snapshot",
|
|
389
|
+
* ReportObservationPeriod.PREVIOUS_MONTH,
|
|
390
|
+
* StatsFormat.CSV,
|
|
391
|
+
* ["supervisor@company.com"]
|
|
392
|
+
* );
|
|
393
|
+
* ```
|
|
394
|
+
*
|
|
395
|
+
* @param context the context defining which data and counters to include
|
|
396
|
+
* @param id a unique identifier for the scheduled report
|
|
397
|
+
* @param description a human-readable description of the report
|
|
398
|
+
* @param observationPeriod the period over which statistics are collected
|
|
399
|
+
* @param format the output format of the report
|
|
400
|
+
* @param recipients the list of email addresses to receive the report
|
|
401
|
+
* @returns the newly created {@link ScheduledReport} on success; `null` otherwise.
|
|
402
|
+
* @see createRecurrentScheduledReport
|
|
403
|
+
* @see deleteScheduledReport
|
|
404
|
+
*/
|
|
405
|
+
createOneTimeScheduledReport(context: StatsContext, id: string, description: string, observationPeriod: ReportObservationPeriod, format: StatsFormat, recipients: string[]): Promise<ScheduledReport | null>;
|
|
406
|
+
/**
|
|
407
|
+
* Returns all scheduled reports associated with the given context.
|
|
408
|
+
*
|
|
409
|
+
* @param context - The context defining which reports to retrieve
|
|
410
|
+
* @returns An array of {@link ScheduledReport} objects for the specified context;
|
|
411
|
+
* may be empty if no reports exist
|
|
412
|
+
*/
|
|
413
|
+
getScheduledReports(context: StatsContext): Promise<ScheduledReport[] | null>;
|
|
414
|
+
/**
|
|
415
|
+
* Deletes the specified scheduled report.
|
|
416
|
+
*
|
|
417
|
+
* @param report The scheduled report to delete.
|
|
418
|
+
* @returns `true` if the report was successfully deleted, `false` otherwise.
|
|
419
|
+
*/
|
|
420
|
+
deleteScheduledReport(report: ScheduledReport): Promise<boolean>;
|
|
421
|
+
/**
|
|
422
|
+
* Enables or disables the specified scheduled report.
|
|
423
|
+
*
|
|
424
|
+
* @param report The scheduled report to update.
|
|
425
|
+
* @param enabled `true` to enable the report, `false` to disable it.
|
|
426
|
+
* @returns `true` if the report state was successfully updated, `false` otherwise.
|
|
427
|
+
*/
|
|
428
|
+
setScheduledReportEnabled(report: ScheduledReport, enabled: boolean): Promise<boolean>;
|
|
429
|
+
/**
|
|
430
|
+
* Retrieves a previously created scheduled report by its unique identifier.
|
|
431
|
+
*
|
|
432
|
+
* This method requires a valid `StatsContext` to perform the retrieval operation.
|
|
433
|
+
* The `scheduleReportId` must correspond to an existing scheduled report.
|
|
434
|
+
*
|
|
435
|
+
* @param context The session context used to access the service.
|
|
436
|
+
* @param scheduleReportId The unique identifier of the scheduled report to retrieve.
|
|
437
|
+
* @returns The `ScheduledReport` corresponding to the specified ID,
|
|
438
|
+
* or `null` if no report exists with that ID.
|
|
439
|
+
*/
|
|
440
|
+
getScheduledReport(context: StatsContext, scheduleReportId: string): Promise<ScheduledReport | null>;
|
|
441
|
+
/**
|
|
442
|
+
* Updates the configuration of an existing scheduled report.
|
|
443
|
+
*
|
|
444
|
+
* This method persists any changes made to the provided `ScheduledReport` instance,
|
|
445
|
+
* including its description, observation period, recurrence, format, and recipients.
|
|
446
|
+
* Implementations should ensure that the report exists and that the updates are valid.
|
|
447
|
+
*
|
|
448
|
+
* @param report The `ScheduledReport` instance containing the updated information.
|
|
449
|
+
* @returns `true` if the update was successful; `false` if the report does not exist
|
|
450
|
+
* or the update could not be applied.
|
|
451
|
+
*/
|
|
452
|
+
updateScheduledReport(report: ScheduledReport): Promise<boolean>;
|
|
453
|
+
}
|
|
454
|
+
//# 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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"}
|