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,244 @@
|
|
|
1
|
+
import { Model } from './types/pbxmngt/model';
|
|
2
|
+
import { PbxAttribute } from './types/pbxmngt/pbx-attribute';
|
|
3
|
+
import { PbxObject } from './types/pbxmngt/pbx-object';
|
|
4
|
+
import { InstanceFilter } from './types/pbxmngt/instance-filter';
|
|
5
|
+
import EventEmitter from 'events';
|
|
6
|
+
import { Pbx } from './types/pbxmngt/pbx';
|
|
7
|
+
/**
|
|
8
|
+
* PbxManagement service allows an administrator to manage an OmniPCX
|
|
9
|
+
* Enterprise, that is to create, modify or delete any object or sub-object in the
|
|
10
|
+
* OmniPCX Enterprise object model. Using this service requires having a
|
|
11
|
+
* <b>MANAGEMENT</b> license.
|
|
12
|
+
* <p>
|
|
13
|
+
* <b>WARNING:</b> Using this service requires a good knowledge of the
|
|
14
|
+
* OmniPCX Enterprise object model.
|
|
15
|
+
* <p>
|
|
16
|
+
* The service uses two kinds of resource: the object model resource and the
|
|
17
|
+
* object instance resource.
|
|
18
|
+
* <p><b><u>The object model</u></b>: The object model can be retrieved for the whole PBX
|
|
19
|
+
* or for a particular object. It provides the detail of object attributes:
|
|
20
|
+
* whether the attribute is mandatory or optional in the object creation, what
|
|
21
|
+
* range of values is authorized, and what the possible enumeration values are.
|
|
22
|
+
* <p><b><u>The object instance</u></b>: It is used to create, modify, retrieve or remove
|
|
23
|
+
* any instances of any object, given the reference of this object. For the
|
|
24
|
+
* creation or modification of an object, the body must be compliant with
|
|
25
|
+
* the object model.
|
|
26
|
+
* <p>
|
|
27
|
+
* The list of sub-objects returned by a get instance of an object corresponds
|
|
28
|
+
* to the relative path of the first instantiable objects in the hierarchy,
|
|
29
|
+
* in order to be able by recursion to build the path to access any object
|
|
30
|
+
* and sub-object.
|
|
31
|
+
* <p>
|
|
32
|
+
* When accessing an object which is a sub-object, the full path must be given:
|
|
33
|
+
* `{object1Name}/{object1Id}/{object2Name}/{object2Id}/.../{objectxName}/{objectxId}`.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* // Inspect the object model for the Subscriber object
|
|
38
|
+
* const model = await O2G.pbxManagement.getObjectModel(1, "Subscriber");
|
|
39
|
+
*
|
|
40
|
+
* // Query all analog subscriber instances on node 1
|
|
41
|
+
* const ids = await O2G.pbxManagement.getObjectInstances(1, "Subscriber", "StationType==ANALOG");
|
|
42
|
+
*
|
|
43
|
+
* if (ids && ids.length > 0) {
|
|
44
|
+
* // Retrieve a specific subscriber with selected attributes
|
|
45
|
+
* const obj = await O2G.pbxManagement.getObject(
|
|
46
|
+
* 1, "Subscriber", ids[0],
|
|
47
|
+
* [new PbxAttribute("StationType"), new PbxAttribute("Directory")]
|
|
48
|
+
* );
|
|
49
|
+
*
|
|
50
|
+
* // Modify an attribute
|
|
51
|
+
* await O2G.pbxManagement.setObject(
|
|
52
|
+
* 1, "Subscriber", ids[0],
|
|
53
|
+
* [new PbxAttribute("Directory", "60200")]
|
|
54
|
+
* );
|
|
55
|
+
* }
|
|
56
|
+
*
|
|
57
|
+
* // Create a new subscriber
|
|
58
|
+
* await O2G.pbxManagement.createObject(1, "Subscriber", [
|
|
59
|
+
* new PbxAttribute("StationType", "ANALOG"),
|
|
60
|
+
* new PbxAttribute("Directory", "60300")
|
|
61
|
+
* ]);
|
|
62
|
+
*
|
|
63
|
+
* // Delete a subscriber, forcing deletion even if they have voice mails
|
|
64
|
+
* await O2G.pbxManagement.deleteObject(1, "Subscriber", "60300", true);
|
|
65
|
+
*
|
|
66
|
+
* // Listen for object change events
|
|
67
|
+
* O2G.pbxManagement.on(PbxManagement.ON_PBX_OBJECT_INSTANCE_MODIFIED, (event) => {
|
|
68
|
+
* console.log("Object modified:", event.objectName, event.objectId);
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export declare class PbxManagement extends EventEmitter {
|
|
73
|
+
#private;
|
|
74
|
+
/**
|
|
75
|
+
* Occurs when a PBX object instance is created.
|
|
76
|
+
* Only Object Subscriber is concerned by this event.
|
|
77
|
+
* @event
|
|
78
|
+
*/
|
|
79
|
+
static readonly ON_PBX_OBJECT_INSTANCE_CREATED = "OnPbxObjectInstanceCreated";
|
|
80
|
+
/**
|
|
81
|
+
* Occurs when a PBX object instance is deleted.
|
|
82
|
+
* Only Object Subscriber is concerned by this event.
|
|
83
|
+
* @event
|
|
84
|
+
*/
|
|
85
|
+
static readonly ON_PBX_OBJECT_INSTANCE_DELETED = "OnPbxObjectInstanceDeleted";
|
|
86
|
+
/**
|
|
87
|
+
* Occurs when a PBX object instance is modified.
|
|
88
|
+
* Only Object Subscriber is concerned by this event.
|
|
89
|
+
* @event
|
|
90
|
+
*/
|
|
91
|
+
static readonly ON_PBX_OBJECT_INSTANCE_MODIFIED = "OnPbxObjectInstanceModified";
|
|
92
|
+
/**
|
|
93
|
+
* Gets the list of OmniPCX Enterprise nodes connected on this O2G server.
|
|
94
|
+
*
|
|
95
|
+
* @returns the list of node ids on success; `null` otherwise.
|
|
96
|
+
*/
|
|
97
|
+
getPbxs(): Promise<number[] | null>;
|
|
98
|
+
/**
|
|
99
|
+
* Gets the OmniPCX Enterprise specified by its node id.
|
|
100
|
+
*
|
|
101
|
+
* @param nodeId the PCX Enterprise node id
|
|
102
|
+
* @returns the {@link Pbx} on success; `null` otherwise.
|
|
103
|
+
*/
|
|
104
|
+
getPbx(nodeId: number): Promise<Pbx | null>;
|
|
105
|
+
/**
|
|
106
|
+
* Gets the description of the data model for the specified object on the
|
|
107
|
+
* specified OmniPCX Enterprise node.
|
|
108
|
+
* <p>
|
|
109
|
+
* If `objectName` is `null`, the global object model of the OmniPCX Enterprise
|
|
110
|
+
* node is returned.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* // Get the global object model for node 1
|
|
115
|
+
* const globalModel = await O2G.pbxManagement.getObjectModel(1);
|
|
116
|
+
*
|
|
117
|
+
* // Get the model for a specific object
|
|
118
|
+
* const subscriberModel = await O2G.pbxManagement.getObjectModel(1, "Subscriber");
|
|
119
|
+
* ```
|
|
120
|
+
*
|
|
121
|
+
* @param nodeId the OmniPCX Enterprise node id
|
|
122
|
+
* @param objectName the object name, or `null` to retrieve the global model
|
|
123
|
+
* @returns the {@link Model} on success; `null` otherwise.
|
|
124
|
+
*/
|
|
125
|
+
getObjectModel(nodeId: number, objectName?: string | null): Promise<Model | null>;
|
|
126
|
+
/**
|
|
127
|
+
* Gets the node (root) object.
|
|
128
|
+
*
|
|
129
|
+
* @param nodeId the OmniPCX Enterprise node id
|
|
130
|
+
* @returns the root {@link PbxObject} on success; `null` otherwise.
|
|
131
|
+
*/
|
|
132
|
+
getNodeObject(nodeId: number): Promise<PbxObject | null>;
|
|
133
|
+
/**
|
|
134
|
+
* Gets the object specified by its instance definition and its instance id.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```typescript
|
|
138
|
+
* // Retrieve all attributes of a subscriber
|
|
139
|
+
* const obj = await O2G.pbxManagement.getObject(1, "Subscriber", "60200");
|
|
140
|
+
*
|
|
141
|
+
* // Retrieve only specific attributes using a comma-separated string
|
|
142
|
+
* const partial = await O2G.pbxManagement.getObject(
|
|
143
|
+
* 1, "Subscriber", "60200", "StationType,Directory"
|
|
144
|
+
* );
|
|
145
|
+
*
|
|
146
|
+
* // Retrieve specific attributes using a PbxAttribute array
|
|
147
|
+
* const typed = await O2G.pbxManagement.getObject(
|
|
148
|
+
* 1, "Subscriber", "60200",
|
|
149
|
+
* [new PbxAttribute("StationType"), new PbxAttribute("Directory")]
|
|
150
|
+
* );
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* @param nodeId the OmniPCX Enterprise node id
|
|
154
|
+
* @param objectInstanceDefinition the object instance definition
|
|
155
|
+
* @param objectId the object instance id
|
|
156
|
+
* @param attributes optional attributes to retrieve — either a
|
|
157
|
+
* comma-separated attribute name string or an
|
|
158
|
+
* array of {@link PbxAttribute} objects
|
|
159
|
+
* @returns the {@link PbxObject} on success; `null` otherwise.
|
|
160
|
+
*/
|
|
161
|
+
getObject(nodeId: number, objectInstanceDefinition: string, objectId: string, attributes?: string | PbxAttribute[] | null): Promise<PbxObject | null>;
|
|
162
|
+
/**
|
|
163
|
+
* Queries the list of object instances that match the specified filter.
|
|
164
|
+
* <p>
|
|
165
|
+
* A filter can be built using the {@link InstanceFilter} class, or provided
|
|
166
|
+
* as a string expression.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```typescript
|
|
170
|
+
* // Using an InstanceFilter object
|
|
171
|
+
* const filter = InstanceFilter.create(
|
|
172
|
+
* "StationType",
|
|
173
|
+
* AttributeFilter.Equals,
|
|
174
|
+
* "ANALOG"
|
|
175
|
+
* );
|
|
176
|
+
* const ids = await O2G.pbxManagement.getObjectInstances(1, "Subscriber", filter);
|
|
177
|
+
*
|
|
178
|
+
* // Using a string expression
|
|
179
|
+
* const ids2 = await O2G.pbxManagement.getObjectInstances(
|
|
180
|
+
* 1, "Subscriber", "StationType==ANALOG"
|
|
181
|
+
* );
|
|
182
|
+
*
|
|
183
|
+
* // Get all instances with no filter
|
|
184
|
+
* const all = await O2G.pbxManagement.getObjectInstances(1, "Subscriber");
|
|
185
|
+
* ```
|
|
186
|
+
*
|
|
187
|
+
* @param nodeId the OmniPCX Enterprise node id
|
|
188
|
+
* @param objectInstanceDefinition the object instance definition
|
|
189
|
+
* @param filter an optional filter — either an {@link InstanceFilter}
|
|
190
|
+
* object or a string expression
|
|
191
|
+
* @returns the list of matching object instance ids on success; `null` otherwise.
|
|
192
|
+
*/
|
|
193
|
+
getObjectInstances(nodeId: number, objectInstanceDefinition: string, filter?: string | InstanceFilter | null): Promise<string[] | null>;
|
|
194
|
+
/**
|
|
195
|
+
* Changes one or several attribute values of the specified object.
|
|
196
|
+
*
|
|
197
|
+
* @param nodeId the OmniPCX Enterprise node id
|
|
198
|
+
* @param objectInstanceDefinition the object instance definition
|
|
199
|
+
* @param objectId the object instance id
|
|
200
|
+
* @param attributes the array of attributes to change
|
|
201
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
202
|
+
* @see createObject
|
|
203
|
+
* @see deleteObject
|
|
204
|
+
*/
|
|
205
|
+
setObject(nodeId: number, objectInstanceDefinition: string, objectId: string, attributes: PbxAttribute[]): Promise<boolean>;
|
|
206
|
+
/**
|
|
207
|
+
* Deletes the specified instance of an object.
|
|
208
|
+
* <p>
|
|
209
|
+
* The `forceDelete` option is not available for all objects — check its
|
|
210
|
+
* availability in the {@link Model} corresponding to the object. It can be
|
|
211
|
+
* used, for example, to delete a `Subscriber` that has voice mails in their
|
|
212
|
+
* mailbox.
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* ```typescript
|
|
216
|
+
* // Standard delete
|
|
217
|
+
* await O2G.pbxManagement.deleteObject(1, "Subscriber", "60200");
|
|
218
|
+
*
|
|
219
|
+
* // Force delete — use when standard delete is blocked (e.g. subscriber has voice mails)
|
|
220
|
+
* await O2G.pbxManagement.deleteObject(1, "Subscriber", "60200", true);
|
|
221
|
+
* ```
|
|
222
|
+
*
|
|
223
|
+
* @param nodeId the OmniPCX Enterprise node id
|
|
224
|
+
* @param objectInstanceDefinition the object instance definition
|
|
225
|
+
* @param objectId the object instance id
|
|
226
|
+
* @param forceDelete if `true`, uses the FORCED_DELETE action
|
|
227
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
228
|
+
* @see createObject
|
|
229
|
+
* @see setObject
|
|
230
|
+
*/
|
|
231
|
+
deleteObject(nodeId: number, objectInstanceDefinition: string, objectId: string, forceDelete?: boolean): Promise<boolean>;
|
|
232
|
+
/**
|
|
233
|
+
* Creates a new object with the specified collection of attributes.
|
|
234
|
+
*
|
|
235
|
+
* @param nodeId the OmniPCX Enterprise node id
|
|
236
|
+
* @param objectInstanceDefinition the object instance definition
|
|
237
|
+
* @param attributes the array of attributes to set at object creation
|
|
238
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
239
|
+
* @see setObject
|
|
240
|
+
* @see deleteObject
|
|
241
|
+
*/
|
|
242
|
+
createObject(nodeId: number, objectInstanceDefinition: string, attributes: PbxAttribute[]): Promise<boolean>;
|
|
243
|
+
}
|
|
244
|
+
//# sourceMappingURL=o2g-pbx-mngt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-pbx-mngt.d.ts","sourceRoot":"","sources":["../../src/o2g-pbx-mngt.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,YAAY,MAAM,QAAQ,CAAC;AAOlC,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,qBAAa,aAAc,SAAQ,YAAY;;IAG3C;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,8BAA8B,gCAAgC;IAE9E;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,8BAA8B,gCAAgC;IAE9E;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,+BAA+B,iCAAiC;IAehF;;;;OAIG;IACG,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;IAIzC;;;;;OAKG;IACG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC;IAIjD;;;;;;;;;;;;;;;;;;;OAmBG;IACG,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAI7F;;;;;OAKG;IACG,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACG,SAAS,CACX,MAAM,EAAE,MAAM,EACd,wBAAwB,EAAE,MAAM,EAChC,QAAQ,EAAE,MAAM,EAChB,UAAU,GAAE,MAAM,GAAG,YAAY,EAAE,GAAG,IAAW,GAClD,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAI5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACG,kBAAkB,CACpB,MAAM,EAAE,MAAM,EACd,wBAAwB,EAAE,MAAM,EAChC,MAAM,GAAE,MAAM,GAAG,cAAc,GAAG,IAAW,GAC9C,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;IAI3B;;;;;;;;;;OAUG;IACG,SAAS,CACX,MAAM,EAAE,MAAM,EACd,wBAAwB,EAAE,MAAM,EAChC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,YAAY,EAAE,GAC3B,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,YAAY,CACd,MAAM,EAAE,MAAM,EACd,wBAAwB,EAAE,MAAM,EAChC,QAAQ,EAAE,MAAM,EAChB,WAAW,UAAQ,GACpB,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;;OASG;IACG,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAGrH"}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { DynamicState } from './types/phoneset/dynamic-state';
|
|
2
|
+
import { Pin } from './types/phoneset/pin';
|
|
3
|
+
import { ProgrammeableKey } from './types/phoneset/prog-key';
|
|
4
|
+
import { SoftKey } from './types/phoneset/soft-key';
|
|
5
|
+
import { Device } from './types/common/device';
|
|
6
|
+
/**
|
|
7
|
+
* This service allows managing the programmable keys, soft keys, and device settings
|
|
8
|
+
* of the phone sets assigned to a user.
|
|
9
|
+
* <p>
|
|
10
|
+
* Most methods accept a `loginName` parameter. When `loginName` is `null`, the operation
|
|
11
|
+
* applies to the user of the current session. When specified, it allows an administrator
|
|
12
|
+
* to manage another user's devices.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* // Current session user — pass null for loginName
|
|
17
|
+
* const devices = await O2G.phoneSetProgramming.getDevices(null);
|
|
18
|
+
* if (devices && devices.length > 0) {
|
|
19
|
+
* const deviceId = devices[0].id;
|
|
20
|
+
*
|
|
21
|
+
* // Retrieve all programmed keys
|
|
22
|
+
* const keys = await O2G.phoneSetProgramming.getProgrammedKeys(null, deviceId);
|
|
23
|
+
*
|
|
24
|
+
* // Assign a new programmable key at position 1
|
|
25
|
+
* const key = new ProgrammeableKey({ position: 1, type: "SPEED_DIAL", number: "5001" });
|
|
26
|
+
* await O2G.phoneSetProgramming.setProgrammableKey(null, deviceId, key);
|
|
27
|
+
*
|
|
28
|
+
* // Lock the device
|
|
29
|
+
* await O2G.phoneSetProgramming.lockDevice(null, deviceId);
|
|
30
|
+
*
|
|
31
|
+
* // Unlock when done
|
|
32
|
+
* await O2G.phoneSetProgramming.unlockDevice(null, deviceId);
|
|
33
|
+
* }
|
|
34
|
+
*
|
|
35
|
+
* // Administrator managing another user's device
|
|
36
|
+
* const adminDevices = await O2G.phoneSetProgramming.getDevices("jdoe");
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare class PhoneSetProgramming {
|
|
40
|
+
#private;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves the list of devices assigned to the specified user.
|
|
43
|
+
*
|
|
44
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
45
|
+
* @returns the list of {@link Device} objects on success; `null` otherwise.
|
|
46
|
+
*/
|
|
47
|
+
getDevices(loginName: string | null): Promise<Device[] | null>;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieves the information of a specific device assigned to the specified user.
|
|
50
|
+
*
|
|
51
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
52
|
+
* @param deviceId the device identifier
|
|
53
|
+
* @returns the {@link Device} information on success; `null` otherwise.
|
|
54
|
+
*/
|
|
55
|
+
getDevice(loginName: string | null, deviceId: string): Promise<Device | null>;
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves all programmable keys of the specified device, including unassigned positions.
|
|
58
|
+
* <p>
|
|
59
|
+
* Use this method when you need to know the full layout of the device, including
|
|
60
|
+
* empty positions. To retrieve only the keys that have been assigned, use
|
|
61
|
+
* {@link getProgrammedKeys} instead.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* // Get all positions (including empty ones) to inspect the full key layout
|
|
66
|
+
* const allKeys = await O2G.phoneSetProgramming.getProgrammableKeys(null, "1234");
|
|
67
|
+
*
|
|
68
|
+
* // Get only the assigned keys to display what is currently programmed
|
|
69
|
+
* const assignedKeys = await O2G.phoneSetProgramming.getProgrammedKeys(null, "1234");
|
|
70
|
+
*
|
|
71
|
+
* console.log(`Total positions: ${allKeys?.length}`);
|
|
72
|
+
* console.log(`Assigned keys: ${assignedKeys?.length}`);
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
76
|
+
* @param deviceId the device identifier
|
|
77
|
+
* @returns the list of {@link ProgrammeableKey} objects on success; `null` otherwise.
|
|
78
|
+
* @see getProgrammedKeys
|
|
79
|
+
*/
|
|
80
|
+
getProgrammableKeys(loginName: string | null, deviceId: string): Promise<ProgrammeableKey[] | null>;
|
|
81
|
+
/**
|
|
82
|
+
* Retrieves only the programmed (assigned) programmable keys of the specified device.
|
|
83
|
+
* <p>
|
|
84
|
+
* Use this method when you only need the keys that have been assigned. To retrieve
|
|
85
|
+
* the full layout including unassigned positions, use {@link getProgrammableKeys} instead.
|
|
86
|
+
*
|
|
87
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
88
|
+
* @param deviceId the device identifier
|
|
89
|
+
* @returns the list of assigned {@link ProgrammeableKey} objects on success; `null` otherwise.
|
|
90
|
+
* @see getProgrammableKeys
|
|
91
|
+
*/
|
|
92
|
+
getProgrammedKeys(loginName: string | null, deviceId: string): Promise<ProgrammeableKey[] | null>;
|
|
93
|
+
/**
|
|
94
|
+
* Assigns or updates a programmable key on the specified device.
|
|
95
|
+
*
|
|
96
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
97
|
+
* @param deviceId the device identifier
|
|
98
|
+
* @param key the programmable key configuration to set
|
|
99
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
100
|
+
* @see deleteProgrammableKey
|
|
101
|
+
*/
|
|
102
|
+
setProgrammableKey(loginName: string | null, deviceId: string, key: ProgrammeableKey): Promise<boolean>;
|
|
103
|
+
/**
|
|
104
|
+
* Deletes the programmable key at the specified position on the given device.
|
|
105
|
+
*
|
|
106
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
107
|
+
* @param deviceId the device identifier
|
|
108
|
+
* @param position the position of the programmable key to delete
|
|
109
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
110
|
+
* @see setProgrammableKey
|
|
111
|
+
*/
|
|
112
|
+
deleteProgrammableKey(loginName: string | null, deviceId: string, position: number): Promise<boolean>;
|
|
113
|
+
/**
|
|
114
|
+
* Retrieves the soft keys of the specified device.
|
|
115
|
+
*
|
|
116
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
117
|
+
* @param deviceId the device identifier
|
|
118
|
+
* @returns the list of {@link SoftKey} objects on success; `null` otherwise.
|
|
119
|
+
*/
|
|
120
|
+
getSoftKeys(loginName: string | null, deviceId: string): Promise<SoftKey[] | null>;
|
|
121
|
+
/**
|
|
122
|
+
* Assigns or updates a soft key on the specified device.
|
|
123
|
+
*
|
|
124
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
125
|
+
* @param deviceId the device identifier
|
|
126
|
+
* @param key the soft key configuration to set
|
|
127
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
128
|
+
* @see deleteSoftKey
|
|
129
|
+
*/
|
|
130
|
+
setSoftKey(loginName: string | null, deviceId: string, key: SoftKey): Promise<boolean>;
|
|
131
|
+
/**
|
|
132
|
+
* Deletes the soft key at the specified position on the given device.
|
|
133
|
+
*
|
|
134
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
135
|
+
* @param deviceId the device identifier
|
|
136
|
+
* @param position the position of the soft key to delete
|
|
137
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
138
|
+
* @see setSoftKey
|
|
139
|
+
*/
|
|
140
|
+
deleteSoftKey(loginName: string | null, deviceId: string, position: number): Promise<boolean>;
|
|
141
|
+
/**
|
|
142
|
+
* Locks the specified device, preventing it from being used to place or receive calls.
|
|
143
|
+
*
|
|
144
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
145
|
+
* @param deviceId the device identifier
|
|
146
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
147
|
+
* @see unlockDevice
|
|
148
|
+
*/
|
|
149
|
+
lockDevice(loginName: string | null, deviceId: string): Promise<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* Unlocks the specified device, restoring normal call capabilities.
|
|
152
|
+
*
|
|
153
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
154
|
+
* @param deviceId the device identifier
|
|
155
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
156
|
+
* @see lockDevice
|
|
157
|
+
*/
|
|
158
|
+
unlockDevice(loginName: string | null, deviceId: string): Promise<boolean>;
|
|
159
|
+
/**
|
|
160
|
+
* Enables the camp-on feature on the specified device.
|
|
161
|
+
* <p>
|
|
162
|
+
* When camp-on is enabled, the user is automatically connected when a busy
|
|
163
|
+
* destination becomes available.
|
|
164
|
+
*
|
|
165
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
166
|
+
* @param deviceId the device identifier
|
|
167
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
168
|
+
* @see disableCampon
|
|
169
|
+
*/
|
|
170
|
+
enableCampon(loginName: string | null, deviceId: string): Promise<boolean>;
|
|
171
|
+
/**
|
|
172
|
+
* Disables the camp-on feature on the specified device.
|
|
173
|
+
*
|
|
174
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
175
|
+
* @param deviceId the device identifier
|
|
176
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
177
|
+
* @see enableCampon
|
|
178
|
+
*/
|
|
179
|
+
disableCampon(loginName: string | null, deviceId: string): Promise<boolean>;
|
|
180
|
+
/**
|
|
181
|
+
* Retrieves the PIN code configuration of the specified device.
|
|
182
|
+
*
|
|
183
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
184
|
+
* @param deviceId the device identifier
|
|
185
|
+
* @returns the {@link Pin} configuration on success; `null` otherwise.
|
|
186
|
+
* @see setPinCode
|
|
187
|
+
*/
|
|
188
|
+
getPinCode(loginName: string | null, deviceId: string): Promise<Pin | null>;
|
|
189
|
+
/**
|
|
190
|
+
* Sets the PIN code on the specified device.
|
|
191
|
+
*
|
|
192
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
193
|
+
* @param deviceId the device identifier
|
|
194
|
+
* @param code the PIN configuration to set
|
|
195
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
196
|
+
* @see getPinCode
|
|
197
|
+
*/
|
|
198
|
+
setPinCode(loginName: string | null, deviceId: string, code: Pin): Promise<boolean>;
|
|
199
|
+
/**
|
|
200
|
+
* Retrieves the dynamic state of the specified device.
|
|
201
|
+
* <p>
|
|
202
|
+
* The dynamic state reflects runtime settings such as the associated device
|
|
203
|
+
* and remote extension activation status.
|
|
204
|
+
*
|
|
205
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
206
|
+
* @param deviceId the device identifier
|
|
207
|
+
* @returns the {@link DynamicState} on success; `null` otherwise.
|
|
208
|
+
*/
|
|
209
|
+
getDynamicState(loginName: string | null, deviceId: string): Promise<DynamicState | null>;
|
|
210
|
+
/**
|
|
211
|
+
* Associates an additional device with the specified device.
|
|
212
|
+
* <p>
|
|
213
|
+
* The associate feature allows calls to ring simultaneously on both devices,
|
|
214
|
+
* which is useful for example to have a mobile phone ring alongside a desk phone.
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* ```typescript
|
|
218
|
+
* // Associate a mobile number with the desk phone so both ring simultaneously
|
|
219
|
+
* await O2G.phoneSetProgramming.setAssociate(null, "1234", "0612345678");
|
|
220
|
+
*
|
|
221
|
+
* // Check the dynamic state to verify the association is active
|
|
222
|
+
* const state = await O2G.phoneSetProgramming.getDynamicState(null, "1234");
|
|
223
|
+
* console.log("Associated device:", state?.associatedNumber);
|
|
224
|
+
* ```
|
|
225
|
+
*
|
|
226
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
227
|
+
* @param deviceId the device identifier
|
|
228
|
+
* @param associate the phone number of the device to associate
|
|
229
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
230
|
+
*/
|
|
231
|
+
setAssociate(loginName: string | null, deviceId: string, associate: string): Promise<boolean>;
|
|
232
|
+
/**
|
|
233
|
+
* Activates the remote extension on the specified device.
|
|
234
|
+
* <p>
|
|
235
|
+
* When activated, the device operates as a remote extension, allowing the user
|
|
236
|
+
* to use an off-site phone as if it were connected to the PBX.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```typescript
|
|
240
|
+
* // Check current remote extension state before activating
|
|
241
|
+
* const state = await O2G.phoneSetProgramming.getDynamicState(null, "1234");
|
|
242
|
+
* console.log("Remote extension active:", state?.remoteExtensionActivated);
|
|
243
|
+
*
|
|
244
|
+
* // Activate the remote extension
|
|
245
|
+
* await O2G.phoneSetProgramming.activateRemoteExtension(null, "1234");
|
|
246
|
+
*
|
|
247
|
+
* // Deactivate when the user returns to the office
|
|
248
|
+
* await O2G.phoneSetProgramming.deactivateRemoteExtension(null, "1234");
|
|
249
|
+
* ```
|
|
250
|
+
*
|
|
251
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
252
|
+
* @param deviceId the device identifier
|
|
253
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
254
|
+
* @see deactivateRemoteExtension
|
|
255
|
+
* @see getDynamicState
|
|
256
|
+
*/
|
|
257
|
+
activateRemoteExtension(loginName: string | null, deviceId: string): Promise<boolean>;
|
|
258
|
+
/**
|
|
259
|
+
* Deactivates the remote extension on the specified device.
|
|
260
|
+
*
|
|
261
|
+
* @param loginName the user login name, or `null` for the current session user.
|
|
262
|
+
* @param deviceId the device identifier
|
|
263
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
264
|
+
* @see activateRemoteExtension
|
|
265
|
+
* @see getDynamicState
|
|
266
|
+
*/
|
|
267
|
+
deactivateRemoteExtension(loginName: string | null, deviceId: string): Promise<boolean>;
|
|
268
|
+
}
|
|
269
|
+
//# sourceMappingURL=o2g-phone-set-prog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-phone-set-prog.d.ts","sourceRoot":"","sources":["../../src/o2g-phone-set-prog.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,mBAAmB;;IAU5B;;;;;OAKG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;IAIpE;;;;;;OAMG;IACG,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAInF;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,GAAG,IAAI,CAAC;IAIzG;;;;;;;;;;OAUG;IACG,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,GAAG,IAAI,CAAC;IAIvG;;;;;;;;OAQG;IACG,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAI7G;;;;;;;;OAQG;IACG,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3G;;;;;;OAMG;IACG,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;IAIxF;;;;;;;;OAQG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAI5F;;;;;;;;OAQG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAInG;;;;;;;OAOG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI9E;;;;;;;OAOG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIhF;;;;;;;;;;OAUG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIhF;;;;;;;OAOG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIjF;;;;;;;OAOG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC;IAIjF;;;;;;;;OAQG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzF;;;;;;;;;OASG;IACG,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAI/F;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAInG;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3F;;;;;;;;OAQG;IACG,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAGhG"}
|