@iblai/data-layer 1.2.2 → 1.2.3
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/dist/index.d.ts +2659 -2
- package/dist/index.esm.js +178 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +197 -0
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/workflows/api-slice.d.ts +2454 -0
- package/dist/src/features/workflows/constants.d.ts +57 -0
- package/dist/src/features/workflows/types.d.ts +130 -0
- package/dist/src/index.d.ts +3 -0
- package/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { SERVICES } from '@data-layer/constants';
|
|
2
|
+
export declare const WORKFLOWS_REDUCER_PATH = "workflowsApiSlice";
|
|
3
|
+
export declare const WORKFLOWS_ENDPOINTS: {
|
|
4
|
+
LIST: {
|
|
5
|
+
service: SERVICES;
|
|
6
|
+
path: (org: string) => string;
|
|
7
|
+
};
|
|
8
|
+
CREATE: {
|
|
9
|
+
service: SERVICES;
|
|
10
|
+
path: (org: string) => string;
|
|
11
|
+
};
|
|
12
|
+
RETRIEVE: {
|
|
13
|
+
service: SERVICES;
|
|
14
|
+
path: (org: string, uniqueId: string) => string;
|
|
15
|
+
};
|
|
16
|
+
UPDATE: {
|
|
17
|
+
service: SERVICES;
|
|
18
|
+
path: (org: string, uniqueId: string) => string;
|
|
19
|
+
};
|
|
20
|
+
DELETE: {
|
|
21
|
+
service: SERVICES;
|
|
22
|
+
path: (org: string, uniqueId: string) => string;
|
|
23
|
+
};
|
|
24
|
+
ACTIVATE: {
|
|
25
|
+
service: SERVICES;
|
|
26
|
+
path: (org: string, uniqueId: string) => string;
|
|
27
|
+
};
|
|
28
|
+
DEACTIVATE: {
|
|
29
|
+
service: SERVICES;
|
|
30
|
+
path: (org: string, uniqueId: string) => string;
|
|
31
|
+
};
|
|
32
|
+
PUBLISH: {
|
|
33
|
+
service: SERVICES;
|
|
34
|
+
path: (org: string, uniqueId: string) => string;
|
|
35
|
+
};
|
|
36
|
+
UNPUBLISH: {
|
|
37
|
+
service: SERVICES;
|
|
38
|
+
path: (org: string, uniqueId: string) => string;
|
|
39
|
+
};
|
|
40
|
+
VALIDATE: {
|
|
41
|
+
service: SERVICES;
|
|
42
|
+
path: (org: string, uniqueId: string) => string;
|
|
43
|
+
};
|
|
44
|
+
CHAT: {
|
|
45
|
+
service: SERVICES;
|
|
46
|
+
path: (org: string, uniqueId: string) => string;
|
|
47
|
+
};
|
|
48
|
+
NODE_TYPES: {
|
|
49
|
+
service: SERVICES;
|
|
50
|
+
path: (org: string) => string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const WORKFLOWS_QUERY_KEYS: {
|
|
54
|
+
LIST: () => readonly ["WORKFLOWS"];
|
|
55
|
+
DETAILS: () => readonly ["WORKFLOW_DETAILS"];
|
|
56
|
+
NODE_TYPES: () => readonly ["WORKFLOW_NODE_TYPES"];
|
|
57
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export type WorkflowDefinition = {
|
|
2
|
+
nodes: unknown[];
|
|
3
|
+
edges: unknown[];
|
|
4
|
+
};
|
|
5
|
+
export type Workflow = {
|
|
6
|
+
readonly id: number;
|
|
7
|
+
readonly unique_id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
definition: WorkflowDefinition;
|
|
11
|
+
is_active?: boolean;
|
|
12
|
+
is_template?: boolean;
|
|
13
|
+
parent_workflow?: number | null;
|
|
14
|
+
readonly platform: number;
|
|
15
|
+
readonly platform_key: string;
|
|
16
|
+
readonly platform_name: string;
|
|
17
|
+
readonly created_by: number;
|
|
18
|
+
readonly created_by_username: string;
|
|
19
|
+
readonly created_at: string;
|
|
20
|
+
readonly updated_at: string;
|
|
21
|
+
readonly node_count: number;
|
|
22
|
+
readonly edge_count: number;
|
|
23
|
+
readonly entry_mentor_id: string;
|
|
24
|
+
chat_name?: string;
|
|
25
|
+
chat_proactive_response?: string;
|
|
26
|
+
};
|
|
27
|
+
export type PaginatedWorkflowList = {
|
|
28
|
+
count: number;
|
|
29
|
+
next?: string | null;
|
|
30
|
+
previous?: string | null;
|
|
31
|
+
results: Workflow[];
|
|
32
|
+
};
|
|
33
|
+
export type GetWorkflowsParams = {
|
|
34
|
+
search?: string;
|
|
35
|
+
is_active?: boolean;
|
|
36
|
+
is_template?: boolean;
|
|
37
|
+
created_by?: string;
|
|
38
|
+
sort?: string;
|
|
39
|
+
limit?: number;
|
|
40
|
+
offset?: number;
|
|
41
|
+
};
|
|
42
|
+
export type GetWorkflowsArgs = {
|
|
43
|
+
org: string;
|
|
44
|
+
params?: GetWorkflowsParams;
|
|
45
|
+
};
|
|
46
|
+
export type GetWorkflowArgs = {
|
|
47
|
+
org: string;
|
|
48
|
+
uniqueId: string;
|
|
49
|
+
};
|
|
50
|
+
export type CreateWorkflowData = {
|
|
51
|
+
name: string;
|
|
52
|
+
description?: string;
|
|
53
|
+
definition?: WorkflowDefinition;
|
|
54
|
+
};
|
|
55
|
+
export type CreateWorkflowArgs = {
|
|
56
|
+
org: string;
|
|
57
|
+
data: CreateWorkflowData;
|
|
58
|
+
};
|
|
59
|
+
export type PatchWorkflowData = {
|
|
60
|
+
name?: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
definition?: WorkflowDefinition;
|
|
63
|
+
chat_name?: string;
|
|
64
|
+
chat_proactive_response?: string;
|
|
65
|
+
};
|
|
66
|
+
export type PatchWorkflowArgs = {
|
|
67
|
+
org: string;
|
|
68
|
+
uniqueId: string;
|
|
69
|
+
data: PatchWorkflowData;
|
|
70
|
+
};
|
|
71
|
+
export type UpdateWorkflowData = {
|
|
72
|
+
name: string;
|
|
73
|
+
description?: string;
|
|
74
|
+
definition: WorkflowDefinition;
|
|
75
|
+
chat_name?: string;
|
|
76
|
+
chat_proactive_response?: string;
|
|
77
|
+
};
|
|
78
|
+
export type UpdateWorkflowArgs = {
|
|
79
|
+
org: string;
|
|
80
|
+
uniqueId: string;
|
|
81
|
+
data: UpdateWorkflowData;
|
|
82
|
+
};
|
|
83
|
+
export type DeleteWorkflowArgs = {
|
|
84
|
+
org: string;
|
|
85
|
+
uniqueId: string;
|
|
86
|
+
};
|
|
87
|
+
export type WorkflowActionArgs = {
|
|
88
|
+
org: string;
|
|
89
|
+
uniqueId: string;
|
|
90
|
+
};
|
|
91
|
+
export type PublishWorkflowArgs = {
|
|
92
|
+
org: string;
|
|
93
|
+
uniqueId: string;
|
|
94
|
+
data?: {
|
|
95
|
+
definition?: WorkflowDefinition;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export type WorkflowValidationResponse = {
|
|
99
|
+
is_valid: boolean;
|
|
100
|
+
errors: string[];
|
|
101
|
+
warnings: string[];
|
|
102
|
+
workflow?: Workflow;
|
|
103
|
+
};
|
|
104
|
+
export type WorkflowChatArgs = {
|
|
105
|
+
org: string;
|
|
106
|
+
uniqueId: string;
|
|
107
|
+
message: string;
|
|
108
|
+
};
|
|
109
|
+
export type WorkflowChatResponse = {
|
|
110
|
+
response: string;
|
|
111
|
+
workflow_id: string;
|
|
112
|
+
session_id: string;
|
|
113
|
+
};
|
|
114
|
+
export type GetNodeTypesArgs = {
|
|
115
|
+
org: string;
|
|
116
|
+
};
|
|
117
|
+
export type NodeTypeInfo = {
|
|
118
|
+
label: string;
|
|
119
|
+
category: string;
|
|
120
|
+
executable: boolean;
|
|
121
|
+
description: string;
|
|
122
|
+
required_fields: string[];
|
|
123
|
+
optional_fields: string[];
|
|
124
|
+
aliases?: string[];
|
|
125
|
+
status?: string;
|
|
126
|
+
};
|
|
127
|
+
export type NodeTypesResponse = {
|
|
128
|
+
node_types: Record<string, NodeTypeInfo>;
|
|
129
|
+
categories: string[];
|
|
130
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -87,6 +87,9 @@ export * from './features/search/constants';
|
|
|
87
87
|
export * from './features/projects/api-slice';
|
|
88
88
|
export * from './features/projects/constants';
|
|
89
89
|
export type { Project, ProjectsFetchResponse, GetProjectsParams, GetProjectsArgs, GetProjectDetailsArgs, CreateProjectData, CreateProjectArgs, UpdateProjectData, UpdateProjectArgs, DeleteProjectArgs, } from './features/projects/types';
|
|
90
|
+
export * from './features/workflows/api-slice';
|
|
91
|
+
export * from './features/workflows/types';
|
|
92
|
+
export * from './features/workflows/constants';
|
|
90
93
|
export * from './reducers';
|
|
91
94
|
export * from './utils';
|
|
92
95
|
export type { CustomQueryArgs } from './features/utils';
|