purecloud-platform-client-v2 174.0.0 → 175.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 +198 -75
- package/dist/web-amd/purecloud-platform-client-v2.js +198 -75
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +198 -75
- package/dist/web-cjs/purecloud-platform-client-v2.js +198 -75
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +147 -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 +120 -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 -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/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.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/InfrastructureAsCodeApi.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 +7 -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 +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/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/SettingsApi.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/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 +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 +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/index.d.ts
CHANGED
|
@@ -383,6 +383,9 @@ declare class ArchitectApi {
|
|
|
383
383
|
getFlowLatestconfiguration(flowId: string, opts?: ArchitectApi.getFlowLatestconfigurationOptions): Promise<object>;
|
|
384
384
|
getFlowVersion(flowId: string, versionId: string, opts?: ArchitectApi.getFlowVersionOptions): Promise<Models.FlowVersion>;
|
|
385
385
|
getFlowVersionConfiguration(flowId: string, versionId: string, opts?: ArchitectApi.getFlowVersionConfigurationOptions): Promise<object>;
|
|
386
|
+
getFlowVersionHealth(flowId: string, versionId: string, opts?: ArchitectApi.getFlowVersionHealthOptions): Promise<Models.FlowHealth>;
|
|
387
|
+
getFlowVersionIntentHealth(flowId: string, versionId: string, intentId: string, language: string): Promise<Models.FlowHealthIntent>;
|
|
388
|
+
getFlowVersionIntentUtteranceHealth(flowId: string, versionId: string, intentId: string, utteranceId: string, language: string): Promise<Models.FlowHealthUtterance>;
|
|
386
389
|
getFlowVersions(flowId: string, opts?: ArchitectApi.getFlowVersionsOptions): Promise<Models.FlowVersionEntityListing>;
|
|
387
390
|
getFlows(opts?: ArchitectApi.getFlowsOptions): Promise<Models.FlowEntityListing>;
|
|
388
391
|
getFlowsDatatable(datatableId: string, opts?: ArchitectApi.getFlowsDatatableOptions): Promise<Models.DataTable>;
|
|
@@ -656,6 +659,9 @@ declare namespace ArchitectApi {
|
|
|
656
659
|
export interface getFlowVersionConfigurationOptions {
|
|
657
660
|
"deleted"?: string;
|
|
658
661
|
}
|
|
662
|
+
export interface getFlowVersionHealthOptions {
|
|
663
|
+
"language"?: string;
|
|
664
|
+
}
|
|
659
665
|
export interface getFlowVersionsOptions {
|
|
660
666
|
"pageNumber"?: number;
|
|
661
667
|
"pageSize"?: number;
|
|
@@ -3071,7 +3077,7 @@ declare class LearningApi {
|
|
|
3071
3077
|
postLearningAssignmentsBulkadd(opts?: LearningApi.postLearningAssignmentsBulkaddOptions): Promise<Models.LearningAssignmentBulkAddResponse>;
|
|
3072
3078
|
postLearningAssignmentsBulkremove(opts?: LearningApi.postLearningAssignmentsBulkremoveOptions): Promise<Models.LearningAssignmentBulkRemoveResponse>;
|
|
3073
3079
|
postLearningModuleJobs(moduleId: string, body: Models.LearningModuleJobRequest): Promise<Models.LearningModuleJobResponse>;
|
|
3074
|
-
postLearningModulePublish(moduleId: string): Promise<Models.LearningModulePublishResponse>;
|
|
3080
|
+
postLearningModulePublish(moduleId: string, opts?: LearningApi.postLearningModulePublishOptions): Promise<Models.LearningModulePublishResponse>;
|
|
3075
3081
|
postLearningModules(body: Models.LearningModuleRequest): Promise<Models.LearningModule>;
|
|
3076
3082
|
postLearningRulesQuery(pageSize: number, pageNumber: number, body: Models.LearningAssignmentUserQuery): Promise<Models.LearningAssignmentUserListing>;
|
|
3077
3083
|
postLearningScheduleslotsQuery(body: Models.LearningScheduleSlotsQueryRequest): Promise<Models.LearningScheduleSlotsQueryResponse>;
|
|
@@ -3157,6 +3163,9 @@ declare namespace LearningApi {
|
|
|
3157
3163
|
export interface postLearningAssignmentsBulkremoveOptions {
|
|
3158
3164
|
"body"?: Array<string>;
|
|
3159
3165
|
}
|
|
3166
|
+
export interface postLearningModulePublishOptions {
|
|
3167
|
+
"body"?: Models.LearningModulePublishRequest;
|
|
3168
|
+
}
|
|
3160
3169
|
}
|
|
3161
3170
|
|
|
3162
3171
|
declare class LicenseApi {
|
|
@@ -7780,6 +7789,7 @@ declare namespace Models {
|
|
|
7780
7789
|
export interface AnalyticsReportingSettings {
|
|
7781
7790
|
"piiMaskingEnabled"?: boolean;
|
|
7782
7791
|
"queueAgentAccessObfuscation"?: boolean;
|
|
7792
|
+
"myInteractionsPiiMaskingEnabled"?: boolean;
|
|
7783
7793
|
}
|
|
7784
7794
|
|
|
7785
7795
|
export interface AnalyticsResolution {
|
|
@@ -9766,11 +9776,21 @@ declare namespace Models {
|
|
|
9766
9776
|
"defaultHistoryWeeks"?: number;
|
|
9767
9777
|
}
|
|
9768
9778
|
|
|
9779
|
+
export interface BuUpdateAgentScheduleShift {
|
|
9780
|
+
"id"?: string;
|
|
9781
|
+
"startDate"?: string;
|
|
9782
|
+
"lengthMinutes"?: number;
|
|
9783
|
+
"activities"?: Array<Models.BuAgentScheduleActivity>;
|
|
9784
|
+
"manuallyEdited"?: boolean;
|
|
9785
|
+
"schedule"?: Models.BuScheduleReference;
|
|
9786
|
+
"delete"?: boolean;
|
|
9787
|
+
}
|
|
9788
|
+
|
|
9769
9789
|
export interface BuUpdateAgentScheduleUploadSchema {
|
|
9770
9790
|
"userId": string;
|
|
9771
9791
|
"workPlanId"?: Models.ValueWrapperString;
|
|
9772
9792
|
"workPlanIdsPerWeek"?: Models.ListWrapperString;
|
|
9773
|
-
"shifts"?: Array<Models.
|
|
9793
|
+
"shifts"?: Array<Models.BuUpdateAgentScheduleShift>;
|
|
9774
9794
|
"fullDayTimeOffMarkers"?: Array<Models.BuFullDayTimeOffMarker>;
|
|
9775
9795
|
"metadata"?: Models.WfmVersionedEntityMetadata;
|
|
9776
9796
|
"delete"?: boolean;
|
|
@@ -11710,6 +11730,34 @@ declare namespace Models {
|
|
|
11710
11730
|
"priority"?: boolean;
|
|
11711
11731
|
}
|
|
11712
11732
|
|
|
11733
|
+
export interface ConfusionDetails {
|
|
11734
|
+
"intents"?: Array<Models.ConfusionIntentDetails>;
|
|
11735
|
+
}
|
|
11736
|
+
|
|
11737
|
+
export interface ConfusionInfo {
|
|
11738
|
+
"intents"?: Array<Models.ConfusionIntentInfo>;
|
|
11739
|
+
}
|
|
11740
|
+
|
|
11741
|
+
export interface ConfusionIntentDetails {
|
|
11742
|
+
"id"?: string;
|
|
11743
|
+
"name"?: string;
|
|
11744
|
+
"utteranceCount"?: number;
|
|
11745
|
+
"utterances"?: Array<Models.ConfusionUtterance>;
|
|
11746
|
+
"selfUri"?: string;
|
|
11747
|
+
}
|
|
11748
|
+
|
|
11749
|
+
export interface ConfusionIntentInfo {
|
|
11750
|
+
"id"?: string;
|
|
11751
|
+
"name"?: string;
|
|
11752
|
+
"utteranceCount"?: number;
|
|
11753
|
+
}
|
|
11754
|
+
|
|
11755
|
+
export interface ConfusionUtterance {
|
|
11756
|
+
"id"?: string;
|
|
11757
|
+
"text"?: string;
|
|
11758
|
+
"similarity"?: number;
|
|
11759
|
+
}
|
|
11760
|
+
|
|
11713
11761
|
export interface ConnectRate {
|
|
11714
11762
|
"attempts"?: number;
|
|
11715
11763
|
"connects"?: number;
|
|
@@ -11920,6 +11968,7 @@ declare namespace Models {
|
|
|
11920
11968
|
"automaticTimeZoneMapping"?: boolean;
|
|
11921
11969
|
"zipCodeColumnName"?: string;
|
|
11922
11970
|
"columnDataTypeSpecifications"?: Array<Models.ColumnDataTypeSpecification>;
|
|
11971
|
+
"trimWhitespace"?: boolean;
|
|
11923
11972
|
"selfUri"?: string;
|
|
11924
11973
|
}
|
|
11925
11974
|
|
|
@@ -20238,6 +20287,67 @@ declare namespace Models {
|
|
|
20238
20287
|
"selfUri"?: string;
|
|
20239
20288
|
}
|
|
20240
20289
|
|
|
20290
|
+
export interface FlowHealth {
|
|
20291
|
+
"flowVersionInfo"?: Models.FlowHealthVersionInfo;
|
|
20292
|
+
"languageInfo"?: { [key: string]: Models.LocaleInfo; };
|
|
20293
|
+
"intents"?: Array<Models.FlowHealthIntentInfo>;
|
|
20294
|
+
"selfUri"?: string;
|
|
20295
|
+
}
|
|
20296
|
+
|
|
20297
|
+
export interface FlowHealthErrorInfo {
|
|
20298
|
+
"message"?: string;
|
|
20299
|
+
"code"?: string;
|
|
20300
|
+
"messageWithParams"?: string;
|
|
20301
|
+
"messageParams"?: { [key: string]: object; };
|
|
20302
|
+
}
|
|
20303
|
+
|
|
20304
|
+
export interface FlowHealthIntent {
|
|
20305
|
+
"id"?: string;
|
|
20306
|
+
"name"?: string;
|
|
20307
|
+
"flowVersionInfo"?: Models.FlowHealthIntentVersionInfo;
|
|
20308
|
+
"language"?: string;
|
|
20309
|
+
"health"?: Models.HealthInfo;
|
|
20310
|
+
"selfUri"?: string;
|
|
20311
|
+
}
|
|
20312
|
+
|
|
20313
|
+
export interface FlowHealthIntentInfo {
|
|
20314
|
+
"id"?: string;
|
|
20315
|
+
"name"?: string;
|
|
20316
|
+
"languageHealth"?: { [key: string]: Models.LocaleHealth; };
|
|
20317
|
+
"selfUri"?: string;
|
|
20318
|
+
}
|
|
20319
|
+
|
|
20320
|
+
export interface FlowHealthIntentUtterance {
|
|
20321
|
+
"id"?: string;
|
|
20322
|
+
"text"?: string;
|
|
20323
|
+
"issueCount"?: number;
|
|
20324
|
+
"staticValidationResults"?: Array<string>;
|
|
20325
|
+
"outlierInfo"?: Models.OutlierInfo;
|
|
20326
|
+
"confusionInfo"?: Models.ConfusionInfo;
|
|
20327
|
+
}
|
|
20328
|
+
|
|
20329
|
+
export interface FlowHealthIntentVersionInfo {
|
|
20330
|
+
"nluVersion"?: Models.AddressableEntityRef;
|
|
20331
|
+
"flowVersion"?: Models.AddressableEntityRef;
|
|
20332
|
+
"nluDomain"?: Models.AddressableEntityRef;
|
|
20333
|
+
}
|
|
20334
|
+
|
|
20335
|
+
export interface FlowHealthUtterance {
|
|
20336
|
+
"id"?: string;
|
|
20337
|
+
"text"?: string;
|
|
20338
|
+
"issueCount"?: number;
|
|
20339
|
+
"language"?: string;
|
|
20340
|
+
"staticValidationResults"?: Array<string>;
|
|
20341
|
+
"outlierInfo"?: Models.OutlierInfo;
|
|
20342
|
+
"confusionInfo"?: Models.ConfusionDetails;
|
|
20343
|
+
"selfUri"?: string;
|
|
20344
|
+
}
|
|
20345
|
+
|
|
20346
|
+
export interface FlowHealthVersionInfo {
|
|
20347
|
+
"flowVersion"?: Models.AddressableEntityRef;
|
|
20348
|
+
"nluDomain"?: Models.AddressableEntityRef;
|
|
20349
|
+
}
|
|
20350
|
+
|
|
20241
20351
|
export interface FlowMetricsTopicFlowMetricRecord {
|
|
20242
20352
|
"metric"?: string;
|
|
20243
20353
|
"metricDate"?: string;
|
|
@@ -21266,6 +21376,15 @@ declare namespace Models {
|
|
|
21266
21376
|
"value": number;
|
|
21267
21377
|
}
|
|
21268
21378
|
|
|
21379
|
+
export interface HealthInfo {
|
|
21380
|
+
"status"?: string;
|
|
21381
|
+
"errorInfo"?: Models.FlowHealthErrorInfo;
|
|
21382
|
+
"overallScore"?: number;
|
|
21383
|
+
"issueCount"?: number;
|
|
21384
|
+
"staticValidationResults"?: Array<string>;
|
|
21385
|
+
"utterances"?: Array<Models.FlowHealthIntentUtterance>;
|
|
21386
|
+
}
|
|
21387
|
+
|
|
21269
21388
|
export interface HelpLink {
|
|
21270
21389
|
"uri"?: string;
|
|
21271
21390
|
"title"?: string;
|
|
@@ -24595,6 +24714,10 @@ declare namespace Models {
|
|
|
24595
24714
|
"selfUri"?: string;
|
|
24596
24715
|
}
|
|
24597
24716
|
|
|
24717
|
+
export interface LearningModulePublishRequest {
|
|
24718
|
+
"termsAndConditionsAccepted"?: boolean;
|
|
24719
|
+
}
|
|
24720
|
+
|
|
24598
24721
|
export interface LearningModulePublishResponse {
|
|
24599
24722
|
"id"?: string;
|
|
24600
24723
|
"version"?: number;
|
|
@@ -25080,6 +25203,22 @@ declare namespace Models {
|
|
|
25080
25203
|
"nano"?: number;
|
|
25081
25204
|
}
|
|
25082
25205
|
|
|
25206
|
+
export interface LocaleFlowVersionInfo {
|
|
25207
|
+
"nluVersion"?: Models.AddressableEntityRef;
|
|
25208
|
+
}
|
|
25209
|
+
|
|
25210
|
+
export interface LocaleHealth {
|
|
25211
|
+
"overallScore"?: number;
|
|
25212
|
+
"issueCount"?: number;
|
|
25213
|
+
"staticValidationResults"?: Array<string>;
|
|
25214
|
+
}
|
|
25215
|
+
|
|
25216
|
+
export interface LocaleInfo {
|
|
25217
|
+
"status"?: string;
|
|
25218
|
+
"errorInfo"?: Models.FlowHealthErrorInfo;
|
|
25219
|
+
"flowVersionInfo"?: Models.LocaleFlowVersionInfo;
|
|
25220
|
+
}
|
|
25221
|
+
|
|
25083
25222
|
export interface LocalizedLabels {
|
|
25084
25223
|
"key"?: string;
|
|
25085
25224
|
"value"?: string;
|
|
@@ -25713,6 +25852,7 @@ declare namespace Models {
|
|
|
25713
25852
|
"recipientType"?: string;
|
|
25714
25853
|
"authenticated"?: boolean;
|
|
25715
25854
|
"monitoredParticipantId"?: string;
|
|
25855
|
+
"monitoredParticipant"?: Models.AddressableEntityRef;
|
|
25716
25856
|
}
|
|
25717
25857
|
|
|
25718
25858
|
export interface MessageMediaPolicy {
|
|
@@ -27709,6 +27849,11 @@ declare namespace Models {
|
|
|
27709
27849
|
"modifiedDate"?: string;
|
|
27710
27850
|
}
|
|
27711
27851
|
|
|
27852
|
+
export interface OutlierInfo {
|
|
27853
|
+
"outlier"?: boolean;
|
|
27854
|
+
"score"?: number;
|
|
27855
|
+
}
|
|
27856
|
+
|
|
27712
27857
|
export interface OverallBestPoints {
|
|
27713
27858
|
"division"?: Models.Division;
|
|
27714
27859
|
"bestPoints"?: Array<Models.OverallBestPointsItem>;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ class ArchitectApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Architect service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 175.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1698,6 +1698,125 @@ class ArchitectApi {
|
|
|
1698
1698
|
);
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
+
/**
|
|
1702
|
+
* Get overall health scores for all intents present in the NLU domain version associated with the bot flow version.
|
|
1703
|
+
*
|
|
1704
|
+
* @param {String} flowId Flow ID.
|
|
1705
|
+
* @param {String} versionId Version ID.
|
|
1706
|
+
* @param {Object} opts Optional parameters
|
|
1707
|
+
* @param {Object} opts.language Language to filter for
|
|
1708
|
+
*/
|
|
1709
|
+
getFlowVersionHealth(flowId, versionId, opts) {
|
|
1710
|
+
opts = opts || {};
|
|
1711
|
+
|
|
1712
|
+
// verify the required parameter 'flowId' is set
|
|
1713
|
+
if (flowId === undefined || flowId === null) {
|
|
1714
|
+
throw 'Missing the required parameter "flowId" when calling getFlowVersionHealth';
|
|
1715
|
+
}
|
|
1716
|
+
// verify the required parameter 'versionId' is set
|
|
1717
|
+
if (versionId === undefined || versionId === null) {
|
|
1718
|
+
throw 'Missing the required parameter "versionId" when calling getFlowVersionHealth';
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
return this.apiClient.callApi(
|
|
1722
|
+
'/api/v2/flows/{flowId}/versions/{versionId}/health',
|
|
1723
|
+
'GET',
|
|
1724
|
+
{ 'flowId': flowId,'versionId': versionId },
|
|
1725
|
+
{ 'language': opts['language'] },
|
|
1726
|
+
{ },
|
|
1727
|
+
{ },
|
|
1728
|
+
null,
|
|
1729
|
+
['PureCloud OAuth'],
|
|
1730
|
+
['application/json'],
|
|
1731
|
+
['application/json']
|
|
1732
|
+
);
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* Get health scores and other health metrics for a specific intent. This includes the health metrics for each utterance in an intent.
|
|
1737
|
+
*
|
|
1738
|
+
* @param {String} flowId Flow ID.
|
|
1739
|
+
* @param {String} versionId Version ID.
|
|
1740
|
+
* @param {String} intentId Intent ID.
|
|
1741
|
+
* @param {Object} language Language to filter for
|
|
1742
|
+
*/
|
|
1743
|
+
getFlowVersionIntentHealth(flowId, versionId, intentId, language) {
|
|
1744
|
+
// verify the required parameter 'flowId' is set
|
|
1745
|
+
if (flowId === undefined || flowId === null) {
|
|
1746
|
+
throw 'Missing the required parameter "flowId" when calling getFlowVersionIntentHealth';
|
|
1747
|
+
}
|
|
1748
|
+
// verify the required parameter 'versionId' is set
|
|
1749
|
+
if (versionId === undefined || versionId === null) {
|
|
1750
|
+
throw 'Missing the required parameter "versionId" when calling getFlowVersionIntentHealth';
|
|
1751
|
+
}
|
|
1752
|
+
// verify the required parameter 'intentId' is set
|
|
1753
|
+
if (intentId === undefined || intentId === null) {
|
|
1754
|
+
throw 'Missing the required parameter "intentId" when calling getFlowVersionIntentHealth';
|
|
1755
|
+
}
|
|
1756
|
+
// verify the required parameter 'language' is set
|
|
1757
|
+
if (language === undefined || language === null) {
|
|
1758
|
+
throw 'Missing the required parameter "language" when calling getFlowVersionIntentHealth';
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
return this.apiClient.callApi(
|
|
1762
|
+
'/api/v2/flows/{flowId}/versions/{versionId}/intents/{intentId}/health',
|
|
1763
|
+
'GET',
|
|
1764
|
+
{ 'flowId': flowId,'versionId': versionId,'intentId': intentId },
|
|
1765
|
+
{ 'language': language },
|
|
1766
|
+
{ },
|
|
1767
|
+
{ },
|
|
1768
|
+
null,
|
|
1769
|
+
['PureCloud OAuth'],
|
|
1770
|
+
['application/json'],
|
|
1771
|
+
['application/json']
|
|
1772
|
+
);
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* Get health metrics associated with a specific utterance of an intent.
|
|
1777
|
+
*
|
|
1778
|
+
* @param {String} flowId Flow ID.
|
|
1779
|
+
* @param {String} versionId Version ID.
|
|
1780
|
+
* @param {String} intentId Intent ID.
|
|
1781
|
+
* @param {String} utteranceId Utterance ID.
|
|
1782
|
+
* @param {Object} language Language to filter for
|
|
1783
|
+
*/
|
|
1784
|
+
getFlowVersionIntentUtteranceHealth(flowId, versionId, intentId, utteranceId, language) {
|
|
1785
|
+
// verify the required parameter 'flowId' is set
|
|
1786
|
+
if (flowId === undefined || flowId === null) {
|
|
1787
|
+
throw 'Missing the required parameter "flowId" when calling getFlowVersionIntentUtteranceHealth';
|
|
1788
|
+
}
|
|
1789
|
+
// verify the required parameter 'versionId' is set
|
|
1790
|
+
if (versionId === undefined || versionId === null) {
|
|
1791
|
+
throw 'Missing the required parameter "versionId" when calling getFlowVersionIntentUtteranceHealth';
|
|
1792
|
+
}
|
|
1793
|
+
// verify the required parameter 'intentId' is set
|
|
1794
|
+
if (intentId === undefined || intentId === null) {
|
|
1795
|
+
throw 'Missing the required parameter "intentId" when calling getFlowVersionIntentUtteranceHealth';
|
|
1796
|
+
}
|
|
1797
|
+
// verify the required parameter 'utteranceId' is set
|
|
1798
|
+
if (utteranceId === undefined || utteranceId === null) {
|
|
1799
|
+
throw 'Missing the required parameter "utteranceId" when calling getFlowVersionIntentUtteranceHealth';
|
|
1800
|
+
}
|
|
1801
|
+
// verify the required parameter 'language' is set
|
|
1802
|
+
if (language === undefined || language === null) {
|
|
1803
|
+
throw 'Missing the required parameter "language" when calling getFlowVersionIntentUtteranceHealth';
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
return this.apiClient.callApi(
|
|
1807
|
+
'/api/v2/flows/{flowId}/versions/{versionId}/intents/{intentId}/utterances/{utteranceId}/health',
|
|
1808
|
+
'GET',
|
|
1809
|
+
{ 'flowId': flowId,'versionId': versionId,'intentId': intentId,'utteranceId': utteranceId },
|
|
1810
|
+
{ 'language': language },
|
|
1811
|
+
{ },
|
|
1812
|
+
{ },
|
|
1813
|
+
null,
|
|
1814
|
+
['PureCloud OAuth'],
|
|
1815
|
+
['application/json'],
|
|
1816
|
+
['application/json']
|
|
1817
|
+
);
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1701
1820
|
/**
|
|
1702
1821
|
* Get flow version list
|
|
1703
1822
|
*
|