purecloud-platform-client-v2 130.0.0 → 132.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 -8
- package/dist/node/purecloud-platform-client-v2.js +522 -103
- package/dist/web-amd/purecloud-platform-client-v2.js +523 -104
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +528 -109
- package/dist/web-cjs/purecloud-platform-client-v2.js +4175 -964
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +315 -45
- package/package.json +9 -9
- package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +46 -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 +177 -2
- 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 +7 -3
- 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 -3
- 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 +156 -0
- 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 +7 -3
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +52 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +8 -5
- 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 -21
- 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 +2 -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 +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 +1 -1
- package/src/purecloud-platform-client-v2/index.js +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "purecloud-platform-client-v2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "132.0.0",
|
|
4
4
|
"description": "A JavaScript library to interface with the PureCloud Platform API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/node/purecloud-platform-client-v2.js",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"configparser": "^0.3.9",
|
|
34
|
-
"superagent": "^
|
|
35
|
-
"winston": "^3.
|
|
34
|
+
"superagent": "^7.1.1",
|
|
35
|
+
"winston": "^3.6.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"mocha": "~2.
|
|
39
|
-
"sinon": "
|
|
38
|
+
"mocha": "~9.2.0",
|
|
39
|
+
"sinon": "13.0.1",
|
|
40
40
|
"expect.js": "~0.3.1",
|
|
41
|
-
"rollup
|
|
42
|
-
"rollup
|
|
43
|
-
"rollup
|
|
41
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
42
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
43
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
44
44
|
"rollup-plugin-re": "^1.0.7",
|
|
45
45
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
46
|
-
"rollup-plugin-node-globals": "^1.
|
|
46
|
+
"rollup-plugin-node-globals": "^1.4.0"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -3,7 +3,7 @@ import Configuration from './configuration.js';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6
|
-
* @version
|
|
6
|
+
* @version 132.0.0
|
|
7
7
|
*/
|
|
8
8
|
class ApiClient {
|
|
9
9
|
/**
|
|
@@ -950,7 +950,7 @@ class ApiClient {
|
|
|
950
950
|
|
|
951
951
|
// set header parameters
|
|
952
952
|
request.set(that.defaultHeaders).set(that.normalizeParams(headerParams));
|
|
953
|
-
//request.set({ 'purecloud-sdk': '
|
|
953
|
+
//request.set({ 'purecloud-sdk': '132.0.0' });
|
|
954
954
|
|
|
955
955
|
// set request timeout
|
|
956
956
|
request.timeout(that.timeout);
|
|
@@ -5,7 +5,7 @@ class AnalyticsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Analytics service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 132.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -506,6 +506,26 @@ class AnalyticsApi {
|
|
|
506
506
|
);
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
+
/**
|
|
510
|
+
* Get AnalyticsReportingSettings for an organization
|
|
511
|
+
*
|
|
512
|
+
*/
|
|
513
|
+
getAnalyticsReportingSettings() {
|
|
514
|
+
|
|
515
|
+
return this.apiClient.callApi(
|
|
516
|
+
'/api/v2/analytics/reporting/settings',
|
|
517
|
+
'GET',
|
|
518
|
+
{ },
|
|
519
|
+
{ },
|
|
520
|
+
{ },
|
|
521
|
+
{ },
|
|
522
|
+
null,
|
|
523
|
+
['PureCloud OAuth'],
|
|
524
|
+
['application/json'],
|
|
525
|
+
['application/json']
|
|
526
|
+
);
|
|
527
|
+
}
|
|
528
|
+
|
|
509
529
|
/**
|
|
510
530
|
* Get a list of report time periods.
|
|
511
531
|
*
|
|
@@ -601,6 +621,31 @@ class AnalyticsApi {
|
|
|
601
621
|
);
|
|
602
622
|
}
|
|
603
623
|
|
|
624
|
+
/**
|
|
625
|
+
* Patch AnalyticsReportingSettings values for an organization
|
|
626
|
+
*
|
|
627
|
+
* @param {Object} body AnalyticsReportingSettingsRequest
|
|
628
|
+
*/
|
|
629
|
+
patchAnalyticsReportingSettings(body) {
|
|
630
|
+
// verify the required parameter 'body' is set
|
|
631
|
+
if (body === undefined || body === null) {
|
|
632
|
+
throw 'Missing the required parameter "body" when calling patchAnalyticsReportingSettings';
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
return this.apiClient.callApi(
|
|
636
|
+
'/api/v2/analytics/reporting/settings',
|
|
637
|
+
'PATCH',
|
|
638
|
+
{ },
|
|
639
|
+
{ },
|
|
640
|
+
{ },
|
|
641
|
+
{ },
|
|
642
|
+
body,
|
|
643
|
+
['PureCloud OAuth'],
|
|
644
|
+
['application/json'],
|
|
645
|
+
['application/json']
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
|
|
604
649
|
/**
|
|
605
650
|
* Query for bot aggregates
|
|
606
651
|
*
|
|
@@ -5,7 +5,7 @@ class ConversationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Conversations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 132.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -295,6 +295,31 @@ class ConversationsApi {
|
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Delete a supported content profile
|
|
300
|
+
*
|
|
301
|
+
* @param {String} supportedContentId Supported Content ID
|
|
302
|
+
*/
|
|
303
|
+
deleteConversationsMessagingSupportedcontentSupportedContentId(supportedContentId) {
|
|
304
|
+
// verify the required parameter 'supportedContentId' is set
|
|
305
|
+
if (supportedContentId === undefined || supportedContentId === null) {
|
|
306
|
+
throw 'Missing the required parameter "supportedContentId" when calling deleteConversationsMessagingSupportedcontentSupportedContentId';
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
return this.apiClient.callApi(
|
|
310
|
+
'/api/v2/conversations/messaging/supportedcontent/{supportedContentId}',
|
|
311
|
+
'DELETE',
|
|
312
|
+
{ 'supportedContentId': supportedContentId },
|
|
313
|
+
{ },
|
|
314
|
+
{ },
|
|
315
|
+
{ },
|
|
316
|
+
null,
|
|
317
|
+
['PureCloud OAuth'],
|
|
318
|
+
['application/json'],
|
|
319
|
+
['application/json']
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
|
|
298
323
|
/**
|
|
299
324
|
* Get a conversation by id
|
|
300
325
|
*
|
|
@@ -1887,6 +1912,76 @@ class ConversationsApi {
|
|
|
1887
1912
|
);
|
|
1888
1913
|
}
|
|
1889
1914
|
|
|
1915
|
+
/**
|
|
1916
|
+
* Get a list of Supported Content profiles
|
|
1917
|
+
*
|
|
1918
|
+
* @param {Object} opts Optional parameters
|
|
1919
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1920
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1921
|
+
*/
|
|
1922
|
+
getConversationsMessagingSupportedcontent(opts) {
|
|
1923
|
+
opts = opts || {};
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
return this.apiClient.callApi(
|
|
1927
|
+
'/api/v2/conversations/messaging/supportedcontent',
|
|
1928
|
+
'GET',
|
|
1929
|
+
{ },
|
|
1930
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
1931
|
+
{ },
|
|
1932
|
+
{ },
|
|
1933
|
+
null,
|
|
1934
|
+
['PureCloud OAuth'],
|
|
1935
|
+
['application/json'],
|
|
1936
|
+
['application/json']
|
|
1937
|
+
);
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
/**
|
|
1941
|
+
* Get the organization's default supported content profile that will be used as the default when creating an integration.
|
|
1942
|
+
* When an integration is created a supported content ID may be assigned to it. If the supported content ID is not supplied, the default supported content profile will be assigned to it.
|
|
1943
|
+
*/
|
|
1944
|
+
getConversationsMessagingSupportedcontentDefault() {
|
|
1945
|
+
|
|
1946
|
+
return this.apiClient.callApi(
|
|
1947
|
+
'/api/v2/conversations/messaging/supportedcontent/default',
|
|
1948
|
+
'GET',
|
|
1949
|
+
{ },
|
|
1950
|
+
{ },
|
|
1951
|
+
{ },
|
|
1952
|
+
{ },
|
|
1953
|
+
null,
|
|
1954
|
+
['PureCloud OAuth'],
|
|
1955
|
+
['application/json'],
|
|
1956
|
+
['application/json']
|
|
1957
|
+
);
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* Get a supported content profile
|
|
1962
|
+
*
|
|
1963
|
+
* @param {String} supportedContentId Supported Content ID
|
|
1964
|
+
*/
|
|
1965
|
+
getConversationsMessagingSupportedcontentSupportedContentId(supportedContentId) {
|
|
1966
|
+
// verify the required parameter 'supportedContentId' is set
|
|
1967
|
+
if (supportedContentId === undefined || supportedContentId === null) {
|
|
1968
|
+
throw 'Missing the required parameter "supportedContentId" when calling getConversationsMessagingSupportedcontentSupportedContentId';
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
return this.apiClient.callApi(
|
|
1972
|
+
'/api/v2/conversations/messaging/supportedcontent/{supportedContentId}',
|
|
1973
|
+
'GET',
|
|
1974
|
+
{ 'supportedContentId': supportedContentId },
|
|
1975
|
+
{ },
|
|
1976
|
+
{ },
|
|
1977
|
+
{ },
|
|
1978
|
+
null,
|
|
1979
|
+
['PureCloud OAuth'],
|
|
1980
|
+
['application/json'],
|
|
1981
|
+
['application/json']
|
|
1982
|
+
);
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1890
1985
|
/**
|
|
1891
1986
|
* Get conversation threading window timeline for each messaging type
|
|
1892
1987
|
* Conversation messaging threading timeline is a setting defined for each messenger type in your organization. This setting will dictate whether a new message is added to the most recent existing conversation, or creates a new Conversation. If the existing Conversation is still in a connected state the threading timeline setting will never play a role. After the conversation is disconnected, if an inbound message is received or an outbound message is sent after the setting for threading timeline expires, a new conversation is created.
|
|
@@ -2968,6 +3063,36 @@ class ConversationsApi {
|
|
|
2968
3063
|
);
|
|
2969
3064
|
}
|
|
2970
3065
|
|
|
3066
|
+
/**
|
|
3067
|
+
* Update a supported content profile
|
|
3068
|
+
*
|
|
3069
|
+
* @param {String} supportedContentId Supported Content ID
|
|
3070
|
+
* @param {Object} body SupportedContent
|
|
3071
|
+
*/
|
|
3072
|
+
patchConversationsMessagingSupportedcontentSupportedContentId(supportedContentId, body) {
|
|
3073
|
+
// verify the required parameter 'supportedContentId' is set
|
|
3074
|
+
if (supportedContentId === undefined || supportedContentId === null) {
|
|
3075
|
+
throw 'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';
|
|
3076
|
+
}
|
|
3077
|
+
// verify the required parameter 'body' is set
|
|
3078
|
+
if (body === undefined || body === null) {
|
|
3079
|
+
throw 'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
return this.apiClient.callApi(
|
|
3083
|
+
'/api/v2/conversations/messaging/supportedcontent/{supportedContentId}',
|
|
3084
|
+
'PATCH',
|
|
3085
|
+
{ 'supportedContentId': supportedContentId },
|
|
3086
|
+
{ },
|
|
3087
|
+
{ },
|
|
3088
|
+
{ },
|
|
3089
|
+
body,
|
|
3090
|
+
['PureCloud OAuth'],
|
|
3091
|
+
['application/json'],
|
|
3092
|
+
['application/json']
|
|
3093
|
+
);
|
|
3094
|
+
}
|
|
3095
|
+
|
|
2971
3096
|
/**
|
|
2972
3097
|
* Index conversation properties
|
|
2973
3098
|
*
|
|
@@ -4030,7 +4155,7 @@ class ConversationsApi {
|
|
|
4030
4155
|
|
|
4031
4156
|
/**
|
|
4032
4157
|
* Send an agentless outbound message
|
|
4033
|
-
* Send an
|
|
4158
|
+
* Send an agentless (api participant) outbound message using a client credential grant. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least messaging scope. This will generate a new Conversation, if there is an existing active Conversation between the fromAddress and toAddress already, then this POST will fail.
|
|
4034
4159
|
* @param {Object} body Create agentless outbound messaging request
|
|
4035
4160
|
*/
|
|
4036
4161
|
postConversationsMessagesAgentless(body) {
|
|
@@ -4203,6 +4328,31 @@ class ConversationsApi {
|
|
|
4203
4328
|
);
|
|
4204
4329
|
}
|
|
4205
4330
|
|
|
4331
|
+
/**
|
|
4332
|
+
* Create a Supported Content profile
|
|
4333
|
+
*
|
|
4334
|
+
* @param {Object} body SupportedContent
|
|
4335
|
+
*/
|
|
4336
|
+
postConversationsMessagingSupportedcontent(body) {
|
|
4337
|
+
// verify the required parameter 'body' is set
|
|
4338
|
+
if (body === undefined || body === null) {
|
|
4339
|
+
throw 'Missing the required parameter "body" when calling postConversationsMessagingSupportedcontent';
|
|
4340
|
+
}
|
|
4341
|
+
|
|
4342
|
+
return this.apiClient.callApi(
|
|
4343
|
+
'/api/v2/conversations/messaging/supportedcontent',
|
|
4344
|
+
'POST',
|
|
4345
|
+
{ },
|
|
4346
|
+
{ },
|
|
4347
|
+
{ },
|
|
4348
|
+
{ },
|
|
4349
|
+
body,
|
|
4350
|
+
['PureCloud OAuth'],
|
|
4351
|
+
['application/json'],
|
|
4352
|
+
['application/json']
|
|
4353
|
+
);
|
|
4354
|
+
}
|
|
4355
|
+
|
|
4206
4356
|
/**
|
|
4207
4357
|
* Set flagged reason on conversation participant to indicate bad conversation quality.
|
|
4208
4358
|
*
|
|
@@ -4363,6 +4513,31 @@ class ConversationsApi {
|
|
|
4363
4513
|
);
|
|
4364
4514
|
}
|
|
4365
4515
|
|
|
4516
|
+
/**
|
|
4517
|
+
* Set the organization's default supported content profile that may be assigned to an integration when it is created.
|
|
4518
|
+
* When an integration is created a supported content ID may be assigned to it. If the supported content ID is not supplied, the default supported content profile will be assigned to it.
|
|
4519
|
+
* @param {Object} body SupportedContent
|
|
4520
|
+
*/
|
|
4521
|
+
putConversationsMessagingSupportedcontentDefault(body) {
|
|
4522
|
+
// verify the required parameter 'body' is set
|
|
4523
|
+
if (body === undefined || body === null) {
|
|
4524
|
+
throw 'Missing the required parameter "body" when calling putConversationsMessagingSupportedcontentDefault';
|
|
4525
|
+
}
|
|
4526
|
+
|
|
4527
|
+
return this.apiClient.callApi(
|
|
4528
|
+
'/api/v2/conversations/messaging/supportedcontent/default',
|
|
4529
|
+
'PUT',
|
|
4530
|
+
{ },
|
|
4531
|
+
{ },
|
|
4532
|
+
{ },
|
|
4533
|
+
{ },
|
|
4534
|
+
body,
|
|
4535
|
+
['PureCloud OAuth'],
|
|
4536
|
+
['application/json'],
|
|
4537
|
+
['application/json']
|
|
4538
|
+
);
|
|
4539
|
+
}
|
|
4540
|
+
|
|
4366
4541
|
/**
|
|
4367
4542
|
* Update conversation threading window timeline for each messaging type
|
|
4368
4543
|
* PUT Conversation messaging threading timeline is intended to set the conversation threading settings for ALL messengerTypes. If you omit a messengerType in the request body then the setting for that messengerType will use the platform default value. The PUT replaces the existing setting(s) that were previously set for each messengerType.
|
|
@@ -5,7 +5,7 @@ class GamificationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Gamification service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 132.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1281,8 +1281,12 @@ class GamificationApi {
|
|
|
1281
1281
|
* Create a new custom performance profile
|
|
1282
1282
|
*
|
|
1283
1283
|
* @param {Object} body performanceProfile
|
|
1284
|
+
* @param {Object} opts Optional parameters
|
|
1285
|
+
* @param {Boolean} opts.copyMetrics Flag to copy metrics. If set to false, there will be no metrics associated with the new profile. If set to true or is absent (the default behavior), all metrics from the default profile will be copied over into the new profile. (default to true)
|
|
1284
1286
|
*/
|
|
1285
|
-
postGamificationProfiles(body) {
|
|
1287
|
+
postGamificationProfiles(body, opts) {
|
|
1288
|
+
opts = opts || {};
|
|
1289
|
+
|
|
1286
1290
|
// verify the required parameter 'body' is set
|
|
1287
1291
|
if (body === undefined || body === null) {
|
|
1288
1292
|
throw 'Missing the required parameter "body" when calling postGamificationProfiles';
|
|
@@ -1292,7 +1296,7 @@ class GamificationApi {
|
|
|
1292
1296
|
'/api/v2/gamification/profiles',
|
|
1293
1297
|
'POST',
|
|
1294
1298
|
{ },
|
|
1295
|
-
{
|
|
1299
|
+
{ 'copyMetrics': opts['copyMetrics'] },
|
|
1296
1300
|
{ },
|
|
1297
1301
|
{ },
|
|
1298
1302
|
body,
|
|
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* LanguageUnderstanding service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 132.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -463,7 +463,7 @@ class LanguageUnderstandingApi {
|
|
|
463
463
|
* @param {String} minerId Miner ID
|
|
464
464
|
* @param {String} intentId The ID of the intent to be retrieved.
|
|
465
465
|
* @param {Object} opts Optional parameters
|
|
466
|
-
* @param {
|
|
466
|
+
* @param {Object} opts.expand Option to fetch utterances
|
|
467
467
|
*/
|
|
468
468
|
getLanguageunderstandingMinerIntent(minerId, intentId, opts) {
|
|
469
469
|
opts = opts || {};
|
|
@@ -496,7 +496,7 @@ class LanguageUnderstandingApi {
|
|
|
496
496
|
*
|
|
497
497
|
* @param {String} minerId Miner ID
|
|
498
498
|
* @param {Object} opts Optional parameters
|
|
499
|
-
* @param {
|
|
499
|
+
* @param {Object} opts.expand Option to fetch utterances.
|
|
500
500
|
*/
|
|
501
501
|
getLanguageunderstandingMinerIntents(minerId, opts) {
|
|
502
502
|
opts = opts || {};
|