@rc-ex/core 0.12.0 → 0.12.3

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 (214) hide show
  1. package/definitions/AggregatePerformanceCallsGrouping.ts +28 -0
  2. package/definitions/AggregatePerformanceReportCallsParameters.ts +2 -1
  3. package/definitions/{CallPerformanceActionInfo.ts → CallActionFilter.ts} +2 -2
  4. package/definitions/CallSegmentFilter.ts +0 -4
  5. package/definitions/CallsByDirection.ts +2 -2
  6. package/definitions/CallsByOrigin.ts +2 -2
  7. package/definitions/KeyInfo.ts +9 -0
  8. package/definitions/PerformanceCallsAdvancedTimeSettings.ts +1 -2
  9. package/definitions/PerformanceCallsAggregatesRequest.ts +5 -4
  10. package/definitions/PerformanceCallsAggregatesResponse.ts +4 -3
  11. package/definitions/PerformanceCallsCounters.ts +1 -1
  12. package/definitions/PerformanceCallsCountersResponseOptions.ts +24 -12
  13. package/definitions/PerformanceCallsCountersResponseOptionsAllCalls.ts +10 -0
  14. package/definitions/PerformanceCallsCountersResponseOptionsCallsByActions.ts +10 -0
  15. package/definitions/PerformanceCallsCountersResponseOptionsCallsByCompanyHours.ts +10 -0
  16. package/definitions/PerformanceCallsCountersResponseOptionsCallsByDirection.ts +10 -0
  17. package/definitions/PerformanceCallsCountersResponseOptionsCallsByOrigin.ts +10 -0
  18. package/definitions/PerformanceCallsCountersResponseOptionsCallsByQueueSla.ts +10 -0
  19. package/definitions/PerformanceCallsCountersResponseOptionsCallsByResponse.ts +10 -0
  20. package/definitions/PerformanceCallsCountersResponseOptionsCallsByResult.ts +10 -0
  21. package/definitions/PerformanceCallsCountersResponseOptionsCallsByType.ts +10 -0
  22. package/definitions/PerformanceCallsCountersResponseOptionsCallsSegments.ts +10 -0
  23. package/definitions/PerformanceCallsData.ts +3 -6
  24. package/definitions/PerformanceCallsFilterTimeSpentByMailbox.ts +1 -1
  25. package/definitions/{PerformanceCallsAdditionalFilters.ts → PerformanceCallsFilters.ts} +24 -24
  26. package/definitions/PerformanceCallsResponseDataOptions.ts +1 -1
  27. package/definitions/PerformanceCallsTimeInterval.ts +2 -4
  28. package/definitions/PerformanceCallsTimeRange.ts +2 -5
  29. package/definitions/PerformanceCallsTimeSettings.ts +1 -1
  30. package/definitions/PerformanceCallsTimelineRequest.ts +9 -8
  31. package/definitions/PerformanceCallsTimers.ts +1 -1
  32. package/definitions/PerformanceCallsTimersResponseOptions.ts +22 -11
  33. package/definitions/PerformanceCallsTimersResponseOptionsAllCallsDuration.ts +10 -0
  34. package/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByCompanyHours.ts +10 -0
  35. package/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByDirection.ts +10 -0
  36. package/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByOrigin.ts +10 -0
  37. package/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByQueueSla.ts +10 -0
  38. package/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByResponse.ts +10 -0
  39. package/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByResult.ts +10 -0
  40. package/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByType.ts +10 -0
  41. package/definitions/PerformanceCallsTimersResponseOptionsCallsSegmentsDuration.ts +10 -0
  42. package/definitions/{PerformanceCallsPaging.ts → ResponsePaging.ts} +3 -3
  43. package/definitions/TimelineCountersResponseOptions.ts +43 -0
  44. package/definitions/TimelineData.ts +5 -1
  45. package/definitions/TimelinePerformanceCallsGrouping.ts +16 -0
  46. package/definitions/TimelineResponseDataOptions.ts +18 -0
  47. package/definitions/TimelineTimersResponseOptions.ts +39 -0
  48. package/definitions/index.ts +28 -7
  49. package/index.ts +38 -1
  50. package/lib/definitions/AggregatePerformanceCallsGrouping.d.ts +15 -0
  51. package/lib/definitions/AggregatePerformanceCallsGrouping.js +9 -0
  52. package/lib/definitions/AggregatePerformanceCallsGrouping.js.map +1 -0
  53. package/lib/definitions/AggregatePerformanceReportCallsParameters.d.ts +2 -1
  54. package/lib/definitions/AggregatePerformanceReportCallsParameters.js.map +1 -1
  55. package/lib/definitions/{CallPerformanceActionInfo.d.ts → CallActionFilter.d.ts} +2 -2
  56. package/lib/definitions/CallActionFilter.js +6 -0
  57. package/lib/definitions/CallActionFilter.js.map +1 -0
  58. package/lib/definitions/CallSegmentFilter.d.ts +0 -4
  59. package/lib/definitions/CallSegmentFilter.js +0 -3
  60. package/lib/definitions/CallSegmentFilter.js.map +1 -1
  61. package/lib/definitions/CallsByDirection.d.ts +2 -2
  62. package/lib/definitions/CallsByOrigin.d.ts +2 -2
  63. package/lib/definitions/KeyInfo.d.ts +9 -0
  64. package/lib/definitions/KeyInfo.js +9 -0
  65. package/lib/definitions/KeyInfo.js.map +1 -0
  66. package/lib/definitions/PerformanceCallsAdvancedTimeSettings.d.ts +1 -2
  67. package/lib/definitions/PerformanceCallsAdvancedTimeSettings.js.map +1 -1
  68. package/lib/definitions/PerformanceCallsAggregatesRequest.d.ts +4 -3
  69. package/lib/definitions/PerformanceCallsAggregatesRequest.js.map +1 -1
  70. package/lib/definitions/PerformanceCallsAggregatesResponse.d.ts +4 -3
  71. package/lib/definitions/PerformanceCallsAggregatesResponse.js.map +1 -1
  72. package/lib/definitions/PerformanceCallsCounters.d.ts +1 -1
  73. package/lib/definitions/PerformanceCallsCounters.js +1 -1
  74. package/lib/definitions/PerformanceCallsCountersResponseOptions.d.ts +13 -12
  75. package/lib/definitions/PerformanceCallsCountersResponseOptions.js +1 -1
  76. package/lib/definitions/PerformanceCallsCountersResponseOptions.js.map +1 -1
  77. package/lib/definitions/PerformanceCallsCountersResponseOptionsAllCalls.d.ts +9 -0
  78. package/lib/definitions/PerformanceCallsCountersResponseOptionsAllCalls.js +6 -0
  79. package/lib/definitions/PerformanceCallsCountersResponseOptionsAllCalls.js.map +1 -0
  80. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByActions.d.ts +9 -0
  81. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByActions.js +6 -0
  82. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByActions.js.map +1 -0
  83. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByCompanyHours.d.ts +9 -0
  84. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByCompanyHours.js +6 -0
  85. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByCompanyHours.js.map +1 -0
  86. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByDirection.d.ts +9 -0
  87. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByDirection.js +6 -0
  88. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByDirection.js.map +1 -0
  89. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByOrigin.d.ts +9 -0
  90. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByOrigin.js +6 -0
  91. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByOrigin.js.map +1 -0
  92. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByQueueSla.d.ts +9 -0
  93. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByQueueSla.js +6 -0
  94. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByQueueSla.js.map +1 -0
  95. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByResponse.d.ts +9 -0
  96. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByResponse.js +6 -0
  97. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByResponse.js.map +1 -0
  98. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByResult.d.ts +9 -0
  99. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByResult.js +6 -0
  100. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByResult.js.map +1 -0
  101. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByType.d.ts +9 -0
  102. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByType.js +6 -0
  103. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsByType.js.map +1 -0
  104. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsSegments.d.ts +9 -0
  105. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsSegments.js +6 -0
  106. package/lib/definitions/PerformanceCallsCountersResponseOptionsCallsSegments.js.map +1 -0
  107. package/lib/definitions/PerformanceCallsData.d.ts +3 -6
  108. package/lib/definitions/PerformanceCallsData.js +0 -3
  109. package/lib/definitions/PerformanceCallsData.js.map +1 -1
  110. package/lib/definitions/PerformanceCallsFilterTimeSpentByMailbox.d.ts +1 -1
  111. package/lib/definitions/PerformanceCallsFilterTimeSpentByMailbox.js +1 -1
  112. package/lib/definitions/PerformanceCallsFilters.d.ts +61 -0
  113. package/lib/definitions/PerformanceCallsFilters.js +9 -0
  114. package/lib/definitions/PerformanceCallsFilters.js.map +1 -0
  115. package/lib/definitions/PerformanceCallsResponseDataOptions.d.ts +1 -1
  116. package/lib/definitions/PerformanceCallsResponseDataOptions.js +1 -1
  117. package/lib/definitions/PerformanceCallsTimeInterval.d.ts +2 -4
  118. package/lib/definitions/PerformanceCallsTimeInterval.js.map +1 -1
  119. package/lib/definitions/PerformanceCallsTimeRange.d.ts +2 -5
  120. package/lib/definitions/PerformanceCallsTimeRange.js +0 -3
  121. package/lib/definitions/PerformanceCallsTimeRange.js.map +1 -1
  122. package/lib/definitions/PerformanceCallsTimeSettings.d.ts +1 -1
  123. package/lib/definitions/PerformanceCallsTimeSettings.js +1 -1
  124. package/lib/definitions/PerformanceCallsTimelineRequest.d.ts +6 -5
  125. package/lib/definitions/PerformanceCallsTimelineRequest.js.map +1 -1
  126. package/lib/definitions/PerformanceCallsTimers.d.ts +1 -1
  127. package/lib/definitions/PerformanceCallsTimers.js +1 -1
  128. package/lib/definitions/PerformanceCallsTimersResponseOptions.d.ts +12 -11
  129. package/lib/definitions/PerformanceCallsTimersResponseOptions.js +1 -1
  130. package/lib/definitions/PerformanceCallsTimersResponseOptions.js.map +1 -1
  131. package/lib/definitions/PerformanceCallsTimersResponseOptionsAllCallsDuration.d.ts +9 -0
  132. package/lib/definitions/PerformanceCallsTimersResponseOptionsAllCallsDuration.js +6 -0
  133. package/lib/definitions/PerformanceCallsTimersResponseOptionsAllCallsDuration.js.map +1 -0
  134. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByCompanyHours.d.ts +9 -0
  135. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByCompanyHours.js +6 -0
  136. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByCompanyHours.js.map +1 -0
  137. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByDirection.d.ts +9 -0
  138. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByDirection.js +6 -0
  139. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByDirection.js.map +1 -0
  140. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByOrigin.d.ts +9 -0
  141. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByOrigin.js +6 -0
  142. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByOrigin.js.map +1 -0
  143. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByQueueSla.d.ts +9 -0
  144. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByQueueSla.js +6 -0
  145. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByQueueSla.js.map +1 -0
  146. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByResponse.d.ts +9 -0
  147. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByResponse.js +6 -0
  148. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByResponse.js.map +1 -0
  149. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByResult.d.ts +9 -0
  150. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByResult.js +6 -0
  151. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByResult.js.map +1 -0
  152. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByType.d.ts +9 -0
  153. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByType.js +6 -0
  154. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsDurationByType.js.map +1 -0
  155. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsSegmentsDuration.d.ts +9 -0
  156. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsSegmentsDuration.js +6 -0
  157. package/lib/definitions/PerformanceCallsTimersResponseOptionsCallsSegmentsDuration.js.map +1 -0
  158. package/lib/definitions/{PerformanceCallsPaging.d.ts → ResponsePaging.d.ts} +3 -3
  159. package/lib/definitions/ResponsePaging.js +6 -0
  160. package/lib/definitions/ResponsePaging.js.map +1 -0
  161. package/lib/definitions/TimelineCountersResponseOptions.d.ts +34 -0
  162. package/lib/definitions/TimelineCountersResponseOptions.js +6 -0
  163. package/lib/definitions/TimelineCountersResponseOptions.js.map +1 -0
  164. package/lib/definitions/TimelineData.d.ts +4 -1
  165. package/lib/definitions/TimelineData.js.map +1 -1
  166. package/lib/definitions/TimelinePerformanceCallsGrouping.d.ts +15 -0
  167. package/lib/definitions/TimelinePerformanceCallsGrouping.js +9 -0
  168. package/lib/definitions/TimelinePerformanceCallsGrouping.js.map +1 -0
  169. package/lib/definitions/TimelineResponseDataOptions.d.ts +13 -0
  170. package/lib/definitions/TimelineResponseDataOptions.js +9 -0
  171. package/lib/definitions/TimelineResponseDataOptions.js.map +1 -0
  172. package/lib/definitions/TimelineTimersResponseOptions.d.ts +31 -0
  173. package/lib/definitions/TimelineTimersResponseOptions.js +6 -0
  174. package/lib/definitions/TimelineTimersResponseOptions.js.map +1 -0
  175. package/lib/definitions/index.d.ts +28 -7
  176. package/lib/definitions/index.js +76 -33
  177. package/lib/definitions/index.js.map +1 -1
  178. package/lib/index.d.ts +10 -0
  179. package/lib/index.js +20 -1
  180. package/lib/index.js.map +1 -1
  181. package/lib/package.json +4 -4
  182. package/lib/paths/Analytics/Phone/Performance/V1/Accounts/Calls/Aggregate/index.d.ts +2 -1
  183. package/lib/paths/Analytics/Phone/Performance/V1/Accounts/Calls/Aggregate/index.js +2 -1
  184. package/lib/paths/Analytics/Phone/Performance/V1/Accounts/Calls/Aggregate/index.js.map +1 -1
  185. package/lib/paths/Analytics/Phone/Performance/V1/Accounts/Calls/Timeline/index.d.ts +2 -1
  186. package/lib/paths/Analytics/Phone/Performance/V1/Accounts/Calls/Timeline/index.js +2 -1
  187. package/lib/paths/Analytics/Phone/Performance/V1/Accounts/Calls/Timeline/index.js.map +1 -1
  188. package/package.json +4 -4
  189. package/paths/Analytics/Phone/Performance/V1/Accounts/Calls/Aggregate/index.ts +2 -1
  190. package/paths/Analytics/Phone/Performance/V1/Accounts/Calls/Timeline/index.ts +2 -1
  191. package/samples.md +6 -6
  192. package/definitions/PerformanceCallsCounter.ts +0 -13
  193. package/definitions/PerformanceCallsGrouping.ts +0 -63
  194. package/definitions/PerformanceCallsKeyInfo.ts +0 -10
  195. package/definitions/PerformanceCallsTimer.ts +0 -13
  196. package/lib/definitions/CallPerformanceActionInfo.js +0 -6
  197. package/lib/definitions/CallPerformanceActionInfo.js.map +0 -1
  198. package/lib/definitions/PerformanceCallsAdditionalFilters.d.ts +0 -61
  199. package/lib/definitions/PerformanceCallsAdditionalFilters.js +0 -9
  200. package/lib/definitions/PerformanceCallsAdditionalFilters.js.map +0 -1
  201. package/lib/definitions/PerformanceCallsCounter.d.ts +0 -12
  202. package/lib/definitions/PerformanceCallsCounter.js +0 -6
  203. package/lib/definitions/PerformanceCallsCounter.js.map +0 -1
  204. package/lib/definitions/PerformanceCallsGrouping.d.ts +0 -50
  205. package/lib/definitions/PerformanceCallsGrouping.js +0 -44
  206. package/lib/definitions/PerformanceCallsGrouping.js.map +0 -1
  207. package/lib/definitions/PerformanceCallsKeyInfo.d.ts +0 -10
  208. package/lib/definitions/PerformanceCallsKeyInfo.js +0 -9
  209. package/lib/definitions/PerformanceCallsKeyInfo.js.map +0 -1
  210. package/lib/definitions/PerformanceCallsPaging.js +0 -6
  211. package/lib/definitions/PerformanceCallsPaging.js.map +0 -1
  212. package/lib/definitions/PerformanceCallsTimer.d.ts +0 -12
  213. package/lib/definitions/PerformanceCallsTimer.js +0 -6
  214. package/lib/definitions/PerformanceCallsTimer.js.map +0 -1
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This field specifies the dimensions by which the response should be grouped and specific IDs to narrow the response. If this field is **undefined or null**, the response will contain one record with data aggregated by the whole company
3
+ */
4
+ class AggregatePerformanceCallsGrouping {
5
+ /**
6
+ * This field describes the dimensions by which the response should be grouped. See also *The [Developer Guide](https://developers.ringcentral.com/guide/analytics/call-performance)*
7
+ * Required
8
+ */
9
+ groupBy?:
10
+ | 'CompanyNumbers'
11
+ | 'Users'
12
+ | 'Queues'
13
+ | 'IVRs'
14
+ | 'SharedLines'
15
+ | 'UserGroups'
16
+ | 'Sites'
17
+ | 'Departments'
18
+ | 'DepartmentMembers'
19
+ | 'UserGroupMembers'
20
+ | 'QueueAgents'
21
+ | 'SiteMembers';
22
+
23
+ /**
24
+ * This field can be used to specify unique identifiers of groups in GroupBy types
25
+ */
26
+ ids?: string[];
27
+ }
28
+ export default AggregatePerformanceCallsGrouping;
@@ -3,7 +3,8 @@
3
3
  */
