purecloud-platform-client-v2 157.0.0 → 158.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 +2 -2
- package/dist/node/purecloud-platform-client-v2.js +529 -73
- package/dist/web-amd/purecloud-platform-client-v2.js +529 -73
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +529 -73
- package/dist/web-cjs/purecloud-platform-client-v2.js +539 -73
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +141 -2
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/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 +26 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.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 +3 -2
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +3 -3
- 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 +371 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- 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 +3 -3
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +61 -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 +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class OrganizationAuthorizationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* OrganizationAuthorization service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 158.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -75,6 +75,66 @@ class OrganizationAuthorizationApi {
|
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Delete Trustee Group
|
|
80
|
+
*
|
|
81
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
82
|
+
* @param {String} trusteeGroupId Trustee Group Id
|
|
83
|
+
*/
|
|
84
|
+
deleteOrgauthorizationTrusteeGroup(trusteeOrgId, trusteeGroupId) {
|
|
85
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
86
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
87
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroup';
|
|
88
|
+
}
|
|
89
|
+
// verify the required parameter 'trusteeGroupId' is set
|
|
90
|
+
if (trusteeGroupId === undefined || trusteeGroupId === null) {
|
|
91
|
+
throw 'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroup';
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return this.apiClient.callApi(
|
|
95
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}',
|
|
96
|
+
'DELETE',
|
|
97
|
+
{ 'trusteeOrgId': trusteeOrgId,'trusteeGroupId': trusteeGroupId },
|
|
98
|
+
{ },
|
|
99
|
+
{ },
|
|
100
|
+
{ },
|
|
101
|
+
null,
|
|
102
|
+
['PureCloud OAuth'],
|
|
103
|
+
['application/json'],
|
|
104
|
+
['application/json']
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Delete Trustee Group Roles
|
|
110
|
+
*
|
|
111
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
112
|
+
* @param {String} trusteeGroupId Trustee Group Id
|
|
113
|
+
*/
|
|
114
|
+
deleteOrgauthorizationTrusteeGroupRoles(trusteeOrgId, trusteeGroupId) {
|
|
115
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
116
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
117
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroupRoles';
|
|
118
|
+
}
|
|
119
|
+
// verify the required parameter 'trusteeGroupId' is set
|
|
120
|
+
if (trusteeGroupId === undefined || trusteeGroupId === null) {
|
|
121
|
+
throw 'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroupRoles';
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return this.apiClient.callApi(
|
|
125
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles',
|
|
126
|
+
'DELETE',
|
|
127
|
+
{ 'trusteeOrgId': trusteeOrgId,'trusteeGroupId': trusteeGroupId },
|
|
128
|
+
{ },
|
|
129
|
+
{ },
|
|
130
|
+
{ },
|
|
131
|
+
null,
|
|
132
|
+
['PureCloud OAuth'],
|
|
133
|
+
['application/json'],
|
|
134
|
+
['application/json']
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
78
138
|
/**
|
|
79
139
|
* Delete Trustee User
|
|
80
140
|
*
|
|
@@ -190,6 +250,36 @@ class OrganizationAuthorizationApi {
|
|
|
190
250
|
);
|
|
191
251
|
}
|
|
192
252
|
|
|
253
|
+
/**
|
|
254
|
+
* Delete Trustee Group
|
|
255
|
+
*
|
|
256
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
257
|
+
* @param {String} trustorGroupId Trustor Group Id
|
|
258
|
+
*/
|
|
259
|
+
deleteOrgauthorizationTrustorGroup(trustorOrgId, trustorGroupId) {
|
|
260
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
261
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
262
|
+
throw 'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorGroup';
|
|
263
|
+
}
|
|
264
|
+
// verify the required parameter 'trustorGroupId' is set
|
|
265
|
+
if (trustorGroupId === undefined || trustorGroupId === null) {
|
|
266
|
+
throw 'Missing the required parameter "trustorGroupId" when calling deleteOrgauthorizationTrustorGroup';
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
return this.apiClient.callApi(
|
|
270
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}',
|
|
271
|
+
'DELETE',
|
|
272
|
+
{ 'trustorOrgId': trustorOrgId,'trustorGroupId': trustorGroupId },
|
|
273
|
+
{ },
|
|
274
|
+
{ },
|
|
275
|
+
{ },
|
|
276
|
+
null,
|
|
277
|
+
['PureCloud OAuth'],
|
|
278
|
+
['application/json'],
|
|
279
|
+
['application/json']
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
|
|
193
283
|
/**
|
|
194
284
|
* Delete Trustee User
|
|
195
285
|
*
|
|
@@ -295,6 +385,96 @@ class OrganizationAuthorizationApi {
|
|
|
295
385
|
);
|
|
296
386
|
}
|
|
297
387
|
|
|
388
|
+
/**
|
|
389
|
+
* Get Trustee Group
|
|
390
|
+
*
|
|
391
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
392
|
+
* @param {String} trusteeGroupId Trustee Group Id
|
|
393
|
+
*/
|
|
394
|
+
getOrgauthorizationTrusteeGroup(trusteeOrgId, trusteeGroupId) {
|
|
395
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
396
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
397
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroup';
|
|
398
|
+
}
|
|
399
|
+
// verify the required parameter 'trusteeGroupId' is set
|
|
400
|
+
if (trusteeGroupId === undefined || trusteeGroupId === null) {
|
|
401
|
+
throw 'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroup';
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
return this.apiClient.callApi(
|
|
405
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}',
|
|
406
|
+
'GET',
|
|
407
|
+
{ 'trusteeOrgId': trusteeOrgId,'trusteeGroupId': trusteeGroupId },
|
|
408
|
+
{ },
|
|
409
|
+
{ },
|
|
410
|
+
{ },
|
|
411
|
+
null,
|
|
412
|
+
['PureCloud OAuth'],
|
|
413
|
+
['application/json'],
|
|
414
|
+
['application/json']
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Get Trustee Group Roles
|
|
420
|
+
*
|
|
421
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
422
|
+
* @param {String} trusteeGroupId Trustee Group Id
|
|
423
|
+
*/
|
|
424
|
+
getOrgauthorizationTrusteeGroupRoles(trusteeOrgId, trusteeGroupId) {
|
|
425
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
426
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
427
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroupRoles';
|
|
428
|
+
}
|
|
429
|
+
// verify the required parameter 'trusteeGroupId' is set
|
|
430
|
+
if (trusteeGroupId === undefined || trusteeGroupId === null) {
|
|
431
|
+
throw 'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroupRoles';
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
return this.apiClient.callApi(
|
|
435
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles',
|
|
436
|
+
'GET',
|
|
437
|
+
{ 'trusteeOrgId': trusteeOrgId,'trusteeGroupId': trusteeGroupId },
|
|
438
|
+
{ },
|
|
439
|
+
{ },
|
|
440
|
+
{ },
|
|
441
|
+
null,
|
|
442
|
+
['PureCloud OAuth'],
|
|
443
|
+
['application/json'],
|
|
444
|
+
['application/json']
|
|
445
|
+
);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* The list of trustee groups for this organization (i.e. groups granted access to this organization).
|
|
450
|
+
*
|
|
451
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
452
|
+
* @param {Object} opts Optional parameters
|
|
453
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
454
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
455
|
+
*/
|
|
456
|
+
getOrgauthorizationTrusteeGroups(trusteeOrgId, opts) {
|
|
457
|
+
opts = opts || {};
|
|
458
|
+
|
|
459
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
460
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
461
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroups';
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
return this.apiClient.callApi(
|
|
465
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups',
|
|
466
|
+
'GET',
|
|
467
|
+
{ 'trusteeOrgId': trusteeOrgId },
|
|
468
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
469
|
+
{ },
|
|
470
|
+
{ },
|
|
471
|
+
null,
|
|
472
|
+
['PureCloud OAuth'],
|
|
473
|
+
['application/json'],
|
|
474
|
+
['application/json']
|
|
475
|
+
);
|
|
476
|
+
}
|
|
477
|
+
|
|
298
478
|
/**
|
|
299
479
|
* Get Trustee User
|
|
300
480
|
*
|
|
@@ -510,6 +690,66 @@ class OrganizationAuthorizationApi {
|
|
|
510
690
|
);
|
|
511
691
|
}
|
|
512
692
|
|
|
693
|
+
/**
|
|
694
|
+
* Get Trustee Group
|
|
695
|
+
*
|
|
696
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
697
|
+
* @param {String} trustorGroupId Trustor Group Id
|
|
698
|
+
*/
|
|
699
|
+
getOrgauthorizationTrustorGroup(trustorOrgId, trustorGroupId) {
|
|
700
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
701
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
702
|
+
throw 'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroup';
|
|
703
|
+
}
|
|
704
|
+
// verify the required parameter 'trustorGroupId' is set
|
|
705
|
+
if (trustorGroupId === undefined || trustorGroupId === null) {
|
|
706
|
+
throw 'Missing the required parameter "trustorGroupId" when calling getOrgauthorizationTrustorGroup';
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
return this.apiClient.callApi(
|
|
710
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}',
|
|
711
|
+
'GET',
|
|
712
|
+
{ 'trustorOrgId': trustorOrgId,'trustorGroupId': trustorGroupId },
|
|
713
|
+
{ },
|
|
714
|
+
{ },
|
|
715
|
+
{ },
|
|
716
|
+
null,
|
|
717
|
+
['PureCloud OAuth'],
|
|
718
|
+
['application/json'],
|
|
719
|
+
['application/json']
|
|
720
|
+
);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* The list of groups in the trustor organization (i.e. groups granted access).
|
|
725
|
+
*
|
|
726
|
+
* @param {String} trustorOrgId Trustee Organization Id
|
|
727
|
+
* @param {Object} opts Optional parameters
|
|
728
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
729
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
730
|
+
*/
|
|
731
|
+
getOrgauthorizationTrustorGroups(trustorOrgId, opts) {
|
|
732
|
+
opts = opts || {};
|
|
733
|
+
|
|
734
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
735
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
736
|
+
throw 'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroups';
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
return this.apiClient.callApi(
|
|
740
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/groups',
|
|
741
|
+
'GET',
|
|
742
|
+
{ 'trustorOrgId': trustorOrgId },
|
|
743
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
744
|
+
{ },
|
|
745
|
+
{ },
|
|
746
|
+
null,
|
|
747
|
+
['PureCloud OAuth'],
|
|
748
|
+
['application/json'],
|
|
749
|
+
['application/json']
|
|
750
|
+
);
|
|
751
|
+
}
|
|
752
|
+
|
|
513
753
|
/**
|
|
514
754
|
* Get Trustee User
|
|
515
755
|
*
|
|
@@ -620,6 +860,36 @@ class OrganizationAuthorizationApi {
|
|
|
620
860
|
);
|
|
621
861
|
}
|
|
622
862
|
|
|
863
|
+
/**
|
|
864
|
+
* Add a group to the trust.
|
|
865
|
+
*
|
|
866
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
867
|
+
* @param {Object} body Trust
|
|
868
|
+
*/
|
|
869
|
+
postOrgauthorizationTrusteeGroups(trusteeOrgId, body) {
|
|
870
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
871
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
872
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeGroups';
|
|
873
|
+
}
|
|
874
|
+
// verify the required parameter 'body' is set
|
|
875
|
+
if (body === undefined || body === null) {
|
|
876
|
+
throw 'Missing the required parameter "body" when calling postOrgauthorizationTrusteeGroups';
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
return this.apiClient.callApi(
|
|
880
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups',
|
|
881
|
+
'POST',
|
|
882
|
+
{ 'trusteeOrgId': trusteeOrgId },
|
|
883
|
+
{ },
|
|
884
|
+
{ },
|
|
885
|
+
{ },
|
|
886
|
+
body,
|
|
887
|
+
['PureCloud OAuth'],
|
|
888
|
+
['application/json'],
|
|
889
|
+
['application/json']
|
|
890
|
+
);
|
|
891
|
+
}
|
|
892
|
+
|
|
623
893
|
/**
|
|
624
894
|
* Add a user to the trust.
|
|
625
895
|
*
|
|
@@ -794,6 +1064,76 @@ class OrganizationAuthorizationApi {
|
|
|
794
1064
|
);
|
|
795
1065
|
}
|
|
796
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* Update Trustee Group Roles
|
|
1069
|
+
*
|
|
1070
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
1071
|
+
* @param {String} trusteeGroupId Trustee Group Id
|
|
1072
|
+
* @param {Object} body Set of roles with corresponding divisions to apply
|
|
1073
|
+
*/
|
|
1074
|
+
putOrgauthorizationTrusteeGroupRoledivisions(trusteeOrgId, trusteeGroupId, body) {
|
|
1075
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
1076
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
1077
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoledivisions';
|
|
1078
|
+
}
|
|
1079
|
+
// verify the required parameter 'trusteeGroupId' is set
|
|
1080
|
+
if (trusteeGroupId === undefined || trusteeGroupId === null) {
|
|
1081
|
+
throw 'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoledivisions';
|
|
1082
|
+
}
|
|
1083
|
+
// verify the required parameter 'body' is set
|
|
1084
|
+
if (body === undefined || body === null) {
|
|
1085
|
+
throw 'Missing the required parameter "body" when calling putOrgauthorizationTrusteeGroupRoledivisions';
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
return this.apiClient.callApi(
|
|
1089
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roledivisions',
|
|
1090
|
+
'PUT',
|
|
1091
|
+
{ 'trusteeOrgId': trusteeOrgId,'trusteeGroupId': trusteeGroupId },
|
|
1092
|
+
{ },
|
|
1093
|
+
{ },
|
|
1094
|
+
{ },
|
|
1095
|
+
body,
|
|
1096
|
+
['PureCloud OAuth'],
|
|
1097
|
+
['application/json'],
|
|
1098
|
+
['application/json']
|
|
1099
|
+
);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Update Trustee Group Roles
|
|
1104
|
+
*
|
|
1105
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
1106
|
+
* @param {String} trusteeGroupId Trustee Group Id
|
|
1107
|
+
* @param {Array.<String>} body List of roles
|
|
1108
|
+
*/
|
|
1109
|
+
putOrgauthorizationTrusteeGroupRoles(trusteeOrgId, trusteeGroupId, body) {
|
|
1110
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
1111
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
1112
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoles';
|
|
1113
|
+
}
|
|
1114
|
+
// verify the required parameter 'trusteeGroupId' is set
|
|
1115
|
+
if (trusteeGroupId === undefined || trusteeGroupId === null) {
|
|
1116
|
+
throw 'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoles';
|
|
1117
|
+
}
|
|
1118
|
+
// verify the required parameter 'body' is set
|
|
1119
|
+
if (body === undefined || body === null) {
|
|
1120
|
+
throw 'Missing the required parameter "body" when calling putOrgauthorizationTrusteeGroupRoles';
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
return this.apiClient.callApi(
|
|
1124
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles',
|
|
1125
|
+
'PUT',
|
|
1126
|
+
{ 'trusteeOrgId': trusteeOrgId,'trusteeGroupId': trusteeGroupId },
|
|
1127
|
+
{ },
|
|
1128
|
+
{ },
|
|
1129
|
+
{ },
|
|
1130
|
+
body,
|
|
1131
|
+
['PureCloud OAuth'],
|
|
1132
|
+
['application/json'],
|
|
1133
|
+
['application/json']
|
|
1134
|
+
);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
797
1137
|
/**
|
|
798
1138
|
* Update Trustee User Roles
|
|
799
1139
|
*
|
|
@@ -894,6 +1234,36 @@ class OrganizationAuthorizationApi {
|
|
|
894
1234
|
);
|
|
895
1235
|
}
|
|
896
1236
|
|
|
1237
|
+
/**
|
|
1238
|
+
* Add a Trustee Group to the trust.
|
|
1239
|
+
*
|
|
1240
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
1241
|
+
* @param {String} trustorGroupId Trustor Group Id
|
|
1242
|
+
*/
|
|
1243
|
+
putOrgauthorizationTrustorGroup(trustorOrgId, trustorGroupId) {
|
|
1244
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
1245
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
1246
|
+
throw 'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorGroup';
|
|
1247
|
+
}
|
|
1248
|
+
// verify the required parameter 'trustorGroupId' is set
|
|
1249
|
+
if (trustorGroupId === undefined || trustorGroupId === null) {
|
|
1250
|
+
throw 'Missing the required parameter "trustorGroupId" when calling putOrgauthorizationTrustorGroup';
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
return this.apiClient.callApi(
|
|
1254
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}',
|
|
1255
|
+
'PUT',
|
|
1256
|
+
{ 'trustorOrgId': trustorOrgId,'trustorGroupId': trustorGroupId },
|
|
1257
|
+
{ },
|
|
1258
|
+
{ },
|
|
1259
|
+
{ },
|
|
1260
|
+
null,
|
|
1261
|
+
['PureCloud OAuth'],
|
|
1262
|
+
['application/json'],
|
|
1263
|
+
['application/json']
|
|
1264
|
+
);
|
|
1265
|
+
}
|
|
1266
|
+
|
|
897
1267
|
/**
|
|
898
1268
|
* Add a Trustee user to the trust.
|
|
899
1269
|
*
|
|
@@ -5,7 +5,7 @@ class StationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Stations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 158.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -103,7 +103,7 @@ class StationsApi {
|
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
105
|
* Get an organization's StationSettings
|
|
106
|
-
*
|
|
106
|
+
* This route is deprecated as the FreeSeatingConfiguration feature it references has been removed
|
|
107
107
|
*/
|
|
108
108
|
getStationsSettings() {
|
|
109
109
|
|
|
@@ -123,7 +123,7 @@ class StationsApi {
|
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Patch an organization's StationSettings
|
|
126
|
-
*
|
|
126
|
+
* This route is deprecated as the FreeSeatingConfiguration feature it references has been removed
|
|
127
127
|
* @param {Object} body Station settings
|
|
128
128
|
*/
|
|
129
129
|
patchStationsSettings(body) {
|