@botonic/plugin-flow-builder 0.25.0-beta.0 → 0.25.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.
Files changed (105) hide show
  1. package/lib/cjs/action/index.js +1 -1
  2. package/lib/cjs/action/index.js.map +1 -1
  3. package/lib/cjs/action/knowledge-bases.js +2 -1
  4. package/lib/cjs/action/knowledge-bases.js.map +1 -1
  5. package/lib/cjs/api.d.ts +4 -1
  6. package/lib/cjs/api.js +20 -4
  7. package/lib/cjs/api.js.map +1 -1
  8. package/lib/cjs/content-fields/flow-handoff.js +1 -1
  9. package/lib/cjs/content-fields/flow-handoff.js.map +1 -1
  10. package/lib/cjs/content-fields/hubtype-fields/common.d.ts +1 -0
  11. package/lib/cjs/content-fields/hubtype-fields/index.d.ts +1 -0
  12. package/lib/cjs/content-fields/hubtype-fields/index.js +1 -0
  13. package/lib/cjs/content-fields/hubtype-fields/index.js.map +1 -1
  14. package/lib/cjs/content-fields/hubtype-fields/node-types.d.ts +1 -0
  15. package/lib/cjs/content-fields/hubtype-fields/node-types.js +1 -0
  16. package/lib/cjs/content-fields/hubtype-fields/node-types.js.map +1 -1
  17. package/lib/cjs/content-fields/hubtype-fields/nodes.d.ts +2 -1
  18. package/lib/cjs/content-fields/hubtype-fields/smart-intent.d.ts +11 -0
  19. package/lib/cjs/content-fields/hubtype-fields/smart-intent.js +3 -0
  20. package/lib/cjs/content-fields/hubtype-fields/smart-intent.js.map +1 -0
  21. package/lib/cjs/index.d.ts +3 -2
  22. package/lib/cjs/index.js +7 -3
  23. package/lib/cjs/index.js.map +1 -1
  24. package/lib/cjs/{action/tracking.js → tracking.js} +1 -1
  25. package/lib/cjs/tracking.js.map +1 -0
  26. package/lib/cjs/types.d.ts +1 -1
  27. package/lib/cjs/user-input/index.d.ts +4 -0
  28. package/lib/cjs/{action/user-input.js → user-input/index.js} +8 -4
  29. package/lib/cjs/user-input/index.js.map +1 -0
  30. package/lib/cjs/{action → user-input}/intent.js +1 -1
  31. package/lib/cjs/user-input/intent.js.map +1 -0
  32. package/lib/cjs/{action → user-input}/keyword.js +1 -1
  33. package/lib/cjs/user-input/keyword.js.map +1 -0
  34. package/lib/cjs/user-input/smart-intent.d.ts +4 -0
  35. package/lib/cjs/user-input/smart-intent.js +40 -0
  36. package/lib/cjs/user-input/smart-intent.js.map +1 -0
  37. package/lib/esm/action/index.js +1 -1
  38. package/lib/esm/action/index.js.map +1 -1
  39. package/lib/esm/action/knowledge-bases.js +2 -1
  40. package/lib/esm/action/knowledge-bases.js.map +1 -1
  41. package/lib/esm/api.d.ts +4 -1
  42. package/lib/esm/api.js +20 -4
  43. package/lib/esm/api.js.map +1 -1
  44. package/lib/esm/content-fields/flow-handoff.js +1 -1
  45. package/lib/esm/content-fields/flow-handoff.js.map +1 -1
  46. package/lib/esm/content-fields/hubtype-fields/common.d.ts +1 -0
  47. package/lib/esm/content-fields/hubtype-fields/index.d.ts +1 -0
  48. package/lib/esm/content-fields/hubtype-fields/index.js +1 -0
  49. package/lib/esm/content-fields/hubtype-fields/index.js.map +1 -1
  50. package/lib/esm/content-fields/hubtype-fields/node-types.d.ts +1 -0
  51. package/lib/esm/content-fields/hubtype-fields/node-types.js +1 -0
  52. package/lib/esm/content-fields/hubtype-fields/node-types.js.map +1 -1
  53. package/lib/esm/content-fields/hubtype-fields/nodes.d.ts +2 -1
  54. package/lib/esm/content-fields/hubtype-fields/smart-intent.d.ts +11 -0
  55. package/lib/esm/content-fields/hubtype-fields/smart-intent.js +2 -0
  56. package/lib/esm/content-fields/hubtype-fields/smart-intent.js.map +1 -0
  57. package/lib/esm/index.d.ts +3 -2
  58. package/lib/esm/index.js +7 -3
  59. package/lib/esm/index.js.map +1 -1
  60. package/lib/esm/{action/tracking.js → tracking.js} +1 -1
  61. package/lib/esm/tracking.js.map +1 -0
  62. package/lib/esm/types.d.ts +1 -1
  63. package/lib/esm/user-input/index.d.ts +4 -0
  64. package/lib/esm/{action/user-input.js → user-input/index.js} +8 -4
  65. package/lib/esm/user-input/index.js.map +1 -0
  66. package/lib/esm/{action → user-input}/intent.js +1 -1
  67. package/lib/esm/user-input/intent.js.map +1 -0
  68. package/lib/esm/{action → user-input}/keyword.js +1 -1
  69. package/lib/esm/user-input/keyword.js.map +1 -0
  70. package/lib/esm/user-input/smart-intent.d.ts +4 -0
  71. package/lib/esm/user-input/smart-intent.js +36 -0
  72. package/lib/esm/user-input/smart-intent.js.map +1 -0
  73. package/package.json +2 -2
  74. package/src/action/index.tsx +1 -1
  75. package/src/action/knowledge-bases.ts +2 -1
  76. package/src/api.ts +30 -4
  77. package/src/content-fields/flow-handoff.tsx +1 -1
  78. package/src/content-fields/hubtype-fields/common.ts +1 -0
  79. package/src/content-fields/hubtype-fields/index.ts +1 -0
  80. package/src/content-fields/hubtype-fields/node-types.ts +1 -0
  81. package/src/content-fields/hubtype-fields/nodes.ts +2 -0
  82. package/src/content-fields/hubtype-fields/smart-intent.ts +12 -0
  83. package/src/index.ts +10 -5
  84. package/src/{action/tracking.ts → tracking.ts} +1 -1
  85. package/src/types.ts +1 -1
  86. package/src/{action/user-input.ts → user-input/index.ts} +13 -5
  87. package/src/{action → user-input}/intent.ts +1 -1
  88. package/src/{action → user-input}/keyword.ts +1 -1
  89. package/src/user-input/smart-intent.ts +42 -0
  90. package/lib/cjs/action/intent.js.map +0 -1
  91. package/lib/cjs/action/keyword.js.map +0 -1
  92. package/lib/cjs/action/tracking.js.map +0 -1
  93. package/lib/cjs/action/user-input.d.ts +0 -4
  94. package/lib/cjs/action/user-input.js.map +0 -1
  95. package/lib/esm/action/intent.js.map +0 -1
  96. package/lib/esm/action/keyword.js.map +0 -1
  97. package/lib/esm/action/tracking.js.map +0 -1
  98. package/lib/esm/action/user-input.d.ts +0 -4
  99. package/lib/esm/action/user-input.js.map +0 -1
  100. /package/lib/cjs/{action/tracking.d.ts → tracking.d.ts} +0 -0
  101. /package/lib/cjs/{action → user-input}/intent.d.ts +0 -0
  102. /package/lib/cjs/{action → user-input}/keyword.d.ts +0 -0
  103. /package/lib/esm/{action/tracking.d.ts → tracking.d.ts} +0 -0
  104. /package/lib/esm/{action → user-input}/intent.d.ts +0 -0
  105. /package/lib/esm/{action → user-input}/keyword.d.ts +0 -0
