@rc-ex/core 0.9.2 → 0.10.2

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 (182) 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/CreateUserEmergencyLocationRequest.ts +13 -0
  5. package/definitions/DeleteExtensionEmergencyLocationParameters.ts +8 -0
  6. package/definitions/DeviceEmergencyInfo.ts +6 -1
  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/NotificationSettingsUpdateRequest.ts +3 -2
  19. package/definitions/SearchDirectoryEntriesRequest.ts +2 -1
  20. package/definitions/SipRegistrationDeviceEmergencyInfo.ts +6 -1
  21. package/definitions/SipRegistrationDeviceInfo.ts +7 -1
  22. package/definitions/index.ts +4 -1
  23. package/lib/SdkExtension.d.ts +3 -3
  24. package/lib/SdkExtension.js +5 -5
  25. package/lib/SdkExtension.js.map +1 -1
  26. package/lib/code-generator.js +1 -1
  27. package/lib/code-generator.js.map +1 -1
  28. package/lib/definitions/AccountDeviceUpdate.d.ts +4 -0
  29. package/lib/definitions/AccountDeviceUpdate.js.map +1 -1
  30. package/lib/definitions/AggregateA2PSMSStatusesParameters.d.ts +4 -0
  31. package/lib/definitions/AggregateA2PSMSStatusesParameters.js.map +1 -1
  32. package/lib/definitions/CreateUserEmergencyLocationRequest.d.ts +11 -0
  33. package/lib/definitions/CreateUserEmergencyLocationRequest.js +6 -0
  34. package/lib/definitions/CreateUserEmergencyLocationRequest.js.map +1 -0
  35. package/lib/definitions/DeleteExtensionEmergencyLocationParameters.d.ts +7 -0
  36. package/lib/definitions/DeleteExtensionEmergencyLocationParameters.js +7 -0
  37. package/lib/definitions/DeleteExtensionEmergencyLocationParameters.js.map +1 -0
  38. package/lib/definitions/DeviceEmergencyInfo.d.ts +5 -1
  39. package/lib/definitions/DeviceEmergencyInfo.js.map +1 -1
  40. package/lib/definitions/EmailRecipientInfo.d.ts +1 -1
  41. package/lib/definitions/EmergencyLocationInfo.d.ts +2 -2
  42. package/lib/definitions/EmergencyLocationInfoRequest.d.ts +2 -6
  43. package/lib/definitions/EmergencyLocationInfoRequest.js.map +1 -1
  44. package/lib/definitions/EmergencyLocationsResource.d.ts +10 -0
  45. package/lib/definitions/EmergencyLocationsResource.js +6 -0
  46. package/lib/definitions/EmergencyLocationsResource.js.map +1 -0
  47. package/lib/definitions/EmergencyServiceAddressResource.d.ts +4 -0
  48. package/lib/definitions/EmergencyServiceAddressResource.js.map +1 -1
  49. package/lib/definitions/ExtensionDeviceResponse.d.ts +1 -1
  50. package/lib/definitions/GetDeviceInfoResponse.d.ts +1 -1
  51. package/lib/definitions/GetDeviceInfoResponse.js.map +1 -1
  52. package/lib/definitions/GetExtensionEmergencyLocationsParameters.d.ts +31 -0
  53. package/lib/definitions/GetExtensionEmergencyLocationsParameters.js +7 -0
  54. package/lib/definitions/GetExtensionEmergencyLocationsParameters.js.map +1 -0
  55. package/lib/definitions/GrantInfo.d.ts +4 -0
  56. package/lib/definitions/GrantInfo.js.map +1 -1
  57. package/lib/definitions/ListExtensionGrantsParameters.d.ts +1 -1
  58. package/lib/definitions/ListExtensionGrantsParameters.js.map +1 -1
  59. package/lib/definitions/MessageStatusCounts.d.ts +6 -0
  60. package/lib/definitions/MessageStatusCounts.js.map +1 -1
  61. package/lib/definitions/NotificationSettingsUpdateRequest.d.ts +3 -2
  62. package/lib/definitions/NotificationSettingsUpdateRequest.js.map +1 -1
  63. package/lib/definitions/SearchDirectoryEntriesRequest.d.ts +1 -1
  64. package/lib/definitions/SearchDirectoryEntriesRequest.js.map +1 -1
  65. package/lib/definitions/SipRegistrationDeviceEmergencyInfo.d.ts +5 -1
  66. package/lib/definitions/SipRegistrationDeviceEmergencyInfo.js.map +1 -1
  67. package/lib/definitions/SipRegistrationDeviceInfo.d.ts +1 -1
  68. package/lib/definitions/SipRegistrationDeviceInfo.js.map +1 -1
  69. package/lib/definitions/index.d.ts +4 -1
  70. package/lib/definitions/index.js +22 -16
  71. package/lib/definitions/index.js.map +1 -1
  72. package/lib/package.json +4 -4
  73. package/lib/paths/Restapi/Account/EmergencyLocations/index.d.ts +1 -1
  74. package/lib/paths/Restapi/Account/EmergencyLocations/index.js +1 -1
  75. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.d.ts +32 -4
  76. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.js +50 -4
  77. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.js.map +1 -1
  78. package/lib/paths/Restapi/Account/Extension/index.d.ts +2 -2
  79. package/lib/paths/Restapi/Account/Extension/index.js +4 -4
  80. package/lib/paths/Restapi/Account/Extension/index.js.map +1 -1
  81. package/lib/paths/Restapi/Glip/Chats/Favorite/index.d.ts +2 -2
  82. package/lib/paths/Restapi/Glip/Chats/Favorite/index.js +2 -2
  83. package/lib/paths/Restapi/Glip/Chats/Notes/index.d.ts +4 -4
  84. package/lib/paths/Restapi/Glip/Chats/Notes/index.js +4 -4
  85. package/lib/paths/Restapi/Glip/Chats/Posts/index.d.ts +10 -10
  86. package/lib/paths/Restapi/Glip/Chats/Posts/index.js +10 -10
  87. package/lib/paths/Restapi/Glip/Chats/Read/index.d.ts +1 -1
  88. package/lib/paths/Restapi/Glip/Chats/Read/index.js +1 -1
  89. package/lib/paths/Restapi/Glip/Chats/Unfavorite/index.d.ts +2 -2
  90. package/lib/paths/Restapi/Glip/Chats/Unfavorite/index.js +2 -2
  91. package/lib/paths/Restapi/Glip/Chats/Unread/index.d.ts +1 -1
  92. package/lib/paths/Restapi/Glip/Chats/Unread/index.js +1 -1
  93. package/lib/paths/Restapi/Glip/Chats/index.d.ts +4 -4
  94. package/lib/paths/Restapi/Glip/Chats/index.js +4 -4
  95. package/lib/paths/Restapi/Glip/Companies/index.d.ts +2 -2
  96. package/lib/paths/Restapi/Glip/Companies/index.js +2 -2
  97. package/lib/paths/Restapi/Glip/Conversations/index.d.ts +6 -6
  98. package/lib/paths/Restapi/Glip/Conversations/index.js +6 -6
  99. package/lib/paths/Restapi/Glip/Events/index.d.ts +10 -10
  100. package/lib/paths/Restapi/Glip/Events/index.js +10 -10
  101. package/lib/paths/Restapi/Glip/Everyone/index.d.ts +4 -4
  102. package/lib/paths/Restapi/Glip/Everyone/index.js +4 -4
  103. package/lib/paths/Restapi/Glip/Favorites/index.d.ts +2 -2
  104. package/lib/paths/Restapi/Glip/Favorites/index.js +2 -2
  105. package/lib/paths/Restapi/Glip/Groups/Events/index.d.ts +4 -4
  106. package/lib/paths/Restapi/Glip/Groups/Events/index.js +4 -4
  107. package/lib/paths/Restapi/Glip/Groups/Webhooks/index.d.ts +4 -4
  108. package/lib/paths/Restapi/Glip/Groups/Webhooks/index.js +4 -4
  109. package/lib/paths/Restapi/Glip/Notes/Lock/index.d.ts +2 -2
  110. package/lib/paths/Restapi/Glip/Notes/Lock/index.js +2 -2
  111. package/lib/paths/Restapi/Glip/Notes/Publish/index.d.ts +2 -2
  112. package/lib/paths/Restapi/Glip/Notes/Publish/index.js +2 -2
  113. package/lib/paths/Restapi/Glip/Notes/Unlock/index.d.ts +2 -2
  114. package/lib/paths/Restapi/Glip/Notes/Unlock/index.js +2 -2
  115. package/lib/paths/Restapi/Glip/Notes/index.d.ts +6 -6
  116. package/lib/paths/Restapi/Glip/Notes/index.js +6 -6
  117. package/lib/paths/Restapi/Glip/Persons/index.d.ts +2 -2
  118. package/lib/paths/Restapi/Glip/Persons/index.js +2 -2
  119. package/lib/paths/Restapi/Glip/Preferences/index.d.ts +2 -2
  120. package/lib/paths/Restapi/Glip/Preferences/index.js +2 -2
  121. package/lib/paths/Restapi/Glip/Recent/Chats/index.d.ts +2 -2
  122. package/lib/paths/Restapi/Glip/Recent/Chats/index.js +2 -2
  123. package/lib/paths/Restapi/Glip/Teams/Add/index.d.ts +2 -2
  124. package/lib/paths/Restapi/Glip/Teams/Add/index.js +2 -2
  125. package/lib/paths/Restapi/Glip/Teams/Archive/index.d.ts +2 -2
  126. package/lib/paths/Restapi/Glip/Teams/Archive/index.js +2 -2
  127. package/lib/paths/Restapi/Glip/Teams/Join/index.d.ts +2 -2
  128. package/lib/paths/Restapi/Glip/Teams/Join/index.js +2 -2
  129. package/lib/paths/Restapi/Glip/Teams/Leave/index.d.ts +2 -2
  130. package/lib/paths/Restapi/Glip/Teams/Leave/index.js +2 -2
  131. package/lib/paths/Restapi/Glip/Teams/Remove/index.d.ts +2 -2
  132. package/lib/paths/Restapi/Glip/Teams/Remove/index.js +2 -2
  133. package/lib/paths/Restapi/Glip/Teams/Unarchive/index.d.ts +2 -2
  134. package/lib/paths/Restapi/Glip/Teams/Unarchive/index.js +2 -2
  135. package/lib/paths/Restapi/Glip/Teams/index.d.ts +10 -10
  136. package/lib/paths/Restapi/Glip/Teams/index.js +10 -10
  137. package/lib/paths/Restapi/Glip/Webhooks/Activate/index.d.ts +2 -2
  138. package/lib/paths/Restapi/Glip/Webhooks/Activate/index.js +2 -2
  139. package/lib/paths/Restapi/Glip/Webhooks/Suspend/index.d.ts +2 -2
  140. package/lib/paths/Restapi/Glip/Webhooks/Suspend/index.js +2 -2
  141. package/lib/paths/Restapi/Glip/Webhooks/index.d.ts +6 -6
  142. package/lib/paths/Restapi/Glip/Webhooks/index.js +6 -6
  143. package/package.json +4 -4
  144. package/paths/Restapi/Account/EmergencyLocations/index.ts +1 -1
  145. package/paths/Restapi/Account/Extension/EmergencyLocations/index.ts +85 -5
  146. package/paths/Restapi/Account/Extension/index.ts +5 -5
  147. package/paths/Restapi/Glip/Chats/Favorite/index.ts +2 -2
  148. package/paths/Restapi/Glip/Chats/Notes/index.ts +4 -4
  149. package/paths/Restapi/Glip/Chats/Posts/index.ts +10 -10
  150. package/paths/Restapi/Glip/Chats/Read/index.ts +1 -1
  151. package/paths/Restapi/Glip/Chats/Unfavorite/index.ts +2 -2
  152. package/paths/Restapi/Glip/Chats/Unread/index.ts +1 -1
  153. package/paths/Restapi/Glip/Chats/index.ts +4 -4
  154. package/paths/Restapi/Glip/Companies/index.ts +2 -2
  155. package/paths/Restapi/Glip/Conversations/index.ts +6 -6
  156. package/paths/Restapi/Glip/Events/index.ts +10 -10
  157. package/paths/Restapi/Glip/Everyone/index.ts +4 -4
  158. package/paths/Restapi/Glip/Favorites/index.ts +2 -2
  159. package/paths/Restapi/Glip/Groups/Events/index.ts +4 -4
  160. package/paths/Restapi/Glip/Groups/Webhooks/index.ts +4 -4
  161. package/paths/Restapi/Glip/Notes/Lock/index.ts +2 -2
  162. package/paths/Restapi/Glip/Notes/Publish/index.ts +2 -2
  163. package/paths/Restapi/Glip/Notes/Unlock/index.ts +2 -2
  164. package/paths/Restapi/Glip/Notes/index.ts +6 -6
  165. package/paths/Restapi/Glip/Persons/index.ts +2 -2
  166. package/paths/Restapi/Glip/Preferences/index.ts +2 -2
  167. package/paths/Restapi/Glip/Recent/Chats/index.ts +2 -2
  168. package/paths/Restapi/Glip/Teams/Add/index.ts +2 -2
  169. package/paths/Restapi/Glip/Teams/Archive/index.ts +2 -2
  170. package/paths/Restapi/Glip/Teams/Join/index.ts +2 -2
  171. package/paths/Restapi/Glip/Teams/Leave/index.ts +2 -2
  172. package/paths/Restapi/Glip/Teams/Remove/index.ts +2 -2
  173. package/paths/Restapi/Glip/Teams/Unarchive/index.ts +2 -2
  174. package/paths/Restapi/Glip/Teams/index.ts +10 -10
  175. package/paths/Restapi/Glip/Webhooks/Activate/index.ts +2 -2
  176. package/paths/Restapi/Glip/Webhooks/Suspend/index.ts +2 -2
  177. package/paths/Restapi/Glip/Webhooks/index.ts +6 -6
  178. package/samples.md +187 -108
  179. package/definitions/UserEmergencyLocationList.ts +0 -6
  180. package/lib/definitions/UserEmergencyLocationList.d.ts +0 -6
  181. package/lib/definitions/UserEmergencyLocationList.js +0 -6
  182. package/lib/definitions/UserEmergencyLocationList.js.map +0 -1