4
4
  class AggregatePerformanceReportCallsParameters {
5
5
  /**
6
- * Page number
6
+ * The current page number
7
+ * Minimum: 1
7
8
  */
8
9
  page?: number;
9
10
 
@@ -1,4 +1,4 @@
1
- class CallPerformanceActionInfo {
1
+ class CallActionFilter {
2
2
  /**
3
3
  */
4
4
  callAction?:
@@ -10,4 +10,4 @@ class CallPerformanceActionInfo {
10
10
  | 'WarmTransfer'
11
11
  | 'DTMFTransfer';
12
12
  }
13
- export default CallPerformanceActionInfo;
13
+ export default CallActionFilter;
@@ -1,11 +1,7 @@
1
1
  import {PerformanceCallsCallSegmentLengthFilter} from './index';
2
2
 
3
- /**
4
- * Filtering calls by segment
5
- */
6
3
  class CallSegmentFilter {
7
4
  /**
8
- * Required
9
5
  */
10
6
  callSegment?:
11
7
  | 'Ringing'
@@ -1,13 +1,13 @@
1
1
  class CallsByDirection {
2
2
  /**
3
3
  * Required
4
- * Format: int64
4
+ * Format: double
5
5
  */
6
6
  inbound?: number;
7
7
 
8
8
  /**
9
9
  * Required
10
- * Format: int64
10
+ * Format: double
11
11
  */
12
12
  outbound?: number;
13
13
  }
@@ -1,13 +1,13 @@
1
1
  class CallsByOrigin {
2
2
  /**
3
3
  * Required
4
- * Format: int64
4
+ * Format: double
5
5
  */
6
6
  internal?: number;
7
7
 
8
8
  /**
9
9
  * Required
10
- * Format: int64
10
+ * Format: double
11
11
  */
12
12
  external?: number;
13
13
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Additional info about the key
3
+ */
4
+ class KeyInfo {
5
+ /**
6
+ */
7
+ extensionNumber?: string;
8
+ }
9
+ export default KeyInfo;
@@ -5,8 +5,7 @@ import {PerformanceCallsTimeInterval} from './index';
5
5
  */
6
6
  class PerformanceCallsAdvancedTimeSettings {
7
7
  /**
8
- * IANA-compatible time zone name, see [Time Zones](https://www.iana.org/time-zones)
9
- * Required
8
+ * IANA-compatible time zone name, for example 'America/Los_Angeles', 'Europe/Moscow'. See also *[Time Zones](https://www.iana.org/time-zones)*
10
9
  */
11
10
  timeZone?: string;
12
11
 
@@ -1,14 +1,15 @@
1
1
  import {
2
- PerformanceCallsGrouping,
2
+ AggregatePerformanceCallsGrouping,
3
3
  PerformanceCallsTimeSettings,
4
- PerformanceCallsAdditionalFilters,
4
+ PerformanceCallsFilters,
5
5
  PerformanceCallsResponseDataOptions,
6
6
  } from './index';
7
7
 
8
8
  class PerformanceCallsAggregatesRequest {
9
9
  /**
10
+ * Required
10
11
  */
11
- grouping?: PerformanceCallsGrouping;
12
+ grouping?: AggregatePerformanceCallsGrouping;
12
13
 
13
14
  /**
14
15
  * Required
@@ -17,7 +18,7 @@ class PerformanceCallsAggregatesRequest {
17
18
 
18
19
  /**
19
20
  */
20
- additionalFilters?: PerformanceCallsAdditionalFilters;
21
+ additionalFilters?: PerformanceCallsFilters;
21
22
 
22
23
  /**
23
24
  * Required
@@ -1,13 +1,14 @@
1
- import {PerformanceCallsData, PerformanceCallsPaging} from './index';
1
+ import {ResponsePaging, PerformanceCallsData} from './index';
2
2
 
3
3
  class PerformanceCallsAggregatesResponse {
4
4
  /**
5
5
  * Required
6
6
  */
7
- data?: PerformanceCallsData[];
7
+ paging?: ResponsePaging;
8
8
 
9
9
  /**
10
+ * A list of call aggregations as per the grouping and filtering options specified in the request
10
11
  */
11
- paging?: PerformanceCallsPaging;
12
+ data?: PerformanceCallsData[];
12
13
  }
13
14
  export default PerformanceCallsAggregatesResponse;
@@ -12,7 +12,7 @@ import {
12
12
  } from './index';
13
13
 
14
14
  /**
15
- * Call volume data for the specified grouping.
15
+ * Call volume data for the specified grouping
16
16
  */
17
17
  class PerformanceCallsCounters {
18
18
  /**
@@ -1,47 +1,59 @@
1
- import {PerformanceCallsCounter} from './index';
1
+ import {
2
+ PerformanceCallsCountersResponseOptionsAllCalls,
3
+ PerformanceCallsCountersResponseOptionsCallsByDirection,
4
+ PerformanceCallsCountersResponseOptionsCallsByOrigin,
5
+ PerformanceCallsCountersResponseOptionsCallsByResponse,
6
+ PerformanceCallsCountersResponseOptionsCallsSegments,
7
+ PerformanceCallsCountersResponseOptionsCallsByResult,
8
+ PerformanceCallsCountersResponseOptionsCallsByCompanyHours,
9
+ PerformanceCallsCountersResponseOptionsCallsByQueueSla,
10
+ PerformanceCallsCountersResponseOptionsCallsByActions,
11
+ PerformanceCallsCountersResponseOptionsCallsByType,
12
+ } from './index';
2
13
 
3
14
  /**
4
- * Performance calls counters
15
+ * The formula is defined by `aggregationType` and `aggregationInterval` for every counter individually. If `aggregationType` is `Sum` or `Percent`, `aggregationInterval` is not supported. If `aggregationType` is `Min`, `Max` or `Average`,`aggregationInterval` is required
5
16
  */
6
17
  class PerformanceCallsCountersResponseOptions {
7
18
  /**
8
19
  */
9
- allCalls?: PerformanceCallsCounter;
20
+ allCalls?: PerformanceCallsCountersResponseOptionsAllCalls;
10
21
 
11
22
  /**
12
23
  */
13
- callsByDirection?: PerformanceCallsCounter;
24
+ callsByDirection?: PerformanceCallsCountersResponseOptionsCallsByDirection;
14
25
 
15
26
  /**
16
27
  */
17
- callsByOrigin?: PerformanceCallsCounter;
28
+ callsByOrigin?: PerformanceCallsCountersResponseOptionsCallsByOrigin;
18
29
 
19
30
  /**
20
31
  */
21
- callsByResponse?: PerformanceCallsCounter;
32
+ callsByResponse?: PerformanceCallsCountersResponseOptionsCallsByResponse;
22
33
 
23
34
  /**
24
35
  */
25
- callsByType?: PerformanceCallsCounter;
36
+ callsSegments?: PerformanceCallsCountersResponseOptionsCallsSegments;
26
37
 
27
38
  /**
28
39
  */
29
- callsBySegments?: PerformanceCallsCounter;
40
+ callsByResult?: PerformanceCallsCountersResponseOptionsCallsByResult;
30
41
 
31
42
  /**
32
43
  */
33
- callsByResult?: PerformanceCallsCounter;
44
+ callsByCompanyHours?: PerformanceCallsCountersResponseOptionsCallsByCompanyHours;
34
45
 
35
46
  /**
47
+ * This counter is only applicable to Queues grouping
36
48
  */
37
- callsByActions?: PerformanceCallsCounter;
49
+ callsByQueueSla?: PerformanceCallsCountersResponseOptionsCallsByQueueSla;
38
50
 
39
51
  /**
40
52
  */
41
- callsByCompanyHours?: PerformanceCallsCounter;
53
+ callsByActions?: PerformanceCallsCountersResponseOptionsCallsByActions;
42
54
 
43
55
  /**
44
56
  */
45
- callsByQueueSla?: PerformanceCallsCounter;
57
+ callsByType?: PerformanceCallsCountersResponseOptionsCallsByType;
46
58
  }
47
59
  export default PerformanceCallsCountersResponseOptions;
@@ -0,0 +1,10 @@
1
+ class PerformanceCallsCountersResponseOptionsAllCalls {
2
+ /**
3
+ */
4
+ aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent';
5
+
6
+ /**
7
+ */
8
+ aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month';
9
+ }
10
+ export default PerformanceCallsCountersResponseOptionsAllCalls;
@@ -0,0 +1,10 @@
1
+ class PerformanceCallsCountersResponseOptionsCallsByActions {
2
+ /**
3
+ */
4
+ aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent';
5
+
6
+ /**
7
+ */
8
+ aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month';
9
+ }
10
+ export default PerformanceCallsCountersResponseOptionsCallsByActions;
@@ -0,0 +1,10 @@
1
+ class PerformanceCallsCountersResponseOptionsCallsByCompanyHours {
2
+ /**
3
+ */
4
+ aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent';
5
+
6
+ /**
7
+ */
8
+ aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month';
9
+ }
10
+ export default PerformanceCallsCountersResponseOptionsCallsByCompanyHours;
@@ -0,0 +1,10 @@
1
+ class PerformanceCallsCountersResponseOptionsCallsByDirection {
2
+ /**
3
+ */
4
+ aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent';
5
+
6
+ /**
7
+ */
8
+ aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month';
9
+ }
10
+ export default PerformanceCallsCountersResponseOptionsCallsByDirection;
@@ -0,0 +1,10 @@
1
+ class PerformanceCallsCountersResponseOptionsCallsByOrigin {
2
+ /**
3
+ */
4
+ aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent';
5
+
6
+ /**
7
+ */
8
+ aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month';
9
+ }
10
+ export default PerformanceCallsCountersResponseOptionsCallsByOrigin;
@@ -0,0 +1,10 @@
1
+ class PerformanceCallsCountersResponseOptionsCallsByQueueSla {
2
+ /**
3
+ */
4
+ aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent';
5
+
6
+ /**
7
+ */
8
+ aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month';
9
+ }
10
+ export default PerformanceCallsCountersResponseOptionsCallsByQueueSla;
@@ -0,0 +1,10 @@
1
+ class PerformanceCallsCountersResponseOptionsCallsByResponse {
2
+ /**
3
+ */
4
+ aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent';
5
+
6
+ /**
7
+ */
8
+ aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month';
9
+ }
10
+ export default PerformanceCallsCountersResponseOptionsCallsByResponse;
@@ -0,0 +1,10 @@
1
+ class PerformanceCallsCountersResponseOptionsCallsByResult {
2
+ /**
3
+ */
4
+ aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent';
5
+
6
+ /**
7
+ */
8
+ aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month';
9
+ }
10
+ export default PerformanceCallsCountersResponseOptionsCallsByResult;
@@ -0,0 +1,10 @@
1
+ class PerformanceCallsCountersResponseOptionsCallsByType {
2
+ /**
3
+ */
4
+ aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent';
5
+
6
+ /**
7
+ */
8
+ aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month';
9
+ }
10
+ export default PerformanceCallsCountersResponseOptionsCallsByType;
@@ -0,0 +1,10 @@
1
+ class PerformanceCallsCountersResponseOptionsCallsSegments {
2
+ /**
3
+ */
4
+ aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent';
5
+
6
+ /**
7
+ */
8
+ aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month';
9
+ }
10
+ export default PerformanceCallsCountersResponseOptionsCallsSegments;
@@ -1,22 +1,19 @@
1
1
  import {
2
- PerformanceCallsKeyInfo,
2
+ KeyInfo,
3
3
  PerformanceCallsTimers,
4
4
  PerformanceCallsCounters,
5
5
  } from './index';
6
6
 
7
- /**
8
- * A list of call aggregations as per the grouping and filtering options specified in the request.
9
- */
10
7
  class PerformanceCallsData {
11
8
  /**
12
- * Grouping key
9
+ * Grouping key.
13
10
  * Required
14
11
  */
15
12
  key?: string;
16
13
 
17
14
  /**
18
15
  */
19
- keyInfo?: PerformanceCallsKeyInfo;
16
+ keyInfo?: KeyInfo;
20
17
 
21
18
  /**
22
19
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Conditional aggregation of calls based on the time spent on a call by the specified mailbox(es)
2
+ * Conditional aggregation of calls based on the time spent by specified mailbox(es) on call
3
3
  */
4
4
  class PerformanceCallsFilterTimeSpentByMailbox {
5
5
  /**
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  CallSegmentFilter,
3
- CallPerformanceActionInfo,
3
+ CallActionFilter,
4
4
  PerformanceCallsFilterByLength,
5
5
  PerformanceCallsFilterTimeSpentByMailbox,
6
6
  } from './index';
7
7
 
8
8
  /**
9
- * Optional filters that limit the scope of calls to be aggregated. Multiple values can be joined via 'AND'
9
+ * Optional filters that limit the scope of calls to be aggregated (joined via AND)
10
10
  */
11
- class PerformanceCallsAdditionalFilters {
11
+ class PerformanceCallsFilters {
12
12
  /**
13
13
  * Specifies whether the call was inbound or outbound relative to the scope specified in grouping object. Not applicable to internal calls with company scope (when grouping is not specified)
14
14
  */
@@ -20,45 +20,34 @@ class PerformanceCallsAdditionalFilters {
20
20
  origin?: 'Internal' | 'External';
21
21
 
22
22
  /**
23
- * Aggregation of calls by the first response
23
+ * Aggregation of calls by first response
24
24
  */
25
25
  callResponse?: 'Answered' | 'NotAnswered' | 'Connected' | 'NotConnected';
26
26
 
27
27
  /**
28
- * List of call response types. This filter allows to get aggregation of calls based on how the call started from the callee perspective. Multiple values can be joined via 'OR'. If the call is outbound relative to the grouping scope, `callType` is Outbound
29
- */
30
- callType?: (
31
- | 'Direct'
32
- | 'Outbound'
33
- | 'ParkRetrieval'
34
- | 'FromQueue'
35
- | 'Transferred'
36
- )[];
37
-
38
- /**
39
- * Aggregation of calls by the nature of call result. Multiple values can be joined via 'OR'
28
+ * Aggregation of calls by the nature of call result (joined via OR)
40
29
  */
41
30
  callResult?: (
42
31
  | 'Completed'
43
32
  | 'Abandoned'
44
- | 'VoiceMail'
33
+ | 'Voicemail'
45
34
  | 'Unknown'
46
35
  | 'Missed'
47
36
  | 'Accepted'
48
37
  )[];
49
38
 
50
39
  /**
51
- * Aggregation of calls by presence of specific segment. Multiple values can be joined via 'OR'
40
+ * Aggregation of calls by presence of specific segment (joined via OR)
52
41
  */
53
42
  callSegments?: CallSegmentFilter[];
54
43
 
55
44
  /**
56
45
  * Aggregation of calls by presence of specific action (joined via OR)
57
46
  */
58
- callActions?: CallPerformanceActionInfo[];
47
+ callActions?: CallActionFilter[];
59
48
 
60
49
  /**
61
- * Aggregation of calls by company business hours or after hours.
50
+ * Aggregation of calls by company's business hours or after hours
62
51
  */
63
52
  companyHours?: 'BusinessHours' | 'AfterHours';
64
53
 
@@ -71,17 +60,17 @@ class PerformanceCallsAdditionalFilters {
71
60
  timeSpent?: PerformanceCallsFilterTimeSpentByMailbox;
72
61
 
73
62
  /**
74
- * List of extension identifiers from which the users specified in 'groupBy' received calls. Multiple values can be joined via 'OR'
63
+ * List of extension Ids from which users specified in groupBy received calls, items are joined via OR condition
75
64
  */
76
65
  callerExtensionIds?: string[];
77
66
 
78
67
  /**
79
- * List of extension identifiers to which the users specified in 'groupBy' placed calls. Multiple values can be joined via 'OR'
68
+ * List of extension Ids to which users specified in groupBy placed calls, items are joined via OR condition
80
69
  */
81
70
  calledExtensionIds?: string[];
82
71
 
83
72
  /**
84
- * Direct numbers the caller dialed. Multiple values can be joined via 'OR'
73
+ * The direct company numbers the caller called (joined via OR)
85
74
  */
86
75
  calledNumbers?: string[];
87
76
 
@@ -89,5 +78,16 @@ class PerformanceCallsAdditionalFilters {
89
78
  * This filter allows to get aggregation of calls that were either within or out of queue SLA. Only applicable to Queues grouping
90
79
  */
91
80
  queueSla?: 'InSla' | 'OutSla';
81
+
82
+ /**
83
+ * This filter allows to get aggregation of calls based on how the call started from the callee perspective (joined via OR). If the call is outbound relative to the grouping scope, callType is Outbound
84
+ */
85
+ callType?: (
86
+ | 'Direct'
87
+ | 'FromQueue'
88
+ | 'ParkRetrieval'
89
+ | 'Transferred'
90
+ | 'Outbound'
91
+ )[];
92
92
  }
93
- export default PerformanceCallsAdditionalFilters;
93
+ export default PerformanceCallsFilters;
@@ -4,7 +4,7 @@ import {
4
4
  } from './index';
5
5
 
6
6
  /**
7
- * Provides mapping of possible breakdown options for call aggregation and aggregation formula
7
+ * Provides mapping of possible breakdown options for call aggregation time intervals
8
8
  */
9
9
  class PerformanceCallsResponseDataOptions {
10
10
  /**
@@ -1,13 +1,11 @@
1
1
  class PerformanceCallsTimeInterval {
2
2
  /**
3
- * Starting time in the fromat hh:mm
4
- * Required
3
+ * Time in format hh:mm
5
4
  */
6
5
  from?: string;
7
6
 
8
7
  /**
9
- * Ending time in the format hh:mm
10
- * Required
8
+ * Time in format hh:mm
11
9
  */
12
10
  to?: string;
13
11
  }
@@ -1,16 +1,13 @@
1
- /**
2
- * Date-time range for the calls aggregated. A call is considered to be in the time range if it started within the time frame specified. Both borders are inclusive.
3
- */
4
1
  class PerformanceCallsTimeRange {
5
2
  /**
6
- * The start date-time for resulting records in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format including timezone, for example 2016-03-15T18:07:52.534Z.
3
+ * The start date-time for resulting records in RFC 3339 format including timezone, for example 2016-03-15T18:07:52.534Z
7
4
  * Required
8
5
  * Format: date-time
9
6
  */
10
7
  timeFrom?: string;
11
8
 
12
9
  /**
13
- * The end date-time for resulting records in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format including timezone, for example 2016-03-15T18:07:52.534Z.
10
+ * The end date-time for resulting records in RFC 3339 format including timezone, for example 2016-03-15T18:07:52.534Z
14
11
  * Required
15
12
  * Format: date-time
16
13
  */
@@ -4,7 +4,7 @@ import {
4
4
  } from './index';
5
5
 
6
6
  /**
7
- * Date-time range for which the calls are aggregated. The call is considered to be within time range if it started within time range. Both borders are inclusive.
7
+ * Date-time range for which the calls are aggregated. The call is considered to be within time range if it started within time range. Both borders are inclusive
8
8
  */
9
9
  class PerformanceCallsTimeSettings {
10
10
  /**
@@ -1,27 +1,28 @@
1
1
  import {
2
- PerformanceCallsGrouping,
3
- PerformanceCallsTimeRange,
4
- PerformanceCallsAdditionalFilters,
5
- PerformanceCallsResponseDataOptions,
2
+ TimelinePerformanceCallsGrouping,
3
+ PerformanceCallsTimeSettings,
4
+ PerformanceCallsFilters,
5
+ TimelineResponseDataOptions,
6
6
  } from './index';
7
7
 
8
8
  class PerformanceCallsTimelineRequest {
9
9
  /**
10
+ * Required
10
11
  */
11
- grouping?: PerformanceCallsGrouping;
12
+ grouping?: TimelinePerformanceCallsGrouping;
12
13
 
13
14
  /**
14
15
  * Required
15
16
  */
16
- timeRange?: PerformanceCallsTimeRange;
17
+ timeSettings?: PerformanceCallsTimeSettings;
17
18
 
18
19
  /**
19
20
  */
20
- additionalFilters?: PerformanceCallsAdditionalFilters;
21
+ additionalFilters?: PerformanceCallsFilters;
21
22
 
22
23
  /**
23
24
  * Required
24
25
  */
25
- responseOptions?: PerformanceCallsResponseDataOptions;
26
+ responseOptions?: TimelineResponseDataOptions;
26
27
  }
27
28
  export default PerformanceCallsTimelineRequest;
@@ -11,7 +11,7 @@ import {
11
11
  } from './index';
12
12
 
13
13
  /**
14
- * Call length data for the specified grouping.
14
+ * Call length data for the specified grouping
15
15
  */
16
16
  class PerformanceCallsTimers {
17
17
  /**