@rc-ex/core 0.9.1 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/SdkExtension.ts +5 -5
  2. package/definitions/AccountDeviceUpdate.ts +5 -0
  3. package/definitions/AggregateA2PSMSStatusesParameters.ts +5 -0
  4. package/definitions/CreateAnsweringRuleRequest.ts +5 -0
  5. package/definitions/CreateUserEmergencyLocationRequest.ts +13 -0
  6. package/definitions/DeleteExtensionEmergencyLocationParameters.ts +8 -0
  7. package/definitions/EmailRecipientInfo.ts +1 -1
  8. package/definitions/EmergencyLocationInfo.ts +2 -2
  9. package/definitions/EmergencyLocationInfoRequest.ts +2 -11
  10. package/definitions/EmergencyLocationsResource.ts +12 -0
  11. package/definitions/EmergencyServiceAddressResource.ts +5 -0
  12. package/definitions/ExtensionDeviceResponse.ts +1 -1
  13. package/definitions/GetDeviceInfoResponse.ts +2 -1
  14. package/definitions/GetExtensionEmergencyLocationsParameters.ts +38 -0
  15. package/definitions/GrantInfo.ts +5 -0
  16. package/definitions/ListExtensionGrantsParameters.ts +2 -1
  17. package/definitions/MessageStatusCounts.ts +7 -0
  18. package/definitions/MissedCallExtensionInfo.ts +2 -2
  19. package/definitions/NotificationSettingsUpdateRequest.ts +3 -2
  20. package/definitions/SearchDirectoryEntriesRequest.ts +2 -1
  21. package/definitions/SipRegistrationDeviceInfo.ts +7 -1
  22. package/definitions/UpdateAnsweringRuleRequest.ts +5 -0
  23. package/definitions/index.ts +4 -1
  24. package/lib/SdkExtension.d.ts +3 -3
  25. package/lib/SdkExtension.js +5 -5
  26. package/lib/SdkExtension.js.map +1 -1
  27. package/lib/code-generator.js +1 -1
  28. package/lib/code-generator.js.map +1 -1
  29. package/lib/definitions/AccountDeviceUpdate.d.ts +4 -0
  30. package/lib/definitions/AccountDeviceUpdate.js.map +1 -1
  31. package/lib/definitions/AggregateA2PSMSStatusesParameters.d.ts +4 -0
  32. package/lib/definitions/AggregateA2PSMSStatusesParameters.js.map +1 -1
  33. package/lib/definitions/CreateAnsweringRuleRequest.d.ts +4 -1
  34. package/lib/definitions/CreateAnsweringRuleRequest.js.map +1 -1
  35. package/lib/definitions/CreateUserEmergencyLocationRequest.d.ts +11 -0
  36. package/lib/definitions/CreateUserEmergencyLocationRequest.js +6 -0
  37. package/lib/definitions/CreateUserEmergencyLocationRequest.js.map +1 -0
  38. package/lib/definitions/DeleteExtensionEmergencyLocationParameters.d.ts +7 -0
  39. package/lib/definitions/DeleteExtensionEmergencyLocationParameters.js +7 -0
  40. package/lib/definitions/DeleteExtensionEmergencyLocationParameters.js.map +1 -0
  41. package/lib/definitions/EmailRecipientInfo.d.ts +1 -1
  42. package/lib/definitions/EmergencyLocationInfo.d.ts +2 -2
  43. package/lib/definitions/EmergencyLocationInfoRequest.d.ts +2 -6
  44. package/lib/definitions/EmergencyLocationInfoRequest.js.map +1 -1
  45. package/lib/definitions/EmergencyLocationsResource.d.ts +10 -0
  46. package/lib/definitions/EmergencyLocationsResource.js +6 -0
  47. package/lib/definitions/EmergencyLocationsResource.js.map +1 -0
  48. package/lib/definitions/EmergencyServiceAddressResource.d.ts +4 -0
  49. package/lib/definitions/EmergencyServiceAddressResource.js.map +1 -1
  50. package/lib/definitions/ExtensionDeviceResponse.d.ts +1 -1
  51. package/lib/definitions/GetDeviceInfoResponse.d.ts +1 -1
  52. package/lib/definitions/GetDeviceInfoResponse.js.map +1 -1
  53. package/lib/definitions/GetExtensionEmergencyLocationsParameters.d.ts +31 -0
  54. package/lib/definitions/GetExtensionEmergencyLocationsParameters.js +7 -0
  55. package/lib/definitions/GetExtensionEmergencyLocationsParameters.js.map +1 -0
  56. package/lib/definitions/GrantInfo.d.ts +4 -0
  57. package/lib/definitions/GrantInfo.js.map +1 -1
  58. package/lib/definitions/ListExtensionGrantsParameters.d.ts +1 -1
  59. package/lib/definitions/ListExtensionGrantsParameters.js.map +1 -1
  60. package/lib/definitions/MessageStatusCounts.d.ts +6 -0
  61. package/lib/definitions/MessageStatusCounts.js.map +1 -1
  62. package/lib/definitions/MissedCallExtensionInfo.d.ts +1 -1
  63. package/lib/definitions/MissedCallExtensionInfo.js +1 -1
  64. package/lib/definitions/MissedCallExtensionInfo.js.map +1 -1
  65. package/lib/definitions/NotificationSettingsUpdateRequest.d.ts +3 -2
  66. package/lib/definitions/NotificationSettingsUpdateRequest.js.map +1 -1
  67. package/lib/definitions/SearchDirectoryEntriesRequest.d.ts +1 -1
  68. package/lib/definitions/SearchDirectoryEntriesRequest.js.map +1 -1
  69. package/lib/definitions/SipRegistrationDeviceInfo.d.ts +1 -1
  70. package/lib/definitions/SipRegistrationDeviceInfo.js.map +1 -1
  71. package/lib/definitions/UpdateAnsweringRuleRequest.d.ts +4 -1
  72. package/lib/definitions/UpdateAnsweringRuleRequest.js.map +1 -1
  73. package/lib/definitions/index.d.ts +4 -1
  74. package/lib/definitions/index.js +22 -16
  75. package/lib/definitions/index.js.map +1 -1
  76. package/lib/package.json +4 -4
  77. package/lib/paths/Restapi/Account/EmergencyLocations/index.d.ts +1 -1
  78. package/lib/paths/Restapi/Account/EmergencyLocations/index.js +1 -1
  79. package/lib/paths/Restapi/Account/Extension/CallQueues/index.d.ts +1 -1
  80. package/lib/paths/Restapi/Account/Extension/CallQueues/index.js +1 -1
  81. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.d.ts +32 -4
  82. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.js +50 -4
  83. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.js.map +1 -1
  84. package/lib/paths/Restapi/Account/Extension/index.d.ts +2 -2
  85. package/lib/paths/Restapi/Account/Extension/index.js +4 -4
  86. package/lib/paths/Restapi/Account/Extension/index.js.map +1 -1
  87. package/lib/paths/Restapi/Glip/Chats/Favorite/index.d.ts +2 -2
  88. package/lib/paths/Restapi/Glip/Chats/Favorite/index.js +2 -2
  89. package/lib/paths/Restapi/Glip/Chats/Notes/index.d.ts +4 -4
  90. package/lib/paths/Restapi/Glip/Chats/Notes/index.js +4 -4
  91. package/lib/paths/Restapi/Glip/Chats/Posts/index.d.ts +10 -10
  92. package/lib/paths/Restapi/Glip/Chats/Posts/index.js +10 -10
  93. package/lib/paths/Restapi/Glip/Chats/Read/index.d.ts +1 -1
  94. package/lib/paths/Restapi/Glip/Chats/Read/index.js +1 -1
  95. package/lib/paths/Restapi/Glip/Chats/Unfavorite/index.d.ts +2 -2
  96. package/lib/paths/Restapi/Glip/Chats/Unfavorite/index.js +2 -2
  97. package/lib/paths/Restapi/Glip/Chats/Unread/index.d.ts +1 -1
  98. package/lib/paths/Restapi/Glip/Chats/Unread/index.js +1 -1
  99. package/lib/paths/Restapi/Glip/Chats/index.d.ts +4 -4
  100. package/lib/paths/Restapi/Glip/Chats/index.js +4 -4
  101. package/lib/paths/Restapi/Glip/Companies/index.d.ts +2 -2
  102. package/lib/paths/Restapi/Glip/Companies/index.js +2 -2
  103. package/lib/paths/Restapi/Glip/Conversations/index.d.ts +6 -6
  104. package/lib/paths/Restapi/Glip/Conversations/index.js +6 -6
  105. package/lib/paths/Restapi/Glip/Events/index.d.ts +10 -10
  106. package/lib/paths/Restapi/Glip/Events/index.js +10 -10
  107. package/lib/paths/Restapi/Glip/Everyone/index.d.ts +4 -4
  108. package/lib/paths/Restapi/Glip/Everyone/index.js +4 -4
  109. package/lib/paths/Restapi/Glip/Favorites/index.d.ts +2 -2
  110. package/lib/paths/Restapi/Glip/Favorites/index.js +2 -2
  111. package/lib/paths/Restapi/Glip/Groups/Events/index.d.ts +4 -4
  112. package/lib/paths/Restapi/Glip/Groups/Events/index.js +4 -4
  113. package/lib/paths/Restapi/Glip/Groups/Webhooks/index.d.ts +4 -4
  114. package/lib/paths/Restapi/Glip/Groups/Webhooks/index.js +4 -4
  115. package/lib/paths/Restapi/Glip/Notes/Lock/index.d.ts +2 -2
  116. package/lib/paths/Restapi/Glip/Notes/Lock/index.js +2 -2
  117. package/lib/paths/Restapi/Glip/Notes/Publish/index.d.ts +2 -2
  118. package/lib/paths/Restapi/Glip/Notes/Publish/index.js +2 -2
  119. package/lib/paths/Restapi/Glip/Notes/Unlock/index.d.ts +2 -2
  120. package/lib/paths/Restapi/Glip/Notes/Unlock/index.js +2 -2
  121. package/lib/paths/Restapi/Glip/Notes/index.d.ts +6 -6
  122. package/lib/paths/Restapi/Glip/Notes/index.js +6 -6
  123. package/lib/paths/Restapi/Glip/Persons/index.d.ts +2 -2
  124. package/lib/paths/Restapi/Glip/Persons/index.js +2 -2
  125. package/lib/paths/Restapi/Glip/Preferences/index.d.ts +2 -2
  126. package/lib/paths/Restapi/Glip/Preferences/index.js +2 -2
  127. package/lib/paths/Restapi/Glip/Recent/Chats/index.d.ts +2 -2
  128. package/lib/paths/Restapi/Glip/Recent/Chats/index.js +2 -2
  129. package/lib/paths/Restapi/Glip/Teams/Add/index.d.ts +2 -2
  130. package/lib/paths/Restapi/Glip/Teams/Add/index.js +2 -2
  131. package/lib/paths/Restapi/Glip/Teams/Archive/index.d.ts +2 -2
  132. package/lib/paths/Restapi/Glip/Teams/Archive/index.js +2 -2
  133. package/lib/paths/Restapi/Glip/Teams/Join/index.d.ts +2 -2
  134. package/lib/paths/Restapi/Glip/Teams/Join/index.js +2 -2
  135. package/lib/paths/Restapi/Glip/Teams/Leave/index.d.ts +2 -2
  136. package/lib/paths/Restapi/Glip/Teams/Leave/index.js +2 -2
  137. package/lib/paths/Restapi/Glip/Teams/Remove/index.d.ts +2 -2
  138. package/lib/paths/Restapi/Glip/Teams/Remove/index.js +2 -2
  139. package/lib/paths/Restapi/Glip/Teams/Unarchive/index.d.ts +2 -2
  140. package/lib/paths/Restapi/Glip/Teams/Unarchive/index.js +2 -2
  141. package/lib/paths/Restapi/Glip/Teams/index.d.ts +10 -10
  142. package/lib/paths/Restapi/Glip/Teams/index.js +10 -10
  143. package/lib/paths/Restapi/Glip/Webhooks/Activate/index.d.ts +2 -2
  144. package/lib/paths/Restapi/Glip/Webhooks/Activate/index.js +2 -2
  145. package/lib/paths/Restapi/Glip/Webhooks/Suspend/index.d.ts +2 -2
  146. package/lib/paths/Restapi/Glip/Webhooks/Suspend/index.js +2 -2
  147. package/lib/paths/Restapi/Glip/Webhooks/index.d.ts +6 -6
  148. package/lib/paths/Restapi/Glip/Webhooks/index.js +6 -6
  149. package/package.json +4 -4
  150. package/paths/Restapi/Account/EmergencyLocations/index.ts +1 -1
  151. package/paths/Restapi/Account/Extension/CallQueues/index.ts +1 -1
  152. package/paths/Restapi/Account/Extension/EmergencyLocations/index.ts +85 -5
  153. package/paths/Restapi/Account/Extension/index.ts +5 -5
  154. package/paths/Restapi/Glip/Chats/Favorite/index.ts +2 -2
  155. package/paths/Restapi/Glip/Chats/Notes/index.ts +4 -4
  156. package/paths/Restapi/Glip/Chats/Posts/index.ts +10 -10
  157. package/paths/Restapi/Glip/Chats/Read/index.ts +1 -1
  158. package/paths/Restapi/Glip/Chats/Unfavorite/index.ts +2 -2
  159. package/paths/Restapi/Glip/Chats/Unread/index.ts +1 -1
  160. package/paths/Restapi/Glip/Chats/index.ts +4 -4
  161. package/paths/Restapi/Glip/Companies/index.ts +2 -2
  162. package/paths/Restapi/Glip/Conversations/index.ts +6 -6
  163. package/paths/Restapi/Glip/Events/index.ts +10 -10
  164. package/paths/Restapi/Glip/Everyone/index.ts +4 -4
  165. package/paths/Restapi/Glip/Favorites/index.ts +2 -2
  166. package/paths/Restapi/Glip/Groups/Events/index.ts +4 -4
  167. package/paths/Restapi/Glip/Groups/Webhooks/index.ts +4 -4
  168. package/paths/Restapi/Glip/Notes/Lock/index.ts +2 -2
  169. package/paths/Restapi/Glip/Notes/Publish/index.ts +2 -2
  170. package/paths/Restapi/Glip/Notes/Unlock/index.ts +2 -2
  171. package/paths/Restapi/Glip/Notes/index.ts +6 -6
  172. package/paths/Restapi/Glip/Persons/index.ts +2 -2
  173. package/paths/Restapi/Glip/Preferences/index.ts +2 -2
  174. package/paths/Restapi/Glip/Recent/Chats/index.ts +2 -2
  175. package/paths/Restapi/Glip/Teams/Add/index.ts +2 -2
  176. package/paths/Restapi/Glip/Teams/Archive/index.ts +2 -2
  177. package/paths/Restapi/Glip/Teams/Join/index.ts +2 -2
  178. package/paths/Restapi/Glip/Teams/Leave/index.ts +2 -2
  179. package/paths/Restapi/Glip/Teams/Remove/index.ts +2 -2
  180. package/paths/Restapi/Glip/Teams/Unarchive/index.ts +2 -2
  181. package/paths/Restapi/Glip/Teams/index.ts +10 -10
  182. package/paths/Restapi/Glip/Webhooks/Activate/index.ts +2 -2
  183. package/paths/Restapi/Glip/Webhooks/Suspend/index.ts +2 -2
  184. package/paths/Restapi/Glip/Webhooks/index.ts +6 -6
  185. package/samples.md +188 -109
  186. package/.env +0 -1
  187. package/definitions/UserEmergencyLocationList.ts +0 -6
  188. package/lib/definitions/UserEmergencyLocationList.d.ts +0 -6
  189. package/lib/definitions/UserEmergencyLocationList.js +0 -6
  190. package/lib/definitions/UserEmergencyLocationList.js.map +0 -1
