purecloud-platform-client-v2 137.0.0 → 138.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 +9 -12
- package/dist/node/purecloud-platform-client-v2.js +368 -342
- package/dist/web-amd/purecloud-platform-client-v2.js +368 -342
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +375 -342
- package/dist/web-cjs/purecloud-platform-client-v2.js +2169 -4573
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +419 -5565
- package/package.json +2 -2
- package/src/purecloud-platform-client-v2/ApiClient.js +195 -176
- 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/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/ExternalContactsApi.js +1 -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/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- 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/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/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/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/ScriptsApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/SearchApi.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/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 +7 -7
- package/src/purecloud-platform-client-v2/index.js +150 -145
- package/src/purecloud-platform-client-v2/logger.js +17 -13
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var axios = require('axios');
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
8
8
|
|
|
9
9
|
var PureCloudRegionHosts = {
|
|
10
10
|
us_east_1: 'mypurecloud.com',
|
|
@@ -147,34 +147,38 @@ class Logger {
|
|
|
147
147
|
|
|
148
148
|
formatLog(level, statusCode, method, url, requestHeaders, responseHeaders, requestBody, responseBody) {
|
|
149
149
|
var result;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
var localRequestHeaders = requestHeaders ? JSON.parse(JSON.stringify(requestHeaders)) : null;
|
|
151
|
+
var localResponseHeaders = responseHeaders ? JSON.parse(JSON.stringify(responseHeaders)) : null;
|
|
152
|
+
var localRequestBody = requestBody ? JSON.parse(JSON.stringify(requestBody)) : null;
|
|
153
|
+
var localResponseBody = responseBody ? JSON.parse(JSON.stringify(responseBody)) : null;
|
|
154
|
+
if (requestHeaders) localRequestHeaders['Authorization'] = '[REDACTED]';
|
|
155
|
+
if (!this.log_request_body) localRequestBody = undefined;
|
|
156
|
+
if (!this.log_response_body) localResponseBody = undefined;
|
|
153
157
|
if (this.log_format && this.log_format === logFormatEnum.formats.JSON) {
|
|
154
158
|
result = {
|
|
155
159
|
level: level,
|
|
156
160
|
date: new Date().toISOString(),
|
|
157
161
|
method: method,
|
|
158
162
|
url: decodeURIComponent(url),
|
|
159
|
-
correlationId:
|
|
163
|
+
correlationId: localResponseHeaders ? (localResponseHeaders['inin-correlation-id'] ? localResponseHeaders['inin-correlation-id'] : '') : '',
|
|
160
164
|
statusCode: statusCode,
|
|
161
165
|
};
|
|
162
|
-
if (
|
|
163
|
-
if (
|
|
164
|
-
if (
|
|
165
|
-
if (
|
|
166
|
+
if (localRequestHeaders) result.requestHeaders = localRequestHeaders;
|
|
167
|
+
if (localResponseHeaders) result.responseHeaders = localResponseHeaders;
|
|
168
|
+
if (localRequestBody) result.requestBody = localRequestBody;
|
|
169
|
+
if (localResponseBody) result.responseBody = localResponseBody;
|
|
166
170
|
} else {
|
|
167
171
|
result = `${new Date().toISOString()}
|
|
168
172
|
=== REQUEST ===
|
|
169
173
|
${this.formatValue('URL', decodeURIComponent(url))}${this.formatValue('Method', method)}${this.formatValue(
|
|
170
174
|
'Headers',
|
|
171
|
-
this.formatHeaderString(
|
|
172
|
-
)}${this.formatValue('Body',
|
|
175
|
+
this.formatHeaderString(localRequestHeaders)
|
|
176
|
+
)}${this.formatValue('Body', localRequestBody ? JSON.stringify(localRequestBody, null, 2) : '')}
|
|
173
177
|
=== RESPONSE ===
|
|
174
|
-
${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.formatHeaderString(
|
|
178
|
+
${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.formatHeaderString(localResponseHeaders))}${this.formatValue(
|
|
175
179
|
'CorrelationId',
|
|
176
|
-
|
|
177
|
-
)}${this.formatValue('Body',
|
|
180
|
+
localResponseHeaders ? (localResponseHeaders['inin-correlation-id'] ? localResponseHeaders['inin-correlation-id'] : '') : ''
|
|
181
|
+
)}${this.formatValue('Body', localResponseBody ? JSON.stringify(localResponseBody, null, 2) : '')}`;
|
|
178
182
|
}
|
|
179
183
|
|
|
180
184
|
return result;
|
|
@@ -395,7 +399,7 @@ class Configuration {
|
|
|
395
399
|
|
|
396
400
|
/**
|
|
397
401
|
* @module purecloud-platform-client-v2/ApiClient
|
|
398
|
-
* @version
|
|
402
|
+
* @version 138.0.0
|
|
399
403
|
*/
|
|
400
404
|
class ApiClient {
|
|
401
405
|
/**
|
|
@@ -497,9 +501,6 @@ class ApiClient {
|
|
|
497
501
|
this.authData = {};
|
|
498
502
|
this.settingsPrefix = 'purecloud';
|
|
499
503
|
|
|
500
|
-
// Expose superagent module for use with superagent-proxy
|
|
501
|
-
this.superagent = superagent__default["default"];
|
|
502
|
-
|
|
503
504
|
// Transparently request a new access token when it expires (Code Authorization only)
|
|
504
505
|
this.refreshInProgress = false;
|
|
505
506
|
|
|
@@ -668,63 +669,65 @@ class ApiClient {
|
|
|
668
669
|
return;
|
|
669
670
|
}
|
|
670
671
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
// Log error
|
|
683
|
-
this.config.logger.log(
|
|
684
|
-
'error',
|
|
685
|
-
response.statusCode,
|
|
686
|
-
'POST',
|
|
687
|
-
`https://login.${this.config.environment}/oauth/token`,
|
|
688
|
-
request.header,
|
|
689
|
-
response.headers,
|
|
690
|
-
{ grant_type: 'client_credentials' },
|
|
691
|
-
response.body
|
|
692
|
-
);
|
|
693
|
-
reject(error);
|
|
694
|
-
} else {
|
|
672
|
+
const headers = {
|
|
673
|
+
'Authorization': `Basic ${authHeader}`
|
|
674
|
+
};
|
|
675
|
+
axios__default["default"]({
|
|
676
|
+
method: `POST`,
|
|
677
|
+
url: `https://login.${this.config.environment}/oauth/token`,
|
|
678
|
+
headers: headers,
|
|
679
|
+
data: 'grant_type=client_credentials',
|
|
680
|
+
proxy: this.proxy
|
|
681
|
+
})
|
|
682
|
+
.then((response) => {
|
|
695
683
|
// Logging
|
|
696
684
|
this.config.logger.log(
|
|
697
685
|
'trace',
|
|
698
|
-
response.
|
|
686
|
+
response.status,
|
|
699
687
|
'POST',
|
|
700
688
|
`https://login.${this.config.environment}/oauth/token`,
|
|
701
|
-
|
|
689
|
+
headers,
|
|
702
690
|
response.headers,
|
|
703
691
|
{ grant_type: 'client_credentials' },
|
|
704
692
|
undefined
|
|
705
693
|
);
|
|
706
694
|
this.config.logger.log(
|
|
707
695
|
'debug',
|
|
708
|
-
response.
|
|
696
|
+
response.status,
|
|
709
697
|
'POST',
|
|
710
698
|
`https://login.${this.config.environment}/oauth/token`,
|
|
711
|
-
|
|
699
|
+
headers,
|
|
712
700
|
undefined,
|
|
713
701
|
{ grant_type: 'client_credentials' },
|
|
714
702
|
undefined
|
|
715
703
|
);
|
|
716
704
|
|
|
717
705
|
// Save access token
|
|
718
|
-
this.setAccessToken(response.
|
|
706
|
+
this.setAccessToken(response.data['access_token']);
|
|
719
707
|
|
|
720
708
|
// Set expiry time
|
|
721
|
-
this.authData.tokenExpiryTime = (new Date()).getTime() + (response.
|
|
709
|
+
this.authData.tokenExpiryTime = (new Date()).getTime() + (response.data['expires_in'] * 1000);
|
|
722
710
|
this.authData.tokenExpiryTimeString = (new Date(this.authData.tokenExpiryTime)).toUTCString();
|
|
723
711
|
|
|
724
712
|
// Return auth data
|
|
725
713
|
resolve(this.authData);
|
|
726
|
-
}
|
|
727
|
-
|
|
714
|
+
})
|
|
715
|
+
.catch((error) => {
|
|
716
|
+
// Log error
|
|
717
|
+
if (error.response) {
|
|
718
|
+
this.config.logger.log(
|
|
719
|
+
'error',
|
|
720
|
+
error.response.status,
|
|
721
|
+
'POST',
|
|
722
|
+
`https://login.${this.config.environment}/oauth/token`,
|
|
723
|
+
headers,
|
|
724
|
+
error.response.headers,
|
|
725
|
+
{ grant_type: 'client_credentials' },
|
|
726
|
+
error.response.data
|
|
727
|
+
);
|
|
728
|
+
}
|
|
729
|
+
reject(error);
|
|
730
|
+
});
|
|
728
731
|
});
|
|
729
732
|
}
|
|
730
733
|
|
|
@@ -747,9 +750,7 @@ class ApiClient {
|
|
|
747
750
|
{ grant_type: 'urn:ietf:params:oauth:grant-type:saml2-bearer' },
|
|
748
751
|
{ orgName: orgName },
|
|
749
752
|
{ assertion: assertion });
|
|
750
|
-
|
|
751
|
-
request.proxy(this.proxy);
|
|
752
|
-
}
|
|
753
|
+
request.proxy = this.proxy;
|
|
753
754
|
var bodyParam = {
|
|
754
755
|
grant_type: 'urn:ietf:params:oauth:grant-type:saml2-bearer',
|
|
755
756
|
orgName: orgName,
|
|
@@ -757,54 +758,56 @@ class ApiClient {
|
|
|
757
758
|
};
|
|
758
759
|
|
|
759
760
|
// Handle response
|
|
760
|
-
request
|
|
761
|
-
|
|
762
|
-
// Log error
|
|
763
|
-
this.config.logger.log(
|
|
764
|
-
'error',
|
|
765
|
-
response.statusCode,
|
|
766
|
-
'POST',
|
|
767
|
-
`https://login.${this.config.environment}/oauth/token`,
|
|
768
|
-
request.header,
|
|
769
|
-
response.headers,
|
|
770
|
-
bodyParam,
|
|
771
|
-
response.body
|
|
772
|
-
);
|
|
773
|
-
reject(error);
|
|
774
|
-
} else {
|
|
761
|
+
request
|
|
762
|
+
.then((response) => {
|
|
775
763
|
// Logging
|
|
776
764
|
this.config.logger.log(
|
|
777
765
|
'trace',
|
|
778
|
-
response.
|
|
766
|
+
response.status,
|
|
779
767
|
'POST',
|
|
780
768
|
`https://login.${this.config.environment}/oauth/token`,
|
|
781
|
-
request.
|
|
769
|
+
request.headers,
|
|
782
770
|
response.headers,
|
|
783
771
|
bodyParam,
|
|
784
772
|
undefined
|
|
785
773
|
);
|
|
786
774
|
this.config.logger.log(
|
|
787
775
|
'debug',
|
|
788
|
-
response.
|
|
776
|
+
response.status,
|
|
789
777
|
'POST',
|
|
790
778
|
`https://login.${this.config.environment}/oauth/token`,
|
|
791
|
-
request.
|
|
779
|
+
request.headers,
|
|
792
780
|
undefined,
|
|
793
781
|
bodyParam,
|
|
794
782
|
undefined
|
|
795
783
|
);
|
|
796
784
|
|
|
797
785
|
// Get access token from response
|
|
798
|
-
var access_token = response.
|
|
786
|
+
var access_token = response.data.access_token;
|
|
799
787
|
|
|
800
788
|
this.setAccessToken(access_token);
|
|
801
|
-
this.authData.tokenExpiryTime = new Date().getTime() + response.
|
|
789
|
+
this.authData.tokenExpiryTime = new Date().getTime() + response.data['expires_in'] * 1000;
|
|
802
790
|
this.authData.tokenExpiryTimeString = new Date(this.authData.tokenExpiryTime).toUTCString();
|
|
803
791
|
|
|
804
792
|
// Return auth data
|
|
805
793
|
resolve(this.authData);
|
|
806
|
-
}
|
|
807
|
-
|
|
794
|
+
})
|
|
795
|
+
.catch((error) => {
|
|
796
|
+
// Log error
|
|
797
|
+
if (error.response) {
|
|
798
|
+
this.config.logger.log(
|
|
799
|
+
'error',
|
|
800
|
+
error.response.status,
|
|
801
|
+
'POST',
|
|
802
|
+
`https://login.${this.config.environment}/oauth/token`,
|
|
803
|
+
request.headers,
|
|
804
|
+
error.response.headers,
|
|
805
|
+
bodyParam,
|
|
806
|
+
error.response.data
|
|
807
|
+
);
|
|
808
|
+
}
|
|
809
|
+
reject(error);
|
|
810
|
+
});
|
|
808
811
|
});
|
|
809
812
|
}
|
|
810
813
|
|
|
@@ -828,9 +831,7 @@ class ApiClient {
|
|
|
828
831
|
{ grant_type: 'authorization_code' },
|
|
829
832
|
{ code: authCode },
|
|
830
833
|
{ redirect_uri: redirectUri });
|
|
831
|
-
|
|
832
|
-
request.proxy(this.proxy);
|
|
833
|
-
}
|
|
834
|
+
request.proxy = this.proxy;
|
|
834
835
|
var bodyParam = {
|
|
835
836
|
grant_type: 'authorization_code',
|
|
836
837
|
code: authCode,
|
|
@@ -856,9 +857,7 @@ class ApiClient {
|
|
|
856
857
|
}
|
|
857
858
|
var encodedData = Buffer.from(clientId + ':' + clientSecret).toString('base64');
|
|
858
859
|
var request = this._formAuthRequest(encodedData, { grant_type: 'refresh_token' }, { refresh_token: refreshToken });
|
|
859
|
-
|
|
860
|
-
request.proxy(this.proxy);
|
|
861
|
-
}
|
|
860
|
+
request.proxy = this.proxy;
|
|
862
861
|
var bodyParam = {
|
|
863
862
|
grant_type: 'refresh_token',
|
|
864
863
|
refresh_token: refreshToken,
|
|
@@ -876,57 +875,59 @@ class ApiClient {
|
|
|
876
875
|
* @param {function} reject - Promise reject callback
|
|
877
876
|
*/
|
|
878
877
|
_handleCodeAuthorizationResponse(request, bodyParam, resolve, reject) {
|
|
879
|
-
request
|
|
880
|
-
|
|
881
|
-
// Log error
|
|
882
|
-
this.config.logger.log(
|
|
883
|
-
'error',
|
|
884
|
-
response.statusCode,
|
|
885
|
-
'POST',
|
|
886
|
-
`https://login.${this.config.environment}/oauth/token`,
|
|
887
|
-
request.header,
|
|
888
|
-
response.headers,
|
|
889
|
-
bodyParam,
|
|
890
|
-
response.body
|
|
891
|
-
);
|
|
892
|
-
|
|
893
|
-
reject(error);
|
|
894
|
-
} else {
|
|
878
|
+
request
|
|
879
|
+
.then((response) => {
|
|
895
880
|
// Logging
|
|
896
881
|
this.config.logger.log(
|
|
897
882
|
'trace',
|
|
898
|
-
response.
|
|
883
|
+
response.status,
|
|
899
884
|
'POST',
|
|
900
885
|
`https://login.${this.config.environment}/oauth/token`,
|
|
901
|
-
request.
|
|
886
|
+
request.headers,
|
|
902
887
|
response.headers,
|
|
903
888
|
bodyParam,
|
|
904
889
|
undefined
|
|
905
890
|
);
|
|
906
891
|
this.config.logger.log(
|
|
907
892
|
'debug',
|
|
908
|
-
response.
|
|
893
|
+
response.status,
|
|
909
894
|
'POST',
|
|
910
895
|
`https://login.${this.config.environment}/oauth/token`,
|
|
911
|
-
request.
|
|
896
|
+
request.headers,
|
|
912
897
|
undefined,
|
|
913
898
|
bodyParam,
|
|
914
899
|
undefined
|
|
915
900
|
);
|
|
916
901
|
|
|
917
902
|
// Get access token from response
|
|
918
|
-
var access_token = response.
|
|
919
|
-
var refresh_token = response.
|
|
903
|
+
var access_token = response.data.access_token;
|
|
904
|
+
var refresh_token = response.data.refresh_token;
|
|
920
905
|
|
|
921
906
|
this.setAccessToken(access_token);
|
|
922
907
|
this.authData.refreshToken = refresh_token;
|
|
923
|
-
this.authData.tokenExpiryTime = new Date().getTime() + response.
|
|
908
|
+
this.authData.tokenExpiryTime = new Date().getTime() + response.data['expires_in'] * 1000;
|
|
924
909
|
this.authData.tokenExpiryTimeString = new Date(this.authData.tokenExpiryTime).toUTCString();
|
|
925
910
|
|
|
926
911
|
// Return auth data
|
|
927
912
|
resolve(this.authData);
|
|
928
|
-
}
|
|
929
|
-
|
|
913
|
+
})
|
|
914
|
+
.catch((error) => {
|
|
915
|
+
// Log error
|
|
916
|
+
if (error.response) {
|
|
917
|
+
this.config.logger.log(
|
|
918
|
+
'error',
|
|
919
|
+
error.response.status,
|
|
920
|
+
'POST',
|
|
921
|
+
`https://login.${this.config.environment}/oauth/token`,
|
|
922
|
+
request.headers,
|
|
923
|
+
error.response.headers,
|
|
924
|
+
bodyParam,
|
|
925
|
+
error.response.data
|
|
926
|
+
);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
reject(error);
|
|
930
|
+
});
|
|
930
931
|
}
|
|
931
932
|
|
|
932
933
|
/**
|
|
@@ -934,15 +935,15 @@ class ApiClient {
|
|
|
934
935
|
* @param {string} encodedData - Base64 encoded client and clientSecret pair
|
|
935
936
|
*/
|
|
936
937
|
_formAuthRequest(encodedData) {
|
|
937
|
-
var request =
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
938
|
+
var request = axios__default["default"]({
|
|
939
|
+
method: `POST`,
|
|
940
|
+
url: `https://login.${this.config.environment}/oauth/token`,
|
|
941
|
+
headers: {
|
|
942
|
+
'Authorization': 'Basic ' + encodedData,
|
|
943
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
944
|
+
},
|
|
945
|
+
data: arguments
|
|
946
|
+
});
|
|
946
947
|
|
|
947
948
|
return request;
|
|
948
949
|
}
|
|
@@ -1143,6 +1144,36 @@ class ApiClient {
|
|
|
1143
1144
|
return param.toString();
|
|
1144
1145
|
}
|
|
1145
1146
|
|
|
1147
|
+
/**
|
|
1148
|
+
* Returns query parameters serialized in the format needed for an axios request.
|
|
1149
|
+
* @param param The unserialized query parameters.
|
|
1150
|
+
* @returns {Object} The serialized representation the query parameters.
|
|
1151
|
+
*/
|
|
1152
|
+
serialize(obj) {
|
|
1153
|
+
var result = {};
|
|
1154
|
+
for (var p in obj) {
|
|
1155
|
+
if (obj.hasOwnProperty(p)) {
|
|
1156
|
+
result[encodeURIComponent(p)] = Array.isArray(obj[p]) ? obj[p].join(",") : this.paramToString(obj[p]);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
return result
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Adds headers onto an existing header object (may be empty)
|
|
1164
|
+
* @param existingHeaders The existing header object.
|
|
1165
|
+
* @param newHeaders New headers.
|
|
1166
|
+
* @returns {Object} The combination of all headers.
|
|
1167
|
+
*/
|
|
1168
|
+
addHeaders(existingHeaders, ...newHeaders) {
|
|
1169
|
+
if (existingHeaders) {
|
|
1170
|
+
existingHeaders = Object.assign(existingHeaders, ...newHeaders);
|
|
1171
|
+
} else {
|
|
1172
|
+
existingHeaders = Object.assign(...newHeaders);
|
|
1173
|
+
}
|
|
1174
|
+
return existingHeaders;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1146
1177
|
/**
|
|
1147
1178
|
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
|
1148
1179
|
* NOTE: query parameters are not handled here.
|
|
@@ -1269,7 +1300,7 @@ class ApiClient {
|
|
|
1269
1300
|
case 'pipes':
|
|
1270
1301
|
return param.map(this.paramToString).join('|');
|
|
1271
1302
|
case 'multi':
|
|
1272
|
-
// return the array directly as
|
|
1303
|
+
// return the array directly as axios will handle it as expected
|
|
1273
1304
|
return param.map(this.paramToString);
|
|
1274
1305
|
default:
|
|
1275
1306
|
throw new Error(`Unknown collection format: ${collectionFormat}`);
|
|
@@ -1278,7 +1309,7 @@ class ApiClient {
|
|
|
1278
1309
|
|
|
1279
1310
|
/**
|
|
1280
1311
|
* Applies authentication headers to the request.
|
|
1281
|
-
* @param {Object} request The request object
|
|
1312
|
+
* @param {Object} request The axios request config object.
|
|
1282
1313
|
* @param {Array.<String>} authNames An array of authentication method names.
|
|
1283
1314
|
*/
|
|
1284
1315
|
applyAuthToRequest(request, authNames) {
|
|
@@ -1287,7 +1318,10 @@ class ApiClient {
|
|
|
1287
1318
|
switch (auth.type) {
|
|
1288
1319
|
case 'basic':
|
|
1289
1320
|
if (auth.username || auth.password) {
|
|
1290
|
-
request.auth
|
|
1321
|
+
request.auth = {
|
|
1322
|
+
username: auth.username || '',
|
|
1323
|
+
password: auth.password || ''
|
|
1324
|
+
};
|
|
1291
1325
|
}
|
|
1292
1326
|
break;
|
|
1293
1327
|
case 'apiKey':
|
|
@@ -1299,15 +1333,15 @@ class ApiClient {
|
|
|
1299
1333
|
data[auth.name] = auth.apiKey;
|
|
1300
1334
|
}
|
|
1301
1335
|
if (auth['in'] === 'header') {
|
|
1302
|
-
request.
|
|
1336
|
+
request.headers = this.addHeaders(request.headers, data);
|
|
1303
1337
|
} else {
|
|
1304
|
-
request.
|
|
1338
|
+
request.params = this.serialize(data);
|
|
1305
1339
|
}
|
|
1306
1340
|
}
|
|
1307
1341
|
break;
|
|
1308
1342
|
case 'oauth2':
|
|
1309
1343
|
if (auth.accessToken) {
|
|
1310
|
-
request.
|
|
1344
|
+
request.headers = this.addHeaders(request.headers, {'Authorization': `Bearer ${auth.accessToken}`});
|
|
1311
1345
|
}
|
|
1312
1346
|
break;
|
|
1313
1347
|
default:
|
|
@@ -1336,86 +1370,71 @@ class ApiClient {
|
|
|
1336
1370
|
sendRequest(this);
|
|
1337
1371
|
function sendRequest(that) {
|
|
1338
1372
|
var url = that.buildUrl(path, pathParams);
|
|
1339
|
-
var request =
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1373
|
+
var request = {
|
|
1374
|
+
method: httpMethod,
|
|
1375
|
+
url: url,
|
|
1376
|
+
proxy: that.proxy,
|
|
1377
|
+
timeout: that.timeout,
|
|
1378
|
+
params: that.serialize(queryParams)
|
|
1379
|
+
};
|
|
1344
1380
|
|
|
1345
1381
|
// apply authentications
|
|
1346
1382
|
that.applyAuthToRequest(request, authNames);
|
|
1347
1383
|
|
|
1348
|
-
// set query parameters
|
|
1349
|
-
request.query(that.normalizeParams(queryParams));
|
|
1350
|
-
|
|
1351
1384
|
// set header parameters
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
// set request timeout
|
|
1356
|
-
request.timeout(that.timeout);
|
|
1385
|
+
const defaultHeaders = that.defaultHeaders;
|
|
1386
|
+
const normalizedHeaderParams = that.normalizeParams(headerParams);
|
|
1387
|
+
request.headers = that.addHeaders(request.headers, defaultHeaders, normalizedHeaderParams);
|
|
1357
1388
|
|
|
1358
1389
|
var contentType = that.jsonPreferredMime(contentTypes);
|
|
1359
1390
|
if (contentType) {
|
|
1360
|
-
request.
|
|
1361
|
-
} else if (!request.
|
|
1362
|
-
request.
|
|
1391
|
+
request.headers['Content-Type'] = contentType;
|
|
1392
|
+
} else if (!request.headers['Content-Type']) {
|
|
1393
|
+
request.headers['Content-Type'] = 'application/json';
|
|
1363
1394
|
}
|
|
1364
1395
|
|
|
1365
1396
|
if (contentType === 'application/x-www-form-urlencoded') {
|
|
1366
|
-
request.
|
|
1397
|
+
request.data = that.normalizeParams(formParams);
|
|
1367
1398
|
} else if (contentType == 'multipart/form-data') {
|
|
1368
1399
|
var _formParams = that.normalizeParams(formParams);
|
|
1369
1400
|
for (var key in _formParams) {
|
|
1370
1401
|
if (_formParams.hasOwnProperty(key)) {
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
request.field(key, _formParams[key]);
|
|
1376
|
-
}
|
|
1402
|
+
// Looks like axios handles files and forms the same way
|
|
1403
|
+
var formData = new FormData();
|
|
1404
|
+
formData.set(key, _formParams[key]);
|
|
1405
|
+
request.data = formData;
|
|
1377
1406
|
}
|
|
1378
1407
|
}
|
|
1379
1408
|
} else if (bodyParam) {
|
|
1380
|
-
request.
|
|
1409
|
+
request.data = bodyParam;
|
|
1381
1410
|
}
|
|
1382
1411
|
|
|
1383
1412
|
var accept = that.jsonPreferredMime(accepts);
|
|
1384
1413
|
if (accept) {
|
|
1385
|
-
request.accept
|
|
1414
|
+
request.headers['Accept'] = accept;
|
|
1386
1415
|
}
|
|
1387
|
-
request
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
error: error
|
|
1410
|
-
} : response.body ? response.body : response.text;
|
|
1411
|
-
|
|
1412
|
-
// Debug logging
|
|
1413
|
-
that.config.logger.log('trace', response.statusCode, httpMethod, url, request.header, response.headers, bodyParam, undefined);
|
|
1414
|
-
that.config.logger.log('debug', response.statusCode, httpMethod, url, request.header, undefined, bodyParam, undefined);
|
|
1415
|
-
|
|
1416
|
-
// Resolve promise
|
|
1417
|
-
if (error) {
|
|
1418
|
-
if (data.status == 401 && that.config.refresh_access_token && that.authData.refreshToken !== "") {
|
|
1416
|
+
axios__default["default"].request(request)
|
|
1417
|
+
.then((response) => {
|
|
1418
|
+
// Build response object
|
|
1419
|
+
var data = (that.returnExtended === true) ? {
|
|
1420
|
+
status: response.status,
|
|
1421
|
+
statusText: response.statusText,
|
|
1422
|
+
headers: response.headers,
|
|
1423
|
+
body: response.data,
|
|
1424
|
+
text: response.text,
|
|
1425
|
+
error: null
|
|
1426
|
+
} : response.data ? response.data : response.text;
|
|
1427
|
+
|
|
1428
|
+
// Debug logging
|
|
1429
|
+
that.config.logger.log('trace', response.status, httpMethod, url, request.headers, response.headers, bodyParam, undefined);
|
|
1430
|
+
that.config.logger.log('debug', response.status, httpMethod, url, request.headers, undefined, bodyParam, undefined);
|
|
1431
|
+
|
|
1432
|
+
// Resolve promise
|
|
1433
|
+
resolve(data);
|
|
1434
|
+
})
|
|
1435
|
+
.catch((error) => {
|
|
1436
|
+
var data = error;
|
|
1437
|
+
if (error.response && error.response.status == 401 && that.config.refresh_access_token && that.authData.refreshToken !== "") {
|
|
1419
1438
|
that._handleExpiredAccessToken()
|
|
1420
1439
|
.then(() => {
|
|
1421
1440
|
sendRequest(that);
|
|
@@ -1423,24 +1442,29 @@ class ApiClient {
|
|
|
1423
1442
|
.catch((err) => {
|
|
1424
1443
|
reject(err);
|
|
1425
1444
|
});
|
|
1426
|
-
} else {
|
|
1445
|
+
} else if (error.response) {
|
|
1427
1446
|
// Log error
|
|
1428
1447
|
that.config.logger.log(
|
|
1429
1448
|
'error',
|
|
1430
|
-
response.
|
|
1449
|
+
error.response.status,
|
|
1431
1450
|
httpMethod,
|
|
1432
1451
|
url,
|
|
1433
|
-
request.
|
|
1434
|
-
response.headers,
|
|
1452
|
+
request.headers,
|
|
1453
|
+
error.response.headers,
|
|
1435
1454
|
bodyParam,
|
|
1436
|
-
response.
|
|
1455
|
+
error.response.data
|
|
1437
1456
|
);
|
|
1438
|
-
|
|
1457
|
+
data = (that.returnExtended === true) ? {
|
|
1458
|
+
status: error.response.status,
|
|
1459
|
+
statusText: error.response.statusText,
|
|
1460
|
+
headers: error.response.headers,
|
|
1461
|
+
body: error.response.data,
|
|
1462
|
+
text: error.response.text,
|
|
1463
|
+
error: error
|
|
1464
|
+
} : error.response.data ? error.response.data : error.response.text;
|
|
1439
1465
|
}
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
}
|
|
1443
|
-
});
|
|
1466
|
+
reject(data);
|
|
1467
|
+
});
|
|
1444
1468
|
}
|
|
1445
1469
|
});
|
|
1446
1470
|
}
|
|
@@ -1450,7 +1474,7 @@ class AlertingApi {
|
|
|
1450
1474
|
/**
|
|
1451
1475
|
* Alerting service.
|
|
1452
1476
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1453
|
-
* @version
|
|
1477
|
+
* @version 138.0.0
|
|
1454
1478
|
*/
|
|
1455
1479
|
|
|
1456
1480
|
/**
|
|
@@ -1764,7 +1788,7 @@ class AnalyticsApi {
|
|
|
1764
1788
|
/**
|
|
1765
1789
|
* Analytics service.
|
|
1766
1790
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1767
|
-
* @version
|
|
1791
|
+
* @version 138.0.0
|
|
1768
1792
|
*/
|
|
1769
1793
|
|
|
1770
1794
|
/**
|
|
@@ -2946,7 +2970,7 @@ class ArchitectApi {
|
|
|
2946
2970
|
/**
|
|
2947
2971
|
* Architect service.
|
|
2948
2972
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
2949
|
-
* @version
|
|
2973
|
+
* @version 138.0.0
|
|
2950
2974
|
*/
|
|
2951
2975
|
|
|
2952
2976
|
/**
|
|
@@ -5991,7 +6015,7 @@ class AuditApi {
|
|
|
5991
6015
|
/**
|
|
5992
6016
|
* Audit service.
|
|
5993
6017
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
5994
|
-
* @version
|
|
6018
|
+
* @version 138.0.0
|
|
5995
6019
|
*/
|
|
5996
6020
|
|
|
5997
6021
|
/**
|
|
@@ -6162,7 +6186,7 @@ class AuthorizationApi {
|
|
|
6162
6186
|
/**
|
|
6163
6187
|
* Authorization service.
|
|
6164
6188
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
6165
|
-
* @version
|
|
6189
|
+
* @version 138.0.0
|
|
6166
6190
|
*/
|
|
6167
6191
|
|
|
6168
6192
|
/**
|
|
@@ -7345,7 +7369,7 @@ class BillingApi {
|
|
|
7345
7369
|
/**
|
|
7346
7370
|
* Billing service.
|
|
7347
7371
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
7348
|
-
* @version
|
|
7372
|
+
* @version 138.0.0
|
|
7349
7373
|
*/
|
|
7350
7374
|
|
|
7351
7375
|
/**
|
|
@@ -7425,7 +7449,7 @@ class ChatApi {
|
|
|
7425
7449
|
/**
|
|
7426
7450
|
* Chat service.
|
|
7427
7451
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
7428
|
-
* @version
|
|
7452
|
+
* @version 138.0.0
|
|
7429
7453
|
*/
|
|
7430
7454
|
|
|
7431
7455
|
/**
|
|
@@ -7516,7 +7540,7 @@ class CoachingApi {
|
|
|
7516
7540
|
/**
|
|
7517
7541
|
* Coaching service.
|
|
7518
7542
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
7519
|
-
* @version
|
|
7543
|
+
* @version 138.0.0
|
|
7520
7544
|
*/
|
|
7521
7545
|
|
|
7522
7546
|
/**
|
|
@@ -8093,7 +8117,7 @@ class ContentManagementApi {
|
|
|
8093
8117
|
/**
|
|
8094
8118
|
* ContentManagement service.
|
|
8095
8119
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
8096
|
-
* @version
|
|
8120
|
+
* @version 138.0.0
|
|
8097
8121
|
*/
|
|
8098
8122
|
|
|
8099
8123
|
/**
|
|
@@ -9233,7 +9257,7 @@ class ConversationsApi {
|
|
|
9233
9257
|
/**
|
|
9234
9258
|
* Conversations service.
|
|
9235
9259
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
9236
|
-
* @version
|
|
9260
|
+
* @version 138.0.0
|
|
9237
9261
|
*/
|
|
9238
9262
|
|
|
9239
9263
|
/**
|
|
@@ -13897,7 +13921,7 @@ class DataExtensionsApi {
|
|
|
13897
13921
|
/**
|
|
13898
13922
|
* DataExtensions service.
|
|
13899
13923
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
13900
|
-
* @version
|
|
13924
|
+
* @version 138.0.0
|
|
13901
13925
|
*/
|
|
13902
13926
|
|
|
13903
13927
|
/**
|
|
@@ -13983,7 +14007,7 @@ class ExternalContactsApi {
|
|
|
13983
14007
|
/**
|
|
13984
14008
|
* ExternalContacts service.
|
|
13985
14009
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
13986
|
-
* @version
|
|
14010
|
+
* @version 138.0.0
|
|
13987
14011
|
*/
|
|
13988
14012
|
|
|
13989
14013
|
/**
|
|
@@ -15726,7 +15750,7 @@ class FaxApi {
|
|
|
15726
15750
|
/**
|
|
15727
15751
|
* Fax service.
|
|
15728
15752
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
15729
|
-
* @version
|
|
15753
|
+
* @version 138.0.0
|
|
15730
15754
|
*/
|
|
15731
15755
|
|
|
15732
15756
|
/**
|
|
@@ -15897,7 +15921,7 @@ class FlowsApi {
|
|
|
15897
15921
|
/**
|
|
15898
15922
|
* Flows service.
|
|
15899
15923
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
15900
|
-
* @version
|
|
15924
|
+
* @version 138.0.0
|
|
15901
15925
|
*/
|
|
15902
15926
|
|
|
15903
15927
|
/**
|
|
@@ -15968,7 +15992,7 @@ class GamificationApi {
|
|
|
15968
15992
|
/**
|
|
15969
15993
|
* Gamification service.
|
|
15970
15994
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
15971
|
-
* @version
|
|
15995
|
+
* @version 138.0.0
|
|
15972
15996
|
*/
|
|
15973
15997
|
|
|
15974
15998
|
/**
|
|
@@ -17398,7 +17422,7 @@ class GeneralDataProtectionRegulationApi {
|
|
|
17398
17422
|
/**
|
|
17399
17423
|
* GeneralDataProtectionRegulation service.
|
|
17400
17424
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
17401
|
-
* @version
|
|
17425
|
+
* @version 138.0.0
|
|
17402
17426
|
*/
|
|
17403
17427
|
|
|
17404
17428
|
/**
|
|
@@ -17528,7 +17552,7 @@ class GeolocationApi {
|
|
|
17528
17552
|
/**
|
|
17529
17553
|
* Geolocation service.
|
|
17530
17554
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
17531
|
-
* @version
|
|
17555
|
+
* @version 138.0.0
|
|
17532
17556
|
*/
|
|
17533
17557
|
|
|
17534
17558
|
/**
|
|
@@ -17659,7 +17683,7 @@ class GreetingsApi {
|
|
|
17659
17683
|
/**
|
|
17660
17684
|
* Greetings service.
|
|
17661
17685
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
17662
|
-
* @version
|
|
17686
|
+
* @version 138.0.0
|
|
17663
17687
|
*/
|
|
17664
17688
|
|
|
17665
17689
|
/**
|
|
@@ -18114,7 +18138,7 @@ class GroupsApi {
|
|
|
18114
18138
|
/**
|
|
18115
18139
|
* Groups service.
|
|
18116
18140
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
18117
|
-
* @version
|
|
18141
|
+
* @version 138.0.0
|
|
18118
18142
|
*/
|
|
18119
18143
|
|
|
18120
18144
|
/**
|
|
@@ -18519,7 +18543,7 @@ class IdentityProviderApi {
|
|
|
18519
18543
|
/**
|
|
18520
18544
|
* IdentityProvider service.
|
|
18521
18545
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
18522
|
-
* @version
|
|
18546
|
+
* @version 138.0.0
|
|
18523
18547
|
*/
|
|
18524
18548
|
|
|
18525
18549
|
/**
|
|
@@ -19275,7 +19299,7 @@ class IntegrationsApi {
|
|
|
19275
19299
|
/**
|
|
19276
19300
|
* Integrations service.
|
|
19277
19301
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
19278
|
-
* @version
|
|
19302
|
+
* @version 138.0.0
|
|
19279
19303
|
*/
|
|
19280
19304
|
|
|
19281
19305
|
/**
|
|
@@ -20952,7 +20976,7 @@ class JourneyApi {
|
|
|
20952
20976
|
/**
|
|
20953
20977
|
* Journey service.
|
|
20954
20978
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
20955
|
-
* @version
|
|
20979
|
+
* @version 138.0.0
|
|
20956
20980
|
*/
|
|
20957
20981
|
|
|
20958
20982
|
/**
|
|
@@ -21663,7 +21687,7 @@ class KnowledgeApi {
|
|
|
21663
21687
|
/**
|
|
21664
21688
|
* Knowledge service.
|
|
21665
21689
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
21666
|
-
* @version
|
|
21690
|
+
* @version 138.0.0
|
|
21667
21691
|
*/
|
|
21668
21692
|
|
|
21669
21693
|
/**
|
|
@@ -22563,7 +22587,7 @@ class LanguageUnderstandingApi {
|
|
|
22563
22587
|
/**
|
|
22564
22588
|
* LanguageUnderstanding service.
|
|
22565
22589
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
22566
|
-
* @version
|
|
22590
|
+
* @version 138.0.0
|
|
22567
22591
|
*/
|
|
22568
22592
|
|
|
22569
22593
|
/**
|
|
@@ -23467,7 +23491,7 @@ class LanguagesApi {
|
|
|
23467
23491
|
/**
|
|
23468
23492
|
* Languages service.
|
|
23469
23493
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
23470
|
-
* @version
|
|
23494
|
+
* @version 138.0.0
|
|
23471
23495
|
*/
|
|
23472
23496
|
|
|
23473
23497
|
/**
|
|
@@ -23735,7 +23759,7 @@ class LearningApi {
|
|
|
23735
23759
|
/**
|
|
23736
23760
|
* Learning service.
|
|
23737
23761
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
23738
|
-
* @version
|
|
23762
|
+
* @version 138.0.0
|
|
23739
23763
|
*/
|
|
23740
23764
|
|
|
23741
23765
|
/**
|
|
@@ -24326,7 +24350,7 @@ class LicenseApi {
|
|
|
24326
24350
|
/**
|
|
24327
24351
|
* License service.
|
|
24328
24352
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
24329
|
-
* @version
|
|
24353
|
+
* @version 138.0.0
|
|
24330
24354
|
*/
|
|
24331
24355
|
|
|
24332
24356
|
/**
|
|
@@ -24564,7 +24588,7 @@ class LocationsApi {
|
|
|
24564
24588
|
/**
|
|
24565
24589
|
* Locations service.
|
|
24566
24590
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
24567
|
-
* @version
|
|
24591
|
+
* @version 138.0.0
|
|
24568
24592
|
*/
|
|
24569
24593
|
|
|
24570
24594
|
/**
|
|
@@ -24800,7 +24824,7 @@ class MessagingApi {
|
|
|
24800
24824
|
/**
|
|
24801
24825
|
* Messaging service.
|
|
24802
24826
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
24803
|
-
* @version
|
|
24827
|
+
* @version 138.0.0
|
|
24804
24828
|
*/
|
|
24805
24829
|
|
|
24806
24830
|
/**
|
|
@@ -24951,7 +24975,7 @@ class MobileDevicesApi {
|
|
|
24951
24975
|
/**
|
|
24952
24976
|
* MobileDevices service.
|
|
24953
24977
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
24954
|
-
* @version
|
|
24978
|
+
* @version 138.0.0
|
|
24955
24979
|
*/
|
|
24956
24980
|
|
|
24957
24981
|
/**
|
|
@@ -25102,7 +25126,7 @@ class NotificationsApi {
|
|
|
25102
25126
|
/**
|
|
25103
25127
|
* Notifications service.
|
|
25104
25128
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
25105
|
-
* @version
|
|
25129
|
+
* @version 138.0.0
|
|
25106
25130
|
*/
|
|
25107
25131
|
|
|
25108
25132
|
/**
|
|
@@ -25327,7 +25351,7 @@ class OAuthApi {
|
|
|
25327
25351
|
/**
|
|
25328
25352
|
* OAuth service.
|
|
25329
25353
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
25330
|
-
* @version
|
|
25354
|
+
* @version 138.0.0
|
|
25331
25355
|
*/
|
|
25332
25356
|
|
|
25333
25357
|
/**
|
|
@@ -25693,7 +25717,7 @@ class ObjectsApi {
|
|
|
25693
25717
|
/**
|
|
25694
25718
|
* Objects service.
|
|
25695
25719
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
25696
|
-
* @version
|
|
25720
|
+
* @version 138.0.0
|
|
25697
25721
|
*/
|
|
25698
25722
|
|
|
25699
25723
|
/**
|
|
@@ -25964,7 +25988,7 @@ class OrganizationApi {
|
|
|
25964
25988
|
/**
|
|
25965
25989
|
* Organization service.
|
|
25966
25990
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
25967
|
-
* @version
|
|
25991
|
+
* @version 138.0.0
|
|
25968
25992
|
*/
|
|
25969
25993
|
|
|
25970
25994
|
/**
|
|
@@ -26367,7 +26391,7 @@ class OrganizationAuthorizationApi {
|
|
|
26367
26391
|
/**
|
|
26368
26392
|
* OrganizationAuthorization service.
|
|
26369
26393
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
26370
|
-
* @version
|
|
26394
|
+
* @version 138.0.0
|
|
26371
26395
|
*/
|
|
26372
26396
|
|
|
26373
26397
|
/**
|
|
@@ -27292,7 +27316,7 @@ class OutboundApi {
|
|
|
27292
27316
|
/**
|
|
27293
27317
|
* Outbound service.
|
|
27294
27318
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
27295
|
-
* @version
|
|
27319
|
+
* @version 138.0.0
|
|
27296
27320
|
*/
|
|
27297
27321
|
|
|
27298
27322
|
/**
|
|
@@ -30547,7 +30571,7 @@ class PresenceApi {
|
|
|
30547
30571
|
/**
|
|
30548
30572
|
* Presence service.
|
|
30549
30573
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
30550
|
-
* @version
|
|
30574
|
+
* @version 138.0.0
|
|
30551
30575
|
*/
|
|
30552
30576
|
|
|
30553
30577
|
/**
|
|
@@ -30869,7 +30893,7 @@ class QualityApi {
|
|
|
30869
30893
|
/**
|
|
30870
30894
|
* Quality service.
|
|
30871
30895
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
30872
|
-
* @version
|
|
30896
|
+
* @version 138.0.0
|
|
30873
30897
|
*/
|
|
30874
30898
|
|
|
30875
30899
|
/**
|
|
@@ -32447,7 +32471,7 @@ class RecordingApi {
|
|
|
32447
32471
|
/**
|
|
32448
32472
|
* Recording service.
|
|
32449
32473
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
32450
|
-
* @version
|
|
32474
|
+
* @version 138.0.0
|
|
32451
32475
|
*/
|
|
32452
32476
|
|
|
32453
32477
|
/**
|
|
@@ -34100,7 +34124,7 @@ class ResponseManagementApi {
|
|
|
34100
34124
|
/**
|
|
34101
34125
|
* ResponseManagement service.
|
|
34102
34126
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
34103
|
-
* @version
|
|
34127
|
+
* @version 138.0.0
|
|
34104
34128
|
*/
|
|
34105
34129
|
|
|
34106
34130
|
/**
|
|
@@ -34584,7 +34608,7 @@ class RoutingApi {
|
|
|
34584
34608
|
/**
|
|
34585
34609
|
* Routing service.
|
|
34586
34610
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
34587
|
-
* @version
|
|
34611
|
+
* @version 138.0.0
|
|
34588
34612
|
*/
|
|
34589
34613
|
|
|
34590
34614
|
/**
|
|
@@ -37511,7 +37535,7 @@ class SCIMApi {
|
|
|
37511
37535
|
/**
|
|
37512
37536
|
* SCIM service.
|
|
37513
37537
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
37514
|
-
* @version
|
|
37538
|
+
* @version 138.0.0
|
|
37515
37539
|
*/
|
|
37516
37540
|
|
|
37517
37541
|
/**
|
|
@@ -38388,7 +38412,7 @@ class ScriptsApi {
|
|
|
38388
38412
|
/**
|
|
38389
38413
|
* Scripts service.
|
|
38390
38414
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
38391
|
-
* @version
|
|
38415
|
+
* @version 138.0.0
|
|
38392
38416
|
*/
|
|
38393
38417
|
|
|
38394
38418
|
/**
|
|
@@ -38716,9 +38740,9 @@ class ScriptsApi {
|
|
|
38716
38740
|
*
|
|
38717
38741
|
* @param {String} scriptId Script ID
|
|
38718
38742
|
* @param {Object} opts Optional parameters
|
|
38719
|
-
* @param {
|
|
38720
|
-
* @param {
|
|
38721
|
-
* @param {
|
|
38743
|
+
* @param {Object} opts.input input
|
|
38744
|
+
* @param {Object} opts.output output
|
|
38745
|
+
* @param {Object} opts.type type
|
|
38722
38746
|
* @param {String} opts.scriptDataVersion Advanced usage - controls the data version of the script
|
|
38723
38747
|
*/
|
|
38724
38748
|
getScriptsPublishedScriptIdVariables(scriptId, opts) {
|
|
@@ -38807,7 +38831,7 @@ class SearchApi {
|
|
|
38807
38831
|
/**
|
|
38808
38832
|
* Search service.
|
|
38809
38833
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
38810
|
-
* @version
|
|
38834
|
+
* @version 138.0.0
|
|
38811
38835
|
*/
|
|
38812
38836
|
|
|
38813
38837
|
/**
|
|
@@ -39342,7 +39366,7 @@ class SpeechTextAnalyticsApi {
|
|
|
39342
39366
|
/**
|
|
39343
39367
|
* SpeechTextAnalytics service.
|
|
39344
39368
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
39345
|
-
* @version
|
|
39369
|
+
* @version 138.0.0
|
|
39346
39370
|
*/
|
|
39347
39371
|
|
|
39348
39372
|
/**
|
|
@@ -40195,7 +40219,7 @@ class StationsApi {
|
|
|
40195
40219
|
/**
|
|
40196
40220
|
* Stations service.
|
|
40197
40221
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
40198
|
-
* @version
|
|
40222
|
+
* @version 138.0.0
|
|
40199
40223
|
*/
|
|
40200
40224
|
|
|
40201
40225
|
/**
|
|
@@ -40342,7 +40366,7 @@ class SuggestApi {
|
|
|
40342
40366
|
/**
|
|
40343
40367
|
* Suggest service.
|
|
40344
40368
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
40345
|
-
* @version
|
|
40369
|
+
* @version 138.0.0
|
|
40346
40370
|
*/
|
|
40347
40371
|
|
|
40348
40372
|
/**
|
|
@@ -40481,7 +40505,7 @@ class TelephonyApi {
|
|
|
40481
40505
|
/**
|
|
40482
40506
|
* Telephony service.
|
|
40483
40507
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
40484
|
-
* @version
|
|
40508
|
+
* @version 138.0.0
|
|
40485
40509
|
*/
|
|
40486
40510
|
|
|
40487
40511
|
/**
|
|
@@ -40589,7 +40613,7 @@ class TelephonyProvidersEdgeApi {
|
|
|
40589
40613
|
/**
|
|
40590
40614
|
* TelephonyProvidersEdge service.
|
|
40591
40615
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
40592
|
-
* @version
|
|
40616
|
+
* @version 138.0.0
|
|
40593
40617
|
*/
|
|
40594
40618
|
|
|
40595
40619
|
/**
|
|
@@ -44222,7 +44246,7 @@ class TextbotsApi {
|
|
|
44222
44246
|
/**
|
|
44223
44247
|
* Textbots service.
|
|
44224
44248
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
44225
|
-
* @version
|
|
44249
|
+
* @version 138.0.0
|
|
44226
44250
|
*/
|
|
44227
44251
|
|
|
44228
44252
|
/**
|
|
@@ -44350,7 +44374,7 @@ class TokensApi {
|
|
|
44350
44374
|
/**
|
|
44351
44375
|
* Tokens service.
|
|
44352
44376
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
44353
|
-
* @version
|
|
44377
|
+
* @version 138.0.0
|
|
44354
44378
|
*/
|
|
44355
44379
|
|
|
44356
44380
|
/**
|
|
@@ -44456,7 +44480,7 @@ class UploadsApi {
|
|
|
44456
44480
|
/**
|
|
44457
44481
|
* Uploads service.
|
|
44458
44482
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
44459
|
-
* @version
|
|
44483
|
+
* @version 138.0.0
|
|
44460
44484
|
*/
|
|
44461
44485
|
|
|
44462
44486
|
/**
|
|
@@ -44607,7 +44631,7 @@ class UsageApi {
|
|
|
44607
44631
|
/**
|
|
44608
44632
|
* Usage service.
|
|
44609
44633
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
44610
|
-
* @version
|
|
44634
|
+
* @version 138.0.0
|
|
44611
44635
|
*/
|
|
44612
44636
|
|
|
44613
44637
|
/**
|
|
@@ -44678,7 +44702,7 @@ class UserRecordingsApi {
|
|
|
44678
44702
|
/**
|
|
44679
44703
|
* UserRecordings service.
|
|
44680
44704
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
44681
|
-
* @version
|
|
44705
|
+
* @version 138.0.0
|
|
44682
44706
|
*/
|
|
44683
44707
|
|
|
44684
44708
|
/**
|
|
@@ -44862,7 +44886,7 @@ class UsersApi {
|
|
|
44862
44886
|
/**
|
|
44863
44887
|
* Users service.
|
|
44864
44888
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
44865
|
-
* @version
|
|
44889
|
+
* @version 138.0.0
|
|
44866
44890
|
*/
|
|
44867
44891
|
|
|
44868
44892
|
/**
|
|
@@ -47164,7 +47188,7 @@ class UtilitiesApi {
|
|
|
47164
47188
|
/**
|
|
47165
47189
|
* Utilities service.
|
|
47166
47190
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
47167
|
-
* @version
|
|
47191
|
+
* @version 138.0.0
|
|
47168
47192
|
*/
|
|
47169
47193
|
|
|
47170
47194
|
/**
|
|
@@ -47275,7 +47299,7 @@ class VoicemailApi {
|
|
|
47275
47299
|
/**
|
|
47276
47300
|
* Voicemail service.
|
|
47277
47301
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
47278
|
-
* @version
|
|
47302
|
+
* @version 138.0.0
|
|
47279
47303
|
*/
|
|
47280
47304
|
|
|
47281
47305
|
/**
|
|
@@ -47942,7 +47966,7 @@ class WebChatApi {
|
|
|
47942
47966
|
/**
|
|
47943
47967
|
* WebChat service.
|
|
47944
47968
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
47945
|
-
* @version
|
|
47969
|
+
* @version 138.0.0
|
|
47946
47970
|
*/
|
|
47947
47971
|
|
|
47948
47972
|
/**
|
|
@@ -48486,7 +48510,7 @@ class WebDeploymentsApi {
|
|
|
48486
48510
|
/**
|
|
48487
48511
|
* WebDeployments service.
|
|
48488
48512
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
48489
|
-
* @version
|
|
48513
|
+
* @version 138.0.0
|
|
48490
48514
|
*/
|
|
48491
48515
|
|
|
48492
48516
|
/**
|
|
@@ -48841,7 +48865,7 @@ class WebMessagingApi {
|
|
|
48841
48865
|
/**
|
|
48842
48866
|
* WebMessaging service.
|
|
48843
48867
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
48844
|
-
* @version
|
|
48868
|
+
* @version 138.0.0
|
|
48845
48869
|
*/
|
|
48846
48870
|
|
|
48847
48871
|
/**
|
|
@@ -48887,7 +48911,7 @@ class WidgetsApi {
|
|
|
48887
48911
|
/**
|
|
48888
48912
|
* Widgets service.
|
|
48889
48913
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
48890
|
-
* @version
|
|
48914
|
+
* @version 138.0.0
|
|
48891
48915
|
*/
|
|
48892
48916
|
|
|
48893
48917
|
/**
|
|
@@ -49033,7 +49057,7 @@ class WorkforceManagementApi {
|
|
|
49033
49057
|
/**
|
|
49034
49058
|
* WorkforceManagement service.
|
|
49035
49059
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
49036
|
-
* @version
|
|
49060
|
+
* @version 138.0.0
|
|
49037
49061
|
*/
|
|
49038
49062
|
|
|
49039
49063
|
/**
|
|
@@ -51792,8 +51816,8 @@ class WorkforceManagementApi {
|
|
|
51792
51816
|
*
|
|
51793
51817
|
* @param {String} businessUnitId The ID of the business unit
|
|
51794
51818
|
* @param {Object} opts Optional parameters
|
|
51795
|
-
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification.
|
|
51796
|
-
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service.
|
|
51819
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
51820
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
51797
51821
|
* @param {Object} opts.body body
|
|
51798
51822
|
*/
|
|
51799
51823
|
postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId, opts) {
|
|
@@ -51914,8 +51938,8 @@ class WorkforceManagementApi {
|
|
|
51914
51938
|
* @param {String} scheduleId The ID of the schedule
|
|
51915
51939
|
* @param {Object} body body
|
|
51916
51940
|
* @param {Object} opts Optional parameters
|
|
51917
|
-
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification.
|
|
51918
|
-
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service.
|
|
51941
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
51942
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
51919
51943
|
*/
|
|
51920
51944
|
postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(businessUnitId, weekId, scheduleId, body, opts) {
|
|
51921
51945
|
opts = opts || {};
|
|
@@ -52501,8 +52525,8 @@ class WorkforceManagementApi {
|
|
|
52501
52525
|
*
|
|
52502
52526
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
52503
52527
|
* @param {Object} opts Optional parameters
|
|
52504
|
-
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification.
|
|
52505
|
-
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service.
|
|
52528
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
52529
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
52506
52530
|
* @param {Object} opts.body body
|
|
52507
52531
|
*/
|
|
52508
52532
|
postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId, opts) {
|
|
@@ -53284,336 +53308,338 @@ class WorkforceManagementApi {
|
|
|
53284
53308
|
* </pre>
|
|
53285
53309
|
* </p>
|
|
53286
53310
|
* @module purecloud-platform-client-v2/index
|
|
53287
|
-
* @version
|
|
53311
|
+
* @version 138.0.0
|
|
53288
53312
|
*/
|
|
53289
53313
|
class platformClient {
|
|
53290
|
-
|
|
53291
|
-
|
|
53292
|
-
|
|
53293
|
-
|
|
53294
|
-
|
|
53295
|
-
|
|
53296
|
-
|
|
53297
|
-
|
|
53298
|
-
|
|
53299
|
-
|
|
53300
|
-
|
|
53301
|
-
|
|
53314
|
+
constructor() {
|
|
53315
|
+
/**
|
|
53316
|
+
* The ApiClient constructor.
|
|
53317
|
+
* @property {module:purecloud-platform-client-v2/ApiClient}
|
|
53318
|
+
*/
|
|
53319
|
+
this.ApiClient = new ApiClient();
|
|
53320
|
+
/**
|
|
53321
|
+
* The ApiClient class.
|
|
53322
|
+
* @property {module:purecloud-platform-client-v2/ApiClient}
|
|
53323
|
+
*/
|
|
53324
|
+
this.ApiClientClass = ApiClient;
|
|
53325
|
+
/**
|
|
53302
53326
|
* The AlertingApi service constructor.
|
|
53303
|
-
* @property {module:purecloud-platform-client-v2/api/AlertingApi
|
|
53327
|
+
* @property {module:purecloud-platform-client-v2/api/AlertingApi}
|
|
53304
53328
|
*/
|
|
53305
53329
|
this.AlertingApi = AlertingApi;
|
|
53306
53330
|
/**
|
|
53307
53331
|
* The AnalyticsApi service constructor.
|
|
53308
|
-
* @property {module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
53332
|
+
* @property {module:purecloud-platform-client-v2/api/AnalyticsApi}
|
|
53309
53333
|
*/
|
|
53310
53334
|
this.AnalyticsApi = AnalyticsApi;
|
|
53311
53335
|
/**
|
|
53312
53336
|
* The ArchitectApi service constructor.
|
|
53313
|
-
* @property {module:purecloud-platform-client-v2/api/ArchitectApi
|
|
53337
|
+
* @property {module:purecloud-platform-client-v2/api/ArchitectApi}
|
|
53314
53338
|
*/
|
|
53315
53339
|
this.ArchitectApi = ArchitectApi;
|
|
53316
53340
|
/**
|
|
53317
53341
|
* The AuditApi service constructor.
|
|
53318
|
-
* @property {module:purecloud-platform-client-v2/api/AuditApi
|
|
53342
|
+
* @property {module:purecloud-platform-client-v2/api/AuditApi}
|
|
53319
53343
|
*/
|
|
53320
53344
|
this.AuditApi = AuditApi;
|
|
53321
53345
|
/**
|
|
53322
53346
|
* The AuthorizationApi service constructor.
|
|
53323
|
-
* @property {module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
53347
|
+
* @property {module:purecloud-platform-client-v2/api/AuthorizationApi}
|
|
53324
53348
|
*/
|
|
53325
53349
|
this.AuthorizationApi = AuthorizationApi;
|
|
53326
53350
|
/**
|
|
53327
53351
|
* The BillingApi service constructor.
|
|
53328
|
-
* @property {module:purecloud-platform-client-v2/api/BillingApi
|
|
53352
|
+
* @property {module:purecloud-platform-client-v2/api/BillingApi}
|
|
53329
53353
|
*/
|
|
53330
53354
|
this.BillingApi = BillingApi;
|
|
53331
53355
|
/**
|
|
53332
53356
|
* The ChatApi service constructor.
|
|
53333
|
-
* @property {module:purecloud-platform-client-v2/api/ChatApi
|
|
53357
|
+
* @property {module:purecloud-platform-client-v2/api/ChatApi}
|
|
53334
53358
|
*/
|
|
53335
53359
|
this.ChatApi = ChatApi;
|
|
53336
53360
|
/**
|
|
53337
53361
|
* The CoachingApi service constructor.
|
|
53338
|
-
* @property {module:purecloud-platform-client-v2/api/CoachingApi
|
|
53362
|
+
* @property {module:purecloud-platform-client-v2/api/CoachingApi}
|
|
53339
53363
|
*/
|
|
53340
53364
|
this.CoachingApi = CoachingApi;
|
|
53341
53365
|
/**
|
|
53342
53366
|
* The ContentManagementApi service constructor.
|
|
53343
|
-
* @property {module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
53367
|
+
* @property {module:purecloud-platform-client-v2/api/ContentManagementApi}
|
|
53344
53368
|
*/
|
|
53345
53369
|
this.ContentManagementApi = ContentManagementApi;
|
|
53346
53370
|
/**
|
|
53347
53371
|
* The ConversationsApi service constructor.
|
|
53348
|
-
* @property {module:purecloud-platform-client-v2/api/ConversationsApi
|
|
53372
|
+
* @property {module:purecloud-platform-client-v2/api/ConversationsApi}
|
|
53349
53373
|
*/
|
|
53350
53374
|
this.ConversationsApi = ConversationsApi;
|
|
53351
53375
|
/**
|
|
53352
53376
|
* The DataExtensionsApi service constructor.
|
|
53353
|
-
* @property {module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
53377
|
+
* @property {module:purecloud-platform-client-v2/api/DataExtensionsApi}
|
|
53354
53378
|
*/
|
|
53355
53379
|
this.DataExtensionsApi = DataExtensionsApi;
|
|
53356
53380
|
/**
|
|
53357
53381
|
* The ExternalContactsApi service constructor.
|
|
53358
|
-
* @property {module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
53382
|
+
* @property {module:purecloud-platform-client-v2/api/ExternalContactsApi}
|
|
53359
53383
|
*/
|
|
53360
53384
|
this.ExternalContactsApi = ExternalContactsApi;
|
|
53361
53385
|
/**
|
|
53362
53386
|
* The FaxApi service constructor.
|
|
53363
|
-
* @property {module:purecloud-platform-client-v2/api/FaxApi
|
|
53387
|
+
* @property {module:purecloud-platform-client-v2/api/FaxApi}
|
|
53364
53388
|
*/
|
|
53365
53389
|
this.FaxApi = FaxApi;
|
|
53366
53390
|
/**
|
|
53367
53391
|
* The FlowsApi service constructor.
|
|
53368
|
-
* @property {module:purecloud-platform-client-v2/api/FlowsApi
|
|
53392
|
+
* @property {module:purecloud-platform-client-v2/api/FlowsApi}
|
|
53369
53393
|
*/
|
|
53370
53394
|
this.FlowsApi = FlowsApi;
|
|
53371
53395
|
/**
|
|
53372
53396
|
* The GamificationApi service constructor.
|
|
53373
|
-
* @property {module:purecloud-platform-client-v2/api/GamificationApi
|
|
53397
|
+
* @property {module:purecloud-platform-client-v2/api/GamificationApi}
|
|
53374
53398
|
*/
|
|
53375
53399
|
this.GamificationApi = GamificationApi;
|
|
53376
53400
|
/**
|
|
53377
53401
|
* The GeneralDataProtectionRegulationApi service constructor.
|
|
53378
|
-
* @property {module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
53402
|
+
* @property {module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi}
|
|
53379
53403
|
*/
|
|
53380
53404
|
this.GeneralDataProtectionRegulationApi = GeneralDataProtectionRegulationApi;
|
|
53381
53405
|
/**
|
|
53382
53406
|
* The GeolocationApi service constructor.
|
|
53383
|
-
* @property {module:purecloud-platform-client-v2/api/GeolocationApi
|
|
53407
|
+
* @property {module:purecloud-platform-client-v2/api/GeolocationApi}
|
|
53384
53408
|
*/
|
|
53385
53409
|
this.GeolocationApi = GeolocationApi;
|
|
53386
53410
|
/**
|
|
53387
53411
|
* The GreetingsApi service constructor.
|
|
53388
|
-
* @property {module:purecloud-platform-client-v2/api/GreetingsApi
|
|
53412
|
+
* @property {module:purecloud-platform-client-v2/api/GreetingsApi}
|
|
53389
53413
|
*/
|
|
53390
53414
|
this.GreetingsApi = GreetingsApi;
|
|
53391
53415
|
/**
|
|
53392
53416
|
* The GroupsApi service constructor.
|
|
53393
|
-
* @property {module:purecloud-platform-client-v2/api/GroupsApi
|
|
53417
|
+
* @property {module:purecloud-platform-client-v2/api/GroupsApi}
|
|
53394
53418
|
*/
|
|
53395
53419
|
this.GroupsApi = GroupsApi;
|
|
53396
53420
|
/**
|
|
53397
53421
|
* The IdentityProviderApi service constructor.
|
|
53398
|
-
* @property {module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
53422
|
+
* @property {module:purecloud-platform-client-v2/api/IdentityProviderApi}
|
|
53399
53423
|
*/
|
|
53400
53424
|
this.IdentityProviderApi = IdentityProviderApi;
|
|
53401
53425
|
/**
|
|
53402
53426
|
* The IntegrationsApi service constructor.
|
|
53403
|
-
* @property {module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
53427
|
+
* @property {module:purecloud-platform-client-v2/api/IntegrationsApi}
|
|
53404
53428
|
*/
|
|
53405
53429
|
this.IntegrationsApi = IntegrationsApi;
|
|
53406
53430
|
/**
|
|
53407
53431
|
* The JourneyApi service constructor.
|
|
53408
|
-
* @property {module:purecloud-platform-client-v2/api/JourneyApi
|
|
53432
|
+
* @property {module:purecloud-platform-client-v2/api/JourneyApi}
|
|
53409
53433
|
*/
|
|
53410
53434
|
this.JourneyApi = JourneyApi;
|
|
53411
53435
|
/**
|
|
53412
53436
|
* The KnowledgeApi service constructor.
|
|
53413
|
-
* @property {module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
53437
|
+
* @property {module:purecloud-platform-client-v2/api/KnowledgeApi}
|
|
53414
53438
|
*/
|
|
53415
53439
|
this.KnowledgeApi = KnowledgeApi;
|
|
53416
53440
|
/**
|
|
53417
53441
|
* The LanguageUnderstandingApi service constructor.
|
|
53418
|
-
* @property {module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
53442
|
+
* @property {module:purecloud-platform-client-v2/api/LanguageUnderstandingApi}
|
|
53419
53443
|
*/
|
|
53420
53444
|
this.LanguageUnderstandingApi = LanguageUnderstandingApi;
|
|
53421
53445
|
/**
|
|
53422
53446
|
* The LanguagesApi service constructor.
|
|
53423
|
-
* @property {module:purecloud-platform-client-v2/api/LanguagesApi
|
|
53447
|
+
* @property {module:purecloud-platform-client-v2/api/LanguagesApi}
|
|
53424
53448
|
*/
|
|
53425
53449
|
this.LanguagesApi = LanguagesApi;
|
|
53426
53450
|
/**
|
|
53427
53451
|
* The LearningApi service constructor.
|
|
53428
|
-
* @property {module:purecloud-platform-client-v2/api/LearningApi
|
|
53452
|
+
* @property {module:purecloud-platform-client-v2/api/LearningApi}
|
|
53429
53453
|
*/
|
|
53430
53454
|
this.LearningApi = LearningApi;
|
|
53431
53455
|
/**
|
|
53432
53456
|
* The LicenseApi service constructor.
|
|
53433
|
-
* @property {module:purecloud-platform-client-v2/api/LicenseApi
|
|
53457
|
+
* @property {module:purecloud-platform-client-v2/api/LicenseApi}
|
|
53434
53458
|
*/
|
|
53435
53459
|
this.LicenseApi = LicenseApi;
|
|
53436
53460
|
/**
|
|
53437
53461
|
* The LocationsApi service constructor.
|
|
53438
|
-
* @property {module:purecloud-platform-client-v2/api/LocationsApi
|
|
53462
|
+
* @property {module:purecloud-platform-client-v2/api/LocationsApi}
|
|
53439
53463
|
*/
|
|
53440
53464
|
this.LocationsApi = LocationsApi;
|
|
53441
53465
|
/**
|
|
53442
53466
|
* The MessagingApi service constructor.
|
|
53443
|
-
* @property {module:purecloud-platform-client-v2/api/MessagingApi
|
|
53467
|
+
* @property {module:purecloud-platform-client-v2/api/MessagingApi}
|
|
53444
53468
|
*/
|
|
53445
53469
|
this.MessagingApi = MessagingApi;
|
|
53446
53470
|
/**
|
|
53447
53471
|
* The MobileDevicesApi service constructor.
|
|
53448
|
-
* @property {module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
53472
|
+
* @property {module:purecloud-platform-client-v2/api/MobileDevicesApi}
|
|
53449
53473
|
*/
|
|
53450
53474
|
this.MobileDevicesApi = MobileDevicesApi;
|
|
53451
53475
|
/**
|
|
53452
53476
|
* The NotificationsApi service constructor.
|
|
53453
|
-
* @property {module:purecloud-platform-client-v2/api/NotificationsApi
|
|
53477
|
+
* @property {module:purecloud-platform-client-v2/api/NotificationsApi}
|
|
53454
53478
|
*/
|
|
53455
53479
|
this.NotificationsApi = NotificationsApi;
|
|
53456
53480
|
/**
|
|
53457
53481
|
* The OAuthApi service constructor.
|
|
53458
|
-
* @property {module:purecloud-platform-client-v2/api/OAuthApi
|
|
53482
|
+
* @property {module:purecloud-platform-client-v2/api/OAuthApi}
|
|
53459
53483
|
*/
|
|
53460
53484
|
this.OAuthApi = OAuthApi;
|
|
53461
53485
|
/**
|
|
53462
53486
|
* The ObjectsApi service constructor.
|
|
53463
|
-
* @property {module:purecloud-platform-client-v2/api/ObjectsApi
|
|
53487
|
+
* @property {module:purecloud-platform-client-v2/api/ObjectsApi}
|
|
53464
53488
|
*/
|
|
53465
53489
|
this.ObjectsApi = ObjectsApi;
|
|
53466
53490
|
/**
|
|
53467
53491
|
* The OrganizationApi service constructor.
|
|
53468
|
-
* @property {module:purecloud-platform-client-v2/api/OrganizationApi
|
|
53492
|
+
* @property {module:purecloud-platform-client-v2/api/OrganizationApi}
|
|
53469
53493
|
*/
|
|
53470
53494
|
this.OrganizationApi = OrganizationApi;
|
|
53471
53495
|
/**
|
|
53472
53496
|
* The OrganizationAuthorizationApi service constructor.
|
|
53473
|
-
* @property {module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
53497
|
+
* @property {module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi}
|
|
53474
53498
|
*/
|
|
53475
53499
|
this.OrganizationAuthorizationApi = OrganizationAuthorizationApi;
|
|
53476
53500
|
/**
|
|
53477
53501
|
* The OutboundApi service constructor.
|
|
53478
|
-
* @property {module:purecloud-platform-client-v2/api/OutboundApi
|
|
53502
|
+
* @property {module:purecloud-platform-client-v2/api/OutboundApi}
|
|
53479
53503
|
*/
|
|
53480
53504
|
this.OutboundApi = OutboundApi;
|
|
53481
53505
|
/**
|
|
53482
53506
|
* The PresenceApi service constructor.
|
|
53483
|
-
* @property {module:purecloud-platform-client-v2/api/PresenceApi
|
|
53507
|
+
* @property {module:purecloud-platform-client-v2/api/PresenceApi}
|
|
53484
53508
|
*/
|
|
53485
53509
|
this.PresenceApi = PresenceApi;
|
|
53486
53510
|
/**
|
|
53487
53511
|
* The QualityApi service constructor.
|
|
53488
|
-
* @property {module:purecloud-platform-client-v2/api/QualityApi
|
|
53512
|
+
* @property {module:purecloud-platform-client-v2/api/QualityApi}
|
|
53489
53513
|
*/
|
|
53490
53514
|
this.QualityApi = QualityApi;
|
|
53491
53515
|
/**
|
|
53492
53516
|
* The RecordingApi service constructor.
|
|
53493
|
-
* @property {module:purecloud-platform-client-v2/api/RecordingApi
|
|
53517
|
+
* @property {module:purecloud-platform-client-v2/api/RecordingApi}
|
|
53494
53518
|
*/
|
|
53495
53519
|
this.RecordingApi = RecordingApi;
|
|
53496
53520
|
/**
|
|
53497
53521
|
* The ResponseManagementApi service constructor.
|
|
53498
|
-
* @property {module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
53522
|
+
* @property {module:purecloud-platform-client-v2/api/ResponseManagementApi}
|
|
53499
53523
|
*/
|
|
53500
53524
|
this.ResponseManagementApi = ResponseManagementApi;
|
|
53501
53525
|
/**
|
|
53502
53526
|
* The RoutingApi service constructor.
|
|
53503
|
-
* @property {module:purecloud-platform-client-v2/api/RoutingApi
|
|
53527
|
+
* @property {module:purecloud-platform-client-v2/api/RoutingApi}
|
|
53504
53528
|
*/
|
|
53505
53529
|
this.RoutingApi = RoutingApi;
|
|
53506
53530
|
/**
|
|
53507
53531
|
* The SCIMApi service constructor.
|
|
53508
|
-
* @property {module:purecloud-platform-client-v2/api/SCIMApi
|
|
53532
|
+
* @property {module:purecloud-platform-client-v2/api/SCIMApi}
|
|
53509
53533
|
*/
|
|
53510
53534
|
this.SCIMApi = SCIMApi;
|
|
53511
53535
|
/**
|
|
53512
53536
|
* The ScriptsApi service constructor.
|
|
53513
|
-
* @property {module:purecloud-platform-client-v2/api/ScriptsApi
|
|
53537
|
+
* @property {module:purecloud-platform-client-v2/api/ScriptsApi}
|
|
53514
53538
|
*/
|
|
53515
53539
|
this.ScriptsApi = ScriptsApi;
|
|
53516
53540
|
/**
|
|
53517
53541
|
* The SearchApi service constructor.
|
|
53518
|
-
* @property {module:purecloud-platform-client-v2/api/SearchApi
|
|
53542
|
+
* @property {module:purecloud-platform-client-v2/api/SearchApi}
|
|
53519
53543
|
*/
|
|
53520
53544
|
this.SearchApi = SearchApi;
|
|
53521
53545
|
/**
|
|
53522
53546
|
* The SpeechTextAnalyticsApi service constructor.
|
|
53523
|
-
* @property {module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
53547
|
+
* @property {module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi}
|
|
53524
53548
|
*/
|
|
53525
53549
|
this.SpeechTextAnalyticsApi = SpeechTextAnalyticsApi;
|
|
53526
53550
|
/**
|
|
53527
53551
|
* The StationsApi service constructor.
|
|
53528
|
-
* @property {module:purecloud-platform-client-v2/api/StationsApi
|
|
53552
|
+
* @property {module:purecloud-platform-client-v2/api/StationsApi}
|
|
53529
53553
|
*/
|
|
53530
53554
|
this.StationsApi = StationsApi;
|
|
53531
53555
|
/**
|
|
53532
53556
|
* The SuggestApi service constructor.
|
|
53533
|
-
* @property {module:purecloud-platform-client-v2/api/SuggestApi
|
|
53557
|
+
* @property {module:purecloud-platform-client-v2/api/SuggestApi}
|
|
53534
53558
|
*/
|
|
53535
53559
|
this.SuggestApi = SuggestApi;
|
|
53536
53560
|
/**
|
|
53537
53561
|
* The TelephonyApi service constructor.
|
|
53538
|
-
* @property {module:purecloud-platform-client-v2/api/TelephonyApi
|
|
53562
|
+
* @property {module:purecloud-platform-client-v2/api/TelephonyApi}
|
|
53539
53563
|
*/
|
|
53540
53564
|
this.TelephonyApi = TelephonyApi;
|
|
53541
53565
|
/**
|
|
53542
53566
|
* The TelephonyProvidersEdgeApi service constructor.
|
|
53543
|
-
* @property {module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
53567
|
+
* @property {module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi}
|
|
53544
53568
|
*/
|
|
53545
53569
|
this.TelephonyProvidersEdgeApi = TelephonyProvidersEdgeApi;
|
|
53546
53570
|
/**
|
|
53547
53571
|
* The TextbotsApi service constructor.
|
|
53548
|
-
* @property {module:purecloud-platform-client-v2/api/TextbotsApi
|
|
53572
|
+
* @property {module:purecloud-platform-client-v2/api/TextbotsApi}
|
|
53549
53573
|
*/
|
|
53550
53574
|
this.TextbotsApi = TextbotsApi;
|
|
53551
53575
|
/**
|
|
53552
53576
|
* The TokensApi service constructor.
|
|
53553
|
-
* @property {module:purecloud-platform-client-v2/api/TokensApi
|
|
53577
|
+
* @property {module:purecloud-platform-client-v2/api/TokensApi}
|
|
53554
53578
|
*/
|
|
53555
53579
|
this.TokensApi = TokensApi;
|
|
53556
53580
|
/**
|
|
53557
53581
|
* The UploadsApi service constructor.
|
|
53558
|
-
* @property {module:purecloud-platform-client-v2/api/UploadsApi
|
|
53582
|
+
* @property {module:purecloud-platform-client-v2/api/UploadsApi}
|
|
53559
53583
|
*/
|
|
53560
53584
|
this.UploadsApi = UploadsApi;
|
|
53561
53585
|
/**
|
|
53562
53586
|
* The UsageApi service constructor.
|
|
53563
|
-
* @property {module:purecloud-platform-client-v2/api/UsageApi
|
|
53587
|
+
* @property {module:purecloud-platform-client-v2/api/UsageApi}
|
|
53564
53588
|
*/
|
|
53565
53589
|
this.UsageApi = UsageApi;
|
|
53566
53590
|
/**
|
|
53567
53591
|
* The UserRecordingsApi service constructor.
|
|
53568
|
-
* @property {module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
53592
|
+
* @property {module:purecloud-platform-client-v2/api/UserRecordingsApi}
|
|
53569
53593
|
*/
|
|
53570
53594
|
this.UserRecordingsApi = UserRecordingsApi;
|
|
53571
53595
|
/**
|
|
53572
53596
|
* The UsersApi service constructor.
|
|
53573
|
-
* @property {module:purecloud-platform-client-v2/api/UsersApi
|
|
53597
|
+
* @property {module:purecloud-platform-client-v2/api/UsersApi}
|
|
53574
53598
|
*/
|
|
53575
53599
|
this.UsersApi = UsersApi;
|
|
53576
53600
|
/**
|
|
53577
53601
|
* The UtilitiesApi service constructor.
|
|
53578
|
-
* @property {module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
53602
|
+
* @property {module:purecloud-platform-client-v2/api/UtilitiesApi}
|
|
53579
53603
|
*/
|
|
53580
53604
|
this.UtilitiesApi = UtilitiesApi;
|
|
53581
53605
|
/**
|
|
53582
53606
|
* The VoicemailApi service constructor.
|
|
53583
|
-
* @property {module:purecloud-platform-client-v2/api/VoicemailApi
|
|
53607
|
+
* @property {module:purecloud-platform-client-v2/api/VoicemailApi}
|
|
53584
53608
|
*/
|
|
53585
53609
|
this.VoicemailApi = VoicemailApi;
|
|
53586
53610
|
/**
|
|
53587
53611
|
* The WebChatApi service constructor.
|
|
53588
|
-
* @property {module:purecloud-platform-client-v2/api/WebChatApi
|
|
53612
|
+
* @property {module:purecloud-platform-client-v2/api/WebChatApi}
|
|
53589
53613
|
*/
|
|
53590
53614
|
this.WebChatApi = WebChatApi;
|
|
53591
53615
|
/**
|
|
53592
53616
|
* The WebDeploymentsApi service constructor.
|
|
53593
|
-
* @property {module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
53617
|
+
* @property {module:purecloud-platform-client-v2/api/WebDeploymentsApi}
|
|
53594
53618
|
*/
|
|
53595
53619
|
this.WebDeploymentsApi = WebDeploymentsApi;
|
|
53596
53620
|
/**
|
|
53597
53621
|
* The WebMessagingApi service constructor.
|
|
53598
|
-
* @property {module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
53622
|
+
* @property {module:purecloud-platform-client-v2/api/WebMessagingApi}
|
|
53599
53623
|
*/
|
|
53600
53624
|
this.WebMessagingApi = WebMessagingApi;
|
|
53601
53625
|
/**
|
|
53602
53626
|
* The WidgetsApi service constructor.
|
|
53603
|
-
* @property {module:purecloud-platform-client-v2/api/WidgetsApi
|
|
53627
|
+
* @property {module:purecloud-platform-client-v2/api/WidgetsApi}
|
|
53604
53628
|
*/
|
|
53605
53629
|
this.WidgetsApi = WidgetsApi;
|
|
53606
53630
|
/**
|
|
53607
53631
|
* The WorkforceManagementApi service constructor.
|
|
53608
|
-
* @property {module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
53632
|
+
* @property {module:purecloud-platform-client-v2/api/WorkforceManagementApi}
|
|
53609
53633
|
*/
|
|
53610
53634
|
this.WorkforceManagementApi = WorkforceManagementApi;
|
|
53611
|
-
|
|
53612
|
-
|
|
53613
|
-
|
|
53614
|
-
|
|
53615
|
-
|
|
53616
|
-
|
|
53635
|
+
/**
|
|
53636
|
+
* The PureCloudRegionsHost Object.
|
|
53637
|
+
* @property {module:purecloud-platform-client-v2/MyPureCloudRegionHost}
|
|
53638
|
+
*/
|
|
53639
|
+
this.PureCloudRegionHosts = PureCloudRegionHosts;
|
|
53640
|
+
|
|
53641
|
+
|
|
53642
|
+
}
|
|
53617
53643
|
}
|
|
53618
53644
|
|
|
53619
53645
|
//export default platformClient;
|