purecloud-platform-client-v2 158.0.0 → 159.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 +171 -76
- package/dist/web-amd/purecloud-platform-client-v2.js +171 -76
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +171 -76
- package/dist/web-cjs/purecloud-platform-client-v2.js +171 -76
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +73 -1
- 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 +2 -2
- 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 +95 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +2 -3
- 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/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +5 -4
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +2 -2
- 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 +1 -1
- 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 +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 +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
|
@@ -2055,6 +2055,7 @@ declare class JourneyApi {
|
|
|
2055
2055
|
deleteJourneyActionmap(actionMapId: string): Promise<void>;
|
|
2056
2056
|
deleteJourneyActiontemplate(actionTemplateId: string, opts?: JourneyApi.deleteJourneyActiontemplateOptions): Promise<void>;
|
|
2057
2057
|
deleteJourneyOutcome(outcomeId: string): Promise<void>;
|
|
2058
|
+
deleteJourneyOutcomesPredictor(predictorId: string): Promise<void>;
|
|
2058
2059
|
deleteJourneySegment(segmentId: string): Promise<void>;
|
|
2059
2060
|
getJourneyActionmap(actionMapId: string): Promise<Models.ActionMap>;
|
|
2060
2061
|
getJourneyActionmaps(opts?: JourneyApi.getJourneyActionmapsOptions): Promise<Models.ActionMapListing>;
|
|
@@ -2066,6 +2067,8 @@ declare class JourneyApi {
|
|
|
2066
2067
|
getJourneyActiontemplates(opts?: JourneyApi.getJourneyActiontemplatesOptions): Promise<Models.ActionTemplateListing>;
|
|
2067
2068
|
getJourneyOutcome(outcomeId: string): Promise<Models.Outcome>;
|
|
2068
2069
|
getJourneyOutcomes(opts?: JourneyApi.getJourneyOutcomesOptions): Promise<Models.OutcomeListing>;
|
|
2070
|
+
getJourneyOutcomesPredictor(predictorId: string): Promise<Models.OutcomePredictor>;
|
|
2071
|
+
getJourneyOutcomesPredictors(): Promise<Models.OutcomePredictorListing>;
|
|
2069
2072
|
getJourneySegment(segmentId: string): Promise<Models.JourneySegment>;
|
|
2070
2073
|
getJourneySegments(opts?: JourneyApi.getJourneySegmentsOptions): Promise<Models.SegmentListing>;
|
|
2071
2074
|
getJourneySession(sessionId: string): Promise<Models.Session>;
|
|
@@ -2080,6 +2083,7 @@ declare class JourneyApi {
|
|
|
2080
2083
|
postJourneyActionmapsEstimatesJobs(body: Models.ActionMapEstimateRequest): Promise<Models.EstimateJobAsyncResponse>;
|
|
2081
2084
|
postJourneyActiontemplates(opts?: JourneyApi.postJourneyActiontemplatesOptions): Promise<Models.ActionTemplate>;
|
|
2082
2085
|
postJourneyOutcomes(opts?: JourneyApi.postJourneyOutcomesOptions): Promise<Models.Outcome>;
|
|
2086
|
+
postJourneyOutcomesPredictors(opts?: JourneyApi.postJourneyOutcomesPredictorsOptions): Promise<Models.OutcomePredictor>;
|
|
2083
2087
|
postJourneySegments(opts?: JourneyApi.postJourneySegmentsOptions): Promise<Models.JourneySegment>;
|
|
2084
2088
|
}
|
|
2085
2089
|
|
|
@@ -2151,6 +2155,9 @@ declare namespace JourneyApi {
|
|
|
2151
2155
|
export interface postJourneyOutcomesOptions {
|
|
2152
2156
|
"body"?: Models.Outcome;
|
|
2153
2157
|
}
|
|
2158
|
+
export interface postJourneyOutcomesPredictorsOptions {
|
|
2159
|
+
"body"?: Models.OutcomePredictorRequest;
|
|
2160
|
+
}
|
|
2154
2161
|
export interface postJourneySegmentsOptions {
|
|
2155
2162
|
"body"?: Models.JourneySegment;
|
|
2156
2163
|
}
|
|
@@ -2245,7 +2252,6 @@ declare namespace KnowledgeApi {
|
|
|
2245
2252
|
}
|
|
2246
2253
|
export interface getKnowledgeGuestSessionDocumentsOptions {
|
|
2247
2254
|
"categoryId"?: Array<string>;
|
|
2248
|
-
"includeSubcategories"?: boolean;
|
|
2249
2255
|
"pageSize"?: number;
|
|
2250
2256
|
}
|
|
2251
2257
|
export interface getKnowledgeKnowledgebaseCategoriesOptions {
|
|
@@ -3441,6 +3447,7 @@ declare namespace QualityApi {
|
|
|
3441
3447
|
"conversationId"?: string;
|
|
3442
3448
|
"agentUserId"?: string;
|
|
3443
3449
|
"evaluatorUserId"?: string;
|
|
3450
|
+
"assigneeUserId"?: string;
|
|
3444
3451
|
"queueId"?: string;
|
|
3445
3452
|
"startTime"?: string;
|
|
3446
3453
|
"endTime"?: string;
|
|
@@ -4699,6 +4706,7 @@ declare namespace TelephonyProvidersEdgeApi {
|
|
|
4699
4706
|
"edgeGroupId"?: string;
|
|
4700
4707
|
"sortBy"?: string;
|
|
4701
4708
|
"managed"?: boolean;
|
|
4709
|
+
"showCloudMedia"?: boolean;
|
|
4702
4710
|
}
|
|
4703
4711
|
export interface getTelephonyProvidersEdgesDidpoolsOptions {
|
|
4704
4712
|
"pageSize"?: number;
|
|
@@ -9022,6 +9030,7 @@ declare namespace Models {
|
|
|
9022
9030
|
"name"?: string;
|
|
9023
9031
|
"participants"?: Array<Models.CallMediaParticipant>;
|
|
9024
9032
|
"otherMediaUris"?: Array<string>;
|
|
9033
|
+
"recentTransfers"?: Array<Models.TransferResponse>;
|
|
9025
9034
|
"recordingState"?: string;
|
|
9026
9035
|
"maxParticipants"?: number;
|
|
9027
9036
|
"selfUri"?: string;
|
|
@@ -9319,6 +9328,7 @@ declare namespace Models {
|
|
|
9319
9328
|
"name"?: string;
|
|
9320
9329
|
"participants"?: Array<Models.CallbackMediaParticipant>;
|
|
9321
9330
|
"otherMediaUris"?: Array<string>;
|
|
9331
|
+
"recentTransfers"?: Array<Models.TransferResponse>;
|
|
9322
9332
|
"selfUri"?: string;
|
|
9323
9333
|
}
|
|
9324
9334
|
|
|
@@ -9776,6 +9786,7 @@ declare namespace Models {
|
|
|
9776
9786
|
"name"?: string;
|
|
9777
9787
|
"participants"?: Array<Models.ChatMediaParticipant>;
|
|
9778
9788
|
"otherMediaUris"?: Array<string>;
|
|
9789
|
+
"recentTransfers"?: Array<Models.TransferResponse>;
|
|
9779
9790
|
"selfUri"?: string;
|
|
9780
9791
|
}
|
|
9781
9792
|
|
|
@@ -10081,6 +10092,7 @@ declare namespace Models {
|
|
|
10081
10092
|
"name"?: string;
|
|
10082
10093
|
"participants"?: Array<Models.CobrowseMediaParticipant>;
|
|
10083
10094
|
"otherMediaUris"?: Array<string>;
|
|
10095
|
+
"recentTransfers"?: Array<Models.TransferResponse>;
|
|
10084
10096
|
"selfUri"?: string;
|
|
10085
10097
|
}
|
|
10086
10098
|
|
|
@@ -10948,6 +10960,7 @@ declare namespace Models {
|
|
|
10948
10960
|
"recordingState"?: string;
|
|
10949
10961
|
"state"?: string;
|
|
10950
10962
|
"divisions"?: Array<Models.ConversationDivisionMembership>;
|
|
10963
|
+
"recentTransfers"?: Array<Models.TransferResponse>;
|
|
10951
10964
|
"selfUri"?: string;
|
|
10952
10965
|
}
|
|
10953
10966
|
|
|
@@ -16493,6 +16506,7 @@ declare namespace Models {
|
|
|
16493
16506
|
"name"?: string;
|
|
16494
16507
|
"participants"?: Array<Models.EmailMediaParticipant>;
|
|
16495
16508
|
"otherMediaUris"?: Array<string>;
|
|
16509
|
+
"recentTransfers"?: Array<Models.TransferResponse>;
|
|
16496
16510
|
"selfUri"?: string;
|
|
16497
16511
|
}
|
|
16498
16512
|
|
|
@@ -16582,6 +16596,7 @@ declare namespace Models {
|
|
|
16582
16596
|
"time"?: string;
|
|
16583
16597
|
"historyIncluded"?: boolean;
|
|
16584
16598
|
"state"?: string;
|
|
16599
|
+
"draftType"?: string;
|
|
16585
16600
|
"emailSizeBytes"?: number;
|
|
16586
16601
|
"maxEmailSizeBytes"?: number;
|
|
16587
16602
|
"selfUri"?: string;
|
|
@@ -16823,6 +16838,7 @@ declare namespace Models {
|
|
|
16823
16838
|
"status"?: string;
|
|
16824
16839
|
"answers"?: Models.EvaluationScoringSet;
|
|
16825
16840
|
"agentHasRead"?: boolean;
|
|
16841
|
+
"assignee"?: Models.User;
|
|
16826
16842
|
"releaseDate"?: string;
|
|
16827
16843
|
"assignedDate"?: string;
|
|
16828
16844
|
"changedDate"?: string;
|
|
@@ -16838,6 +16854,7 @@ declare namespace Models {
|
|
|
16838
16854
|
"isScoringIndex"?: boolean;
|
|
16839
16855
|
"authorizedActions"?: Array<string>;
|
|
16840
16856
|
"hasAssistanceFailed"?: boolean;
|
|
16857
|
+
"evaluationSource"?: Models.EvaluationSource;
|
|
16841
16858
|
"selfUri"?: string;
|
|
16842
16859
|
}
|
|
16843
16860
|
|
|
@@ -17079,6 +17096,7 @@ declare namespace Models {
|
|
|
17079
17096
|
"status"?: string;
|
|
17080
17097
|
"answers"?: Models.EvaluationScoringSet;
|
|
17081
17098
|
"agentHasRead"?: boolean;
|
|
17099
|
+
"assignee"?: Models.User;
|
|
17082
17100
|
"releaseDate"?: string;
|
|
17083
17101
|
"assignedDate"?: string;
|
|
17084
17102
|
"changedDate"?: string;
|
|
@@ -17094,6 +17112,7 @@ declare namespace Models {
|
|
|
17094
17112
|
"isScoringIndex"?: boolean;
|
|
17095
17113
|
"authorizedActions"?: Array<string>;
|
|
17096
17114
|
"hasAssistanceFailed"?: boolean;
|
|
17115
|
+
"evaluationSource"?: Models.EvaluationSource;
|
|
17097
17116
|
"selfUri"?: string;
|
|
17098
17117
|
}
|
|
17099
17118
|
|
|
@@ -17104,10 +17123,18 @@ declare namespace Models {
|
|
|
17104
17123
|
"questionGroupScores"?: Array<Models.EvaluationQuestionGroupScore>;
|
|
17105
17124
|
"anyFailedKillQuestions"?: boolean;
|
|
17106
17125
|
"comments"?: string;
|
|
17126
|
+
"privateComments"?: string;
|
|
17107
17127
|
"agentComments"?: string;
|
|
17108
17128
|
"transcriptTopics"?: Array<Models.TranscriptTopic>;
|
|
17109
17129
|
}
|
|
17110
17130
|
|
|
17131
|
+
export interface EvaluationSource {
|
|
17132
|
+
"id"?: string;
|
|
17133
|
+
"name"?: string;
|
|
17134
|
+
"type"?: string;
|
|
17135
|
+
"selfUri"?: string;
|
|
17136
|
+
}
|
|
17137
|
+
|
|
17111
17138
|
export interface EvaluatorActivity {
|
|
17112
17139
|
"id"?: string;
|
|
17113
17140
|
"name"?: string;
|
|
@@ -19401,6 +19428,7 @@ declare namespace Models {
|
|
|
19401
19428
|
"spamFlow"?: Models.DomainEntityRef;
|
|
19402
19429
|
"signature"?: Models.Signature;
|
|
19403
19430
|
"historyInclusion"?: string;
|
|
19431
|
+
"allowMultipleActions"?: boolean;
|
|
19404
19432
|
"selfUri"?: string;
|
|
19405
19433
|
}
|
|
19406
19434
|
|
|
@@ -22445,6 +22473,7 @@ declare namespace Models {
|
|
|
22445
22473
|
"name"?: string;
|
|
22446
22474
|
"participants"?: Array<Models.MessageMediaParticipant>;
|
|
22447
22475
|
"otherMediaUris"?: Array<string>;
|
|
22476
|
+
"recentTransfers"?: Array<Models.TransferResponse>;
|
|
22448
22477
|
"selfUri"?: string;
|
|
22449
22478
|
}
|
|
22450
22479
|
|
|
@@ -24134,12 +24163,35 @@ declare namespace Models {
|
|
|
24134
24163
|
"pageCount"?: number;
|
|
24135
24164
|
}
|
|
24136
24165
|
|
|
24166
|
+
export interface OutcomePredictor {
|
|
24167
|
+
"id"?: string;
|
|
24168
|
+
"outcome"?: Models.OutcomeRef;
|
|
24169
|
+
"selfUri"?: string;
|
|
24170
|
+
}
|
|
24171
|
+
|
|
24172
|
+
export interface OutcomePredictorListing {
|
|
24173
|
+
"entities"?: Array<Models.OutcomePredictor>;
|
|
24174
|
+
}
|
|
24175
|
+
|
|
24176
|
+
export interface OutcomePredictorRequest {
|
|
24177
|
+
"outcome": Models.OutcomeRefRequest;
|
|
24178
|
+
}
|
|
24179
|
+
|
|
24137
24180
|
export interface OutcomeProbabilityCondition {
|
|
24138
24181
|
"outcomeId": string;
|
|
24139
24182
|
"maximumProbability": number;
|
|
24140
24183
|
"probability"?: number;
|
|
24141
24184
|
}
|
|
24142
24185
|
|
|
24186
|
+
export interface OutcomeRef {
|
|
24187
|
+
"id"?: string;
|
|
24188
|
+
"selfUri"?: string;
|
|
24189
|
+
}
|
|
24190
|
+
|
|
24191
|
+
export interface OutcomeRefRequest {
|
|
24192
|
+
"id": string;
|
|
24193
|
+
}
|
|
24194
|
+
|
|
24143
24195
|
export interface OutcomeScoresResult {
|
|
24144
24196
|
"outcomeScores"?: Array<Models.OutcomeEventScore>;
|
|
24145
24197
|
"modifiedDate"?: string;
|
|
@@ -30758,6 +30810,7 @@ declare namespace Models {
|
|
|
30758
30810
|
"webRtcPersistentEnabled"?: boolean;
|
|
30759
30811
|
"webRtcForceTurn"?: boolean;
|
|
30760
30812
|
"webRtcCallAppearances"?: number;
|
|
30813
|
+
"webRtcRequireMediaHelper"?: boolean;
|
|
30761
30814
|
"selfUri"?: string;
|
|
30762
30815
|
}
|
|
30763
30816
|
|
|
@@ -32043,12 +32096,31 @@ declare namespace Models {
|
|
|
32043
32096
|
"doesNotContain"?: Array<string>;
|
|
32044
32097
|
}
|
|
32045
32098
|
|
|
32099
|
+
export interface TransferDestination {
|
|
32100
|
+
"userId"?: string;
|
|
32101
|
+
"address"?: string;
|
|
32102
|
+
}
|
|
32103
|
+
|
|
32104
|
+
export interface TransferInitiator {
|
|
32105
|
+
"userId"?: string;
|
|
32106
|
+
}
|
|
32107
|
+
|
|
32046
32108
|
export interface TransferRequest {
|
|
32047
32109
|
"userId"?: string;
|
|
32048
32110
|
"address"?: string;
|
|
32049
32111
|
"userName"?: string;
|
|
32050
32112
|
"queueId"?: string;
|
|
32051
32113
|
"voicemail"?: boolean;
|
|
32114
|
+
"transferType"?: string;
|
|
32115
|
+
}
|
|
32116
|
+
|
|
32117
|
+
export interface TransferResponse {
|
|
32118
|
+
"id"?: string;
|
|
32119
|
+
"state"?: string;
|
|
32120
|
+
"dateIssued"?: string;
|
|
32121
|
+
"initiator"?: Models.TransferInitiator;
|
|
32122
|
+
"destination"?: Models.TransferDestination;
|
|
32123
|
+
"transferType"?: string;
|
|
32052
32124
|
}
|
|
32053
32125
|
|
|
32054
32126
|
export interface Trigger {
|
package/package.json
CHANGED
|
@@ -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 159.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -3393,7 +3393,7 @@ class ConversationsApi {
|
|
|
3393
3393
|
}
|
|
3394
3394
|
|
|
3395
3395
|
/**
|
|
3396
|
-
* Creates a cobrowse session
|
|
3396
|
+
* Creates a cobrowse session. Requires conversation:cobrowse:add (for web messaging) or conversation:cobrowsevoice:add permission.
|
|
3397
3397
|
*
|
|
3398
3398
|
* @param {String} conversationId Conversation ID
|
|
3399
3399
|
*/
|
|
@@ -5,7 +5,7 @@ class JourneyApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Journey service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 159.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -99,6 +99,31 @@ class JourneyApi {
|
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Delete an outcome predictor.
|
|
104
|
+
*
|
|
105
|
+
* @param {String} predictorId ID of predictor
|
|
106
|
+
*/
|
|
107
|
+
deleteJourneyOutcomesPredictor(predictorId) {
|
|
108
|
+
// verify the required parameter 'predictorId' is set
|
|
109
|
+
if (predictorId === undefined || predictorId === null) {
|
|
110
|
+
throw 'Missing the required parameter "predictorId" when calling deleteJourneyOutcomesPredictor';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return this.apiClient.callApi(
|
|
114
|
+
'/api/v2/journey/outcomes/predictors/{predictorId}',
|
|
115
|
+
'DELETE',
|
|
116
|
+
{ 'predictorId': predictorId },
|
|
117
|
+
{ },
|
|
118
|
+
{ },
|
|
119
|
+
{ },
|
|
120
|
+
null,
|
|
121
|
+
['PureCloud OAuth'],
|
|
122
|
+
['application/json'],
|
|
123
|
+
['application/json']
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
102
127
|
/**
|
|
103
128
|
* Delete a segment.
|
|
104
129
|
*
|
|
@@ -389,6 +414,51 @@ class JourneyApi {
|
|
|
389
414
|
);
|
|
390
415
|
}
|
|
391
416
|
|
|
417
|
+
/**
|
|
418
|
+
* Retrieve a single outcome predictor.
|
|
419
|
+
*
|
|
420
|
+
* @param {String} predictorId ID of predictor
|
|
421
|
+
*/
|
|
422
|
+
getJourneyOutcomesPredictor(predictorId) {
|
|
423
|
+
// verify the required parameter 'predictorId' is set
|
|
424
|
+
if (predictorId === undefined || predictorId === null) {
|
|
425
|
+
throw 'Missing the required parameter "predictorId" when calling getJourneyOutcomesPredictor';
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
return this.apiClient.callApi(
|
|
429
|
+
'/api/v2/journey/outcomes/predictors/{predictorId}',
|
|
430
|
+
'GET',
|
|
431
|
+
{ 'predictorId': predictorId },
|
|
432
|
+
{ },
|
|
433
|
+
{ },
|
|
434
|
+
{ },
|
|
435
|
+
null,
|
|
436
|
+
['PureCloud OAuth'],
|
|
437
|
+
['application/json'],
|
|
438
|
+
['application/json']
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Retrieve all outcome predictors.
|
|
444
|
+
*
|
|
445
|
+
*/
|
|
446
|
+
getJourneyOutcomesPredictors() {
|
|
447
|
+
|
|
448
|
+
return this.apiClient.callApi(
|
|
449
|
+
'/api/v2/journey/outcomes/predictors',
|
|
450
|
+
'GET',
|
|
451
|
+
{ },
|
|
452
|
+
{ },
|
|
453
|
+
{ },
|
|
454
|
+
{ },
|
|
455
|
+
null,
|
|
456
|
+
['PureCloud OAuth'],
|
|
457
|
+
['application/json'],
|
|
458
|
+
['application/json']
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
|
|
392
462
|
/**
|
|
393
463
|
* Retrieve a single segment.
|
|
394
464
|
*
|
|
@@ -761,6 +831,30 @@ class JourneyApi {
|
|
|
761
831
|
);
|
|
762
832
|
}
|
|
763
833
|
|
|
834
|
+
/**
|
|
835
|
+
* Create an outcome predictor.
|
|
836
|
+
*
|
|
837
|
+
* @param {Object} opts Optional parameters
|
|
838
|
+
* @param {Object} opts.body
|
|
839
|
+
*/
|
|
840
|
+
postJourneyOutcomesPredictors(opts) {
|
|
841
|
+
opts = opts || {};
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
return this.apiClient.callApi(
|
|
845
|
+
'/api/v2/journey/outcomes/predictors',
|
|
846
|
+
'POST',
|
|
847
|
+
{ },
|
|
848
|
+
{ },
|
|
849
|
+
{ },
|
|
850
|
+
{ },
|
|
851
|
+
opts['body'],
|
|
852
|
+
['PureCloud OAuth'],
|
|
853
|
+
['application/json'],
|
|
854
|
+
['application/json']
|
|
855
|
+
);
|
|
856
|
+
}
|
|
857
|
+
|
|
764
858
|
/**
|
|
765
859
|
* Create a segment.
|
|
766
860
|
*
|
|
@@ -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 159.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -408,7 +408,6 @@ class KnowledgeApi {
|
|
|
408
408
|
* @param {String} sessionId Knowledge guest session ID.
|
|
409
409
|
* @param {Object} opts Optional parameters
|
|
410
410
|
* @param {Array.<String>} opts.categoryId If specified, retrieves documents associated with category ids, comma separated values expected.
|
|
411
|
-
* @param {Boolean} opts.includeSubcategories Deprecated - Do Not Use. Works along with 'categoryId' query parameter. If specified, retrieves documents associated with category ids and its children categories.
|
|
412
411
|
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 10)
|
|
413
412
|
*/
|
|
414
413
|
getKnowledgeGuestSessionDocuments(sessionId, opts) {
|
|
@@ -423,7 +422,7 @@ class KnowledgeApi {
|
|
|
423
422
|
'/api/v2/knowledge/guest/sessions/{sessionId}/documents',
|
|
424
423
|
'GET',
|
|
425
424
|
{ 'sessionId': sessionId },
|
|
426
|
-
{ 'categoryId': this.apiClient.buildCollectionParam(opts['categoryId'], 'multi'),'
|
|
425
|
+
{ 'categoryId': this.apiClient.buildCollectionParam(opts['categoryId'], 'multi'),'pageSize': opts['pageSize'] },
|
|
427
426
|
{ },
|
|
428
427
|
{ },
|
|
429
428
|
null,
|