purecloud-platform-client-v2 209.0.0 → 210.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +507 -101
- package/dist/web-amd/purecloud-platform-client-v2.js +507 -101
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +191 -97
- package/dist/web-cjs/purecloud-platform-client-v2.js +260 -160
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +892 -702
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +175 -0
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +240 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +9 -9
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +5 -13
- package/src/purecloud-platform-client-v2/index.js +7 -1
package/package.json
CHANGED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import ApiClient from '../ApiClient.js';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DataPrivacyApi {
|
|
5
|
+
/**
|
|
6
|
+
* DataPrivacy service.
|
|
7
|
+
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
8
|
+
* @version 210.0.0
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Constructs a new DataPrivacyApi.
|
|
13
|
+
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
14
|
+
* @class
|
|
15
|
+
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
16
|
+
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
17
|
+
*/
|
|
18
|
+
constructor(apiClient) {
|
|
19
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Delete a masking rule.
|
|
25
|
+
*
|
|
26
|
+
* @param {String} ruleId ruleId
|
|
27
|
+
*/
|
|
28
|
+
deleteDataprivacyMaskingrule(ruleId) {
|
|
29
|
+
// verify the required parameter 'ruleId' is set
|
|
30
|
+
if (ruleId === undefined || ruleId === null) {
|
|
31
|
+
throw 'Missing the required parameter "ruleId" when calling deleteDataprivacyMaskingrule';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return this.apiClient.callApi(
|
|
35
|
+
'/api/v2/dataprivacy/maskingrules/{ruleId}',
|
|
36
|
+
'DELETE',
|
|
37
|
+
{ 'ruleId': ruleId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
|
+
null,
|
|
42
|
+
['PureCloud OAuth'],
|
|
43
|
+
['application/json'],
|
|
44
|
+
['application/json']
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Fetch details about a masking rule.
|
|
50
|
+
*
|
|
51
|
+
* @param {String} ruleId ruleId
|
|
52
|
+
*/
|
|
53
|
+
getDataprivacyMaskingrule(ruleId) {
|
|
54
|
+
// verify the required parameter 'ruleId' is set
|
|
55
|
+
if (ruleId === undefined || ruleId === null) {
|
|
56
|
+
throw 'Missing the required parameter "ruleId" when calling getDataprivacyMaskingrule';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return this.apiClient.callApi(
|
|
60
|
+
'/api/v2/dataprivacy/maskingrules/{ruleId}',
|
|
61
|
+
'GET',
|
|
62
|
+
{ 'ruleId': ruleId },
|
|
63
|
+
{ },
|
|
64
|
+
{ },
|
|
65
|
+
{ },
|
|
66
|
+
null,
|
|
67
|
+
['PureCloud OAuth'],
|
|
68
|
+
['application/json'],
|
|
69
|
+
['application/json']
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve the list of masking rules.
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
getDataprivacyMaskingrules() {
|
|
78
|
+
|
|
79
|
+
return this.apiClient.callApi(
|
|
80
|
+
'/api/v2/dataprivacy/maskingrules',
|
|
81
|
+
'GET',
|
|
82
|
+
{ },
|
|
83
|
+
{ },
|
|
84
|
+
{ },
|
|
85
|
+
{ },
|
|
86
|
+
null,
|
|
87
|
+
['PureCloud OAuth'],
|
|
88
|
+
['application/json'],
|
|
89
|
+
['application/json']
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Update information about a masking rule.
|
|
95
|
+
*
|
|
96
|
+
* @param {String} ruleId ruleId
|
|
97
|
+
* @param {Object} opts Optional parameters
|
|
98
|
+
* @param {Object} opts.body
|
|
99
|
+
*/
|
|
100
|
+
patchDataprivacyMaskingrule(ruleId, opts) {
|
|
101
|
+
opts = opts || {};
|
|
102
|
+
|
|
103
|
+
// verify the required parameter 'ruleId' is set
|
|
104
|
+
if (ruleId === undefined || ruleId === null) {
|
|
105
|
+
throw 'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return this.apiClient.callApi(
|
|
109
|
+
'/api/v2/dataprivacy/maskingrules/{ruleId}',
|
|
110
|
+
'PATCH',
|
|
111
|
+
{ 'ruleId': ruleId },
|
|
112
|
+
{ },
|
|
113
|
+
{ },
|
|
114
|
+
{ },
|
|
115
|
+
opts['body'],
|
|
116
|
+
['PureCloud OAuth'],
|
|
117
|
+
['application/json'],
|
|
118
|
+
['application/json']
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Create a new masking rule resource.
|
|
124
|
+
*
|
|
125
|
+
* @param {Object} body Details for creating masking rule resource
|
|
126
|
+
*/
|
|
127
|
+
postDataprivacyMaskingrules(body) {
|
|
128
|
+
// verify the required parameter 'body' is set
|
|
129
|
+
if (body === undefined || body === null) {
|
|
130
|
+
throw 'Missing the required parameter "body" when calling postDataprivacyMaskingrules';
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return this.apiClient.callApi(
|
|
134
|
+
'/api/v2/dataprivacy/maskingrules',
|
|
135
|
+
'POST',
|
|
136
|
+
{ },
|
|
137
|
+
{ },
|
|
138
|
+
{ },
|
|
139
|
+
{ },
|
|
140
|
+
body,
|
|
141
|
+
['PureCloud OAuth'],
|
|
142
|
+
['application/json'],
|
|
143
|
+
['application/json']
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Validate masking before creating.
|
|
149
|
+
*
|
|
150
|
+
* @param {Object} body Text to be masked
|
|
151
|
+
*/
|
|
152
|
+
postDataprivacyMaskingrulesValidate(body) {
|
|
153
|
+
// verify the required parameter 'body' is set
|
|
154
|
+
if (body === undefined || body === null) {
|
|
155
|
+
throw 'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return this.apiClient.callApi(
|
|
159
|
+
'/api/v2/dataprivacy/maskingrules/validate',
|
|
160
|
+
'POST',
|
|
161
|
+
{ },
|
|
162
|
+
{ },
|
|
163
|
+
{ },
|
|
164
|
+
{ },
|
|
165
|
+
body,
|
|
166
|
+
['PureCloud OAuth'],
|
|
167
|
+
['application/json'],
|
|
168
|
+
['application/json']
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
export default DataPrivacyApi;
|
|
@@ -5,7 +5,7 @@ class ExternalContactsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* ExternalContacts service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 210.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -150,6 +150,31 @@ class ExternalContactsApi {
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Delete Settings
|
|
155
|
+
*
|
|
156
|
+
* @param {String} settingsId Settings id
|
|
157
|
+
*/
|
|
158
|
+
deleteExternalcontactsImportSetting(settingsId) {
|
|
159
|
+
// verify the required parameter 'settingsId' is set
|
|
160
|
+
if (settingsId === undefined || settingsId === null) {
|
|
161
|
+
throw 'Missing the required parameter "settingsId" when calling deleteExternalcontactsImportSetting';
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return this.apiClient.callApi(
|
|
165
|
+
'/api/v2/externalcontacts/import/settings/{settingsId}',
|
|
166
|
+
'DELETE',
|
|
167
|
+
{ 'settingsId': settingsId },
|
|
168
|
+
{ },
|
|
169
|
+
{ },
|
|
170
|
+
{ },
|
|
171
|
+
null,
|
|
172
|
+
['PureCloud OAuth'],
|
|
173
|
+
['application/json'],
|
|
174
|
+
['application/json']
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
153
178
|
/**
|
|
154
179
|
* Delete an external organization
|
|
155
180
|
*
|
|
@@ -716,6 +741,110 @@ class ExternalContactsApi {
|
|
|
716
741
|
);
|
|
717
742
|
}
|
|
718
743
|
|
|
744
|
+
/**
|
|
745
|
+
* Get job based on id
|
|
746
|
+
*
|
|
747
|
+
* @param {String} jobId Job id
|
|
748
|
+
*/
|
|
749
|
+
getExternalcontactsImportJob(jobId) {
|
|
750
|
+
// verify the required parameter 'jobId' is set
|
|
751
|
+
if (jobId === undefined || jobId === null) {
|
|
752
|
+
throw 'Missing the required parameter "jobId" when calling getExternalcontactsImportJob';
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
return this.apiClient.callApi(
|
|
756
|
+
'/api/v2/externalcontacts/import/jobs/{jobId}',
|
|
757
|
+
'GET',
|
|
758
|
+
{ 'jobId': jobId },
|
|
759
|
+
{ },
|
|
760
|
+
{ },
|
|
761
|
+
{ },
|
|
762
|
+
null,
|
|
763
|
+
['PureCloud OAuth'],
|
|
764
|
+
['application/json'],
|
|
765
|
+
['application/json']
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* List jobs for organization
|
|
771
|
+
*
|
|
772
|
+
* @param {Object} opts Optional parameters
|
|
773
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
774
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100. (default to 25)
|
|
775
|
+
* @param {Object} opts.sortOrder Direction of sorting. (default to Ascending)
|
|
776
|
+
* @param {Object} opts.jobStatus Search term to filter by jobStatus
|
|
777
|
+
*/
|
|
778
|
+
getExternalcontactsImportJobs(opts) {
|
|
779
|
+
opts = opts || {};
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
return this.apiClient.callApi(
|
|
783
|
+
'/api/v2/externalcontacts/import/jobs',
|
|
784
|
+
'GET',
|
|
785
|
+
{ },
|
|
786
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'jobStatus': opts['jobStatus'] },
|
|
787
|
+
{ },
|
|
788
|
+
{ },
|
|
789
|
+
null,
|
|
790
|
+
['PureCloud OAuth'],
|
|
791
|
+
['application/json'],
|
|
792
|
+
['application/json']
|
|
793
|
+
);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Get setting based on id
|
|
798
|
+
*
|
|
799
|
+
* @param {String} settingsId Settings id
|
|
800
|
+
*/
|
|
801
|
+
getExternalcontactsImportSetting(settingsId) {
|
|
802
|
+
// verify the required parameter 'settingsId' is set
|
|
803
|
+
if (settingsId === undefined || settingsId === null) {
|
|
804
|
+
throw 'Missing the required parameter "settingsId" when calling getExternalcontactsImportSetting';
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
return this.apiClient.callApi(
|
|
808
|
+
'/api/v2/externalcontacts/import/settings/{settingsId}',
|
|
809
|
+
'GET',
|
|
810
|
+
{ 'settingsId': settingsId },
|
|
811
|
+
{ },
|
|
812
|
+
{ },
|
|
813
|
+
{ },
|
|
814
|
+
null,
|
|
815
|
+
['PureCloud OAuth'],
|
|
816
|
+
['application/json'],
|
|
817
|
+
['application/json']
|
|
818
|
+
);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* List settings for organization
|
|
823
|
+
*
|
|
824
|
+
* @param {Object} opts Optional parameters
|
|
825
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
826
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100. (default to 25)
|
|
827
|
+
* @param {Object} opts.sortOrder Direction of sorting. (default to Ascending)
|
|
828
|
+
* @param {String} opts.name Search term to filter by settings name
|
|
829
|
+
*/
|
|
830
|
+
getExternalcontactsImportSettings(opts) {
|
|
831
|
+
opts = opts || {};
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
return this.apiClient.callApi(
|
|
835
|
+
'/api/v2/externalcontacts/import/settings',
|
|
836
|
+
'GET',
|
|
837
|
+
{ },
|
|
838
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'name': opts['name'] },
|
|
839
|
+
{ },
|
|
840
|
+
{ },
|
|
841
|
+
null,
|
|
842
|
+
['PureCloud OAuth'],
|
|
843
|
+
['application/json'],
|
|
844
|
+
['application/json']
|
|
845
|
+
);
|
|
846
|
+
}
|
|
847
|
+
|
|
719
848
|
/**
|
|
720
849
|
* Fetch an external organization
|
|
721
850
|
*
|
|
@@ -1854,6 +1983,56 @@ class ExternalContactsApi {
|
|
|
1854
1983
|
);
|
|
1855
1984
|
}
|
|
1856
1985
|
|
|
1986
|
+
/**
|
|
1987
|
+
* Create a new job
|
|
1988
|
+
*
|
|
1989
|
+
* @param {Object} body Job
|
|
1990
|
+
*/
|
|
1991
|
+
postExternalcontactsImportJobs(body) {
|
|
1992
|
+
// verify the required parameter 'body' is set
|
|
1993
|
+
if (body === undefined || body === null) {
|
|
1994
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsImportJobs';
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
return this.apiClient.callApi(
|
|
1998
|
+
'/api/v2/externalcontacts/import/jobs',
|
|
1999
|
+
'POST',
|
|
2000
|
+
{ },
|
|
2001
|
+
{ },
|
|
2002
|
+
{ },
|
|
2003
|
+
{ },
|
|
2004
|
+
body,
|
|
2005
|
+
['PureCloud OAuth'],
|
|
2006
|
+
['application/json'],
|
|
2007
|
+
['application/json']
|
|
2008
|
+
);
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
/**
|
|
2012
|
+
* Create a new settings
|
|
2013
|
+
*
|
|
2014
|
+
* @param {Object} body Setting
|
|
2015
|
+
*/
|
|
2016
|
+
postExternalcontactsImportSettings(body) {
|
|
2017
|
+
// verify the required parameter 'body' is set
|
|
2018
|
+
if (body === undefined || body === null) {
|
|
2019
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsImportSettings';
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
return this.apiClient.callApi(
|
|
2023
|
+
'/api/v2/externalcontacts/import/settings',
|
|
2024
|
+
'POST',
|
|
2025
|
+
{ },
|
|
2026
|
+
{ },
|
|
2027
|
+
{ },
|
|
2028
|
+
{ },
|
|
2029
|
+
body,
|
|
2030
|
+
['PureCloud OAuth'],
|
|
2031
|
+
['application/json'],
|
|
2032
|
+
['application/json']
|
|
2033
|
+
);
|
|
2034
|
+
}
|
|
2035
|
+
|
|
1857
2036
|
/**
|
|
1858
2037
|
* Merge two contacts into a new contact record
|
|
1859
2038
|
* Two curated contacts cannot be merged. Refer to the Contact Merging article on the Developer Center for details
|
|
@@ -2169,6 +2348,66 @@ class ExternalContactsApi {
|
|
|
2169
2348
|
);
|
|
2170
2349
|
}
|
|
2171
2350
|
|
|
2351
|
+
/**
|
|
2352
|
+
* Update Job's workflow status
|
|
2353
|
+
*
|
|
2354
|
+
* @param {String} jobId Job id
|
|
2355
|
+
* @param {Object} body Status of the Job's workflow
|
|
2356
|
+
*/
|
|
2357
|
+
putExternalcontactsImportJob(jobId, body) {
|
|
2358
|
+
// verify the required parameter 'jobId' is set
|
|
2359
|
+
if (jobId === undefined || jobId === null) {
|
|
2360
|
+
throw 'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';
|
|
2361
|
+
}
|
|
2362
|
+
// verify the required parameter 'body' is set
|
|
2363
|
+
if (body === undefined || body === null) {
|
|
2364
|
+
throw 'Missing the required parameter "body" when calling putExternalcontactsImportJob';
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
return this.apiClient.callApi(
|
|
2368
|
+
'/api/v2/externalcontacts/import/jobs/{jobId}',
|
|
2369
|
+
'PUT',
|
|
2370
|
+
{ 'jobId': jobId },
|
|
2371
|
+
{ },
|
|
2372
|
+
{ },
|
|
2373
|
+
{ },
|
|
2374
|
+
body,
|
|
2375
|
+
['PureCloud OAuth'],
|
|
2376
|
+
['application/json'],
|
|
2377
|
+
['application/json']
|
|
2378
|
+
);
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* Update settings
|
|
2383
|
+
*
|
|
2384
|
+
* @param {String} settingsId Settings id
|
|
2385
|
+
* @param {Object} body Setting
|
|
2386
|
+
*/
|
|
2387
|
+
putExternalcontactsImportSetting(settingsId, body) {
|
|
2388
|
+
// verify the required parameter 'settingsId' is set
|
|
2389
|
+
if (settingsId === undefined || settingsId === null) {
|
|
2390
|
+
throw 'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';
|
|
2391
|
+
}
|
|
2392
|
+
// verify the required parameter 'body' is set
|
|
2393
|
+
if (body === undefined || body === null) {
|
|
2394
|
+
throw 'Missing the required parameter "body" when calling putExternalcontactsImportSetting';
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
return this.apiClient.callApi(
|
|
2398
|
+
'/api/v2/externalcontacts/import/settings/{settingsId}',
|
|
2399
|
+
'PUT',
|
|
2400
|
+
{ 'settingsId': settingsId },
|
|
2401
|
+
{ },
|
|
2402
|
+
{ },
|
|
2403
|
+
{ },
|
|
2404
|
+
body,
|
|
2405
|
+
['PureCloud OAuth'],
|
|
2406
|
+
['application/json'],
|
|
2407
|
+
['application/json']
|
|
2408
|
+
);
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2172
2411
|
/**
|
|
2173
2412
|
* Update an external organization
|
|
2174
2413
|
*
|