o2g-node-sdk 1.0.0 → 2.4.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.
Files changed (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +230 -5
  3. package/dist/o2g-node-sdk.js +41601 -1
  4. package/dist/o2g-node-sdk.js.map +1 -1
  5. package/package.json +40 -8
  6. package/dist/ErrorInfo.d.ts +0 -87
  7. package/dist/host.d.ts +0 -17
  8. package/dist/o2g-analytics.d.ts +0 -66
  9. package/dist/o2g-cc-agent.d.ts +0 -247
  10. package/dist/o2g-cc-mngt.d.ts +0 -32
  11. package/dist/o2g-cc-pilot.d.ts +0 -42
  12. package/dist/o2g-comlog.d.ts +0 -173
  13. package/dist/o2g-directory.d.ts +0 -88
  14. package/dist/o2g-eventSummary.d.ts +0 -33
  15. package/dist/o2g-maint.d.ts +0 -48
  16. package/dist/o2g-messaging.d.ts +0 -115
  17. package/dist/o2g-node-sdk.d.ts +0 -159
  18. package/dist/o2g-pbx-mngt.d.ts +0 -146
  19. package/dist/o2g-phone-set-prog.d.ts +0 -29
  20. package/dist/o2g-routing.d.ts +0 -267
  21. package/dist/o2g-rsi.d.ts +0 -160
  22. package/dist/o2g-telephony.d.ts +0 -795
  23. package/dist/o2g-user-mngt.d.ts +0 -42
  24. package/dist/o2g-users.d.ts +0 -85
  25. package/dist/subscription.d.ts +0 -258
  26. package/dist/types/analytics/call-type.d.ts +0 -24
  27. package/dist/types/analytics/charging-file.d.ts +0 -27
  28. package/dist/types/analytics/charging-result.d.ts +0 -43
  29. package/dist/types/analytics/charging.d.ts +0 -105
  30. package/dist/types/analytics/incident.d.ts +0 -46
  31. package/dist/types/analytics/tel-facility.d.ts +0 -44
  32. package/dist/types/analytics/time-range.d.ts +0 -22
  33. package/dist/types/cc-agent/cc-agent-events.d.ts +0 -54
  34. package/dist/types/cc-agent/cc-agent-types.d.ts +0 -71
  35. package/dist/types/cc-agent/intrusion-mode.d.ts +0 -24
  36. package/dist/types/cc-agent/operator-dyn-state.d.ts +0 -56
  37. package/dist/types/cc-agent/operator-main-state.d.ts +0 -21
  38. package/dist/types/cc-agent/operator-type.d.ts +0 -16
  39. package/dist/types/cc-mngt/calendar/abstract-calendar.d.ts +0 -7
  40. package/dist/types/cc-mngt/calendar/calendar.d.ts +0 -19
  41. package/dist/types/cc-mngt/calendar/day-of-week.d.ts +0 -33
  42. package/dist/types/cc-mngt/calendar/exception-calendar.d.ts +0 -26
  43. package/dist/types/cc-mngt/calendar/normal-calendar.d.ts +0 -27
  44. package/dist/types/cc-mngt/calendar/transition.d.ts +0 -49
  45. package/dist/types/cc-mngt/cc-mngt-types.d.ts +0 -0
  46. package/dist/types/cc-mngt/pilot-rule-set.d.ts +0 -27
  47. package/dist/types/cc-mngt/pilot-rule.d.ts +0 -14
  48. package/dist/types/cc-mngt/pilot.d.ts +0 -56
  49. package/dist/types/cc-pilot/cc-pilot-events.d.ts +0 -111
  50. package/dist/types/comlog/com-record.d.ts +0 -51
  51. package/dist/types/comlog/comlog-events.d.ts +0 -74
  52. package/dist/types/comlog/comlog-types.d.ts +0 -131
  53. package/dist/types/comlog/option.d.ts +0 -23
  54. package/dist/types/comlog/page.d.ts +0 -33
  55. package/dist/types/comlog/query-filter.d.ts +0 -44
  56. package/dist/types/comlog/query-result.d.ts +0 -27
  57. package/dist/types/comlog/reason.d.ts +0 -61
  58. package/dist/types/comlog/role.d.ts +0 -17
  59. package/dist/types/common/common-types.d.ts +0 -78
  60. package/dist/types/directory/criteria.d.ts +0 -90
  61. package/dist/types/directory/directory-types.d.ts +0 -44
  62. package/dist/types/directory/filter-item.d.ts +0 -21
  63. package/dist/types/directory/operation-filter.d.ts +0 -21
  64. package/dist/types/events/events.d.ts +0 -54
  65. package/dist/types/eventsummary/event-summary-counter.d.ts +0 -44
  66. package/dist/types/eventsummary/event-summary-events.d.ts +0 -15
  67. package/dist/types/maint/maint-events.d.ts +0 -51
  68. package/dist/types/maint/maint-types.d.ts +0 -162
  69. package/dist/types/messaging/messaging-types.d.ts +0 -120
  70. package/dist/types/pbxmngt/attribute-filter.d.ts +0 -30
  71. package/dist/types/pbxmngt/attribute-type.d.ts +0 -34
  72. package/dist/types/pbxmngt/filter.d.ts +0 -46
  73. package/dist/types/pbxmngt/model.d.ts +0 -63
  74. package/dist/types/pbxmngt/pbx-attr-map.d.ts +0 -91
  75. package/dist/types/pbxmngt/pbx-attribute.d.ts +0 -87
  76. package/dist/types/pbxmngt/pbx-object.d.ts +0 -45
  77. package/dist/types/pbxmngt/pbxmngt-events.d.ts +0 -59
  78. package/dist/types/pbxmngt/pbxmngt-types.d.ts +0 -14
  79. package/dist/types/phoneset/device-key.d.ts +0 -27
  80. package/dist/types/phoneset/phoneset-types.d.ts +0 -17
  81. package/dist/types/phoneset/pin-control.d.ts +0 -21
  82. package/dist/types/phoneset/pin.d.ts +0 -50
  83. package/dist/types/phoneset/programmable-key.d.ts +0 -23
  84. package/dist/types/phoneset/softkey.d.ts +0 -17
  85. package/dist/types/routing/destination.d.ts +0 -19
  86. package/dist/types/routing/forward.d.ts +0 -51
  87. package/dist/types/routing/overflow.d.ts +0 -42
  88. package/dist/types/routing/routing-capability.d.ts +0 -31
  89. package/dist/types/routing/routing-events.d.ts +0 -15
  90. package/dist/types/routing/routing-state.d.ts +0 -67
  91. package/dist/types/routing/routing-types.d.ts +0 -10
  92. package/dist/types/rsi/add-digit-coll-criteria.d.ts +0 -16
  93. package/dist/types/rsi/collection-cause.d.ts +0 -21
  94. package/dist/types/rsi/routing-caller-type.d.ts +0 -17
  95. package/dist/types/rsi/routing-reason.d.ts +0 -25
  96. package/dist/types/rsi/rsi-events.d.ts +0 -76
  97. package/dist/types/rsi/rsi-types.d.ts +0 -49
  98. package/dist/types/rsi/tones.d.ts +0 -25
  99. package/dist/types/telephony/RecordingAction.d.ts +0 -6
  100. package/dist/types/telephony/acr-skill.d.ts +0 -29
  101. package/dist/types/telephony/telephony-events.d.ts +0 -292
  102. package/dist/types/telephony/telephony-types.d.ts +0 -587
  103. package/dist/types/users/users-events.d.ts +0 -33
  104. package/dist/types/users/users-types.d.ts +0 -129
@@ -1,22 +0,0 @@
1
- /**
2
- * TimeRange represents an interval between two dates. It is used to filter analytics requests.
3
- * @see {@link Analytics.getChargingsFromFilter} and {@link Analytics.getChargingFiles}
4
- */
5
- export declare class TimeRange {
6
- private _from;
7
- private _to;
8
- /**
9
- * Construct a new TimeRange, with the specified "from" date and "to" date.
10
- * @param from the begining of the range
11
- * @param to the end of the range
12
- */
13
- constructor(from: Date, to: Date);
14
- /**
15
- * Returns the "from" date.
16
- */
17
- get from(): Date;
18
- /**
19
- * Returns the "to" date.
20
- */
21
- get to(): Date;
22
- }
@@ -1,54 +0,0 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
2
- import { AgentSkill, OperatorState } from "./cc-agent-types";
3
- /**
4
- * Event sent when CCD agent skills is modified: one or several skills has been activate or deactivate.
5
- */
6
- export type OnAgentSkillChanged = O2GEvent<'OnAgentSkillChanged', {
7
- /**
8
- * Login name of the user receiving the event.
9
- */
10
- loginName: string;
11
- /**
12
- * Set of skills of the agent (the event contains the whole set).
13
- */
14
- skills: AgentSkill[];
15
- }>;
16
- /**
17
- * Event sent when CCD operator state is modified.
18
- */
19
- export type OnAgentStateChanged = O2GEvent<'OnAgentStateChanged', {
20
- /**
21
- * Login name of the user receiving the event.
22
- */
23
- loginName: string;
24
- /**
25
- * CCD operator state.
26
- */
27
- state: OperatorState;
28
- }>;
29
- /**
30
- * Event sent after an CCD agent has requested the assistance of its supervisor and when the request is canceled by the agent or when the request is rejected by the supervisor.
31
- */
32
- export type OnSupervisorHelpCancelled = O2GEvent<'OnSupervisorHelpCancelled', {
33
- /**
34
- * Login name of the user receiving the event.
35
- */
36
- loginName: string;
37
- /**
38
- * On the agent, the number of the supervisor which the help has been initially requested.
39
- */
40
- agentNumber: string;
41
- }>;
42
- /**
43
- * Event sent when an CCD agent requests the assistance of its supervisor.
44
- */
45
- export type OnSupervisorHelpRequested = O2GEvent<'OnSupervisorHelpRequested', {
46
- /**
47
- * Login name of the user receiving the event.
48
- */
49
- loginName: string;
50
- /**
51
- * On the agent, the number of the supervisor which the help has been requested.
52
- */
53
- agentNumber: string;
54
- }>;
@@ -1,71 +0,0 @@
1
- import { OperatorDynamicState } from "./operator-dyn-state";
2
- import { OperatorMainState } from "./operator-main-state";
3
- import { OperatorType } from "./operator-type";
4
- /**
5
- * Represents a CCD operator skill.
6
- * Skills are used by the "Advanced Call Routing" strategy.
7
- */
8
- export interface AgentSkill {
9
- /** Unique identifier of this skill */
10
- number: number;
11
- /** Skill level */
12
- level: number;
13
- /** Whether the skill is active */
14
- active: boolean;
15
- }
16
- /**
17
- * Represents the group configuration of a CCD operator.
18
- */
19
- export interface AgentGroups {
20
- /** Preferred agent group */
21
- preferred: string;
22
- /** All agent groups the operator is part of */
23
- groups: string[];
24
- }
25
- /**
26
- * Represents the configuration of a CCD operator.
27
- */
28
- export interface OperatorConfig {
29
- /** Operator type: agent or supervisor */
30
- type: OperatorType;
31
- /** Associated pro-acd station */
32
- proacd: string;
33
- /** Groups the operator belongs to */
34
- groups: AgentGroups;
35
- /** Whether the operator can choose their agent group */
36
- selfAssign: boolean;
37
- /** Operator's skill set mapped by skill number */
38
- skills: Map<number, AgentSkill>;
39
- /** Whether headset feature is enabled */
40
- headset: boolean;
41
- /** Whether help request to supervisor is enabled */
42
- help: boolean;
43
- /** Whether the operator is multiline */
44
- multiline: boolean;
45
- }
46
- /**
47
- * Represents the state of a CCD operator.
48
- */
49
- export interface OperatorState {
50
- /** Static (main) state */
51
- mainState: OperatorMainState;
52
- /** Dynamic (sub) state */
53
- subState: OperatorDynamicState;
54
- /** Device number of the pro-acd the operator is logged into */
55
- proAcdDeviceNumber: string;
56
- /** Agent group the operator is currently logged into */
57
- pgNumber: string;
58
- /** Reason index for withdrawal, if applicable */
59
- withdrawReason?: number;
60
- /** Whether the operator is in withdrawal state */
61
- withdraw: boolean;
62
- }
63
- /**
64
- * Represents a reason for agent withdrawal used in statistics.
65
- */
66
- export interface WithdrawReason {
67
- /** Index of the reason */
68
- index: number;
69
- /** Human-readable label for the reason */
70
- label: string;
71
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * IntrusionMode represents the possible intrusion mode.
3
- * <p>
4
- * A supervisor can intrude in an established CCD call. The intrusion depends on the IntrusionMode.
5
- * @see {@link CallCenterAgent.requestIntrusion}
6
- */
7
- export declare enum IntrusionMode {
8
- /**
9
- * The supervisor can talk to both the agent and the remote customer.
10
- */
11
- NORMAL = "NORMAL",
12
- /**
13
- * The supervisor can only talk to the agent but listen to the remote customer.
14
- */
15
- RESTRICTED = "RESTRICTED",
16
- /**
17
- * The supervisor only listens to the conversation between agent and customer.
18
- */
19
- DISCRETE = "DISCRETE",
20
- /**
21
- * The supervisor stops the intrusion
22
- */
23
- STOP = "STOP"
24
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * OperatorDynamicState represents the CCD operator dynamic state.
3
- */
4
- export declare enum OperatorDynamicState {
5
- /**
6
- * The operator is ready.
7
- */
8
- READY = "READY",
9
- /**
10
- * The operator is logged but out of an agent group.
11
- */
12
- OUT_OF_PG = "OUT_OF_PG",
13
- /**
14
- * The operator is busy.
15
- */
16
- BUSY = "BUSY",
17
- /**
18
- * The operator is in the transaction code phase.
19
- */
20
- TRANSACTION_CODE_INPUT = "TRANSACTION_CODE_INPUT",
21
- /**
22
- * The operator is in the automatic wrapup phase.
23
- */
24
- WRAPUP = "WRAPUP",
25
- /**
26
- * The operator is in pause.
27
- */
28
- PAUSE = "PAUSE",
29
- /**
30
- * The operator is in withdraw from the call distribution.
31
- */
32
- WITHDRAW = "WITHDRAW",
33
- /**
34
- * The operator is in withdraw from the call distribution because he is treating
35
- * an IM.
36
- */
37
- WRAPUP_IM = "WRAPUP_IM",
38
- /**
39
- * The operator is in withdraw from the call distribution because he is treating
40
- * an email.
41
- */
42
- WRAPUP_EMAIL = "WRAPUP_EMAIL",
43
- /**
44
- * The operator is in withdraw from the call distribution because he is treating
45
- * an email, nevertheless, a CCD call can be distributed on this operator.
46
- */
47
- WRAPUP_EMAIL_INTERRUPTIBLE = "WRAPUP_EMAIL_INTERRUPTIBLE",
48
- /**
49
- * The operator is in wrapup after an outbound call.
50
- */
51
- WRAPUP_OUTBOUND = "WRAPUP_OUTBOUND",
52
- /**
53
- * The operator is in wrapup after a callback call.
54
- */
55
- WRAPUP_CALLBACK = "WRAPUP_CALLBACK"
56
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * OperatorMainState represents the login, logoff status of a CCD operator.
3
- */
4
- export declare enum OperatorMainState {
5
- /**
6
- * The O2G server is unable to get the operator main state.
7
- */
8
- UNKNOWN = "UNKNOWN",
9
- /**
10
- * The operator is logged on a pro-acd set.
11
- */
12
- LOG_ON = "LOG_ON",
13
- /**
14
- * The operator is logged off.
15
- */
16
- LOG_OFF = "LOG_OFF",
17
- /**
18
- * Error status.
19
- */
20
- ERROR = "ERROR"
21
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * OperatorType represents the CCD operator, either Agent or Supervisor.
3
- */
4
- export declare enum OperatorType {
5
- /**
6
- * CCD Agent.
7
- */
8
- AGENT = "AGENT",
9
- /**
10
- * CCD Supervisor.
11
- */
12
- SUPERVISOR = "SUPERVISOR"
13
- }
14
- export declare namespace OperatorType {
15
- function isOperatorType(value: string): value is OperatorType;
16
- }
@@ -1,7 +0,0 @@
1
- import { Transition } from "./transition";
2
- export declare abstract class AbstractCalendar<T> {
3
- protected transitions: Map<T, Transition[]>;
4
- constructor(transitions: Map<T, Transition[]>);
5
- protected _getTransitions(element: T): Transition[] | undefined;
6
- protected _getItemAt(element: T, index: number): Transition | undefined;
7
- }
@@ -1,19 +0,0 @@
1
- import { ExceptionCalendar } from "./exception-calendar";
2
- import { NormalCalendar } from "./normal-calendar";
3
- /**
4
- * Represents a calendar associated with a CCD pilot.
5
- *
6
- * A calendar consists of:
7
- * - A normal calendar: defines pilot behavior for each day of the week (up to 10 time slots per day).
8
- * - An exception calendar: overrides normal days with special rules (e.g., holidays).
9
- */
10
- export interface Calendar {
11
- /**
12
- * A set of transitions defined for each day of the week.
13
- */
14
- normalDays: NormalCalendar | null;
15
- /**
16
- * A collection of exception days with their own transitions.
17
- */
18
- exceptionDays: ExceptionCalendar | null;
19
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * Defines the day of a week.
3
- */
4
- export declare enum DayOfWeek {
5
- /**
6
- * The day-of-week of Monday.
7
- */
8
- MONDAY = "MONDAY",
9
- /**
10
- * The day-of-week of Tuesday.
11
- */
12
- TUESDAY = "TUESDAY",
13
- /**
14
- * The day-of-week of Wednesday.
15
- */
16
- WEDNESDAY = "WEDNESDAY",
17
- /**
18
- * The day-of-week of Thursday.
19
- */
20
- THURSDAY = "THURSDAY",
21
- /**
22
- * The day-of-week of Friday.
23
- */
24
- FRIDAY = "FRIDAY",
25
- /**
26
- * The day-of-week of Saturday.
27
- */
28
- SATURDAY = "SATURDAY",
29
- /**
30
- * The day-of-week of Sunday.
31
- */
32
- SUNDAY = "SUNDAY"
33
- }
@@ -1,26 +0,0 @@
1
- import { AbstractCalendar } from "./abstract-calendar";
2
- import { Transition } from "./transition";
3
- /**
4
- * Represents the exceptional calendar associated with a CCD pilot.
5
- *
6
- * This calendar defines special days (like holidays) that override the normal calendar behavior.
7
- * Each exceptional day can have up to 10 transitions (time slots).
8
- */
9
- export declare class ExceptionCalendar extends AbstractCalendar<Date> {
10
- constructor(transitions: Map<Date, Transition[]>);
11
- /**
12
- * Get the set of exceptional dates in this calendar.
13
- */
14
- getExceptionDates(): Set<Date>;
15
- /**
16
- * Get a specific transition for an exceptional date and index.
17
- * @param date the date
18
- * @param index Index of the transition (0-9)
19
- */
20
- getTransitionAt(date: Date, index: number): Transition | undefined;
21
- /**
22
- * Get all transitions for a given exceptional date.
23
- * @param date the date
24
- */
25
- getTransitions(date: Date): Transition[];
26
- }
@@ -1,27 +0,0 @@
1
- import { AbstractCalendar } from "./abstract-calendar";
2
- import { DayOfWeek } from "./day-of-week";
3
- import { Transition } from "./transition";
4
- /**
5
- * Represents the normal calendar associated with a CCD pilot.
6
- *
7
- * The normal calendar defines pilot behavior for each day of the week.
8
- * You can define up to 10 time slots per day, for a maximum of 70 per week.
9
- */
10
- export declare class NormalCalendar extends AbstractCalendar<DayOfWeek> {
11
- constructor(transitions: Map<DayOfWeek, Transition[]>);
12
- /**
13
- * Get the set of days of week that have transitions configured.
14
- */
15
- getDays(): Set<DayOfWeek>;
16
- /**
17
- * Get a specific transition by day and index.
18
- * @param day The day of the week
19
- * @param index The transition index
20
- */
21
- getTransitionAt(day: DayOfWeek, index: number): Transition | undefined;
22
- /**
23
- * Get all transitions for a specific day.
24
- * @param day The day of the week
25
- */
26
- getTransitions(day: DayOfWeek): Transition[];
27
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * Represents the possible operating modes of a CCD pilot.
3
- */
4
- export declare enum PilotOperatingMode {
5
- /**
6
- * The pilot operates in normal (opened) mode.
7
- */
8
- NORMAL = "NORMAL",
9
- /**
10
- * The pilot operates in closed mode.
11
- */
12
- CLOSED = "CLOSED",
13
- /**
14
- * The pilot operates in forward mode.
15
- */
16
- FORWARD = "FORWARD"
17
- }
18
- /**
19
- * Represents a transition in a CCD pilot calendar.
20
- */
21
- export interface Transition {
22
- /**
23
- * The pilot rule number associated with this transition.
24
- */
25
- ruleNumber: number;
26
- /**
27
- * The mode in which the pilot is operating during this transition.
28
- */
29
- mode: PilotOperatingMode;
30
- /**
31
- * The start time of this transition during the day.
32
- */
33
- time: Transition.Time;
34
- }
35
- export declare namespace Transition {
36
- /**
37
- * Represents the starting time of a transition in a pilot calendar.
38
- * Time is in 24-hour format.
39
- */
40
- class Time {
41
- private _hour;
42
- private _minute;
43
- constructor(_hour: number, _minute: number);
44
- get hour(): number;
45
- get minute(): number;
46
- toString(): string;
47
- static parse(value: string): Time;
48
- }
49
- }
File without changes
@@ -1,27 +0,0 @@
1
- import { PilotRule } from "./pilot-rule";
2
- export declare class PilotRuleSet {
3
- private rules;
4
- protected constructor(rules: Map<number, PilotRule>);
5
- /**
6
- * Returns the rule with the specified number.
7
- * @param number The rule number
8
- * @returns The pilot rule with the specified number or undefined if not found.
9
- */
10
- get(number: number): PilotRule | undefined;
11
- /**
12
- * Determines whether the specified rule exists in this rule set.
13
- * @param number The rule number to search
14
- * @returns true if the rule is present; false otherwise.
15
- */
16
- contains(number: number): boolean;
17
- /**
18
- * Returns the set of rule numbers contained in this rule set.
19
- * @returns A Set containing the rule numbers.
20
- */
21
- getRulesNumbers(): Set<number>;
22
- /**
23
- * Returns the rules in this rule set.
24
- * @returns A collection (array) of PilotRule.
25
- */
26
- getRules(): PilotRule[];
27
- }
@@ -1,14 +0,0 @@
1
- export declare class PilotRule {
2
- private _number;
3
- private _name;
4
- private _active;
5
- private constructor();
6
- get number(): number;
7
- get name(): string;
8
- get active(): boolean;
9
- static build(obj: {
10
- number: number;
11
- name: string;
12
- active: boolean;
13
- }): PilotRule;
14
- }
@@ -1,56 +0,0 @@
1
- import { PilotRuleSet } from "./pilot-rule-set";
2
- export declare class Pilot {
3
- private _number;
4
- private _name;
5
- private _state;
6
- private _detailedState;
7
- private _waitingTime;
8
- private _saturation;
9
- private _rules;
10
- private _possibleTransfer;
11
- private _supervisedTransfer;
12
- protected constructor(data: {
13
- number: string;
14
- name: string;
15
- state: Pilot.ServiceState;
16
- detailedState: Pilot.Status;
17
- waitingTime: number;
18
- saturation: boolean;
19
- rules: PilotRuleSet;
20
- possibleTransfer: boolean;
21
- supervisedTransfer: boolean;
22
- });
23
- get number(): string;
24
- get name(): string;
25
- get state(): Pilot.ServiceState;
26
- get detailedState(): Pilot.Status;
27
- get waitingTime(): number;
28
- get saturation(): boolean;
29
- get rules(): PilotRuleSet;
30
- get possibleTransfer(): boolean;
31
- get supervisedTransfer(): boolean;
32
- }
33
- export declare namespace Pilot {
34
- /**
35
- * Service state for th epilot
36
- */
37
- enum ServiceState {
38
- Closed = 0,
39
- Opened = 1,
40
- Blocked = 2,
41
- unknown = 3
42
- }
43
- /**
44
- * CCD pilot status.
45
- */
46
- enum Status {
47
- OPEN = 0,
48
- BLOCKED = 1,
49
- BLOCKED_ON_RULE = 2,
50
- BLOCKED_ON_BLOCKED_RULE = 3,
51
- GENERAL_FORWARDING = 4,
52
- GENERAL_FORWARDING_ON_RULE = 5,
53
- BLOCKED_ON_GENERAL_FORWARDING_RULE = 6,
54
- OTHER = 7
55
- }
56
- }
@@ -1,111 +0,0 @@
1
- import { O2GEvent } from "../../internal/events/o2g-event";
2
- import { CallCause } from "../telephony/telephony-events";
3
- import { TrunkIdentification } from "../telephony/telephony-types";
4
- /**
5
- * Describes data associated to a pilot call.
6
- */
7
- export type CallDataPilot = {
8
- /**
9
- * Initial user called for this call.
10
- */
11
- initialCalled: string;
12
- /**
13
- * true it's a anonymous call.
14
- */
15
- anonymous: boolean;
16
- /**
17
- * Associated data (or Correlator data).
18
- */
19
- associatedData: string;
20
- /**
21
- * Hexa binary array format for Associated data (or Correlator data).
22
- */
23
- hexaBinaryAssociatedData: string;
24
- /**
25
- * TrunkIdentification if external call
26
- */
27
- trunkIdentification: TrunkIdentification;
28
- /**
29
- * if the call has been rerouted in the network (absent if not)
30
- */
31
- networkRerouted: boolean;
32
- };
33
- /**
34
- * This event indicates that a new call arrives on a pilot.
35
- */
36
- export type OnPilotCallCreated = O2GEvent<'OnPilotCallCreated', {
37
- /**
38
- * Pilot number.
39
- */
40
- pilot: string;
41
- /**
42
- * Caller number.
43
- */
44
- caller: string;
45
- /**
46
- * The call reference.
47
- */
48
- callRef: string;
49
- /**
50
- * Cause of the event.
51
- */
52
- cause: CallCause;
53
- /**
54
- * Call data
55
- */
56
- callData: CallDataPilot;
57
- }>;
58
- /**
59
- * This event indicates that the call has been queued.
60
- */
61
- export type OnPilotCallQueued = O2GEvent<'OnPilotCallQueued', {
62
- /**
63
- * Pilot number.
64
- */
65
- pilot: string;
66
- /**
67
- * Caller number.
68
- */
69
- caller: string;
70
- /**
71
- * Queue number (if distribution) or identifier (if overflow).
72
- */
73
- queue: string;
74
- /**
75
- * The call reference.
76
- */
77
- callRef: string;
78
- /**
79
- * Cause of the event.
80
- */
81
- cause: CallCause;
82
- /**
83
- * Number of queued calls in the pilot queue.
84
- */
85
- numberOfQueued: number;
86
- }>;
87
- /**
88
- * This event indicates that the call has been removed from the pilot: cause distribution, cancel or overflow.
89
- */
90
- export type OnPilotCallRemoved = O2GEvent<'OnPilotCallRemoved', {
91
- /**
92
- * Pilot number.
93
- */
94
- pilot: string;
95
- /**
96
- * ReleasingDevice number.
97
- */
98
- releasingDevice: string;
99
- /**
100
- * new Destination number.
101
- */
102
- newDestination: string;
103
- /**
104
- * The call reference.
105
- */
106
- callRef: string;
107
- /**
108
- * Cause of the event.
109
- */
110
- cause: CallCause;
111
- }>;