@cognigy/rest-api-client 0.11.0 → 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 +1 -1
- package/build/GenericUploadFn.js +1 -1
- package/build/RestAPIClient.js +14 -0
- package/build/apigroups/AdministrationAPIGroup_2_0.js +25 -3
- package/build/apigroups/AnalyticsAPIGroup_2_0.js +12 -0
- package/build/apigroups/InsightsAPIGroup_2_0.js +53 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +23 -2
- package/build/apigroups/index.js +5 -1
- package/build/authentication/BasicAuthentication/BasicAuthentication.js +8 -1
- package/build/authentication/OAuth2/ILoginByClientCredentialsParameters.js +3 -0
- package/build/authentication/OAuth2/IOAuth2ClientCredentialsGrantAccessTokenRequest.js +11 -0
- package/build/authentication/OAuth2/OAuth2Authentication.js +41 -15
- package/build/shared/charts/createNodeDescriptor.js +1 -1
- 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/smtp/emailNotification.js +6 -4
- package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +2 -2
- package/build/shared/charts/descriptors/end.js +1 -0
- package/build/shared/charts/descriptors/index.js +86 -67
- package/build/shared/charts/descriptors/logic/goTo.js +1 -0
- package/build/shared/charts/descriptors/logic/if/else.js +2 -0
- package/build/shared/charts/descriptors/logic/if/if.js +2 -1
- package/build/shared/charts/descriptors/logic/if/then.js +2 -0
- package/build/shared/charts/descriptors/logic/index.js +5 -3
- package/build/shared/charts/descriptors/logic/interval/elseInterval.js +1 -0
- package/build/shared/charts/descriptors/logic/interval/onInterval.js +1 -0
- package/build/shared/charts/descriptors/logic/once/afterwards.js +1 -0
- package/build/shared/charts/descriptors/logic/once/onFirstExecution.js +1 -0
- package/build/shared/charts/descriptors/logic/setTranslation.js +88 -0
- package/build/shared/charts/descriptors/logic/switch/case.js +2 -0
- package/build/shared/charts/descriptors/logic/switch/default.js +2 -0
- package/build/shared/charts/descriptors/logic/switch/switch.js +52 -4
- package/build/shared/charts/descriptors/logic/switchLocale.js +30 -2
- package/build/shared/charts/descriptors/logic/think.js +7 -3
- package/build/shared/charts/descriptors/logic/thinkV2.js +104 -0
- package/build/shared/charts/descriptors/logic/wait.js +2 -9
- package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +1 -0
- package/build/shared/charts/descriptors/message/checkChannelChange/onNo.js +3 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/onYes.js +3 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/unchanged.js +3 -1
- package/build/shared/charts/descriptors/message/question/onAnswer.js +3 -1
- package/build/shared/charts/descriptors/message/question/onQuestion.js +3 -1
- package/build/shared/charts/descriptors/message/question/question.js +474 -56
- package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +1 -0
- package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +9 -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/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/executeCognigyNLU.js +5 -0
- 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 +7 -1
- package/build/shared/charts/descriptors/nlu/matchPattern.js +104 -0
- package/build/shared/charts/descriptors/nlu/utils/patternMatcher.js +197 -0
- package/build/shared/charts/descriptors/profile/index.js +5 -1
- package/build/shared/charts/descriptors/profile/overwriteAnalytics.js +54 -2
- 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/service/handover.js +29 -2
- package/build/shared/charts/descriptors/service/handoverV2.js +129 -0
- package/build/shared/charts/descriptors/service/httpRequest.js +26 -7
- package/build/shared/charts/descriptors/service/index.js +3 -1
- package/build/shared/charts/descriptors/service/triggerFunction/onScheduled.js +2 -0
- package/build/shared/charts/descriptors/service/triggerFunction/onSchedulingError.js +2 -0
- package/build/shared/charts/descriptors/start.js +1 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +36 -16
- package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +2 -2
- package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +9 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +9 -1
- 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 +9 -1
- package/build/shared/errors/baseError.js +34 -1
- package/build/shared/helper/rest/array.js +19 -0
- package/build/shared/helper/rest/boolean.js +5 -1
- package/build/shared/helper/rest/index.js +4 -1
- package/build/shared/interfaces/IEndpointTranslationSettings.js +32 -0
- package/build/shared/interfaces/IHandoverRequestStatus.js +3 -0
- package/build/shared/interfaces/{restAPI/administration/user/v2.0/IDeleteUserMeRest_2_0.js → IHttpRequest.js} +1 -1
- package/build/shared/interfaces/IOrganisation.js +1 -1
- package/build/shared/interfaces/TEntrypointType.js +2 -0
- package/build/shared/interfaces/amqpInterface.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsFlowHistoryData.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +196 -45
- package/build/shared/interfaces/analytics/IStepEvent.js +2 -1
- package/build/shared/interfaces/analytics/TAnalyticsMode.js +10 -0
- package/build/shared/interfaces/analytics/TAnalyticsType.js +5 -0
- package/build/shared/interfaces/debugEvents/IErrorEventPayload.js +3 -0
- package/build/shared/interfaces/debugEvents/TDebugEndpointEvent.js +1 -0
- package/build/shared/interfaces/debugEvents/TDebugEventType.js +2 -1
- package/build/shared/interfaces/debugEvents/TSessionStateEmitParams.js +3 -0
- package/build/shared/interfaces/handover.js +81 -3
- package/build/shared/interfaces/license.js +34 -0
- package/build/shared/interfaces/license.js.map +1 -0
- package/build/shared/interfaces/messageAPI/ai.js +15 -1
- package/build/shared/interfaces/messageAPI/endpoints.js +273 -9
- package/build/shared/interfaces/resources/IAuditEvent.js +15 -2
- package/build/shared/interfaces/resources/IChartNode.js +56 -10
- package/build/shared/interfaces/resources/IEndpoint.js +5 -2
- package/build/shared/interfaces/resources/IFlow.js +1 -1
- package/build/shared/interfaces/resources/ILexicon.js +8 -2
- package/build/shared/interfaces/resources/INLUConnector.js +15 -2
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +164 -52
- package/build/shared/interfaces/resources/IOptionsResolverFunction.js +18 -0
- package/build/shared/interfaces/resources/IPlaybookRun.js +61 -0
- package/build/shared/interfaces/resources/IProject.js +7 -1
- package/build/shared/interfaces/resources/ISlotFiller.js +38 -21
- package/build/shared/interfaces/resources/ISnapshot.js +1 -1
- package/build/shared/interfaces/resources/ITrackAnalyticsStepsArguments.js +3 -0
- package/build/shared/interfaces/resources/TNLUConnectorType.js +2 -1
- package/build/shared/interfaces/resources/TResourceType.js +1 -0
- package/build/shared/interfaces/resources/TRestChannelType.js +5 -0
- package/build/shared/interfaces/resources/TSocketChannelType.js +5 -1
- package/build/shared/interfaces/resources/chart/IChartExecutable.js +3 -2
- package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +1 -0
- package/build/shared/interfaces/resources/intent/IIntent.js +4 -2
- package/build/shared/interfaces/resources/intent/IIntentTrainGroup.js +3 -1
- package/build/shared/interfaces/resources/intent/ISentence.js +32 -8
- package/build/shared/interfaces/resources/settings/IAgentSettings.js +40 -2
- package/build/shared/interfaces/resources/settings/IFlowSettings.js +1 -1
- 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/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/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/resources/chart/v2.0/ISearchChartNodesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/IUpdateExtensionPackageRest_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/intent/ITrainYesNoIntentsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IComposeLexiconDownloadLinkRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +3 -1
- package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/IOptionsResolverRest_2_0.js +3 -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/security/IACL.js +1 -1
- package/build/shared/interfaces/security/IPermission.js +6 -0
- package/build/shared/interfaces/security/IRole.js +8 -2
- package/build/shared/interfaces/sessionstate/ISessionState.js +3 -0
- package/build/shared/interfaces/sessionstate/index.js +3 -0
- package/build/shared/interfaces/trainer/ITrainerRecord.js +4 -0
- package/build/shared/interfaces/translation.js +11 -0
- package/package.json +5 -5
- package/types/index.d.ts +3905 -1178
- package/build/shared/charts/descriptors/logic/checkFrustration.js +0 -82
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nodeDescriptorSetSchema = exports.nodeDescriptorSchema = exports.nodeFieldAndSectionFormElementSchema = exports.nodeSectionSchema = exports.nodeFieldSchema = exports.nodeFieldConditionSchema = exports.nodeFieldORConditionSchema = exports.nodeFieldANDConditionSchema = exports.nodeFieldSingleConditionSchema = exports.nodePreviewTypes = void 0;
|
|
3
|
+
exports.nodeDescriptorSetSchema = exports.nodeDescriptorSchema = exports.nodeFieldAndSectionFormElementSchema = exports.nodeSectionSchema = exports.nodeFieldSchema = exports.nodeOptionsResolverSchema = exports.nodeFieldConditionSchema = exports.nodeFieldORConditionSchema = exports.nodeFieldANDConditionSchema = exports.nodeFieldSingleConditionSchema = exports.searchableNodeFieldTypes = exports.nodeFieldTypes = exports.nodePreviewTypes = void 0;
|
|
4
4
|
const TResourceType_1 = require("./TResourceType");
|
|
5
5
|
const ISnippet_1 = require("./ISnippet");
|
|
6
6
|
const nodeAppearanceSchema = {
|
|
@@ -10,9 +10,10 @@ const nodeAppearanceSchema = {
|
|
|
10
10
|
properties: {
|
|
11
11
|
color: { type: "string", format: "color" },
|
|
12
12
|
textColor: { type: "string", format: "color" },
|
|
13
|
+
contrastTextColor: { type: "string", format: "color" },
|
|
13
14
|
showIcon: { type: "boolean" },
|
|
14
|
-
variant: { type: "string", enum: ["regular", "mini", "hexagon"] }
|
|
15
|
-
}
|
|
15
|
+
variant: { type: "string", enum: ["regular", "mini", "hexagon"] }
|
|
16
|
+
}
|
|
16
17
|
};
|
|
17
18
|
const nodeBehaviorSchema = {
|
|
18
19
|
title: "nodeBehaviorSchema",
|
|
@@ -20,8 +21,8 @@ const nodeBehaviorSchema = {
|
|
|
20
21
|
additionalProperties: false,
|
|
21
22
|
properties: {
|
|
22
23
|
stopping: { type: "boolean" },
|
|
23
|
-
entrypoint: { type: "boolean" }
|
|
24
|
-
}
|
|
24
|
+
entrypoint: { type: "boolean" }
|
|
25
|
+
}
|
|
25
26
|
};
|
|
26
27
|
exports.nodePreviewTypes = ["text", "sayNode", "custom", "resource"];
|
|
27
28
|
const nodePreviewSchema = {
|
|
@@ -30,8 +31,8 @@ const nodePreviewSchema = {
|
|
|
30
31
|
additionalProperties: false,
|
|
31
32
|
properties: {
|
|
32
33
|
key: { type: "string", minLength: 1, maxLength: 200 },
|
|
33
|
-
type: { type: "string", enum: [...exports.nodePreviewTypes] }
|
|
34
|
-
}
|
|
34
|
+
type: { type: "string", enum: [...exports.nodePreviewTypes] }
|
|
35
|
+
}
|
|
35
36
|
};
|
|
36
37
|
const nodeConstraintSchema = {
|
|
37
38
|
title: "nodeConstraintSchema",
|
|
@@ -40,13 +41,13 @@ const nodeConstraintSchema = {
|
|
|
40
41
|
properties: {
|
|
41
42
|
blacklist: {
|
|
42
43
|
type: "array",
|
|
43
|
-
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
44
|
+
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
44
45
|
},
|
|
45
46
|
whitelist: {
|
|
46
47
|
type: "array",
|
|
47
|
-
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
48
|
-
}
|
|
49
|
-
}
|
|
48
|
+
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
50
51
|
};
|
|
51
52
|
const nodeConstraintsSchema = {
|
|
52
53
|
title: "nodeConstraintsSchema",
|
|
@@ -54,6 +55,7 @@ const nodeConstraintsSchema = {
|
|
|
54
55
|
additionalProperties: false,
|
|
55
56
|
properties: {
|
|
56
57
|
collapsable: { type: "boolean" },
|
|
58
|
+
childFlowCreatable: { type: "boolean" },
|
|
57
59
|
creatable: { type: "boolean" },
|
|
58
60
|
deletable: { type: "boolean" },
|
|
59
61
|
editable: { type: "boolean" },
|
|
@@ -64,10 +66,10 @@ const nodeConstraintsSchema = {
|
|
|
64
66
|
properties: {
|
|
65
67
|
children: nodeConstraintSchema,
|
|
66
68
|
predecessor: nodeConstraintSchema,
|
|
67
|
-
successor: nodeConstraintSchema
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
69
|
+
successor: nodeConstraintSchema
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
71
73
|
};
|
|
72
74
|
const nodeDependenciesSchema = {
|
|
73
75
|
title: "nodeDependenciesSchema",
|
|
@@ -76,11 +78,11 @@ const nodeDependenciesSchema = {
|
|
|
76
78
|
properties: {
|
|
77
79
|
children: {
|
|
78
80
|
type: "array",
|
|
79
|
-
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
80
|
-
}
|
|
81
|
-
}
|
|
81
|
+
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
82
84
|
};
|
|
83
|
-
|
|
85
|
+
exports.nodeFieldTypes = [
|
|
84
86
|
"text",
|
|
85
87
|
"rule",
|
|
86
88
|
"json",
|
|
@@ -92,6 +94,7 @@ const nodeFieldTypes = [
|
|
|
92
94
|
"typescript",
|
|
93
95
|
"xml",
|
|
94
96
|
"textArray",
|
|
97
|
+
"keyValuePairs",
|
|
95
98
|
"chipInput",
|
|
96
99
|
"cognigyText",
|
|
97
100
|
"toggle",
|
|
@@ -114,6 +117,21 @@ const nodeFieldTypes = [
|
|
|
114
117
|
"description",
|
|
115
118
|
"slotFillerArray",
|
|
116
119
|
"function",
|
|
120
|
+
"appTemplate",
|
|
121
|
+
"sttSelect",
|
|
122
|
+
"ttsSelect",
|
|
123
|
+
];
|
|
124
|
+
exports.searchableNodeFieldTypes = [
|
|
125
|
+
"text",
|
|
126
|
+
"json",
|
|
127
|
+
"typescript",
|
|
128
|
+
"xml",
|
|
129
|
+
"textArray",
|
|
130
|
+
"cognigyText",
|
|
131
|
+
"say",
|
|
132
|
+
"code",
|
|
133
|
+
"caseNode",
|
|
134
|
+
"select"
|
|
117
135
|
];
|
|
118
136
|
exports.nodeFieldSingleConditionSchema = {
|
|
119
137
|
title: "nodeFieldSingleConditionSchema",
|
|
@@ -130,11 +148,11 @@ exports.nodeFieldSingleConditionSchema = {
|
|
|
130
148
|
{ type: "number" },
|
|
131
149
|
{ type: "array", items: { type: "number" } },
|
|
132
150
|
{ type: "boolean" },
|
|
133
|
-
{ type: "array", items: { type: "boolean" } }
|
|
134
|
-
]
|
|
151
|
+
{ type: "array", items: { type: "boolean" } }
|
|
152
|
+
]
|
|
135
153
|
},
|
|
136
|
-
negate: { type: "boolean" }
|
|
137
|
-
}
|
|
154
|
+
negate: { type: "boolean" }
|
|
155
|
+
}
|
|
138
156
|
};
|
|
139
157
|
exports.nodeFieldANDConditionSchema = {
|
|
140
158
|
title: "nodeFieldANDConditionSchema",
|
|
@@ -142,8 +160,8 @@ exports.nodeFieldANDConditionSchema = {
|
|
|
142
160
|
additionalProperties: false,
|
|
143
161
|
required: ["and"],
|
|
144
162
|
properties: {
|
|
145
|
-
and: { type: "array",
|
|
146
|
-
}
|
|
163
|
+
and: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
|
|
164
|
+
}
|
|
147
165
|
};
|
|
148
166
|
exports.nodeFieldORConditionSchema = {
|
|
149
167
|
title: "nodeFieldORConditionSchema",
|
|
@@ -151,24 +169,53 @@ exports.nodeFieldORConditionSchema = {
|
|
|
151
169
|
additionalProperties: false,
|
|
152
170
|
required: ["or"],
|
|
153
171
|
properties: {
|
|
154
|
-
or: { type: "array",
|
|
155
|
-
}
|
|
172
|
+
or: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
|
|
173
|
+
}
|
|
156
174
|
};
|
|
157
175
|
exports.nodeFieldConditionSchema = {
|
|
158
176
|
$id: "nodeFieldConditionSchema",
|
|
159
177
|
oneOf: [
|
|
160
178
|
// @ts-ignore
|
|
161
|
-
exports.nodeFieldSingleConditionSchema,
|
|
179
|
+
exports.nodeFieldSingleConditionSchema,
|
|
180
|
+
// @ts-ignore
|
|
181
|
+
exports.nodeFieldANDConditionSchema,
|
|
182
|
+
// @ts-ignore
|
|
183
|
+
exports.nodeFieldORConditionSchema
|
|
162
184
|
]
|
|
163
185
|
};
|
|
186
|
+
exports.nodeOptionsResolverSchema = {
|
|
187
|
+
title: "nodeOptionsResolverSchema",
|
|
188
|
+
type: "object",
|
|
189
|
+
additionalProperties: false,
|
|
190
|
+
properties: {
|
|
191
|
+
dependencies: { type: "array", items: { type: "string", minLength: 1, maxLength: 200 } },
|
|
192
|
+
resolverFunction: {}
|
|
193
|
+
}
|
|
194
|
+
};
|
|
164
195
|
exports.nodeFieldSchema = {
|
|
165
196
|
title: "nodeFieldSchema",
|
|
166
197
|
type: "object",
|
|
167
198
|
additionalProperties: false,
|
|
168
199
|
properties: {
|
|
169
|
-
type: { type: "string", enum: [...nodeFieldTypes] },
|
|
200
|
+
type: { type: "string", enum: [...exports.nodeFieldTypes] },
|
|
170
201
|
key: { type: "string", minLength: 1, maxLength: 200 },
|
|
171
|
-
label: {
|
|
202
|
+
label: {
|
|
203
|
+
oneOf: [
|
|
204
|
+
{ type: "string", minLength: 1, maxLength: 200 },
|
|
205
|
+
{
|
|
206
|
+
type: "object",
|
|
207
|
+
additionalProperties: false,
|
|
208
|
+
properties: {
|
|
209
|
+
default: { type: "string", maxLength: 200 },
|
|
210
|
+
enUS: { type: "string", maxLength: 200 },
|
|
211
|
+
deDE: { type: "string", maxLength: 200 },
|
|
212
|
+
jaJP: { type: "string", maxLength: 200 },
|
|
213
|
+
esES: { type: "string", maxLength: 200 },
|
|
214
|
+
koKR: { type: "string", maxLength: 200 }
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
172
219
|
condition: exports.nodeFieldConditionSchema,
|
|
173
220
|
defaultValue: {
|
|
174
221
|
oneOf: [
|
|
@@ -177,12 +224,29 @@ exports.nodeFieldSchema = {
|
|
|
177
224
|
{ type: "number" },
|
|
178
225
|
{ type: "null" },
|
|
179
226
|
{ type: "object" },
|
|
180
|
-
{ type: "string" }
|
|
181
|
-
]
|
|
227
|
+
{ type: "string" }
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
description: {
|
|
231
|
+
oneOf: [
|
|
232
|
+
{ type: "string", minLength: 1, maxLength: 200 },
|
|
233
|
+
{
|
|
234
|
+
type: "object",
|
|
235
|
+
additionalProperties: false,
|
|
236
|
+
properties: {
|
|
237
|
+
default: { type: "string", maxLength: 200 },
|
|
238
|
+
enUS: { type: "string", maxLength: 200 },
|
|
239
|
+
deDE: { type: "string", maxLength: 200 },
|
|
240
|
+
jaJP: { type: "string", maxLength: 200 },
|
|
241
|
+
esES: { type: "string", maxLength: 200 },
|
|
242
|
+
koKR: { type: "string", maxLength: 200 }
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
]
|
|
182
246
|
},
|
|
183
|
-
description: { type: "string", maxLength: 200 },
|
|
184
247
|
params: { type: "object" },
|
|
185
|
-
|
|
248
|
+
optionsResolver: exports.nodeOptionsResolverSchema
|
|
249
|
+
}
|
|
186
250
|
};
|
|
187
251
|
exports.nodeSectionSchema = {
|
|
188
252
|
title: "nodeSectionSchema",
|
|
@@ -190,7 +254,23 @@ exports.nodeSectionSchema = {
|
|
|
190
254
|
additionalProperties: false,
|
|
191
255
|
properties: {
|
|
192
256
|
key: { type: "string", minLength: 1, maxLength: 200 },
|
|
193
|
-
label: {
|
|
257
|
+
label: {
|
|
258
|
+
oneOf: [
|
|
259
|
+
{ type: "string", minLength: 1, maxLength: 200 },
|
|
260
|
+
{
|
|
261
|
+
type: "object",
|
|
262
|
+
additionalProperties: false,
|
|
263
|
+
properties: {
|
|
264
|
+
default: { type: "string", maxLength: 200 },
|
|
265
|
+
enUS: { type: "string", maxLength: 200 },
|
|
266
|
+
deDE: { type: "string", maxLength: 200 },
|
|
267
|
+
jaJP: { type: "string", maxLength: 200 },
|
|
268
|
+
esES: { type: "string", maxLength: 200 },
|
|
269
|
+
koKR: { type: "string", maxLength: 200 }
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
194
274
|
condition: exports.nodeFieldConditionSchema,
|
|
195
275
|
defaultCollapsed: { type: "boolean" },
|
|
196
276
|
fields: {
|
|
@@ -201,10 +281,10 @@ exports.nodeSectionSchema = {
|
|
|
201
281
|
items: {
|
|
202
282
|
type: "string",
|
|
203
283
|
minLength: 1,
|
|
204
|
-
maxLength: 200
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
284
|
+
maxLength: 200
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
208
288
|
};
|
|
209
289
|
exports.nodeFieldAndSectionFormElementSchema = {
|
|
210
290
|
title: "nodeFieldAndSectionFormElementSchema",
|
|
@@ -212,8 +292,8 @@ exports.nodeFieldAndSectionFormElementSchema = {
|
|
|
212
292
|
required: ["key", "type"],
|
|
213
293
|
properties: {
|
|
214
294
|
key: { type: "string", minLength: 1, maxLength: 200 },
|
|
215
|
-
type: { type: "string", enum: ["field", "section"] }
|
|
216
|
-
}
|
|
295
|
+
type: { type: "string", enum: ["field", "section"] }
|
|
296
|
+
}
|
|
217
297
|
};
|
|
218
298
|
exports.nodeDescriptorSchema = {
|
|
219
299
|
title: "nodeDescriptorSchema",
|
|
@@ -223,8 +303,40 @@ exports.nodeDescriptorSchema = {
|
|
|
223
303
|
_id: { type: "string", format: "mongo-id" },
|
|
224
304
|
type: { type: "string", minLength: 1, maxLength: 200 },
|
|
225
305
|
parentType: { type: ["string", "null"], minLength: 1, maxLength: 200 },
|
|
226
|
-
defaultLabel: {
|
|
227
|
-
|
|
306
|
+
defaultLabel: {
|
|
307
|
+
oneOf: [
|
|
308
|
+
{ type: "string", minLength: 1, maxLength: 200 },
|
|
309
|
+
{
|
|
310
|
+
type: "object",
|
|
311
|
+
additionalProperties: false,
|
|
312
|
+
properties: {
|
|
313
|
+
default: { type: "string", maxLength: 200 },
|
|
314
|
+
enUS: { type: "string", maxLength: 200 },
|
|
315
|
+
deDE: { type: "string", maxLength: 200 },
|
|
316
|
+
jaJP: { type: "string", maxLength: 200 },
|
|
317
|
+
esES: { type: "string", maxLength: 200 },
|
|
318
|
+
koKR: { type: "string", maxLength: 200 }
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
summary: {
|
|
324
|
+
oneOf: [
|
|
325
|
+
{ type: "string", maxLength: 200 },
|
|
326
|
+
{
|
|
327
|
+
type: "object",
|
|
328
|
+
additionalProperties: false,
|
|
329
|
+
properties: {
|
|
330
|
+
default: { type: "string", maxLength: 200 },
|
|
331
|
+
enUS: { type: "string", maxLength: 200 },
|
|
332
|
+
deDE: { type: "string", maxLength: 200 },
|
|
333
|
+
jaJP: { type: "string", maxLength: 200 },
|
|
334
|
+
esES: { type: "string", maxLength: 200 },
|
|
335
|
+
koKR: { type: "string", maxLength: 200 }
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
},
|
|
228
340
|
appearance: nodeAppearanceSchema,
|
|
229
341
|
behavior: nodeBehaviorSchema,
|
|
230
342
|
constraints: nodeConstraintsSchema,
|
|
@@ -236,25 +348,25 @@ exports.nodeDescriptorSchema = {
|
|
|
236
348
|
type: "array",
|
|
237
349
|
items: { type: "string" },
|
|
238
350
|
uniqueItems: true,
|
|
239
|
-
minItems: 0
|
|
351
|
+
minItems: 0
|
|
240
352
|
},
|
|
241
353
|
tokens: {
|
|
242
354
|
type: "array",
|
|
243
355
|
items: ISnippet_1.snippetDataSchema,
|
|
244
|
-
uniqueItems: true
|
|
356
|
+
uniqueItems: true
|
|
245
357
|
},
|
|
246
358
|
sections: {
|
|
247
359
|
type: "array",
|
|
248
360
|
additionalItems: false,
|
|
249
|
-
items: exports.nodeSectionSchema
|
|
361
|
+
items: exports.nodeSectionSchema
|
|
250
362
|
},
|
|
251
363
|
form: {
|
|
252
364
|
type: "array",
|
|
253
365
|
additionalItems: false,
|
|
254
366
|
maxLength: 25,
|
|
255
|
-
items: exports.nodeFieldAndSectionFormElementSchema
|
|
256
|
-
}
|
|
257
|
-
}
|
|
367
|
+
items: exports.nodeFieldAndSectionFormElementSchema
|
|
368
|
+
}
|
|
369
|
+
}
|
|
258
370
|
};
|
|
259
371
|
exports.nodeDescriptorSetSchema = {
|
|
260
372
|
title: "nodeDescriptorSetSchema",
|
|
@@ -270,10 +382,10 @@ exports.nodeDescriptorSetSchema = {
|
|
|
270
382
|
descriptors: {
|
|
271
383
|
type: "array",
|
|
272
384
|
additionalItems: false,
|
|
273
|
-
items: exports.nodeDescriptorSchema
|
|
385
|
+
items: exports.nodeDescriptorSchema
|
|
274
386
|
},
|
|
275
387
|
resourceType: { type: "string", enum: TResourceType_1.chartableResourceTypes },
|
|
276
|
-
trustedCode: { type: "boolean" }
|
|
277
|
-
}
|
|
388
|
+
trustedCode: { type: "boolean" }
|
|
389
|
+
}
|
|
278
390
|
};
|
|
279
391
|
//# sourceMappingURL=INodeDescriptorSet.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.optionsResolverReturnDataSchema = void 0;
|
|
4
|
+
exports.optionsResolverReturnDataSchema = {
|
|
5
|
+
title: "optionsResolverReturnDataSetSchema",
|
|
6
|
+
type: "array",
|
|
7
|
+
items: {
|
|
8
|
+
type: "object",
|
|
9
|
+
required: ["label", "value"],
|
|
10
|
+
additionalProperties: false,
|
|
11
|
+
properties: {
|
|
12
|
+
label: { type: "string", minLength: 1, maxLength: 200 },
|
|
13
|
+
value: { type: "string", minLength: 1, maxLength: 200 },
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
additionalItems: false,
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=IOptionsResolverFunction.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.playbookRunSchema = exports.playbookRunDataSchema = exports.playbookRunStepResultSchema = exports.playbookRunStepResultAssertSchema = exports.playbookRunStatus = void 0;
|
|
4
|
+
const IEntityMeta_1 = require("./IEntityMeta");
|
|
5
|
+
exports.playbookRunStatus = [
|
|
6
|
+
"successful",
|
|
7
|
+
"failed"
|
|
8
|
+
];
|
|
9
|
+
exports.playbookRunStepResultAssertSchema = {
|
|
10
|
+
title: "playbookRunStepResultAssertSchema",
|
|
11
|
+
type: "object",
|
|
12
|
+
additionalProperties: false,
|
|
13
|
+
properties: {
|
|
14
|
+
_id: { type: "string", format: "mongo-id" },
|
|
15
|
+
type: { type: "string", maxLength: 200 },
|
|
16
|
+
params: { type: "object" },
|
|
17
|
+
actual: { type: "object" },
|
|
18
|
+
status: { type: "string", enum: [...exports.playbookRunStatus] },
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.playbookRunStepResultSchema = {
|
|
22
|
+
title: "playbookRunStepResultSchema",
|
|
23
|
+
type: "object",
|
|
24
|
+
additionalProperties: false,
|
|
25
|
+
properties: {
|
|
26
|
+
_id: { type: "string", format: "mongo-id" },
|
|
27
|
+
status: { type: "string", enum: [...exports.playbookRunStatus] },
|
|
28
|
+
text: { type: "string", maxLength: 1000 },
|
|
29
|
+
data: { type: "object" },
|
|
30
|
+
asserts: {
|
|
31
|
+
type: "array",
|
|
32
|
+
maxItems: 20,
|
|
33
|
+
items: exports.playbookRunStepResultAssertSchema
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* We don't need a 'playbookRunDataSchema' as we won't allow building
|
|
39
|
+
* an API to update a playbook run.
|
|
40
|
+
*/
|
|
41
|
+
exports.playbookRunDataSchema = {
|
|
42
|
+
title: "playbookRunDataSchema",
|
|
43
|
+
type: "object",
|
|
44
|
+
additionalProperties: true,
|
|
45
|
+
properties: {
|
|
46
|
+
status: { type: "string", enum: [...exports.playbookRunStatus] },
|
|
47
|
+
stepResults: {
|
|
48
|
+
type: "array",
|
|
49
|
+
maxItems: 50,
|
|
50
|
+
items: exports.playbookRunStepResultSchema
|
|
51
|
+
},
|
|
52
|
+
playbookReference: { type: "string", format: "mongo-id" },
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.playbookRunSchema = {
|
|
56
|
+
title: "playbookRunSchema",
|
|
57
|
+
type: "object",
|
|
58
|
+
additionalProperties: true,
|
|
59
|
+
properties: Object.assign(Object.assign(Object.assign({}, exports.playbookRunDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=IPlaybookRun.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateProjectRedisKeys = exports.projectSchema = exports.projectDataSchema = void 0;
|
|
3
|
+
exports.generateProjectRedisKeys = exports.projectSchema = exports.projectPropertiesSchema = exports.projectDataSchema = void 0;
|
|
4
4
|
/* Interfaces & Types */
|
|
5
5
|
const IEntityMeta_1 = require("./IEntityMeta");
|
|
6
6
|
exports.projectDataSchema = {
|
|
@@ -12,6 +12,12 @@ exports.projectDataSchema = {
|
|
|
12
12
|
color: { type: "string", format: "color" },
|
|
13
13
|
},
|
|
14
14
|
};
|
|
15
|
+
exports.projectPropertiesSchema = {
|
|
16
|
+
title: "projectPropertiesSchema",
|
|
17
|
+
type: "object",
|
|
18
|
+
additionalProperties: false,
|
|
19
|
+
properties: Object.assign(Object.assign({}, exports.projectDataSchema.properties), { liveAgentDefaultInbox: { type: "number" } }),
|
|
20
|
+
};
|
|
15
21
|
exports.projectSchema = {
|
|
16
22
|
title: "projectSchema",
|
|
17
23
|
type: "object",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.slotFillerSchema = exports.slotFillerDataSchema = exports.
|
|
3
|
+
exports.slotFillerSchema = exports.slotFillerDataSchema = exports.slotFillerBaseDataSchema = void 0;
|
|
4
4
|
const IEntityMeta_1 = require("./IEntityMeta");
|
|
5
5
|
const TSlotFillerType_1 = require("./TSlotFillerType");
|
|
6
6
|
exports.slotFillerBaseDataSchema = {
|
|
@@ -21,48 +21,65 @@ exports.slotFillerBaseDataSchema = {
|
|
|
21
21
|
resultLocation: { type: "string" },
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
const slotFillerKeyphraseDataSchema = {
|
|
25
25
|
title: "slotFillerKeyphraseDataSchema",
|
|
26
26
|
type: "object",
|
|
27
27
|
additionalProperties: false,
|
|
28
|
-
properties:
|
|
28
|
+
properties: {
|
|
29
|
+
type: { type: "string", enum: ["slot"] },
|
|
30
|
+
slot: { type: "string", format: "resource-name" },
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const slotFillerKeyphraseSchema = {
|
|
34
|
+
title: "slotFillerKeyphraseSchema",
|
|
35
|
+
type: "object",
|
|
36
|
+
additionalProperties: false,
|
|
37
|
+
properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), slotFillerKeyphraseDataSchema.properties)
|
|
29
38
|
};
|
|
30
|
-
|
|
39
|
+
const slotFillerRegexDataSchema = {
|
|
31
40
|
title: "slotFillerRegexDataSchema",
|
|
32
41
|
type: "object",
|
|
33
42
|
additionalProperties: false,
|
|
34
43
|
required: ["regex"],
|
|
35
|
-
properties:
|
|
44
|
+
properties: {
|
|
45
|
+
type: { type: "string", enum: ["regex"] },
|
|
46
|
+
regex: { type: "string", format: "regex" },
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const slotFillerRegexSchema = {
|
|
50
|
+
title: "slotFillerRegexSchema",
|
|
51
|
+
type: "object",
|
|
52
|
+
additionalProperties: false,
|
|
53
|
+
required: ["regex"],
|
|
54
|
+
properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), slotFillerRegexDataSchema.properties)
|
|
36
55
|
};
|
|
37
|
-
|
|
56
|
+
const slotFillerGenericDataSchema = {
|
|
38
57
|
title: "slotFillerGenericDataSchema",
|
|
39
58
|
type: "object",
|
|
40
59
|
additionalProperties: false,
|
|
41
|
-
properties:
|
|
60
|
+
properties: {
|
|
61
|
+
type: { type: "string", enum: [...TSlotFillerType_1.slotFillerTypes.filter(value => ["regex", "slot"].includes(value) === false)] },
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const slotFillerGenericSchema = {
|
|
65
|
+
title: "slotFillerGenericSchema",
|
|
66
|
+
type: "object",
|
|
67
|
+
additionalProperties: false,
|
|
68
|
+
properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), slotFillerGenericDataSchema.properties)
|
|
42
69
|
};
|
|
43
70
|
exports.slotFillerDataSchema = {
|
|
44
71
|
title: "slotFillerDataSchema",
|
|
45
72
|
type: "object",
|
|
46
73
|
oneOf: [
|
|
47
|
-
{ properties:
|
|
48
|
-
{ properties:
|
|
49
|
-
{ properties:
|
|
74
|
+
{ properties: slotFillerGenericSchema.properties },
|
|
75
|
+
{ properties: slotFillerKeyphraseSchema.properties },
|
|
76
|
+
{ properties: slotFillerRegexSchema.properties },
|
|
50
77
|
]
|
|
51
78
|
};
|
|
52
79
|
exports.slotFillerSchema = {
|
|
53
80
|
title: "slotFillerSchema",
|
|
54
81
|
type: "object",
|
|
55
82
|
additionalProperties: false,
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerGenericDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerKeyphraseDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerRegexDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
65
|
-
}
|
|
66
|
-
]
|
|
83
|
+
properties: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerBaseDataSchema.properties), slotFillerGenericDataSchema.properties), slotFillerKeyphraseDataSchema.properties), slotFillerRegexDataSchema.properties), { type: { type: "string", enum: [...new Set(TSlotFillerType_1.slotFillerTypes)] }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
|
|
67
84
|
};
|
|
68
85
|
//# sourceMappingURL=ISlotFiller.js.map
|
|
@@ -26,6 +26,6 @@ exports.snapshotSchema = {
|
|
|
26
26
|
title: "snapshotSchema",
|
|
27
27
|
type: "object",
|
|
28
28
|
additionalProperties: false,
|
|
29
|
-
properties: Object.assign(Object.assign({}, exports.snapshotDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, createdAt: { type: "integer", format: "timestamp" }, createdBy: { type: "string", format: "mongo-id" }, hash: { type: "string" }, isPackaged: { type: "boolean" }, packageExpiresAt: { type: ["number", "null"], format: "timestamp" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
|
|
29
|
+
properties: Object.assign(Object.assign({}, exports.snapshotDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, createdAt: { type: "integer", format: "timestamp" }, createdBy: { type: "string", format: "mongo-id" }, hash: { type: "string" }, isPackaged: { type: "boolean" }, runtimeVersion: { type: "number" }, packageExpiresAt: { type: ["number", "null"], format: "timestamp" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=ISnapshot.js.map
|
|
@@ -14,6 +14,7 @@ exports.restChannelTypes = [
|
|
|
14
14
|
"twilio-sms",
|
|
15
15
|
"twilio",
|
|
16
16
|
"userlike",
|
|
17
|
+
"nonConversational",
|
|
17
18
|
];
|
|
18
19
|
exports.restChannelDisplayNames = [
|
|
19
20
|
{
|
|
@@ -63,6 +64,10 @@ exports.restChannelDisplayNames = [
|
|
|
63
64
|
{
|
|
64
65
|
channel: "avaya",
|
|
65
66
|
displayName: "Avaya"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
channel: "nonConversational",
|
|
70
|
+
displayName: "Non Conversational"
|
|
66
71
|
}
|
|
67
72
|
];
|
|
68
73
|
//# sourceMappingURL=TRestChannelType.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.socketChannelDisplayNames = exports.socketChannelTypes = void 0;
|
|
4
|
-
exports.socketChannelTypes = ["realtime", "webchat", "webchat2", "admin-webchat", "socket"];
|
|
4
|
+
exports.socketChannelTypes = ["realtime", "webchat", "webchat2", "admin-webchat", "socket", "voiceGateway2"];
|
|
5
5
|
exports.socketChannelDisplayNames = [
|
|
6
6
|
{
|
|
7
7
|
channel: "realtime",
|
|
@@ -22,6 +22,10 @@ exports.socketChannelDisplayNames = [
|
|
|
22
22
|
{
|
|
23
23
|
channel: "adminconsole",
|
|
24
24
|
displayName: "Interaction Panel"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
channel: "voiceGateway2",
|
|
28
|
+
displayName: "Voicegateway v2"
|
|
25
29
|
}
|
|
26
30
|
];
|
|
27
31
|
//# sourceMappingURL=TSocketChannelType.js.map
|