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.
- package/README.md +10 -6
- package/dist/o2g-node-sdk.js +173 -3732
- 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-stat/abstract-filter.d.ts +2 -0
- package/dist/types/internal/types/cc-stat/abstract-filter.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stat/ag-filter-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stat/ag-filter-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stat/cc-stat-types.d.ts +56 -0
- package/dist/types/internal/types/cc-stat/cc-stat-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stat/context-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stat/context-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stat/on-stats-progress.d.ts +2 -0
- package/dist/types/internal/types/cc-stat/on-stats-progress.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stat/pil-filter-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stat/pil-filter-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stat/requester-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stat/requester-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stat/scheduled-rep-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stat/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 +2 -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 +7 -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 +450 -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 +82 -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 +43 -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 +15 -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 +76 -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-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 +132 -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 +66 -0
- package/dist/types/types/cc-stats/stats-context.d.ts.map +1 -0
- package/dist/types/types/cc-stats/stats-filter.d.ts +34 -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 +77 -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 +105 -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 +79 -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 +34 -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,245 @@
|
|
|
1
|
+
import EventEmitter from 'events';
|
|
2
|
+
import { Page } from './types/comlog/page';
|
|
3
|
+
import { QueryFilter } from './types/comlog/query-filter';
|
|
4
|
+
import { QueryResult } from './types/comlog/query-result';
|
|
5
|
+
import { ComRecord } from './types/comlog/com-record';
|
|
6
|
+
/**
|
|
7
|
+
* The CommunicationLog service allows a user to retrieve their last communication
|
|
8
|
+
* history records and to manage them. Using this service requires having a
|
|
9
|
+
* <b>TELEPHONY_ADVANCED</b> license.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* // Query the last 10 unanswered records
|
|
14
|
+
* const filter = new QueryFilter();
|
|
15
|
+
* filter.setUnacknowledged(true);
|
|
16
|
+
*
|
|
17
|
+
* const page = new Page(0, 10);
|
|
18
|
+
*
|
|
19
|
+
* const result = await O2G.comlog.getComRecords(filter, page, true);
|
|
20
|
+
* if (result) {
|
|
21
|
+
* console.log(`Total records: ${result.totalCount}`);
|
|
22
|
+
*
|
|
23
|
+
* // Acknowledge all retrieved records
|
|
24
|
+
* const ids = result.records.map(r => r.recordId);
|
|
25
|
+
* await O2G.comlog.acknowledgeComRecords(ids);
|
|
26
|
+
*
|
|
27
|
+
* // Delete records matching the filter
|
|
28
|
+
* await O2G.comlog.deleteComRecords(filter);
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class CommunicationLog extends EventEmitter {
|
|
33
|
+
#private;
|
|
34
|
+
/**
|
|
35
|
+
* Occurs when a new comlog entry has been created.
|
|
36
|
+
* @event
|
|
37
|
+
*/
|
|
38
|
+
static readonly ON_COM_RECORD_CREATED = "OnComRecordCreated";
|
|
39
|
+
/**
|
|
40
|
+
* Occurs when one or more records have been modified.
|
|
41
|
+
* @event
|
|
42
|
+
*/
|
|
43
|
+
static readonly ON_COM_RECORD_MODIFIED = "OnComRecordModified";
|
|
44
|
+
/**
|
|
45
|
+
* Occurs when one or more call log records have been deleted.
|
|
46
|
+
* @see deleteComRecords
|
|
47
|
+
* @see deleteComRecord
|
|
48
|
+
* @see deleteComRecordsById
|
|
49
|
+
* @event
|
|
50
|
+
*/
|
|
51
|
+
static readonly ON_COM_RECORDS_DELETED = "OnComRecordsDeleted";
|
|
52
|
+
/**
|
|
53
|
+
* Occurs when one or more unanswered comlog records have been acknowledged.
|
|
54
|
+
* @see acknowledgeComRecords
|
|
55
|
+
* @see acknowledgeComRecord
|
|
56
|
+
* @event
|
|
57
|
+
*/
|
|
58
|
+
static readonly ON_COM_RECORDS_ACK = "OnComRecordsAck";
|
|
59
|
+
/**
|
|
60
|
+
* Occurs when one or more unanswered comlog records have been unacknowledged.
|
|
61
|
+
* @see unacknowledgeComRecords
|
|
62
|
+
* @see unacknowledgeComRecord
|
|
63
|
+
* @event
|
|
64
|
+
*/
|
|
65
|
+
static readonly ON_COM_RECORDS_UNACK = "OnComRecordsUnAck";
|
|
66
|
+
/**
|
|
67
|
+
* Gets the com records corresponding to the specified filter, using the
|
|
68
|
+
* specified page, with a possible optimization.
|
|
69
|
+
* <p>
|
|
70
|
+
* If `optimized` is set to `true`, the query returns the full identity of a
|
|
71
|
+
* participant only the first time it occurs, when the same participant appears
|
|
72
|
+
* in several records. When omitted, records are returned with no optimization.
|
|
73
|
+
* <p>
|
|
74
|
+
* The `page` parameter allows querying the communication log by page. The
|
|
75
|
+
* {@link QueryResult} contains the same parameters and the total number of
|
|
76
|
+
* records retrieved by the query.
|
|
77
|
+
* <p>
|
|
78
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
79
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
80
|
+
* administrator.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```typescript
|
|
84
|
+
* // Get all records with no filter, no pagination
|
|
85
|
+
* const all = await O2G.comlog.getComRecords();
|
|
86
|
+
*
|
|
87
|
+
* // Get only missed calls, first page of 20, with optimization
|
|
88
|
+
* const filter = new QueryFilter();
|
|
89
|
+
* filter.setCallType(FilterOption.MISSED);
|
|
90
|
+
* const page = new Page(0, 20);
|
|
91
|
+
* const missed = await O2G.comlog.getComRecords(filter, page, true);
|
|
92
|
+
*
|
|
93
|
+
* // Administrator querying records for a specific user
|
|
94
|
+
* const userRecords = await O2G.comlog.getComRecords(null, null, false, "jdoe");
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @param filter the filter describing the query criteria
|
|
98
|
+
* @param page the page description
|
|
99
|
+
* @param optimized `true` to activate optimization
|
|
100
|
+
* @param loginName the user login name
|
|
101
|
+
* @returns the {@link QueryResult} on success; `null` otherwise.
|
|
102
|
+
*/
|
|
103
|
+
getComRecords(filter?: QueryFilter | null, page?: Page | null, optimized?: boolean, loginName?: string | null): Promise<QueryResult | null>;
|
|
104
|
+
/**
|
|
105
|
+
* Gets the specified com record.
|
|
106
|
+
* <p>
|
|
107
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
108
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
109
|
+
* administrator.
|
|
110
|
+
*
|
|
111
|
+
* @param recordId the com record identifier
|
|
112
|
+
* @param loginName the user login name
|
|
113
|
+
* @returns the {@link ComRecord} on success; `null` otherwise.
|
|
114
|
+
*/
|
|
115
|
+
getComRecord(recordId: string, loginName?: string | null): Promise<ComRecord | null>;
|
|
116
|
+
/**
|
|
117
|
+
* Deletes the specified com record.
|
|
118
|
+
* <p>
|
|
119
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
120
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
121
|
+
* administrator.
|
|
122
|
+
*
|
|
123
|
+
* @param recordId the com record identifier
|
|
124
|
+
* @param loginName the user login name
|
|
125
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
126
|
+
* @see deleteComRecordsById
|
|
127
|
+
* @see deleteComRecords
|
|
128
|
+
*/
|
|
129
|
+
deleteComRecord(recordId: string, loginName?: string | null): Promise<boolean>;
|
|
130
|
+
/**
|
|
131
|
+
* Deletes the specified list of com records.
|
|
132
|
+
* <p>
|
|
133
|
+
* An {@link ON_COM_RECORDS_DELETED} event is raised containing the list of
|
|
134
|
+
* com records that have been deleted.
|
|
135
|
+
* <p>
|
|
136
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
137
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
138
|
+
* administrator.
|
|
139
|
+
*
|
|
140
|
+
* @param recordIds the list of com record identifiers to delete
|
|
141
|
+
* @param loginName the user login name
|
|
142
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
143
|
+
* @see deleteComRecord
|
|
144
|
+
* @see deleteComRecords
|
|
145
|
+
*/
|
|
146
|
+
deleteComRecordsById(recordIds: string[], loginName?: string | null): Promise<boolean>;
|
|
147
|
+
/**
|
|
148
|
+
* Deletes the com records corresponding to the given filter.
|
|
149
|
+
* <p>
|
|
150
|
+
* The `filter` parameter defines the search criteria for the delete operation.
|
|
151
|
+
* <p>
|
|
152
|
+
* An {@link ON_COM_RECORDS_DELETED} event is raised containing the list of
|
|
153
|
+
* com records that have been deleted.
|
|
154
|
+
* <p>
|
|
155
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
156
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
157
|
+
* administrator.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* // Delete all acknowledged records
|
|
162
|
+
* const filter = new QueryFilter();
|
|
163
|
+
* filter.setAcknowledged(true);
|
|
164
|
+
* await O2G.comlog.deleteComRecords(filter);
|
|
165
|
+
*
|
|
166
|
+
* // Delete all records (no filter)
|
|
167
|
+
* await O2G.comlog.deleteComRecords();
|
|
168
|
+
*
|
|
169
|
+
* // Note: to delete specific records by id, use deleteComRecordsById instead
|
|
170
|
+
* await O2G.comlog.deleteComRecordsById(["id1", "id2", "id3"]);
|
|
171
|
+
* ```
|
|
172
|
+
*
|
|
173
|
+
* @param filter the filter describing the query criteria
|
|
174
|
+
* @param loginName the user login name
|
|
175
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
176
|
+
* @see deleteComRecord
|
|
177
|
+
* @see deleteComRecordsById
|
|
178
|
+
*/
|
|
179
|
+
deleteComRecords(filter?: QueryFilter | null, loginName?: string | null): Promise<boolean>;
|
|
180
|
+
/**
|
|
181
|
+
* Acknowledges the specified list of com records.
|
|
182
|
+
* <p>
|
|
183
|
+
* An {@link ON_COM_RECORDS_ACK} event is raised containing the list of
|
|
184
|
+
* com records that have been acknowledged.
|
|
185
|
+
* <p>
|
|
186
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
187
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
188
|
+
* administrator.
|
|
189
|
+
*
|
|
190
|
+
* @param recordIds the list of com record identifiers to acknowledge
|
|
191
|
+
* @param loginName the user login name
|
|
192
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
193
|
+
* @see acknowledgeComRecord
|
|
194
|
+
*/
|
|
195
|
+
acknowledgeComRecords(recordIds: string[], loginName?: string | null): Promise<boolean>;
|
|
196
|
+
/**
|
|
197
|
+
* Acknowledges the specified com record.
|
|
198
|
+
* <p>
|
|
199
|
+
* An {@link ON_COM_RECORDS_ACK} event is raised containing the list of
|
|
200
|
+
* com records that have been acknowledged.
|
|
201
|
+
* <p>
|
|
202
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
203
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
204
|
+
* administrator.
|
|
205
|
+
*
|
|
206
|
+
* @param recordId the com record identifier
|
|
207
|
+
* @param loginName the user login name
|
|
208
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
209
|
+
* @see acknowledgeComRecords
|
|
210
|
+
*/
|
|
211
|
+
acknowledgeComRecord(recordId: string, loginName?: string | null): Promise<boolean>;
|
|
212
|
+
/**
|
|
213
|
+
* Unacknowledges the specified list of com records.
|
|
214
|
+
* <p>
|
|
215
|
+
* An {@link ON_COM_RECORDS_UNACK} event is raised containing the list of
|
|
216
|
+
* com records that have been unacknowledged.
|
|
217
|
+
* <p>
|
|
218
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
219
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
220
|
+
* administrator.
|
|
221
|
+
*
|
|
222
|
+
* @param recordIds the list of com record identifiers to unacknowledge
|
|
223
|
+
* @param loginName the user login name
|
|
224
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
225
|
+
* @see unacknowledgeComRecord
|
|
226
|
+
*/
|
|
227
|
+
unacknowledgeComRecords(recordIds: string[], loginName?: string | null): Promise<boolean>;
|
|
228
|
+
/**
|
|
229
|
+
* Unacknowledges the specified com record.
|
|
230
|
+
* <p>
|
|
231
|
+
* An {@link ON_COM_RECORDS_UNACK} event is raised containing the list of
|
|
232
|
+
* com records that have been unacknowledged.
|
|
233
|
+
* <p>
|
|
234
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
235
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
236
|
+
* administrator.
|
|
237
|
+
*
|
|
238
|
+
* @param recordId the com record identifier
|
|
239
|
+
* @param loginName the user login name
|
|
240
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
241
|
+
* @see unacknowledgeComRecords
|
|
242
|
+
*/
|
|
243
|
+
unacknowledgeComRecord(recordId: string, loginName?: string | null): Promise<boolean>;
|
|
244
|
+
}
|
|
245
|
+
//# sourceMappingURL=o2g-comlog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-comlog.d.ts","sourceRoot":"","sources":["../../src/o2g-comlog.ts"],"names":[],"mappings":"AAmBA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAS1D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;;IAG9C;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,qBAAqB,wBAAwB;IAE7D;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,sBAAsB,yBAAyB;IAE/D;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAC,sBAAsB,yBAAyB;IAE/D;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,kBAAkB,qBAAqB;IAEvD;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,oBAAoB,uBAAuB;IAgB3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACG,aAAa,CACf,MAAM,GAAE,WAAW,GAAG,IAAW,EACjC,IAAI,GAAE,IAAI,GAAG,IAAW,EACxB,SAAS,GAAE,OAAe,EAC1B,SAAS,GAAE,MAAM,GAAG,IAAW,GAChC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAI9B;;;;;;;;;;OAUG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAIhG;;;;;;;;;;;;OAYG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1F;;;;;;;;;;;;;;;OAeG;IACG,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACG,gBAAgB,CAAC,MAAM,GAAE,WAAW,GAAG,IAAW,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAI5G;;;;;;;;;;;;;;OAcG;IACG,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAInG;;;;;;;;;;;;;;OAcG;IACG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAI/F;;;;;;;;;;;;;;OAcG;IACG,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrG;;;;;;;;;;;;;;OAcG;IACG,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;CAGpG"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Criteria } from './types/directory/criteria';
|
|
2
|
+
import { SearchResult } from './types/directory/search-result';
|
|
3
|
+
/**
|
|
4
|
+
* The DirectoryService is used to search contacts in the OmniPCX
|
|
5
|
+
* Enterprise phone book. Using this service requires having a
|
|
6
|
+
* <b>TELEPHONY_ADVANCED</b> license.
|
|
7
|
+
* <p>
|
|
8
|
+
* A directory search is a set of 2 or more sequential operations:
|
|
9
|
+
* <ol>
|
|
10
|
+
* <li>The first operation initiates the search with a set of criteria.</li>
|
|
11
|
+
* <li>The second and subsequent operations retrieve results.</li>
|
|
12
|
+
* </ol>
|
|
13
|
+
* <p>
|
|
14
|
+
* Note: For each session (user or administrator), only 5 concurrent searches
|
|
15
|
+
* are authorized. An unused search context is freed after 1 minute.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* await o2g.directory.search(myCriteria);
|
|
20
|
+
* while (!finished) {
|
|
21
|
+
* let result = await o2g.directory.getResults();
|
|
22
|
+
* if (result.getResultCode() == SearchResult.ResultCode.NOK) {
|
|
23
|
+
* // Wait for results
|
|
24
|
+
* }
|
|
25
|
+
* else if ((result.getResultCode() == SearchResult.ResultCode.FINISH) ||
|
|
26
|
+
* (result.getResultCode() == SearchResult.ResultCode.TIMEOUT)) {
|
|
27
|
+
* // Exit the loop
|
|
28
|
+
* finished = true;
|
|
29
|
+
* }
|
|
30
|
+
* else {
|
|
31
|
+
* // Process results
|
|
32
|
+
* }
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare class Directory {
|
|
37
|
+
#private;
|
|
38
|
+
/**
|
|
39
|
+
* Initiates a directory search with the specified filter, limited to the
|
|
40
|
+
* specified number of results.
|
|
41
|
+
* <p>
|
|
42
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
43
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
44
|
+
* administrator.
|
|
45
|
+
*
|
|
46
|
+
* @param filter the search filter
|
|
47
|
+
* @param limit maximum number of results, in the range [1..100]
|
|
48
|
+
* @param loginName the user login name
|
|
49
|
+
* @returns `true` if the search was successfully initiated; `false` otherwise.
|
|
50
|
+
* @see getResults
|
|
51
|
+
* @see cancel
|
|
52
|
+
*/
|
|
53
|
+
search(filter: Criteria, limit?: number | null, loginName?: string | null): Promise<boolean>;
|
|
54
|
+
/**
|
|
55
|
+
* Cancels the current search query for the specified user.
|
|
56
|
+
* <p>
|
|
57
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
58
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
59
|
+
* administrator.
|
|
60
|
+
*
|
|
61
|
+
* @param loginName the user login name
|
|
62
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
63
|
+
* @see search
|
|
64
|
+
*/
|
|
65
|
+
cancel(loginName?: string | null): Promise<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* Gets the next available results for the current search.
|
|
68
|
+
* <p>
|
|
69
|
+
* `getResults` is generally called in a loop. For each iteration:
|
|
70
|
+
* <ul>
|
|
71
|
+
* <li>if the result code is `NOK`, the search is in progress but no results are
|
|
72
|
+
* available — it is recommended to wait before the next iteration (e.g. 500ms)</li>
|
|
73
|
+
* <li>if the result code is `OK`, results are available and can be processed</li>
|
|
74
|
+
* <li>if the result code is `FINISH` or `TIMEOUT`, the search has ended — exit the loop</li>
|
|
75
|
+
* </ul>
|
|
76
|
+
* <p>
|
|
77
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
78
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
79
|
+
* administrator.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```typescript
|
|
83
|
+
* await O2G.directory.search(criteria);
|
|
84
|
+
*
|
|
85
|
+
* let finished = false;
|
|
86
|
+
* while (!finished) {
|
|
87
|
+
* const result = await O2G.directory.getResults();
|
|
88
|
+
* if (result?.resultCode === SearchResult.ResultCode.NOK) {
|
|
89
|
+
* // Search still in progress, wait before retrying
|
|
90
|
+
* await new Promise(resolve => setTimeout(resolve, 500));
|
|
91
|
+
* }
|
|
92
|
+
* else if (result?.resultCode === SearchResult.ResultCode.OK) {
|
|
93
|
+
* // Process available results
|
|
94
|
+
* result.items.forEach(item => console.log(item.firstName, item.lastName));
|
|
95
|
+
* }
|
|
96
|
+
* else {
|
|
97
|
+
* // FINISH or TIMEOUT — search is complete
|
|
98
|
+
* finished = true;
|
|
99
|
+
* }
|
|
100
|
+
* }
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* @param loginName the user login name
|
|
104
|
+
* @returns the {@link SearchResult} on success; `null` otherwise.
|
|
105
|
+
* @see search
|
|
106
|
+
*/
|
|
107
|
+
getResults(loginName?: string | null): Promise<SearchResult | null>;
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=o2g-directory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-directory.d.ts","sourceRoot":"","sources":["../../src/o2g-directory.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,SAAS;;IAUlB;;;;;;;;;;;;;;OAcG;IACG,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,GAAE,MAAM,GAAG,IAAW,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAI9G;;;;;;;;;;OAUG;IACG,MAAM,CAAC,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAI/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACG,UAAU,CAAC,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;CAGlF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter } from 'events';
|
|
2
|
+
import { EventSummaryCounters } from './types/eventsummary/event-summary-counter';
|
|
3
|
+
/**
|
|
4
|
+
* The Event summary service allows a user to get its new message
|
|
5
|
+
* indicators (missed call, voice mails, callback request, fax).
|
|
6
|
+
* <p>
|
|
7
|
+
* Using this service requires having a <b>TELEPHONY_ADVANCED</b> license.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* // Listen for counter updates and refresh on each change
|
|
12
|
+
* O2G.eventSummary.on(EventSummary.ON_EVENT_SUMMARY_UPDATED, async () => {
|
|
13
|
+
* const counters = await O2G.eventSummary.get();
|
|
14
|
+
* if (counters) {
|
|
15
|
+
* console.log(`Missed calls: ${counters.missedCalls}`);
|
|
16
|
+
* console.log(`Voice mails: ${counters.voiceMails}`);
|
|
17
|
+
* console.log(`Callbacks: ${counters.callbacks}`);
|
|
18
|
+
* }
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* // Or fetch counters on demand without waiting for an event
|
|
22
|
+
* const counters = await O2G.eventSummary.get();
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class EventSummary extends EventEmitter {
|
|
26
|
+
#private;
|
|
27
|
+
/**
|
|
28
|
+
* Event raised each time the user's counters have changed.
|
|
29
|
+
* @event
|
|
30
|
+
*/
|
|
31
|
+
static readonly ON_EVENT_SUMMARY_UPDATED = "OnEventSummaryUpdated";
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves main counters for the specified user.
|
|
34
|
+
* <p>
|
|
35
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
36
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
37
|
+
* administrator.
|
|
38
|
+
*
|
|
39
|
+
* @param loginName the user login name
|
|
40
|
+
* @returns the {@link EventSummaryCounters} on success; `null` otherwise.
|
|
41
|
+
*/
|
|
42
|
+
get(loginName?: string | null): Promise<EventSummaryCounters | null>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=o2g-eventSummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-eventSummary.d.ts","sourceRoot":"","sources":["../../src/o2g-eventSummary.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,YAAa,SAAQ,YAAY;;IAG1C;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,wBAAwB,2BAA2B;IAYnE;;;;;;;;;OASG;IACH,GAAG,CAAC,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;CAG7E"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import EventEmitter from 'events';
|
|
2
|
+
import { SystemStatus } from './types/maint/sys-status';
|
|
3
|
+
/**
|
|
4
|
+
* The MaintenanceService allows retrieving information about the system state,
|
|
5
|
+
* in particular information on the PBX nodes and their connection state.
|
|
6
|
+
* Information about licenses is also provided per item: total allocated licenses,
|
|
7
|
+
* number currently in use, and expiration date.
|
|
8
|
+
* <p>
|
|
9
|
+
* This service is available to administrator sessions only.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* // Monitor system readiness and connection state
|
|
14
|
+
* O2G.maintenance.on(Maintenance.ON_SERVER_STARTED, async () => {
|
|
15
|
+
* console.log("O2G server is ready");
|
|
16
|
+
* const status = await O2G.maintenance.getSystemStatus();
|
|
17
|
+
* if (status) {
|
|
18
|
+
* console.log(`Connected PBXs: ${status.pbxs.length}`);
|
|
19
|
+
* }
|
|
20
|
+
* });
|
|
21
|
+
*
|
|
22
|
+
* O2G.maintenance.on(Maintenance.ON_PBX_LINK_DOWN, (event) => {
|
|
23
|
+
* console.warn(`PBX link down: node ${event.nodeId}`);
|
|
24
|
+
* });
|
|
25
|
+
*
|
|
26
|
+
* O2G.maintenance.on(Maintenance.ON_PBX_LINK_UP, (event) => {
|
|
27
|
+
* console.log(`PBX link restored: node ${event.nodeId}`);
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* O2G.maintenance.on(Maintenance.ON_LICENSE_EXPIRATION, (event) => {
|
|
31
|
+
* console.warn(`License expiring soon: ${event.licenseType}`);
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare class Maintenance extends EventEmitter {
|
|
36
|
+
#private;
|
|
37
|
+
/**
|
|
38
|
+
* Occurs when a CTI link is down.
|
|
39
|
+
* @event
|
|
40
|
+
*/
|
|
41
|
+
static readonly ON_CTI_LINK_DOWN = "OnCtiLinkDown";
|
|
42
|
+
/**
|
|
43
|
+
* Occurs when a CTI link is up.
|
|
44
|
+
* @event
|
|
45
|
+
*/
|
|
46
|
+
static readonly ON_CTI_LINK_UP = "OnCtiLinkUp";
|
|
47
|
+
/**
|
|
48
|
+
* Occurs when a PBX link is down.
|
|
49
|
+
* @event
|
|
50
|
+
*/
|
|
51
|
+
static readonly ON_PBX_LINK_DOWN = "OnPbxLinkDown";
|
|
52
|
+
/**
|
|
53
|
+
* Occurs when a PBX link is up.
|
|
54
|
+
* @event
|
|
55
|
+
*/
|
|
56
|
+
static readonly ON_PBX_LINK_UP = "OnPbxLinkUp";
|
|
57
|
+
/**
|
|
58
|
+
* Occurs when data is fully loaded from an OmniPCX Enterprise node.
|
|
59
|
+
* @event
|
|
60
|
+
*/
|
|
61
|
+
static readonly ON_PBX_LOADED = "OnPbxLoaded";
|
|
62
|
+
/**
|
|
63
|
+
* Occurs when the license file will soon expire or has recently expired.
|
|
64
|
+
* @event
|
|
65
|
+
*/
|
|
66
|
+
static readonly ON_LICENSE_EXPIRATION = "OnLicenseExpiration";
|
|
67
|
+
/**
|
|
68
|
+
* Occurs when O2G is ready (all OXE nodes are connected and loaded).
|
|
69
|
+
* @event
|
|
70
|
+
*/
|
|
71
|
+
static readonly ON_SERVER_STARTED = "OnServerStart";
|
|
72
|
+
/**
|
|
73
|
+
* Retrieves information about the system state and the total number of each
|
|
74
|
+
* license type available for the system.
|
|
75
|
+
* <p>
|
|
76
|
+
* This operation is restricted to an administrator session only.
|
|
77
|
+
*
|
|
78
|
+
* @returns the {@link SystemStatus} on success; `null` otherwise.
|
|
79
|
+
*/
|
|
80
|
+
getSystemStatus(): Promise<SystemStatus | null>;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=o2g-maint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-maint.d.ts","sourceRoot":"","sources":["../../src/o2g-maint.ts"],"names":[],"mappings":"AAmBA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAYlC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,WAAY,SAAQ,YAAY;;IAGzC;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,gBAAgB,mBAAmB;IAEnD;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,iBAAiB;IAE/C;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,gBAAgB,mBAAmB;IAEnD;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,iBAAiB;IAE/C;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,iBAAiB;IAE9C;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,qBAAqB,yBAAyB;IAE9D;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,iBAAiB,mBAAmB;IAmBpD;;;;;;;OAOG;IACG,eAAe,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;CAGxD"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { MailBox } from './types/messaging/mailbox';
|
|
2
|
+
import { MailBoxInfo } from './types/messaging/mailbox-info';
|
|
3
|
+
import { VoiceMessage } from './types/messaging/voice-message';
|
|
4
|
+
/**
|
|
5
|
+
* Messaging service provides access to the user's voice mail box.
|
|
6
|
+
* It is possible using this service to connect to the voice mail box, retrieve
|
|
7
|
+
* the information and the list of voice mails, and manage the mail box. Using
|
|
8
|
+
* this service requires having a <b>TELEPHONY_ADVANCED</b> license.
|
|
9
|
+
* <p>
|
|
10
|
+
* It is possible to download a voice mail as a wav file and to delete existing messages.
|
|
11
|
+
*/
|
|
12
|
+
export declare class Messaging {
|
|
13
|
+
#private;
|
|
14
|
+
/**
|
|
15
|
+
* Gets the specified user's mailboxes. This is the logical first step to
|
|
16
|
+
* access further operations on the voice mail feature.
|
|
17
|
+
* <p>
|
|
18
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
19
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
20
|
+
* administrator.
|
|
21
|
+
*
|
|
22
|
+
* @param loginName the user login name
|
|
23
|
+
* @returns the list of {@link MailBox} objects on success; `null` otherwise.
|
|
24
|
+
*/
|
|
25
|
+
getMailboxes(loginName?: string | null): Promise<MailBox[] | null>;
|
|
26
|
+
/**
|
|
27
|
+
* Gets the information on the specified mail box.
|
|
28
|
+
* <p>
|
|
29
|
+
* The `password` is optional. If not set, the user password is used to
|
|
30
|
+
* connect to the voicemail. This is only possible if the OmniPCX Enterprise
|
|
31
|
+
* administrator has configured the same password for the user and their mailbox.
|
|
32
|
+
* <p>
|
|
33
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
34
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
35
|
+
* administrator.
|
|
36
|
+
*
|
|
37
|
+
* @param mailBoxId the mail box identifier given in a {@link MailBox} object
|
|
38
|
+
* @param password the mail box password
|
|
39
|
+
* @param loginName the user login name
|
|
40
|
+
* @returns the {@link MailBoxInfo} on success; `null` otherwise.
|
|
41
|
+
*/
|
|
42
|
+
getMailboxInfo(mailBoxId: string, password?: string | null, loginName?: string | null): Promise<MailBoxInfo | null>;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the list of voice messages in the specified mail box.
|
|
45
|
+
* <p>
|
|
46
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
47
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
48
|
+
* administrator.
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* // Get all voice messages in the mailbox
|
|
52
|
+
* const messages = await O2G.messaging.getVoiceMessages("mbx001");
|
|
53
|
+
*
|
|
54
|
+
* // Get only unread messages
|
|
55
|
+
* const newMessages = await O2G.messaging.getVoiceMessages("mbx001", true);
|
|
56
|
+
*
|
|
57
|
+
* // Get a page of 10 messages starting from the 20th
|
|
58
|
+
* const page = await O2G.messaging.getVoiceMessages("mbx001", false, 20, 10);
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param mailboxId the mail box identifier given in a {@link MailBox} object
|
|
62
|
+
* @param newOnly if `true`, returns only unread voice messages
|
|
63
|
+
* @param offset the offset from which to start retrieving the voice message list
|
|
64
|
+
* @param limit the maximum number of items to return
|
|
65
|
+
* @param loginName the user login name
|
|
66
|
+
* @returns the list of {@link VoiceMessage} objects on success; `null` otherwise.
|
|
67
|
+
*/
|
|
68
|
+
getVoiceMessages(mailboxId: string, newOnly?: boolean, offset?: number | null, limit?: number | null, loginName?: string | null): Promise<VoiceMessage[] | null>;
|
|
69
|
+
/**
|
|
70
|
+
* Deletes the specified voice message.
|
|
71
|
+
* <p>
|
|
72
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
73
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
74
|
+
* administrator.
|
|
75
|
+
*
|
|
76
|
+
* @param mailboxId the mail box identifier given in a {@link MailBox} object
|
|
77
|
+
* @param voicemailId the voice mail identifier given in a {@link VoiceMessage} object
|
|
78
|
+
* @param loginName the user login name
|
|
79
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
80
|
+
* @see deleteVoiceMessages
|
|
81
|
+
*/
|
|
82
|
+
deleteVoiceMessage(mailboxId: string, voicemailId: string, loginName?: string | null): Promise<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* Acknowledges the specified voice message.
|
|
85
|
+
* <p>
|
|
86
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
87
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
88
|
+
* administrator.
|
|
89
|
+
*
|
|
90
|
+
* @param mailboxId the mail box identifier given in a {@link MailBox} object
|
|
91
|
+
* @param voicemailId the voice mail identifier given in a {@link VoiceMessage} object
|
|
92
|
+
* @param loginName the user login name
|
|
93
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
94
|
+
*/
|
|
95
|
+
acknowledgeVoiceMessage(mailboxId: string, voicemailId: string, loginName?: string | null): Promise<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Deletes the specified list of voice messages.
|
|
98
|
+
* <p>
|
|
99
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
100
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
101
|
+
* administrator.
|
|
102
|
+
*
|
|
103
|
+
* @param mailboxId the mail box identifier given in a {@link MailBox} object
|
|
104
|
+
* @param msgIds the list of voice mail identifiers to delete
|
|
105
|
+
* @param loginName the user login name
|
|
106
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
107
|
+
* @see deleteVoiceMessage
|
|
108
|
+
*/
|
|
109
|
+
deleteVoiceMessages(mailboxId: string, msgIds: string[], loginName?: string | null): Promise<boolean>;
|
|
110
|
+
/**
|
|
111
|
+
* Downloads a voice mail as a wav file.
|
|
112
|
+
* <p>
|
|
113
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
114
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
115
|
+
* administrator.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```typescript
|
|
119
|
+
* // Download to a specific path
|
|
120
|
+
* const path = await O2G.messaging.downloadVoiceMessage("mbx001", "msg42", "/tmp/voicemail.wav");
|
|
121
|
+
*
|
|
122
|
+
* // Let the SDK choose the destination path
|
|
123
|
+
* const autoPath = await O2G.messaging.downloadVoiceMessage("mbx001", "msg42", null);
|
|
124
|
+
* if (autoPath) {
|
|
125
|
+
* console.log(`Downloaded to: ${autoPath}`);
|
|
126
|
+
* }
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @param mailboxId the mail box identifier given in a {@link MailBox} object
|
|
130
|
+
* @param voicemailId the voice mail identifier given in a {@link VoiceMessage} object
|
|
131
|
+
* @param wavPath an optional destination file path for the downloaded wav file
|
|
132
|
+
* @param loginName the user login name
|
|
133
|
+
* @returns the path to the downloaded wav file on success; `null` otherwise.
|
|
134
|
+
*/
|
|
135
|
+
downloadVoiceMessage(mailboxId: string, voicemailId: string, wavPath: string | null, loginName?: string | null): Promise<string | null>;
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=o2g-messaging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-messaging.d.ts","sourceRoot":"","sources":["../../src/o2g-messaging.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D;;;;;;;GAOG;AACH,qBAAa,SAAS;;IAUlB;;;;;;;;;;OAUG;IACG,YAAY,CAAC,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;IAI9E;;;;;;;;;;;;;;;OAeG;IACG,cAAc,CAChB,SAAS,EAAE,MAAM,EACjB,QAAQ,GAAE,MAAM,GAAG,IAAW,EAC9B,SAAS,GAAE,MAAM,GAAG,IAAW,GAChC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAI9B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,gBAAgB,CAClB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,OAAe,EACxB,MAAM,GAAE,MAAM,GAAG,IAAW,EAC5B,KAAK,GAAE,MAAM,GAAG,IAAW,EAC3B,SAAS,GAAE,MAAM,GAAG,IAAW,GAChC,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;IAIjC;;;;;;;;;;;;OAYG;IACG,kBAAkB,CACpB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAM,GAAG,IAAW,GAChC,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;;;;OAWG;IACG,uBAAuB,CACzB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAM,GAAG,IAAW,GAChC,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;;;;;OAYG;IACG,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAIjH;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,oBAAoB,CACtB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,SAAS,GAAE,MAAM,GAAG,IAAW,GAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAG5B"}
|