app-v3-scripts-editor 1.19.1 → 1.20.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.
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ type NodeActionButtonContainerProps = {
3
+ id: string;
4
+ };
5
+ declare const NodeActionButtonContainer: React.FC<NodeActionButtonContainerProps>;
6
+ export default NodeActionButtonContainer;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ type NodeStatusContainerProps = {
3
+ id: string;
4
+ };
5
+ declare const NodeStatusContainer: React.FC<NodeStatusContainerProps>;
6
+ export default NodeStatusContainer;
@@ -1,3 +1,8 @@
1
+ export declare enum NODE_STATUS {
2
+ COMPLETED = "completed",
3
+ RUNNING = "running",
4
+ FAILED = "failed"
5
+ }
1
6
  export declare enum CRM_OBJECT_TYPE {
2
7
  CONTACT = "contact",
3
8
  ENTERPRISE = "enterprise",
@@ -7,6 +7,8 @@ declare const colors: {
7
7
  black: string;
8
8
  sunsetOrange: string;
9
9
  blue: string;
10
+ green: string;
11
+ volcano: string;
10
12
  };
11
13
  sidebar: {
12
14
  background: string;
@@ -41,7 +41,7 @@ export declare const formatFilterGroupsToForm: (object?: string, chartFilterGrou
41
41
  groups: IFilterGroup[];
42
42
  };
43
43
  export declare function slugifyUnderscore(str: string): string;
44
- export declare function buildOutPutTreeNodes(outputs: IOutput["outputs"]): (TreeDataNode & {
44
+ export declare function buildOutPutTreeNodes(outputs?: IOutput["outputs"]): (TreeDataNode & {
45
45
  meta?: {
46
46
  iconType?: DATA_TYPE_PROPERTY;
47
47
  };
@@ -1,6 +1,7 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  import { AI_MODEL } from '../lib/constants/ai-model';
3
3
  import { DATA_TYPE_PROPERTY, DATA_TYPE_PROPERTY_V2 } from '../lib/constants/common';
4
+ import { NODE_STATUS } from './../lib/constants/common';
4
5
  export interface INodeBaseType {
5
6
  output?: IOutput["outputs"];
6
7
  variables?: {
@@ -9,6 +10,7 @@ export interface INodeBaseType {
9
10
  }[];
10
11
  input_data?: Record<string, any>;
11
12
  output_data?: Record<string, any>;
13
+ status?: NODE_STATUS;
12
14
  }
13
15
  export interface IPaginationInputs {
14
16
  pagination?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.19.1",
4
+ "version": "1.20.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"