app-v3-scripts-editor 1.19.1 → 1.21.1

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,7 @@
1
+ import { IOutput } from '../../../../../services';
2
+ type DelayOutputContainerProps = {
3
+ id: string;
4
+ outputs: IOutput["outputs"];
5
+ };
6
+ declare const DelayOutputContainer: React.FC<DelayOutputContainerProps>;
7
+ export default DelayOutputContainer;
@@ -11,26 +11,30 @@ export declare const DelayActionTypeDescription: {
11
11
  };
12
12
  export declare const DelayActionTypeList: DELAY_ACTION_TYPE[];
13
13
  export declare enum UNIT_DELAY {
14
- SECONDS = "seconds",
15
- MINUTES = "minutes",
16
- HOURS = "hours",
17
- DAYS = "days"
14
+ SECONDS = "SECONDS",
15
+ MINUTES = "MINUTES",
16
+ HOURS = "HOURS",
17
+ DAYS = "DAYS"
18
18
  }
19
19
  export declare const UnitDelayLabel: {
20
- seconds: string;
21
- minutes: string;
22
- hours: string;
23
- days: string;
20
+ SECONDS: string;
21
+ MINUTES: string;
22
+ HOURS: string;
23
+ DAYS: string;
24
24
  };
25
25
  export declare const UnitDelayList: UNIT_DELAY[];
26
26
  export interface DelayActionNodeData extends Record<string, unknown> {
27
27
  title: string;
28
28
  type: DELAY_ACTION_TYPE;
29
- setting: {
30
- time?: number;
31
- unit?: UNIT_DELAY;
32
- limit?: boolean;
33
- apply?: number[];
29
+ config: {
30
+ wait_time: {
31
+ value?: number;
32
+ unit?: UNIT_DELAY;
33
+ };
34
+ time_restriction?: {
35
+ is_enabled?: boolean;
36
+ apply_on_days?: number[];
37
+ };
34
38
  };
35
39
  }
36
40
  export type BlockDelayActionProps = BlockTypeProps<DelayActionNodeData>;
@@ -73,14 +73,18 @@ export declare const IntervalUnitsList: INTERVAL_UNITS[];
73
73
  export interface ScheduleNodeData extends Record<string, unknown> {
74
74
  title: string;
75
75
  type: SCHEDULE_ACTION_TYPE;
76
- trigger_time?: string | dayjs.Dayjs;
77
- validity_type: SCHEDULE_VALIDITY_TYPE;
78
- validity_end_date?: string | dayjs.Dayjs;
79
- days_of_week?: DAYS_OF_WEEK[];
80
- month_day_type: MONTHLY_DAY_TYPES;
81
- specific_day?: number;
82
- interval_value?: number;
83
- interval_unit?: INTERVAL_UNITS;
76
+ config: {
77
+ trigger_time?: string | dayjs.Dayjs;
78
+ days_of_week?: DAYS_OF_WEEK[];
79
+ month_day_type: MONTHLY_DAY_TYPES;
80
+ specific_day?: number;
81
+ interval_value?: number;
82
+ interval_unit?: INTERVAL_UNITS;
83
+ };
84
+ validity: {
85
+ type: SCHEDULE_VALIDITY_TYPE;
86
+ end_date?: string | dayjs.Dayjs;
87
+ };
84
88
  output: {
85
89
  object: string;
86
90
  slug: string;
@@ -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.21.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"