@botmock-api/utils
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -89,4 +89,2 @@ "use strict"; | ||
*/ | ||
// export const topoSort = (messages: Message[]) => { | ||
// return []; | ||
// }; | ||
// export const topoSort = (messages: Message[]) => {}; |
{ | ||
"name": "@botmock-api/utils", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "utilities for handling data from the Botmock API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -20,6 +20,17 @@ type Utterance = { | ||
type Message = { | ||
message_id: string; | ||
message_type: string; | ||
next_message_ids: NextMessage[]; | ||
is_root: boolean; | ||
payload: { | ||
nodeName: string; | ||
context: any[]; | ||
text: string; | ||
workflow_column_id: string; | ||
assigned_to: string; | ||
}; | ||
previous_message_ids: { message_id: string; action: string | {} }[]; | ||
}; | ||
type IntentMap = Map<string, Intent[]>; | ||
type IntentMap = Map<string, string[]>; | ||
@@ -40,3 +51,3 @@ /** | ||
): IntentMap => { | ||
return new Map<string, Intent[]>( | ||
return new Map<string, string[]>( | ||
messages.reduce((acc, { next_message_ids }) => { | ||
@@ -119,4 +130,2 @@ return [ | ||
*/ | ||
// export const topoSort = (messages: Message[]) => { | ||
// return []; | ||
// }; | ||
// export const topoSort = (messages: Message[]) => {}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17822
254