@rc-ex/core 1.3.12 → 1.3.14

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 (146) hide show
  1. package/lib/Rest.js +1 -3
  2. package/lib/Rest.js.map +1 -1
  3. package/lib/definitions/ContactBusinessAddressInfo.d.ts +6 -6
  4. package/lib/definitions/ContactInfo.d.ts +12 -13
  5. package/lib/definitions/CreateFaxMessageRequest.d.ts +2 -1
  6. package/lib/definitions/CreateUserEmergencyLocationRequest.d.ts +4 -0
  7. package/lib/definitions/DepartmentInfo.d.ts +2 -2
  8. package/lib/definitions/DeviceResource.d.ts +5 -5
  9. package/lib/definitions/EmergencyLocationRequestResource.d.ts +42 -0
  10. package/lib/definitions/{ImportIdentityRequest.js → EmergencyLocationRequestResource.js} +1 -1
  11. package/lib/definitions/EmergencyLocationRequestResource.js.map +1 -0
  12. package/lib/definitions/EmergencyLocationResponseResource.d.ts +58 -0
  13. package/lib/definitions/EmergencyLocationResponseResource.js +3 -0
  14. package/lib/definitions/EmergencyLocationResponseResource.js.map +1 -0
  15. package/lib/definitions/ExtensionBulkUpdateInfo.d.ts +2 -0
  16. package/lib/definitions/ExtensionCreationRequest.d.ts +1 -2
  17. package/lib/definitions/ExtensionCreationResponse.d.ts +2 -2
  18. package/lib/definitions/ExtensionUpdateRequest.d.ts +2 -0
  19. package/lib/definitions/GetAccountInfoResponse.d.ts +2 -3
  20. package/lib/definitions/GetExtensionInfoResponse.d.ts +1 -1
  21. package/lib/definitions/GrantInfo.d.ts +4 -0
  22. package/lib/definitions/MessageStoreConfiguration.d.ts +1 -1
  23. package/lib/definitions/PauseResumeCallRecordingParameters.d.ts +1 -1
  24. package/lib/definitions/PronouncedNameInfo.d.ts +5 -6
  25. package/lib/definitions/ReadA2PSMSOptOutsParameters.d.ts +2 -1
  26. package/lib/definitions/ReadCallSessionStatusParameters.d.ts +2 -1
  27. package/lib/definitions/SipRegistrationDeviceInfo.d.ts +4 -7
  28. package/lib/definitions/SyncAccountCallLogParameters.d.ts +4 -1
  29. package/lib/definitions/SyncMessagesParameters.d.ts +1 -1
  30. package/lib/definitions/SyncUserCallLogParameters.d.ts +8 -3
  31. package/lib/definitions/TokenInfo.d.ts +3 -3
  32. package/lib/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.d.ts +1 -1
  33. package/lib/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.js +1 -1
  34. package/lib/paths/Ai/Audio/V1/Async/SpeechToText/index.d.ts +1 -1
  35. package/lib/paths/Ai/Audio/V1/Async/SpeechToText/index.js +1 -1
  36. package/lib/paths/Ai/Text/V1/Async/Punctuate/index.d.ts +1 -1
  37. package/lib/paths/Ai/Text/V1/Async/Punctuate/index.js +1 -1
  38. package/lib/paths/Ai/Text/V1/Async/Summarize/index.d.ts +3 -1
  39. package/lib/paths/Ai/Text/V1/Async/Summarize/index.js +3 -1
  40. package/lib/paths/Ai/Text/V1/Async/Summarize/index.js.map +1 -1
  41. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.d.ts +0 -6
  42. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js +0 -15
  43. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js.map +1 -1
  44. package/lib/paths/Restapi/Account/A2pSms/OptOuts/index.d.ts +4 -1
  45. package/lib/paths/Restapi/Account/A2pSms/OptOuts/index.js +4 -1
  46. package/lib/paths/Restapi/Account/A2pSms/OptOuts/index.js.map +1 -1
  47. package/lib/paths/Restapi/Account/EmergencyLocations/index.d.ts +5 -4
  48. package/lib/paths/Restapi/Account/EmergencyLocations/index.js +4 -4
  49. package/lib/paths/Restapi/Account/EmergencyLocations/index.js.map +1 -1
  50. package/lib/paths/Restapi/Account/Extension/AssignedRole/index.d.ts +1 -1
  51. package/lib/paths/Restapi/Account/Extension/AssignedRole/index.js +1 -1
  52. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.d.ts +4 -3
  53. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.js +2 -2
  54. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.js.map +1 -1
  55. package/lib/paths/Restapi/Account/Extension/Features/index.d.ts +6 -6
  56. package/lib/paths/Restapi/Account/Extension/Features/index.js +6 -6
  57. package/lib/paths/Restapi/Account/Extension/MessageStore/index.d.ts +3 -3
  58. package/lib/paths/Restapi/Account/Extension/MessageStore/index.js +3 -3
  59. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.d.ts +0 -1
  60. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.js +0 -1
  61. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.js.map +1 -1
  62. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.d.ts +6 -1
  63. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.js +6 -1
  64. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.js.map +1 -1
  65. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.d.ts +5 -1
  66. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.js +5 -1
  67. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.js.map +1 -1
  68. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.d.ts +1 -1
  69. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.js +1 -1
  70. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.d.ts +1 -1
  71. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.js +1 -1
  72. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.d.ts +11 -1
  73. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.js +11 -1
  74. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.js.map +1 -1
  75. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.d.ts +1 -1
  76. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.js +1 -1
  77. package/lib/paths/Restapi/Account/Telephony/Sessions/Supervise/index.d.ts +1 -1
  78. package/lib/paths/Restapi/Account/Telephony/Sessions/Supervise/index.js +1 -1
  79. package/lib/paths/Webinar/Configuration/V1/Webinars/index.d.ts +1 -1
  80. package/lib/paths/Webinar/Configuration/V1/Webinars/index.js +1 -1
  81. package/lib/paths/Webinar/Notifications/V1/Subscriptions/index.d.ts +1 -1
  82. package/lib/paths/Webinar/Notifications/V1/Subscriptions/index.js +1 -1
  83. package/package.json +2 -2
  84. package/src/Rest.ts +1 -5
  85. package/src/definitions/ContactBusinessAddressInfo.ts +6 -6
  86. package/src/definitions/ContactInfo.ts +12 -13
  87. package/src/definitions/CreateFaxMessageRequest.ts +2 -1
  88. package/src/definitions/CreateUserEmergencyLocationRequest.ts +5 -0
  89. package/src/definitions/DepartmentInfo.ts +2 -2
  90. package/src/definitions/DeviceResource.ts +5 -5
  91. package/src/definitions/EmergencyLocationRequestResource.ts +52 -0
  92. package/src/definitions/EmergencyLocationResponseResource.ts +71 -0
  93. package/src/definitions/ExtensionBulkUpdateInfo.ts +2 -0
  94. package/src/definitions/ExtensionCreationRequest.ts +1 -2
  95. package/src/definitions/ExtensionCreationResponse.ts +2 -2
  96. package/src/definitions/ExtensionUpdateRequest.ts +2 -0
  97. package/src/definitions/GetAccountInfoResponse.ts +2 -3
  98. package/src/definitions/GetExtensionInfoResponse.ts +1 -1
  99. package/src/definitions/GrantInfo.ts +5 -0
  100. package/src/definitions/MessageStoreConfiguration.ts +1 -1
  101. package/src/definitions/PauseResumeCallRecordingParameters.ts +1 -1
  102. package/src/definitions/PronouncedNameInfo.ts +5 -6
  103. package/src/definitions/ReadA2PSMSOptOutsParameters.ts +2 -1
  104. package/src/definitions/ReadCallSessionStatusParameters.ts +2 -1
  105. package/src/definitions/SipRegistrationDeviceInfo.ts +4 -7
  106. package/src/definitions/SyncAccountCallLogParameters.ts +4 -1
  107. package/src/definitions/SyncMessagesParameters.ts +1 -1
  108. package/src/definitions/SyncUserCallLogParameters.ts +8 -3
  109. package/src/definitions/TokenInfo.ts +3 -3
  110. package/src/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.ts +1 -1
  111. package/src/paths/Ai/Audio/V1/Async/SpeechToText/index.ts +1 -1
  112. package/src/paths/Ai/Text/V1/Async/Punctuate/index.ts +1 -1
  113. package/src/paths/Ai/Text/V1/Async/Summarize/index.ts +3 -1
  114. package/src/paths/Cx/SocialMessaging/V1/Identities/index.ts +0 -15
  115. package/src/paths/Restapi/Account/A2pSms/OptOuts/index.ts +4 -1
  116. package/src/paths/Restapi/Account/EmergencyLocations/index.ts +11 -10
  117. package/src/paths/Restapi/Account/Extension/AssignedRole/index.ts +1 -1
  118. package/src/paths/Restapi/Account/Extension/EmergencyLocations/index.ts +8 -7
  119. package/src/paths/Restapi/Account/Extension/Features/index.ts +6 -6
  120. package/src/paths/Restapi/Account/Extension/MessageStore/index.ts +3 -3
  121. package/src/paths/Restapi/Account/Extension/OverflowSettings/index.ts +0 -1
  122. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.ts +6 -1
  123. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.ts +5 -1
  124. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.ts +1 -1
  125. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.ts +1 -1
  126. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.ts +11 -1
  127. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.ts +1 -1
  128. package/src/paths/Restapi/Account/Telephony/Sessions/Supervise/index.ts +1 -1
  129. package/src/paths/Webinar/Configuration/V1/Webinars/index.ts +1 -1
  130. package/src/paths/Webinar/Notifications/V1/Subscriptions/index.ts +1 -1
  131. package/src/samples.md +201 -267
  132. package/lib/definitions/ImportIdentityRequest.d.ts +0 -61
  133. package/lib/definitions/ImportIdentityRequest.js.map +0 -1
  134. package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.d.ts +0 -17
  135. package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.js +0 -25
  136. package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.js.map +0 -1
  137. package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.d.ts +0 -19
  138. package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.js +0 -27
  139. package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.js.map +0 -1
  140. package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.d.ts +0 -20
  141. package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.js +0 -27
  142. package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.js.map +0 -1
  143. package/src/definitions/ImportIdentityRequest.ts +0 -73
  144. package/src/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.ts +0 -27
  145. package/src/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.ts +0 -29
  146. package/src/paths/Cx/SocialMessaging/V1/Identities/Import/index.ts +0 -33
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class Index {
4
- constructor(_parent) {
5
- this._parent = _parent;
6
- this.rc = _parent.rc;
7
- }
8
- path() {
9
- return `${this._parent.path()}/anonymize`;
10
- }
11
- /**
12
- * Anonymizes an Identity.
13
- *
14
- * HTTP Method: post
15
- * Endpoint: /cx/social-messaging/v1/identities/{identityId}/anonymize
16
- * Rate Limit Group: Light
17
- * App Permission: SocialMessaging
18
- */
19
- async post(restRequestConfig) {
20
- const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig);
21
- return r.data;
22
- }
23
- }
24
- exports.default = Index;
25
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.ts"],"names":[],"mappings":";;AAEA,MAAM,KAAK;IAIT,YAAmB,OAAwB;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;IACvB,CAAC;IACM,IAAI;QACT,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5C,CAAC;IACD;;;;;;;OAOG;IACI,KAAK,CAAC,IAAI,CAAC,iBAAqC;QACrD,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,CAAS,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC;QACpF,OAAO,CAAC,CAAC,IAAI,CAAC;IAChB,CAAC;CACF;AACD,kBAAe,KAAK,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types';
2
- declare class Index {
3
- rc: RingCentralInterface;
4
- _parent: ParentInterface;
5
- constructor(_parent: ParentInterface);
6
- path(): string;
7
- /**
8
- * Flag Identity for deanonymization.
9
- *
10
- * The next time a content from this Identity will be imported, the identity will be imported again.
11
- *
12
- * HTTP Method: post
13
- * Endpoint: /cx/social-messaging/v1/identities/{identityId}/deanonymize
14
- * Rate Limit Group: Light
15
- * App Permission: SocialMessaging
16
- */
17
- post(restRequestConfig?: RestRequestConfig): Promise<string>;
18
- }
19
- export default Index;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class Index {
4
- constructor(_parent) {
5
- this._parent = _parent;
6
- this.rc = _parent.rc;
7
- }
8
- path() {
9
- return `${this._parent.path()}/deanonymize`;
10
- }
11
- /**
12
- * Flag Identity for deanonymization.
13
- *
14
- * The next time a content from this Identity will be imported, the identity will be imported again.
15
- *
16
- * HTTP Method: post
17
- * Endpoint: /cx/social-messaging/v1/identities/{identityId}/deanonymize
18
- * Rate Limit Group: Light
19
- * App Permission: SocialMessaging
20
- */
21
- async post(restRequestConfig) {
22
- const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig);
23
- return r.data;
24
- }
25
- }
26
- exports.default = Index;
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.ts"],"names":[],"mappings":";;AAEA,MAAM,KAAK;IAIT,YAAmB,OAAwB;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;IACvB,CAAC;IACM,IAAI;QACT,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9C,CAAC;IACD;;;;;;;;;OASG;IACI,KAAK,CAAC,IAAI,CAAC,iBAAqC;QACrD,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,CAAS,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC;QACpF,OAAO,CAAC,CAAC,IAAI,CAAC;IAChB,CAAC;CACF;AACD,kBAAe,KAAK,CAAC"}
@@ -1,20 +0,0 @@
1
- import type ImportIdentityRequest from '../../../../../../definitions/ImportIdentityRequest';
2
- import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types';
3
- declare class Index {
4
- rc: RingCentralInterface;
5
- _parent: ParentInterface;
6
- constructor(_parent: ParentInterface);
7
- path(): string;
8
- /**
9
- * Import an identity from given identifier.
10
- *
11
- * Available only for Email channels.
12
- *
13
- * HTTP Method: post
14
- * Endpoint: /cx/social-messaging/v1/identities/import
15
- * Rate Limit Group: Light
16
- * App Permission: SocialMessaging
17
- */
18
- post(importIdentityRequest: ImportIdentityRequest, restRequestConfig?: RestRequestConfig): Promise<string>;
19
- }
20
- export default Index;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class Index {
4
- constructor(_parent) {
5
- this._parent = _parent;
6
- this.rc = _parent.rc;
7
- }
8
- path() {
9
- return `${this._parent.path()}/import`;
10
- }
11
- /**
12
- * Import an identity from given identifier.
13
- *
14
- * Available only for Email channels.
15
- *
16
- * HTTP Method: post
17
- * Endpoint: /cx/social-messaging/v1/identities/import
18
- * Rate Limit Group: Light
19
- * App Permission: SocialMessaging
20
- */
21
- async post(importIdentityRequest, restRequestConfig) {
22
- const r = await this.rc.post(this.path(), importIdentityRequest, undefined, restRequestConfig);
23
- return r.data;
24
- }
25
- }
26
- exports.default = Index;
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/paths/Cx/SocialMessaging/V1/Identities/Import/index.ts"],"names":[],"mappings":";;AAGA,MAAM,KAAK;IAIT,YAAmB,OAAwB;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;IACvB,CAAC;IACM,IAAI;QACT,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;IACzC,CAAC;IACD;;;;;;;;;OASG;IACI,KAAK,CAAC,IAAI,CACf,qBAA4C,EAC5C,iBAAqC;QAErC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,CAAS,IAAI,CAAC,IAAI,EAAE,EAAE,qBAAqB,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC;QACvG,OAAO,CAAC,CAAC,IAAI,CAAC;IAChB,CAAC;CACF;AACD,kBAAe,KAAK,CAAC"}
@@ -1,73 +0,0 @@
1
- import type IdentityExtraValues from './IdentityExtraValues';
2
-
3
- interface ImportIdentityRequest {
4
- /**
5
- * Identifier of the identity on the remote channel.
6
- * Required
7
- * Example: 9680ab94-3b78-495c-bb2c-a969954d8260
8
- */
9
- foreignId?: string;
10
-
11
- /**
12
- * The channel identifier to create the identity for.
13
- * Required
14
- * Example: 541014e17aa58d8ccf000023
15
- */
16
- sourceId?: string;
17
-
18
- /**
19
- * Company.
20
- * Example: Test Company
21
- */
22
- company?: string;
23
-
24
- /**
25
- * FirstName.
26
- * Example: John
27
- */
28
- firstName?: string;
29
-
30
- /**
31
- * Gender.
32
- * Example: Woman
33
- */
34
- gender?: 'Man' | 'Woman';
35
-
36
- /**
37
- * Phone number.
38
- * Example: +33634231224
39
- */
40
- homePhone?: string;
41
-
42
- /**
43
- * LastName.
44
- * Example: Doe
45
- */
46
- lastName?: string;
47
-
48
- /**
49
- * Phone number.
50
- * Example: +33634231224
51
- */
52
- mobilePhone?: string;
53
-
54
- /**
55
- * Screen name of the identity.
56
- * Example: John D.
57
- */
58
- screenName?: string;
59
-
60
- /**
61
- */
62
- extraValues?: IdentityExtraValues;
63
-
64
- /**
65
- * Permit to update an existing identity if set to true.
66
- *
67
- * false by default.
68
- * Example: true
69
- */
70
- upsert?: boolean;
71
- }
72
-
73
- export default ImportIdentityRequest;
@@ -1,27 +0,0 @@
1
- import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types';
2
-
3
- class Index {
4
- public rc: RingCentralInterface;
5
- public _parent: ParentInterface;
6
-
7
- public constructor(_parent: ParentInterface) {
8
- this._parent = _parent;
9
- this.rc = _parent.rc;
10
- }
11
- public path(): string {
12
- return `${this._parent.path()}/anonymize`;
13
- }
14
- /**
15
- * Anonymizes an Identity.
16
- *
17
- * HTTP Method: post
18
- * Endpoint: /cx/social-messaging/v1/identities/{identityId}/anonymize
19
- * Rate Limit Group: Light
20
- * App Permission: SocialMessaging
21
- */
22
- public async post(restRequestConfig?: RestRequestConfig): Promise<string> {
23
- const r = await this.rc.post<string>(this.path(), {}, undefined, restRequestConfig);
24
- return r.data;
25
- }
26
- }
27
- export default Index;
@@ -1,29 +0,0 @@
1
- import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types';
2
-
3
- class Index {
4
- public rc: RingCentralInterface;
5
- public _parent: ParentInterface;
6
-
7
- public constructor(_parent: ParentInterface) {
8
- this._parent = _parent;
9
- this.rc = _parent.rc;
10
- }
11
- public path(): string {
12
- return `${this._parent.path()}/deanonymize`;
13
- }
14
- /**
15
- * Flag Identity for deanonymization.
16
- *
17
- * The next time a content from this Identity will be imported, the identity will be imported again.
18
- *
19
- * HTTP Method: post
20
- * Endpoint: /cx/social-messaging/v1/identities/{identityId}/deanonymize
21
- * Rate Limit Group: Light
22
- * App Permission: SocialMessaging
23
- */
24
- public async post(restRequestConfig?: RestRequestConfig): Promise<string> {
25
- const r = await this.rc.post<string>(this.path(), {}, undefined, restRequestConfig);
26
- return r.data;
27
- }
28
- }
29
- export default Index;
@@ -1,33 +0,0 @@
1
- import type ImportIdentityRequest from '../../../../../../definitions/ImportIdentityRequest';
2
- import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types';
3
-
4
- class Index {
5
- public rc: RingCentralInterface;
6
- public _parent: ParentInterface;
7
-
8
- public constructor(_parent: ParentInterface) {
9
- this._parent = _parent;
10
- this.rc = _parent.rc;
11
- }
12
- public path(): string {
13
- return `${this._parent.path()}/import`;
14
- }
15
- /**
16
- * Import an identity from given identifier.
17
- *
18
- * Available only for Email channels.
19
- *
20
- * HTTP Method: post
21
- * Endpoint: /cx/social-messaging/v1/identities/import
22
- * Rate Limit Group: Light
23
- * App Permission: SocialMessaging
24
- */
25
- public async post(
26
- importIdentityRequest: ImportIdentityRequest,
27
- restRequestConfig?: RestRequestConfig,
28
- ): Promise<string> {
29
- const r = await this.rc.post<string>(this.path(), importIdentityRequest, undefined, restRequestConfig);
30
- return r.data;
31
- }
32
- }
33
- export default Index;