purecloud-platform-client-v2 217.0.0 → 218.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +1069 -209
- package/dist/web-amd/purecloud-platform-client-v2.js +1069 -209
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +342 -169
- package/dist/web-cjs/purecloud-platform-client-v2.js +342 -169
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +822 -79
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -4
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +61 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -4
- 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 +249 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +65 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +77 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +31 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -6
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -70
- 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 +11 -11
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +4 -3
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +65 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +403 -20
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +3 -2
- 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 +19 -10
- 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 +11 -6
- 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 EmailsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Emails service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 218.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,6 +20,26 @@ class EmailsApi {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Reset email threading settings to default
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
deleteEmailsSettingsThreading() {
|
|
28
|
+
|
|
29
|
+
return this.apiClient.callApi(
|
|
30
|
+
'/api/v2/emails/settings/threading',
|
|
31
|
+
'DELETE',
|
|
32
|
+
{ },
|
|
33
|
+
{ },
|
|
34
|
+
{ },
|
|
35
|
+
{ },
|
|
36
|
+
null,
|
|
37
|
+
['PureCloud OAuth'],
|
|
38
|
+
['application/json'],
|
|
39
|
+
['application/json']
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
23
43
|
/**
|
|
24
44
|
* Get email Contact Center settings
|
|
25
45
|
*
|
|
@@ -40,6 +60,26 @@ class EmailsApi {
|
|
|
40
60
|
);
|
|
41
61
|
}
|
|
42
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Get email threading settings
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
getEmailsSettingsThreading() {
|
|
68
|
+
|
|
69
|
+
return this.apiClient.callApi(
|
|
70
|
+
'/api/v2/emails/settings/threading',
|
|
71
|
+
'GET',
|
|
72
|
+
{ },
|
|
73
|
+
{ },
|
|
74
|
+
{ },
|
|
75
|
+
{ },
|
|
76
|
+
null,
|
|
77
|
+
['PureCloud OAuth'],
|
|
78
|
+
['application/json'],
|
|
79
|
+
['application/json']
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
43
83
|
/**
|
|
44
84
|
* Patch email Contact Center settings
|
|
45
85
|
*
|
|
@@ -64,6 +104,30 @@ class EmailsApi {
|
|
|
64
104
|
);
|
|
65
105
|
}
|
|
66
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Patch email threading settings
|
|
109
|
+
*
|
|
110
|
+
* @param {Object} opts Optional parameters
|
|
111
|
+
* @param {Object} opts.body
|
|
112
|
+
*/
|
|
113
|
+
patchEmailsSettingsThreading(opts) {
|
|
114
|
+
opts = opts || {};
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
return this.apiClient.callApi(
|
|
118
|
+
'/api/v2/emails/settings/threading',
|
|
119
|
+
'PATCH',
|
|
120
|
+
{ },
|
|
121
|
+
{ },
|
|
122
|
+
{ },
|
|
123
|
+
{ },
|
|
124
|
+
opts['body'],
|
|
125
|
+
['PureCloud OAuth'],
|
|
126
|
+
['application/json'],
|
|
127
|
+
['application/json']
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
67
131
|
}
|
|
68
132
|
|
|
69
133
|
|
|
@@ -5,7 +5,7 @@ class ExternalContactsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* ExternalContacts service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 218.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -489,6 +489,57 @@ class ExternalContactsApi {
|
|
|
489
489
|
);
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
+
/**
|
|
493
|
+
* Get export for exportId
|
|
494
|
+
*
|
|
495
|
+
* @param {String} exportId Export id
|
|
496
|
+
*/
|
|
497
|
+
getExternalcontactsContactsExport(exportId) {
|
|
498
|
+
// verify the required parameter 'exportId' is set
|
|
499
|
+
if (exportId === undefined || exportId === null) {
|
|
500
|
+
throw 'Missing the required parameter "exportId" when calling getExternalcontactsContactsExport';
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
return this.apiClient.callApi(
|
|
504
|
+
'/api/v2/externalcontacts/contacts/exports/{exportId}',
|
|
505
|
+
'GET',
|
|
506
|
+
{ 'exportId': exportId },
|
|
507
|
+
{ },
|
|
508
|
+
{ },
|
|
509
|
+
{ },
|
|
510
|
+
null,
|
|
511
|
+
['PureCloud OAuth'],
|
|
512
|
+
['application/json'],
|
|
513
|
+
['application/json']
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* List exports for organization
|
|
519
|
+
*
|
|
520
|
+
* @param {Object} opts Optional parameters
|
|
521
|
+
* @param {Array.<String>} opts.divisionIds Division IDs of entities
|
|
522
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities
|
|
523
|
+
* @param {Number} opts.pageSize Number of entities to return
|
|
524
|
+
*/
|
|
525
|
+
getExternalcontactsContactsExports(opts) {
|
|
526
|
+
opts = opts || {};
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
return this.apiClient.callApi(
|
|
530
|
+
'/api/v2/externalcontacts/contacts/exports',
|
|
531
|
+
'GET',
|
|
532
|
+
{ },
|
|
533
|
+
{ 'divisionIds': this.apiClient.buildCollectionParam(opts['divisionIds'], 'multi'),'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
534
|
+
{ },
|
|
535
|
+
{ },
|
|
536
|
+
null,
|
|
537
|
+
['PureCloud OAuth'],
|
|
538
|
+
['application/json'],
|
|
539
|
+
['application/json']
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
|
|
492
543
|
/**
|
|
493
544
|
* Get a schema
|
|
494
545
|
*
|
|
@@ -1997,6 +2048,31 @@ class ExternalContactsApi {
|
|
|
1997
2048
|
);
|
|
1998
2049
|
}
|
|
1999
2050
|
|
|
2051
|
+
/**
|
|
2052
|
+
* Create bulk export
|
|
2053
|
+
*
|
|
2054
|
+
* @param {Object} body Export
|
|
2055
|
+
*/
|
|
2056
|
+
postExternalcontactsContactsExports(body) {
|
|
2057
|
+
// verify the required parameter 'body' is set
|
|
2058
|
+
if (body === undefined || body === null) {
|
|
2059
|
+
throw 'Missing the required parameter "body" when calling postExternalcontactsContactsExports';
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
return this.apiClient.callApi(
|
|
2063
|
+
'/api/v2/externalcontacts/contacts/exports',
|
|
2064
|
+
'POST',
|
|
2065
|
+
{ },
|
|
2066
|
+
{ },
|
|
2067
|
+
{ },
|
|
2068
|
+
{ },
|
|
2069
|
+
body,
|
|
2070
|
+
['PureCloud OAuth'],
|
|
2071
|
+
['application/json'],
|
|
2072
|
+
['application/json']
|
|
2073
|
+
);
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2000
2076
|
/**
|
|
2001
2077
|
* Create a schema
|
|
2002
2078
|
*
|
|
@@ -5,7 +5,7 @@ class IntegrationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Integrations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 218.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -2235,6 +2235,36 @@ class IntegrationsApi {
|
|
|
2235
2235
|
);
|
|
2236
2236
|
}
|
|
2237
2237
|
|
|
2238
|
+
/**
|
|
2239
|
+
* Invoke Webhook
|
|
2240
|
+
*
|
|
2241
|
+
* @param {String} tokenId The token of the webhook to be invoked
|
|
2242
|
+
* @param {Object.<String, {String: Object}>} body Webhook Invocation Payload
|
|
2243
|
+
*/
|
|
2244
|
+
postIntegrationsWebhookEvents(tokenId, body) {
|
|
2245
|
+
// verify the required parameter 'tokenId' is set
|
|
2246
|
+
if (tokenId === undefined || tokenId === null) {
|
|
2247
|
+
throw 'Missing the required parameter "tokenId" when calling postIntegrationsWebhookEvents';
|
|
2248
|
+
}
|
|
2249
|
+
// verify the required parameter 'body' is set
|
|
2250
|
+
if (body === undefined || body === null) {
|
|
2251
|
+
throw 'Missing the required parameter "body" when calling postIntegrationsWebhookEvents';
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
return this.apiClient.callApi(
|
|
2255
|
+
'/api/v2/integrations/webhooks/{tokenId}/events',
|
|
2256
|
+
'POST',
|
|
2257
|
+
{ 'tokenId': tokenId },
|
|
2258
|
+
{ },
|
|
2259
|
+
{ },
|
|
2260
|
+
{ },
|
|
2261
|
+
body,
|
|
2262
|
+
['PureCloud OAuth'],
|
|
2263
|
+
['application/json'],
|
|
2264
|
+
['application/json']
|
|
2265
|
+
);
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2238
2268
|
/**
|
|
2239
2269
|
* Update integration configuration.
|
|
2240
2270
|
*
|
|
@@ -5,7 +5,7 @@ class KnowledgeApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Knowledge service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 218.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1280,7 +1280,6 @@ class KnowledgeApi {
|
|
|
1280
1280
|
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
1281
1281
|
* @param {String} uploadId UploadId
|
|
1282
1282
|
* @deprecated
|
|
1283
|
-
* getKnowledgeKnowledgebaseLanguageDocumentUpload is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1284
1283
|
*/
|
|
1285
1284
|
getKnowledgeKnowledgebaseLanguageDocumentUpload(documentId, knowledgeBaseId, languageCode, uploadId) {
|
|
1286
1285
|
// verify the required parameter 'documentId' is set
|
|
@@ -2986,7 +2985,6 @@ class KnowledgeApi {
|
|
|
2986
2985
|
*
|
|
2987
2986
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
2988
2987
|
* @param {Object} body
|
|
2989
|
-
* postKnowledgeKnowledgebaseDocumentsBulkRemove is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2990
2988
|
*/
|
|
2991
2989
|
postKnowledgeKnowledgebaseDocumentsBulkRemove(knowledgeBaseId, body) {
|
|
2992
2990
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
@@ -3017,7 +3015,6 @@ class KnowledgeApi {
|
|
|
3017
3015
|
*
|
|
3018
3016
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3019
3017
|
* @param {Object} body
|
|
3020
|
-
* postKnowledgeKnowledgebaseDocumentsBulkUpdate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3021
3018
|
*/
|
|
3022
3019
|
postKnowledgeKnowledgebaseDocumentsBulkUpdate(knowledgeBaseId, body) {
|
|
3023
3020
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
@@ -3166,7 +3163,6 @@ class KnowledgeApi {
|
|
|
3166
3163
|
*
|
|
3167
3164
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
3168
3165
|
* @param {Object} body
|
|
3169
|
-
* postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3170
3166
|
*/
|
|
3171
3167
|
postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(knowledgeBaseId, body) {
|
|
3172
3168
|
// verify the required parameter 'knowledgeBaseId' is set
|
|
@@ -3326,7 +3322,6 @@ class KnowledgeApi {
|
|
|
3326
3322
|
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
3327
3323
|
* @param {Object} body
|
|
3328
3324
|
* @deprecated
|
|
3329
|
-
* postKnowledgeKnowledgebaseLanguageDocumentUploads is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3330
3325
|
*/
|
|
3331
3326
|
postKnowledgeKnowledgebaseLanguageDocumentUploads(documentId, knowledgeBaseId, languageCode, body) {
|
|
3332
3327
|
// verify the required parameter 'documentId' is set
|
|
@@ -5,7 +5,7 @@ class OrganizationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Organization service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 218.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -226,38 +226,6 @@ class OrganizationApi {
|
|
|
226
226
|
);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
/**
|
|
230
|
-
* Get estimated limit counts for a namespace. This is not a source of truth for limit values but a record of estimates to facilitate limit threshold tracking.
|
|
231
|
-
* See https://developer.genesys.cloud/organization/organization/limits#available-limits for limits that are trackable (Operational Events Enabled).
|
|
232
|
-
* @param {String} namespaceName The namespace to get
|
|
233
|
-
* @param {Object} opts Optional parameters
|
|
234
|
-
* @param {String} opts.cursor Cursor provided when retrieving the last page
|
|
235
|
-
* @param {String} opts.entityId entity id of the count
|
|
236
|
-
* @param {String} opts.userId userid of the count
|
|
237
|
-
* @deprecated
|
|
238
|
-
*/
|
|
239
|
-
getOrganizationsLimitsNamespaceCounts(namespaceName, opts) {
|
|
240
|
-
opts = opts || {};
|
|
241
|
-
|
|
242
|
-
// verify the required parameter 'namespaceName' is set
|
|
243
|
-
if (namespaceName === undefined || namespaceName === null) {
|
|
244
|
-
throw 'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceCounts';
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
return this.apiClient.callApi(
|
|
248
|
-
'/api/v2/organizations/limits/namespaces/{namespaceName}/counts',
|
|
249
|
-
'GET',
|
|
250
|
-
{ 'namespaceName': namespaceName },
|
|
251
|
-
{ 'cursor': opts['cursor'],'entityId': opts['entityId'],'userId': opts['userId'] },
|
|
252
|
-
{ },
|
|
253
|
-
{ },
|
|
254
|
-
null,
|
|
255
|
-
['PureCloud OAuth'],
|
|
256
|
-
['application/json'],
|
|
257
|
-
['application/json']
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
229
|
/**
|
|
262
230
|
* Get the default limits in a namespace for an organization
|
|
263
231
|
*
|
|
@@ -283,43 +251,6 @@ class OrganizationApi {
|
|
|
283
251
|
);
|
|
284
252
|
}
|
|
285
253
|
|
|
286
|
-
/**
|
|
287
|
-
* Get estimated limit counts for a namespace and limit name. This is not a source of truth for limit values but a record of estimates to facilitate limit threshold tracking.
|
|
288
|
-
* See https://developer.genesys.cloud/organization/organization/limits#available-limits for limits that are trackable (Operational Events Enabled).
|
|
289
|
-
* @param {String} namespaceName The namespace to get
|
|
290
|
-
* @param {String} limitName The limit to get
|
|
291
|
-
* @param {Object} opts Optional parameters
|
|
292
|
-
* @param {String} opts.entityId entity id of the count
|
|
293
|
-
* @param {String} opts.userId userid of the count
|
|
294
|
-
* @param {String} opts.cursor Cursor provided when retrieving the last page
|
|
295
|
-
* @deprecated
|
|
296
|
-
*/
|
|
297
|
-
getOrganizationsLimitsNamespaceLimitCounts(namespaceName, limitName, opts) {
|
|
298
|
-
opts = opts || {};
|
|
299
|
-
|
|
300
|
-
// verify the required parameter 'namespaceName' is set
|
|
301
|
-
if (namespaceName === undefined || namespaceName === null) {
|
|
302
|
-
throw 'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceLimitCounts';
|
|
303
|
-
}
|
|
304
|
-
// verify the required parameter 'limitName' is set
|
|
305
|
-
if (limitName === undefined || limitName === null) {
|
|
306
|
-
throw 'Missing the required parameter "limitName" when calling getOrganizationsLimitsNamespaceLimitCounts';
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
return this.apiClient.callApi(
|
|
310
|
-
'/api/v2/organizations/limits/namespaces/{namespaceName}/limits/{limitName}/counts',
|
|
311
|
-
'GET',
|
|
312
|
-
{ 'namespaceName': namespaceName,'limitName': limitName },
|
|
313
|
-
{ 'entityId': opts['entityId'],'userId': opts['userId'],'cursor': opts['cursor'] },
|
|
314
|
-
{ },
|
|
315
|
-
{ },
|
|
316
|
-
null,
|
|
317
|
-
['PureCloud OAuth'],
|
|
318
|
-
['application/json'],
|
|
319
|
-
['application/json']
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
254
|
/**
|
|
324
255
|
* Get the available limit namespaces
|
|
325
256
|
*
|