package/src/index.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { Plugin, PluginPreRequest, Session } from '@botonic/core'
2
2
  import { ActionRequest } from '@botonic/react'
3
3
 
4
- import { getNodeByUserInput } from './action/user-input'
5
4
  import { FlowBuilderApi } from './api'
6
5
  import { SEPARATOR, SOURCE_INFO_SEPARATOR } from './constants'
7
6
  import {
@@ -28,6 +27,7 @@ import {
28
27
  KnowledgeBaseResponse,
29
28
  PayloadParamsBase,
30
29
  } from './types'
30
+ import { getNodeByUserInput } from './user-input'
31
31
  import { resolveGetAccessToken } from './utils'
32
32
 
33
33
  export default class BotonicPluginFlowBuilder implements Plugin {
@@ -90,16 +90,21 @@ export default class BotonicPluginFlowBuilder implements Plugin {
90
90
  }
91
91
  }
92
92
 
93
- async getContentsByCode(
94
- code: string,
93
+ async getContentsByContentID(
94
+ contentID: string,
95
95
  locale: string,
96
96
  prevContents?: FlowContent[]
97
97
  ): Promise<FlowContent[]> {
98
- const node = this.cmsApi.getNodeByCode(code) as HtNodeWithContent
98
+ const node = this.cmsApi.getNodeByContentID(contentID) as HtNodeWithContent
99
99
  return await this.getContentsByNode(node, locale, prevContents)
100
100
  }
101
101
 
102
- async getContentsById(
102
+ getUUIDByContentID(contentID: string): string {
103
+ const node = this.cmsApi.getNodeByContentID(contentID)
104
+ return node.id
105
+ }
106
+
107
+ private async getContentsById(
103
108
  id: string,
104
109
  locale: string,
105
110
  prevContents?: FlowContent[]
@@ -1,6 +1,6 @@
1
1
  import { ActionRequest } from '@botonic/react'
2
2
 
3
- import { getFlowBuilderPlugin } from '../helpers'
3
+ import { getFlowBuilderPlugin } from './helpers'
4
4
 
5
5
  export async function trackEvent(
6
6
  request: ActionRequest,
package/src/types.ts CHANGED
@@ -41,5 +41,5 @@ export interface KnowledgeBaseResponse {
41
41
  }
42
42
 
43
43
  export interface PayloadParamsBase {
44
- followUpId?: string
44
+ followUpContentID?: string
45
45
  }
@@ -1,19 +1,21 @@
1
1
  import { ActionRequest } from '@botonic/react'
2
2
 
3
3
  import { FlowBuilderApi } from '../api'
4
- import { HtIntentNode, HtKeywordNode } from '../content-fields/hubtype-fields'
4
+ import {
5
+ HtIntentNode,
6
+ HtKeywordNode,
7
+ HtSmartIntentNode,
8
+ } from '../content-fields/hubtype-fields'
5
9
  import { getIntentNodeByInput } from './intent'
6
10
  import { getKeywordNodeByInput } from './keyword'
11
+ import { getSmartIntentNodeByInput } from './smart-intent'
7
12
 
8
13
  export async function getNodeByUserInput(
9
14
  cmsApi: FlowBuilderApi,
10
15
  locale: string,
11
16
  request: ActionRequest
12
- ): Promise<HtIntentNode | HtKeywordNode | undefined> {
17
+ ): Promise<HtSmartIntentNode | HtIntentNode | HtKeywordNode | undefined> {
13
18
  if (request.input.data) {
14
- const intentNode = await getIntentNodeByInput(cmsApi, locale, request)
15
- if (intentNode) return intentNode
16
-
17
19
  const keywordNode = await getKeywordNodeByInput(
18
20
  cmsApi,
19
21
  locale,
@@ -21,6 +23,12 @@ export async function getNodeByUserInput(
21
23
  request.input.data
22
24
  )
23
25
  if (keywordNode) return keywordNode
26
+
27
+ const smartIntentNode = await getSmartIntentNodeByInput(cmsApi, request)
28
+ if (smartIntentNode) return smartIntentNode
29
+
30
+ const intentNode = await getIntentNodeByInput(cmsApi, locale, request)
31
+ if (intentNode) return intentNode
24
32
  }
25
33
  return undefined
26
34
  }
@@ -2,7 +2,7 @@ import { ActionRequest } from '@botonic/react'
2
2
 
3
3
  import { FlowBuilderApi } from '../api'
4
4
  import { HtIntentNode } from '../content-fields/hubtype-fields'
5
- import { EventName, trackEvent } from './tracking'
5
+ import { EventName, trackEvent } from '../tracking'
6
6
 
7
7
  export async function getIntentNodeByInput(
8
8
  cmsApi: FlowBuilderApi,
@@ -2,7 +2,7 @@ import { ActionRequest } from '@botonic/react'
2
2
 
3
3
  import { FlowBuilderApi } from '../api'
4
4
  import { HtKeywordNode } from '../content-fields/hubtype-fields'
5
- import { EventName, trackEvent } from './tracking'
5
+ import { EventName, trackEvent } from '../tracking'
6
6
 
7
7
  export async function getKeywordNodeByInput(
8
8
  cmsApi: FlowBuilderApi,
@@ -0,0 +1,42 @@
1
+ import { ActionRequest } from '@botonic/react'
2
+ import axios from 'axios'
3
+
4
+ import { FlowBuilderApi } from '../api'
5
+ import { HtSmartIntentNode } from '../content-fields/hubtype-fields/smart-intent'
6
+
7
+ export async function getSmartIntentNodeByInput(
8
+ cmsApi: FlowBuilderApi,
9
+ request: ActionRequest
10
+ ): Promise<HtSmartIntentNode | undefined> {
11
+ const smartIntentNodes = cmsApi.getSmartIntentNodes()
12
+ const intentsInferenceParams = smartIntentNodes.map(smartIntentNode => {
13
+ return {
14
+ name: smartIntentNode.content.title,
15
+ definition: smartIntentNode.content.description,
16
+ }
17
+ })
18
+ intentsInferenceParams.push({
19
+ name: 'Other',
20
+ definition: 'The text does not belong to any other intent.',
21
+ })
22
+ try {
23
+ const response = await axios({
24
+ method: 'POST',
25
+ url: `${process.env.HUBTYPE_API_URL}/external/v1/ai/smart_intents/inference/`,
26
+ headers: {
27
+ Authorization: `Bearer ${request.session._access_token}`,
28
+ 'Content-Type': 'application/json',
29
+ },
30
+ data: { text: request.input.data, intents: intentsInferenceParams },
31
+ timeout: 10000,
32
+ })
33
+ console.log({ response })
34
+ return smartIntentNodes.find(
35
+ smartIntentNode =>
36
+ smartIntentNode.content.title === response.data.intent_name
37
+ )
38
+ } catch (e) {
39
+ console.error(e)
40
+ return undefined
41
+ }
42
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../src/action/intent.ts"],"names":[],"mappings":";;;;AAIA,yCAAkD;AAElD,SAAsB,oBAAoB,CACxC,MAAsB,EACtB,MAAc,EACd,OAAsB;;QAEtB,MAAM,UAAU,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QAC9D,MAAM,SAAS,GAAG;YAChB,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAgB;YACtC,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,UAAoB;YAC9C,qBAAqB,EAAE,IAAI;SAC5B,CAAA;QACD,IAAI,OAAO,CAAC,KAAK,CAAC,UAAU,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,IAAI,UAAU,EAAE;YAClE,IAAI,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE;gBAC9C,MAAM,IAAA,qBAAU,EAAC,OAAO,EAAE,oBAAS,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;gBAC1D,OAAO,UAAU,CAAA;aAClB;YAED,SAAS,CAAC,qBAAqB,GAAG,KAAK,CAAA;YACvC,MAAM,IAAA,qBAAU,EAAC,OAAO,EAAE,oBAAS,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;SAC3D;QAED,OAAO,SAAS,CAAA;IAClB,CAAC;CAAA;AAtBD,oDAsBC;AAED,SAAS,aAAa,CACpB,UAAwB,EACxB,OAAsB,EACtB,MAAsB;IAEtB,OAAO,CACL,OAAO,CAAC,KAAK,CAAC,UAAU;QACxB,MAAM,CAAC,yBAAyB,CAAC,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CACvE,CAAA;AACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyword.js","sourceRoot":"","sources":["../../../src/action/keyword.ts"],"names":[],"mappings":";;;;AAIA,yCAAkD;AAElD,SAAsB,qBAAqB,CACzC,MAAsB,EACtB,MAAc,EACd,OAAsB,EACtB,SAAiB;;QAEjB,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;QAC9D,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO,SAAS,CAAA;SACjB;QACD,MAAM,SAAS,GAAG;YAChB,qBAAqB,EAAE,IAAI;SAC5B,CAAA;QACD,MAAM,IAAA,qBAAU,EAAC,OAAO,EAAE,oBAAS,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;QAChE,OAAO,WAAW,CAAA;IACpB,CAAC;CAAA;AAfD,sDAeC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tracking.js","sourceRoot":"","sources":["../../../src/action/tracking.ts"],"names":[],"mappings":";;;;AAEA,wCAAiD;AAEjD,SAAsB,UAAU,CAC9B,OAAsB,EACtB,SAAoB,EACpB,IAA0B;;QAE1B,MAAM,iBAAiB,GAAG,IAAA,8BAAoB,EAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAC/D,IAAI,iBAAiB,CAAC,UAAU,EAAE;YAChC,MAAM,iBAAiB,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;SAC7D;QACD,OAAM;IACR,CAAC;CAAA;AAVD,gCAUC;AAED,IAAY,SAeX;AAfD,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,oDAAuC,CAAA;IACvC,4CAA+B,CAAA;IAC/B,qCAAwB,CAAA;IACxB,+BAAkB,CAAA;IAClB,mCAAsB,CAAA;IACtB,iCAAoB,CAAA;IACpB,wCAA2B,CAAA;IAC3B,yDAA4C,CAAA;IAC5C,oDAAuC,CAAA;IACvC,kCAAqB,CAAA;IACrB,6CAAgC,CAAA;IAChC,+CAAkC,CAAA;IAClC,yCAA4B,CAAA;AAC9B,CAAC,EAfW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAepB"}
@@ -1,4 +0,0 @@
1
- import { ActionRequest } from '@botonic/react';
2
- import { FlowBuilderApi } from '../api';
3
- import { HtIntentNode, HtKeywordNode } from '../content-fields/hubtype-fields';
4
- export declare function getNodeByUserInput(cmsApi: FlowBuilderApi, locale: string, request: ActionRequest): Promise<HtIntentNode | HtKeywordNode | undefined>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-input.js","sourceRoot":"","sources":["../../../src/action/user-input.ts"],"names":[],"mappings":";;;;AAIA,qCAA+C;AAC/C,uCAAiD;AAEjD,SAAsB,kBAAkB,CACtC,MAAsB,EACtB,MAAc,EACd,OAAsB;;QAEtB,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE;YACtB,MAAM,UAAU,GAAG,MAAM,IAAA,6BAAoB,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;YACtE,IAAI,UAAU;gBAAE,OAAO,UAAU,CAAA;YAEjC,MAAM,WAAW,GAAG,MAAM,IAAA,+BAAqB,EAC7C,MAAM,EACN,MAAM,EACN,OAAO,EACP,OAAO,CAAC,KAAK,CAAC,IAAI,CACnB,CAAA;YACD,IAAI,WAAW;gBAAE,OAAO,WAAW,CAAA;SACpC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;CAAA;AAlBD,gDAkBC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../src/action/intent.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,UAAgB,oBAAoB,CACxC,MAAsB,EACtB,MAAc,EACd,OAAsB;;QAEtB,MAAM,UAAU,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QAC9D,MAAM,SAAS,GAAG;YAChB,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAgB;YACtC,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,UAAoB;YAC9C,qBAAqB,EAAE,IAAI;SAC5B,CAAA;QACD,IAAI,OAAO,CAAC,KAAK,CAAC,UAAU,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,IAAI,UAAU,EAAE;YAClE,IAAI,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE;gBAC9C,MAAM,UAAU,CAAC,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;gBAC1D,OAAO,UAAU,CAAA;aAClB;YAED,SAAS,CAAC,qBAAqB,GAAG,KAAK,CAAA;YACvC,MAAM,UAAU,CAAC,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;SAC3D;QAED,OAAO,SAAS,CAAA;IAClB,CAAC;CAAA;AAED,SAAS,aAAa,CACpB,UAAwB,EACxB,OAAsB,EACtB,MAAsB;IAEtB,OAAO,CACL,OAAO,CAAC,KAAK,CAAC,UAAU;QACxB,MAAM,CAAC,yBAAyB,CAAC,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CACvE,CAAA;AACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyword.js","sourceRoot":"","sources":["../../../src/action/keyword.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,UAAgB,qBAAqB,CACzC,MAAsB,EACtB,MAAc,EACd,OAAsB,EACtB,SAAiB;;QAEjB,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;QAC9D,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO,SAAS,CAAA;SACjB;QACD,MAAM,SAAS,GAAG;YAChB,qBAAqB,EAAE,IAAI;SAC5B,CAAA;QACD,MAAM,UAAU,CAAC,OAAO,EAAE,SAAS,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;QAChE,OAAO,WAAW,CAAA;IACpB,CAAC;CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tracking.js","sourceRoot":"","sources":["../../../src/action/tracking.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,UAAgB,UAAU,CAC9B,OAAsB,EACtB,SAAoB,EACpB,IAA0B;;QAE1B,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAC/D,IAAI,iBAAiB,CAAC,UAAU,EAAE;YAChC,MAAM,iBAAiB,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;SAC7D;QACD,OAAM;IACR,CAAC;CAAA;AAED,MAAM,CAAN,IAAY,SAeX;AAfD,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,oDAAuC,CAAA;IACvC,4CAA+B,CAAA;IAC/B,qCAAwB,CAAA;IACxB,+BAAkB,CAAA;IAClB,mCAAsB,CAAA;IACtB,iCAAoB,CAAA;IACpB,wCAA2B,CAAA;IAC3B,yDAA4C,CAAA;IAC5C,oDAAuC,CAAA;IACvC,kCAAqB,CAAA;IACrB,6CAAgC,CAAA;IAChC,+CAAkC,CAAA;IAClC,yCAA4B,CAAA;AAC9B,CAAC,EAfW,SAAS,KAAT,SAAS,QAepB"}
@@ -1,4 +0,0 @@
1
- import { ActionRequest } from '@botonic/react';
2
- import { FlowBuilderApi } from '../api';
3
- import { HtIntentNode, HtKeywordNode } from '../content-fields/hubtype-fields';
4
- export declare function getNodeByUserInput(cmsApi: FlowBuilderApi, locale: string, request: ActionRequest): Promise<HtIntentNode | HtKeywordNode | undefined>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-input.js","sourceRoot":"","sources":["../../../src/action/user-input.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAEjD,MAAM,UAAgB,kBAAkB,CACtC,MAAsB,EACtB,MAAc,EACd,OAAsB;;QAEtB,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE;YACtB,MAAM,UAAU,GAAG,MAAM,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;YACtE,IAAI,UAAU;gBAAE,OAAO,UAAU,CAAA;YAEjC,MAAM,WAAW,GAAG,MAAM,qBAAqB,CAC7C,MAAM,EACN,MAAM,EACN,OAAO,EACP,OAAO,CAAC,KAAK,CAAC,IAAI,CACnB,CAAA;YACD,IAAI,WAAW;gBAAE,OAAO,WAAW,CAAA;SACpC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;CAAA"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes