purecloud-platform-client-v2 137.0.1 → 138.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -12
- package/dist/node/purecloud-platform-client-v2.js +289 -262
- package/dist/web-amd/purecloud-platform-client-v2.js +289 -262
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +289 -262
- package/dist/web-cjs/purecloud-platform-client-v2.js +2080 -4490
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +419 -394
- package/package.json +2 -2
- package/src/purecloud-platform-client-v2/ApiClient.js +198 -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 +1 -1
- package/src/purecloud-platform-client-v2/logger.js +17 -13
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
define(['
|
|
1
|
+
define(['axios'], (function (axios) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
6
6
|
|
|
7
7
|
var PureCloudRegionHosts = {
|
|
8
8
|
us_east_1: 'mypurecloud.com',
|
|
@@ -145,34 +145,38 @@ define(['superagent'], (function (superagent) { 'use strict';
|
|
|
145
145
|
|
|
146
146
|
formatLog(level, statusCode, method, url, requestHeaders, responseHeaders, requestBody, responseBody) {
|
|
147
147
|
var result;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
var localRequestHeaders = requestHeaders ? JSON.parse(JSON.stringify(requestHeaders)) : null;
|
|
149
|
+
var localResponseHeaders = responseHeaders ? JSON.parse(JSON.stringify(responseHeaders)) : null;
|
|
150
|
+
var localRequestBody = requestBody ? JSON.parse(JSON.stringify(requestBody)) : null;
|
|
151
|
+
var localResponseBody = responseBody ? JSON.parse(JSON.stringify(responseBody)) : null;
|
|
152
|
+
if (requestHeaders) localRequestHeaders['Authorization'] = '[REDACTED]';
|
|
153
|
+
if (!this.log_request_body) localRequestBody = undefined;
|
|
154
|
+
if (!this.log_response_body) localResponseBody = undefined;
|
|
151
155
|
if (this.log_format && this.log_format === logFormatEnum.formats.JSON) {
|
|
152
156
|
result = {
|
|
153
157
|
level: level,
|
|
154
158
|
date: new Date().toISOString(),
|
|
155
159
|
method: method,
|
|
156
160
|
url: decodeURIComponent(url),
|
|
157
|
-
correlationId:
|
|
161
|
+
correlationId: localResponseHeaders ? (localResponseHeaders['inin-correlation-id'] ? localResponseHeaders['inin-correlation-id'] : '') : '',
|
|
158
162
|
statusCode: statusCode,
|
|
159
163
|
};
|
|
160
|
-
if (
|
|
161
|
-
if (
|
|
162
|
-
if (
|
|
163
|
-
if (
|
|
164
|
+
if (localRequestHeaders) result.requestHeaders = localRequestHeaders;
|
|
165
|
+
if (localResponseHeaders) result.responseHeaders = localResponseHeaders;
|
|
166
|
+
if (localRequestBody) result.requestBody = localRequestBody;
|
|
167
|
+
if (localResponseBody) result.responseBody = localResponseBody;
|
|
164
168
|
} else {
|
|
165
169
|
result = `${new Date().toISOString()}
|
|
166
170
|
=== REQUEST ===
|
|
167
171
|
${this.formatValue('URL', decodeURIComponent(url))}${this.formatValue('Method', method)}${this.formatValue(
|
|
168
172
|
'Headers',
|
|
169
|
-
this.formatHeaderString(
|
|
170
|
-
)}${this.formatValue('Body',
|
|
173
|
+
this.formatHeaderString(localRequestHeaders)
|
|
174
|
+
)}${this.formatValue('Body', localRequestBody ? JSON.stringify(localRequestBody, null, 2) : '')}
|
|
171
175
|
=== RESPONSE ===
|
|
172
|
-
${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.formatHeaderString(
|
|
176
|
+
${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.formatHeaderString(localResponseHeaders))}${this.formatValue(
|
|
173
177
|
'CorrelationId',
|
|
174
|
-
|
|
175
|
-
)}${this.formatValue('Body',
|
|
178
|
+
localResponseHeaders ? (localResponseHeaders['inin-correlation-id'] ? localResponseHeaders['inin-correlation-id'] : '') : ''
|
|
179
|
+
)}${this.formatValue('Body', localResponseBody ? JSON.stringify(localResponseBody, null, 2) : '')}`;
|
|
176
180
|
}
|
|
177
181
|
|
|
178
182
|
return result;
|
|
@@ -393,7 +397,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
393
397
|
|
|
394
398
|
/**
|
|
395
399
|
* @module purecloud-platform-client-v2/ApiClient
|
|
396
|
-
* @version
|
|
400
|
+
* @version 138.0.1
|
|
397
401
|
*/
|
|
398
402
|
class ApiClient {
|
|
399
403
|
/**
|
|
@@ -495,9 +499,6 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
495
499
|
this.authData = {};
|
|
496
500
|
this.settingsPrefix = 'purecloud';
|
|
497
501
|
|
|
498
|
-
// Expose superagent module for use with superagent-proxy
|
|
499
|
-
this.superagent = superagent__default["default"];
|
|
500
|
-
|
|
501
502
|
// Transparently request a new access token when it expires (Code Authorization only)
|
|
502
503
|
this.refreshInProgress = false;
|
|
503
504
|
|
|
@@ -666,63 +667,65 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
666
667
|
return;
|
|
667
668
|
}
|
|
668
669
|
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
// Log error
|
|
681
|
-
this.config.logger.log(
|
|
682
|
-
'error',
|
|
683
|
-
response.statusCode,
|
|
684
|
-
'POST',
|
|
685
|
-
`https://login.${this.config.environment}/oauth/token`,
|
|
686
|
-
request.header,
|
|
687
|
-
response.headers,
|
|
688
|
-
{ grant_type: 'client_credentials' },
|
|
689
|
-
response.body
|
|
690
|
-
);
|
|
691
|
-
reject(error);
|
|
692
|
-
} else {
|
|
670
|
+
const headers = {
|
|
671
|
+
'Authorization': `Basic ${authHeader}`
|
|
672
|
+
};
|
|
673
|
+
axios__default["default"]({
|
|
674
|
+
method: `POST`,
|
|
675
|
+
url: `https://login.${this.config.environment}/oauth/token`,
|
|
676
|
+
headers: headers,
|
|
677
|
+
data: 'grant_type=client_credentials',
|
|
678
|
+
proxy: this.proxy
|
|
679
|
+
})
|
|
680
|
+
.then((response) => {
|
|
693
681
|
// Logging
|
|
694
682
|
this.config.logger.log(
|
|
695
683
|
'trace',
|
|
696
|
-
response.
|
|
684
|
+
response.status,
|
|
697
685
|
'POST',
|
|
698
686
|
`https://login.${this.config.environment}/oauth/token`,
|
|
699
|
-
|
|
687
|
+
headers,
|
|
700
688
|
response.headers,
|
|
701
689
|
{ grant_type: 'client_credentials' },
|
|
702
690
|
undefined
|
|
703
691
|
);
|
|
704
692
|
this.config.logger.log(
|
|
705
693
|
'debug',
|
|
706
|
-
response.
|
|
694
|
+
response.status,
|
|
707
695
|
'POST',
|
|
708
696
|
`https://login.${this.config.environment}/oauth/token`,
|
|
709
|
-
|
|
697
|
+
headers,
|
|
710
698
|
undefined,
|
|
711
699
|
{ grant_type: 'client_credentials' },
|
|
712
700
|
undefined
|
|
713
701
|
);
|
|
714
702
|
|
|
715
703
|
// Save access token
|
|
716
|
-
this.setAccessToken(response.
|
|
704
|
+
this.setAccessToken(response.data['access_token']);
|
|
717
705
|
|
|
718
706
|
// Set expiry time
|
|
719
|
-
this.authData.tokenExpiryTime = (new Date()).getTime() + (response.
|
|
707
|
+
this.authData.tokenExpiryTime = (new Date()).getTime() + (response.data['expires_in'] * 1000);
|
|
720
708
|
this.authData.tokenExpiryTimeString = (new Date(this.authData.tokenExpiryTime)).toUTCString();
|
|
721
709
|
|
|
722
710
|
// Return auth data
|
|
723
711
|
resolve(this.authData);
|
|
724
|
-
}
|
|
725
|
-
|
|
712
|
+
})
|
|
713
|
+
.catch((error) => {
|
|
714
|
+
// Log error
|
|
715
|
+
if (error.response) {
|
|
716
|
+
this.config.logger.log(
|
|
717
|
+
'error',
|
|
718
|
+
error.response.status,
|
|
719
|
+
'POST',
|
|
720
|
+
`https://login.${this.config.environment}/oauth/token`,
|
|
721
|
+
headers,
|
|
722
|
+
error.response.headers,
|
|
723
|
+
{ grant_type: 'client_credentials' },
|
|
724
|
+
error.response.data
|
|
725
|
+
);
|
|
726
|
+
}
|
|
727
|
+
reject(error);
|
|
728
|
+
});
|
|
726
729
|
});
|
|
727
730
|
}
|
|
728
731
|
|
|
@@ -745,9 +748,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
745
748
|
{ grant_type: 'urn:ietf:params:oauth:grant-type:saml2-bearer' },
|
|
746
749
|
{ orgName: orgName },
|
|
747
750
|
{ assertion: assertion });
|
|
748
|
-
|
|
749
|
-
request.proxy(this.proxy);
|
|
750
|
-
}
|
|
751
|
+
request.proxy = this.proxy;
|
|
751
752
|
var bodyParam = {
|
|
752
753
|
grant_type: 'urn:ietf:params:oauth:grant-type:saml2-bearer',
|
|
753
754
|
orgName: orgName,
|
|
@@ -755,54 +756,56 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
755
756
|
};
|
|
756
757
|
|
|
757
758
|
// Handle response
|
|
758
|
-
request
|
|
759
|
-
|
|
760
|
-
// Log error
|
|
761
|
-
this.config.logger.log(
|
|
762
|
-
'error',
|
|
763
|
-
response.statusCode,
|
|
764
|
-
'POST',
|
|
765
|
-
`https://login.${this.config.environment}/oauth/token`,
|
|
766
|
-
request.header,
|
|
767
|
-
response.headers,
|
|
768
|
-
bodyParam,
|
|
769
|
-
response.body
|
|
770
|
-
);
|
|
771
|
-
reject(error);
|
|
772
|
-
} else {
|
|
759
|
+
request
|
|
760
|
+
.then((response) => {
|
|
773
761
|
// Logging
|
|
774
762
|
this.config.logger.log(
|
|
775
763
|
'trace',
|
|
776
|
-
response.
|
|
764
|
+
response.status,
|
|
777
765
|
'POST',
|
|
778
766
|
`https://login.${this.config.environment}/oauth/token`,
|
|
779
|
-
request.
|
|
767
|
+
request.headers,
|
|
780
768
|
response.headers,
|
|
781
769
|
bodyParam,
|
|
782
770
|
undefined
|
|
783
771
|
);
|
|
784
772
|
this.config.logger.log(
|
|
785
773
|
'debug',
|
|
786
|
-
response.
|
|
774
|
+
response.status,
|
|
787
775
|
'POST',
|
|
788
776
|
`https://login.${this.config.environment}/oauth/token`,
|
|
789
|
-
request.
|
|
777
|
+
request.headers,
|
|
790
778
|
undefined,
|
|
791
779
|
bodyParam,
|
|
792
780
|
undefined
|
|
793
781
|
);
|
|
794
782
|
|
|
795
783
|
// Get access token from response
|
|
796
|
-
var access_token = response.
|
|
784
|
+
var access_token = response.data.access_token;
|
|
797
785
|
|
|
798
786
|
this.setAccessToken(access_token);
|
|
799
|
-
this.authData.tokenExpiryTime = new Date().getTime() + response.
|
|
787
|
+
this.authData.tokenExpiryTime = new Date().getTime() + response.data['expires_in'] * 1000;
|
|
800
788
|
this.authData.tokenExpiryTimeString = new Date(this.authData.tokenExpiryTime).toUTCString();
|
|
801
789
|
|
|
802
790
|
// Return auth data
|
|
803
791
|
resolve(this.authData);
|
|
804
|
-
}
|
|
805
|
-
|
|
792
|
+
})
|
|
793
|
+
.catch((error) => {
|
|
794
|
+
// Log error
|
|
795
|
+
if (error.response) {
|
|
796
|
+
this.config.logger.log(
|
|
797
|
+
'error',
|
|
798
|
+
error.response.status,
|
|
799
|
+
'POST',
|
|
800
|
+
`https://login.${this.config.environment}/oauth/token`,
|
|
801
|
+
request.headers,
|
|
802
|
+
error.response.headers,
|
|
803
|
+
bodyParam,
|
|
804
|
+
error.response.data
|
|
805
|
+
);
|
|
806
|
+
}
|
|
807
|
+
reject(error);
|
|
808
|
+
});
|
|
806
809
|
});
|
|
807
810
|
}
|
|
808
811
|
|
|
@@ -826,9 +829,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
826
829
|
{ grant_type: 'authorization_code' },
|
|
827
830
|
{ code: authCode },
|
|
828
831
|
{ redirect_uri: redirectUri });
|
|
829
|
-
|
|
830
|
-
request.proxy(this.proxy);
|
|
831
|
-
}
|
|
832
|
+
request.proxy = this.proxy;
|
|
832
833
|
var bodyParam = {
|
|
833
834
|
grant_type: 'authorization_code',
|
|
834
835
|
code: authCode,
|
|
@@ -854,9 +855,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
854
855
|
}
|
|
855
856
|
var encodedData = Buffer.from(clientId + ':' + clientSecret).toString('base64');
|
|
856
857
|
var request = this._formAuthRequest(encodedData, { grant_type: 'refresh_token' }, { refresh_token: refreshToken });
|
|
857
|
-
|
|
858
|
-
request.proxy(this.proxy);
|
|
859
|
-
}
|
|
858
|
+
request.proxy = this.proxy;
|
|
860
859
|
var bodyParam = {
|
|
861
860
|
grant_type: 'refresh_token',
|
|
862
861
|
refresh_token: refreshToken,
|
|
@@ -874,57 +873,59 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
874
873
|
* @param {function} reject - Promise reject callback
|
|
875
874
|
*/
|
|
876
875
|
_handleCodeAuthorizationResponse(request, bodyParam, resolve, reject) {
|
|
877
|
-
request
|
|
878
|
-
|
|
879
|
-
// Log error
|
|
880
|
-
this.config.logger.log(
|
|
881
|
-
'error',
|
|
882
|
-
response.statusCode,
|
|
883
|
-
'POST',
|
|
884
|
-
`https://login.${this.config.environment}/oauth/token`,
|
|
885
|
-
request.header,
|
|
886
|
-
response.headers,
|
|
887
|
-
bodyParam,
|
|
888
|
-
response.body
|
|
889
|
-
);
|
|
890
|
-
|
|
891
|
-
reject(error);
|
|
892
|
-
} else {
|
|
876
|
+
request
|
|
877
|
+
.then((response) => {
|
|
893
878
|
// Logging
|
|
894
879
|
this.config.logger.log(
|
|
895
880
|
'trace',
|
|
896
|
-
response.
|
|
881
|
+
response.status,
|
|
897
882
|
'POST',
|
|
898
883
|
`https://login.${this.config.environment}/oauth/token`,
|
|
899
|
-
request.
|
|
884
|
+
request.headers,
|
|
900
885
|
response.headers,
|
|
901
886
|
bodyParam,
|
|
902
887
|
undefined
|
|
903
888
|
);
|
|
904
889
|
this.config.logger.log(
|
|
905
890
|
'debug',
|
|
906
|
-
response.
|
|
891
|
+
response.status,
|
|
907
892
|
'POST',
|
|
908
893
|
`https://login.${this.config.environment}/oauth/token`,
|
|
909
|
-
request.
|
|
894
|
+
request.headers,
|
|
910
895
|
undefined,
|
|
911
896
|
bodyParam,
|
|
912
897
|
undefined
|
|
913
898
|
);
|
|
914
899
|
|
|
915
900
|
// Get access token from response
|
|
916
|
-
var access_token = response.
|
|
917
|
-
var refresh_token = response.
|
|
901
|
+
var access_token = response.data.access_token;
|
|
902
|
+
var refresh_token = response.data.refresh_token;
|
|
918
903
|
|
|
919
904
|
this.setAccessToken(access_token);
|
|
920
905
|
this.authData.refreshToken = refresh_token;
|
|
921
|
-
this.authData.tokenExpiryTime = new Date().getTime() + response.
|
|
906
|
+
this.authData.tokenExpiryTime = new Date().getTime() + response.data['expires_in'] * 1000;
|
|
922
907
|
this.authData.tokenExpiryTimeString = new Date(this.authData.tokenExpiryTime).toUTCString();
|
|
923
908
|
|
|
924
909
|
// Return auth data
|
|
925
910
|
resolve(this.authData);
|
|
926
|
-
}
|
|
927
|
-
|
|
911
|
+
})
|
|
912
|
+
.catch((error) => {
|
|
913
|
+
// Log error
|
|
914
|
+
if (error.response) {
|
|
915
|
+
this.config.logger.log(
|
|
916
|
+
'error',
|
|
917
|
+
error.response.status,
|
|
918
|
+
'POST',
|
|
919
|
+
`https://login.${this.config.environment}/oauth/token`,
|
|
920
|
+
request.headers,
|
|
921
|
+
error.response.headers,
|
|
922
|
+
bodyParam,
|
|
923
|
+
error.response.data
|
|
924
|
+
);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
reject(error);
|
|
928
|
+
});
|
|
928
929
|
}
|
|
929
930
|
|
|
930
931
|
/**
|
|
@@ -932,15 +933,15 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
932
933
|
* @param {string} encodedData - Base64 encoded client and clientSecret pair
|
|
933
934
|
*/
|
|
934
935
|
_formAuthRequest(encodedData) {
|
|
935
|
-
var request =
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
936
|
+
var request = axios__default["default"]({
|
|
937
|
+
method: `POST`,
|
|
938
|
+
url: `https://login.${this.config.environment}/oauth/token`,
|
|
939
|
+
headers: {
|
|
940
|
+
'Authorization': 'Basic ' + encodedData,
|
|
941
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
942
|
+
},
|
|
943
|
+
data: arguments
|
|
944
|
+
});
|
|
944
945
|
|
|
945
946
|
return request;
|
|
946
947
|
}
|
|
@@ -1141,6 +1142,36 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
1141
1142
|
return param.toString();
|
|
1142
1143
|
}
|
|
1143
1144
|
|
|
1145
|
+
/**
|
|
1146
|
+
* Returns query parameters serialized in the format needed for an axios request.
|
|
1147
|
+
* @param param The unserialized query parameters.
|
|
1148
|
+
* @returns {Object} The serialized representation the query parameters.
|
|
1149
|
+
*/
|
|
1150
|
+
serialize(obj) {
|
|
1151
|
+
var result = {};
|
|
1152
|
+
for (var p in obj) {
|
|
1153
|
+
if (obj.hasOwnProperty(p) && obj[p] !== undefined) {
|
|
1154
|
+
result[encodeURIComponent(p)] = Array.isArray(obj[p]) ? obj[p].join(",") : this.paramToString(obj[p]);
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
return result
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Adds headers onto an existing header object (may be empty)
|
|
1162
|
+
* @param existingHeaders The existing header object.
|
|
1163
|
+
* @param newHeaders New headers.
|
|
1164
|
+
* @returns {Object} The combination of all headers.
|
|
1165
|
+
*/
|
|
1166
|
+
addHeaders(existingHeaders, ...newHeaders) {
|
|
1167
|
+
if (existingHeaders) {
|
|
1168
|
+
existingHeaders = Object.assign(existingHeaders, ...newHeaders);
|
|
1169
|
+
} else {
|
|
1170
|
+
existingHeaders = Object.assign(...newHeaders);
|
|
1171
|
+
}
|
|
1172
|
+
return existingHeaders;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1144
1175
|
/**
|
|
1145
1176
|
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
|
1146
1177
|
* NOTE: query parameters are not handled here.
|
|
@@ -1256,6 +1287,9 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
1256
1287
|
*/
|
|
1257
1288
|
buildCollectionParam(param, collectionFormat) {
|
|
1258
1289
|
if (!param) return;
|
|
1290
|
+
if (!Array.isArray(param)) {
|
|
1291
|
+
param = [param];
|
|
1292
|
+
}
|
|
1259
1293
|
|
|
1260
1294
|
switch (collectionFormat) {
|
|
1261
1295
|
case 'csv':
|
|
@@ -1267,7 +1301,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
1267
1301
|
case 'pipes':
|
|
1268
1302
|
return param.map(this.paramToString).join('|');
|
|
1269
1303
|
case 'multi':
|
|
1270
|
-
// return the array directly as
|
|
1304
|
+
// return the array directly as axios will handle it as expected
|
|
1271
1305
|
return param.map(this.paramToString);
|
|
1272
1306
|
default:
|
|
1273
1307
|
throw new Error(`Unknown collection format: ${collectionFormat}`);
|
|
@@ -1276,7 +1310,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
1276
1310
|
|
|
1277
1311
|
/**
|
|
1278
1312
|
* Applies authentication headers to the request.
|
|
1279
|
-
* @param {Object} request The request object
|
|
1313
|
+
* @param {Object} request The axios request config object.
|
|
1280
1314
|
* @param {Array.<String>} authNames An array of authentication method names.
|
|
1281
1315
|
*/
|
|
1282
1316
|
applyAuthToRequest(request, authNames) {
|
|
@@ -1285,7 +1319,10 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
1285
1319
|
switch (auth.type) {
|
|
1286
1320
|
case 'basic':
|
|
1287
1321
|
if (auth.username || auth.password) {
|
|
1288
|
-
request.auth
|
|
1322
|
+
request.auth = {
|
|
1323
|
+
username: auth.username || '',
|
|
1324
|
+
password: auth.password || ''
|
|
1325
|
+
};
|
|
1289
1326
|
}
|
|
1290
1327
|
break;
|
|
1291
1328
|
case 'apiKey':
|
|
@@ -1297,15 +1334,15 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
1297
1334
|
data[auth.name] = auth.apiKey;
|
|
1298
1335
|
}
|
|
1299
1336
|
if (auth['in'] === 'header') {
|
|
1300
|
-
request.
|
|
1337
|
+
request.headers = this.addHeaders(request.headers, data);
|
|
1301
1338
|
} else {
|
|
1302
|
-
request.
|
|
1339
|
+
request.params = this.serialize(data);
|
|
1303
1340
|
}
|
|
1304
1341
|
}
|
|
1305
1342
|
break;
|
|
1306
1343
|
case 'oauth2':
|
|
1307
1344
|
if (auth.accessToken) {
|
|
1308
|
-
request.
|
|
1345
|
+
request.headers = this.addHeaders(request.headers, {'Authorization': `Bearer ${auth.accessToken}`});
|
|
1309
1346
|
}
|
|
1310
1347
|
break;
|
|
1311
1348
|
default:
|
|
@@ -1334,86 +1371,71 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
1334
1371
|
sendRequest(this);
|
|
1335
1372
|
function sendRequest(that) {
|
|
1336
1373
|
var url = that.buildUrl(path, pathParams);
|
|
1337
|
-
var request =
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1374
|
+
var request = {
|
|
1375
|
+
method: httpMethod,
|
|
1376
|
+
url: url,
|
|
1377
|
+
proxy: that.proxy,
|
|
1378
|
+
timeout: that.timeout,
|
|
1379
|
+
params: that.serialize(queryParams)
|
|
1380
|
+
};
|
|
1342
1381
|
|
|
1343
1382
|
// apply authentications
|
|
1344
1383
|
that.applyAuthToRequest(request, authNames);
|
|
1345
1384
|
|
|
1346
|
-
// set query parameters
|
|
1347
|
-
request.query(that.normalizeParams(queryParams));
|
|
1348
|
-
|
|
1349
1385
|
// set header parameters
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
// set request timeout
|
|
1354
|
-
request.timeout(that.timeout);
|
|
1386
|
+
const defaultHeaders = that.defaultHeaders;
|
|
1387
|
+
const normalizedHeaderParams = that.normalizeParams(headerParams);
|
|
1388
|
+
request.headers = that.addHeaders(request.headers, defaultHeaders, normalizedHeaderParams);
|
|
1355
1389
|
|
|
1356
1390
|
var contentType = that.jsonPreferredMime(contentTypes);
|
|
1357
1391
|
if (contentType) {
|
|
1358
|
-
request.
|
|
1359
|
-
} else if (!request.
|
|
1360
|
-
request.
|
|
1392
|
+
request.headers['Content-Type'] = contentType;
|
|
1393
|
+
} else if (!request.headers['Content-Type']) {
|
|
1394
|
+
request.headers['Content-Type'] = 'application/json';
|
|
1361
1395
|
}
|
|
1362
1396
|
|
|
1363
1397
|
if (contentType === 'application/x-www-form-urlencoded') {
|
|
1364
|
-
request.
|
|
1398
|
+
request.data = that.normalizeParams(formParams);
|
|
1365
1399
|
} else if (contentType == 'multipart/form-data') {
|
|
1366
1400
|
var _formParams = that.normalizeParams(formParams);
|
|
1367
1401
|
for (var key in _formParams) {
|
|
1368
1402
|
if (_formParams.hasOwnProperty(key)) {
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
request.field(key, _formParams[key]);
|
|
1374
|
-
}
|
|
1403
|
+
// Looks like axios handles files and forms the same way
|
|
1404
|
+
var formData = new FormData();
|
|
1405
|
+
formData.set(key, _formParams[key]);
|
|
1406
|
+
request.data = formData;
|
|
1375
1407
|
}
|
|
1376
1408
|
}
|
|
1377
1409
|
} else if (bodyParam) {
|
|
1378
|
-
request.
|
|
1410
|
+
request.data = bodyParam;
|
|
1379
1411
|
}
|
|
1380
1412
|
|
|
1381
1413
|
var accept = that.jsonPreferredMime(accepts);
|
|
1382
1414
|
if (accept) {
|
|
1383
|
-
request.accept
|
|
1415
|
+
request.headers['Accept'] = accept;
|
|
1384
1416
|
}
|
|
1385
|
-
request
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
error: error
|
|
1408
|
-
} : response.body ? response.body : response.text;
|
|
1409
|
-
|
|
1410
|
-
// Debug logging
|
|
1411
|
-
that.config.logger.log('trace', response.statusCode, httpMethod, url, request.header, response.headers, bodyParam, undefined);
|
|
1412
|
-
that.config.logger.log('debug', response.statusCode, httpMethod, url, request.header, undefined, bodyParam, undefined);
|
|
1413
|
-
|
|
1414
|
-
// Resolve promise
|
|
1415
|
-
if (error) {
|
|
1416
|
-
if (data.status == 401 && that.config.refresh_access_token && that.authData.refreshToken !== "") {
|
|
1417
|
+
axios__default["default"].request(request)
|
|
1418
|
+
.then((response) => {
|
|
1419
|
+
// Build response object
|
|
1420
|
+
var data = (that.returnExtended === true) ? {
|
|
1421
|
+
status: response.status,
|
|
1422
|
+
statusText: response.statusText,
|
|
1423
|
+
headers: response.headers,
|
|
1424
|
+
body: response.data,
|
|
1425
|
+
text: response.text,
|
|
1426
|
+
error: null
|
|
1427
|
+
} : response.data ? response.data : response.text;
|
|
1428
|
+
|
|
1429
|
+
// Debug logging
|
|
1430
|
+
that.config.logger.log('trace', response.status, httpMethod, url, request.headers, response.headers, bodyParam, undefined);
|
|
1431
|
+
that.config.logger.log('debug', response.status, httpMethod, url, request.headers, undefined, bodyParam, undefined);
|
|
1432
|
+
|
|
1433
|
+
// Resolve promise
|
|
1434
|
+
resolve(data);
|
|
1435
|
+
})
|
|
1436
|
+
.catch((error) => {
|
|
1437
|
+
var data = error;
|
|
1438
|
+
if (error.response && error.response.status == 401 && that.config.refresh_access_token && that.authData.refreshToken !== "") {
|
|
1417
1439
|
that._handleExpiredAccessToken()
|
|
1418
1440
|
.then(() => {
|
|
1419
1441
|
sendRequest(that);
|
|
@@ -1421,24 +1443,29 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
1421
1443
|
.catch((err) => {
|
|
1422
1444
|
reject(err);
|
|
1423
1445
|
});
|
|
1424
|
-
} else {
|
|
1446
|
+
} else if (error.response) {
|
|
1425
1447
|
// Log error
|
|
1426
1448
|
that.config.logger.log(
|
|
1427
1449
|
'error',
|
|
1428
|
-
response.
|
|
1450
|
+
error.response.status,
|
|
1429
1451
|
httpMethod,
|
|
1430
1452
|
url,
|
|
1431
|
-
request.
|
|
1432
|
-
response.headers,
|
|
1453
|
+
request.headers,
|
|
1454
|
+
error.response.headers,
|
|
1433
1455
|
bodyParam,
|
|
1434
|
-
response.
|
|
1456
|
+
error.response.data
|
|
1435
1457
|
);
|
|
1436
|
-
|
|
1458
|
+
data = (that.returnExtended === true) ? {
|
|
1459
|
+
status: error.response.status,
|
|
1460
|
+
statusText: error.response.statusText,
|
|
1461
|
+
headers: error.response.headers,
|
|
1462
|
+
body: error.response.data,
|
|
1463
|
+
text: error.response.text,
|
|
1464
|
+
error: error
|
|
1465
|
+
} : error.response.data ? error.response.data : error.response.text;
|
|
1437
1466
|
}
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
}
|
|
1441
|
-
});
|
|
1467
|
+
reject(data);
|
|
1468
|
+
});
|
|
1442
1469
|
}
|
|
1443
1470
|
});
|
|
1444
1471
|
}
|
|
@@ -1448,7 +1475,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
1448
1475
|
/**
|
|
1449
1476
|
* Alerting service.
|
|
1450
1477
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1451
|
-
* @version
|
|
1478
|
+
* @version 138.0.1
|
|
1452
1479
|
*/
|
|
1453
1480
|
|
|
1454
1481
|
/**
|
|
@@ -1762,7 +1789,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
1762
1789
|
/**
|
|
1763
1790
|
* Analytics service.
|
|
1764
1791
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1765
|
-
* @version
|
|
1792
|
+
* @version 138.0.1
|
|
1766
1793
|
*/
|
|
1767
1794
|
|
|
1768
1795
|
/**
|
|
@@ -2944,7 +2971,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
2944
2971
|
/**
|
|
2945
2972
|
* Architect service.
|
|
2946
2973
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
2947
|
-
* @version
|
|
2974
|
+
* @version 138.0.1
|
|
2948
2975
|
*/
|
|
2949
2976
|
|
|
2950
2977
|
/**
|
|
@@ -5989,7 +6016,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
5989
6016
|
/**
|
|
5990
6017
|
* Audit service.
|
|
5991
6018
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
5992
|
-
* @version
|
|
6019
|
+
* @version 138.0.1
|
|
5993
6020
|
*/
|
|
5994
6021
|
|
|
5995
6022
|
/**
|
|
@@ -6160,7 +6187,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
6160
6187
|
/**
|
|
6161
6188
|
* Authorization service.
|
|
6162
6189
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
6163
|
-
* @version
|
|
6190
|
+
* @version 138.0.1
|
|
6164
6191
|
*/
|
|
6165
6192
|
|
|
6166
6193
|
/**
|
|
@@ -7343,7 +7370,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
7343
7370
|
/**
|
|
7344
7371
|
* Billing service.
|
|
7345
7372
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
7346
|
-
* @version
|
|
7373
|
+
* @version 138.0.1
|
|
7347
7374
|
*/
|
|
7348
7375
|
|
|
7349
7376
|
/**
|
|
@@ -7423,7 +7450,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
7423
7450
|
/**
|
|
7424
7451
|
* Chat service.
|
|
7425
7452
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
7426
|
-
* @version
|
|
7453
|
+
* @version 138.0.1
|
|
7427
7454
|
*/
|
|
7428
7455
|
|
|
7429
7456
|
/**
|
|
@@ -7514,7 +7541,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
7514
7541
|
/**
|
|
7515
7542
|
* Coaching service.
|
|
7516
7543
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
7517
|
-
* @version
|
|
7544
|
+
* @version 138.0.1
|
|
7518
7545
|
*/
|
|
7519
7546
|
|
|
7520
7547
|
/**
|
|
@@ -8091,7 +8118,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
8091
8118
|
/**
|
|
8092
8119
|
* ContentManagement service.
|
|
8093
8120
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
8094
|
-
* @version
|
|
8121
|
+
* @version 138.0.1
|
|
8095
8122
|
*/
|
|
8096
8123
|
|
|
8097
8124
|
/**
|
|
@@ -9231,7 +9258,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
9231
9258
|
/**
|
|
9232
9259
|
* Conversations service.
|
|
9233
9260
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
9234
|
-
* @version
|
|
9261
|
+
* @version 138.0.1
|
|
9235
9262
|
*/
|
|
9236
9263
|
|
|
9237
9264
|
/**
|
|
@@ -13895,7 +13922,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
13895
13922
|
/**
|
|
13896
13923
|
* DataExtensions service.
|
|
13897
13924
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
13898
|
-
* @version
|
|
13925
|
+
* @version 138.0.1
|
|
13899
13926
|
*/
|
|
13900
13927
|
|
|
13901
13928
|
/**
|
|
@@ -13981,7 +14008,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
13981
14008
|
/**
|
|
13982
14009
|
* ExternalContacts service.
|
|
13983
14010
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
13984
|
-
* @version
|
|
14011
|
+
* @version 138.0.1
|
|
13985
14012
|
*/
|
|
13986
14013
|
|
|
13987
14014
|
/**
|
|
@@ -15724,7 +15751,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
15724
15751
|
/**
|
|
15725
15752
|
* Fax service.
|
|
15726
15753
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
15727
|
-
* @version
|
|
15754
|
+
* @version 138.0.1
|
|
15728
15755
|
*/
|
|
15729
15756
|
|
|
15730
15757
|
/**
|
|
@@ -15895,7 +15922,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
15895
15922
|
/**
|
|
15896
15923
|
* Flows service.
|
|
15897
15924
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
15898
|
-
* @version
|
|
15925
|
+
* @version 138.0.1
|
|
15899
15926
|
*/
|
|
15900
15927
|
|
|
15901
15928
|
/**
|
|
@@ -15966,7 +15993,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
15966
15993
|
/**
|
|
15967
15994
|
* Gamification service.
|
|
15968
15995
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
15969
|
-
* @version
|
|
15996
|
+
* @version 138.0.1
|
|
15970
15997
|
*/
|
|
15971
15998
|
|
|
15972
15999
|
/**
|
|
@@ -17396,7 +17423,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
17396
17423
|
/**
|
|
17397
17424
|
* GeneralDataProtectionRegulation service.
|
|
17398
17425
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
17399
|
-
* @version
|
|
17426
|
+
* @version 138.0.1
|
|
17400
17427
|
*/
|
|
17401
17428
|
|
|
17402
17429
|
/**
|
|
@@ -17526,7 +17553,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
17526
17553
|
/**
|
|
17527
17554
|
* Geolocation service.
|
|
17528
17555
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
17529
|
-
* @version
|
|
17556
|
+
* @version 138.0.1
|
|
17530
17557
|
*/
|
|
17531
17558
|
|
|
17532
17559
|
/**
|
|
@@ -17657,7 +17684,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
17657
17684
|
/**
|
|
17658
17685
|
* Greetings service.
|
|
17659
17686
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
17660
|
-
* @version
|
|
17687
|
+
* @version 138.0.1
|
|
17661
17688
|
*/
|
|
17662
17689
|
|
|
17663
17690
|
/**
|
|
@@ -18112,7 +18139,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
18112
18139
|
/**
|
|
18113
18140
|
* Groups service.
|
|
18114
18141
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
18115
|
-
* @version
|
|
18142
|
+
* @version 138.0.1
|
|
18116
18143
|
*/
|
|
18117
18144
|
|
|
18118
18145
|
/**
|
|
@@ -18517,7 +18544,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
18517
18544
|
/**
|
|
18518
18545
|
* IdentityProvider service.
|
|
18519
18546
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
18520
|
-
* @version
|
|
18547
|
+
* @version 138.0.1
|
|
18521
18548
|
*/
|
|
18522
18549
|
|
|
18523
18550
|
/**
|
|
@@ -19273,7 +19300,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
19273
19300
|
/**
|
|
19274
19301
|
* Integrations service.
|
|
19275
19302
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
19276
|
-
* @version
|
|
19303
|
+
* @version 138.0.1
|
|
19277
19304
|
*/
|
|
19278
19305
|
|
|
19279
19306
|
/**
|
|
@@ -20950,7 +20977,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
20950
20977
|
/**
|
|
20951
20978
|
* Journey service.
|
|
20952
20979
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
20953
|
-
* @version
|
|
20980
|
+
* @version 138.0.1
|
|
20954
20981
|
*/
|
|
20955
20982
|
|
|
20956
20983
|
/**
|
|
@@ -21661,7 +21688,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
21661
21688
|
/**
|
|
21662
21689
|
* Knowledge service.
|
|
21663
21690
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
21664
|
-
* @version
|
|
21691
|
+
* @version 138.0.1
|
|
21665
21692
|
*/
|
|
21666
21693
|
|
|
21667
21694
|
/**
|
|
@@ -22561,7 +22588,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
22561
22588
|
/**
|
|
22562
22589
|
* LanguageUnderstanding service.
|
|
22563
22590
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
22564
|
-
* @version
|
|
22591
|
+
* @version 138.0.1
|
|
22565
22592
|
*/
|
|
22566
22593
|
|
|
22567
22594
|
/**
|
|
@@ -23465,7 +23492,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
23465
23492
|
/**
|
|
23466
23493
|
* Languages service.
|
|
23467
23494
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
23468
|
-
* @version
|
|
23495
|
+
* @version 138.0.1
|
|
23469
23496
|
*/
|
|
23470
23497
|
|
|
23471
23498
|
/**
|
|
@@ -23733,7 +23760,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
23733
23760
|
/**
|
|
23734
23761
|
* Learning service.
|
|
23735
23762
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
23736
|
-
* @version
|
|
23763
|
+
* @version 138.0.1
|
|
23737
23764
|
*/
|
|
23738
23765
|
|
|
23739
23766
|
/**
|
|
@@ -24324,7 +24351,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
24324
24351
|
/**
|
|
24325
24352
|
* License service.
|
|
24326
24353
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
24327
|
-
* @version
|
|
24354
|
+
* @version 138.0.1
|
|
24328
24355
|
*/
|
|
24329
24356
|
|
|
24330
24357
|
/**
|
|
@@ -24562,7 +24589,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
24562
24589
|
/**
|
|
24563
24590
|
* Locations service.
|
|
24564
24591
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
24565
|
-
* @version
|
|
24592
|
+
* @version 138.0.1
|
|
24566
24593
|
*/
|
|
24567
24594
|
|
|
24568
24595
|
/**
|
|
@@ -24798,7 +24825,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
24798
24825
|
/**
|
|
24799
24826
|
* Messaging service.
|
|
24800
24827
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
24801
|
-
* @version
|
|
24828
|
+
* @version 138.0.1
|
|
24802
24829
|
*/
|
|
24803
24830
|
|
|
24804
24831
|
/**
|
|
@@ -24949,7 +24976,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
24949
24976
|
/**
|
|
24950
24977
|
* MobileDevices service.
|
|
24951
24978
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
24952
|
-
* @version
|
|
24979
|
+
* @version 138.0.1
|
|
24953
24980
|
*/
|
|
24954
24981
|
|
|
24955
24982
|
/**
|
|
@@ -25100,7 +25127,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
25100
25127
|
/**
|
|
25101
25128
|
* Notifications service.
|
|
25102
25129
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
25103
|
-
* @version
|
|
25130
|
+
* @version 138.0.1
|
|
25104
25131
|
*/
|
|
25105
25132
|
|
|
25106
25133
|
/**
|
|
@@ -25325,7 +25352,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
25325
25352
|
/**
|
|
25326
25353
|
* OAuth service.
|
|
25327
25354
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
25328
|
-
* @version
|
|
25355
|
+
* @version 138.0.1
|
|
25329
25356
|
*/
|
|
25330
25357
|
|
|
25331
25358
|
/**
|
|
@@ -25691,7 +25718,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
25691
25718
|
/**
|
|
25692
25719
|
* Objects service.
|
|
25693
25720
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
25694
|
-
* @version
|
|
25721
|
+
* @version 138.0.1
|
|
25695
25722
|
*/
|
|
25696
25723
|
|
|
25697
25724
|
/**
|
|
@@ -25962,7 +25989,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
25962
25989
|
/**
|
|
25963
25990
|
* Organization service.
|
|
25964
25991
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
25965
|
-
* @version
|
|
25992
|
+
* @version 138.0.1
|
|
25966
25993
|
*/
|
|
25967
25994
|
|
|
25968
25995
|
/**
|
|
@@ -26365,7 +26392,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
26365
26392
|
/**
|
|
26366
26393
|
* OrganizationAuthorization service.
|
|
26367
26394
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
26368
|
-
* @version
|
|
26395
|
+
* @version 138.0.1
|
|
26369
26396
|
*/
|
|
26370
26397
|
|
|
26371
26398
|
/**
|
|
@@ -27290,7 +27317,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
27290
27317
|
/**
|
|
27291
27318
|
* Outbound service.
|
|
27292
27319
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
27293
|
-
* @version
|
|
27320
|
+
* @version 138.0.1
|
|
27294
27321
|
*/
|
|
27295
27322
|
|
|
27296
27323
|
/**
|
|
@@ -30545,7 +30572,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
30545
30572
|
/**
|
|
30546
30573
|
* Presence service.
|
|
30547
30574
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
30548
|
-
* @version
|
|
30575
|
+
* @version 138.0.1
|
|
30549
30576
|
*/
|
|
30550
30577
|
|
|
30551
30578
|
/**
|
|
@@ -30867,7 +30894,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
30867
30894
|
/**
|
|
30868
30895
|
* Quality service.
|
|
30869
30896
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
30870
|
-
* @version
|
|
30897
|
+
* @version 138.0.1
|
|
30871
30898
|
*/
|
|
30872
30899
|
|
|
30873
30900
|
/**
|
|
@@ -32445,7 +32472,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
32445
32472
|
/**
|
|
32446
32473
|
* Recording service.
|
|
32447
32474
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
32448
|
-
* @version
|
|
32475
|
+
* @version 138.0.1
|
|
32449
32476
|
*/
|
|
32450
32477
|
|
|
32451
32478
|
/**
|
|
@@ -34098,7 +34125,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
34098
34125
|
/**
|
|
34099
34126
|
* ResponseManagement service.
|
|
34100
34127
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
34101
|
-
* @version
|
|
34128
|
+
* @version 138.0.1
|
|
34102
34129
|
*/
|
|
34103
34130
|
|
|
34104
34131
|
/**
|
|
@@ -34582,7 +34609,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
34582
34609
|
/**
|
|
34583
34610
|
* Routing service.
|
|
34584
34611
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
34585
|
-
* @version
|
|
34612
|
+
* @version 138.0.1
|
|
34586
34613
|
*/
|
|
34587
34614
|
|
|
34588
34615
|
/**
|
|
@@ -37509,7 +37536,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
37509
37536
|
/**
|
|
37510
37537
|
* SCIM service.
|
|
37511
37538
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
37512
|
-
* @version
|
|
37539
|
+
* @version 138.0.1
|
|
37513
37540
|
*/
|
|
37514
37541
|
|
|
37515
37542
|
/**
|
|
@@ -38386,7 +38413,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
38386
38413
|
/**
|
|
38387
38414
|
* Scripts service.
|
|
38388
38415
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
38389
|
-
* @version
|
|
38416
|
+
* @version 138.0.1
|
|
38390
38417
|
*/
|
|
38391
38418
|
|
|
38392
38419
|
/**
|
|
@@ -38714,9 +38741,9 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
38714
38741
|
*
|
|
38715
38742
|
* @param {String} scriptId Script ID
|
|
38716
38743
|
* @param {Object} opts Optional parameters
|
|
38717
|
-
* @param {
|
|
38718
|
-
* @param {
|
|
38719
|
-
* @param {
|
|
38744
|
+
* @param {Object} opts.input input
|
|
38745
|
+
* @param {Object} opts.output output
|
|
38746
|
+
* @param {Object} opts.type type
|
|
38720
38747
|
* @param {String} opts.scriptDataVersion Advanced usage - controls the data version of the script
|
|
38721
38748
|
*/
|
|
38722
38749
|
getScriptsPublishedScriptIdVariables(scriptId, opts) {
|
|
@@ -38805,7 +38832,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
38805
38832
|
/**
|
|
38806
38833
|
* Search service.
|
|
38807
38834
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
38808
|
-
* @version
|
|
38835
|
+
* @version 138.0.1
|
|
38809
38836
|
*/
|
|
38810
38837
|
|
|
38811
38838
|
/**
|
|
@@ -39340,7 +39367,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
39340
39367
|
/**
|
|
39341
39368
|
* SpeechTextAnalytics service.
|
|
39342
39369
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
39343
|
-
* @version
|
|
39370
|
+
* @version 138.0.1
|
|
39344
39371
|
*/
|
|
39345
39372
|
|
|
39346
39373
|
/**
|
|
@@ -40193,7 +40220,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
40193
40220
|
/**
|
|
40194
40221
|
* Stations service.
|
|
40195
40222
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
40196
|
-
* @version
|
|
40223
|
+
* @version 138.0.1
|
|
40197
40224
|
*/
|
|
40198
40225
|
|
|
40199
40226
|
/**
|
|
@@ -40340,7 +40367,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
40340
40367
|
/**
|
|
40341
40368
|
* Suggest service.
|
|
40342
40369
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
40343
|
-
* @version
|
|
40370
|
+
* @version 138.0.1
|
|
40344
40371
|
*/
|
|
40345
40372
|
|
|
40346
40373
|
/**
|
|
@@ -40479,7 +40506,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
40479
40506
|
/**
|
|
40480
40507
|
* Telephony service.
|
|
40481
40508
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
40482
|
-
* @version
|
|
40509
|
+
* @version 138.0.1
|
|
40483
40510
|
*/
|
|
40484
40511
|
|
|
40485
40512
|
/**
|
|
@@ -40587,7 +40614,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
40587
40614
|
/**
|
|
40588
40615
|
* TelephonyProvidersEdge service.
|
|
40589
40616
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
40590
|
-
* @version
|
|
40617
|
+
* @version 138.0.1
|
|
40591
40618
|
*/
|
|
40592
40619
|
|
|
40593
40620
|
/**
|
|
@@ -44220,7 +44247,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
44220
44247
|
/**
|
|
44221
44248
|
* Textbots service.
|
|
44222
44249
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
44223
|
-
* @version
|
|
44250
|
+
* @version 138.0.1
|
|
44224
44251
|
*/
|
|
44225
44252
|
|
|
44226
44253
|
/**
|
|
@@ -44348,7 +44375,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
44348
44375
|
/**
|
|
44349
44376
|
* Tokens service.
|
|
44350
44377
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
44351
|
-
* @version
|
|
44378
|
+
* @version 138.0.1
|
|
44352
44379
|
*/
|
|
44353
44380
|
|
|
44354
44381
|
/**
|
|
@@ -44454,7 +44481,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
44454
44481
|
/**
|
|
44455
44482
|
* Uploads service.
|
|
44456
44483
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
44457
|
-
* @version
|
|
44484
|
+
* @version 138.0.1
|
|
44458
44485
|
*/
|
|
44459
44486
|
|
|
44460
44487
|
/**
|
|
@@ -44605,7 +44632,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
44605
44632
|
/**
|
|
44606
44633
|
* Usage service.
|
|
44607
44634
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
44608
|
-
* @version
|
|
44635
|
+
* @version 138.0.1
|
|
44609
44636
|
*/
|
|
44610
44637
|
|
|
44611
44638
|
/**
|
|
@@ -44676,7 +44703,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
44676
44703
|
/**
|
|
44677
44704
|
* UserRecordings service.
|
|
44678
44705
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
44679
|
-
* @version
|
|
44706
|
+
* @version 138.0.1
|
|
44680
44707
|
*/
|
|
44681
44708
|
|
|
44682
44709
|
/**
|
|
@@ -44860,7 +44887,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
44860
44887
|
/**
|
|
44861
44888
|
* Users service.
|
|
44862
44889
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
44863
|
-
* @version
|
|
44890
|
+
* @version 138.0.1
|
|
44864
44891
|
*/
|
|
44865
44892
|
|
|
44866
44893
|
/**
|
|
@@ -47162,7 +47189,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
47162
47189
|
/**
|
|
47163
47190
|
* Utilities service.
|
|
47164
47191
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
47165
|
-
* @version
|
|
47192
|
+
* @version 138.0.1
|
|
47166
47193
|
*/
|
|
47167
47194
|
|
|
47168
47195
|
/**
|
|
@@ -47273,7 +47300,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
47273
47300
|
/**
|
|
47274
47301
|
* Voicemail service.
|
|
47275
47302
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
47276
|
-
* @version
|
|
47303
|
+
* @version 138.0.1
|
|
47277
47304
|
*/
|
|
47278
47305
|
|
|
47279
47306
|
/**
|
|
@@ -47940,7 +47967,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
47940
47967
|
/**
|
|
47941
47968
|
* WebChat service.
|
|
47942
47969
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
47943
|
-
* @version
|
|
47970
|
+
* @version 138.0.1
|
|
47944
47971
|
*/
|
|
47945
47972
|
|
|
47946
47973
|
/**
|
|
@@ -48484,7 +48511,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
48484
48511
|
/**
|
|
48485
48512
|
* WebDeployments service.
|
|
48486
48513
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
48487
|
-
* @version
|
|
48514
|
+
* @version 138.0.1
|
|
48488
48515
|
*/
|
|
48489
48516
|
|
|
48490
48517
|
/**
|
|
@@ -48839,7 +48866,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
48839
48866
|
/**
|
|
48840
48867
|
* WebMessaging service.
|
|
48841
48868
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
48842
|
-
* @version
|
|
48869
|
+
* @version 138.0.1
|
|
48843
48870
|
*/
|
|
48844
48871
|
|
|
48845
48872
|
/**
|
|
@@ -48885,7 +48912,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
48885
48912
|
/**
|
|
48886
48913
|
* Widgets service.
|
|
48887
48914
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
48888
|
-
* @version
|
|
48915
|
+
* @version 138.0.1
|
|
48889
48916
|
*/
|
|
48890
48917
|
|
|
48891
48918
|
/**
|
|
@@ -49031,7 +49058,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
49031
49058
|
/**
|
|
49032
49059
|
* WorkforceManagement service.
|
|
49033
49060
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
49034
|
-
* @version
|
|
49061
|
+
* @version 138.0.1
|
|
49035
49062
|
*/
|
|
49036
49063
|
|
|
49037
49064
|
/**
|
|
@@ -51790,8 +51817,8 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
51790
51817
|
*
|
|
51791
51818
|
* @param {String} businessUnitId The ID of the business unit
|
|
51792
51819
|
* @param {Object} opts Optional parameters
|
|
51793
|
-
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification.
|
|
51794
|
-
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service.
|
|
51820
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
51821
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
51795
51822
|
* @param {Object} opts.body body
|
|
51796
51823
|
*/
|
|
51797
51824
|
postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId, opts) {
|
|
@@ -51912,8 +51939,8 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
51912
51939
|
* @param {String} scheduleId The ID of the schedule
|
|
51913
51940
|
* @param {Object} body body
|
|
51914
51941
|
* @param {Object} opts Optional parameters
|
|
51915
|
-
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification.
|
|
51916
|
-
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service.
|
|
51942
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
51943
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
51917
51944
|
*/
|
|
51918
51945
|
postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(businessUnitId, weekId, scheduleId, body, opts) {
|
|
51919
51946
|
opts = opts || {};
|
|
@@ -52499,8 +52526,8 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
52499
52526
|
*
|
|
52500
52527
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
52501
52528
|
* @param {Object} opts Optional parameters
|
|
52502
|
-
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification.
|
|
52503
|
-
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service.
|
|
52529
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
52530
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
52504
52531
|
* @param {Object} opts.body body
|
|
52505
52532
|
*/
|
|
52506
52533
|
postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId, opts) {
|
|
@@ -53282,7 +53309,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
|
|
|
53282
53309
|
* </pre>
|
|
53283
53310
|
* </p>
|
|
53284
53311
|
* @module purecloud-platform-client-v2/index
|
|
53285
|
-
* @version
|
|
53312
|
+
* @version 138.0.1
|
|
53286
53313
|
*/
|
|
53287
53314
|
class platformClient {
|
|
53288
53315
|
constructor() {
|