package/SdkExtension.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import RingCentral from './index';
2
2
 
3
3
  abstract class SdkExtension {
4
- _enabled = true;
5
- get enabled() {
6
- return this._enabled;
4
+ enabled = true;
5
+ enable() {
6
+ this.enabled = true;
7
7
  }
8
- set enabled(value) {
9
- this._enabled = value;
8
+ disable() {
9
+ this.enabled = false;
10
10
  }
11
11
  abstract install(rc: RingCentral): Promise<void>;
12
12
  async revoke(): Promise<void> {}
@@ -26,5 +26,10 @@ class AccountDeviceUpdate {
26
26
  * Supported only for devices assigned to Limited extensions. If true, enables users to log in to this phone as a common phone.
27
27
  */
28
28
  useAsCommonPhone?: boolean;
29
+
30
+ /**
31
+ * Device label, maximum number of symbols is 64
32
+ */
33
+ name?: string;
29
34
  }
30
35
  export default AccountDeviceUpdate;
@@ -21,5 +21,10 @@ class AggregateA2PSMSStatusesParameters {
21
21
  * Direction of a message to filter the message list result. By default there is no filter applied - both Inbound and Outbound messages are returned
22
22
  */
23
23
  direction?: 'Inbound' | 'Outbound';
24
+
25
+ /**
26
+ * List of phone numbers (specified in 'to' or 'from' fields of a message) to filter the results. Maximum number of phone numbers allowed to be specified as filters is 15
27
+ */
28
+ phoneNumber?: string[];
24
29
  }
25
30
  export default AggregateA2PSMSStatusesParameters;
@@ -7,6 +7,7 @@ import {
7
7
  QueueInfo,
8
8
  TransferredExtensionInfo,
9
9
  VoicemailInfo,
10
+ MissedCallInfo,
10
11
  GreetingInfo,
11
12
  } from './index';
12
13
 
@@ -72,6 +73,10 @@ class CreateAnsweringRuleRequest {
72
73
  */
73
74
  voicemail?: VoicemailInfo;
74
75
 
76
+ /**
77
+ */
78
+ missedCall?: MissedCallInfo;
79
+
75
80
  /**
76
81
  * Greetings applied for an answering rule; only predefined greetings can be applied, see Dictionary Greeting List
77
82
  */
@@ -0,0 +1,13 @@
1
+ import {LocationUpdatesEmergencyAddressInfoRequest} from './index';
2
+
3
+ class CreateUserEmergencyLocationRequest {
4
+ /**
5
+ * Name of a new personal emergency response location
6
+ */
7
+ name?: string;
8
+
9
+ /**
10
+ */
11
+ address?: LocationUpdatesEmergencyAddressInfoRequest;
12
+ }
13
+ export default CreateUserEmergencyLocationRequest;
@@ -0,0 +1,8 @@
1
+ // Query parameters for operation deleteExtensionEmergencyLocation
2
+ class DeleteExtensionEmergencyLocationParameters {
3
+ /**
4
+ * Flag indicating that only validation of Emergency Response Locations to be deleted is required.
5
+ */
6
+ validateOnly?: boolean;
7
+ }
8
+ export default DeleteExtensionEmergencyLocationParameters;
@@ -27,6 +27,6 @@ class EmailRecipientInfo {
27
27
  /**
28
28
  * Call queue manager permission
29
29
  */
30
- permission?: 'FullAccess' | 'MembersOnly';
30
+ permission?: 'FullAccess' | 'Messages' | 'MemberManagement';
31
31
  }
32
32
  export default EmailRecipientInfo;
@@ -27,7 +27,7 @@ class EmergencyLocationInfo {
27
27
  /**
28
28
  * Emergency address status
29
29
  */
30
- addressStatus?: 'Valid' | 'Invalid';
30
+ addressStatus?: 'Valid' | 'Invalid' | 'Provisioning';
31
31
 
32
32
  /**
33
33
  * Status of emergency response location usage.
@@ -46,7 +46,7 @@ class EmergencyLocationInfo {
46
46
  | 'Failed';
47
47
 
48
48
  /**
49
- * Visibility of an emergency response location. If `Private` is set, then location is visible only for restricted number of users, specified in `owners` array
49
+ * Visibility of an emergency response location. If `Private` is set, then location is visible only for the restricted number of users, specified in `owners` array
50
50
  * Default: Public
51
51
  */
52
52
  visibility?: 'Private' | 'Public';
@@ -1,8 +1,4 @@
1
- import {
2
- EmergencyLocationAddressInfo,
3
- ShortSiteInfo,
4
- LocationOwnerInfo,
5
- } from './index';
1
+ import {EmergencyLocationAddressInfo, ShortSiteInfo} from './index';
6
2
 
7
3
  class EmergencyLocationInfoRequest {
8
4
  /**
@@ -37,11 +33,6 @@ class EmergencyLocationInfoRequest {
37
33
  * Visibility of an emergency response location. If `Private` is set, then location is visible only for restricted number of users, specified in `owners` array
38
34
  * Default: Public
39
35
  */
40
- visibility?: 'Private' | 'Public';
41
-
42
- /**
43
- * List of private location owners
44
- */
45
- owners?: LocationOwnerInfo[];
36
+ visibility?: 'Public';
46
37
  }
47
38
  export default EmergencyLocationInfoRequest;
@@ -0,0 +1,12 @@
1
+ import {EmergencyLocationInfo, ProvisioningPagingInfo} from './index';
2
+
3
+ class EmergencyLocationsResource {
4
+ /**
5
+ */
6
+ records?: EmergencyLocationInfo[];
7
+
8
+ /**
9
+ */
10
+ paging?: ProvisioningPagingInfo;
11
+ }
12
+ export default EmergencyLocationsResource;
@@ -101,6 +101,11 @@ class EmergencyServiceAddressResource {
101
101
  */
102
102
  additionalCustomerPhone?: string;
103
103
 
104
+ /**
105
+ * Status of digital line provisioning
106
+ */
107
+ lineProvisioningStatus?: 'Provisioning' | 'Valid' | 'Invalid';
108
+
104
109
  /**
105
110
  * Internal identifier of a tax
106
111
  */
@@ -28,7 +28,7 @@ class ExtensionDeviceResponse {
28
28
  * Device type
29
29
  * Default: HardPhone
30
30
  */
31
- type?: 'SoftPhone' | 'OtherPhone' | 'HardPhone' | 'Paging';
31
+ type?: 'Room' | 'SoftPhone' | 'OtherPhone' | 'HardPhone' | 'Paging';
32
32
 
33
33
  /**
34
34
  * Device name. Mandatory if ordering SoftPhone or OtherPhone. Optional for HardPhone. If not specified for HardPhone, then device model name is used as device name
@@ -35,7 +35,8 @@ class GetDeviceInfoResponse {
35
35
  | 'OtherPhone'
36
36
  | 'HardPhone'
37
37
  | 'WebPhone'
38
- | 'Paging';
38
+ | 'Paging'
39
+ | 'Room';
39
40
 
40
41
  /**
41
42
  * Device name. Mandatory if ordering SoftPhone or OtherPhone. Optional for HardPhone. If not specified for HardPhone, then device model name is used as device name
@@ -0,0 +1,38 @@
1
+ // Query parameters for operation getExtensionEmergencyLocations
2
+ class GetExtensionEmergencyLocationsParameters {
3
+ /**
4
+ * Internal identifier of a site. To filter Main Site (Company) main-site must be specified. Supported only If multi-site feature is enabled for the account
5
+ */
6
+ siteId?: string[];
7
+
8
+ /**
9
+ * Filters entries by the specified substring (search by chassis ID, switch name or address) The characters range is 0-64 (if empty the filter is ignored)
10
+ */
11
+ searchString?: string;
12
+
13
+ /**
14
+ */
15
+ domesticCountryId?: string;
16
+
17
+ /**
18
+ * Comma-separated list of fields to order results prefixed by '+' sign (ascending order) or '-' sign (descending order). The default sorting is by `name`
19
+ */
20
+ orderBy?: string;
21
+
22
+ /**
23
+ * Indicates the page size (number of items). The values supported: `Max` or numeric value. If not specified, 100 records are returned per one page
24
+ */
25
+ perPage?: number;
26
+
27
+ /**
28
+ * Indicates the page number to retrieve. Only positive number values are supported
29
+ * Default: 1
30
+ */
31
+ page?: number;
32
+
33
+ /**
34
+ * Specifies whether to return only private or only public (company) ERLs (Emergency Response Locations)
35
+ */
36
+ visibility?: 'Private' | 'Public';
37
+ }
38
+ export default GetExtensionEmergencyLocationsParameters;
@@ -44,5 +44,10 @@ class GrantInfo {
44
44
  * Specifies whether the current extension is assigned as a Members-Only manager in the call queue referenced in extension object
45
45
  */
46
46
  callQueueMembersSetup?: boolean;
47
+
48
+ /**
49
+ * Specifies whether the current extension is assigned as a Messages Manager in the queue referenced in extension object
50
+ */
51
+ callQueueMessages?: boolean;
47
52
  }
48
53
  export default GrantInfo;
@@ -17,7 +17,8 @@ class ListExtensionGrantsParameters {
17
17
  | 'ApplicationExtension'
18
18
  | 'ParkLocation'
19
19
  | 'Limited'
20
- | 'Bot';
20
+ | 'Bot'
21
+ | 'Room';
21
22
 
22
23
  /**
23
24
  * Default: 1
@@ -4,6 +4,13 @@ class MessageStatusCounts {
4
4
  */
5
5
  count?: number;
6
6
 
7
+ /**
8
+ * Cost of a message
9
+ * Format: double
10
+ * Example: 0.007
11
+ */
12
+ cost?: number;
13
+
7
14
  /**
8
15
  * Format: int64
9
16
  */
@@ -1,7 +1,7 @@
1
- // Specifies an extension (a calling group) which should be used for missed call transfer. Returned only if the `actionType` is set to 'ConnectToExtension'
1
+ // Specifies an extension (a calling group) which should be used for the missed call transfer. Returned only if the `actionType` is set to 'ConnectToExtension'
2
2
  class MissedCallExtensionInfo {
3
3
  /**
4
- * Internal identifier of an extension which should be used for missed call transfer
4
+ * Internal identifier of an extension which should be used for the missed call transfer
5
5
  */
6
6
  id?: string;
7
7
  }
@@ -8,7 +8,7 @@ import {
8
8
 
9
9
  class NotificationSettingsUpdateRequest {
10
10
  /**
11
- * List of notification recipient email addresses
11
+ * List of notification recipient email addresses. Should not be empty if 'includeManagers' parameter is set to false
12
12
  */
13
13
  emailAddresses?: string[];
14
14
 
@@ -43,7 +43,8 @@ class NotificationSettingsUpdateRequest {
43
43
  missedCalls?: MissedCallsInfo;
44
44
 
45
45
  /**
46
- * Specifies if managers' emails are included in the list of emails to which notifications are sent
46
+ * Specifies if managers' emails are included in the list of emails to which notifications are sent. If not specified, then the value is 'True'
47
+ * Default: true
47
48
  */
48
49
  includeManagers?: boolean;
49
50
  }
@@ -42,7 +42,8 @@ class SearchDirectoryEntriesRequest {
42
42
  | 'Bot'
43
43
  | 'ProxyAdmin'
44
44
  | 'DelegatedLinesGroup'
45
- | 'GroupCallPickup';
45
+ | 'GroupCallPickup'
46
+ | 'Room';
46
47
 
47
48
  /**
48
49
  * Sorting settings
@@ -22,7 +22,13 @@ class SipRegistrationDeviceInfo {
22
22
  /**
23
23
  * Device type
24
24
  */
25
- type?: 'HardPhone' | 'SoftPhone' | 'OtherPhone' | 'Paging' | 'WebPhone';
25
+ type?:
26
+ | 'HardPhone'
27
+ | 'SoftPhone'
28
+ | 'OtherPhone'
29
+ | 'Paging'
30
+ | 'WebPhone'
31
+ | 'Room';
26
32
 
27
33
  /**
28
34
  * Device identification number (stock keeping unit) in the format TP-ID [-AT-AC], where TP is device type (HP for RC HardPhone, DV for all other devices including softphone); ID - device model ID; AT -addon type ID; AC - addon count (if any). For example 'HP-56-2-2'
@@ -6,6 +6,7 @@ import {
6
6
  UnconditionalForwardingInfo,
7
7
  QueueInfo,
8
8
  VoicemailInfo,
9
+ MissedCallInfo,
9
10
  GreetingInfo,
10
11
  TransferredExtensionInfo,
11
12
  } from './index';
@@ -73,6 +74,10 @@ class UpdateAnsweringRuleRequest {
73
74
  */
74
75
  voicemail?: VoicemailInfo;
75
76
 
77
+ /**
78
+ */
79
+ missedCall?: MissedCallInfo;
80
+
76
81
  /**
77
82
  * Greetings applied for an answering rule; only predefined greetings can be applied, see Dictionary Greeting List
78
83
  */
@@ -232,6 +232,7 @@ export {default as CreateSipRegistrationResponse} from './CreateSipRegistrationR
232
232
  export {default as CreateSubscriptionRequest} from './CreateSubscriptionRequest';
233
233
  export {default as CreateSwitchInfo} from './CreateSwitchInfo';
234
234
  export {default as CreateUser} from './CreateUser';
235
+ export {default as CreateUserEmergencyLocationRequest} from './CreateUserEmergencyLocationRequest';
235
236
  export {default as CreateUserMeetingProfileImageRequest} from './CreateUserMeetingProfileImageRequest';
236
237
  export {default as CreateUserProfileImageRequest} from './CreateUserProfileImageRequest';
237
238
  export {default as CreateWirelessPoint} from './CreateWirelessPoint';
@@ -257,6 +258,7 @@ export {default as DataExportTaskList} from './DataExportTaskList';
257
258
  export {default as DefaultUserRoleRequest} from './DefaultUserRoleRequest';
258
259
  export {default as DeleteCustomRoleParameters} from './DeleteCustomRoleParameters';
259
260
  export {default as DeleteEmergencyLocationParameters} from './DeleteEmergencyLocationParameters';
261
+ export {default as DeleteExtensionEmergencyLocationParameters} from './DeleteExtensionEmergencyLocationParameters';
260
262
  export {default as DeleteExtensionParameters} from './DeleteExtensionParameters';
261
263
  export {default as DeleteMessageByFilterParameters} from './DeleteMessageByFilterParameters';
262
264
  export {default as DeleteMessageParameters} from './DeleteMessageParameters';
@@ -300,6 +302,7 @@ export {default as EmergencyLocationAddressInfo} from './EmergencyLocationAddres
300
302
  export {default as EmergencyLocationInfo} from './EmergencyLocationInfo';
301
303
  export {default as EmergencyLocationInfoRequest} from './EmergencyLocationInfoRequest';
302
304
  export {default as EmergencyLocationList} from './EmergencyLocationList';
305
+ export {default as EmergencyLocationsResource} from './EmergencyLocationsResource';
303
306
  export {default as EmergencyServiceAddressResource} from './EmergencyServiceAddressResource';
304
307
  export {default as EmergencyServiceAddressResourceRequest} from './EmergencyServiceAddressResourceRequest';
305
308
  export {default as EnterpriseUser} from './EnterpriseUser';
@@ -380,6 +383,7 @@ export {default as GetCountryListResponse} from './GetCountryListResponse';
380
383
  export {default as GetDeviceInfoResponse} from './GetDeviceInfoResponse';
381
384
  export {default as GetExtensionAccountInfo} from './GetExtensionAccountInfo';
382
385
  export {default as GetExtensionDevicesResponse} from './GetExtensionDevicesResponse';
386
+ export {default as GetExtensionEmergencyLocationsParameters} from './GetExtensionEmergencyLocationsParameters';
383
387
  export {default as GetExtensionForwardingNumberListResponse} from './GetExtensionForwardingNumberListResponse';
384
388
  export {default as GetExtensionGrantListResponse} from './GetExtensionGrantListResponse';
385
389
  export {default as GetExtensionInfoResponse} from './GetExtensionInfoResponse';
@@ -845,7 +849,6 @@ export {default as UserContactsNavigationInfo} from './UserContactsNavigationInf
845
849
  export {default as UserContactsNavigationInfoUri} from './UserContactsNavigationInfoUri';
846
850
  export {default as UserContactsPagingInfo} from './UserContactsPagingInfo';
847
851
  export {default as UserCustomFieldResource} from './UserCustomFieldResource';
848
- export {default as UserEmergencyLocationList} from './UserEmergencyLocationList';
849
852
  export {default as UserMeetingRecordingSetting} from './UserMeetingRecordingSetting';
850
853
  export {default as UserPatch} from './UserPatch';
851
854
  export {default as UserPhoneNumberExtensionInfo} from './UserPhoneNumberExtensionInfo';
@@ -1,8 +1,8 @@
1
1
  import RingCentral from './index';
2
2
  declare abstract class SdkExtension {
3
- _enabled: boolean;
4
- get enabled(): boolean;
5
- set enabled(value: boolean);
3
+ enabled: boolean;
4
+ enable(): void;
5
+ disable(): void;
6
6
  abstract install(rc: RingCentral): Promise<void>;
7
7
  revoke(): Promise<void>;
8
8
  }
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class SdkExtension {
4
4
  constructor() {
5
- this._enabled = true;
5
+ this.enabled = true;
6
6
  }
7
- get enabled() {
8
- return this._enabled;
7
+ enable() {
8
+ this.enabled = true;
9
9
  }
10
- set enabled(value) {
11
- this._enabled = value;
10
+ disable() {
11
+ this.enabled = false;
12
12
  }
13
13
  async revoke() { }
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SdkExtension.js","sourceRoot":"","sources":["../SdkExtension.ts"],"names":[],"mappings":";;AAEA,MAAe,YAAY;IAA3B;QACE,aAAQ,GAAG,IAAI,CAAC;IASlB,CAAC;IARC,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IACD,IAAI,OAAO,CAAC,KAAK;QACf,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,MAAM,KAAmB,CAAC;CACjC;AAED,kBAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"SdkExtension.js","sourceRoot":"","sources":["../SdkExtension.ts"],"names":[],"mappings":";;AAEA,MAAe,YAAY;IAA3B;QACE,YAAO,GAAG,IAAI,CAAC;IASjB,CAAC;IARC,MAAM;QACJ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,MAAM,KAAmB,CAAC;CACjC;AAED,kBAAe,YAAY,CAAC"}
@@ -5,5 +5,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  // eslint-disable-next-line node/no-unpublished-import
7
7
  const ringcentral_code_generator_1 = __importDefault(require("ringcentral-code-generator"));
8
- ringcentral_code_generator_1.default(process.env.SPEC_FILE_PATH, __dirname);
8
+ (0, ringcentral_code_generator_1.default)(process.env.SPEC_FILE_PATH, __dirname);
9
9
  //# sourceMappingURL=code-generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"code-generator.js","sourceRoot":"","sources":["../code-generator.ts"],"names":[],"mappings":";;;;;AAAA,sDAAsD;AACtD,4FAAkD;AAElD,oCAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAe,EAAE,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"code-generator.js","sourceRoot":"","sources":["../code-generator.ts"],"names":[],"mappings":";;;;;AAAA,sDAAsD;AACtD,4FAAkD;AAElD,IAAA,oCAAQ,EAAC,OAAO,CAAC,GAAG,CAAC,cAAe,EAAE,SAAS,CAAC,CAAC"}
@@ -16,5 +16,9 @@ declare class AccountDeviceUpdate {
16
16
  * Supported only for devices assigned to Limited extensions. If true, enables users to log in to this phone as a common phone.
17
17
  */
18
18
  useAsCommonPhone?: boolean;
19
+ /**
20
+ * Device label, maximum number of symbols is 64
21
+ */
22
+ name?: string;
19
23
  }
20
24
  export default AccountDeviceUpdate;
@@ -1 +1 @@
1
- {"version":3,"file":"AccountDeviceUpdate.js","sourceRoot":"","sources":["../../definitions/AccountDeviceUpdate.ts"],"names":[],"mappings":";;AAOA,MAAM,mBAAmB;CAqBxB;AACD,kBAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"AccountDeviceUpdate.js","sourceRoot":"","sources":["../../definitions/AccountDeviceUpdate.ts"],"names":[],"mappings":";;AAOA,MAAM,mBAAmB;CA0BxB;AACD,kBAAe,mBAAmB,CAAC"}
@@ -17,5 +17,9 @@ declare class AggregateA2PSMSStatusesParameters {
17
17
  * Direction of a message to filter the message list result. By default there is no filter applied - both Inbound and Outbound messages are returned
18
18
  */
19
19
  direction?: 'Inbound' | 'Outbound';
20
+ /**
21
+ * List of phone numbers (specified in 'to' or 'from' fields of a message) to filter the results. Maximum number of phone numbers allowed to be specified as filters is 15
22
+ */
23
+ phoneNumber?: string[];
20
24
  }
21
25
  export default AggregateA2PSMSStatusesParameters;
@@ -1 +1 @@
1
- {"version":3,"file":"AggregateA2PSMSStatusesParameters.js","sourceRoot":"","sources":["../../definitions/AggregateA2PSMSStatusesParameters.ts"],"names":[],"mappings":";;AAAA,yDAAyD;AACzD,MAAM,iCAAiC;CAsBtC;AACD,kBAAe,iCAAiC,CAAC"}
1
+ {"version":3,"file":"AggregateA2PSMSStatusesParameters.js","sourceRoot":"","sources":["../../definitions/AggregateA2PSMSStatusesParameters.ts"],"names":[],"mappings":";;AAAA,yDAAyD;AACzD,MAAM,iCAAiC;CA2BtC;AACD,kBAAe,iCAAiC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { CallersInfoRequest, CalledNumberInfo, ScheduleInfo, ForwardingInfo, UnconditionalForwardingInfo, QueueInfo, TransferredExtensionInfo, VoicemailInfo, GreetingInfo } from './index';
1
+ import { CallersInfoRequest, CalledNumberInfo, ScheduleInfo, ForwardingInfo, UnconditionalForwardingInfo, QueueInfo, TransferredExtensionInfo, VoicemailInfo, MissedCallInfo, GreetingInfo } from './index';
2
2
  declare class CreateAnsweringRuleRequest {
3
3
  /**
4
4
  * Specifies if the rule is active or inactive. The default value is 'True'
@@ -42,6 +42,9 @@ declare class CreateAnsweringRuleRequest {
42
42
  /**
43
43
  */
44
44
  voicemail?: VoicemailInfo;
45
+ /**
46
+ */
47
+ missedCall?: MissedCallInfo;
45
48
  /**
46
49
  * Greetings applied for an answering rule; only predefined greetings can be applied, see Dictionary Greeting List
47
50
  */
@@ -1 +1 @@
1
- {"version":3,"file":"CreateAnsweringRuleRequest.js","sourceRoot":"","sources":["../../definitions/CreateAnsweringRuleRequest.ts"],"names":[],"mappings":";;AAYA,MAAM,0BAA0B;CAuE/B;AACD,kBAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"CreateAnsweringRuleRequest.js","sourceRoot":"","sources":["../../definitions/CreateAnsweringRuleRequest.ts"],"names":[],"mappings":";;AAaA,MAAM,0BAA0B;CA2E/B;AACD,kBAAe,0BAA0B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { LocationUpdatesEmergencyAddressInfoRequest } from './index';
2
+ declare class CreateUserEmergencyLocationRequest {
3
+ /**
4
+ * Name of a new personal emergency response location
5
+ */
6
+ name?: string;
7
+ /**
8
+ */
9
+ address?: LocationUpdatesEmergencyAddressInfoRequest;
10
+ }
11
+ export default CreateUserEmergencyLocationRequest;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class CreateUserEmergencyLocationRequest {
4
+ }
5
+ exports.default = CreateUserEmergencyLocationRequest;
6
+ //# sourceMappingURL=CreateUserEmergencyLocationRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateUserEmergencyLocationRequest.js","sourceRoot":"","sources":["../../definitions/CreateUserEmergencyLocationRequest.ts"],"names":[],"mappings":";;AAEA,MAAM,kCAAkC;CASvC;AACD,kBAAe,kCAAkC,CAAC"}
@@ -0,0 +1,7 @@
1
+ declare class DeleteExtensionEmergencyLocationParameters {
2
+ /**
3
+ * Flag indicating that only validation of Emergency Response Locations to be deleted is required.
4
+ */
5
+ validateOnly?: boolean;
6
+ }
7
+ export default DeleteExtensionEmergencyLocationParameters;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // Query parameters for operation deleteExtensionEmergencyLocation
4
+ class DeleteExtensionEmergencyLocationParameters {
5
+ }
6
+ exports.default = DeleteExtensionEmergencyLocationParameters;
7
+ //# sourceMappingURL=DeleteExtensionEmergencyLocationParameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteExtensionEmergencyLocationParameters.js","sourceRoot":"","sources":["../../definitions/DeleteExtensionEmergencyLocationParameters.ts"],"names":[],"mappings":";;AAAA,kEAAkE;AAClE,MAAM,0CAA0C;CAK/C;AACD,kBAAe,0CAA0C,CAAC"}
@@ -22,6 +22,6 @@ declare class EmailRecipientInfo {
22
22
  /**
23
23
  * Call queue manager permission
24
24
  */
25
- permission?: 'FullAccess' | 'MembersOnly';
25
+ permission?: 'FullAccess' | 'Messages' | 'MemberManagement';
26
26
  }
27
27
  export default EmailRecipientInfo;
@@ -17,7 +17,7 @@ declare class EmergencyLocationInfo {
17
17
  /**
18
18
  * Emergency address status
19
19
  */
20
- addressStatus?: 'Valid' | 'Invalid';
20
+ addressStatus?: 'Valid' | 'Invalid' | 'Provisioning';
21
21
  /**
22
22
  * Status of emergency response location usage.
23
23
  */
@@ -27,7 +27,7 @@ declare class EmergencyLocationInfo {
27
27
  */
28
28
  syncStatus?: 'Verified' | 'Updated' | 'Deleted' | 'ActivationProcess' | 'Unsupported' | 'Failed';
29
29
  /**
30
- * Visibility of an emergency response location. If `Private` is set, then location is visible only for restricted number of users, specified in `owners` array
30
+ * Visibility of an emergency response location. If `Private` is set, then location is visible only for the restricted number of users, specified in `owners` array
31
31
  * Default: Public
32
32
  */
33
33
  visibility?: 'Private' | 'Public';
@@ -1,4 +1,4 @@
1
- import { EmergencyLocationAddressInfo, ShortSiteInfo, LocationOwnerInfo } from './index';
1
+ import { EmergencyLocationAddressInfo, ShortSiteInfo } from './index';
2
2
  declare class EmergencyLocationInfoRequest {
3
3
  /**
4
4
  * Internal identifier of the emergency response location
@@ -26,10 +26,6 @@ declare class EmergencyLocationInfoRequest {
26
26
  * Visibility of an emergency response location. If `Private` is set, then location is visible only for restricted number of users, specified in `owners` array
27
27
  * Default: Public
28
28
  */
29
- visibility?: 'Private' | 'Public';
30
- /**
31
- * List of private location owners
32
- */
33
- owners?: LocationOwnerInfo[];
29
+ visibility?: 'Public';
34
30
  }
35
31
  export default EmergencyLocationInfoRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"EmergencyLocationInfoRequest.js","sourceRoot":"","sources":["../../definitions/EmergencyLocationInfoRequest.ts"],"names":[],"mappings":";;AAMA,MAAM,4BAA4B;CAuCjC;AACD,kBAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"EmergencyLocationInfoRequest.js","sourceRoot":"","sources":["../../definitions/EmergencyLocationInfoRequest.ts"],"names":[],"mappings":";;AAEA,MAAM,4BAA4B;CAkCjC;AACD,kBAAe,4BAA4B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { EmergencyLocationInfo, ProvisioningPagingInfo } from './index';
2
+ declare class EmergencyLocationsResource {
3
+ /**
4
+ */
5
+ records?: EmergencyLocationInfo[];
6
+ /**
7
+ */
8
+ paging?: ProvisioningPagingInfo;
9
+ }
10
+ export default EmergencyLocationsResource;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class EmergencyLocationsResource {
4
+ }
5
+ exports.default = EmergencyLocationsResource;
6
+ //# sourceMappingURL=EmergencyLocationsResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmergencyLocationsResource.js","sourceRoot":"","sources":["../../definitions/EmergencyLocationsResource.ts"],"names":[],"mappings":";;AAEA,MAAM,0BAA0B;CAQ/B;AACD,kBAAe,0BAA0B,CAAC"}
@@ -74,6 +74,10 @@ declare class EmergencyServiceAddressResource {
74
74
  * Phone number of an additional contact person. Should be specified for countries except the US, Canada, the UK & Australia.
75
75
  */
76
76
  additionalCustomerPhone?: string;
77
+ /**
78
+ * Status of digital line provisioning
79
+ */
80
+ lineProvisioningStatus?: 'Provisioning' | 'Valid' | 'Invalid';
77
81
  /**
78
82
  * Internal identifier of a tax
79
83
  */
@@ -1 +1 @@
1
- {"version":3,"file":"EmergencyServiceAddressResource.js","sourceRoot":"","sources":["../../definitions/EmergencyServiceAddressResource.ts"],"names":[],"mappings":";;AAAA,uGAAuG;AACvG,MAAM,+BAA+B;CA0GpC;AACD,kBAAe,+BAA+B,CAAC"}
1
+ {"version":3,"file":"EmergencyServiceAddressResource.js","sourceRoot":"","sources":["../../definitions/EmergencyServiceAddressResource.ts"],"names":[],"mappings":";;AAAA,uGAAuG;AACvG,MAAM,+BAA+B;CA+GpC;AACD,kBAAe,+BAA+B,CAAC"}