@cognigy/rest-api-client 0.17.0 → 0.19.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/CHANGELOG.md +12 -0
- package/build/GenericTusFn.js +6 -1
- package/build/GenericUploadFn.js +3 -5
- package/build/apigroups/AdministrationAPIGroup_2_0.js +3 -1
- package/build/apigroups/MetricsAPIGroup_2_0.js +5 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +21 -7
- package/build/connector/AxiosAdapter.js +35 -15
- package/build/shared/charts/createNodeDescriptor.js +5 -5
- package/build/shared/charts/descriptors/agentAssist/constants/constants.js +16 -1
- package/build/shared/charts/descriptors/agentAssist/helpers/agentAssistTranslator.helper.js +19 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/determineMetadata.js +15 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/getFontSizeFieldOptions.js +84 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/getLanguageName.helper.js +33 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/answerExtraction.helper.js +59 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/configValidator.helper.js +20 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/errorHandler.helper.js +64 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/followUpDetection.helper.js +72 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/knowledgeSearch.helper.js +58 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/sentiment.helper.js +7 -13
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/identityAssistTemplate.js +17 -18
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +330 -153
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/nextActionWidgetTemplate.js +212 -80
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/sentimentAnalysisTemplate.js +11 -6
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/transcriptAssistTemplate.js +15 -13
- package/build/shared/charts/descriptors/agentAssist/identityAssist.js +88 -15
- package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +192 -327
- package/build/shared/charts/descriptors/agentAssist/locales/cs.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/de.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/en.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/es.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/fr.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/index.js +22 -0
- package/build/shared/charts/descriptors/agentAssist/locales/ja.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/ko.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/pt.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +484 -10
- package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +32 -9
- package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +2 -0
- package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +2 -1
- package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +5 -3
- package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +5 -3
- package/build/shared/charts/descriptors/agentAssist/setSecureFormsTile.js +2 -2
- package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +42 -3
- package/build/shared/charts/descriptors/analytics/activateProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/blindMode.js +2 -0
- package/build/shared/charts/descriptors/analytics/completeGoal.js +1 -0
- package/build/shared/charts/descriptors/analytics/deactivateProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/deleteProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/index.js +3 -1
- package/build/shared/charts/descriptors/analytics/mergeProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +9 -0
- package/build/shared/charts/descriptors/analytics/requestRating.js +56 -2
- package/build/shared/charts/descriptors/analytics/setRating.js +4 -2
- package/build/shared/charts/descriptors/analytics/trackMilestone.js +95 -0
- package/build/shared/charts/descriptors/analytics/updateProfile.js +1 -0
- package/build/shared/charts/descriptors/apps/initAppSession.js +1 -0
- package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +35 -10
- package/build/shared/charts/descriptors/apps/setHtmlAppState.js +25 -2
- package/build/shared/charts/descriptors/apps/utils/getXAppsOverlaySettings.js +54 -0
- package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/azureAIDocumentIntelligenceConnection.js +12 -0
- package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/index.js +13 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockProviderConnection.js +12 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnection.js +4 -3
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +3 -3
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderOauth2Connection.js +14 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +16 -8
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +3 -3
- package/build/shared/charts/descriptors/data/addToContext.js +7 -0
- package/build/shared/charts/descriptors/data/copyDataToContext.js +3 -0
- package/build/shared/charts/descriptors/data/copySlotsToContext.js +3 -0
- package/build/shared/charts/descriptors/data/debugMessage.js +73 -0
- package/build/shared/charts/descriptors/data/index.js +3 -1
- package/build/shared/charts/descriptors/data/removeFromContext.js +9 -1
- package/build/shared/charts/descriptors/data/resetContext.js +1 -0
- package/build/shared/charts/descriptors/index.js +8 -4
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +36 -11
- package/build/shared/charts/descriptors/logic/resetState.js +1 -0
- package/build/shared/charts/descriptors/logic/setState.js +2 -1
- package/build/shared/charts/descriptors/logic/setTranslation.js +3 -1
- package/build/shared/charts/descriptors/logic/switchLocale.js +1 -0
- package/build/shared/charts/descriptors/logic/think.js +3 -1
- package/build/shared/charts/descriptors/logic/thinkV2.js +2 -0
- package/build/shared/charts/descriptors/message/question/optionalQuestion.js +1 -1
- package/build/shared/charts/descriptors/message/question/question.js +173 -7
- package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +44 -3
- package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +4 -2
- package/build/shared/charts/descriptors/nlu/cleanText.js +1 -0
- package/build/shared/charts/descriptors/nlu/fuzzySearch.js +23 -1
- package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +45 -19
- package/build/shared/charts/descriptors/nlu/index.js +1 -3
- package/build/shared/charts/descriptors/service/GPTPrompt.js +362 -29
- package/build/shared/charts/descriptors/service/LLMEntityExtract.js +283 -0
- package/build/shared/charts/descriptors/service/handoverV2.js +84 -1
- package/build/shared/charts/descriptors/service/httpRequest.js +68 -3
- package/build/shared/charts/descriptors/service/index.js +3 -1
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +110 -27
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +4 -4
- package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/dtmf.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -0
- package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/play.js +8 -1
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +46 -45
- package/build/shared/charts/descriptors/voice/nodes/transfer.js +2 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +2 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +2 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +3 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +329 -47
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +27 -31
- package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +2 -2
- package/build/shared/charts/helpers/generativeAI/generativeAIPrompts.js +55 -0
- package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +4 -2
- package/build/shared/constants.js +10 -1
- package/build/shared/handoverClients/interfaces/THandoverEventType.js +1 -0
- package/build/shared/helper/logFullConfigToDebugMode.js +30 -0
- package/build/shared/helper/nlu/textCleaner.js +3 -1
- package/build/shared/interfaces/IOrganisation.js +1 -0
- package/build/shared/interfaces/IProfile.js +1 -0
- package/build/shared/interfaces/IProfileSchema.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +20 -20
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyProgress_2_0.js → analytics/IMilestoneAnalytics.js} +1 -1
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourney_2_0.js → appsession/IAppSession.js} +1 -1
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyStep_2_0.js → appsession/ISetAppState.js} +1 -1
- package/build/shared/interfaces/appsession/ISetAppStateOptions.js +3 -0
- package/build/shared/interfaces/appsession/ISetAppStateOverlaySettings.js +3 -0
- package/build/shared/interfaces/appsession/ISetAppStateOverlaySettingsMetaData.js +3 -0
- package/build/shared/interfaces/debugEvents/TDebugEventMessagePayload.js +3 -0
- package/build/shared/interfaces/debugEvents/TDebugEventType.js +2 -0
- package/build/shared/interfaces/fileStorage.js +6 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +45 -52
- package/build/shared/interfaces/handover.js +44 -2
- package/build/shared/interfaces/license.js +3 -2
- package/build/shared/interfaces/license.js.map +1 -1
- package/build/shared/interfaces/messageAPI/endpoints.js +17 -2
- package/build/shared/interfaces/messageAPI/handover.js +25 -2
- package/build/shared/interfaces/nlu/nlu.js +3 -0
- package/build/shared/interfaces/resources/IAuditEvent.js +10 -9
- package/build/shared/interfaces/resources/IConnection.js +1 -0
- package/build/shared/interfaces/resources/IEndpoint.js +1 -2
- package/build/shared/interfaces/resources/ILargeLanguageModel.js +56 -21
- package/build/shared/interfaces/resources/IMilestone.js +50 -0
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +96 -75
- package/build/shared/interfaces/resources/TResourceType.js +12 -5
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
- package/build/shared/interfaces/resources/settings/IAgentSettings.js +12 -7
- package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +8 -0
- package/build/shared/interfaces/resources/settings/IKnowledgeAISettings.js +18 -0
- package/build/shared/interfaces/resources/settings/index.js +4 -1
- package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadCollectionsToBeDeletedRest_2_0.js +0 -1
- package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadOrganisationKnowledgeChunksCountRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/operations/index.js +3 -0
- package/build/shared/interfaces/restAPI/operations/nlu/v2.0/IGenerateNluScoresRest_2_0.js +57 -0
- package/build/shared/interfaces/restAPI/operations/nlu/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IAvailableModelsForLLMProvider_2_0 .js +18 -0
- package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IGetAvailableModelsForLLMRest_2_0 .js +3 -0
- package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IJourneyIndexItem_2_0.js → milestone/v2.0/ICloneMilestoneRest_2_0.js} +1 -1
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/ICreateMilestoneRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IDeleteMilestoneRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IIndexMilestonesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStepMetric_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStep_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestone_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IIndexJourneysRest_2_0.js → milestone/v2.0/IReadMilestoneRest_2_0.js} +1 -1
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IUpdateMilestoneRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/IUploadResumableRest_2_0.js +3 -1
- package/build/shared/interfaces/security/IPermission.js +4 -2
- package/build/shared/interfaces/security/IRole.js +2 -0
- package/build/shared/interfaces/security/ISystemCapabilities.js +3 -0
- package/build/shared/interfaces/security/index.js +1 -1
- package/build/shared/interfaces/trainer/ITrainerRecord.js +2 -2
- package/build/shared/interfaces/user.js +1 -1
- package/package.json +2 -2
- package/types/index.d.ts +2194 -957
- package/build/shared/charts/descriptors/nlu/extractAnswer.js +0 -115
- package/build/shared/interfaces/journeys/IJourney.js +0 -83
- package/build/shared/interfaces/journeys/IJourneyProgress.js +0 -40
- package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +0 -35
- package/build/shared/interfaces/journeys/index.js +0 -14
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyTrackEvents_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyProgressRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/ITrackJourneyEventRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IUpdateSelectedJourneyRest_2_0.js +0 -3
- /package/build/shared/interfaces/{restAPI/resources/journey/v2.0 → appsession}/index.js +0 -0
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EXTRACT_ANSWER = void 0;
|
|
4
|
-
/* Custom modules */
|
|
5
|
-
const createNodeDescriptor_1 = require("../../createNodeDescriptor");
|
|
6
|
-
/**
|
|
7
|
-
* Node name: 'extractAnswer'
|
|
8
|
-
*
|
|
9
|
-
* Purpose:
|
|
10
|
-
* Answers a question based on a given context with the built-in question answering module
|
|
11
|
-
*/
|
|
12
|
-
exports.EXTRACT_ANSWER = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
13
|
-
type: "extractAnswer",
|
|
14
|
-
defaultLabel: "Extract Answer",
|
|
15
|
-
summary: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__SUMMARY",
|
|
16
|
-
appearance: {
|
|
17
|
-
showIcon: false
|
|
18
|
-
},
|
|
19
|
-
fields: [
|
|
20
|
-
{
|
|
21
|
-
key: "text",
|
|
22
|
-
type: "cognigyText",
|
|
23
|
-
label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__TEXT__LABEL",
|
|
24
|
-
defaultValue: ""
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
key: "question",
|
|
28
|
-
type: "cognigyText",
|
|
29
|
-
label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__QUESTION__LABEL",
|
|
30
|
-
params: {
|
|
31
|
-
required: true
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
key: "storeLocation",
|
|
36
|
-
type: "select",
|
|
37
|
-
label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__STORE_LOCATION__LABEL",
|
|
38
|
-
params: {
|
|
39
|
-
options: [
|
|
40
|
-
{
|
|
41
|
-
label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__STORE_LOCATION__OPTIONS__INPUT__LABEL",
|
|
42
|
-
value: "input"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__STORE_LOCATION__OPTIONS__CONTEXT__LABEL",
|
|
46
|
-
value: "context"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
required: true
|
|
50
|
-
},
|
|
51
|
-
defaultValue: "input"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
key: "inputKey",
|
|
55
|
-
type: "cognigyText",
|
|
56
|
-
label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__INPUT_KEY__LABEL",
|
|
57
|
-
description: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__INPUT_KEY__DESCRIPTION",
|
|
58
|
-
defaultValue: "extractAnswer",
|
|
59
|
-
condition: {
|
|
60
|
-
key: "storeLocation",
|
|
61
|
-
value: "input"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
key: "contextKey",
|
|
66
|
-
type: "cognigyText",
|
|
67
|
-
label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__CONETEXT_KEY__LABEL",
|
|
68
|
-
description: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__CONETEXT_KEY__DESCRIPTION",
|
|
69
|
-
defaultValue: "extractAnswer",
|
|
70
|
-
condition: {
|
|
71
|
-
key: "storeLocation",
|
|
72
|
-
value: "context"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
sections: [
|
|
77
|
-
{
|
|
78
|
-
key: "storage",
|
|
79
|
-
label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__SECTIONS__STORAGE__LABEL",
|
|
80
|
-
defaultCollapsed: true,
|
|
81
|
-
fields: [
|
|
82
|
-
"storeLocation",
|
|
83
|
-
"inputKey",
|
|
84
|
-
"contextKey",
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
form: [
|
|
89
|
-
{ type: "field", key: "text" },
|
|
90
|
-
{ type: "field", key: "question" },
|
|
91
|
-
{ type: "field", key: "maxTextLength" },
|
|
92
|
-
{ type: "section", key: "storage" },
|
|
93
|
-
],
|
|
94
|
-
preview: {
|
|
95
|
-
key: "text",
|
|
96
|
-
type: "text",
|
|
97
|
-
},
|
|
98
|
-
tags: ["nlu"],
|
|
99
|
-
function: async (extractAnswerParams) => {
|
|
100
|
-
const { cognigy, config } = extractAnswerParams;
|
|
101
|
-
const { api } = cognigy;
|
|
102
|
-
const { question, storeLocation, contextKey, inputKey } = config;
|
|
103
|
-
if (!question) {
|
|
104
|
-
throw new Error("Unable to answer question. Question is missing.");
|
|
105
|
-
}
|
|
106
|
-
if (storeLocation === "context" && !contextKey) {
|
|
107
|
-
throw new Error("Unable to answer question. Context Key is missing.");
|
|
108
|
-
}
|
|
109
|
-
if (storeLocation === "input" && !inputKey) {
|
|
110
|
-
throw new Error("Unable to answer question. Input Key is missing.");
|
|
111
|
-
}
|
|
112
|
-
return await api.extractAnswer(extractAnswerParams);
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
//# sourceMappingURL=extractAnswer.js.map
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.journeyQuerySchema = exports.journeySchema = exports.journeyDataSchema = exports.journeyStepGoals = void 0;
|
|
4
|
-
/* Custom Modules */
|
|
5
|
-
const createQuerySchema_1 = require("../../helper/createQuerySchema");
|
|
6
|
-
/* Interfaces & Types */
|
|
7
|
-
const IEntityMeta_1 = require("../resources/IEntityMeta");
|
|
8
|
-
exports.journeyStepGoals = [
|
|
9
|
-
"createAgent",
|
|
10
|
-
"createFlow",
|
|
11
|
-
"createEndpoint",
|
|
12
|
-
"createLexicon",
|
|
13
|
-
"createSnapshot",
|
|
14
|
-
"createKnowledgeStore",
|
|
15
|
-
"createKnowledgeSource",
|
|
16
|
-
"openWebchat",
|
|
17
|
-
"createCodeNode",
|
|
18
|
-
"createHttpRequestNode",
|
|
19
|
-
"createIfNode",
|
|
20
|
-
"createQuestionNode",
|
|
21
|
-
"createSayNode",
|
|
22
|
-
"createLookupNode",
|
|
23
|
-
"createKnowledgeSearchNode",
|
|
24
|
-
"createSearchExtractOutputNode",
|
|
25
|
-
"createGptConversationNode",
|
|
26
|
-
"createLlmPromptNode",
|
|
27
|
-
"updateCaseNode",
|
|
28
|
-
"updateHttpRequestNode",
|
|
29
|
-
"updateIfNode",
|
|
30
|
-
"updateQuestionNode",
|
|
31
|
-
"updateSayNode",
|
|
32
|
-
"createIntent",
|
|
33
|
-
"trainIntents",
|
|
34
|
-
"activateLexicon",
|
|
35
|
-
"useToken",
|
|
36
|
-
"addKeyphrase",
|
|
37
|
-
"expertModeOn",
|
|
38
|
-
"openContextTab",
|
|
39
|
-
"openInfoTab",
|
|
40
|
-
"openIP",
|
|
41
|
-
"sendMessage",
|
|
42
|
-
"prepareSnapshotDownload",
|
|
43
|
-
"restoreSnapshot",
|
|
44
|
-
];
|
|
45
|
-
exports.journeyDataSchema = {
|
|
46
|
-
title: "journeyDataSchema",
|
|
47
|
-
type: "object",
|
|
48
|
-
additionalProperties: false,
|
|
49
|
-
properties: {
|
|
50
|
-
name: { type: "string", minLength: 1, maxLength: 200 },
|
|
51
|
-
link: { type: "string", maxLength: 1000 },
|
|
52
|
-
summary: { type: "string", maxLength: 200 },
|
|
53
|
-
steps: {
|
|
54
|
-
type: "array",
|
|
55
|
-
additionalItems: false,
|
|
56
|
-
items: {
|
|
57
|
-
type: "object",
|
|
58
|
-
additionalProperties: false,
|
|
59
|
-
properties: {
|
|
60
|
-
referenceId: { type: "string", format: "uuid" },
|
|
61
|
-
name: { type: "string", minLength: 1, maxLength: 200 },
|
|
62
|
-
link: { type: "string", maxLength: 1000 },
|
|
63
|
-
summary: { type: "string", maxLength: 200 },
|
|
64
|
-
description: { type: "string", maxLength: 10000 },
|
|
65
|
-
goals: {
|
|
66
|
-
type: "array",
|
|
67
|
-
additionalItems: false,
|
|
68
|
-
maxItems: 25,
|
|
69
|
-
items: { type: "string", format: "journey-step-goal" }
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
exports.journeySchema = {
|
|
77
|
-
title: "journeySchema",
|
|
78
|
-
type: "object",
|
|
79
|
-
additionalProperties: false,
|
|
80
|
-
properties: Object.assign(Object.assign({ referenceId: { type: "string", format: "uuid" } }, exports.journeyDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties)
|
|
81
|
-
};
|
|
82
|
-
exports.journeyQuerySchema = (0, createQuerySchema_1.createQuerySchema)("journeyQuerySchema", exports.journeySchema);
|
|
83
|
-
//# sourceMappingURL=IJourney.js.map
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.journeyProgressSchema = exports.journeyProgressDataSchema = void 0;
|
|
4
|
-
exports.journeyProgressDataSchema = {
|
|
5
|
-
title: "journeyProgressDataSchema",
|
|
6
|
-
type: "object",
|
|
7
|
-
additionalProperties: false,
|
|
8
|
-
properties: {
|
|
9
|
-
userReference: { type: "string", format: "mongo-id" },
|
|
10
|
-
organisationReference: { type: "string", format: "mongo-id" },
|
|
11
|
-
isCurrent: { type: "boolean" },
|
|
12
|
-
isComplete: { type: "boolean" },
|
|
13
|
-
journeyReferenceId: { type: "string", format: "uuid" },
|
|
14
|
-
journeySteps: {
|
|
15
|
-
type: "array",
|
|
16
|
-
additionalItems: false,
|
|
17
|
-
items: {
|
|
18
|
-
type: "object",
|
|
19
|
-
additionalProperties: false,
|
|
20
|
-
properties: {
|
|
21
|
-
journeyStepReferenceId: { type: "string", format: "uuid" },
|
|
22
|
-
isComplete: { type: "boolean" },
|
|
23
|
-
completedGoals: {
|
|
24
|
-
type: "array",
|
|
25
|
-
additionalItems: false,
|
|
26
|
-
maxItems: 25,
|
|
27
|
-
items: { type: "string", format: "journey-step-goal" }
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.journeyProgressSchema = {
|
|
35
|
-
title: "journeyProgressSchema",
|
|
36
|
-
type: "object",
|
|
37
|
-
additionalProperties: false,
|
|
38
|
-
properties: Object.assign({}, exports.journeyProgressDataSchema.properties)
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=IJourneyProgress.js.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.trackableJourneyEvent = void 0;
|
|
4
|
-
exports.trackableJourneyEvent = [
|
|
5
|
-
/* resources */
|
|
6
|
-
"createAgent",
|
|
7
|
-
"createFlow",
|
|
8
|
-
"createEndpoint",
|
|
9
|
-
"createLexicon",
|
|
10
|
-
"createSnapshot",
|
|
11
|
-
"createKnowledgeStore",
|
|
12
|
-
"createKnowledgeSource",
|
|
13
|
-
/* endpoint editor */
|
|
14
|
-
"openWebchat",
|
|
15
|
-
/* flow chart */
|
|
16
|
-
"createNode",
|
|
17
|
-
"updateNode",
|
|
18
|
-
/* flow editor other */
|
|
19
|
-
"createIntent",
|
|
20
|
-
"trainIntents",
|
|
21
|
-
"activateLexicon",
|
|
22
|
-
"useToken",
|
|
23
|
-
/* lexicon editor */
|
|
24
|
-
"addKeyphrase",
|
|
25
|
-
/* interaction panel (ui) */
|
|
26
|
-
"expertModeOn",
|
|
27
|
-
"openContextTab",
|
|
28
|
-
"openInfoTab",
|
|
29
|
-
"openIP",
|
|
30
|
-
"sendMessage",
|
|
31
|
-
/* snapshots */
|
|
32
|
-
"prepareSnapshotDownload",
|
|
33
|
-
"restoreSnapshot"
|
|
34
|
-
];
|
|
35
|
-
//# sourceMappingURL=IJourneyTrackEvent.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.journeyProgressSchema = exports.journeyProgressDataSchema = exports.journeyStepGoals = exports.journeySchema = exports.journeyQuerySchema = exports.journeyDataSchema = exports.trackableJourneyEvent = void 0;
|
|
4
|
-
var IJourneyTrackEvent_1 = require("./IJourneyTrackEvent");
|
|
5
|
-
Object.defineProperty(exports, "trackableJourneyEvent", { enumerable: true, get: function () { return IJourneyTrackEvent_1.trackableJourneyEvent; } });
|
|
6
|
-
var IJourney_1 = require("./IJourney");
|
|
7
|
-
Object.defineProperty(exports, "journeyDataSchema", { enumerable: true, get: function () { return IJourney_1.journeyDataSchema; } });
|
|
8
|
-
Object.defineProperty(exports, "journeyQuerySchema", { enumerable: true, get: function () { return IJourney_1.journeyQuerySchema; } });
|
|
9
|
-
Object.defineProperty(exports, "journeySchema", { enumerable: true, get: function () { return IJourney_1.journeySchema; } });
|
|
10
|
-
Object.defineProperty(exports, "journeyStepGoals", { enumerable: true, get: function () { return IJourney_1.journeyStepGoals; } });
|
|
11
|
-
var IJourneyProgress_1 = require("./IJourneyProgress");
|
|
12
|
-
Object.defineProperty(exports, "journeyProgressDataSchema", { enumerable: true, get: function () { return IJourneyProgress_1.journeyProgressDataSchema; } });
|
|
13
|
-
Object.defineProperty(exports, "journeyProgressSchema", { enumerable: true, get: function () { return IJourneyProgress_1.journeyProgressSchema; } });
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
File without changes
|