@cognigy/rest-api-client 0.9.1 → 0.12.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/.snyk +4 -0
- package/CHANGELOG.md +17 -0
- package/README.md +49 -2
- package/build/GenericAPIFn.js +7 -7
- package/build/GenericUploadFn.js +22 -12
- package/build/PluginBase.js +1 -0
- package/build/RestAPIClient.js +34 -9
- package/build/apigroups/AdministrationAPIGroup_2_0.js +98 -8
- package/build/apigroups/AnalyticsAPIGroup_2_0.js +12 -0
- package/build/apigroups/ExternalAPIGroup_2_0.js +7 -6
- package/build/apigroups/InsightsAPIGroup_2_0.js +53 -0
- package/build/apigroups/ManagementAPIGroup_2_0.js +44 -0
- package/build/apigroups/MetricsAPIGroup_2_0.js +44 -29
- package/build/apigroups/ResourcesAPIGroup_2_0.js +321 -213
- package/build/apigroups/SessionsAPIGroup_2_0.js +11 -10
- package/build/apigroups/TRestAPIGroupsTypeByConfiguration.js +0 -1
- package/build/apigroups/TRestAPIOperation.js +3 -0
- package/build/apigroups/index.js +12 -7
- package/build/authentication/ApiKey/ApiKeyAuthentication.js +23 -0
- package/build/authentication/{IApiKeyAuthentication.js → ApiKey/IApiKeyAuthentication.js} +0 -0
- package/build/authentication/AuthenticationAPI.js +36 -6
- package/build/authentication/BasicAuthentication/BasicAuthentication.js +31 -0
- package/build/authentication/BasicAuthentication/IBasicAuthentication.js +3 -0
- package/build/authentication/OAuth2/IGetAuthorizationCodeParameters.js +3 -0
- package/build/authentication/OAuth2/ILoginByAuthorizationCodeParameters.js +3 -0
- package/build/authentication/OAuth2/ILoginByClientCredentialsParameters.js +3 -0
- package/build/authentication/OAuth2/ILoginByPasswordParameters.js +3 -0
- package/build/authentication/OAuth2/ILoginByRefreshTokenParameters.js +3 -0
- package/build/authentication/{IOAuth2Authentication.js → OAuth2/IOAuth2Authentication.js} +0 -0
- package/build/authentication/OAuth2/IOAuth2AuthorizationCodeGrantRequest.js +11 -0
- package/build/authentication/OAuth2/IOAuth2ClientCredentialsGrantAccessTokenRequest.js +11 -0
- package/build/authentication/OAuth2/IOAuth2ClientPassword.js +3 -0
- package/build/authentication/OAuth2/IOAuth2ErrorResponse.js +41 -0
- package/build/authentication/OAuth2/IOAuth2GetAuthorizationCodeRequest.js +11 -0
- package/build/authentication/OAuth2/IOAuth2PasswordGrantAccessTokenRequest.js +11 -0
- package/build/authentication/OAuth2/IOAuth2RefreshAccessTokenRequest.js +12 -0
- package/build/authentication/OAuth2/IOAuth2SuccessResponse.js +3 -0
- package/build/authentication/OAuth2/OAuth2Authentication.js +238 -0
- package/build/authentication/OAuth2/OAuth2Error.js +10 -0
- package/build/authentication/OAuth2/TOAuth2AccessTokenType.js +3 -0
- package/build/authentication/{IAuthenticationAdapter.js → interfaces/IAuthenticationAdapter.js} +0 -0
- package/build/authentication/{IAuthenticationConstructor.js → interfaces/IAuthenticationConstructor.js} +0 -0
- package/build/authentication/{TAuthenticationParameter.js → interfaces/TAuthenticationParameter.js} +0 -0
- package/build/connector/AxiosAdapter.js +105 -13
- package/build/connector/IHttpProgressEvent.js +3 -0
- package/build/connector/exponentialDelay.js +22 -0
- package/build/connector/index.js +10 -1
- package/build/connector/isRetryAllowed.js +60 -0
- package/build/connector/isRetryableStatus.js +14 -0
- package/build/connector/retryAfterDelay.js +34 -0
- package/build/index.js +18 -2
- package/build/shared/cache/index.js +3 -0
- package/build/shared/charts/createNodeDescriptor.js +12 -9
- package/build/shared/charts/descriptors/allFields.js +1 -0
- package/build/shared/charts/descriptors/apps/index.js +8 -0
- package/build/shared/charts/descriptors/apps/initAppSession.js +33 -0
- package/build/shared/charts/descriptors/apps/setAppState.js +46 -0
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/aggregate.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/find.js +2 -1
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/findOne.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/index.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/insert.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/mongoDBConnection.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/remove.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateMany.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateOne.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +221 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +9 -2
- package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +431 -15
- package/build/shared/charts/descriptors/connectionNodes/smtp/serviceConnection.js +12 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/smtpConnection.js +2 -1
- package/build/shared/charts/descriptors/connectionNodes/sql/index.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/sql/runQuery.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/sql/runStoredProcedure.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/sql/runTransaction.js +1 -0
- package/build/shared/charts/descriptors/connectionNodes/sql/sqlConnection.js +1 -0
- package/build/shared/charts/descriptors/data/addToContext.js +1 -0
- package/build/shared/charts/descriptors/data/code.js +1 -0
- package/build/shared/charts/descriptors/data/copyDataToContext.js +1 -0
- package/build/shared/charts/descriptors/data/copySlotsToContext.js +1 -0
- package/build/shared/charts/descriptors/data/index.js +9 -6
- package/build/shared/charts/descriptors/data/log.js +62 -0
- package/build/shared/charts/descriptors/data/removeFromContext.js +1 -0
- package/build/shared/charts/descriptors/data/resetContext.js +1 -0
- package/build/shared/charts/descriptors/end.js +2 -0
- package/build/shared/charts/descriptors/index.js +92 -58
- package/build/shared/charts/descriptors/logic/disableSlotFillers.js +52 -0
- package/build/shared/charts/descriptors/logic/enableSlotFillers.js +46 -0
- package/build/shared/charts/descriptors/logic/executeFlow.js +21 -0
- package/build/shared/charts/descriptors/logic/goTo.js +110 -8
- package/build/shared/charts/descriptors/logic/if/else.js +3 -0
- package/build/shared/charts/descriptors/logic/if/if.js +3 -1
- package/build/shared/charts/descriptors/logic/if/then.js +3 -0
- package/build/shared/charts/descriptors/logic/index.js +31 -22
- package/build/shared/charts/descriptors/logic/interval/elseInterval.js +2 -0
- package/build/shared/charts/descriptors/logic/interval/interval.js +1 -0
- package/build/shared/charts/descriptors/logic/interval/onInterval.js +2 -0
- package/build/shared/charts/descriptors/logic/once/afterwards.js +2 -0
- package/build/shared/charts/descriptors/logic/once/onFirstExecution.js +2 -0
- package/build/shared/charts/descriptors/logic/once/once.js +1 -0
- package/build/shared/charts/descriptors/logic/resetState.js +1 -0
- package/build/shared/charts/descriptors/logic/setState.js +1 -0
- package/build/shared/charts/descriptors/logic/setTranslation.js +88 -0
- package/build/shared/charts/descriptors/logic/sleep.js +1 -0
- package/build/shared/charts/descriptors/logic/stop.js +2 -5
- package/build/shared/charts/descriptors/logic/switch/case.js +3 -0
- package/build/shared/charts/descriptors/logic/switch/default.js +3 -0
- package/build/shared/charts/descriptors/logic/switch/switch.js +108 -13
- package/build/shared/charts/descriptors/logic/switchLocale.js +64 -0
- package/build/shared/charts/descriptors/logic/think.js +71 -7
- package/build/shared/charts/descriptors/logic/thinkV2.js +104 -0
- package/build/shared/charts/descriptors/logic/wait.js +3 -9
- package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +3 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/onNo.js +4 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/onYes.js +4 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/unchanged.js +4 -1
- package/build/shared/charts/descriptors/message/datePicker.js +1 -0
- package/build/shared/charts/descriptors/message/index.js +13 -12
- package/build/shared/charts/descriptors/message/question/onAnswer.js +4 -1
- package/build/shared/charts/descriptors/message/question/onQuestion.js +4 -1
- package/build/shared/charts/descriptors/message/question/optionalQuestion.js +65 -8
- package/build/shared/charts/descriptors/message/question/question.js +1143 -58
- package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +79 -11
- package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +23 -3
- package/build/shared/charts/descriptors/message/question/utils/generateAnswerShortForm.js +37 -0
- package/build/shared/charts/descriptors/message/question/utils/getQuestionText.js +36 -0
- package/build/shared/charts/descriptors/message/question/utils/resetNodeState.js +12 -0
- package/build/shared/charts/descriptors/message/question/utils/storeQuestionAnswer.js +30 -0
- package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +22 -0
- package/build/shared/charts/descriptors/message/say.js +16 -6
- package/build/shared/charts/descriptors/message/sendImage.js +4 -3
- package/build/shared/charts/descriptors/message/sendText.js +1 -0
- package/build/shared/charts/descriptors/microsoft/getToken.js +34 -0
- package/build/shared/charts/descriptors/microsoft/index.js +22 -0
- package/build/shared/charts/descriptors/microsoft/invalidateToken.js +29 -0
- package/build/shared/charts/descriptors/microsoft/tokenStatus/index.js +51 -0
- package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenGranted.js +24 -0
- package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenNotGranted.js +24 -0
- package/build/shared/charts/descriptors/microsoft/utils/design.js +5 -0
- package/build/shared/charts/descriptors/nlu/addLexiconKeyphrase.js +1 -0
- package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +8 -2
- package/build/shared/charts/descriptors/nlu/extractAnswer.js +115 -0
- package/build/shared/charts/descriptors/nlu/fuzzySearch.js +270 -0
- package/build/shared/charts/descriptors/nlu/index.js +10 -3
- package/build/shared/charts/descriptors/nlu/matchPattern.js +104 -0
- package/build/shared/charts/descriptors/nlu/regexSlotFiller.js +1 -0
- package/build/shared/charts/descriptors/nlu/utils/patternMatcher.js +197 -0
- package/build/shared/charts/descriptors/placeholder.js +38 -0
- package/build/shared/charts/descriptors/profile/activateProfile.js +1 -0
- package/build/shared/charts/descriptors/profile/blindMode.js +6 -2
- package/build/shared/charts/descriptors/profile/completeGoal.js +5 -0
- package/build/shared/charts/descriptors/profile/deactivateProfile.js +1 -0
- package/build/shared/charts/descriptors/profile/deleteProfile.js +1 -0
- package/build/shared/charts/descriptors/profile/index.js +14 -7
- package/build/shared/charts/descriptors/profile/mergeProfile.js +1 -0
- package/build/shared/charts/descriptors/profile/overwriteAnalytics.js +223 -0
- package/build/shared/charts/descriptors/profile/requestRating.js +57 -0
- package/build/shared/charts/descriptors/profile/setRating.js +39 -0
- package/build/shared/charts/descriptors/profile/updateProfile.js +8 -3
- package/build/shared/charts/descriptors/requiredFields.js +1 -0
- package/build/shared/charts/descriptors/service/handover.js +64 -7
- package/build/shared/charts/descriptors/service/handoverV2.js +129 -0
- package/build/shared/charts/descriptors/service/httpRequest.js +119 -8
- package/build/shared/charts/descriptors/service/index.js +15 -6
- package/build/shared/charts/descriptors/service/triggerFunction/onScheduled.js +27 -0
- package/build/shared/charts/descriptors/service/triggerFunction/onSchedulingError.js +27 -0
- package/build/shared/charts/descriptors/service/triggerFunction/triggerFunction.js +66 -0
- package/build/shared/charts/descriptors/start.js +2 -0
- package/build/shared/charts/descriptors/voicegateway/index.js +28 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/agentAssist.js +87 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +118 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +156 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +57 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +146 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +273 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +50 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +73 -0
- package/build/shared/charts/descriptors/voicegateway/utils/design.js +5 -0
- package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +501 -0
- package/build/shared/charts/descriptors/voicegateway2/index.js +21 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +56 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +48 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +199 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +44 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +584 -0
- package/build/shared/charts/descriptors/voicegateway2/utils/design.js +5 -0
- package/build/shared/charts/descriptors/voicegateway2/utils/strip-nulls.js +19 -0
- package/build/shared/constants.js +13 -1
- package/build/shared/errors/BadGatewayError.js +1 -0
- package/build/shared/errors/BadRequestError.js +1 -0
- package/build/shared/errors/ErrorCode.js +2 -0
- package/build/shared/errors/ErrorCollection.js +5 -2
- package/build/shared/errors/ForbiddenError.js +1 -0
- package/build/shared/errors/GatewayTimeoutError.js +1 -0
- package/build/shared/errors/ILoggerStack.js +1 -0
- package/build/shared/errors/MethodNotAllowedError.js +1 -0
- package/build/shared/errors/NetworkError.js +22 -0
- package/build/shared/errors/PayloadTooLargeError.js +1 -0
- package/build/shared/errors/PaymentRequiredError.js +1 -0
- package/build/shared/errors/ServiceUnavailableError.js +1 -0
- package/build/shared/errors/UnauthorizedError.js +1 -0
- package/build/shared/errors/baseError.js +35 -1
- package/build/shared/errors/codes.js +1 -0
- package/build/shared/errors/conflict.js +1 -0
- package/build/shared/errors/databaseConnectError.js +1 -0
- package/build/shared/errors/databaseQueryError.js +1 -0
- package/build/shared/errors/databaseRead.js +1 -0
- package/build/shared/errors/databaseWrite.js +1 -0
- package/build/shared/errors/exportError.js +1 -0
- package/build/shared/errors/fileRead.js +1 -0
- package/build/shared/errors/fileWrite.js +1 -0
- package/build/shared/errors/importError.js +1 -0
- package/build/shared/errors/index.js +34 -27
- package/build/shared/errors/inputOutputError.js +1 -0
- package/build/shared/errors/internalServerError.js +1 -0
- package/build/shared/errors/invalidArgument.js +1 -0
- package/build/shared/errors/missingArgument.js +1 -0
- package/build/shared/errors/notImplementedError.js +1 -0
- package/build/shared/errors/process.js +1 -0
- package/build/shared/errors/resourceNotFound.js +1 -0
- package/build/shared/errors/smtpConnectError.js +1 -0
- package/build/shared/errors/timeoutError.js +1 -0
- package/build/shared/helper/BaseContext.js +1 -0
- package/build/shared/helper/HttpStatusCode.js +1 -0
- package/build/shared/helper/createQuerySchema.js +1 -0
- package/build/shared/helper/logger/ILogEntry.js +1 -0
- package/build/shared/helper/logger/TLogLevel.js +1 -0
- package/build/shared/helper/logger/index.js +4 -2
- package/build/shared/helper/objectSizeValidator.js +3 -1
- package/build/shared/helper/rest/NumberRange.js +1 -0
- package/build/shared/helper/rest/array.js +19 -0
- package/build/shared/helper/rest/boolean.js +8 -2
- package/build/shared/helper/rest/index.js +13 -9
- package/build/shared/helper/rest/limit.js +3 -1
- package/build/shared/helper/rest/operations.js +4 -3
- package/build/shared/helper/rest/query-string/decode-uri-component.js +82 -0
- package/build/shared/helper/rest/query-string/index.js +308 -0
- package/build/shared/helper/rest/query-string/splitOnFirst.js +21 -0
- package/build/shared/helper/rest/query-string/strictUriEncode.js +7 -0
- package/build/shared/helper/rest/query.js +0 -0
- package/build/shared/helper/rest/skip.js +3 -1
- package/build/shared/helper/rest/sort.js +5 -2
- package/build/shared/interfaces/BatchOperation.js +13 -5
- package/build/shared/interfaces/IApiKey.js +28 -0
- package/build/shared/interfaces/IEndpointTranslationSettings.js +32 -0
- package/build/shared/interfaces/IFunctionInstanceParameters.js +15 -0
- package/build/shared/interfaces/IHandoverRequestStatus.js +3 -0
- package/build/shared/interfaces/IHttpRequest.js +3 -0
- package/build/shared/interfaces/IOrganisation.js +51 -0
- package/build/shared/interfaces/IProfile.js +5 -1
- package/build/shared/interfaces/IProfileSchema.js +10 -2
- package/build/shared/interfaces/ISessionScope.js +3 -0
- package/build/shared/interfaces/TEntrypointType.js +5 -0
- package/build/shared/interfaces/TFunctionInstanceStatus.js +10 -0
- package/build/shared/interfaces/TFunctionInstanceTrigger.js +8 -0
- package/build/shared/interfaces/alexa/ISkill.js +1 -0
- package/build/shared/interfaces/alexa/index.js +2 -1
- package/build/shared/interfaces/amqpInterface.js +28 -6
- package/build/shared/interfaces/analytics/IAnalyticsEndpointMeta.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsFlowHistoryData.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsFlowMeta.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsLocaleMeta.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsSnapshotMeta.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +196 -44
- package/build/shared/interfaces/analytics/IAnalyticsStepData.js +3 -0
- package/build/shared/interfaces/analytics/IStepEvent.js +46 -0
- package/build/shared/interfaces/analytics/TAnalyticsMode.js +10 -0
- package/build/shared/interfaces/analytics/TAnalyticsSource.js +7 -0
- package/build/shared/interfaces/analytics/TAnalyticsType.js +5 -0
- package/build/shared/interfaces/analytics/index.js +2 -1
- package/build/shared/interfaces/cognigySlots.js +1 -0
- package/build/shared/interfaces/debugEvents/IErrorEventPayload.js +3 -0
- package/build/shared/interfaces/debugEvents/INluWarningEventPayload.js +3 -0
- package/build/shared/interfaces/debugEvents/TDebugEndpointEvent.js +21 -0
- package/build/shared/interfaces/debugEvents/TDebugEventType.js +4 -3
- package/build/shared/interfaces/debugEvents/TSessionStateEmitParams.js +3 -0
- package/build/shared/interfaces/handover.js +126 -3
- package/build/shared/interfaces/journeys/IJourney.js +5 -3
- package/build/shared/interfaces/journeys/IJourneyProgress.js +4 -4
- package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +1 -0
- package/build/shared/interfaces/journeys/index.js +8 -7
- package/build/shared/interfaces/license.js +34 -0
- package/build/shared/interfaces/license.js.map +1 -0
- package/build/shared/interfaces/management/IVendor.js +3 -0
- package/build/shared/interfaces/messageAPI/ai.js +15 -0
- package/build/shared/interfaces/messageAPI/endpoints.js +328 -14
- package/build/shared/interfaces/messageAPI/nlp.js +3 -0
- package/build/shared/interfaces/resources/IAuditEvent.js +67 -27
- package/build/shared/interfaces/resources/IChart.js +14 -3
- package/build/shared/interfaces/resources/IChartNode.js +105 -5
- package/build/shared/interfaces/resources/IConnection.js +2 -1
- package/build/shared/interfaces/resources/IConnectionSchema.js +2 -0
- package/build/shared/interfaces/resources/IEndpoint.js +23 -7
- package/build/shared/interfaces/resources/IEntityMeta.js +1 -0
- package/build/shared/interfaces/resources/IExtension.js +5 -1
- package/build/shared/interfaces/resources/IFile.js +1 -0
- package/build/shared/interfaces/resources/IFlow.js +26 -5
- package/build/shared/interfaces/resources/IFlowState.js +14 -2
- package/build/shared/interfaces/resources/IFunction.js +28 -0
- package/build/shared/interfaces/resources/IFunctionInstance.js +30 -0
- package/build/shared/interfaces/resources/IGraphResource.js +3 -0
- package/build/shared/interfaces/resources/ILexicon.js +9 -2
- package/build/shared/interfaces/resources/ILexiconEntry.js +2 -1
- package/build/shared/interfaces/resources/ILexiconKeyphrase.js +2 -1
- package/build/shared/interfaces/resources/ILexiconSlot.js +3 -2
- package/build/shared/interfaces/resources/ILocale.js +3 -3
- package/build/shared/interfaces/resources/INLUConnector.js +17 -4
- package/build/shared/interfaces/resources/INLUTransformerFunction.js +1 -0
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +190 -51
- package/build/shared/interfaces/resources/IOptionsResolverFunction.js +18 -0
- package/build/shared/interfaces/resources/IPackage.js +25 -0
- package/build/shared/interfaces/resources/IPlaybook.js +3 -1
- package/build/shared/interfaces/resources/IPlaybookRun.js +61 -0
- package/build/shared/interfaces/resources/IProject.js +14 -0
- package/build/shared/interfaces/resources/IProjectGraph.js +3 -0
- package/build/shared/interfaces/resources/ISlotFiller.js +85 -0
- package/build/shared/interfaces/resources/ISnapshot.js +16 -3
- package/build/shared/interfaces/resources/ISnippet.js +14 -5
- package/build/shared/interfaces/resources/ITemplateConfiguration.js +1 -0
- package/build/shared/interfaces/resources/ITrackAnalyticsStepsArguments.js +3 -0
- package/build/shared/interfaces/resources/TNLUConnectorType.js +3 -1
- package/build/shared/interfaces/resources/TResourceType.js +94 -45
- package/build/shared/interfaces/resources/TRestChannelType.js +29 -2
- package/build/shared/interfaces/resources/TSlotFillerType.js +24 -0
- package/build/shared/interfaces/resources/TSocketChannelType.js +6 -1
- package/build/shared/interfaces/resources/TWebhookChannelType.js +18 -7
- package/build/shared/interfaces/resources/chart/IChartExecutable.js +12 -4
- package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +11 -5
- package/build/shared/interfaces/resources/chart/IUndoRedoAction.js +0 -34
- package/build/shared/interfaces/resources/endpoints/sunshineConversations/ISunshineConversationsV2.js +3 -0
- package/build/shared/interfaces/resources/intent/IDefaultReply.js +10 -4
- package/build/shared/interfaces/resources/intent/IIntent.js +45 -4
- package/build/shared/interfaces/resources/intent/IIntentFeedbackReport.js +76 -0
- package/build/shared/interfaces/resources/intent/IIntentRelation.js +2 -1
- package/build/shared/interfaces/resources/intent/IIntentTrainGroup.js +30 -1
- package/build/shared/interfaces/resources/intent/ILearningSentence.js +2 -1
- package/build/shared/interfaces/resources/intent/ISentence.js +37 -13
- package/build/shared/interfaces/resources/intent/ISentenceFeedbackReport.js +67 -0
- package/build/shared/interfaces/resources/intent/ITrainGroupFeedbackReport.js +55 -0
- package/build/shared/interfaces/resources/projectTemplates.js +1 -0
- package/build/shared/interfaces/resources/settings/IAgentSettings.js +56 -0
- package/build/shared/interfaces/resources/settings/IFlowSettings.js +19 -0
- package/build/shared/interfaces/resources/settings/IFullSettings.js +3 -0
- package/build/shared/interfaces/resources/settings/ISharedSettings.js +50 -0
- package/build/shared/interfaces/resources/settings/index.js +13 -0
- package/build/shared/interfaces/restAPI/administration/identityProviders/v2.0/IConfigureIdentityProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/identityProviders/v2.0/IResetIdentityProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/identityProviders/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IReadLiveAgentAccountRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IReadProjectInboxRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/ISetupCognigyLiveAgentInboxRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/ISetupCognigyLiveAgentRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/administration/passwordreset/v2.0/IChangePasswordRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IAddProjectMemberRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IAddProjectToUserRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IAddRoleToMemberRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IAddRoleToUserRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IApiKeyIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IApiKey_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/ICreateApiKeyRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/ICreateUserRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IDeleteApiKeyMeRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IDeleteUserRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IDeprecatePasswordRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IIndexApiKeysMeRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IIndexLoginAttemptsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IIndexProjectMembers_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IIndexUsersRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/ILoginAttemptIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/ILoginAttempt_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/ILogoutUserRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IProjectMemberIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IProjectMember_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IReadLastLoginAttemptRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IReadProjectMemberRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IReadUserAclMeRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IReadUserMeRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IReadUserRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IRemoveProjectFromUserRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IRemoveProjectMemberRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IRemoveRoleFromMemberRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IRemoveRoleFromUserRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IResetFailedLoginAttemptsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IUpdateProjectMemberRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IUpdateUserMeRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IUpdateUserRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IUserAcl_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IUserIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IUserUpdate_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IUser_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/analytics/IDeleteAnalyticsRecordsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/analytics/IUpdateAnalyticsRecordProperties_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/analytics/IUpdateAnalyticsRecordsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/authentication/IGetRealtimeTokenRest.js +3 -0
- package/build/shared/interfaces/restAPI/authentication/IHandleAmazonAccessTokenFromAuthCodeRest.js +3 -0
- package/build/shared/interfaces/restAPI/authentication/IRedirectToAmazonLoginRest.js +3 -0
- package/build/shared/interfaces/restAPI/authentication/IWebfingerRest.js +4 -0
- package/build/shared/interfaces/restAPI/authentication/index.js +3 -0
- package/build/shared/interfaces/restAPI/insights/IAnalyticsQueryFilter_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/TAnalyticsQueryFilterOperator_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/messages/IGenerateMessagesRest_2_0.js +5 -0
- package/build/shared/interfaces/restAPI/insights/messages/ILoadMessagesReportByQueryHashResponse_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/messages/ILoadMessagesReportByQueryHashRestData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/messages/ITopNMessages_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportResponse_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportRest_2_0.js +41 -0
- package/build/shared/interfaces/restAPI/insights/reports/ILoadReportByQueryHashResponse_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/reports/ILoadReportByQueryHashRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/IGenerateStepReportRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/IIndexStepsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/ILoadStepReportByQueryHashResponse_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/ILoadStepReportByQueryHashRestData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/IStepIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/IStepReport_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/IStep_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/transcripts/IGenerateTranscriptsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/transcripts/ILoadTranscriptsReportByQueryHashResponse_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/transcripts/ILoadTranscriptsReportByQueryHashRestData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/transcripts/IStepPath_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/organisations/v2.0/ICreateApiKeyRestManagement_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/organisations/v2.0/ICreateOrganisationRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/management/organisations/v2.0/IEnforcePasswordPolicyRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/organisations/v2.0/IIndexOrganisationsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/organisations/v2.0/IOrganisationIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/organisations/v2.0/IOrganisation_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/organisations/v2.0/IReadOrganisationRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/organisations/v2.0/IUpdateOrganisationRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/organisations/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/management/system/v2.0/ICreateSystemMessage_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/system/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/management/user/v2.0/ICreateUserRestManagement_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/user/v2.0/IDeleteUserRestManagement_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/user/v2.0/IImpersonateUserRestManagement_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/user/v2.0/IIndexUsersRestManagement_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/user/v2.0/IReadUserRestManagement_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/user/v2.0/IUpdateUserRestManagement_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/user/v2.0/IUserManagementIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/user/v2.0/IUserManagement_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/user/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/management/vendor/v2.0/IGetBillingInformationRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/vendor/v2.0/IReadVendorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/vendor/v2.0/IVendor_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/management/vendor/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v2.0/IConversationCounterAggregatedValue_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v2.0/IGetConversationCounterOrganisationRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v2.0/IGetConversationCounterRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/IConversationData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/IConversationSession_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/IDeleteConversationRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/IIndexConversationsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/IReadConversationRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/TAnalyticsSource_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/TAnalyticsType_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/TAbstractTaskData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/ICancelTaskRest_2_1.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/IIndexTasksRest_2_1.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/IReadTaskRest_2_1.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/ITaskIndexItem_2_1.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/ITask_2_1.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/ISearchChartNodesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/IBatchConnectionsRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IBatchEndpointsRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/ICreateEndpointRest_2_0.js +0 -1
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/IUpdateExtensionPackageRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/IUpdateExtensionRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/IBatchFlowsRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/ICreateFlowFromChildrenRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/feedbackReports/IIntentFeedbackReport_2_0.js +15 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/feedbackReports/ISentenceFeedbackReport_2_0.js +10 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/feedbackReports/ITrainGroupFeedbackReport_2_0.js +8 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IBatchIntentsRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/ITrainYesNoIntentsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/ICreateSentenceRest_2_0.js +0 -1
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IIndexSentencesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IFlowSettings_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IReadFlowSettingsRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IUpdateFlowSettingsRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/IBatchSlotFillersRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/ICreateSlotFillerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/IDeleteSlotFillerRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/IIndexSlotFillersRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/IReadSlotFillerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/ISlotFillerIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/ISlotFiller_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/IUpdateSlotFillerRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IBatchFlowStatesRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/ICreateFunctionRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IDeleteFunctionRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IFunctionIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IFunctionInstanceIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IFunctionInstance_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IFunction_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IIndexFunctionInstancesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IIndexFunctionsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IReadFunctionInstanceRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IReadFunctionRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IStopFunctionInstanceRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/ITriggerFunctionRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/IUpdateFunctionRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/TFunctionInstanceStatus_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/TFunctionInstanceTrigger_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/function/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IBatchLexiconSlotsRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IBatchLexiconsRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IComposeLexiconDownloadLinkRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/TNLULanguage_2_0.js +9 -1
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/IBatchNLUConnectorsRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +4 -1
- package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/IOptionsResolverRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/IComposePackageDownloadLinkRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/IConflict_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/ICreatePackageRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/IDeletePackageRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/IIndexPackagesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/IMergePackageRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/IPackageIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/IPackage_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/IReadPackageRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/IStrategy_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/IUploadPackageRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/package/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IBatchPlaybooksRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookRunRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IIndexPlaybookRunsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookRunIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookRun_2_0.js +7 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IReadPlaybookRunRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ISchedulePlaybookRunRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/project/v2.0/IGraphProjectRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/project/v2.0/IGraph_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IAgentSettings_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IReadAgentSettingsRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ISharedSettings_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IUpdateAgentSettingsRest_2_0.js +4 -0
- package/build/shared/interfaces/rule.js +1 -0
- package/build/shared/interfaces/security/IACL.js +17 -0
- package/build/shared/interfaces/security/IConversationCounterAggregatedValue.js +3 -0
- package/build/shared/interfaces/security/IIdentityProvider.js +129 -0
- package/build/shared/interfaces/security/ILoginAttempt.js +3 -0
- package/build/shared/interfaces/security/IOperation.js +10 -0
- package/build/shared/interfaces/security/IOrganisactionScope.js +3 -0
- package/build/shared/interfaces/security/IPermission.js +100 -0
- package/build/shared/interfaces/security/IProjectMember.js +3 -0
- package/build/shared/interfaces/security/IProjectScope.js +3 -0
- package/build/shared/interfaces/security/IProjectsScope.js +3 -0
- package/build/shared/interfaces/security/IRole.js +112 -0
- package/build/shared/interfaces/security/IUserMeta.js +3 -0
- package/build/shared/interfaces/security/IUserRole.js +3 -0
- package/build/shared/interfaces/security/index.js +19 -0
- package/build/shared/interfaces/sessionstate/ISessionState.js +3 -0
- package/build/shared/interfaces/sessionstate/index.js +3 -0
- package/build/shared/interfaces/sunshineConversations.js +3 -0
- package/build/shared/interfaces/taskmanager/ITask.js +5 -16
- package/build/shared/interfaces/taskmanager/TTaskProgress.js +3 -0
- package/build/shared/interfaces/taskmanager/TTaskStatus.js +1 -0
- package/build/shared/interfaces/taskmanager/TTerminatedTaskStatus.js +5 -0
- package/build/shared/interfaces/taskmanager/index.js +5 -0
- package/build/shared/interfaces/trainer/ITrainerRecord.js +45 -2
- package/build/shared/interfaces/trainer/THandleAction.js +1 -0
- package/build/shared/interfaces/trainer/index.js +4 -3
- package/build/shared/interfaces/transformers/ITransformerFunction.js +2 -1
- package/build/shared/interfaces/transformers/index.js +2 -1
- package/build/shared/interfaces/translation.js +11 -0
- package/build/shared/interfaces/types/ICreateChartNodeBasicNodesData.js +3 -0
- package/build/shared/interfaces/types/TAbstractTaskData.js +3 -0
- package/build/shared/interfaces/types/TCSSColorName.js +1 -0
- package/build/shared/interfaces/types/TCognigyColorName.js +1 -0
- package/build/shared/interfaces/types/TNLULanguage.js +16 -12
- package/build/shared/interfaces/types/TTimezone.js +1200 -0
- package/build/shared/interfaces/user.js +29 -0
- package/build/shared/json-schema.js +20 -0
- package/build/shared/typescriptHelper.js +3 -0
- package/package.json +16 -27
- package/tsconfig.types.json +25 -0
- package/types/index.d.ts +16149 -0
- package/build/GenericAPIFn.d.ts +0 -3
- package/build/GenericUploadFn.d.ts +0 -5
- package/build/IRestApiClientConfig.d.ts +0 -9
- package/build/PluginBase.d.ts +0 -34
- package/build/RestAPIClient.d.ts +0 -13
- package/build/apigroups/AdministrationAPIGroup_2_0.d.ts +0 -15
- package/build/apigroups/ExternalAPIGroup_2_0.d.ts +0 -10
- package/build/apigroups/HandoverAPIGroup_2_0.d.ts +0 -4
- package/build/apigroups/HandoverAPIGroup_2_0.js +0 -8
- package/build/apigroups/IAPIGroupVersionConfiguration.d.ts +0 -8
- package/build/apigroups/MetricsAPIGroup_2_0.d.ts +0 -31
- package/build/apigroups/ResourcesAPIGroup_2_0.d.ts +0 -168
- package/build/apigroups/SessionsAPIGroup_2_0.d.ts +0 -12
- package/build/apigroups/TRestAPIGroupsTypeByConfiguration.d.ts +0 -39
- package/build/apigroups/index.d.ts +0 -8
- package/build/authentication/ApiKeyAuthentication.d.ts +0 -3
- package/build/authentication/ApiKeyAuthentication.js +0 -22
- package/build/authentication/AuthenticationAPI.d.ts +0 -6
- package/build/authentication/IApiKeyAuthentication.d.ts +0 -4
- package/build/authentication/IAuthenticationAdapter.d.ts +0 -5
- package/build/authentication/IAuthenticationConstructor.d.ts +0 -6
- package/build/authentication/IOAuth2Authentication.d.ts +0 -6
- package/build/authentication/IOAuth2InjectionAuthentication.d.ts +0 -4
- package/build/authentication/IOAuth2InjectionAuthentication.js +0 -3
- package/build/authentication/IOauth2TokenData.d.ts +0 -7
- package/build/authentication/IOauth2TokenData.js +0 -3
- package/build/authentication/OAuth2Authentication.d.ts +0 -3
- package/build/authentication/OAuth2Authentication.js +0 -28
- package/build/authentication/OAuth2InjectionAuthentication.d.ts +0 -3
- package/build/authentication/OAuth2InjectionAuthentication.js +0 -22
- package/build/authentication/TAuthenticationParameter.d.ts +0 -4
- package/build/authentication/TAuthenticationType.d.ts +0 -1
- package/build/authentication/TAuthenticationType.js +0 -3
- package/build/connector/AxiosAdapter.d.ts +0 -16
- package/build/connector/IHttpAdapter.d.ts +0 -10
- package/build/connector/IHttpRequest.d.ts +0 -18
- package/build/connector/IHttpResponse.d.ts +0 -6
- package/build/connector/THttpLib.d.ts +0 -1
- package/build/connector/TMethod.d.ts +0 -1
- package/build/connector/index.d.ts +0 -6
- package/build/index.d.ts +0 -4
- package/build/shared/charts/createNodeDescriptor.d.ts +0 -12
- package/build/shared/charts/descriptors/allFields.d.ts +0 -1
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/aggregate.d.ts +0 -15
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/find.d.ts +0 -19
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/findOne.d.ts +0 -18
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/index.d.ts +0 -4
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/insert.d.ts +0 -15
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/mongoDBConnection.d.ts +0 -10
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/remove.d.ts +0 -15
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateMany.d.ts +0 -17
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateOne.d.ts +0 -17
- package/build/shared/charts/descriptors/connectionNodes/smtp/index.d.ts +0 -4
- package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.d.ts +0 -14
- package/build/shared/charts/descriptors/connectionNodes/smtp/smtpConnection.d.ts +0 -14
- package/build/shared/charts/descriptors/connectionNodes/sql/index.d.ts +0 -4
- package/build/shared/charts/descriptors/connectionNodes/sql/runQuery.d.ts +0 -1
- package/build/shared/charts/descriptors/connectionNodes/sql/runStoredProcedure.d.ts +0 -1
- package/build/shared/charts/descriptors/connectionNodes/sql/runTransaction.d.ts +0 -1
- package/build/shared/charts/descriptors/connectionNodes/sql/sqlConnection.d.ts +0 -14
- package/build/shared/charts/descriptors/data/addToContext.d.ts +0 -7
- package/build/shared/charts/descriptors/data/code.d.ts +0 -13
- package/build/shared/charts/descriptors/data/copyDataToContext.d.ts +0 -7
- package/build/shared/charts/descriptors/data/copySlotsToContext.d.ts +0 -11
- package/build/shared/charts/descriptors/data/index.d.ts +0 -6
- package/build/shared/charts/descriptors/data/removeFromContext.d.ts +0 -7
- package/build/shared/charts/descriptors/data/resetContext.d.ts +0 -7
- package/build/shared/charts/descriptors/end.d.ts +0 -1
- package/build/shared/charts/descriptors/index.d.ts +0 -7
- package/build/shared/charts/descriptors/logic/checkFrustration.d.ts +0 -7
- package/build/shared/charts/descriptors/logic/checkFrustration.js +0 -81
- package/build/shared/charts/descriptors/logic/executeFlow.d.ts +0 -16
- package/build/shared/charts/descriptors/logic/goTo.d.ts +0 -7
- package/build/shared/charts/descriptors/logic/if/else.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/if/if.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/if/then.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/index.d.ts +0 -21
- package/build/shared/charts/descriptors/logic/interval/elseInterval.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/interval/interval.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/interval/onInterval.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/once/afterwards.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/once/onFirstExecution.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/once/once.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/resetState.d.ts +0 -7
- package/build/shared/charts/descriptors/logic/setState.d.ts +0 -7
- package/build/shared/charts/descriptors/logic/sleep.d.ts +0 -7
- package/build/shared/charts/descriptors/logic/stop.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/switch/case.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/switch/default.d.ts +0 -1
- package/build/shared/charts/descriptors/logic/switch/switch.d.ts +0 -2
- package/build/shared/charts/descriptors/logic/think.d.ts +0 -7
- package/build/shared/charts/descriptors/logic/wait.d.ts +0 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.d.ts +0 -7
- package/build/shared/charts/descriptors/message/checkChannelChange/onNo.d.ts +0 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/onYes.d.ts +0 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/unchanged.d.ts +0 -1
- package/build/shared/charts/descriptors/message/datePicker.d.ts +0 -35
- package/build/shared/charts/descriptors/message/index.d.ts +0 -12
- package/build/shared/charts/descriptors/message/question/onAnswer.d.ts +0 -1
- package/build/shared/charts/descriptors/message/question/onQuestion.d.ts +0 -1
- package/build/shared/charts/descriptors/message/question/optionalQuestion.d.ts +0 -1
- package/build/shared/charts/descriptors/message/question/question.d.ts +0 -1
- package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.d.ts +0 -15
- package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.d.ts +0 -4
- package/build/shared/charts/descriptors/message/say.d.ts +0 -1
- package/build/shared/charts/descriptors/message/sendImage.d.ts +0 -1
- package/build/shared/charts/descriptors/message/sendText.d.ts +0 -1
- package/build/shared/charts/descriptors/nlu/addLexiconKeyphrase.d.ts +0 -7
- package/build/shared/charts/descriptors/nlu/executeCognigyNLU.d.ts +0 -7
- package/build/shared/charts/descriptors/nlu/index.d.ts +0 -3
- package/build/shared/charts/descriptors/nlu/regexSlotFiller.d.ts +0 -16
- package/build/shared/charts/descriptors/profile/activateProfile.d.ts +0 -7
- package/build/shared/charts/descriptors/profile/blindMode.d.ts +0 -7
- package/build/shared/charts/descriptors/profile/completeGoal.d.ts +0 -8
- package/build/shared/charts/descriptors/profile/deactivateProfile.d.ts +0 -7
- package/build/shared/charts/descriptors/profile/deleteProfile.d.ts +0 -7
- package/build/shared/charts/descriptors/profile/index.d.ts +0 -7
- package/build/shared/charts/descriptors/profile/mergeProfile.d.ts +0 -7
- package/build/shared/charts/descriptors/profile/updateProfile.d.ts +0 -7
- package/build/shared/charts/descriptors/requiredFields.d.ts +0 -1
- package/build/shared/charts/descriptors/sendEmail.d.ts +0 -7
- package/build/shared/charts/descriptors/sendEmail.js +0 -117
- package/build/shared/charts/descriptors/service/handover.d.ts +0 -17
- package/build/shared/charts/descriptors/service/httpRequest.d.ts +0 -76
- package/build/shared/charts/descriptors/service/index.d.ts +0 -2
- package/build/shared/charts/descriptors/start.d.ts +0 -1
- package/build/shared/charts/interfaces/IChart.d.ts +0 -5
- package/build/shared/charts/interfaces/IEdge.d.ts +0 -4
- package/build/shared/charts/interfaces/index.d.ts +0 -2
- package/build/shared/constants.d.ts +0 -6
- package/build/shared/errorHandler.d.ts +0 -13
- package/build/shared/errors/BadGatewayError.d.ts +0 -43
- package/build/shared/errors/BadRequestError.d.ts +0 -44
- package/build/shared/errors/ErrorCode.d.ts +0 -29
- package/build/shared/errors/ErrorCollection.d.ts +0 -5
- package/build/shared/errors/ForbiddenError.d.ts +0 -43
- package/build/shared/errors/GatewayTimeoutError.d.ts +0 -43
- package/build/shared/errors/IErrorResponse.d.ts +0 -43
- package/build/shared/errors/ILoggerStack.d.ts +0 -6
- package/build/shared/errors/MethodNotAllowedError.d.ts +0 -43
- package/build/shared/errors/PayloadTooLargeError.d.ts +0 -43
- package/build/shared/errors/PaymentRequiredError.d.ts +0 -44
- package/build/shared/errors/ServiceUnavailableError.d.ts +0 -43
- package/build/shared/errors/UnauthorizedError.d.ts +0 -43
- package/build/shared/errors/baseError.d.ts +0 -43
- package/build/shared/errors/codes.d.ts +0 -25
- package/build/shared/errors/conflict.d.ts +0 -43
- package/build/shared/errors/databaseConnectError.d.ts +0 -8
- package/build/shared/errors/databaseQueryError.d.ts +0 -8
- package/build/shared/errors/databaseRead.d.ts +0 -8
- package/build/shared/errors/databaseWrite.d.ts +0 -8
- package/build/shared/errors/exportError.d.ts +0 -8
- package/build/shared/errors/fileRead.d.ts +0 -8
- package/build/shared/errors/fileWrite.d.ts +0 -8
- package/build/shared/errors/importError.d.ts +0 -14
- package/build/shared/errors/index.d.ts +0 -28
- package/build/shared/errors/inputOutputError.d.ts +0 -8
- package/build/shared/errors/internalServerError.d.ts +0 -43
- package/build/shared/errors/invalidArgument.d.ts +0 -8
- package/build/shared/errors/missingArgument.d.ts +0 -8
- package/build/shared/errors/notImplementedError.d.ts +0 -43
- package/build/shared/errors/process.d.ts +0 -8
- package/build/shared/errors/resourceNotFound.d.ts +0 -43
- package/build/shared/errors/smtpConnectError.d.ts +0 -8
- package/build/shared/errors/timeoutError.d.ts +0 -8
- package/build/shared/helper/BaseContext.d.ts +0 -98
- package/build/shared/helper/HttpStatusCode.d.ts +0 -319
- package/build/shared/helper/createQuerySchema.d.ts +0 -1
- package/build/shared/helper/logger/ILogEntry.d.ts +0 -18
- package/build/shared/helper/logger/ISuggestedMetaInfo.d.ts +0 -12
- package/build/shared/helper/logger/TLogLevel.d.ts +0 -2
- package/build/shared/helper/logger/index.d.ts +0 -8
- package/build/shared/helper/objectSizeValidator.d.ts +0 -9
- package/build/shared/helper/rest/NumberRange.d.ts +0 -15
- package/build/shared/helper/rest/boolean.d.ts +0 -1
- package/build/shared/helper/rest/index.d.ts +0 -7
- package/build/shared/helper/rest/limit.d.ts +0 -1
- package/build/shared/helper/rest/operations.d.ts +0 -2
- package/build/shared/helper/rest/query.d.ts +0 -7
- package/build/shared/helper/rest/skip.d.ts +0 -1
- package/build/shared/helper/rest/sort.d.ts +0 -4
- package/build/shared/interfaces/BatchOperation.d.ts +0 -77
- package/build/shared/interfaces/IProfile.d.ts +0 -26
- package/build/shared/interfaces/IProfileSchema.d.ts +0 -41
- package/build/shared/interfaces/ai.d.ts +0 -303
- package/build/shared/interfaces/alexa/IAccumulatedAlexaResponse.d.ts +0 -13
- package/build/shared/interfaces/alexa/IAlexaCard.d.ts +0 -20
- package/build/shared/interfaces/alexa/IAlexaDirective.d.ts +0 -4
- package/build/shared/interfaces/alexa/IAlexaDisplayDirective.d.ts +0 -5
- package/build/shared/interfaces/alexa/IAlexaDisplayImage.d.ts +0 -5
- package/build/shared/interfaces/alexa/IAlexaDisplayImageSource.d.ts +0 -6
- package/build/shared/interfaces/alexa/IAlexaDisplayListItem.d.ts +0 -8
- package/build/shared/interfaces/alexa/IAlexaDisplayTemplate.d.ts +0 -13
- package/build/shared/interfaces/alexa/IAlexaDisplayText.d.ts +0 -4
- package/build/shared/interfaces/alexa/IAlexaDisplayTextContent.d.ts +0 -6
- package/build/shared/interfaces/alexa/IAlexaEntity.d.ts +0 -7
- package/build/shared/interfaces/alexa/IAlexaNLUConnector.d.ts +0 -11
- package/build/shared/interfaces/alexa/IAlexaObject.d.ts +0 -15
- package/build/shared/interfaces/alexa/IAlexaOutputSpeech.d.ts +0 -14
- package/build/shared/interfaces/alexa/IAlexaRequest.d.ts +0 -11
- package/build/shared/interfaces/alexa/IAlexaRequestBody.d.ts +0 -21
- package/build/shared/interfaces/alexa/IAlexaResponse.d.ts +0 -29
- package/build/shared/interfaces/alexa/IAlexaSlots.d.ts +0 -10
- package/build/shared/interfaces/alexa/IAmazonUser.d.ts +0 -24
- package/build/shared/interfaces/alexa/IRenewTokenError.d.ts +0 -10
- package/build/shared/interfaces/alexa/IRenewTokenSuccess.d.ts +0 -18
- package/build/shared/interfaces/alexa/ISimulationResult.d.ts +0 -35
- package/build/shared/interfaces/alexa/ISkill.d.ts +0 -30
- package/build/shared/interfaces/alexa/ISkillList.d.ts +0 -12
- package/build/shared/interfaces/alexa/IVendor.d.ts +0 -14
- package/build/shared/interfaces/alexa/IVendorList.d.ts +0 -7
- package/build/shared/interfaces/alexa/index.d.ts +0 -26
- package/build/shared/interfaces/amqpInterface.d.ts +0 -129
- package/build/shared/interfaces/analytics/IAnalyticsSourceData.d.ts +0 -9
- package/build/shared/interfaces/analytics/IAnalyticsUserInputData.d.ts +0 -5
- package/build/shared/interfaces/analytics/IBaseAnalyticsData.d.ts +0 -25
- package/build/shared/interfaces/analytics/IBaseAnalyticsSourceData.d.ts +0 -17
- package/build/shared/interfaces/analytics/TAnalyticsSource.d.ts +0 -1
- package/build/shared/interfaces/analytics/TAnalyticsType.d.ts +0 -1
- package/build/shared/interfaces/analytics/index.d.ts +0 -6
- package/build/shared/interfaces/cognigySlots.d.ts +0 -95
- package/build/shared/interfaces/debugEvents/IActiveEntrypointsChangedEventPayload.d.ts +0 -7
- package/build/shared/interfaces/debugEvents/IContextChangedEventPayload.d.ts +0 -5
- package/build/shared/interfaces/debugEvents/IFinalPingEventPayload.d.ts +0 -5
- package/build/shared/interfaces/debugEvents/IInputChangedEventPayload.d.ts +0 -5
- package/build/shared/interfaces/debugEvents/INodeErrorEventPayload.d.ts +0 -5
- package/build/shared/interfaces/debugEvents/INodeExecutedEventPayload.d.ts +0 -4
- package/build/shared/interfaces/debugEvents/IOutputEventPayload.d.ts +0 -7
- package/build/shared/interfaces/debugEvents/IProfileChangedEventPayload.d.ts +0 -5
- package/build/shared/interfaces/debugEvents/ISwitchedFlowEventPayload.d.ts +0 -4
- package/build/shared/interfaces/debugEvents/TDebugEventPayload.d.ts +0 -10
- package/build/shared/interfaces/debugEvents/TDebugEventType.d.ts +0 -2
- package/build/shared/interfaces/dialogflowInterface.d.ts +0 -236
- package/build/shared/interfaces/endpointInterface.d.ts +0 -888
- package/build/shared/interfaces/handover.d.ts +0 -198
- package/build/shared/interfaces/journeys/IJourney.d.ts +0 -32
- package/build/shared/interfaces/journeys/IJourneyProgress.d.ts +0 -26
- package/build/shared/interfaces/journeys/IJourneyTrackEvent.d.ts +0 -122
- package/build/shared/interfaces/journeys/index.d.ts +0 -3
- package/build/shared/interfaces/messageAPI/ai.d.ts +0 -566
- package/build/shared/interfaces/messageAPI/endpoints.d.ts +0 -644
- package/build/shared/interfaces/resources/IAuditEvent.d.ts +0 -129
- package/build/shared/interfaces/resources/IChart.d.ts +0 -36
- package/build/shared/interfaces/resources/IChartNode.d.ts +0 -48
- package/build/shared/interfaces/resources/IConnection.d.ts +0 -34
- package/build/shared/interfaces/resources/IConnectionSchema.d.ts +0 -25
- package/build/shared/interfaces/resources/IEndpoint.d.ts +0 -68
- package/build/shared/interfaces/resources/IEndpointDisplayName.d.ts +0 -5
- package/build/shared/interfaces/resources/IEntity.d.ts +0 -6
- package/build/shared/interfaces/resources/IEntityMeta.d.ts +0 -48
- package/build/shared/interfaces/resources/IExtension.d.ts +0 -40
- package/build/shared/interfaces/resources/IFile.d.ts +0 -26
- package/build/shared/interfaces/resources/IFlow.d.ts +0 -40
- package/build/shared/interfaces/resources/IFlowLogicSettingsV2.d.ts +0 -35
- package/build/shared/interfaces/resources/IFlowState.d.ts +0 -20
- package/build/shared/interfaces/resources/IIntent.d.ts +0 -28
- package/build/shared/interfaces/resources/ILexicon.d.ts +0 -13
- package/build/shared/interfaces/resources/ILexiconEntry.d.ts +0 -18
- package/build/shared/interfaces/resources/ILexiconKeyphrase.d.ts +0 -15
- package/build/shared/interfaces/resources/ILexiconSlot.d.ts +0 -13
- package/build/shared/interfaces/resources/ILocale.d.ts +0 -17
- package/build/shared/interfaces/resources/IMongoStoredBuffer.d.ts +0 -7
- package/build/shared/interfaces/resources/INLUConnector.d.ts +0 -130
- package/build/shared/interfaces/resources/INLUTransformerFunction.d.ts +0 -37
- package/build/shared/interfaces/resources/INodeDescriptorSet.d.ts +0 -153
- package/build/shared/interfaces/resources/IPlaybook.d.ts +0 -91
- package/build/shared/interfaces/resources/IProject.d.ts +0 -14
- package/build/shared/interfaces/resources/IResourceInSnapshotItem.d.ts +0 -9
- package/build/shared/interfaces/resources/ISerializedBuffer.d.ts +0 -4
- package/build/shared/interfaces/resources/ISettings.d.ts +0 -59
- package/build/shared/interfaces/resources/ISettings.js +0 -72
- package/build/shared/interfaces/resources/ISnapshot.d.ts +0 -16
- package/build/shared/interfaces/resources/ISnippet.d.ts +0 -26
- package/build/shared/interfaces/resources/ITemplateConfiguration.d.ts +0 -10
- package/build/shared/interfaces/resources/TNLUConnectorType.d.ts +0 -5
- package/build/shared/interfaces/resources/TResourceType.d.ts +0 -59
- package/build/shared/interfaces/resources/TRestChannelType.d.ts +0 -5
- package/build/shared/interfaces/resources/TSocketChannelType.d.ts +0 -5
- package/build/shared/interfaces/resources/TWebhookChannelType.d.ts +0 -5
- package/build/shared/interfaces/resources/chart/IChartExecutable.d.ts +0 -10
- package/build/shared/interfaces/resources/chart/IChartExecutableNode.d.ts +0 -35
- package/build/shared/interfaces/resources/chart/INodeExecutionAPI.d.ts +0 -74
- package/build/shared/interfaces/resources/chart/INodeExecutionCognigyObject.d.ts +0 -5
- package/build/shared/interfaces/resources/chart/INodeToExecute.d.ts +0 -8
- package/build/shared/interfaces/resources/chart/IPartialChart.d.ts +0 -7
- package/build/shared/interfaces/resources/chart/IUndoRedoAction.d.ts +0 -20
- package/build/shared/interfaces/resources/chart/nodeFunctions/IIfNodeParams.d.ts +0 -7
- package/build/shared/interfaces/resources/chart/nodeFunctions/INodeFunction.d.ts +0 -10
- package/build/shared/interfaces/resources/chart/nodeFunctions/ISayParams.d.ts +0 -18
- package/build/shared/interfaces/resources/chart/nodeFunctions/ISendTextNodeParams.d.ts +0 -9
- package/build/shared/interfaces/resources/flow.d.ts +0 -172
- package/build/shared/interfaces/resources/flow.js +0 -3
- package/build/shared/interfaces/resources/intent/IDefaultReply.d.ts +0 -22
- package/build/shared/interfaces/resources/intent/IIntent.d.ts +0 -39
- package/build/shared/interfaces/resources/intent/IIntentRelation.d.ts +0 -13
- package/build/shared/interfaces/resources/intent/IIntentTrainGroup.d.ts +0 -19
- package/build/shared/interfaces/resources/intent/ILearningSentence.d.ts +0 -17
- package/build/shared/interfaces/resources/intent/ISentence.d.ts +0 -38
- package/build/shared/interfaces/resources/intents.d.ts +0 -77
- package/build/shared/interfaces/resources/oauth.d.ts +0 -47
- package/build/shared/interfaces/resources/projectTemplates.d.ts +0 -71
- package/build/shared/interfaces/restAPI/administration/auditevent/v2.0/IAuditEventIndexItem_2_0.d.ts +0 -43
- package/build/shared/interfaces/restAPI/administration/auditevent/v2.0/IAuditEvent_2_0.d.ts +0 -52
- package/build/shared/interfaces/restAPI/administration/auditevent/v2.0/IIndexAuditEventsRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/administration/auditevent/v2.0/IReadAuditEventRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/administration/auditevent/v2.0/index.d.ts +0 -4
- package/build/shared/interfaces/restAPI/administration/passwordreset/v2.0/IRequestPasswordResetRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/administration/passwordreset/v2.0/IResetPasswordRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/administration/passwordreset/v2.0/IValidatePasswordResetTokenRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/administration/passwordreset/v2.0/index.d.ts +0 -3
- package/build/shared/interfaces/restAPI/administration/system/v2.0/IGetSystemLicenseState_2_0.d.ts +0 -5
- package/build/shared/interfaces/restAPI/administration/system/v2.0/IGetSystemMessage_2_0.d.ts +0 -6
- package/build/shared/interfaces/restAPI/administration/system/v2.0/ISetSystemLicense_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/administration/system/v2.0/index.d.ts +0 -3
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/IAlexaSkill_2_0.d.ts +0 -58
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/IAmazonUser_2_0.d.ts +0 -36
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/ICreateAuthenticatedAmazonUserRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/IDeleteAmazonAccountRest_2_0.d.ts +0 -4
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/IDeployAlexaEndpointRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/IGetAlexaSkillsRest_2_0.d.ts +0 -4
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/IGetAmazonAccountRest_2_0.d.ts +0 -3
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/IHandleAmazonAccessTokenFromAuthCodeRest_2_0.d.ts +0 -4
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/IHandleAmazonAccessTokenFromAuthCodeRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/IRedirectToAmazonLoginRest_2_0.d.ts +0 -5
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/IRedirectToAmazonLoginRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/external/alexa/v2.0/index.d.ts +0 -7
- package/build/shared/interfaces/restAPI/metrics/logs/v2.0/IIndexLogEntriesRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/metrics/logs/v2.0/ILogEntryIndexItem_2_0.d.ts +0 -32
- package/build/shared/interfaces/restAPI/metrics/logs/v2.0/ILogEntry_2_0.d.ts +0 -32
- package/build/shared/interfaces/restAPI/metrics/logs/v2.0/IReadLogEntryRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/metrics/logs/v2.0/index.d.ts +0 -2
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/ICreateProfileRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IDeleteProfileRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IExportProfileDataRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IGetProfileSchemaRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IIndexProfilesRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IMergeProfilesRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IProfileIndexItem_2_0.d.ts +0 -31
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IProfileSchema_2_0.d.ts +0 -64
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IProfile_2_0.d.ts +0 -82
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IReadProfileRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IRemoveContactIdFromProfileRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IRemoveConversationsOfProfileRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IRemoveProfileDataRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/ISetProfileSchemaRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IUnmergeProfilesRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IUpdateProfileRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/index.d.ts +0 -12
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/ICancelTaskRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/IIndexTasksRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/IReadTaskRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/ITaskIndexItem_2_0.d.ts +0 -58
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/ITask_2_0.d.ts +0 -115
- package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/index.d.ts +0 -4
- package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IBatchTrainerRecordsRest_2_0.d.ts +0 -18
- package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IComposeTrainerRecordsDownloadLinkRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IIndexTrainerRecordsRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IPackageTrainerRecordsRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IReadTrainerRecordRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/ITrainerRecordIndexItem_2_0.d.ts +0 -45
- package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/ITrainerRecord_2_0.d.ts +0 -194
- package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IUploadTrainerRecordsPackageRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/index.d.ts +0 -6
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IAddChartNodeLocalizationRest_2_0.d.ts +0 -15
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IChartNodeIndexItem_2_0.d.ts +0 -53
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IChartNodeRelation_2_0.d.ts +0 -29
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IChartNode_2_0.d.ts +0 -61
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IChart_2_0.d.ts +0 -25
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/ICopyChartNodeRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/ICreateChartNodeRest_2_0.d.ts +0 -21
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/ICutChartNodeRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IDeleteChartNodeRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IGetUndoRedoStepsRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IIndexChartNodesRest_2_0.d.ts +0 -16
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IMoveChartNodeRest_2_0.d.ts +0 -18
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IPasteChartNodeRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IReadChartNodeRest_2_0.d.ts +0 -15
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IReadChartRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IRedoChartRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IRemoveChartNodeLocalizationRest_2_0.d.ts +0 -14
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IUndoChartRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/IUpdateChartNodeRestData_2_0.d.ts +0 -16
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/index.d.ts +0 -15
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/IConnectionField_2_0.d.ts +0 -22
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/IConnectionIndexItem_2_0.d.ts +0 -43
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/IConnection_2_0.d.ts +0 -54
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/ICreateConnectionFieldRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/ICreateConnectionRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/IDeleteConnectionFieldRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/IDeleteConnectionRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/IIndexConnectionsRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/IReadConnectionRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/IUpdateConnectionRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/resources/connection/v2.0/index.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/connectionSchema/v2.0/IConnectionSchemaIndexItem_2_0.d.ts +0 -36
- package/build/shared/interfaces/restAPI/resources/connectionSchema/v2.0/IConnectionSchema_2_0.d.ts +0 -53
- package/build/shared/interfaces/restAPI/resources/connectionSchema/v2.0/IIndexConnectionSchemasRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/connectionSchema/v2.0/index.d.ts +0 -3
- package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/ICreateEndpointRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IDeleteEndpointRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IEndpointIndexItem_2_0.d.ts +0 -36
- package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IEndpoint_2_0.d.ts +0 -365
- package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IIndexEndpointsRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IReadEndpointRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IUpdateEndpointRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/index.d.ts +0 -6
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/IDeleteExtensionRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/IExtensionIndexItem_2_0.d.ts +0 -38
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/IExtension_2_0.d.ts +0 -83
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/IIndexExtensionsRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/IReadExtensionRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/IUploadExtensionRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/index.d.ts +0 -4
- package/build/shared/interfaces/restAPI/resources/file/v2.0/IFile_2_0.d.ts +0 -26
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/IAddFlowLocalizationRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/ICreateFlowRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/IDeleteFlowRest_2_0.d.ts +0 -5
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/IFlowIndexItem_2_0.d.ts +0 -27
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/IFlow_2_0.d.ts +0 -56
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/IIndexFlowsRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/IReadFlowRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/IRemoveFlowLocalizationRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/IUpdateFlowRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/index.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IAddIntentLocalizationRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/ICreateIntentRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IDeleteIntentRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IExportIntentsRest_2_0.d.ts +0 -15
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IImportIntentsRest_2_0.d.ts +0 -14
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IIndexIntentsRest_2_0.d.ts +0 -17
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IIntentIndexItem_2_0.d.ts +0 -40
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IIntent_2_0.d.ts +0 -75
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IReadIntentRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IRemoveIntentLocalizationRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/ITrainIntentsRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IUpdateIntentRest_2_0.d.ts +0 -13
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/index.d.ts +0 -10
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/IDeleteLearningSentenceRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/IIndexLearningSentenceRest_2_0.d.ts +0 -13
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/ILearningSentenceIndexItem_2_0.d.ts +0 -24
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/ILearningSentence_2_0.d.ts +0 -35
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/IReadLearningSentenceRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/index.d.ts +0 -3
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IBatchSentencesRest_2_0.d.ts +0 -15
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/ICreateSentenceRest_2_0.d.ts +0 -13
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IDeleteSentenceRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IIndexSentenceRest_2_0.d.ts +0 -14
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IIndexSentenceRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IReadSentenceRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/ISentenceIndexItem_2_0.d.ts +0 -41
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/ISentence_2_0.d.ts +0 -68
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IUpdateSentenceRest_2_0.d.ts +0 -13
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/index.d.ts +0 -6
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ICreateSettingsRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ICreateSettingsRest_2_0.js +0 -4
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IDeleteSettingsRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IDeleteSettingsRest_2_0.js +0 -4
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IReadSettingsRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IReadSettingsRest_2_0.js +0 -4
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ISettings_2_0.d.ts +0 -1
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ISettings_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IUpdateSettingsRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IUpdateSettingsRest_2_0.js +0 -4
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/index.d.ts +0 -4
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IAddIntentToFlowStateRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/ICreateFlowStateRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IDeleteFlowStateRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IFlowStateIndexItem_2_0.d.ts +0 -42
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IFlowState_2_0.d.ts +0 -46
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IIndexFlowStatesRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IReadFlowStateRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IRemoveIntentFromFlowStateRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IUpdateFlowStateRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/index.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IIndexJourneysRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyIndexItem_2_0.d.ts +0 -40
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyProgress_2_0.d.ts +0 -66
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyStep_2_0.d.ts +0 -45
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyTrackEvents_2_0.d.ts +0 -20
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourney_2_0.d.ts +0 -41
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyProgressRest_2_0.d.ts +0 -5
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/ITrackJourneyEventRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IUpdateSelectedJourneyRest_2_0.d.ts +0 -19
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/index.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IAddKeyphraseToLexiconEntryRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IAddSlotToLexiconEntryRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IBatchLexiconEntriesRest_2_0.d.ts +0 -14
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ICreateLexiconEntryRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ICreateLexiconRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ICreateLexiconSlotRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IDeleteLexiconEntryRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IDeleteLexiconRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IDeleteLexiconSlotRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IExportFromLexiconRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IImportIntoLexiconRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IIndexLexiconEntriesRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IIndexLexiconEntryKeyphrasesRest_2_0.d.ts +0 -14
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IIndexLexiconKeyphrasesRest_2_0.d.ts +0 -14
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IIndexLexiconSlotsRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IIndexLexiconsRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconEntryIndexItem_2_0.d.ts +0 -38
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconEntry_2_0.d.ts +0 -47
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconIndexItem_2_0.d.ts +0 -32
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconKeyphraseIndexItem_2_0.d.ts +0 -30
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconKeyphrase_2_0.d.ts +0 -34
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconSlotIndexItem_2_0.d.ts +0 -22
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconSlot_2_0.d.ts +0 -29
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexicon_2_0.d.ts +0 -34
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IReadLexiconEntryRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IReadLexiconRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IRemoveKeyphraseFromLexiconEntryRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IRemoveSlotFromLexiconEntryRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IUpdateLexiconEntryRest_2_0.d.ts +0 -13
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IUpdateLexiconKeyphraseRest_2_0.d.ts +0 -13
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IUpdateLexiconRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IUpdateLexiconSlotRest_2_0.d.ts +0 -13
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/index.d.ts +0 -26
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/ICreateLocaleRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/IDeleteLocaleRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/IIndexLocalesRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/ILocaleIndexItem_2_0.d.ts +0 -41
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/ILocale_2_0.d.ts +0 -44
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/IReadLocaleRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/IUpdateLocaleRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/TNLULanguage_2_0.d.ts +0 -37
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/index.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/ICreateNLUConnectorRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/IDeleteNLUConnectorRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/IIndexNLUConnectorsRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/INLUConnectorIndexItem_2_0.d.ts +0 -36
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/INLUConnector_2_0.d.ts +0 -315
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/IReadINLUConnectorRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/IUpdateINLUConnectorRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.d.ts +0 -22
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/index.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/IIndexNodeDescriptorsRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/INodeDescriptor_2_0.d.ts +0 -271
- package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/index.d.ts +0 -1
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IChangePlaybookStepOrderRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ICreatePlaybookRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ICreatePlaybookStepAssertRest_2_0.d.ts +0 -13
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ICreatePlaybookStepRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookStepAssertRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookStepRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IIndexPlaybooksRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookIndexItem_2_0.d.ts +0 -25
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookStepAssert_2_0.d.ts +0 -38
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookStep_2_0.d.ts +0 -38
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybook_2_0.d.ts +0 -46
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IReadPlaybookRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IUpdatePlaybookRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IUpdatePlaybookStepAssertRest_2_0.d.ts +0 -14
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IUpdatePlaybookStepRest_2_0.d.ts +0 -13
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/index.d.ts +0 -13
- package/build/shared/interfaces/restAPI/resources/project/v2.0/ICreateProjectByTemplateRest_2_0.d.ts +0 -48
- package/build/shared/interfaces/restAPI/resources/project/v2.0/ICreateProjectRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/resources/project/v2.0/IDeleteProjectRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/project/v2.0/IIndexProjectsRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/resources/project/v2.0/IProjectIndexItem_2_0.d.ts +0 -24
- package/build/shared/interfaces/restAPI/resources/project/v2.0/IProject_2_0.d.ts +0 -41
- package/build/shared/interfaces/restAPI/resources/project/v2.0/IReadProjectRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/project/v2.0/IUpdateProjectRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/project/v2.0/IValidateProjectNameRest_2_0.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/project/v2.0/index.d.ts +0 -7
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IReadSettingsRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IReadSettingsRest_2_0.js +0 -4
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ISettings_2_0.d.ts +0 -134
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ISettings_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IUpdateSettingsRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IUpdateSettingsRest_2_0.js +0 -4
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/index.d.ts +0 -2
- package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/ICreateSnippetRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/IDeleteSnippetRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/IIndexSnippetsRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/ISnippetIndexItem_2_0.d.ts +0 -24
- package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/ISnippet_2_0.d.ts +0 -36
- package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/index.d.ts +0 -3
- package/build/shared/interfaces/restAPI/resources/search/v2.0/ISearchResourcesRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/search/v2.0/ISearchResultIndexItem_2_0.d.ts +0 -37
- package/build/shared/interfaces/restAPI/resources/search/v2.0/index.d.ts +0 -1
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IComposeSnapshotDownloadLinkRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/ICreateSnapshotRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IDeleteSnapshotRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IIndexResourcesInSnapshotRest_2_0.d.ts +0 -11
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IIndexSnapshotsRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IPackageSnapshotRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IReadSnapshotRest_2_0.d.ts +0 -9
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IResourceInSnapshotItem_2_0.d.ts +0 -59
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IRestoreSnapshotRest_2_0.d.ts +0 -8
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/ISnapshotIndexItem_2_0.d.ts +0 -53
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/ISnapshot_2_0.d.ts +0 -59
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IUploadSnapshotPackageRest_2_0.d.ts +0 -14
- package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/index.d.ts +0 -12
- package/build/shared/interfaces/restAPI/sessions/endpoint/v2.0/IInjectRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/sessions/endpoint/v2.0/INotifyRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/sessions/endpoint/v2.0/index.d.ts +0 -2
- package/build/shared/interfaces/restAPI/sessions/nlu/v2.0/IInjectContextRest_2_0.d.ts +0 -14
- package/build/shared/interfaces/restAPI/sessions/nlu/v2.0/IInjectStateRest_2_0.d.ts +0 -12
- package/build/shared/interfaces/restAPI/sessions/nlu/v2.0/IResetContextRest_2_0.d.ts +0 -13
- package/build/shared/interfaces/restAPI/sessions/nlu/v2.0/IResetStateRest_2_0.d.ts +0 -10
- package/build/shared/interfaces/restAPI/sessions/nlu/v2.0/index.d.ts +0 -4
- package/build/shared/interfaces/rule.d.ts +0 -12
- package/build/shared/interfaces/security.d.ts +0 -63
- package/build/shared/interfaces/security.js +0 -3
- package/build/shared/interfaces/smooch.d.ts +0 -82
- package/build/shared/interfaces/smooch.js +0 -3
- package/build/shared/interfaces/taskmanager/ITask.d.ts +0 -39
- package/build/shared/interfaces/taskmanager/ITaskReturnValue.d.ts +0 -25
- package/build/shared/interfaces/taskmanager/ITaskScope.d.ts +0 -4
- package/build/shared/interfaces/taskmanager/TTaskStatus.d.ts +0 -2
- package/build/shared/interfaces/taskmanager/index.d.ts +0 -4
- package/build/shared/interfaces/trainer/ITrainerRecord.d.ts +0 -53
- package/build/shared/interfaces/trainer/THandleAction.d.ts +0 -2
- package/build/shared/interfaces/trainer/index.d.ts +0 -2
- package/build/shared/interfaces/transformers/ITransformerFunction.d.ts +0 -10
- package/build/shared/interfaces/transformers/baseTransformers.d.ts +0 -33
- package/build/shared/interfaces/transformers/index.d.ts +0 -2
- package/build/shared/interfaces/twilioInterface.d.ts +0 -56
- package/build/shared/interfaces/types/TCSSColorName.d.ts +0 -161
- package/build/shared/interfaces/types/TCognigyColorName.d.ts +0 -19
- package/build/shared/interfaces/types/TMongoId.d.ts +0 -1
- package/build/shared/interfaces/types/TNLULanguage.d.ts +0 -2
- package/build/shared/interfaces/types/TTimestamp.d.ts +0 -2
- package/build/shared/interfaces/user.d.ts +0 -32
- package/build/shared/json-schema.d.ts +0 -138
- package/build/shared/mongoose/pagination/ICursorBasedPaginationReturnValue.d.ts +0 -29
- package/build/shared/mongoose/pagination/IMongoosePaginationPluginReturnValue.d.ts +0 -6
- package/build/shared/mongoose/pagination/IRestFilterQuery.d.ts +0 -3
- package/build/shared/mongoose/pagination/IRestPagination.d.ts +0 -12
- package/build/shared/mongoose/pagination/IRestPaginationQuery.d.ts +0 -54
- package/build/shared/mongoose/pagination/index.d.ts +0 -5
- package/build/shared/payloadValidator.d.ts +0 -5
- package/build/shared/payloadValidator.js +0 -253
|
@@ -1,12 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This Question Node asks the user a question and expects a certain type of answer back.
|
|
4
|
+
* The answer is evaluated by the Node and if it's invalid, the user is guided towards
|
|
5
|
+
* giving a correct answer.
|
|
6
|
+
*
|
|
7
|
+
* The Node executes the following steps, all of which have been marked as #regions in the code below
|
|
8
|
+
*
|
|
9
|
+
* 0. Check if we're currently in a reconfirmation of a valid answer and if yes, handle it
|
|
10
|
+
*
|
|
11
|
+
* 1. Check if answer exists in context and stop if it does
|
|
12
|
+
*
|
|
13
|
+
* 2. Check if this is the first time the node is hit and if yes, ask the question and stop (return); if not
|
|
14
|
+
*
|
|
15
|
+
* 3. - doesnt exist anymore -
|
|
16
|
+
*
|
|
17
|
+
* 4. Run actual evaluation of the answer using evaluateQuestionAnswer
|
|
18
|
+
* 4.1 If result location was specified, try to get the result from there
|
|
19
|
+
*
|
|
20
|
+
* 5. If answer is:
|
|
21
|
+
* 5.1 VALID
|
|
22
|
+
* 5.1.1 If reconfirmation is needed, start reconfirmation process and stop
|
|
23
|
+
* 5.1.2 Store the answer either in Context or Input
|
|
24
|
+
* 5.1.3 Store the answer also in the profile
|
|
25
|
+
* 5.1.4 Reset markers and activeQuestion in system Context and return
|
|
26
|
+
*
|
|
27
|
+
* 5.2 INVALID
|
|
28
|
+
* 5.2.1 Check if we should escalate on intent and if yes, do so
|
|
29
|
+
* 5.2.2 Otherwise (!) check if we should escalate on multiple wrong answers and if yes, do so
|
|
30
|
+
* 5.2.3 Check if we should say the reprompt an if yes, say it, plus the question again
|
|
31
|
+
* 5.2.4 Sets itself as the next Node and stops execution
|
|
32
|
+
*/
|
|
2
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.QUESTION = void 0;
|
|
35
|
+
//#region Imports
|
|
3
36
|
/* Custom modules */
|
|
4
37
|
const createNodeDescriptor_1 = require("../../../createNodeDescriptor");
|
|
5
38
|
const evaluateQuestionAnswer_1 = require("./utils/evaluateQuestionAnswer");
|
|
6
39
|
const say_1 = require("../say");
|
|
40
|
+
const goTo_1 = require("../../logic/goTo");
|
|
41
|
+
const executeFlow_1 = require("../../logic/executeFlow");
|
|
7
42
|
const BaseContext_1 = require("../../../../helper/BaseContext");
|
|
43
|
+
const getQuestionText_1 = require("./utils/getQuestionText");
|
|
44
|
+
const storeQuestionAnswer_1 = require("./utils/storeQuestionAnswer");
|
|
45
|
+
const generateAnswerShortForm_1 = require("./utils/generateAnswerShortForm");
|
|
46
|
+
const validateQuestionAnswer_1 = require("./utils/validateQuestionAnswer");
|
|
47
|
+
const service_1 = require("../../service");
|
|
8
48
|
const datepickerUtils_1 = require("./utils/datepickerUtils");
|
|
49
|
+
const resetNodeState_1 = require("./utils/resetNodeState");
|
|
50
|
+
//#endregion Interfaces
|
|
9
51
|
exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
52
|
+
//#region DescriptorFields
|
|
10
53
|
type: "question",
|
|
11
54
|
defaultLabel: "Question",
|
|
12
55
|
summary: "Ask a question and waits for a valid answer",
|
|
@@ -17,7 +60,6 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
17
60
|
appearance: {
|
|
18
61
|
showIcon: false
|
|
19
62
|
},
|
|
20
|
-
// @ts-ignore
|
|
21
63
|
fields: [
|
|
22
64
|
{
|
|
23
65
|
key: "type",
|
|
@@ -70,6 +112,10 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
70
112
|
label: "Money",
|
|
71
113
|
value: "money"
|
|
72
114
|
},
|
|
115
|
+
{
|
|
116
|
+
label: "URL",
|
|
117
|
+
value: "url"
|
|
118
|
+
},
|
|
73
119
|
{
|
|
74
120
|
label: "Percentage",
|
|
75
121
|
value: "percentage"
|
|
@@ -78,6 +124,14 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
78
124
|
label: "Regex",
|
|
79
125
|
value: "regex",
|
|
80
126
|
},
|
|
127
|
+
{
|
|
128
|
+
label: "Data",
|
|
129
|
+
value: "data",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
label: "Custom",
|
|
133
|
+
value: "custom",
|
|
134
|
+
},
|
|
81
135
|
],
|
|
82
136
|
},
|
|
83
137
|
defaultValue: 'yesNo'
|
|
@@ -100,7 +154,17 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
100
154
|
type: "cognigyText",
|
|
101
155
|
label: "Reprompt Message",
|
|
102
156
|
description: "Message to output if the given answer is invalid",
|
|
103
|
-
defaultValue: "Not sure I understood this correctly."
|
|
157
|
+
defaultValue: "Not sure I understood this correctly.",
|
|
158
|
+
params: {
|
|
159
|
+
multiline: true
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
key: "repromptCondition",
|
|
164
|
+
type: "cognigyText",
|
|
165
|
+
label: "Reprompt Condition",
|
|
166
|
+
description: "Condition to check before outputting Reprompt Message",
|
|
167
|
+
defaultValue: ""
|
|
104
168
|
},
|
|
105
169
|
{
|
|
106
170
|
key: "validationRepeat",
|
|
@@ -109,6 +173,13 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
109
173
|
description: "Repeat question if given answer is invalid",
|
|
110
174
|
defaultValue: true
|
|
111
175
|
},
|
|
176
|
+
{
|
|
177
|
+
key: "skipRepromptOnIntent",
|
|
178
|
+
type: "toggle",
|
|
179
|
+
label: "Skip on Intent",
|
|
180
|
+
description: "Skips the reprompt if an intent was found",
|
|
181
|
+
defaultValue: false
|
|
182
|
+
},
|
|
112
183
|
{
|
|
113
184
|
key: "keyphraseTag",
|
|
114
185
|
type: "cognigyText",
|
|
@@ -131,6 +202,7 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
131
202
|
key: "regex",
|
|
132
203
|
type: "cognigyText",
|
|
133
204
|
label: "Regular Expression",
|
|
205
|
+
description: "Provide a regular expression (e.g. /\\d{5}/)",
|
|
134
206
|
condition: {
|
|
135
207
|
key: "type",
|
|
136
208
|
value: "regex"
|
|
@@ -139,11 +211,11 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
139
211
|
{
|
|
140
212
|
key: "storeInContactProfile",
|
|
141
213
|
type: "toggle",
|
|
142
|
-
label: "
|
|
214
|
+
label: "Store Result in Contact Profile"
|
|
143
215
|
},
|
|
144
216
|
{
|
|
145
217
|
key: "profileKey",
|
|
146
|
-
type: "
|
|
218
|
+
type: "profileSchemaField",
|
|
147
219
|
label: "Profile Key to use",
|
|
148
220
|
condition: {
|
|
149
221
|
key: "storeInContactProfile",
|
|
@@ -179,35 +251,586 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
179
251
|
value: true
|
|
180
252
|
}
|
|
181
253
|
},
|
|
254
|
+
{
|
|
255
|
+
key: "onlyAcceptEscalationIntents",
|
|
256
|
+
type: "toggle",
|
|
257
|
+
label: "Only Accept Escalation Intents",
|
|
258
|
+
description: "Ignore all Intents on Answer, except Escalation Intents",
|
|
259
|
+
condition: {
|
|
260
|
+
key: "type",
|
|
261
|
+
value: "intent",
|
|
262
|
+
negate: true
|
|
263
|
+
}
|
|
264
|
+
},
|
|
182
265
|
{
|
|
183
266
|
key: "parseResultOnEntry",
|
|
184
267
|
type: "toggle",
|
|
185
268
|
label: "Skip if Answer in Input",
|
|
186
269
|
description: "Skips the question if it was already answered when the Node is hit"
|
|
187
|
-
}
|
|
188
|
-
] // @ts-ignore
|
|
189
|
-
.concat(datepickerUtils_1.getDatePickerFields({
|
|
190
|
-
"key": "type",
|
|
191
|
-
"value": "date"
|
|
192
|
-
})),
|
|
193
|
-
sections: [
|
|
270
|
+
},
|
|
194
271
|
{
|
|
195
|
-
key: "
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"
|
|
200
|
-
|
|
201
|
-
|
|
272
|
+
key: "datepickerExplanation",
|
|
273
|
+
type: "description",
|
|
274
|
+
label: " ",
|
|
275
|
+
params: {
|
|
276
|
+
text: "Date questions can prompt the user with an interactive datepicker which is configured in the sections below"
|
|
277
|
+
},
|
|
278
|
+
condition: {
|
|
279
|
+
key: "type",
|
|
280
|
+
value: "date"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
key: "additionalValidation",
|
|
285
|
+
type: "cognigyText",
|
|
286
|
+
label: "Additional Validation",
|
|
287
|
+
description: "User Input must pass this validation in addition to the inbuilt field-validation (e.g. Email) to be considered valid",
|
|
288
|
+
defaultValue: ""
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
key: "resultLocation",
|
|
292
|
+
type: "cognigyText",
|
|
293
|
+
label: "Result Location",
|
|
294
|
+
description: "The location to retrieve the result from (e.g. input.text)",
|
|
295
|
+
defaultValue: ""
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
key: "maxExecutionDiff",
|
|
299
|
+
type: "number",
|
|
300
|
+
label: "Forget Question Threshold",
|
|
301
|
+
description: "The max number of inputs between hitting the Node the first time and now where we still validate the answer. Otherwise we ask the question again.",
|
|
302
|
+
defaultValue: 1
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
key: "escalateAnswersAction",
|
|
306
|
+
type: "select",
|
|
307
|
+
label: "Escalation Action",
|
|
308
|
+
description: "What should happen after the threshold of wrong answers is reached?",
|
|
309
|
+
params: {
|
|
310
|
+
options: [
|
|
311
|
+
{
|
|
312
|
+
label: "No Escalation",
|
|
313
|
+
value: "none"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
label: "Output Message",
|
|
317
|
+
value: "text",
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
label: "Skip Question",
|
|
321
|
+
value: "skip",
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
label: "Go to Node",
|
|
325
|
+
value: "goto"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
label: "Execute Flow and return",
|
|
329
|
+
value: "execute"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
label: "Handover to Human Agent",
|
|
333
|
+
value: "handover"
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
defaultValue: 'none'
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
key: "escalateAnswersThreshold",
|
|
341
|
+
type: "slider",
|
|
342
|
+
label: "Wrong Answer Count Trigger",
|
|
343
|
+
description: "Number of incorrect answers on which escalation will be triggered.",
|
|
344
|
+
params: {
|
|
345
|
+
min: 1,
|
|
346
|
+
max: 10,
|
|
347
|
+
step: 1,
|
|
348
|
+
},
|
|
349
|
+
defaultValue: 3,
|
|
350
|
+
condition: {
|
|
351
|
+
key: "escalateAnswersAction",
|
|
352
|
+
value: "none",
|
|
353
|
+
negate: true
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
key: "escalateAnswersGotoTarget",
|
|
358
|
+
type: "flowNode",
|
|
359
|
+
label: "GoTo Target",
|
|
360
|
+
condition: {
|
|
361
|
+
key: "escalateAnswersAction",
|
|
362
|
+
value: "goto"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
key: "escalateAnswersExecuteTarget",
|
|
367
|
+
type: "flowNode",
|
|
368
|
+
label: "Execute Target",
|
|
369
|
+
condition: {
|
|
370
|
+
key: "escalateAnswersAction",
|
|
371
|
+
value: "execute"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
key: "escalateAnswersGotoExecutionMode",
|
|
376
|
+
type: "select",
|
|
377
|
+
description: "Go to new Node and continue execution or wait for input",
|
|
378
|
+
label: "GoTo Execution Mode",
|
|
379
|
+
defaultValue: "continue",
|
|
380
|
+
params: {
|
|
381
|
+
options: [
|
|
382
|
+
{
|
|
383
|
+
label: "Go to Node and continue",
|
|
384
|
+
value: "continue"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
label: "Go to Node and wait for Input",
|
|
388
|
+
value: "wait"
|
|
389
|
+
},
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
condition: {
|
|
393
|
+
key: "escalateAnswersAction",
|
|
394
|
+
value: "goto"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
key: "escalateAnswersInjectedText",
|
|
399
|
+
label: "Optional Injected Text",
|
|
400
|
+
type: "cognigyText",
|
|
401
|
+
description: "Text to use when continuing the execution. If no text is provided, input.text is used.",
|
|
402
|
+
defaultValue: "",
|
|
403
|
+
condition: {
|
|
404
|
+
key: "escalateAnswersAction",
|
|
405
|
+
value: "goto"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
key: "escalateAnswersInjectedData",
|
|
410
|
+
label: "Optional Injected Data",
|
|
411
|
+
type: "json",
|
|
412
|
+
description: "Data to use when continuing the execution. If no data is provided, input.data is used.",
|
|
413
|
+
defaultValue: "{}",
|
|
414
|
+
condition: {
|
|
415
|
+
key: "escalateAnswersAction",
|
|
416
|
+
value: "goto"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
key: "escalateAnswersMessage",
|
|
421
|
+
type: "say",
|
|
422
|
+
label: "Escalation Message",
|
|
423
|
+
defaultValue: {
|
|
424
|
+
data: "{}",
|
|
425
|
+
type: "text",
|
|
426
|
+
linear: false,
|
|
427
|
+
loop: false,
|
|
428
|
+
text: [""],
|
|
429
|
+
_cognigy: {},
|
|
430
|
+
},
|
|
431
|
+
condition: {
|
|
432
|
+
key: "escalateAnswersAction",
|
|
433
|
+
value: "text"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
key: "escalateAnswersRepromptPrevention",
|
|
438
|
+
type: "toggle",
|
|
439
|
+
label: "Prevent Reprompt on Escalation",
|
|
440
|
+
defaultValue: true,
|
|
441
|
+
condition: {
|
|
442
|
+
key: "escalateAnswersAction",
|
|
443
|
+
value: "text"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
key: "escalateAnswersHandoverText",
|
|
448
|
+
type: "cognigyText",
|
|
449
|
+
label: "Handover Accepted Message",
|
|
450
|
+
description: "The message to display to the user once the handover request was accepted by the live chat provider",
|
|
451
|
+
condition: {
|
|
452
|
+
key: "escalateAnswersAction",
|
|
453
|
+
value: "handover"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
key: "escalateAnswersRepeatHandoverMessage",
|
|
458
|
+
type: "toggle",
|
|
459
|
+
label: "Repeat Handover Accepted Message",
|
|
460
|
+
description: "Repeatedly respond with Handover Accepted Message for each user input until human agent responds",
|
|
461
|
+
defaultValue: false,
|
|
462
|
+
condition: {
|
|
463
|
+
key: "escalateAnswersAction",
|
|
464
|
+
value: "handover"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
key: "escalateAnswersHandoverCancelIntent",
|
|
469
|
+
type: "cognigyText",
|
|
470
|
+
label: "Cancel Intent",
|
|
471
|
+
description: "Name of the intent which will cancel the handover",
|
|
472
|
+
condition: {
|
|
473
|
+
key: "escalateAnswersAction",
|
|
474
|
+
value: "handover"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
key: "escalateAnswersHandoverQuickReply",
|
|
479
|
+
type: "cognigyText",
|
|
480
|
+
label: "Cancel Button Text",
|
|
481
|
+
description: "Text of the Quick Reply Button which sends the user back to the Virtual Agent",
|
|
482
|
+
condition: {
|
|
483
|
+
key: "escalateAnswersAction",
|
|
484
|
+
value: "handover"
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
|
|
488
|
+
key: "escalateAnswersHandoverLiveAgentInboxId",
|
|
489
|
+
type: "cognigyText",
|
|
490
|
+
label: "Live Agent Inbox Id",
|
|
491
|
+
description: "Inbox Id in Live Agent",
|
|
492
|
+
condition: {
|
|
493
|
+
key: "escalateAnswersAction",
|
|
494
|
+
value: "handover"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
key: "escalateAnswersHandoverChatwootInboxId",
|
|
499
|
+
type: "cognigyText",
|
|
500
|
+
label: "Chatwoot Inbox Id",
|
|
501
|
+
description: "Inbox Id in Chatwoot",
|
|
502
|
+
condition: {
|
|
503
|
+
key: "escalateAnswersAction",
|
|
504
|
+
value: "handover"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
key: "escalateAnswersHandoverSalesforcePrechatEntities",
|
|
509
|
+
type: "json",
|
|
510
|
+
label: "Salesforce Prechat Entities",
|
|
511
|
+
description: "The Salesforce entity that should be used.",
|
|
512
|
+
defaultValue: "[]",
|
|
513
|
+
condition: {
|
|
514
|
+
key: "escalateAnswersAction",
|
|
515
|
+
value: "handover"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
key: "escalateAnswersHandoverSalesforcePrechatDetails",
|
|
520
|
+
type: "json",
|
|
521
|
+
label: "Salesforce Prechat Details",
|
|
522
|
+
description: "The details that should be displayed to the Live Chat Agent.",
|
|
523
|
+
defaultValue: "[]",
|
|
524
|
+
condition: {
|
|
525
|
+
key: "escalateAnswersAction",
|
|
526
|
+
value: "handover"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
key: "escalateAnswersOnce",
|
|
531
|
+
type: "toggle",
|
|
532
|
+
label: "Only escalate once",
|
|
533
|
+
description: "Only escalate exactly at the threshold but not after",
|
|
534
|
+
defaultValue: true,
|
|
535
|
+
condition: {
|
|
536
|
+
key: "escalateAnswersAction",
|
|
537
|
+
value: "none",
|
|
538
|
+
negate: true
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
key: "escalateIntentsAction",
|
|
543
|
+
type: "select",
|
|
544
|
+
label: "Escalation Action",
|
|
545
|
+
description: "What shall happen after an intent was found?",
|
|
546
|
+
params: {
|
|
547
|
+
options: [
|
|
548
|
+
{
|
|
549
|
+
label: "No Escalation",
|
|
550
|
+
value: "none"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
label: "Output Message",
|
|
554
|
+
value: "text",
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
label: "Skip Question",
|
|
558
|
+
value: "skip",
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
label: "Go to Node",
|
|
562
|
+
value: "goto"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
label: "Execute Flow and return",
|
|
566
|
+
value: "execute"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
label: "Handover to Human Agent",
|
|
570
|
+
value: "handover"
|
|
571
|
+
}
|
|
572
|
+
],
|
|
573
|
+
},
|
|
574
|
+
defaultValue: 'none'
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
key: "escalateIntentsValidIntents",
|
|
578
|
+
type: "chipInput",
|
|
579
|
+
label: "Valid Intents",
|
|
580
|
+
description: "List of intents which trigger escalation. Hit Enter to add each intent.",
|
|
581
|
+
condition: {
|
|
582
|
+
key: "escalateIntentsAction",
|
|
583
|
+
value: "none",
|
|
584
|
+
negate: true
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
key: "escalateIntentsThreshold",
|
|
589
|
+
type: "slider",
|
|
590
|
+
label: "Intent Score Threshold",
|
|
591
|
+
description: "The minimum score the hit intent must have to trigger an escalation.",
|
|
592
|
+
params: {
|
|
593
|
+
min: 0,
|
|
594
|
+
max: 1,
|
|
595
|
+
step: .1,
|
|
596
|
+
},
|
|
597
|
+
defaultValue: .8,
|
|
598
|
+
condition: {
|
|
599
|
+
key: "escalateIntentsAction",
|
|
600
|
+
value: "none",
|
|
601
|
+
negate: true
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
key: "escalateIntentsGotoTarget",
|
|
606
|
+
type: "flowNode",
|
|
607
|
+
label: "GoTo Target",
|
|
608
|
+
condition: {
|
|
609
|
+
key: "escalateIntentsAction",
|
|
610
|
+
value: "goto"
|
|
611
|
+
}
|
|
202
612
|
},
|
|
613
|
+
{
|
|
614
|
+
key: "escalateIntentsExecuteTarget",
|
|
615
|
+
type: "flowNode",
|
|
616
|
+
label: "Execute Target",
|
|
617
|
+
condition: {
|
|
618
|
+
key: "escalateIntentsAction",
|
|
619
|
+
value: "execute"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
key: "escalateIntentsGotoExecutionMode",
|
|
624
|
+
type: "select",
|
|
625
|
+
description: "Go to new Node and continue execution or wait for input",
|
|
626
|
+
label: "GoTo Execution Mode",
|
|
627
|
+
defaultValue: "continue",
|
|
628
|
+
params: {
|
|
629
|
+
options: [
|
|
630
|
+
{
|
|
631
|
+
label: "Go to Node and continue",
|
|
632
|
+
value: "continue"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
label: "Go to Node and wait for Input",
|
|
636
|
+
value: "wait"
|
|
637
|
+
},
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
condition: {
|
|
641
|
+
key: "escalateIntentsAction",
|
|
642
|
+
value: "goto"
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
key: "escalateIntentsInjectedText",
|
|
647
|
+
label: "Optional Injected Text",
|
|
648
|
+
type: "cognigyText",
|
|
649
|
+
description: "Text to use when continuing the execution. If no text provided, input.text is used.",
|
|
650
|
+
defaultValue: "",
|
|
651
|
+
condition: {
|
|
652
|
+
key: "escalateIntentsAction",
|
|
653
|
+
value: "goto"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
key: "escalateIntentsInjectedData",
|
|
658
|
+
label: "Optional Injected Data",
|
|
659
|
+
type: "json",
|
|
660
|
+
description: "Data to use when continuing the execution. If no data provided, input.data is used.",
|
|
661
|
+
defaultValue: "{}",
|
|
662
|
+
condition: {
|
|
663
|
+
key: "escalateIntentsAction",
|
|
664
|
+
value: "goto"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
key: "escalateIntentsMessage",
|
|
669
|
+
type: "say",
|
|
670
|
+
label: "Escalation Message",
|
|
671
|
+
defaultValue: {
|
|
672
|
+
data: "{}",
|
|
673
|
+
type: "text",
|
|
674
|
+
linear: false,
|
|
675
|
+
loop: false,
|
|
676
|
+
text: [""],
|
|
677
|
+
_cognigy: {},
|
|
678
|
+
},
|
|
679
|
+
condition: {
|
|
680
|
+
key: "escalateIntentsAction",
|
|
681
|
+
value: "text"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
key: "escalateIntentsHandoverText",
|
|
686
|
+
type: "cognigyText",
|
|
687
|
+
label: "Handover Accepted Message",
|
|
688
|
+
description: "The message to display to the user once the handover request was accepted by the live chat provider",
|
|
689
|
+
condition: {
|
|
690
|
+
key: "escalateIntentsAction",
|
|
691
|
+
value: "handover"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
key: "escalateIntentsRepeatHandoverMessage",
|
|
696
|
+
type: "toggle",
|
|
697
|
+
label: "Repeat Handover Accepted Message",
|
|
698
|
+
description: "Repeatedly respond with Handover Accepted Message for each user input until human agent responds",
|
|
699
|
+
defaultValue: false,
|
|
700
|
+
condition: {
|
|
701
|
+
key: "escalateIntentsAction",
|
|
702
|
+
value: "handover"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
key: "escalateIntentsHandoverCancelIntent",
|
|
707
|
+
type: "cognigyText",
|
|
708
|
+
label: "Cancel Intent",
|
|
709
|
+
description: "Name of the intent which will cancel the handover",
|
|
710
|
+
condition: {
|
|
711
|
+
key: "escalateIntentsAction",
|
|
712
|
+
value: "handover"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
key: "escalateIntentsHandoverQuickReply",
|
|
717
|
+
type: "cognigyText",
|
|
718
|
+
label: "Cancel Button Text",
|
|
719
|
+
description: "Text of the Quick Reply Button which sends the user back to the Virtual Agent",
|
|
720
|
+
condition: {
|
|
721
|
+
key: "escalateIntentsAction",
|
|
722
|
+
value: "handover"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
|
|
726
|
+
key: "escalateIntentsHandoverLiveAgentInboxId",
|
|
727
|
+
type: "cognigyText",
|
|
728
|
+
label: "Live Agent Inbox Id",
|
|
729
|
+
description: "Inbox Id in Live Agent",
|
|
730
|
+
condition: {
|
|
731
|
+
key: "escalateIntentsAction",
|
|
732
|
+
value: "handover"
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
key: "escalateIntentsHandoverChatwootInboxId",
|
|
737
|
+
type: "cognigyText",
|
|
738
|
+
label: "Chatwoot Inbox Id",
|
|
739
|
+
description: "Inbox Id in Chatwoot",
|
|
740
|
+
condition: {
|
|
741
|
+
key: "escalateIntentsAction",
|
|
742
|
+
value: "handover"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
key: "escalateIntentsHandoverSalesforcePrechatEntities",
|
|
747
|
+
type: "json",
|
|
748
|
+
label: "Salesforce Prechat Entities",
|
|
749
|
+
description: "The Salesforce entity that should be used.",
|
|
750
|
+
defaultValue: "[]",
|
|
751
|
+
condition: {
|
|
752
|
+
key: "escalateIntentsAction",
|
|
753
|
+
value: "handover"
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
key: "escalateIntentsHandoverSalesforcePrechatDetails",
|
|
758
|
+
type: "json",
|
|
759
|
+
label: "Salesforce Prechat Details",
|
|
760
|
+
description: "The details that should be displayed to the Live Chat Agent.",
|
|
761
|
+
defaultValue: "[]",
|
|
762
|
+
condition: {
|
|
763
|
+
key: "escalateIntentsAction",
|
|
764
|
+
value: "handover"
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
key: "escalateIntentsRepromptPrevention",
|
|
769
|
+
type: "toggle",
|
|
770
|
+
label: "Prevent Reprompt Message Once",
|
|
771
|
+
defaultValue: true,
|
|
772
|
+
condition: {
|
|
773
|
+
key: "escalateIntentsAction",
|
|
774
|
+
value: "text"
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
key: "reconfirmationBehaviour",
|
|
779
|
+
type: "select",
|
|
780
|
+
description: "How and if to reconfirm question answers",
|
|
781
|
+
label: "Reconfirmation Behaviour",
|
|
782
|
+
defaultValue: "none",
|
|
783
|
+
params: {
|
|
784
|
+
options: [
|
|
785
|
+
{
|
|
786
|
+
label: "Do not reconfirm answer",
|
|
787
|
+
value: "none"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
label: "Reconfirm answer",
|
|
791
|
+
value: "reconfirm"
|
|
792
|
+
},
|
|
793
|
+
]
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
key: "reconfirmationQuestion",
|
|
798
|
+
type: "cognigyText",
|
|
799
|
+
label: "Reconfirmation Question",
|
|
800
|
+
description: "The question to ask to reconfirm the answer",
|
|
801
|
+
defaultValue: "I heard you say [ANSWER]. Is that correct?",
|
|
802
|
+
condition: {
|
|
803
|
+
key: "reconfirmationBehaviour",
|
|
804
|
+
value: "reconfirm"
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
key: "reconfirmationQuestionReprompt",
|
|
809
|
+
type: "cognigyText",
|
|
810
|
+
label: "Reconfirmation Reprompt",
|
|
811
|
+
description: "What to say if the reconfirmation question wasn't answered with yes or no",
|
|
812
|
+
defaultValue: "I'm not sure I got that right.",
|
|
813
|
+
condition: {
|
|
814
|
+
key: "reconfirmationBehaviour",
|
|
815
|
+
value: "reconfirm"
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
...datepickerUtils_1.getDatePickerFields({
|
|
819
|
+
"key": "type",
|
|
820
|
+
"value": "date"
|
|
821
|
+
})
|
|
822
|
+
].filter(field => !!field),
|
|
823
|
+
sections: [
|
|
203
824
|
{
|
|
204
825
|
key: "context",
|
|
205
|
-
label: "
|
|
826
|
+
label: "Result Storage",
|
|
206
827
|
defaultCollapsed: true,
|
|
207
828
|
fields: [
|
|
208
829
|
"storeResultInContext",
|
|
209
830
|
"contextKey",
|
|
210
|
-
"skipIfResultInContext"
|
|
831
|
+
"skipIfResultInContext",
|
|
832
|
+
"storeInContactProfile",
|
|
833
|
+
"profileKey"
|
|
211
834
|
]
|
|
212
835
|
},
|
|
213
836
|
{
|
|
@@ -217,8 +840,70 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
217
840
|
fields: [
|
|
218
841
|
"validationMessage",
|
|
219
842
|
"validationRepeat",
|
|
843
|
+
"repromptCondition",
|
|
844
|
+
"skipRepromptOnIntent"
|
|
845
|
+
]
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
key: "reconfirmation",
|
|
849
|
+
label: "Reconfirmation Options",
|
|
850
|
+
defaultCollapsed: true,
|
|
851
|
+
fields: [
|
|
852
|
+
"reconfirmationBehaviour",
|
|
853
|
+
"reconfirmationQuestion",
|
|
854
|
+
"reconfirmationQuestionReprompt"
|
|
220
855
|
]
|
|
221
856
|
},
|
|
857
|
+
{
|
|
858
|
+
key: "escalateIntents",
|
|
859
|
+
label: "Escalation - Intents",
|
|
860
|
+
defaultCollapsed: true,
|
|
861
|
+
fields: [
|
|
862
|
+
"escalateIntentsAction",
|
|
863
|
+
"escalateIntentsValidIntents",
|
|
864
|
+
"escalateIntentsThreshold",
|
|
865
|
+
"escalateIntentsGotoTarget",
|
|
866
|
+
"escalateIntentsExecuteTarget",
|
|
867
|
+
"escalateIntentsGotoExecutionMode",
|
|
868
|
+
"escalateIntentsInjectedText",
|
|
869
|
+
"escalateIntentsInjectedData",
|
|
870
|
+
"escalateIntentsMessage",
|
|
871
|
+
"escalateIntentsHandoverText",
|
|
872
|
+
"escalateIntentsRepeatHandoverMessage",
|
|
873
|
+
"escalateIntentsHandoverCancelIntent",
|
|
874
|
+
"escalateIntentsHandoverQuickReply",
|
|
875
|
+
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && "escalateIntentsHandoverLiveAgentInboxId",
|
|
876
|
+
"escalateIntentsHandoverChatwootInboxId",
|
|
877
|
+
"escalateIntentsHandoverSalesforcePrechatEntities",
|
|
878
|
+
"escalateIntentsHandoverSalesforcePrechatDetails",
|
|
879
|
+
"escalateIntentsRepromptPrevention"
|
|
880
|
+
].filter(field => !!field)
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
key: "escalateAnswers",
|
|
884
|
+
label: "Escalation - Wrong Answers",
|
|
885
|
+
defaultCollapsed: true,
|
|
886
|
+
fields: [
|
|
887
|
+
"escalateAnswersAction",
|
|
888
|
+
"escalateAnswersThreshold",
|
|
889
|
+
"escalateAnswersGotoTarget",
|
|
890
|
+
"escalateAnswersExecuteTarget",
|
|
891
|
+
"escalateAnswersGotoExecutionMode",
|
|
892
|
+
"escalateAnswersInjectedText",
|
|
893
|
+
"escalateAnswersInjectedData",
|
|
894
|
+
"escalateAnswersMessage",
|
|
895
|
+
"escalateAnswersHandoverText",
|
|
896
|
+
"escalateAnswersRepeatHandoverMessage",
|
|
897
|
+
"escalateAnswersHandoverCancelIntent",
|
|
898
|
+
"escalateAnswersHandoverQuickReply",
|
|
899
|
+
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && "escalateAnswersHandoverLiveAgentInboxId",
|
|
900
|
+
"escalateAnswersHandoverChatwootInboxId",
|
|
901
|
+
"escalateAnswersHandoverSalesforcePrechatEntities",
|
|
902
|
+
"escalateAnswersHandoverSalesforcePrechatDetails",
|
|
903
|
+
"escalateAnswersRepromptPrevention",
|
|
904
|
+
"escalateAnswersOnce",
|
|
905
|
+
].filter(field => !!field)
|
|
906
|
+
},
|
|
222
907
|
{
|
|
223
908
|
key: "advanced",
|
|
224
909
|
label: "Advanced",
|
|
@@ -226,22 +911,30 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
226
911
|
fields: [
|
|
227
912
|
"storeDetailedResults",
|
|
228
913
|
"parseResultOnEntry",
|
|
914
|
+
"onlyAcceptEscalationIntents",
|
|
915
|
+
"additionalValidation",
|
|
916
|
+
"resultLocation",
|
|
917
|
+
"maxExecutionDiff",
|
|
229
918
|
]
|
|
230
919
|
},
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
920
|
+
...datepickerUtils_1.getDatePickerSections("Datepicker - ", {
|
|
921
|
+
"key": "type",
|
|
922
|
+
"value": "date"
|
|
923
|
+
})
|
|
924
|
+
],
|
|
235
925
|
form: [
|
|
236
926
|
{ type: "field", key: "type" },
|
|
237
927
|
{ type: "field", key: "keyphraseTag" },
|
|
238
928
|
{ type: "field", key: "usePositiveOnly" },
|
|
239
929
|
{ type: "field", key: "regex" },
|
|
240
930
|
{ type: "field", key: "say" },
|
|
931
|
+
{ type: "section", key: "context" },
|
|
241
932
|
{ type: "section", key: "reprompt" },
|
|
933
|
+
{ type: "section", key: "reconfirmation" },
|
|
934
|
+
{ type: "section", key: "escalateIntents" },
|
|
935
|
+
{ type: "section", key: "escalateAnswers" },
|
|
242
936
|
{ type: "section", key: "advanced" },
|
|
243
|
-
{ type: "
|
|
244
|
-
{ type: "section", key: "profile" },
|
|
937
|
+
{ type: "field", key: "datepickerExplanation" },
|
|
245
938
|
{ type: "section", key: "datepicker_config" },
|
|
246
939
|
{ type: "section", key: "datepicker_texts" },
|
|
247
940
|
{ type: "section", key: "datepicker_datesettings" },
|
|
@@ -250,15 +943,112 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
250
943
|
{ type: "section", key: "datepicker_advanced" }
|
|
251
944
|
],
|
|
252
945
|
preview: {
|
|
253
|
-
key: "say
|
|
254
|
-
type: "
|
|
946
|
+
key: "say",
|
|
947
|
+
type: "sayNode",
|
|
255
948
|
},
|
|
256
949
|
tags: ["basic", "message", "nlu"],
|
|
257
|
-
|
|
258
|
-
|
|
950
|
+
//#endregion DescriptorFields
|
|
951
|
+
function: async ({ cognigy, nodeId, config, inputOptions }) => {
|
|
952
|
+
const { say, type, validationMessage, validationRepeat, storeResultInContext, contextKey, storeInContactProfile, profileKey, storeDetailedResults, parseResultOnEntry, repromptCondition, maxExecutionDiff, resultLocation, skipRepromptOnIntent, onlyAcceptEscalationIntents, escalateAnswersAction, escalateAnswersThreshold, escalateAnswersGotoTarget, escalateAnswersExecuteTarget, escalateAnswersGotoExecutionMode, escalateAnswersInjectedText, escalateAnswersInjectedData, escalateAnswersMessage, escalateAnswersRepromptPrevention, escalateAnswersOnce, escalateAnswersHandoverText, escalateAnswersRepeatHandoverMessage, escalateAnswersHandoverCancelIntent, escalateAnswersHandoverQuickReply, escalateAnswersHandoverChatwootInboxId, escalateAnswersHandoverLiveAgentInboxId, escalateAnswersHandoverSalesforcePrechatEntities, escalateAnswersHandoverSalesforcePrechatDetails, escalateIntentsAction, escalateIntentsValidIntents, escalateIntentsThreshold, escalateIntentsGotoTarget, escalateIntentsExecuteTarget, escalateIntentsGotoExecutionMode, escalateIntentsInjectedText, escalateIntentsInjectedData, escalateIntentsMessage, escalateIntentsHandoverText, escalateIntentsRepeatHandoverMessage, escalateIntentsHandoverCancelIntent, escalateIntentsHandoverQuickReply, escalateIntentsHandoverChatwootInboxId, escalateIntentsHandoverLiveAgentInboxId, escalateIntentsHandoverSalesforcePrechatEntities, escalateIntentsHandoverSalesforcePrechatDetails, escalateIntentsRepromptPrevention, reconfirmationBehaviour, reconfirmationQuestion, reconfirmationQuestionReprompt } = config;
|
|
259
953
|
const { input, context, profile, api } = cognigy;
|
|
954
|
+
// compute how often this node was hit
|
|
260
955
|
const executionAmount = api.getExecutionAmount(nodeId);
|
|
261
|
-
|
|
956
|
+
// compute how long ago this node was hit
|
|
957
|
+
const lastExecutionMarker = api.getLastExecutionMarker(nodeId);
|
|
958
|
+
let executionDiff = cognigy.input.execution - lastExecutionMarker;
|
|
959
|
+
// the intent reconfirmation message should not count for the executionDiff
|
|
960
|
+
if (inputOptions === null || inputOptions === void 0 ? void 0 : inputOptions.handledIntentReconfirmation) {
|
|
961
|
+
executionDiff -= 1;
|
|
962
|
+
}
|
|
963
|
+
// if this is the very first time the Node gets executed
|
|
964
|
+
// or if we have been "away" from the Node for too long (maxExecutionDiff)
|
|
965
|
+
// we consider it a first execution and show the question
|
|
966
|
+
let isFirstExecution = executionAmount === 1 || executionDiff > (maxExecutionDiff || 1);
|
|
967
|
+
// remember the current question in systemContext to later fill Input with it
|
|
968
|
+
let activeQuestion = api.getSystemContext('activeQuestion');
|
|
969
|
+
if (!activeQuestion || activeQuestion.nodeId !== nodeId) {
|
|
970
|
+
activeQuestion = {
|
|
971
|
+
nodeId,
|
|
972
|
+
type,
|
|
973
|
+
lastExecutedAt: input.execution,
|
|
974
|
+
forgetQuestionThreshold: maxExecutionDiff,
|
|
975
|
+
repromptCount: 0,
|
|
976
|
+
escalationCount: 0,
|
|
977
|
+
};
|
|
978
|
+
if (onlyAcceptEscalationIntents && config.type !== "intent") {
|
|
979
|
+
activeQuestion.onlyAcceptEscalationIntents = onlyAcceptEscalationIntents;
|
|
980
|
+
activeQuestion.escalationIntents = escalateIntentsValidIntents;
|
|
981
|
+
}
|
|
982
|
+
api.setSystemContext('activeQuestion', activeQuestion);
|
|
983
|
+
}
|
|
984
|
+
else {
|
|
985
|
+
activeQuestion.lastExecutedAt = input.execution;
|
|
986
|
+
}
|
|
987
|
+
// #region 0 CheckIfReconfirmationInProgress
|
|
988
|
+
if (api.getSystemContext("reconfirmationQuestionInProgress")) {
|
|
989
|
+
// if this is the case, we are now a YN question
|
|
990
|
+
let res = evaluateQuestionAnswer_1.evaluateQuestionAnswer({
|
|
991
|
+
cognigy, config: {
|
|
992
|
+
"type": "yesNo"
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
const restoredInput = api.getSystemContext("reconfirmationQuestionInput");
|
|
996
|
+
input.intent = restoredInput.intent;
|
|
997
|
+
input.intentScore = restoredInput.intentScore;
|
|
998
|
+
input.intentFlow = restoredInput.intentFlow;
|
|
999
|
+
input.nlu = restoredInput.nlu;
|
|
1000
|
+
input.intentLevel = restoredInput.intentLevel;
|
|
1001
|
+
if (res === true) { // the reconfirmation answer was yes-like
|
|
1002
|
+
// get the tentative answer that was given and store it
|
|
1003
|
+
const result = activeQuestion === null || activeQuestion === void 0 ? void 0 : activeQuestion.tentativeAnswer;
|
|
1004
|
+
storeQuestionAnswer_1.storeQuestionAnswer({ context, contextKey, input, result, storeResultInContext });
|
|
1005
|
+
// reset everything and continue to the next node
|
|
1006
|
+
resetNodeState_1.resetNodeState(api, nodeId);
|
|
1007
|
+
return;
|
|
1008
|
+
}
|
|
1009
|
+
else if (res !== false) { // the reconfirmation answer was invalid (e.g. no yes-like or no-like answer)
|
|
1010
|
+
// output reconfirmation reprompt
|
|
1011
|
+
if (reconfirmationQuestionReprompt) {
|
|
1012
|
+
say_1.SAY.function({ cognigy, childConfigs: [], nodeId, config: { say: { type: "text", text: [reconfirmationQuestionReprompt] } } });
|
|
1013
|
+
}
|
|
1014
|
+
// output reconfirmationQuestion
|
|
1015
|
+
const tentativeAnswerShortform = (activeQuestion === null || activeQuestion === void 0 ? void 0 : activeQuestion.tentativeAnswerShortform) || "";
|
|
1016
|
+
say_1.SAY.function({ cognigy, childConfigs: [], nodeId, config: { say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", tentativeAnswerShortform)] } } });
|
|
1017
|
+
// set myself as next node and stop
|
|
1018
|
+
api.setNextNode(nodeId);
|
|
1019
|
+
api.stopExecution();
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
else { // the reconfirmation answer was no-like
|
|
1023
|
+
// delete all remnants of this reconfirmation
|
|
1024
|
+
api.deleteSystemContext('activeQuestion');
|
|
1025
|
+
api.deleteSystemContext('reconfirmationQuestionInProgress');
|
|
1026
|
+
api.deleteSystemContext("reconfirmationQuestionInput");
|
|
1027
|
+
// pretend the question was never asked and continue
|
|
1028
|
+
isFirstExecution = true;
|
|
1029
|
+
api.setExecutionAmount(nodeId, 1);
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
// #endregion 0 CheckIfReconfirmationInProgress
|
|
1033
|
+
let currentNodeExecutionAmount = api.getExecutionAmount(nodeId) - 1;
|
|
1034
|
+
// Only validate if the forget question threshold is defined (gt 0)
|
|
1035
|
+
if (maxExecutionDiff > 0) {
|
|
1036
|
+
// Check if the same question node was executed before, if yes
|
|
1037
|
+
// calculate the question diff. last step - recent step
|
|
1038
|
+
let questionDiff = 0;
|
|
1039
|
+
if (executionAmount > 1) {
|
|
1040
|
+
// Calculate the question diff from the first lastExecutedAt
|
|
1041
|
+
questionDiff = executionDiff - lastExecutionMarker;
|
|
1042
|
+
}
|
|
1043
|
+
let validateAnswer = questionDiff <= maxExecutionDiff;
|
|
1044
|
+
// If we don't want to validate due to an exceeded forget question
|
|
1045
|
+
// threshold, we set setLastExecutionMarker to 0
|
|
1046
|
+
if (!validateAnswer) {
|
|
1047
|
+
currentNodeExecutionAmount = 0;
|
|
1048
|
+
api.setExecutionAmount(nodeId, 1);
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
// #region 1 AnswerExistsInContext
|
|
262
1052
|
// if the user has chose to skip the question in case the context already
|
|
263
1053
|
// exists, we will just skip the question
|
|
264
1054
|
if (config.storeResultInContext && config.skipIfResultInContext) {
|
|
@@ -270,50 +1060,340 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
270
1060
|
location = BaseContext_1.BaseContext.findLocationPathStateless(splits, true, location);
|
|
271
1061
|
target = splits[splits.length - 1];
|
|
272
1062
|
}
|
|
273
|
-
if (location[target]) {
|
|
1063
|
+
if (location[target] !== null && location[target] !== undefined) {
|
|
1064
|
+
api.setLastExecutionMarker(nodeId, -1);
|
|
274
1065
|
api.resetExecutionAmount(nodeId);
|
|
1066
|
+
api.deleteSystemContext('activeQuestion');
|
|
275
1067
|
return;
|
|
276
1068
|
}
|
|
277
1069
|
}
|
|
1070
|
+
// #endregion 1 AnswerExistsInContext
|
|
1071
|
+
// #region 2 FirstTimeNodeIsHit
|
|
278
1072
|
// if it's the first execution and you don't force evaluation on first execution, ask the question
|
|
279
1073
|
if (isFirstExecution && !parseResultOnEntry) {
|
|
280
1074
|
say_1.SAY.function({ cognigy, childConfigs: [], nodeId, config: { say } });
|
|
281
|
-
|
|
282
|
-
if (type === "date" && !datepicker_hidePicker)
|
|
1075
|
+
if (config.type === "date" && !config.datepicker_hidePicker) {
|
|
283
1076
|
datepickerUtils_1.showDatePicker(cognigy, config);
|
|
1077
|
+
}
|
|
1078
|
+
api.setLastExecutionMarker(nodeId, cognigy.input.execution);
|
|
284
1079
|
api.setNextNode(nodeId);
|
|
285
1080
|
api.stopExecution();
|
|
286
1081
|
return;
|
|
287
1082
|
}
|
|
1083
|
+
// #endregion 2 FirstTimeNodeIsHit
|
|
288
1084
|
// if we're in a subsequent execution or we want to parse results
|
|
289
1085
|
// immediately on entry, continue with evaluation
|
|
290
1086
|
let result = evaluateQuestionAnswer_1.evaluateQuestionAnswer({ cognigy, config });
|
|
1087
|
+
// #endregion 4 RunQuestionAnswerValidation
|
|
1088
|
+
// #region 4.1 ResultLocationHandling
|
|
1089
|
+
// if a result location was specified, try to get the result from that location
|
|
1090
|
+
// if the location returns a falsey value, the answer is invalid
|
|
1091
|
+
if (resultLocation && result) {
|
|
1092
|
+
result = api.parseCognigyScriptResultLocation(resultLocation);
|
|
1093
|
+
// If we want detailed results, augment the result object accordingly
|
|
1094
|
+
if (storeDetailedResults && result !== null && result !== undefined) {
|
|
1095
|
+
result = {
|
|
1096
|
+
"value": result,
|
|
1097
|
+
"question": getQuestionText_1.getQuestionText(config),
|
|
1098
|
+
"timestamp": cognigy.input.currentTime.ISODate,
|
|
1099
|
+
"answer": cognigy.input.text,
|
|
1100
|
+
"answerData": cognigy.input.data
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
// #endregion 4.1 ResultLocationHandling
|
|
1105
|
+
const isValid = validateQuestionAnswer_1.validateQuestionAnswer(cognigy, config);
|
|
291
1106
|
// hard check against null & undefined, because result can be 0 or false
|
|
292
|
-
if (result !== null && result !== undefined) {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
//
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
//
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
1107
|
+
if (result !== null && result !== undefined && isValid) {
|
|
1108
|
+
// #region 5.1 AnswerIsValid
|
|
1109
|
+
if (reconfirmationBehaviour === "reconfirm" && reconfirmationQuestion) {
|
|
1110
|
+
// #region 5.1.1 ReconfirmationQuestion
|
|
1111
|
+
// remember the given answer in the activeQuestion object
|
|
1112
|
+
activeQuestion.tentativeAnswer = result;
|
|
1113
|
+
// remember a shortform of the given answer in the activeQuestion object
|
|
1114
|
+
activeQuestion.tentativeAnswerShortform = generateAnswerShortForm_1.generateAnswerShortForm(type, result, cognigy.input.text);
|
|
1115
|
+
// Output reconfirmationQuestion
|
|
1116
|
+
say_1.SAY.function({ cognigy, childConfigs: [], nodeId, config: { say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", activeQuestion.tentativeAnswerShortform)] } } });
|
|
1117
|
+
// remember that we are in reconfirmation mode and stop
|
|
1118
|
+
api.setSystemContext("reconfirmationQuestionInProgress", true);
|
|
1119
|
+
// we need to store the input, to be able to restore it afterwards
|
|
1120
|
+
// since we need information like intentLevel.
|
|
1121
|
+
api.setSystemContext("reconfirmationQuestionInput", input);
|
|
1122
|
+
api.setNextNode(nodeId);
|
|
1123
|
+
api.stopExecution();
|
|
1124
|
+
// #endregion 5.1.1 ReconfirmationQuestion
|
|
305
1125
|
}
|
|
306
1126
|
else {
|
|
307
|
-
|
|
1127
|
+
// #region 5.1.2 StoreAnswerInContextOrInput
|
|
1128
|
+
storeQuestionAnswer_1.storeQuestionAnswer({ context, contextKey, input, result, storeResultInContext });
|
|
1129
|
+
// #endregion 5.1.2 StoreAnswerInContextOrInput
|
|
1130
|
+
// #region 5.1.3 StoreAnswerInProfile
|
|
1131
|
+
// if profile storage is requested, also store in contact profile
|
|
1132
|
+
if (storeInContactProfile && profile && profileKey) {
|
|
1133
|
+
profile[profileKey] = (storeDetailedResults) ? result.value : result;
|
|
1134
|
+
}
|
|
1135
|
+
// #endregion 5.1.3 StoreAnswerInProfile
|
|
1136
|
+
// #region 5.1.4 SetMarkersAndContinue
|
|
1137
|
+
api.setLastExecutionMarker(nodeId, -1);
|
|
1138
|
+
api.resetExecutionAmount(nodeId);
|
|
1139
|
+
api.deleteSystemContext('activeQuestion');
|
|
1140
|
+
// #endregion 5.1.4 SetMarkersAndContinue
|
|
308
1141
|
}
|
|
309
|
-
// if profile storage is requested, also store in contact profile
|
|
310
|
-
if (storeInContactProfile && profile && profileKey)
|
|
311
|
-
profile[profileKey] = (storeDetailedResults) ? result.value : result;
|
|
312
|
-
api.resetExecutionAmount(nodeId);
|
|
313
1142
|
return;
|
|
1143
|
+
// #endregion 5.1 AnswerIsValid
|
|
314
1144
|
}
|
|
315
|
-
else {
|
|
316
|
-
|
|
1145
|
+
else { // Answer was INVALID
|
|
1146
|
+
// #region 5.2 AnswerIsInvalid
|
|
1147
|
+
let sayReprompt = true;
|
|
1148
|
+
let escalatedInIntent = false;
|
|
1149
|
+
// #region 5.2.1 EscalationOnIntent
|
|
1150
|
+
// Process escalation on intents
|
|
1151
|
+
if (escalateIntentsAction && escalateIntentsAction !== "none") {
|
|
1152
|
+
const lastEscalation = api.getSystemContext(`lastEscalation-${nodeId}`);
|
|
1153
|
+
if (lastEscalation && lastEscalation === cognigy.input.execution) {
|
|
1154
|
+
// escalation already happened on this execution - don't escalate again
|
|
1155
|
+
sayReprompt = false;
|
|
1156
|
+
}
|
|
1157
|
+
else if (input.intent && input.intentScore >= escalateIntentsThreshold && escalateIntentsValidIntents.indexOf(input.intent) > -1) {
|
|
1158
|
+
// User has triggered intent escalation
|
|
1159
|
+
escalatedInIntent = true;
|
|
1160
|
+
activeQuestion.escalationCount++;
|
|
1161
|
+
switch (escalateIntentsAction) {
|
|
1162
|
+
case "goto":
|
|
1163
|
+
if (!escalateIntentsGotoTarget) {
|
|
1164
|
+
throw new Error("GoTo Target is required");
|
|
1165
|
+
}
|
|
1166
|
+
// remember when this escalation happened
|
|
1167
|
+
api.setSystemContext(`lastEscalation-${nodeId}`, cognigy.input.execution);
|
|
1168
|
+
await goTo_1.GO_TO.function({
|
|
1169
|
+
cognigy,
|
|
1170
|
+
childConfigs: [],
|
|
1171
|
+
nodeId,
|
|
1172
|
+
config: {
|
|
1173
|
+
flowNode: escalateIntentsGotoTarget,
|
|
1174
|
+
absorbContext: false,
|
|
1175
|
+
executionMode: escalateIntentsGotoExecutionMode,
|
|
1176
|
+
injectedText: escalateIntentsInjectedText,
|
|
1177
|
+
injectedData: Object.assign({}, input.data, escalateIntentsInjectedData),
|
|
1178
|
+
parseIntents: false,
|
|
1179
|
+
parseKeyphrases: false
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
return;
|
|
1183
|
+
case "execute":
|
|
1184
|
+
if (!escalateIntentsExecuteTarget) {
|
|
1185
|
+
throw new Error("Execute Flow Target is required");
|
|
1186
|
+
}
|
|
1187
|
+
// set myself as next Node on the stack, so we can return to me
|
|
1188
|
+
api.setNextNode(nodeId);
|
|
1189
|
+
// remember when this escalation happened
|
|
1190
|
+
api.setSystemContext(`lastEscalation-${nodeId}`, cognigy.input.execution);
|
|
1191
|
+
// execute chosen Flow
|
|
1192
|
+
await executeFlow_1.EXECUTE_FLOW.function({
|
|
1193
|
+
cognigy,
|
|
1194
|
+
childConfigs: [],
|
|
1195
|
+
nodeId,
|
|
1196
|
+
config: {
|
|
1197
|
+
flowNode: escalateIntentsExecuteTarget,
|
|
1198
|
+
absorbContext: false,
|
|
1199
|
+
parseIntents: false,
|
|
1200
|
+
parseKeyphrases: false
|
|
1201
|
+
}
|
|
1202
|
+
});
|
|
1203
|
+
return;
|
|
1204
|
+
case "skip":
|
|
1205
|
+
input.result = {
|
|
1206
|
+
"skipped": true,
|
|
1207
|
+
"intent": input.intent,
|
|
1208
|
+
"reason": "Intent escalation was triggered and question was skipped"
|
|
1209
|
+
};
|
|
1210
|
+
if (storeResultInContext && contextKey) {
|
|
1211
|
+
// check whether contextKey or inputKey is a deep query and set
|
|
1212
|
+
// storage location accordingly
|
|
1213
|
+
let location = context;
|
|
1214
|
+
let target = contextKey;
|
|
1215
|
+
// this is a deep query
|
|
1216
|
+
if (target.indexOf(".") > -1) {
|
|
1217
|
+
const splits = target.split(".");
|
|
1218
|
+
location = BaseContext_1.BaseContext.findLocationPathStateless(splits, true, location);
|
|
1219
|
+
target = splits[splits.length - 1];
|
|
1220
|
+
}
|
|
1221
|
+
location[target] = {
|
|
1222
|
+
"skipped": true,
|
|
1223
|
+
"intent": input.intent,
|
|
1224
|
+
"reason": "Intent escalation was triggered and question was skipped"
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
api.setLastExecutionMarker(nodeId, -1);
|
|
1228
|
+
api.resetExecutionAmount(nodeId);
|
|
1229
|
+
api.deleteSystemContext('activeQuestion');
|
|
1230
|
+
return;
|
|
1231
|
+
case "text":
|
|
1232
|
+
say_1.SAY.function({
|
|
1233
|
+
cognigy,
|
|
1234
|
+
childConfigs: [],
|
|
1235
|
+
nodeId,
|
|
1236
|
+
config: { say: escalateIntentsMessage }
|
|
1237
|
+
});
|
|
1238
|
+
if (escalateIntentsRepromptPrevention) {
|
|
1239
|
+
sayReprompt = false;
|
|
1240
|
+
}
|
|
1241
|
+
break;
|
|
1242
|
+
case "handover":
|
|
1243
|
+
resetNodeState_1.resetNodeState(api, nodeId);
|
|
1244
|
+
await service_1.HANDOVER_V2.function({
|
|
1245
|
+
cognigy,
|
|
1246
|
+
childConfigs: [],
|
|
1247
|
+
nodeId,
|
|
1248
|
+
config: {
|
|
1249
|
+
text: escalateIntentsHandoverText,
|
|
1250
|
+
repeatHandoverMessage: escalateIntentsRepeatHandoverMessage,
|
|
1251
|
+
cancelIntent: escalateIntentsHandoverCancelIntent,
|
|
1252
|
+
quickReply: escalateIntentsHandoverQuickReply,
|
|
1253
|
+
chatwootInboxId: escalateIntentsHandoverChatwootInboxId,
|
|
1254
|
+
liveAgentInboxId: escalateIntentsHandoverLiveAgentInboxId,
|
|
1255
|
+
salesforcePrechatEntities: escalateIntentsHandoverSalesforcePrechatEntities,
|
|
1256
|
+
salesforcePrechatDetails: escalateIntentsHandoverSalesforcePrechatDetails
|
|
1257
|
+
}
|
|
1258
|
+
});
|
|
1259
|
+
return;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
// #endregion 5.2.1 EscalationOnIntent
|
|
1264
|
+
// #region 5.2.2 EscalationOnAnswers
|
|
1265
|
+
if ((!escalatedInIntent && escalatedInIntent != undefined) && escalateAnswersAction && escalateAnswersAction !== "none") {
|
|
1266
|
+
// the user set special escalation handling in case multiple wrong answers were provided
|
|
1267
|
+
// this is only done if intent escalation didnt happen
|
|
1268
|
+
const lastEscalation = api.getSystemContext(`lastEscalation-${nodeId}`);
|
|
1269
|
+
let addEscalationText = false;
|
|
1270
|
+
if (escalateAnswersOnce) {
|
|
1271
|
+
addEscalationText = currentNodeExecutionAmount === escalateAnswersThreshold;
|
|
1272
|
+
}
|
|
1273
|
+
else {
|
|
1274
|
+
addEscalationText = currentNodeExecutionAmount >= escalateAnswersThreshold;
|
|
1275
|
+
}
|
|
1276
|
+
// either we escalate only once on the threshold or always from the threshold on, depending on what was set
|
|
1277
|
+
if (lastEscalation && lastEscalation === cognigy.input.execution) {
|
|
1278
|
+
// escalation already happened on this execution - don't escalate again
|
|
1279
|
+
sayReprompt = false;
|
|
1280
|
+
}
|
|
1281
|
+
else if (addEscalationText) {
|
|
1282
|
+
// User has given enough wrong answers to trigger the threshold
|
|
1283
|
+
activeQuestion.escalationCount++;
|
|
1284
|
+
switch (escalateAnswersAction) {
|
|
1285
|
+
case "goto":
|
|
1286
|
+
if (!escalateAnswersGotoTarget) {
|
|
1287
|
+
throw new Error("GoTo Target is required");
|
|
1288
|
+
}
|
|
1289
|
+
// remember when this escalation happened
|
|
1290
|
+
api.setSystemContext(`lastEscalation-${nodeId}`, cognigy.input.execution);
|
|
1291
|
+
await goTo_1.GO_TO.function({
|
|
1292
|
+
cognigy,
|
|
1293
|
+
childConfigs: [],
|
|
1294
|
+
nodeId,
|
|
1295
|
+
config: {
|
|
1296
|
+
flowNode: escalateAnswersGotoTarget,
|
|
1297
|
+
absorbContext: false,
|
|
1298
|
+
executionMode: escalateAnswersGotoExecutionMode,
|
|
1299
|
+
injectedText: escalateAnswersInjectedText,
|
|
1300
|
+
injectedData: Object.assign({ "escalation": api.getExecutionAmount(nodeId) - escalateAnswersThreshold }, input.data, escalateAnswersInjectedData),
|
|
1301
|
+
parseIntents: false,
|
|
1302
|
+
parseKeyphrases: false
|
|
1303
|
+
}
|
|
1304
|
+
});
|
|
1305
|
+
return;
|
|
1306
|
+
case "execute":
|
|
1307
|
+
if (!escalateAnswersExecuteTarget) {
|
|
1308
|
+
throw new Error("Execute Flow Target is required");
|
|
1309
|
+
}
|
|
1310
|
+
// set myself as next Node on the stack, so we can return to me
|
|
1311
|
+
api.setNextNode(nodeId);
|
|
1312
|
+
// remember when this escalation happened
|
|
1313
|
+
api.setSystemContext(`lastEscalation-${nodeId}`, cognigy.input.execution);
|
|
1314
|
+
// execute chosen Flow
|
|
1315
|
+
await executeFlow_1.EXECUTE_FLOW.function({
|
|
1316
|
+
cognigy,
|
|
1317
|
+
childConfigs: [],
|
|
1318
|
+
nodeId,
|
|
1319
|
+
config: {
|
|
1320
|
+
flowNode: escalateAnswersExecuteTarget,
|
|
1321
|
+
absorbContext: false,
|
|
1322
|
+
parseIntents: false,
|
|
1323
|
+
parseKeyphrases: false
|
|
1324
|
+
}
|
|
1325
|
+
});
|
|
1326
|
+
return;
|
|
1327
|
+
case "skip":
|
|
1328
|
+
input.result = {
|
|
1329
|
+
"skipped": true,
|
|
1330
|
+
"reason": "Too many incorrect answers were given and question was skipped"
|
|
1331
|
+
};
|
|
1332
|
+
if (storeResultInContext && contextKey) {
|
|
1333
|
+
// check whether contextKey or inputKey is a deep query and set
|
|
1334
|
+
// storage location accordingly
|
|
1335
|
+
let location = context;
|
|
1336
|
+
let target = contextKey;
|
|
1337
|
+
// this is a deep query
|
|
1338
|
+
if (target.indexOf(".") > -1) {
|
|
1339
|
+
const splits = target.split(".");
|
|
1340
|
+
location = BaseContext_1.BaseContext.findLocationPathStateless(splits, true, location);
|
|
1341
|
+
target = splits[splits.length - 1];
|
|
1342
|
+
}
|
|
1343
|
+
location[target] = {
|
|
1344
|
+
"skipped": true,
|
|
1345
|
+
"reason": "Too many incorrect answers were given and question was skipped"
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
api.setLastExecutionMarker(nodeId, -1);
|
|
1349
|
+
api.resetExecutionAmount(nodeId);
|
|
1350
|
+
api.deleteSystemContext('activeQuestion');
|
|
1351
|
+
return;
|
|
1352
|
+
case "text":
|
|
1353
|
+
say_1.SAY.function({
|
|
1354
|
+
cognigy,
|
|
1355
|
+
childConfigs: [],
|
|
1356
|
+
nodeId,
|
|
1357
|
+
config: { say: escalateAnswersMessage }
|
|
1358
|
+
});
|
|
1359
|
+
if (escalateAnswersRepromptPrevention) {
|
|
1360
|
+
sayReprompt = false;
|
|
1361
|
+
}
|
|
1362
|
+
break;
|
|
1363
|
+
case "handover":
|
|
1364
|
+
resetNodeState_1.resetNodeState(api, nodeId);
|
|
1365
|
+
await service_1.HANDOVER_V2.function({
|
|
1366
|
+
cognigy,
|
|
1367
|
+
childConfigs: [],
|
|
1368
|
+
nodeId,
|
|
1369
|
+
config: {
|
|
1370
|
+
text: escalateAnswersHandoverText,
|
|
1371
|
+
cancelIntent: escalateAnswersHandoverCancelIntent,
|
|
1372
|
+
repeatHandoverMessage: escalateAnswersRepeatHandoverMessage,
|
|
1373
|
+
quickReply: escalateAnswersHandoverQuickReply,
|
|
1374
|
+
chatwootInboxId: escalateAnswersHandoverChatwootInboxId,
|
|
1375
|
+
liveAgentInboxId: escalateAnswersHandoverLiveAgentInboxId,
|
|
1376
|
+
salesforcePrechatEntities: escalateAnswersHandoverSalesforcePrechatEntities,
|
|
1377
|
+
salesforcePrechatDetails: escalateAnswersHandoverSalesforcePrechatDetails
|
|
1378
|
+
}
|
|
1379
|
+
});
|
|
1380
|
+
return;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
// #endregion 5.2.2 EscalationOnAnswers
|
|
1385
|
+
// #region 5.2.3 Reprompt
|
|
1386
|
+
// check if there is an extra condition defined for reprompts and check whether it was truthy
|
|
1387
|
+
if (sayReprompt && repromptCondition) {
|
|
1388
|
+
sayReprompt = !!api.parseCognigyScriptCondition(repromptCondition);
|
|
1389
|
+
}
|
|
1390
|
+
// if we decided to skip the reprompt on intent and there
|
|
1391
|
+
// is an intent, don't say it
|
|
1392
|
+
if (skipRepromptOnIntent && cognigy.input.intent) {
|
|
1393
|
+
sayReprompt = false;
|
|
1394
|
+
}
|
|
1395
|
+
if (validationMessage && !isFirstExecution && sayReprompt) {
|
|
1396
|
+
activeQuestion.repromptCount++;
|
|
317
1397
|
/* Output Reprompt Message */
|
|
318
1398
|
say_1.SAY.function({ cognigy, childConfigs: [], nodeId, config: { say: { type: "text", text: [validationMessage] } } });
|
|
319
1399
|
/* If repeat toggle is on, also output question (and maybe datepicker) again */
|
|
@@ -324,9 +1404,9 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
324
1404
|
nodeId,
|
|
325
1405
|
config: { say }
|
|
326
1406
|
});
|
|
327
|
-
|
|
328
|
-
if (type === "date" && !datepicker_hidePicker)
|
|
1407
|
+
if (config.type === "date" && !config.datepicker_hidePicker) {
|
|
329
1408
|
datepickerUtils_1.showDatePicker(cognigy, config);
|
|
1409
|
+
}
|
|
330
1410
|
}
|
|
331
1411
|
}
|
|
332
1412
|
else {
|
|
@@ -337,12 +1417,17 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
|
|
|
337
1417
|
nodeId,
|
|
338
1418
|
config: { say }
|
|
339
1419
|
});
|
|
340
|
-
|
|
341
|
-
if (type === "date" && !datepicker_hidePicker)
|
|
1420
|
+
if (config.type === "date" && !config.datepicker_hidePicker) {
|
|
342
1421
|
datepickerUtils_1.showDatePicker(cognigy, config);
|
|
1422
|
+
}
|
|
343
1423
|
}
|
|
1424
|
+
// #endregion 5.2.3 Reprompt
|
|
1425
|
+
// #region 5.2.4 SetNextNodeAndStop
|
|
1426
|
+
api.setLastExecutionMarker(nodeId, cognigy.input.execution);
|
|
344
1427
|
api.setNextNode(nodeId);
|
|
345
1428
|
api.stopExecution();
|
|
1429
|
+
// #endregion 5.2.4 SetNextNodeAndStop
|
|
1430
|
+
// #endregion 5.2 AnswerIsInvalid
|
|
346
1431
|
}
|
|
347
1432
|
}
|
|
348
1433
|
});
|