@@ -19,8 +19,8 @@ declare class Index {
19
19
  * HTTP Method: get
20
20
  * Endpoint: /restapi/{apiVersion}/glip/teams
21
21
  * Rate Limit Group: Medium
22
- * App Permission: Glip
23
- * User Permission: Glip
22
+ * App Permission: TeamMessaging
23
+ * User Permission: UnifiedAppDesktop
24
24
  */
25
25
  list(queryParams?: ListGlipTeamsParameters, restRequestConfig?: RestRequestConfig): Promise<GlipTeamsList>;
26
26
  /**
@@ -28,8 +28,8 @@ declare class Index {
28
28
  * HTTP Method: post
29
29
  * Endpoint: /restapi/{apiVersion}/glip/teams
30
30
  * Rate Limit Group: Medium
31
- * App Permission: Glip
32
- * User Permission: Glip
31
+ * App Permission: TeamMessaging
32
+ * User Permission: UnifiedAppDesktop
33
33
  */
34
34
  post(glipPostTeamBody: GlipPostTeamBody, restRequestConfig?: RestRequestConfig): Promise<GlipTeamInfo>;
35
35
  /**
@@ -37,8 +37,8 @@ declare class Index {
37
37
  * HTTP Method: get
38
38
  * Endpoint: /restapi/{apiVersion}/glip/teams/{chatId}
39
39
  * Rate Limit Group: Light
40
- * App Permission: Glip
41
- * User Permission: Glip
40
+ * App Permission: TeamMessaging
41
+ * User Permission: UnifiedAppDesktop
42
42
  */
43
43
  get(restRequestConfig?: RestRequestConfig): Promise<GlipTeamInfo>;
44
44
  /**
@@ -46,8 +46,8 @@ declare class Index {
46
46
  * HTTP Method: delete
47
47
  * Endpoint: /restapi/{apiVersion}/glip/teams/{chatId}
48
48
  * Rate Limit Group: Medium
49
- * App Permission: Glip
50
- * User Permission: Glip
49
+ * App Permission: TeamMessaging
50
+ * User Permission: UnifiedAppDesktop
51
51
  */
52
52
  delete(restRequestConfig?: RestRequestConfig): Promise<string>;
53
53
  /**
@@ -55,8 +55,8 @@ declare class Index {
55
55
  * HTTP Method: patch
56
56
  * Endpoint: /restapi/{apiVersion}/glip/teams/{chatId}
57
57
  * Rate Limit Group: Medium
58
- * App Permission: Glip
59
- * User Permission: Glip
58
+ * App Permission: TeamMessaging
59
+ * User Permission: UnifiedAppDesktop
60
60
  */
61
61
  patch(glipPatchTeamBody: GlipPatchTeamBody, restRequestConfig?: RestRequestConfig): Promise<GlipTeamInfo>;
62
62
  add(): Add;
@@ -26,8 +26,8 @@ class Index {
26
26
  * HTTP Method: get
27
27
  * Endpoint: /restapi/{apiVersion}/glip/teams
28
28
  * Rate Limit Group: Medium
29
- * App Permission: Glip
30
- * User Permission: Glip
29
+ * App Permission: TeamMessaging
30
+ * User Permission: UnifiedAppDesktop
31
31
  */
32
32
  async list(queryParams, restRequestConfig) {
33
33
  const r = await this.rc.get(this.path(false), queryParams, restRequestConfig);
@@ -38,8 +38,8 @@ class Index {
38
38
  * HTTP Method: post
39
39
  * Endpoint: /restapi/{apiVersion}/glip/teams
40
40
  * Rate Limit Group: Medium
41
- * App Permission: Glip
42
- * User Permission: Glip
41
+ * App Permission: TeamMessaging
42
+ * User Permission: UnifiedAppDesktop
43
43
  */
44
44
  async post(glipPostTeamBody, restRequestConfig) {
45
45
  const r = await this.rc.post(this.path(false), glipPostTeamBody, undefined, restRequestConfig);
@@ -50,8 +50,8 @@ class Index {
50
50
  * HTTP Method: get
51
51
  * Endpoint: /restapi/{apiVersion}/glip/teams/{chatId}
52
52
  * Rate Limit Group: Light
53
- * App Permission: Glip
54
- * User Permission: Glip
53
+ * App Permission: TeamMessaging
54
+ * User Permission: UnifiedAppDesktop
55
55
  */
56
56
  async get(restRequestConfig) {
57
57
  if (this.chatId === null) {
@@ -65,8 +65,8 @@ class Index {
65
65
  * HTTP Method: delete
66
66
  * Endpoint: /restapi/{apiVersion}/glip/teams/{chatId}
67
67
  * Rate Limit Group: Medium
68
- * App Permission: Glip
69
- * User Permission: Glip
68
+ * App Permission: TeamMessaging
69
+ * User Permission: UnifiedAppDesktop
70
70
  */
71
71
  async delete(restRequestConfig) {
72
72
  if (this.chatId === null) {
@@ -80,8 +80,8 @@ class Index {
80
80
  * HTTP Method: patch
81
81
  * Endpoint: /restapi/{apiVersion}/glip/teams/{chatId}
82
82
  * Rate Limit Group: Medium
83
- * App Permission: Glip
84
- * User Permission: Glip
83
+ * App Permission: TeamMessaging
84
+ * User Permission: UnifiedAppDesktop
85
85
  */
86
86
  async patch(glipPatchTeamBody, restRequestConfig) {
87
87
  if (this.chatId === null) {
@@ -11,8 +11,8 @@ declare class Index {
11
11
  * HTTP Method: post
12
12
  * Endpoint: /restapi/{apiVersion}/glip/webhooks/{webhookId}/activate
13
13
  * Rate Limit Group: Medium
14
- * App Permission: Glip
15
- * User Permission: Glip
14
+ * App Permission: TeamMessaging
15
+ * User Permission: UnifiedAppDesktop
16
16
  */
17
17
  post(restRequestConfig?: RestRequestConfig): Promise<string>;
18
18
  }
@@ -13,8 +13,8 @@ class Index {
13
13
  * HTTP Method: post
14
14
  * Endpoint: /restapi/{apiVersion}/glip/webhooks/{webhookId}/activate
15
15
  * Rate Limit Group: Medium
16
- * App Permission: Glip
17
- * User Permission: Glip
16
+ * App Permission: TeamMessaging
17
+ * User Permission: UnifiedAppDesktop
18
18
  */
19
19
  async post(restRequestConfig) {
20
20
  const r = await this.rc.post(this.path(), undefined, restRequestConfig);
@@ -11,8 +11,8 @@ declare class Index {
11
11
  * HTTP Method: post
12
12
  * Endpoint: /restapi/{apiVersion}/glip/webhooks/{webhookId}/suspend
13
13
  * Rate Limit Group: Medium
14
- * App Permission: Glip
15
- * User Permission: Glip
14
+ * App Permission: TeamMessaging
15
+ * User Permission: UnifiedAppDesktop
16
16
  */
17
17
  post(restRequestConfig?: RestRequestConfig): Promise<string>;
18
18
  }
@@ -13,8 +13,8 @@ class Index {
13
13
  * HTTP Method: post
14
14
  * Endpoint: /restapi/{apiVersion}/glip/webhooks/{webhookId}/suspend
15
15
  * Rate Limit Group: Medium
16
- * App Permission: Glip
17
- * User Permission: Glip
16
+ * App Permission: TeamMessaging
17
+ * User Permission: UnifiedAppDesktop
18
18
  */
19
19
  async post(restRequestConfig) {
20
20
  const r = await this.rc.post(this.path(), undefined, restRequestConfig);
@@ -15,8 +15,8 @@ declare class Index {
15
15
  * HTTP Method: get
16
16
  * Endpoint: /restapi/{apiVersion}/glip/webhooks
17
17
  * Rate Limit Group: Medium
18
- * App Permission: Glip
19
- * User Permission: Glip
18
+ * App Permission: TeamMessaging
19
+ * User Permission: UnifiedAppDesktop
20
20
  */
21
21
  list(restRequestConfig?: RestRequestConfig): Promise<GlipWebhookList>;
22
22
  /**
@@ -24,8 +24,8 @@ declare class Index {
24
24
  * HTTP Method: get
25
25
  * Endpoint: /restapi/{apiVersion}/glip/webhooks/{webhookId}
26
26
  * Rate Limit Group: Medium
27
- * App Permission: Glip
28
- * User Permission: Glip
27
+ * App Permission: TeamMessaging
28
+ * User Permission: UnifiedAppDesktop
29
29
  */
30
30
  get(restRequestConfig?: RestRequestConfig): Promise<GlipWebhookList>;
31
31
  /**
@@ -33,8 +33,8 @@ declare class Index {
33
33
  * HTTP Method: delete
34
34
  * Endpoint: /restapi/{apiVersion}/glip/webhooks/{webhookId}
35
35
  * Rate Limit Group: Medium
36
- * App Permission: Glip
37
- * User Permission: Glip
36
+ * App Permission: TeamMessaging
37
+ * User Permission: UnifiedAppDesktop
38
38
  */
39
39
  delete(restRequestConfig?: RestRequestConfig): Promise<string>;
40
40
  suspend(): Suspend;
@@ -22,8 +22,8 @@ class Index {
22
22
  * HTTP Method: get
23
23
  * Endpoint: /restapi/{apiVersion}/glip/webhooks
24
24
  * Rate Limit Group: Medium
25
- * App Permission: Glip
26
- * User Permission: Glip
25
+ * App Permission: TeamMessaging
26
+ * User Permission: UnifiedAppDesktop
27
27
  */
28
28
  async list(restRequestConfig) {
29
29
  const r = await this.rc.get(this.path(false), undefined, restRequestConfig);
@@ -34,8 +34,8 @@ class Index {
34
34
  * HTTP Method: get
35
35
  * Endpoint: /restapi/{apiVersion}/glip/webhooks/{webhookId}
36
36
  * Rate Limit Group: Medium
37
- * App Permission: Glip
38
- * User Permission: Glip
37
+ * App Permission: TeamMessaging
38
+ * User Permission: UnifiedAppDesktop
39
39
  */
40
40
  async get(restRequestConfig) {
41
41
  if (this.webhookId === null) {
@@ -49,8 +49,8 @@ class Index {
49
49
  * HTTP Method: delete
50
50
  * Endpoint: /restapi/{apiVersion}/glip/webhooks/{webhookId}
51
51
  * Rate Limit Group: Medium
52
- * App Permission: Glip
53
- * User Permission: Glip
52
+ * App Permission: TeamMessaging
53
+ * User Permission: UnifiedAppDesktop
54
54
  */
55
55
  async delete(restRequestConfig) {
56
56
  if (this.webhookId === null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-ex/core",
3
- "version": "0.9.2",
3
+ "version": "0.10.2",
4
4
  "description": "Core for ringcentral-extensible project",
5
5
  "author": "Tyler Liu <tyler.liu@ringcentral.com>",
6
6
  "homepage": "https://github.com/ringcentral/ringcentral-extensible/tree/master/packages/core",
@@ -19,17 +19,17 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@types/qs": "^6.9.7",
22
- "axios": "^0.21.1",
22
+ "axios": "^0.21.4",
23
23
  "form-data": "^4.0.0",
24
24
  "qs": "^6.10.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "dotenv-override-true": "^6.2.2",
28
28
  "ringcentral-code-generator": "^0.1.5",
29
- "ts-node": "^10.2.0"
29
+ "ts-node": "^10.2.1"
30
30
  },
31
31
  "scripts": {
32
32
  "generate": "ts-node -r dotenv-override-true/config code-generator.ts"
33
33
  },
34
- "gitHead": "e48ccc603aa83a3dbe74df7cb34db021f8dc8e39"
34
+ "gitHead": "84492d579489d5604facf432ecbdba7b206aca8b"
35
35
  }
@@ -46,7 +46,7 @@ class Index {
46
46
  }
47
47
 
48
48
  /**
49
- * Add Emergency Location
49
+ * Creates a new emergency response location for the company.
50
50
  * HTTP Method: post
51
51
  * Endpoint: /restapi/{apiVersion}/account/{accountId}/emergency-locations
52
52
  * Rate Limit Group: Medium
@@ -1,17 +1,28 @@
1
1
  import {RestRequestConfig} from '../../../../../Rest';
2
- import {UserEmergencyLocationList} from '../../../../../definitions';
2
+ import {
3
+ GetExtensionEmergencyLocationsParameters,
4
+ EmergencyLocationsResource,
5
+ CreateUserEmergencyLocationRequest,
6
+ EmergencyLocationInfo,
7
+ DeleteExtensionEmergencyLocationParameters,
8
+ } from '../../../../../definitions';
3
9
  import Parent from '..';
4
10
  import {RingCentral} from '../../../../..';
5
11
 
6
12
  class Index {
7
13
  rc: RingCentral;
8
14
  parent: Parent;
15
+ locationId: string | null;
9
16
 
10
- constructor(parent: Parent) {
17
+ constructor(parent: Parent, locationId: string | null = null) {
11
18
  this.parent = parent;
12
19
  this.rc = parent.rc;
20
+ this.locationId = locationId;
13
21
  }
14
- path(): string {
22
+ path(withParameter = true): string {
23
+ if (withParameter && this.locationId !== null) {
24
+ return `${this.parent.path()}/emergency-locations/${this.locationId}`;
25
+ }
15
26
  return `${this.parent.path()}/emergency-locations`;
16
27
  }
17
28
  /**
@@ -22,14 +33,83 @@ class Index {
22
33
  * App Permission: ReadAccounts
23
34
  */
24
35
  async get(
36
+ queryParams?: GetExtensionEmergencyLocationsParameters,
25
37
  restRequestConfig?: RestRequestConfig
26
- ): Promise<UserEmergencyLocationList> {
27
- const r = await this.rc.get<UserEmergencyLocationList>(
38
+ ): Promise<EmergencyLocationsResource> {
39
+ const r = await this.rc.get<EmergencyLocationsResource>(
40
+ this.path(false),
41
+ queryParams,
42
+ restRequestConfig
43
+ );
44
+ return r.data;
45
+ }
46
+
47
+ /**
48
+ * Creates a personal emergency response location for the current user.
49
+ * HTTP Method: post
50
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/emergency-locations
51
+ * Rate Limit Group: Heavy
52
+ * App Permission: ReadAccounts
53
+ * User Permission: EmergencyFramework
54
+ */
55
+ async post(
56
+ createUserEmergencyLocationRequest: CreateUserEmergencyLocationRequest,
57
+ restRequestConfig?: RestRequestConfig
58
+ ): Promise<EmergencyLocationInfo> {
59
+ const r = await this.rc.post<EmergencyLocationInfo>(
60
+ this.path(false),
61
+ createUserEmergencyLocationRequest,
62
+ undefined,
63
+ restRequestConfig
64
+ );
65
+ return r.data;
66
+ }
67
+
68
+ /**
69
+ * Updates a personal emergency response location by the current user or admin.
70
+ * HTTP Method: put
71
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/emergency-locations/{locationId}
72
+ * Rate Limit Group: Light
73
+ * App Permission: EditExtensions
74
+ * User Permission: EmergencyFramework
75
+ */
76
+ async put(
77
+ emergencyLocationInfo: EmergencyLocationInfo,
78
+ restRequestConfig?: RestRequestConfig
79
+ ): Promise<EmergencyLocationInfo> {
80
+ if (this.locationId === null) {
81
+ throw new Error('locationId must be specified.');
82
+ }
83
+ const r = await this.rc.put<EmergencyLocationInfo>(
28
84
  this.path(),
85
+ emergencyLocationInfo,
29
86
  undefined,
30
87
  restRequestConfig
31
88
  );
32
89
  return r.data;
33
90
  }
91
+
92
+ /**
93
+ * Deletes a personal emergency response location by ID by the current user or admin. Multiple personal emergency response locations can be deleted by one API call
94
+ * HTTP Method: delete
95
+ * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/emergency-locations/{locationId}
96
+ * Rate Limit Group: Heavy
97
+ * App Permission: EditExtensions
98
+ * User Permission: EmergencyFramework
99
+ */
100
+ async delete(
101
+ queryParams?: DeleteExtensionEmergencyLocationParameters,
102
+ restRequestConfig?: RestRequestConfig
103
+ ): Promise<string> {
104
+ if (this.locationId === null) {
105
+ throw new Error('locationId must be specified.');
106
+ }
107
+ const r = await this.rc.delete<string>(
108
+ this.path(),
109
+ queryParams,
110
+ restRequestConfig
111
+ );
112
+ return r.data;
113
+ }
34
114
  }
35
115
  export default Index;
@@ -2,8 +2,8 @@ import MeetingsConfiguration from './MeetingsConfiguration';
2
2
  import NotificationSettings from './NotificationSettings';
3
3
  import MeetingConfiguration from './MeetingConfiguration';
4
4
  import VideoConfiguration from './VideoConfiguration';
5
- import EmergencyLocations from './EmergencyLocations';
6
5
  import CallQueuePresence from './CallQueuePresence';
6
+ import EmergencyLocations from './EmergencyLocations';
7
7
  import AdministeredSites from './AdministeredSites';
8
8
  import MeetingRecordings from './MeetingRecordings';
9
9
  import AddressBookSync from './AddressBookSync';
@@ -308,12 +308,12 @@ class Index {
308
308
  return new AdministeredSites(this);
309
309
  }
310
310
 
311
- callQueuePresence(): CallQueuePresence {
312
- return new CallQueuePresence(this);
311
+ emergencyLocations(locationId: string | null = null): EmergencyLocations {
312
+ return new EmergencyLocations(this, locationId);
313
313
  }
314
314
 
315
- emergencyLocations(): EmergencyLocations {
316
- return new EmergencyLocations(this);
315
+ callQueuePresence(): CallQueuePresence {
316
+ return new CallQueuePresence(this);
317
317
  }
318
318
 
319
319
  videoConfiguration(): VideoConfiguration {
@@ -18,8 +18,8 @@ class Index {
18
18
  * HTTP Method: post
19
19
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/favorite
20
20
  * Rate Limit Group: Medium
21
- * App Permission: Glip
22
- * User Permission: Glip
21
+ * App Permission: TeamMessaging
22
+ * User Permission: UnifiedAppDesktop
23
23
  */
24
24
  async post(restRequestConfig?: RestRequestConfig): Promise<string> {
25
25
  const r = await this.rc.post<string>(
@@ -24,8 +24,8 @@ class Index {
24
24
  * HTTP Method: get
25
25
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/notes
26
26
  * Rate Limit Group: Heavy
27
- * App Permission: Glip
28
- * User Permission: Glip
27
+ * App Permission: TeamMessaging
28
+ * User Permission: UnifiedAppDesktop
29
29
  */
30
30
  async get(
31
31
  queryParams?: ListChatNotesParameters,
@@ -44,8 +44,8 @@ class Index {
44
44
  * HTTP Method: post
45
45
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/notes
46
46
  * Rate Limit Group: Medium
47
- * App Permission: Glip
48
- * User Permission: Glip
47
+ * App Permission: TeamMessaging
48
+ * User Permission: UnifiedAppDesktop
49
49
  */
50
50
  async post(
51
51
  glipNoteCreate: GlipNoteCreate,
@@ -30,8 +30,8 @@ class Index {
30
30
  * HTTP Method: get
31
31
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/posts
32
32
  * Rate Limit Group: Medium
33
- * App Permission: Glip
34
- * User Permission: Glip
33
+ * App Permission: TeamMessaging
34
+ * User Permission: UnifiedAppDesktop
35
35
  */
36
36
  async list(
37
37
  queryParams?: ReadGlipPostsParameters,
@@ -50,8 +50,8 @@ class Index {
50
50
  * HTTP Method: post
51
51
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/posts
52
52
  * Rate Limit Group: Medium
53
- * App Permission: Glip
54
- * User Permission: Glip
53
+ * App Permission: TeamMessaging
54
+ * User Permission: UnifiedAppDesktop
55
55
  */
56
56
  async post(
57
57
  glipPostPostBody: GlipPostPostBody,
@@ -71,8 +71,8 @@ class Index {
71
71
  * HTTP Method: get
72
72
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/posts/{postId}
73
73
  * Rate Limit Group: Light
74
- * App Permission: Glip
75
- * User Permission: Glip
74
+ * App Permission: TeamMessaging
75
+ * User Permission: UnifiedAppDesktop
76
76
  */
77
77
  async get(restRequestConfig?: RestRequestConfig): Promise<GlipPostInfo> {
78
78
  if (this.postId === null) {
@@ -91,8 +91,8 @@ class Index {
91
91
  * HTTP Method: delete
92
92
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/posts/{postId}
93
93
  * Rate Limit Group: Medium
94
- * App Permission: Glip
95
- * User Permission: Glip
94
+ * App Permission: TeamMessaging
95
+ * User Permission: UnifiedAppDesktop
96
96
  */
97
97
  async delete(restRequestConfig?: RestRequestConfig): Promise<string> {
98
98
  if (this.postId === null) {
@@ -111,8 +111,8 @@ class Index {
111
111
  * HTTP Method: patch
112
112
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/posts/{postId}
113
113
  * Rate Limit Group: Medium
114
- * App Permission: Glip
115
- * User Permission: Glip
114
+ * App Permission: TeamMessaging
115
+ * User Permission: UnifiedAppDesktop
116
116
  */
117
117
  async patch(
118
118
  glipPatchPostBody: GlipPatchPostBody,
@@ -18,7 +18,7 @@ class Index {
18
18
  * HTTP Method: post
19
19
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/read
20
20
  * Rate Limit Group: Medium
21
- * App Permission: GlipInternal
21
+ * App Permission: TeamMessagingInternal
22
22
  */
23
23
  async post(restRequestConfig?: RestRequestConfig): Promise<string> {
24
24
  const r = await this.rc.post<string>(
@@ -18,8 +18,8 @@ class Index {
18
18
  * HTTP Method: post
19
19
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/unfavorite
20
20
  * Rate Limit Group: Medium
21
- * App Permission: Glip
22
- * User Permission: Glip
21
+ * App Permission: TeamMessaging
22
+ * User Permission: UnifiedAppDesktop
23
23
  */
24
24
  async post(restRequestConfig?: RestRequestConfig): Promise<string> {
25
25
  const r = await this.rc.post<string>(
@@ -18,7 +18,7 @@ class Index {
18
18
  * HTTP Method: post
19
19
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/unread
20
20
  * Rate Limit Group: Medium
21
- * App Permission: GlipInternal
21
+ * App Permission: TeamMessagingInternal
22
22
  */
23
23
  async post(restRequestConfig?: RestRequestConfig): Promise<string> {
24
24
  const r = await this.rc.post<string>(
@@ -35,8 +35,8 @@ class Index {
35
35
  * HTTP Method: get
36
36
  * Endpoint: /restapi/{apiVersion}/glip/chats
37
37
  * Rate Limit Group: Medium
38
- * App Permission: Glip
39
- * User Permission: Glip
38
+ * App Permission: TeamMessaging
39
+ * User Permission: UnifiedAppDesktop
40
40
  */
41
41
  async list(
42
42
  queryParams?: ListGlipChatsParameters,
@@ -55,8 +55,8 @@ class Index {
55
55
  * HTTP Method: get
56
56
  * Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}
57
57
  * Rate Limit Group: Light
58
- * App Permission: Glip
59
- * User Permission: Glip
58
+ * App Permission: TeamMessaging
59
+ * User Permission: UnifiedAppDesktop
60
60
  */
61
61
  async get(restRequestConfig?: RestRequestConfig): Promise<GlipChatInfo> {
62
62
  if (this.chatId === null) {
@@ -24,8 +24,8 @@ class Index {
24
24
  * HTTP Method: get
25
25
  * Endpoint: /restapi/{apiVersion}/glip/companies/{companyId}
26
26
  * Rate Limit Group: Light
27
- * App Permission: Glip
28
- * User Permission: Glip
27
+ * App Permission: TeamMessaging
28
+ * User Permission: UnifiedAppDesktop
29
29
  */
30
30
  async get(restRequestConfig?: RestRequestConfig): Promise<GlipCompany> {
31
31
  if (this.companyId === null) {
@@ -29,8 +29,8 @@ class Index {
29
29
  * HTTP Method: get
30
30
  * Endpoint: /restapi/{apiVersion}/glip/conversations
31
31
  * Rate Limit Group: Medium
32
- * App Permission: Glip
33
- * User Permission: Glip
32
+ * App Permission: TeamMessaging
33
+ * User Permission: UnifiedAppDesktop
34
34
  */
35
35
  async list(
36
36
  queryParams?: ListGlipConversationsParameters,
@@ -49,8 +49,8 @@ class Index {
49
49
  * HTTP Method: post
50
50
  * Endpoint: /restapi/{apiVersion}/glip/conversations
51
51
  * Rate Limit Group: Medium
52
- * App Permission: Glip
53
- * User Permission: Glip
52
+ * App Permission: TeamMessaging
53
+ * User Permission: UnifiedAppDesktop
54
54
  */
55
55
  async post(
56
56
  createGlipConversationRequest: CreateGlipConversationRequest,
@@ -70,8 +70,8 @@ class Index {
70
70
  * HTTP Method: get
71
71
  * Endpoint: /restapi/{apiVersion}/glip/conversations/{chatId}
72
72
  * Rate Limit Group: Light
73
- * App Permission: Glip
74
- * User Permission: Glip
73
+ * App Permission: TeamMessaging
74
+ * User Permission: UnifiedAppDesktop
75
75
  */
76
76
  async get(
77
77
  restRequestConfig?: RestRequestConfig
@@ -29,8 +29,8 @@ class Index {
29
29
  * HTTP Method: get
30
30
  * Endpoint: /restapi/{apiVersion}/glip/events
31
31
  * Rate Limit Group: Medium
32
- * App Permission: Glip
33
- * User Permission: Glip
32
+ * App Permission: TeamMessaging
33
+ * User Permission: UnifiedAppDesktop
34
34
  */
35
35
  async list(
36
36
  queryParams?: ReadGlipEventsParameters,
@@ -49,8 +49,8 @@ class Index {
49
49
  * HTTP Method: post
50
50
  * Endpoint: /restapi/{apiVersion}/glip/events
51
51
  * Rate Limit Group: Medium
52
- * App Permission: Glip
53
- * User Permission: Glip
52
+ * App Permission: TeamMessaging
53
+ * User Permission: UnifiedAppDesktop
54
54
  */
55
55
  async post(
56
56
  glipEventCreate: GlipEventCreate,
@@ -70,8 +70,8 @@ class Index {
70
70
  * HTTP Method: get
71
71
  * Endpoint: /restapi/{apiVersion}/glip/events/{eventId}
72
72
  * Rate Limit Group: Medium
73
- * App Permission: Glip
74
- * User Permission: Glip
73
+ * App Permission: TeamMessaging
74
+ * User Permission: UnifiedAppDesktop
75
75
  */
76
76
  async get(restRequestConfig?: RestRequestConfig): Promise<GlipEventInfo> {
77
77
  if (this.eventId === null) {
@@ -90,8 +90,8 @@ class Index {
90
90
  * HTTP Method: put
91
91
  * Endpoint: /restapi/{apiVersion}/glip/events/{eventId}
92
92
  * Rate Limit Group: Medium
93
- * App Permission: Glip
94
- * User Permission: Glip
93
+ * App Permission: TeamMessaging
94
+ * User Permission: UnifiedAppDesktop
95
95
  */
96
96
  async put(
97
97
  glipEventCreate: GlipEventCreate,
@@ -114,8 +114,8 @@ class Index {
114
114
  * HTTP Method: delete
115
115
  * Endpoint: /restapi/{apiVersion}/glip/events/{eventId}
116
116
  * Rate Limit Group: Medium
117
- * App Permission: Glip
118
- * User Permission: Glip
117
+ * App Permission: TeamMessaging
118
+ * User Permission: UnifiedAppDesktop
119
119
  */
120
120
  async delete(restRequestConfig?: RestRequestConfig): Promise<string> {
121
121
  if (this.eventId === null) {