@elqnt/workflow 2.0.5 → 2.1.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.
- package/dist/api/index.d.mts +74 -0
- package/dist/api/index.d.ts +74 -0
- package/dist/api/index.js +36 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/index.mjs +36 -0
- package/dist/api/index.mjs.map +1 -0
- package/dist/chunk-F5G2ALFS.js +391 -0
- package/dist/chunk-F5G2ALFS.js.map +1 -0
- package/dist/chunk-JES2EBNO.js +105 -0
- package/dist/chunk-JES2EBNO.js.map +1 -0
- package/dist/chunk-TZA3EPTC.mjs +391 -0
- package/dist/chunk-TZA3EPTC.mjs.map +1 -0
- package/dist/chunk-UE4ZBFLG.mjs +105 -0
- package/dist/chunk-UE4ZBFLG.mjs.map +1 -0
- package/dist/hooks/index.d.mts +63 -0
- package/dist/hooks/index.d.ts +63 -0
- package/dist/hooks/index.js +14 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/index.mjs +14 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +41 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -0
- package/dist/index.mjs.map +1 -1
- package/dist/models/index.d.mts +56 -1
- package/dist/models/index.d.ts +56 -1
- package/dist/{index-B4xiOlL7.d.mts → workflow-vv0mDt57.d.mts} +1 -54
- package/dist/{index-B4xiOlL7.d.ts → workflow-vv0mDt57.d.ts} +1 -54
- package/package.json +15 -3
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// api/index.ts
|
|
4
|
+
import { browserApiRequest } from "@elqnt/api-client/browser";
|
|
5
|
+
async function listWorkflowsApi(options) {
|
|
6
|
+
return browserApiRequest("/api/v1/workflows", { method: "GET", ...options });
|
|
7
|
+
}
|
|
8
|
+
async function getWorkflowApi(workflowId, options) {
|
|
9
|
+
return browserApiRequest(`/api/v1/workflows/${workflowId}`, { method: "GET", ...options });
|
|
10
|
+
}
|
|
11
|
+
async function createWorkflowApi(workflow, options) {
|
|
12
|
+
return browserApiRequest("/api/v1/workflows", { method: "POST", body: workflow, ...options });
|
|
13
|
+
}
|
|
14
|
+
async function updateWorkflowApi(workflowId, workflow, options) {
|
|
15
|
+
return browserApiRequest(`/api/v1/workflows/${workflowId}`, { method: "PUT", body: workflow, ...options });
|
|
16
|
+
}
|
|
17
|
+
async function deleteWorkflowApi(workflowId, options) {
|
|
18
|
+
return browserApiRequest(`/api/v1/workflows/${workflowId}`, { method: "DELETE", ...options });
|
|
19
|
+
}
|
|
20
|
+
async function createWorkflowInstanceApi(definitionId, data, options) {
|
|
21
|
+
return browserApiRequest(`/api/v1/workflows/${definitionId}/instances`, {
|
|
22
|
+
method: "POST",
|
|
23
|
+
body: data,
|
|
24
|
+
...options
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
async function getWorkflowInstanceApi(instanceId, options) {
|
|
28
|
+
return browserApiRequest(`/api/v1/workflows/instances/${instanceId}`, { method: "GET", ...options });
|
|
29
|
+
}
|
|
30
|
+
async function listWorkflowInstancesApi(definitionId, options) {
|
|
31
|
+
const params = new URLSearchParams();
|
|
32
|
+
if (options.userId) params.set("userId", options.userId);
|
|
33
|
+
if (options.status) params.set("status", options.status);
|
|
34
|
+
const queryString = params.toString();
|
|
35
|
+
return browserApiRequest(
|
|
36
|
+
`/api/v1/workflows/${definitionId}/instances${queryString ? `?${queryString}` : ""}`,
|
|
37
|
+
{ method: "GET", ...options }
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
async function updateWorkflowInstanceStatusApi(instanceId, status, options) {
|
|
41
|
+
return browserApiRequest(`/api/v1/workflows/instances/${instanceId}/status`, {
|
|
42
|
+
method: "PUT",
|
|
43
|
+
body: { status },
|
|
44
|
+
...options
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
async function executeWorkflowNodeApi(instanceId, nodeId, input, options) {
|
|
48
|
+
return browserApiRequest(`/api/v1/workflows/instances/${instanceId}/nodes/${nodeId}/execute`, {
|
|
49
|
+
method: "POST",
|
|
50
|
+
body: { input },
|
|
51
|
+
...options
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
async function resumeWorkflowNodeApi(instanceId, nodeId, result, options) {
|
|
55
|
+
return browserApiRequest(`/api/v1/workflows/instances/${instanceId}/nodes/${nodeId}/resume`, {
|
|
56
|
+
method: "POST",
|
|
57
|
+
body: { result },
|
|
58
|
+
...options
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
async function retryWorkflowNodeApi(instanceId, nodeId, options) {
|
|
62
|
+
return browserApiRequest(`/api/v1/workflows/instances/${instanceId}/nodes/${nodeId}/retry`, {
|
|
63
|
+
method: "POST",
|
|
64
|
+
body: {},
|
|
65
|
+
...options
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
async function listWorkflowTemplatesApi(options) {
|
|
69
|
+
const params = new URLSearchParams();
|
|
70
|
+
if (options.category) params.set("category", options.category);
|
|
71
|
+
const queryString = params.toString();
|
|
72
|
+
return browserApiRequest(
|
|
73
|
+
`/api/v1/workflows/templates${queryString ? `?${queryString}` : ""}`,
|
|
74
|
+
{ method: "GET", ...options }
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
async function getWorkflowTemplateApi(templateId, options) {
|
|
78
|
+
return browserApiRequest(`/api/v1/workflows/templates/${templateId}`, { method: "GET", ...options });
|
|
79
|
+
}
|
|
80
|
+
async function instantiateWorkflowTemplateApi(templateId, params, options) {
|
|
81
|
+
return browserApiRequest(`/api/v1/workflows/templates/${templateId}/instantiate`, {
|
|
82
|
+
method: "POST",
|
|
83
|
+
body: params,
|
|
84
|
+
...options
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export {
|
|
89
|
+
listWorkflowsApi,
|
|
90
|
+
getWorkflowApi,
|
|
91
|
+
createWorkflowApi,
|
|
92
|
+
updateWorkflowApi,
|
|
93
|
+
deleteWorkflowApi,
|
|
94
|
+
createWorkflowInstanceApi,
|
|
95
|
+
getWorkflowInstanceApi,
|
|
96
|
+
listWorkflowInstancesApi,
|
|
97
|
+
updateWorkflowInstanceStatusApi,
|
|
98
|
+
executeWorkflowNodeApi,
|
|
99
|
+
resumeWorkflowNodeApi,
|
|
100
|
+
retryWorkflowNodeApi,
|
|
101
|
+
listWorkflowTemplatesApi,
|
|
102
|
+
getWorkflowTemplateApi,
|
|
103
|
+
instantiateWorkflowTemplateApi
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=chunk-UE4ZBFLG.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../api/index.ts"],"sourcesContent":["/**\n * Workflow API functions\n *\n * Browser-side API client for workflow operations.\n * Uses @elqnt/api-client for HTTP requests with automatic token management.\n */\n\nimport { browserApiRequest } from \"@elqnt/api-client/browser\";\nimport type { ApiResponse, ApiClientOptions } from \"@elqnt/api-client\";\nimport type { ResponseMetadata } from \"@elqnt/types\";\nimport type {\n WorkflowDefinition,\n WorkflowInstance,\n ListWorkflowDefinitionsResponse,\n WorkflowDefinitionResponse,\n WorkflowInstanceResponse,\n ListWorkflowInstancesResponse,\n} from \"../models\";\n\n// =============================================================================\n// TYPES\n// =============================================================================\n\nexport interface WorkflowTemplate {\n id: string;\n name: string;\n title: string;\n description: string;\n category: string;\n variables: Array<{\n name: string;\n type: string;\n required: boolean;\n description?: string;\n }>;\n preview?: string;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface ListWorkflowTemplatesResponse {\n templates: WorkflowTemplate[];\n metadata: ResponseMetadata;\n}\n\nexport interface GetWorkflowTemplateResponse {\n template: WorkflowTemplate;\n metadata: ResponseMetadata;\n}\n\n// =============================================================================\n// WORKFLOW DEFINITIONS\n// =============================================================================\n\nexport async function listWorkflowsApi(\n options: ApiClientOptions\n): Promise<ApiResponse<ListWorkflowDefinitionsResponse>> {\n return browserApiRequest(\"/api/v1/workflows\", { method: \"GET\", ...options });\n}\n\nexport async function getWorkflowApi(\n workflowId: string,\n options: ApiClientOptions\n): Promise<ApiResponse<WorkflowDefinitionResponse>> {\n return browserApiRequest(`/api/v1/workflows/${workflowId}`, { method: \"GET\", ...options });\n}\n\nexport async function createWorkflowApi(\n workflow: Partial<WorkflowDefinition>,\n options: ApiClientOptions\n): Promise<ApiResponse<WorkflowDefinitionResponse & { id?: string }>> {\n return browserApiRequest(\"/api/v1/workflows\", { method: \"POST\", body: workflow, ...options });\n}\n\nexport async function updateWorkflowApi(\n workflowId: string,\n workflow: Partial<WorkflowDefinition>,\n options: ApiClientOptions\n): Promise<ApiResponse<WorkflowDefinitionResponse>> {\n return browserApiRequest(`/api/v1/workflows/${workflowId}`, { method: \"PUT\", body: workflow, ...options });\n}\n\nexport async function deleteWorkflowApi(\n workflowId: string,\n options: ApiClientOptions\n): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/workflows/${workflowId}`, { method: \"DELETE\", ...options });\n}\n\n// =============================================================================\n// WORKFLOW INSTANCES\n// =============================================================================\n\nexport async function createWorkflowInstanceApi(\n definitionId: string,\n data: { variables?: Record<string, unknown>; autoExecute?: boolean },\n options: ApiClientOptions\n): Promise<ApiResponse<WorkflowInstanceResponse & { id?: string }>> {\n return browserApiRequest(`/api/v1/workflows/${definitionId}/instances`, {\n method: \"POST\",\n body: data,\n ...options,\n });\n}\n\nexport async function getWorkflowInstanceApi(\n instanceId: string,\n options: ApiClientOptions\n): Promise<ApiResponse<WorkflowInstanceResponse>> {\n return browserApiRequest(`/api/v1/workflows/instances/${instanceId}`, { method: \"GET\", ...options });\n}\n\nexport async function listWorkflowInstancesApi(\n definitionId: string,\n options: ApiClientOptions & { userId?: string; status?: string }\n): Promise<ApiResponse<ListWorkflowInstancesResponse>> {\n const params = new URLSearchParams();\n if (options.userId) params.set(\"userId\", options.userId);\n if (options.status) params.set(\"status\", options.status);\n const queryString = params.toString();\n return browserApiRequest(\n `/api/v1/workflows/${definitionId}/instances${queryString ? `?${queryString}` : \"\"}`,\n { method: \"GET\", ...options }\n );\n}\n\nexport async function updateWorkflowInstanceStatusApi(\n instanceId: string,\n status: string,\n options: ApiClientOptions\n): Promise<ApiResponse<WorkflowInstanceResponse>> {\n return browserApiRequest(`/api/v1/workflows/instances/${instanceId}/status`, {\n method: \"PUT\",\n body: { status },\n ...options,\n });\n}\n\nexport async function executeWorkflowNodeApi(\n instanceId: string,\n nodeId: string,\n input: Record<string, unknown>,\n options: ApiClientOptions\n): Promise<ApiResponse<{ success: boolean; output?: Record<string, unknown>; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/workflows/instances/${instanceId}/nodes/${nodeId}/execute`, {\n method: \"POST\",\n body: { input },\n ...options,\n });\n}\n\nexport async function resumeWorkflowNodeApi(\n instanceId: string,\n nodeId: string,\n result: Record<string, unknown>,\n options: ApiClientOptions\n): Promise<ApiResponse<WorkflowInstanceResponse>> {\n return browserApiRequest(`/api/v1/workflows/instances/${instanceId}/nodes/${nodeId}/resume`, {\n method: \"POST\",\n body: { result },\n ...options,\n });\n}\n\nexport async function retryWorkflowNodeApi(\n instanceId: string,\n nodeId: string,\n options: ApiClientOptions\n): Promise<ApiResponse<WorkflowInstanceResponse>> {\n return browserApiRequest(`/api/v1/workflows/instances/${instanceId}/nodes/${nodeId}/retry`, {\n method: \"POST\",\n body: {},\n ...options,\n });\n}\n\n// =============================================================================\n// WORKFLOW TEMPLATES\n// =============================================================================\n\nexport async function listWorkflowTemplatesApi(\n options: ApiClientOptions & { category?: string }\n): Promise<ApiResponse<ListWorkflowTemplatesResponse>> {\n const params = new URLSearchParams();\n if (options.category) params.set(\"category\", options.category);\n const queryString = params.toString();\n return browserApiRequest(\n `/api/v1/workflows/templates${queryString ? `?${queryString}` : \"\"}`,\n { method: \"GET\", ...options }\n );\n}\n\nexport async function getWorkflowTemplateApi(\n templateId: string,\n options: ApiClientOptions\n): Promise<ApiResponse<GetWorkflowTemplateResponse>> {\n return browserApiRequest(`/api/v1/workflows/templates/${templateId}`, { method: \"GET\", ...options });\n}\n\nexport async function instantiateWorkflowTemplateApi(\n templateId: string,\n params: { variables: Record<string, unknown>; title?: string },\n options: ApiClientOptions\n): Promise<ApiResponse<WorkflowDefinitionResponse>> {\n return browserApiRequest(`/api/v1/workflows/templates/${templateId}/instantiate`, {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n"],"mappings":";;;AAOA,SAAS,yBAAyB;AA+ClC,eAAsB,iBACpB,SACuD;AACvD,SAAO,kBAAkB,qBAAqB,EAAE,QAAQ,OAAO,GAAG,QAAQ,CAAC;AAC7E;AAEA,eAAsB,eACpB,YACA,SACkD;AAClD,SAAO,kBAAkB,qBAAqB,UAAU,IAAI,EAAE,QAAQ,OAAO,GAAG,QAAQ,CAAC;AAC3F;AAEA,eAAsB,kBACpB,UACA,SACoE;AACpE,SAAO,kBAAkB,qBAAqB,EAAE,QAAQ,QAAQ,MAAM,UAAU,GAAG,QAAQ,CAAC;AAC9F;AAEA,eAAsB,kBACpB,YACA,UACA,SACkD;AAClD,SAAO,kBAAkB,qBAAqB,UAAU,IAAI,EAAE,QAAQ,OAAO,MAAM,UAAU,GAAG,QAAQ,CAAC;AAC3G;AAEA,eAAsB,kBACpB,YACA,SACwE;AACxE,SAAO,kBAAkB,qBAAqB,UAAU,IAAI,EAAE,QAAQ,UAAU,GAAG,QAAQ,CAAC;AAC9F;AAMA,eAAsB,0BACpB,cACA,MACA,SACkE;AAClE,SAAO,kBAAkB,qBAAqB,YAAY,cAAc;AAAA,IACtE,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,GAAG;AAAA,EACL,CAAC;AACH;AAEA,eAAsB,uBACpB,YACA,SACgD;AAChD,SAAO,kBAAkB,+BAA+B,UAAU,IAAI,EAAE,QAAQ,OAAO,GAAG,QAAQ,CAAC;AACrG;AAEA,eAAsB,yBACpB,cACA,SACqD;AACrD,QAAM,SAAS,IAAI,gBAAgB;AACnC,MAAI,QAAQ,OAAQ,QAAO,IAAI,UAAU,QAAQ,MAAM;AACvD,MAAI,QAAQ,OAAQ,QAAO,IAAI,UAAU,QAAQ,MAAM;AACvD,QAAM,cAAc,OAAO,SAAS;AACpC,SAAO;AAAA,IACL,qBAAqB,YAAY,aAAa,cAAc,IAAI,WAAW,KAAK,EAAE;AAAA,IAClF,EAAE,QAAQ,OAAO,GAAG,QAAQ;AAAA,EAC9B;AACF;AAEA,eAAsB,gCACpB,YACA,QACA,SACgD;AAChD,SAAO,kBAAkB,+BAA+B,UAAU,WAAW;AAAA,IAC3E,QAAQ;AAAA,IACR,MAAM,EAAE,OAAO;AAAA,IACf,GAAG;AAAA,EACL,CAAC;AACH;AAEA,eAAsB,uBACpB,YACA,QACA,OACA,SAC0G;AAC1G,SAAO,kBAAkB,+BAA+B,UAAU,UAAU,MAAM,YAAY;AAAA,IAC5F,QAAQ;AAAA,IACR,MAAM,EAAE,MAAM;AAAA,IACd,GAAG;AAAA,EACL,CAAC;AACH;AAEA,eAAsB,sBACpB,YACA,QACA,QACA,SACgD;AAChD,SAAO,kBAAkB,+BAA+B,UAAU,UAAU,MAAM,WAAW;AAAA,IAC3F,QAAQ;AAAA,IACR,MAAM,EAAE,OAAO;AAAA,IACf,GAAG;AAAA,EACL,CAAC;AACH;AAEA,eAAsB,qBACpB,YACA,QACA,SACgD;AAChD,SAAO,kBAAkB,+BAA+B,UAAU,UAAU,MAAM,UAAU;AAAA,IAC1F,QAAQ;AAAA,IACR,MAAM,CAAC;AAAA,IACP,GAAG;AAAA,EACL,CAAC;AACH;AAMA,eAAsB,yBACpB,SACqD;AACrD,QAAM,SAAS,IAAI,gBAAgB;AACnC,MAAI,QAAQ,SAAU,QAAO,IAAI,YAAY,QAAQ,QAAQ;AAC7D,QAAM,cAAc,OAAO,SAAS;AACpC,SAAO;AAAA,IACL,8BAA8B,cAAc,IAAI,WAAW,KAAK,EAAE;AAAA,IAClE,EAAE,QAAQ,OAAO,GAAG,QAAQ;AAAA,EAC9B;AACF;AAEA,eAAsB,uBACpB,YACA,SACmD;AACnD,SAAO,kBAAkB,+BAA+B,UAAU,IAAI,EAAE,QAAQ,OAAO,GAAG,QAAQ,CAAC;AACrG;AAEA,eAAsB,+BACpB,YACA,QACA,SACkD;AAClD,SAAO,kBAAkB,+BAA+B,UAAU,gBAAgB;AAAA,IAChF,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,GAAG;AAAA,EACL,CAAC;AACH;","names":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ApiClientOptions } from '@elqnt/api-client';
|
|
2
|
+
import { W as WorkflowDefinition, a as WorkflowInstance } from '../workflow-vv0mDt57.mjs';
|
|
3
|
+
import { WorkflowTemplate } from '../api/index.mjs';
|
|
4
|
+
import '@elqnt/types';
|
|
5
|
+
|
|
6
|
+
type UseWorkflowsOptions = ApiClientOptions;
|
|
7
|
+
/**
|
|
8
|
+
* Hook for workflow definition CRUD operations
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* const { loading, error, listWorkflows, createWorkflow } = useWorkflows({
|
|
13
|
+
* baseUrl: apiGatewayUrl,
|
|
14
|
+
* orgId: selectedOrgId,
|
|
15
|
+
* });
|
|
16
|
+
*
|
|
17
|
+
* const workflows = await listWorkflows();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare function useWorkflows(options: UseWorkflowsOptions): {
|
|
21
|
+
loading: boolean;
|
|
22
|
+
error: string | null;
|
|
23
|
+
listWorkflows: () => Promise<WorkflowDefinition[]>;
|
|
24
|
+
getWorkflow: (workflowId: string) => Promise<WorkflowDefinition | null>;
|
|
25
|
+
createWorkflow: (workflow: Partial<WorkflowDefinition>) => Promise<WorkflowDefinition | null>;
|
|
26
|
+
updateWorkflow: (workflowId: string, workflow: Partial<WorkflowDefinition>) => Promise<WorkflowDefinition | null>;
|
|
27
|
+
deleteWorkflow: (workflowId: string) => Promise<boolean>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Hook for workflow instance operations
|
|
31
|
+
*/
|
|
32
|
+
declare function useWorkflowInstances(options: UseWorkflowsOptions): {
|
|
33
|
+
loading: boolean;
|
|
34
|
+
error: string | null;
|
|
35
|
+
listInstances: (definitionId: string, filters?: {
|
|
36
|
+
userId?: string;
|
|
37
|
+
status?: string;
|
|
38
|
+
}) => Promise<WorkflowInstance[]>;
|
|
39
|
+
getInstance: (instanceId: string) => Promise<WorkflowInstance | null>;
|
|
40
|
+
createInstance: (definitionId: string, data?: {
|
|
41
|
+
variables?: Record<string, unknown>;
|
|
42
|
+
autoExecute?: boolean;
|
|
43
|
+
}) => Promise<WorkflowInstance | null>;
|
|
44
|
+
updateStatus: (instanceId: string, status: string) => Promise<WorkflowInstance | null>;
|
|
45
|
+
executeNode: (instanceId: string, nodeId: string, input: Record<string, unknown>) => Promise<Record<string, unknown> | null>;
|
|
46
|
+
resumeNode: (instanceId: string, nodeId: string, result: Record<string, unknown>) => Promise<WorkflowInstance | null>;
|
|
47
|
+
retryNode: (instanceId: string, nodeId: string) => Promise<WorkflowInstance | null>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Hook for workflow template operations
|
|
51
|
+
*/
|
|
52
|
+
declare function useWorkflowTemplates(options: UseWorkflowsOptions): {
|
|
53
|
+
loading: boolean;
|
|
54
|
+
error: string | null;
|
|
55
|
+
listTemplates: (category?: string) => Promise<WorkflowTemplate[]>;
|
|
56
|
+
getTemplate: (templateId: string) => Promise<WorkflowTemplate | null>;
|
|
57
|
+
instantiateTemplate: (templateId: string, params: {
|
|
58
|
+
variables: Record<string, unknown>;
|
|
59
|
+
title?: string;
|
|
60
|
+
}) => Promise<WorkflowDefinition | null>;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export { type UseWorkflowsOptions, useWorkflowInstances, useWorkflowTemplates, useWorkflows };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ApiClientOptions } from '@elqnt/api-client';
|
|
2
|
+
import { W as WorkflowDefinition, a as WorkflowInstance } from '../workflow-vv0mDt57.js';
|
|
3
|
+
import { WorkflowTemplate } from '../api/index.js';
|
|
4
|
+
import '@elqnt/types';
|
|
5
|
+
|
|
6
|
+
type UseWorkflowsOptions = ApiClientOptions;
|
|
7
|
+
/**
|
|
8
|
+
* Hook for workflow definition CRUD operations
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* const { loading, error, listWorkflows, createWorkflow } = useWorkflows({
|
|
13
|
+
* baseUrl: apiGatewayUrl,
|
|
14
|
+
* orgId: selectedOrgId,
|
|
15
|
+
* });
|
|
16
|
+
*
|
|
17
|
+
* const workflows = await listWorkflows();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare function useWorkflows(options: UseWorkflowsOptions): {
|
|
21
|
+
loading: boolean;
|
|
22
|
+
error: string | null;
|
|
23
|
+
listWorkflows: () => Promise<WorkflowDefinition[]>;
|
|
24
|
+
getWorkflow: (workflowId: string) => Promise<WorkflowDefinition | null>;
|
|
25
|
+
createWorkflow: (workflow: Partial<WorkflowDefinition>) => Promise<WorkflowDefinition | null>;
|
|
26
|
+
updateWorkflow: (workflowId: string, workflow: Partial<WorkflowDefinition>) => Promise<WorkflowDefinition | null>;
|
|
27
|
+
deleteWorkflow: (workflowId: string) => Promise<boolean>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Hook for workflow instance operations
|
|
31
|
+
*/
|
|
32
|
+
declare function useWorkflowInstances(options: UseWorkflowsOptions): {
|
|
33
|
+
loading: boolean;
|
|
34
|
+
error: string | null;
|
|
35
|
+
listInstances: (definitionId: string, filters?: {
|
|
36
|
+
userId?: string;
|
|
37
|
+
status?: string;
|
|
38
|
+
}) => Promise<WorkflowInstance[]>;
|
|
39
|
+
getInstance: (instanceId: string) => Promise<WorkflowInstance | null>;
|
|
40
|
+
createInstance: (definitionId: string, data?: {
|
|
41
|
+
variables?: Record<string, unknown>;
|
|
42
|
+
autoExecute?: boolean;
|
|
43
|
+
}) => Promise<WorkflowInstance | null>;
|
|
44
|
+
updateStatus: (instanceId: string, status: string) => Promise<WorkflowInstance | null>;
|
|
45
|
+
executeNode: (instanceId: string, nodeId: string, input: Record<string, unknown>) => Promise<Record<string, unknown> | null>;
|
|
46
|
+
resumeNode: (instanceId: string, nodeId: string, result: Record<string, unknown>) => Promise<WorkflowInstance | null>;
|
|
47
|
+
retryNode: (instanceId: string, nodeId: string) => Promise<WorkflowInstance | null>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Hook for workflow template operations
|
|
51
|
+
*/
|
|
52
|
+
declare function useWorkflowTemplates(options: UseWorkflowsOptions): {
|
|
53
|
+
loading: boolean;
|
|
54
|
+
error: string | null;
|
|
55
|
+
listTemplates: (category?: string) => Promise<WorkflowTemplate[]>;
|
|
56
|
+
getTemplate: (templateId: string) => Promise<WorkflowTemplate | null>;
|
|
57
|
+
instantiateTemplate: (templateId: string, params: {
|
|
58
|
+
variables: Record<string, unknown>;
|
|
59
|
+
title?: string;
|
|
60
|
+
}) => Promise<WorkflowDefinition | null>;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export { type UseWorkflowsOptions, useWorkflowInstances, useWorkflowTemplates, useWorkflows };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkF5G2ALFSjs = require('../chunk-F5G2ALFS.js');
|
|
8
|
+
require('../chunk-JES2EBNO.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.useWorkflowInstances = _chunkF5G2ALFSjs.useWorkflowInstances; exports.useWorkflowTemplates = _chunkF5G2ALFSjs.useWorkflowTemplates; exports.useWorkflows = _chunkF5G2ALFSjs.useWorkflows;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/workflow/dist/hooks/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,iMAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/workflow/dist/hooks/index.js"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import {
|
|
4
|
+
useWorkflowInstances,
|
|
5
|
+
useWorkflowTemplates,
|
|
6
|
+
useWorkflows
|
|
7
|
+
} from "../chunk-TZA3EPTC.mjs";
|
|
8
|
+
import "../chunk-UE4ZBFLG.mjs";
|
|
9
|
+
export {
|
|
10
|
+
useWorkflowInstances,
|
|
11
|
+
useWorkflowTemplates,
|
|
12
|
+
useWorkflows
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { JSONSchema } from '@elqnt/types';
|
|
3
|
-
import { W as WorkflowDefinition, a as WorkflowInstance } from './
|
|
4
|
-
export {
|
|
3
|
+
import { W as WorkflowDefinition, a as WorkflowInstance } from './workflow-vv0mDt57.mjs';
|
|
4
|
+
export { cf as AccountingNodeSubType, c4 as AccountingNodeSubTypes, c8 as ActionNodeSubType, bZ as ActionNodeSubTypes, c7 as AgentNodeSubType, bY as AgentNodeSubTypes, b8 as CacheConfig, aM as CreateWorkflowDefinitionRequest, bh as CreateWorkflowInstanceRequest, cb as DataNodeSubType, c1 as DataNodeSubTypes, ca as DelayNodeSubType, b$ as DelayNodeSubTypes, aR as DeleteWorkflowDefinitionRequest, bv as EdgeState, bN as EdgeStatus, bP as EdgeStatusCompleted, bO as EdgeStatusPending, bQ as EdgeStatusSkipped, aq as EdgeType, ay as EdgeTypeCompensation, aw as EdgeTypeConditional, au as EdgeTypeDefault, aH as EdgeTypeDefinition, at as EdgeTypeError, as as EdgeTypeLoopBack, ax as EdgeTypeMerge, ar as EdgeTypeNormal, av as EdgeTypeParallel, az as EdgeTypeTimeout, b6 as ExecutionConfig, bt as ExecutionContext, bx as ExecutionError, bw as ExecutionPathEntry, b9 as ExpressionConfig, ak as ExpressionType, ao as ExpressionTypeDSL, al as ExpressionTypeFilter, am as ExpressionTypeJavaScript, ap as ExpressionTypeRules, an as ExpressionTypeTemplate, bn as GetInstanceByStateVariableRequest, aP as GetWorkflowDefinitionByTitleRequest, aO as GetWorkflowDefinitionRequest, bm as GetWorkflowInstanceRequest, c6 as HumanActionNodeSubType, bX as HumanActionNodeSubTypes, bs as InstanceState, by as InstanceStatus, bD as InstanceStatusCompleted, bE as InstanceStatusFailed, bz as InstanceStatusNew, bC as InstanceStatusPaused, bA as InstanceStatusRunning, bB as InstanceStatusWaiting, aK as Intent, br as ListInstancesOptions, aQ as ListWorkflowDefinitionsRequest, L as ListWorkflowDefinitionsResponse, bo as ListWorkflowInstancesRequest, d as ListWorkflowInstancesResponse, c9 as LogicNodeSubType, b_ as LogicNodeSubTypes, aJ as LogicPath, cd as LoopNodeSubType, c3 as LoopNodeSubTypes, aL as Metadata, ck as NodeCategory, b3 as NodeConfig, aG as NodeDefinition, b1 as NodeInput, bF as NodeInstance, b2 as NodeOutput, b5 as NodeSettings, bu as NodeState, bG as NodeStatus, bJ as NodeStatusCompleted, bK as NodeStatusFailed, bH as NodeStatusPending, bI as NodeStatusRunning, bM as NodeStatusSkipped, bL as NodeStatusWaiting, t as NodeSubType, R as NodeSubTypeActionApiCall, a0 as NodeSubTypeActionAssignSLAPolicy, a3 as NodeSubTypeActionCSATSurvey, a1 as NodeSubTypeActionChangeSLAStatus, Y as NodeSubTypeActionCreateEntityRecord, _ as NodeSubTypeActionDeleteEntityRecord, S as NodeSubTypeActionDocumentExtraction, a2 as NodeSubTypeActionEscalateSLA, V as NodeSubTypeActionGenerateDocument, $ as NodeSubTypeActionMergeEntityRecords, a6 as NodeSubTypeActionNatsRequest, X as NodeSubTypeActionProcessPayment, a5 as NodeSubTypeActionQueryEntityRecords, T as NodeSubTypeActionSendEmail, U as NodeSubTypeActionSendSMS, a4 as NodeSubTypeActionSetVariables, Z as NodeSubTypeActionUpdateEntityRecord, O as NodeSubTypeAgentApiIntegration, G as NodeSubTypeAgentChat, J as NodeSubTypeAgentClientApiCall, P as NodeSubTypeAgentCustomResponse, H as NodeSubTypeAgentIntentDetector, I as NodeSubTypeAgentKnowledgeGraph, M as NodeSubTypeAgentOpenTicket, Q as NodeSubTypeAgentStructuredOutput, K as NodeSubTypeAgentTransferToHuman, af as NodeSubTypeDataCalculate, ad as NodeSubTypeDataFilter, ae as NodeSubTypeDataMap, ag as NodeSubTypeDataValidate, ac as NodeSubTypeDelay, D as NodeSubTypeHumanActionApproval, F as NodeSubTypeHumanActionAssignment, E as NodeSubTypeHumanActionDataEntry, C as NodeSubTypeHumanActionReview, bT as NodeSubTypeInfo, a9 as NodeSubTypeLogicFor, a7 as NodeSubTypeLogicIf, aa as NodeSubTypeLogicParallel, a8 as NodeSubTypeLogicSwitch, ab as NodeSubTypeLoopData, bS as NodeSubTypeTS, aj as NodeSubTypeTimerBusinessHours, ah as NodeSubTypeTimerDelay, ai as NodeSubTypeTimerSchedule, v as NodeSubTypeTriggerEntityRecordCreated, x as NodeSubTypeTriggerEntityRecordDeleted, w as NodeSubTypeTriggerEntityRecordUpdated, A as NodeSubTypeTriggerEscalation, z as NodeSubTypeTriggerSLABreach, y as NodeSubTypeTriggerSLAWarning, u as NodeSubTypeTriggerStart, B as NodeSubTypeTriggerWebhookReceived, N as NodeType, r as NodeTypeAccounting, h as NodeTypeAction, g as NodeTypeAgent, q as NodeTypeCustom, m as NodeTypeData, l as NodeTypeDelay, s as NodeTypeDocumentExtraction, f as NodeTypeHumanAction, n as NodeTypeIntegration, i as NodeTypeLogic, j as NodeTypeLoop, k as NodeTypeParallel, p as NodeTypeSubflow, o as NodeTypeTimer, e as NodeTypeTrigger, ce as ParallelNodeSubType, c0 as ParallelNodeSubTypes, a_ as PersistenceType, a$ as PersistenceTypeEphemeral, b0 as PersistenceTypePermanent, b7 as RetryConfig, bq as RetryNodeRequest, aU as RuleLevel, aV as RuleLevelError, aX as RuleLevelInfo, aW as RuleLevelWarning, bc as TimeoutAction, bg as TimeoutActionAlt, bd as TimeoutActionFail, bf as TimeoutActionRetry, be as TimeoutActionSkip, bb as TimeoutConfig, cc as TimerNodeSubType, c2 as TimerNodeSubTypes, c5 as TriggerNodeSubType, bW as TriggerNodeSubTypes, bl as UpdateInstanceNodeMetadataRequest, bp as UpdateInstanceStatusRequest, aN as UpdateWorkflowDefinitionRequest, bR as WorkflowDefinitionInfo, b as WorkflowDefinitionResponse, ba as WorkflowEdge, cn as WorkflowEdgeTypeOptionTS, cm as WorkflowEdgeTypeTS, cl as WorkflowEdgeTypes, bk as WorkflowInstanceExecuteNodeLeanRequest, bi as WorkflowInstanceExecuteNodeRequest, c as WorkflowInstanceResponse, bj as WorkflowInstanceResumeNodeRequest, aZ as WorkflowMetadata, b4 as WorkflowNode, cg as WorkflowNodeSubTypeTS, cj as WorkflowNodeTypeOptionTS, ci as WorkflowNodeTypeTS, ch as WorkflowNodeTypes, aY as WorkflowPermissions, aT as WorkflowRule, aA as WorkflowType, aE as WorkflowTypeAgent, aD as WorkflowTypeChat, aI as WorkflowTypeDefinition, aC as WorkflowTypeDocument, aB as WorkflowTypeEntity, cq as WorkflowTypeOptionTS, aF as WorkflowTypeProductivity, cp as WorkflowTypeTS, co as WorkflowTypes, aS as WorkflowVariables, bU as nodeDefinitions, bV as nodeSchemas } from './workflow-vv0mDt57.mjs';
|
|
5
|
+
export { WorkflowDefinitionCreate, WorkflowDefinitionCreated, WorkflowDefinitionDelete, WorkflowDefinitionDeleted, WorkflowDefinitionGet, WorkflowDefinitionGetByTitle, WorkflowDefinitionGetServer, WorkflowDefinitionList, WorkflowDefinitionUpdate, WorkflowDefinitionUpdated, WorkflowExecutionCompleted, WorkflowExecutionFailed, WorkflowExecutionStarted, WorkflowInstanceCreate, WorkflowInstanceExecuteNode, WorkflowInstanceExecuteNodeLean, WorkflowInstanceExecuteNodeLeanServer, WorkflowInstanceExecuteNodeServer, WorkflowInstanceGet, WorkflowInstanceGetByStateVariable, WorkflowInstanceList, WorkflowInstanceResumeNode, WorkflowInstanceResumeNodeServer, WorkflowInstanceUpdate, WorkflowInstanceUpdateNodeMetadata, WorkflowInstanceUpdated, WorkflowScheduleCreate, WorkflowScheduleDelete, WorkflowScheduleList, WorkflowSchedulePause, WorkflowScheduleResume, WorkflowScheduleUpdate, WorkflowTemplateGet, WorkflowTemplateInstantiate, WorkflowTemplateList, WorkflowTriggerFired, WorkflowTriggerPause, WorkflowTriggerRegister, WorkflowTriggerResume, WorkflowTriggerStatus } from './models/index.mjs';
|
|
5
6
|
import * as redux from 'redux';
|
|
7
|
+
export { GetWorkflowTemplateResponse, ListWorkflowTemplatesResponse, WorkflowTemplate, createWorkflowApi, createWorkflowInstanceApi, deleteWorkflowApi, executeWorkflowNodeApi, getWorkflowApi, getWorkflowInstanceApi, getWorkflowTemplateApi, instantiateWorkflowTemplateApi, listWorkflowInstancesApi, listWorkflowTemplatesApi, listWorkflowsApi, resumeWorkflowNodeApi, retryWorkflowNodeApi, updateWorkflowApi, updateWorkflowInstanceStatusApi } from './api/index.mjs';
|
|
8
|
+
export { UseWorkflowsOptions, useWorkflowInstances, useWorkflowTemplates, useWorkflows } from './hooks/index.mjs';
|
|
9
|
+
import '@elqnt/api-client';
|
|
6
10
|
|
|
7
11
|
interface DynamicSchemaFormUIComponents {
|
|
8
12
|
Input: React.ComponentType<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { JSONSchema } from '@elqnt/types';
|
|
3
|
-
import { W as WorkflowDefinition, a as WorkflowInstance } from './
|
|
4
|
-
export {
|
|
3
|
+
import { W as WorkflowDefinition, a as WorkflowInstance } from './workflow-vv0mDt57.js';
|
|
4
|
+
export { cf as AccountingNodeSubType, c4 as AccountingNodeSubTypes, c8 as ActionNodeSubType, bZ as ActionNodeSubTypes, c7 as AgentNodeSubType, bY as AgentNodeSubTypes, b8 as CacheConfig, aM as CreateWorkflowDefinitionRequest, bh as CreateWorkflowInstanceRequest, cb as DataNodeSubType, c1 as DataNodeSubTypes, ca as DelayNodeSubType, b$ as DelayNodeSubTypes, aR as DeleteWorkflowDefinitionRequest, bv as EdgeState, bN as EdgeStatus, bP as EdgeStatusCompleted, bO as EdgeStatusPending, bQ as EdgeStatusSkipped, aq as EdgeType, ay as EdgeTypeCompensation, aw as EdgeTypeConditional, au as EdgeTypeDefault, aH as EdgeTypeDefinition, at as EdgeTypeError, as as EdgeTypeLoopBack, ax as EdgeTypeMerge, ar as EdgeTypeNormal, av as EdgeTypeParallel, az as EdgeTypeTimeout, b6 as ExecutionConfig, bt as ExecutionContext, bx as ExecutionError, bw as ExecutionPathEntry, b9 as ExpressionConfig, ak as ExpressionType, ao as ExpressionTypeDSL, al as ExpressionTypeFilter, am as ExpressionTypeJavaScript, ap as ExpressionTypeRules, an as ExpressionTypeTemplate, bn as GetInstanceByStateVariableRequest, aP as GetWorkflowDefinitionByTitleRequest, aO as GetWorkflowDefinitionRequest, bm as GetWorkflowInstanceRequest, c6 as HumanActionNodeSubType, bX as HumanActionNodeSubTypes, bs as InstanceState, by as InstanceStatus, bD as InstanceStatusCompleted, bE as InstanceStatusFailed, bz as InstanceStatusNew, bC as InstanceStatusPaused, bA as InstanceStatusRunning, bB as InstanceStatusWaiting, aK as Intent, br as ListInstancesOptions, aQ as ListWorkflowDefinitionsRequest, L as ListWorkflowDefinitionsResponse, bo as ListWorkflowInstancesRequest, d as ListWorkflowInstancesResponse, c9 as LogicNodeSubType, b_ as LogicNodeSubTypes, aJ as LogicPath, cd as LoopNodeSubType, c3 as LoopNodeSubTypes, aL as Metadata, ck as NodeCategory, b3 as NodeConfig, aG as NodeDefinition, b1 as NodeInput, bF as NodeInstance, b2 as NodeOutput, b5 as NodeSettings, bu as NodeState, bG as NodeStatus, bJ as NodeStatusCompleted, bK as NodeStatusFailed, bH as NodeStatusPending, bI as NodeStatusRunning, bM as NodeStatusSkipped, bL as NodeStatusWaiting, t as NodeSubType, R as NodeSubTypeActionApiCall, a0 as NodeSubTypeActionAssignSLAPolicy, a3 as NodeSubTypeActionCSATSurvey, a1 as NodeSubTypeActionChangeSLAStatus, Y as NodeSubTypeActionCreateEntityRecord, _ as NodeSubTypeActionDeleteEntityRecord, S as NodeSubTypeActionDocumentExtraction, a2 as NodeSubTypeActionEscalateSLA, V as NodeSubTypeActionGenerateDocument, $ as NodeSubTypeActionMergeEntityRecords, a6 as NodeSubTypeActionNatsRequest, X as NodeSubTypeActionProcessPayment, a5 as NodeSubTypeActionQueryEntityRecords, T as NodeSubTypeActionSendEmail, U as NodeSubTypeActionSendSMS, a4 as NodeSubTypeActionSetVariables, Z as NodeSubTypeActionUpdateEntityRecord, O as NodeSubTypeAgentApiIntegration, G as NodeSubTypeAgentChat, J as NodeSubTypeAgentClientApiCall, P as NodeSubTypeAgentCustomResponse, H as NodeSubTypeAgentIntentDetector, I as NodeSubTypeAgentKnowledgeGraph, M as NodeSubTypeAgentOpenTicket, Q as NodeSubTypeAgentStructuredOutput, K as NodeSubTypeAgentTransferToHuman, af as NodeSubTypeDataCalculate, ad as NodeSubTypeDataFilter, ae as NodeSubTypeDataMap, ag as NodeSubTypeDataValidate, ac as NodeSubTypeDelay, D as NodeSubTypeHumanActionApproval, F as NodeSubTypeHumanActionAssignment, E as NodeSubTypeHumanActionDataEntry, C as NodeSubTypeHumanActionReview, bT as NodeSubTypeInfo, a9 as NodeSubTypeLogicFor, a7 as NodeSubTypeLogicIf, aa as NodeSubTypeLogicParallel, a8 as NodeSubTypeLogicSwitch, ab as NodeSubTypeLoopData, bS as NodeSubTypeTS, aj as NodeSubTypeTimerBusinessHours, ah as NodeSubTypeTimerDelay, ai as NodeSubTypeTimerSchedule, v as NodeSubTypeTriggerEntityRecordCreated, x as NodeSubTypeTriggerEntityRecordDeleted, w as NodeSubTypeTriggerEntityRecordUpdated, A as NodeSubTypeTriggerEscalation, z as NodeSubTypeTriggerSLABreach, y as NodeSubTypeTriggerSLAWarning, u as NodeSubTypeTriggerStart, B as NodeSubTypeTriggerWebhookReceived, N as NodeType, r as NodeTypeAccounting, h as NodeTypeAction, g as NodeTypeAgent, q as NodeTypeCustom, m as NodeTypeData, l as NodeTypeDelay, s as NodeTypeDocumentExtraction, f as NodeTypeHumanAction, n as NodeTypeIntegration, i as NodeTypeLogic, j as NodeTypeLoop, k as NodeTypeParallel, p as NodeTypeSubflow, o as NodeTypeTimer, e as NodeTypeTrigger, ce as ParallelNodeSubType, c0 as ParallelNodeSubTypes, a_ as PersistenceType, a$ as PersistenceTypeEphemeral, b0 as PersistenceTypePermanent, b7 as RetryConfig, bq as RetryNodeRequest, aU as RuleLevel, aV as RuleLevelError, aX as RuleLevelInfo, aW as RuleLevelWarning, bc as TimeoutAction, bg as TimeoutActionAlt, bd as TimeoutActionFail, bf as TimeoutActionRetry, be as TimeoutActionSkip, bb as TimeoutConfig, cc as TimerNodeSubType, c2 as TimerNodeSubTypes, c5 as TriggerNodeSubType, bW as TriggerNodeSubTypes, bl as UpdateInstanceNodeMetadataRequest, bp as UpdateInstanceStatusRequest, aN as UpdateWorkflowDefinitionRequest, bR as WorkflowDefinitionInfo, b as WorkflowDefinitionResponse, ba as WorkflowEdge, cn as WorkflowEdgeTypeOptionTS, cm as WorkflowEdgeTypeTS, cl as WorkflowEdgeTypes, bk as WorkflowInstanceExecuteNodeLeanRequest, bi as WorkflowInstanceExecuteNodeRequest, c as WorkflowInstanceResponse, bj as WorkflowInstanceResumeNodeRequest, aZ as WorkflowMetadata, b4 as WorkflowNode, cg as WorkflowNodeSubTypeTS, cj as WorkflowNodeTypeOptionTS, ci as WorkflowNodeTypeTS, ch as WorkflowNodeTypes, aY as WorkflowPermissions, aT as WorkflowRule, aA as WorkflowType, aE as WorkflowTypeAgent, aD as WorkflowTypeChat, aI as WorkflowTypeDefinition, aC as WorkflowTypeDocument, aB as WorkflowTypeEntity, cq as WorkflowTypeOptionTS, aF as WorkflowTypeProductivity, cp as WorkflowTypeTS, co as WorkflowTypes, aS as WorkflowVariables, bU as nodeDefinitions, bV as nodeSchemas } from './workflow-vv0mDt57.js';
|
|
5
|
+
export { WorkflowDefinitionCreate, WorkflowDefinitionCreated, WorkflowDefinitionDelete, WorkflowDefinitionDeleted, WorkflowDefinitionGet, WorkflowDefinitionGetByTitle, WorkflowDefinitionGetServer, WorkflowDefinitionList, WorkflowDefinitionUpdate, WorkflowDefinitionUpdated, WorkflowExecutionCompleted, WorkflowExecutionFailed, WorkflowExecutionStarted, WorkflowInstanceCreate, WorkflowInstanceExecuteNode, WorkflowInstanceExecuteNodeLean, WorkflowInstanceExecuteNodeLeanServer, WorkflowInstanceExecuteNodeServer, WorkflowInstanceGet, WorkflowInstanceGetByStateVariable, WorkflowInstanceList, WorkflowInstanceResumeNode, WorkflowInstanceResumeNodeServer, WorkflowInstanceUpdate, WorkflowInstanceUpdateNodeMetadata, WorkflowInstanceUpdated, WorkflowScheduleCreate, WorkflowScheduleDelete, WorkflowScheduleList, WorkflowSchedulePause, WorkflowScheduleResume, WorkflowScheduleUpdate, WorkflowTemplateGet, WorkflowTemplateInstantiate, WorkflowTemplateList, WorkflowTriggerFired, WorkflowTriggerPause, WorkflowTriggerRegister, WorkflowTriggerResume, WorkflowTriggerStatus } from './models/index.js';
|
|
5
6
|
import * as redux from 'redux';
|
|
7
|
+
export { GetWorkflowTemplateResponse, ListWorkflowTemplatesResponse, WorkflowTemplate, createWorkflowApi, createWorkflowInstanceApi, deleteWorkflowApi, executeWorkflowNodeApi, getWorkflowApi, getWorkflowInstanceApi, getWorkflowTemplateApi, instantiateWorkflowTemplateApi, listWorkflowInstancesApi, listWorkflowTemplatesApi, listWorkflowsApi, resumeWorkflowNodeApi, retryWorkflowNodeApi, updateWorkflowApi, updateWorkflowInstanceStatusApi } from './api/index.js';
|
|
8
|
+
export { UseWorkflowsOptions, useWorkflowInstances, useWorkflowTemplates, useWorkflows } from './hooks/index.js';
|
|
9
|
+
import '@elqnt/api-client';
|
|
6
10
|
|
|
7
11
|
interface DynamicSchemaFormUIComponents {
|
|
8
12
|
Input: React.ComponentType<{
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
var _chunkF5G2ALFSjs = require('./chunk-F5G2ALFS.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var _chunkJES2EBNOjs = require('./chunk-JES2EBNO.js');
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
|
|
7
29
|
|
|
8
30
|
|
|
@@ -4342,5 +4364,23 @@ var WorkflowTypes = {
|
|
|
4342
4364
|
|
|
4343
4365
|
|
|
4344
4366
|
|
|
4345
|
-
exports.AccountingNodeSubTypes = AccountingNodeSubTypes; exports.ActionNodeSubTypes = ActionNodeSubTypes; exports.AgentNodeSubTypes = AgentNodeSubTypes; exports.DataNodeSubTypes = DataNodeSubTypes; exports.DelayNodeSubTypes = DelayNodeSubTypes; exports.DynamicSchemaForm = DynamicSchemaForm; exports.EdgeStatusCompleted = _chunkH24IF5AAjs.EdgeStatusCompleted; exports.EdgeStatusPending = _chunkH24IF5AAjs.EdgeStatusPending; exports.EdgeStatusSkipped = _chunkH24IF5AAjs.EdgeStatusSkipped; exports.EdgeTypeCompensation = _chunkH24IF5AAjs.EdgeTypeCompensation; exports.EdgeTypeConditional = _chunkH24IF5AAjs.EdgeTypeConditional; exports.EdgeTypeDefault = _chunkH24IF5AAjs.EdgeTypeDefault; exports.EdgeTypeError = _chunkH24IF5AAjs.EdgeTypeError; exports.EdgeTypeLoopBack = _chunkH24IF5AAjs.EdgeTypeLoopBack; exports.EdgeTypeMerge = _chunkH24IF5AAjs.EdgeTypeMerge; exports.EdgeTypeNormal = _chunkH24IF5AAjs.EdgeTypeNormal; exports.EdgeTypeParallel = _chunkH24IF5AAjs.EdgeTypeParallel; exports.EdgeTypeTimeout = _chunkH24IF5AAjs.EdgeTypeTimeout; exports.ExpressionTypeDSL = _chunkH24IF5AAjs.ExpressionTypeDSL; exports.ExpressionTypeFilter = _chunkH24IF5AAjs.ExpressionTypeFilter; exports.ExpressionTypeJavaScript = _chunkH24IF5AAjs.ExpressionTypeJavaScript; exports.ExpressionTypeRules = _chunkH24IF5AAjs.ExpressionTypeRules; exports.ExpressionTypeTemplate = _chunkH24IF5AAjs.ExpressionTypeTemplate; exports.HumanActionNodeSubTypes = HumanActionNodeSubTypes; exports.InstanceStatusCompleted = _chunkH24IF5AAjs.InstanceStatusCompleted; exports.InstanceStatusFailed = _chunkH24IF5AAjs.InstanceStatusFailed; exports.InstanceStatusNew = _chunkH24IF5AAjs.InstanceStatusNew; exports.InstanceStatusPaused = _chunkH24IF5AAjs.InstanceStatusPaused; exports.InstanceStatusRunning = _chunkH24IF5AAjs.InstanceStatusRunning; exports.InstanceStatusWaiting = _chunkH24IF5AAjs.InstanceStatusWaiting; exports.LogicNodeSubTypes = LogicNodeSubTypes; exports.LoopNodeSubTypes = LoopNodeSubTypes; exports.NodeStatusCompleted = _chunkH24IF5AAjs.NodeStatusCompleted; exports.NodeStatusFailed = _chunkH24IF5AAjs.NodeStatusFailed; exports.NodeStatusPending = _chunkH24IF5AAjs.NodeStatusPending; exports.NodeStatusRunning = _chunkH24IF5AAjs.NodeStatusRunning; exports.NodeStatusSkipped = _chunkH24IF5AAjs.NodeStatusSkipped; exports.NodeStatusWaiting = _chunkH24IF5AAjs.NodeStatusWaiting; exports.NodeSubTypeActionApiCall = _chunkH24IF5AAjs.NodeSubTypeActionApiCall; exports.NodeSubTypeActionAssignSLAPolicy = _chunkH24IF5AAjs.NodeSubTypeActionAssignSLAPolicy; exports.NodeSubTypeActionCSATSurvey = _chunkH24IF5AAjs.NodeSubTypeActionCSATSurvey; exports.NodeSubTypeActionChangeSLAStatus = _chunkH24IF5AAjs.NodeSubTypeActionChangeSLAStatus; exports.NodeSubTypeActionCreateEntityRecord = _chunkH24IF5AAjs.NodeSubTypeActionCreateEntityRecord; exports.NodeSubTypeActionDeleteEntityRecord = _chunkH24IF5AAjs.NodeSubTypeActionDeleteEntityRecord; exports.NodeSubTypeActionDocumentExtraction = _chunkH24IF5AAjs.NodeSubTypeActionDocumentExtraction; exports.NodeSubTypeActionEscalateSLA = _chunkH24IF5AAjs.NodeSubTypeActionEscalateSLA; exports.NodeSubTypeActionGenerateDocument = _chunkH24IF5AAjs.NodeSubTypeActionGenerateDocument; exports.NodeSubTypeActionMergeEntityRecords = _chunkH24IF5AAjs.NodeSubTypeActionMergeEntityRecords; exports.NodeSubTypeActionNatsRequest = _chunkH24IF5AAjs.NodeSubTypeActionNatsRequest; exports.NodeSubTypeActionProcessPayment = _chunkH24IF5AAjs.NodeSubTypeActionProcessPayment; exports.NodeSubTypeActionQueryEntityRecords = _chunkH24IF5AAjs.NodeSubTypeActionQueryEntityRecords; exports.NodeSubTypeActionSendEmail = _chunkH24IF5AAjs.NodeSubTypeActionSendEmail; exports.NodeSubTypeActionSendSMS = _chunkH24IF5AAjs.NodeSubTypeActionSendSMS; exports.NodeSubTypeActionSetVariables = _chunkH24IF5AAjs.NodeSubTypeActionSetVariables; exports.NodeSubTypeActionUpdateEntityRecord = _chunkH24IF5AAjs.NodeSubTypeActionUpdateEntityRecord; exports.NodeSubTypeAgentApiIntegration = _chunkH24IF5AAjs.NodeSubTypeAgentApiIntegration; exports.NodeSubTypeAgentChat = _chunkH24IF5AAjs.NodeSubTypeAgentChat; exports.NodeSubTypeAgentClientApiCall = _chunkH24IF5AAjs.NodeSubTypeAgentClientApiCall; exports.NodeSubTypeAgentCustomResponse = _chunkH24IF5AAjs.NodeSubTypeAgentCustomResponse; exports.NodeSubTypeAgentIntentDetector = _chunkH24IF5AAjs.NodeSubTypeAgentIntentDetector; exports.NodeSubTypeAgentKnowledgeGraph = _chunkH24IF5AAjs.NodeSubTypeAgentKnowledgeGraph; exports.NodeSubTypeAgentOpenTicket = _chunkH24IF5AAjs.NodeSubTypeAgentOpenTicket; exports.NodeSubTypeAgentStructuredOutput = _chunkH24IF5AAjs.NodeSubTypeAgentStructuredOutput; exports.NodeSubTypeAgentTransferToHuman = _chunkH24IF5AAjs.NodeSubTypeAgentTransferToHuman; exports.NodeSubTypeDataCalculate = _chunkH24IF5AAjs.NodeSubTypeDataCalculate; exports.NodeSubTypeDataFilter = _chunkH24IF5AAjs.NodeSubTypeDataFilter; exports.NodeSubTypeDataMap = _chunkH24IF5AAjs.NodeSubTypeDataMap; exports.NodeSubTypeDataValidate = _chunkH24IF5AAjs.NodeSubTypeDataValidate; exports.NodeSubTypeDelay = _chunkH24IF5AAjs.NodeSubTypeDelay; exports.NodeSubTypeHumanActionApproval = _chunkH24IF5AAjs.NodeSubTypeHumanActionApproval; exports.NodeSubTypeHumanActionAssignment = _chunkH24IF5AAjs.NodeSubTypeHumanActionAssignment; exports.NodeSubTypeHumanActionDataEntry = _chunkH24IF5AAjs.NodeSubTypeHumanActionDataEntry; exports.NodeSubTypeHumanActionReview = _chunkH24IF5AAjs.NodeSubTypeHumanActionReview; exports.NodeSubTypeLogicFor = _chunkH24IF5AAjs.NodeSubTypeLogicFor; exports.NodeSubTypeLogicIf = _chunkH24IF5AAjs.NodeSubTypeLogicIf; exports.NodeSubTypeLogicParallel = _chunkH24IF5AAjs.NodeSubTypeLogicParallel; exports.NodeSubTypeLogicSwitch = _chunkH24IF5AAjs.NodeSubTypeLogicSwitch; exports.NodeSubTypeLoopData = _chunkH24IF5AAjs.NodeSubTypeLoopData; exports.NodeSubTypeTimerBusinessHours = _chunkH24IF5AAjs.NodeSubTypeTimerBusinessHours; exports.NodeSubTypeTimerDelay = _chunkH24IF5AAjs.NodeSubTypeTimerDelay; exports.NodeSubTypeTimerSchedule = _chunkH24IF5AAjs.NodeSubTypeTimerSchedule; exports.NodeSubTypeTriggerEntityRecordCreated = _chunkH24IF5AAjs.NodeSubTypeTriggerEntityRecordCreated; exports.NodeSubTypeTriggerEntityRecordDeleted = _chunkH24IF5AAjs.NodeSubTypeTriggerEntityRecordDeleted; exports.NodeSubTypeTriggerEntityRecordUpdated = _chunkH24IF5AAjs.NodeSubTypeTriggerEntityRecordUpdated; exports.NodeSubTypeTriggerEscalation = _chunkH24IF5AAjs.NodeSubTypeTriggerEscalation; exports.NodeSubTypeTriggerSLABreach = _chunkH24IF5AAjs.NodeSubTypeTriggerSLABreach; exports.NodeSubTypeTriggerSLAWarning = _chunkH24IF5AAjs.NodeSubTypeTriggerSLAWarning; exports.NodeSubTypeTriggerStart = _chunkH24IF5AAjs.NodeSubTypeTriggerStart; exports.NodeSubTypeTriggerWebhookReceived = _chunkH24IF5AAjs.NodeSubTypeTriggerWebhookReceived; exports.NodeTypeAccounting = _chunkH24IF5AAjs.NodeTypeAccounting; exports.NodeTypeAction = _chunkH24IF5AAjs.NodeTypeAction; exports.NodeTypeAgent = _chunkH24IF5AAjs.NodeTypeAgent; exports.NodeTypeCustom = _chunkH24IF5AAjs.NodeTypeCustom; exports.NodeTypeData = _chunkH24IF5AAjs.NodeTypeData; exports.NodeTypeDelay = _chunkH24IF5AAjs.NodeTypeDelay; exports.NodeTypeDocumentExtraction = _chunkH24IF5AAjs.NodeTypeDocumentExtraction; exports.NodeTypeHumanAction = _chunkH24IF5AAjs.NodeTypeHumanAction; exports.NodeTypeIntegration = _chunkH24IF5AAjs.NodeTypeIntegration; exports.NodeTypeLogic = _chunkH24IF5AAjs.NodeTypeLogic; exports.NodeTypeLoop = _chunkH24IF5AAjs.NodeTypeLoop; exports.NodeTypeParallel = _chunkH24IF5AAjs.NodeTypeParallel; exports.NodeTypeSubflow = _chunkH24IF5AAjs.NodeTypeSubflow; exports.NodeTypeTimer = _chunkH24IF5AAjs.NodeTypeTimer; exports.NodeTypeTrigger = _chunkH24IF5AAjs.NodeTypeTrigger; exports.ParallelNodeSubTypes = ParallelNodeSubTypes; exports.PersistenceTypeEphemeral = _chunkH24IF5AAjs.PersistenceTypeEphemeral; exports.PersistenceTypePermanent = _chunkH24IF5AAjs.PersistenceTypePermanent; exports.RuleLevelError = _chunkH24IF5AAjs.RuleLevelError; exports.RuleLevelInfo = _chunkH24IF5AAjs.RuleLevelInfo; exports.RuleLevelWarning = _chunkH24IF5AAjs.RuleLevelWarning; exports.SchemaBuilder = SchemaBuilder; exports.TimeoutActionAlt = _chunkH24IF5AAjs.TimeoutActionAlt; exports.TimeoutActionFail = _chunkH24IF5AAjs.TimeoutActionFail; exports.TimeoutActionRetry = _chunkH24IF5AAjs.TimeoutActionRetry; exports.TimeoutActionSkip = _chunkH24IF5AAjs.TimeoutActionSkip; exports.TimerNodeSubTypes = TimerNodeSubTypes; exports.TriggerNodeSubTypes = TriggerNodeSubTypes; exports.WorkflowDefinitionCreate = _chunkH24IF5AAjs.WorkflowDefinitionCreate; exports.WorkflowDefinitionCreated = _chunkH24IF5AAjs.WorkflowDefinitionCreated; exports.WorkflowDefinitionDelete = _chunkH24IF5AAjs.WorkflowDefinitionDelete; exports.WorkflowDefinitionDeleted = _chunkH24IF5AAjs.WorkflowDefinitionDeleted; exports.WorkflowDefinitionGet = _chunkH24IF5AAjs.WorkflowDefinitionGet; exports.WorkflowDefinitionGetByTitle = _chunkH24IF5AAjs.WorkflowDefinitionGetByTitle; exports.WorkflowDefinitionGetServer = _chunkH24IF5AAjs.WorkflowDefinitionGetServer; exports.WorkflowDefinitionList = _chunkH24IF5AAjs.WorkflowDefinitionList; exports.WorkflowDefinitionUpdate = _chunkH24IF5AAjs.WorkflowDefinitionUpdate; exports.WorkflowDefinitionUpdated = _chunkH24IF5AAjs.WorkflowDefinitionUpdated; exports.WorkflowEdgeTypes = WorkflowEdgeTypes; exports.WorkflowExecutionCompleted = _chunkH24IF5AAjs.WorkflowExecutionCompleted; exports.WorkflowExecutionFailed = _chunkH24IF5AAjs.WorkflowExecutionFailed; exports.WorkflowExecutionStarted = _chunkH24IF5AAjs.WorkflowExecutionStarted; exports.WorkflowInstanceCreate = _chunkH24IF5AAjs.WorkflowInstanceCreate; exports.WorkflowInstanceExecuteNode = _chunkH24IF5AAjs.WorkflowInstanceExecuteNode; exports.WorkflowInstanceExecuteNodeLean = _chunkH24IF5AAjs.WorkflowInstanceExecuteNodeLean; exports.WorkflowInstanceExecuteNodeLeanServer = _chunkH24IF5AAjs.WorkflowInstanceExecuteNodeLeanServer; exports.WorkflowInstanceExecuteNodeServer = _chunkH24IF5AAjs.WorkflowInstanceExecuteNodeServer; exports.WorkflowInstanceGet = _chunkH24IF5AAjs.WorkflowInstanceGet; exports.WorkflowInstanceGetByStateVariable = _chunkH24IF5AAjs.WorkflowInstanceGetByStateVariable; exports.WorkflowInstanceList = _chunkH24IF5AAjs.WorkflowInstanceList; exports.WorkflowInstanceResumeNode = _chunkH24IF5AAjs.WorkflowInstanceResumeNode; exports.WorkflowInstanceResumeNodeServer = _chunkH24IF5AAjs.WorkflowInstanceResumeNodeServer; exports.WorkflowInstanceUpdate = _chunkH24IF5AAjs.WorkflowInstanceUpdate; exports.WorkflowInstanceUpdateNodeMetadata = _chunkH24IF5AAjs.WorkflowInstanceUpdateNodeMetadata; exports.WorkflowInstanceUpdated = _chunkH24IF5AAjs.WorkflowInstanceUpdated; exports.WorkflowNodeTypes = WorkflowNodeTypes; exports.WorkflowScheduleCreate = _chunkH24IF5AAjs.WorkflowScheduleCreate; exports.WorkflowScheduleDelete = _chunkH24IF5AAjs.WorkflowScheduleDelete; exports.WorkflowScheduleList = _chunkH24IF5AAjs.WorkflowScheduleList; exports.WorkflowSchedulePause = _chunkH24IF5AAjs.WorkflowSchedulePause; exports.WorkflowScheduleResume = _chunkH24IF5AAjs.WorkflowScheduleResume; exports.WorkflowScheduleUpdate = _chunkH24IF5AAjs.WorkflowScheduleUpdate; exports.WorkflowTemplateGet = _chunkH24IF5AAjs.WorkflowTemplateGet; exports.WorkflowTemplateInstantiate = _chunkH24IF5AAjs.WorkflowTemplateInstantiate; exports.WorkflowTemplateList = _chunkH24IF5AAjs.WorkflowTemplateList; exports.WorkflowTriggerFired = _chunkH24IF5AAjs.WorkflowTriggerFired; exports.WorkflowTriggerPause = _chunkH24IF5AAjs.WorkflowTriggerPause; exports.WorkflowTriggerRegister = _chunkH24IF5AAjs.WorkflowTriggerRegister; exports.WorkflowTriggerResume = _chunkH24IF5AAjs.WorkflowTriggerResume; exports.WorkflowTriggerStatus = _chunkH24IF5AAjs.WorkflowTriggerStatus; exports.WorkflowTypeAgent = _chunkH24IF5AAjs.WorkflowTypeAgent; exports.WorkflowTypeChat = _chunkH24IF5AAjs.WorkflowTypeChat; exports.WorkflowTypeDocument = _chunkH24IF5AAjs.WorkflowTypeDocument; exports.WorkflowTypeEntity = _chunkH24IF5AAjs.WorkflowTypeEntity; exports.WorkflowTypeProductivity = _chunkH24IF5AAjs.WorkflowTypeProductivity; exports.WorkflowTypes = WorkflowTypes; exports.nodeDefinitions = nodeDefinitions; exports.nodeSchemas = nodeSchemas; exports.workflowDefinitionReducer = workflowDefinitionReducer; exports.workflowInstanceReducer = workflowInstanceReducer;
|
|
4367
|
+
|
|
4368
|
+
|
|
4369
|
+
|
|
4370
|
+
|
|
4371
|
+
|
|
4372
|
+
|
|
4373
|
+
|
|
4374
|
+
|
|
4375
|
+
|
|
4376
|
+
|
|
4377
|
+
|
|
4378
|
+
|
|
4379
|
+
|
|
4380
|
+
|
|
4381
|
+
|
|
4382
|
+
|
|
4383
|
+
|
|
4384
|
+
|
|
4385
|
+
exports.AccountingNodeSubTypes = AccountingNodeSubTypes; exports.ActionNodeSubTypes = ActionNodeSubTypes; exports.AgentNodeSubTypes = AgentNodeSubTypes; exports.DataNodeSubTypes = DataNodeSubTypes; exports.DelayNodeSubTypes = DelayNodeSubTypes; exports.DynamicSchemaForm = DynamicSchemaForm; exports.EdgeStatusCompleted = _chunkH24IF5AAjs.EdgeStatusCompleted; exports.EdgeStatusPending = _chunkH24IF5AAjs.EdgeStatusPending; exports.EdgeStatusSkipped = _chunkH24IF5AAjs.EdgeStatusSkipped; exports.EdgeTypeCompensation = _chunkH24IF5AAjs.EdgeTypeCompensation; exports.EdgeTypeConditional = _chunkH24IF5AAjs.EdgeTypeConditional; exports.EdgeTypeDefault = _chunkH24IF5AAjs.EdgeTypeDefault; exports.EdgeTypeError = _chunkH24IF5AAjs.EdgeTypeError; exports.EdgeTypeLoopBack = _chunkH24IF5AAjs.EdgeTypeLoopBack; exports.EdgeTypeMerge = _chunkH24IF5AAjs.EdgeTypeMerge; exports.EdgeTypeNormal = _chunkH24IF5AAjs.EdgeTypeNormal; exports.EdgeTypeParallel = _chunkH24IF5AAjs.EdgeTypeParallel; exports.EdgeTypeTimeout = _chunkH24IF5AAjs.EdgeTypeTimeout; exports.ExpressionTypeDSL = _chunkH24IF5AAjs.ExpressionTypeDSL; exports.ExpressionTypeFilter = _chunkH24IF5AAjs.ExpressionTypeFilter; exports.ExpressionTypeJavaScript = _chunkH24IF5AAjs.ExpressionTypeJavaScript; exports.ExpressionTypeRules = _chunkH24IF5AAjs.ExpressionTypeRules; exports.ExpressionTypeTemplate = _chunkH24IF5AAjs.ExpressionTypeTemplate; exports.HumanActionNodeSubTypes = HumanActionNodeSubTypes; exports.InstanceStatusCompleted = _chunkH24IF5AAjs.InstanceStatusCompleted; exports.InstanceStatusFailed = _chunkH24IF5AAjs.InstanceStatusFailed; exports.InstanceStatusNew = _chunkH24IF5AAjs.InstanceStatusNew; exports.InstanceStatusPaused = _chunkH24IF5AAjs.InstanceStatusPaused; exports.InstanceStatusRunning = _chunkH24IF5AAjs.InstanceStatusRunning; exports.InstanceStatusWaiting = _chunkH24IF5AAjs.InstanceStatusWaiting; exports.LogicNodeSubTypes = LogicNodeSubTypes; exports.LoopNodeSubTypes = LoopNodeSubTypes; exports.NodeStatusCompleted = _chunkH24IF5AAjs.NodeStatusCompleted; exports.NodeStatusFailed = _chunkH24IF5AAjs.NodeStatusFailed; exports.NodeStatusPending = _chunkH24IF5AAjs.NodeStatusPending; exports.NodeStatusRunning = _chunkH24IF5AAjs.NodeStatusRunning; exports.NodeStatusSkipped = _chunkH24IF5AAjs.NodeStatusSkipped; exports.NodeStatusWaiting = _chunkH24IF5AAjs.NodeStatusWaiting; exports.NodeSubTypeActionApiCall = _chunkH24IF5AAjs.NodeSubTypeActionApiCall; exports.NodeSubTypeActionAssignSLAPolicy = _chunkH24IF5AAjs.NodeSubTypeActionAssignSLAPolicy; exports.NodeSubTypeActionCSATSurvey = _chunkH24IF5AAjs.NodeSubTypeActionCSATSurvey; exports.NodeSubTypeActionChangeSLAStatus = _chunkH24IF5AAjs.NodeSubTypeActionChangeSLAStatus; exports.NodeSubTypeActionCreateEntityRecord = _chunkH24IF5AAjs.NodeSubTypeActionCreateEntityRecord; exports.NodeSubTypeActionDeleteEntityRecord = _chunkH24IF5AAjs.NodeSubTypeActionDeleteEntityRecord; exports.NodeSubTypeActionDocumentExtraction = _chunkH24IF5AAjs.NodeSubTypeActionDocumentExtraction; exports.NodeSubTypeActionEscalateSLA = _chunkH24IF5AAjs.NodeSubTypeActionEscalateSLA; exports.NodeSubTypeActionGenerateDocument = _chunkH24IF5AAjs.NodeSubTypeActionGenerateDocument; exports.NodeSubTypeActionMergeEntityRecords = _chunkH24IF5AAjs.NodeSubTypeActionMergeEntityRecords; exports.NodeSubTypeActionNatsRequest = _chunkH24IF5AAjs.NodeSubTypeActionNatsRequest; exports.NodeSubTypeActionProcessPayment = _chunkH24IF5AAjs.NodeSubTypeActionProcessPayment; exports.NodeSubTypeActionQueryEntityRecords = _chunkH24IF5AAjs.NodeSubTypeActionQueryEntityRecords; exports.NodeSubTypeActionSendEmail = _chunkH24IF5AAjs.NodeSubTypeActionSendEmail; exports.NodeSubTypeActionSendSMS = _chunkH24IF5AAjs.NodeSubTypeActionSendSMS; exports.NodeSubTypeActionSetVariables = _chunkH24IF5AAjs.NodeSubTypeActionSetVariables; exports.NodeSubTypeActionUpdateEntityRecord = _chunkH24IF5AAjs.NodeSubTypeActionUpdateEntityRecord; exports.NodeSubTypeAgentApiIntegration = _chunkH24IF5AAjs.NodeSubTypeAgentApiIntegration; exports.NodeSubTypeAgentChat = _chunkH24IF5AAjs.NodeSubTypeAgentChat; exports.NodeSubTypeAgentClientApiCall = _chunkH24IF5AAjs.NodeSubTypeAgentClientApiCall; exports.NodeSubTypeAgentCustomResponse = _chunkH24IF5AAjs.NodeSubTypeAgentCustomResponse; exports.NodeSubTypeAgentIntentDetector = _chunkH24IF5AAjs.NodeSubTypeAgentIntentDetector; exports.NodeSubTypeAgentKnowledgeGraph = _chunkH24IF5AAjs.NodeSubTypeAgentKnowledgeGraph; exports.NodeSubTypeAgentOpenTicket = _chunkH24IF5AAjs.NodeSubTypeAgentOpenTicket; exports.NodeSubTypeAgentStructuredOutput = _chunkH24IF5AAjs.NodeSubTypeAgentStructuredOutput; exports.NodeSubTypeAgentTransferToHuman = _chunkH24IF5AAjs.NodeSubTypeAgentTransferToHuman; exports.NodeSubTypeDataCalculate = _chunkH24IF5AAjs.NodeSubTypeDataCalculate; exports.NodeSubTypeDataFilter = _chunkH24IF5AAjs.NodeSubTypeDataFilter; exports.NodeSubTypeDataMap = _chunkH24IF5AAjs.NodeSubTypeDataMap; exports.NodeSubTypeDataValidate = _chunkH24IF5AAjs.NodeSubTypeDataValidate; exports.NodeSubTypeDelay = _chunkH24IF5AAjs.NodeSubTypeDelay; exports.NodeSubTypeHumanActionApproval = _chunkH24IF5AAjs.NodeSubTypeHumanActionApproval; exports.NodeSubTypeHumanActionAssignment = _chunkH24IF5AAjs.NodeSubTypeHumanActionAssignment; exports.NodeSubTypeHumanActionDataEntry = _chunkH24IF5AAjs.NodeSubTypeHumanActionDataEntry; exports.NodeSubTypeHumanActionReview = _chunkH24IF5AAjs.NodeSubTypeHumanActionReview; exports.NodeSubTypeLogicFor = _chunkH24IF5AAjs.NodeSubTypeLogicFor; exports.NodeSubTypeLogicIf = _chunkH24IF5AAjs.NodeSubTypeLogicIf; exports.NodeSubTypeLogicParallel = _chunkH24IF5AAjs.NodeSubTypeLogicParallel; exports.NodeSubTypeLogicSwitch = _chunkH24IF5AAjs.NodeSubTypeLogicSwitch; exports.NodeSubTypeLoopData = _chunkH24IF5AAjs.NodeSubTypeLoopData; exports.NodeSubTypeTimerBusinessHours = _chunkH24IF5AAjs.NodeSubTypeTimerBusinessHours; exports.NodeSubTypeTimerDelay = _chunkH24IF5AAjs.NodeSubTypeTimerDelay; exports.NodeSubTypeTimerSchedule = _chunkH24IF5AAjs.NodeSubTypeTimerSchedule; exports.NodeSubTypeTriggerEntityRecordCreated = _chunkH24IF5AAjs.NodeSubTypeTriggerEntityRecordCreated; exports.NodeSubTypeTriggerEntityRecordDeleted = _chunkH24IF5AAjs.NodeSubTypeTriggerEntityRecordDeleted; exports.NodeSubTypeTriggerEntityRecordUpdated = _chunkH24IF5AAjs.NodeSubTypeTriggerEntityRecordUpdated; exports.NodeSubTypeTriggerEscalation = _chunkH24IF5AAjs.NodeSubTypeTriggerEscalation; exports.NodeSubTypeTriggerSLABreach = _chunkH24IF5AAjs.NodeSubTypeTriggerSLABreach; exports.NodeSubTypeTriggerSLAWarning = _chunkH24IF5AAjs.NodeSubTypeTriggerSLAWarning; exports.NodeSubTypeTriggerStart = _chunkH24IF5AAjs.NodeSubTypeTriggerStart; exports.NodeSubTypeTriggerWebhookReceived = _chunkH24IF5AAjs.NodeSubTypeTriggerWebhookReceived; exports.NodeTypeAccounting = _chunkH24IF5AAjs.NodeTypeAccounting; exports.NodeTypeAction = _chunkH24IF5AAjs.NodeTypeAction; exports.NodeTypeAgent = _chunkH24IF5AAjs.NodeTypeAgent; exports.NodeTypeCustom = _chunkH24IF5AAjs.NodeTypeCustom; exports.NodeTypeData = _chunkH24IF5AAjs.NodeTypeData; exports.NodeTypeDelay = _chunkH24IF5AAjs.NodeTypeDelay; exports.NodeTypeDocumentExtraction = _chunkH24IF5AAjs.NodeTypeDocumentExtraction; exports.NodeTypeHumanAction = _chunkH24IF5AAjs.NodeTypeHumanAction; exports.NodeTypeIntegration = _chunkH24IF5AAjs.NodeTypeIntegration; exports.NodeTypeLogic = _chunkH24IF5AAjs.NodeTypeLogic; exports.NodeTypeLoop = _chunkH24IF5AAjs.NodeTypeLoop; exports.NodeTypeParallel = _chunkH24IF5AAjs.NodeTypeParallel; exports.NodeTypeSubflow = _chunkH24IF5AAjs.NodeTypeSubflow; exports.NodeTypeTimer = _chunkH24IF5AAjs.NodeTypeTimer; exports.NodeTypeTrigger = _chunkH24IF5AAjs.NodeTypeTrigger; exports.ParallelNodeSubTypes = ParallelNodeSubTypes; exports.PersistenceTypeEphemeral = _chunkH24IF5AAjs.PersistenceTypeEphemeral; exports.PersistenceTypePermanent = _chunkH24IF5AAjs.PersistenceTypePermanent; exports.RuleLevelError = _chunkH24IF5AAjs.RuleLevelError; exports.RuleLevelInfo = _chunkH24IF5AAjs.RuleLevelInfo; exports.RuleLevelWarning = _chunkH24IF5AAjs.RuleLevelWarning; exports.SchemaBuilder = SchemaBuilder; exports.TimeoutActionAlt = _chunkH24IF5AAjs.TimeoutActionAlt; exports.TimeoutActionFail = _chunkH24IF5AAjs.TimeoutActionFail; exports.TimeoutActionRetry = _chunkH24IF5AAjs.TimeoutActionRetry; exports.TimeoutActionSkip = _chunkH24IF5AAjs.TimeoutActionSkip; exports.TimerNodeSubTypes = TimerNodeSubTypes; exports.TriggerNodeSubTypes = TriggerNodeSubTypes; exports.WorkflowDefinitionCreate = _chunkH24IF5AAjs.WorkflowDefinitionCreate; exports.WorkflowDefinitionCreated = _chunkH24IF5AAjs.WorkflowDefinitionCreated; exports.WorkflowDefinitionDelete = _chunkH24IF5AAjs.WorkflowDefinitionDelete; exports.WorkflowDefinitionDeleted = _chunkH24IF5AAjs.WorkflowDefinitionDeleted; exports.WorkflowDefinitionGet = _chunkH24IF5AAjs.WorkflowDefinitionGet; exports.WorkflowDefinitionGetByTitle = _chunkH24IF5AAjs.WorkflowDefinitionGetByTitle; exports.WorkflowDefinitionGetServer = _chunkH24IF5AAjs.WorkflowDefinitionGetServer; exports.WorkflowDefinitionList = _chunkH24IF5AAjs.WorkflowDefinitionList; exports.WorkflowDefinitionUpdate = _chunkH24IF5AAjs.WorkflowDefinitionUpdate; exports.WorkflowDefinitionUpdated = _chunkH24IF5AAjs.WorkflowDefinitionUpdated; exports.WorkflowEdgeTypes = WorkflowEdgeTypes; exports.WorkflowExecutionCompleted = _chunkH24IF5AAjs.WorkflowExecutionCompleted; exports.WorkflowExecutionFailed = _chunkH24IF5AAjs.WorkflowExecutionFailed; exports.WorkflowExecutionStarted = _chunkH24IF5AAjs.WorkflowExecutionStarted; exports.WorkflowInstanceCreate = _chunkH24IF5AAjs.WorkflowInstanceCreate; exports.WorkflowInstanceExecuteNode = _chunkH24IF5AAjs.WorkflowInstanceExecuteNode; exports.WorkflowInstanceExecuteNodeLean = _chunkH24IF5AAjs.WorkflowInstanceExecuteNodeLean; exports.WorkflowInstanceExecuteNodeLeanServer = _chunkH24IF5AAjs.WorkflowInstanceExecuteNodeLeanServer; exports.WorkflowInstanceExecuteNodeServer = _chunkH24IF5AAjs.WorkflowInstanceExecuteNodeServer; exports.WorkflowInstanceGet = _chunkH24IF5AAjs.WorkflowInstanceGet; exports.WorkflowInstanceGetByStateVariable = _chunkH24IF5AAjs.WorkflowInstanceGetByStateVariable; exports.WorkflowInstanceList = _chunkH24IF5AAjs.WorkflowInstanceList; exports.WorkflowInstanceResumeNode = _chunkH24IF5AAjs.WorkflowInstanceResumeNode; exports.WorkflowInstanceResumeNodeServer = _chunkH24IF5AAjs.WorkflowInstanceResumeNodeServer; exports.WorkflowInstanceUpdate = _chunkH24IF5AAjs.WorkflowInstanceUpdate; exports.WorkflowInstanceUpdateNodeMetadata = _chunkH24IF5AAjs.WorkflowInstanceUpdateNodeMetadata; exports.WorkflowInstanceUpdated = _chunkH24IF5AAjs.WorkflowInstanceUpdated; exports.WorkflowNodeTypes = WorkflowNodeTypes; exports.WorkflowScheduleCreate = _chunkH24IF5AAjs.WorkflowScheduleCreate; exports.WorkflowScheduleDelete = _chunkH24IF5AAjs.WorkflowScheduleDelete; exports.WorkflowScheduleList = _chunkH24IF5AAjs.WorkflowScheduleList; exports.WorkflowSchedulePause = _chunkH24IF5AAjs.WorkflowSchedulePause; exports.WorkflowScheduleResume = _chunkH24IF5AAjs.WorkflowScheduleResume; exports.WorkflowScheduleUpdate = _chunkH24IF5AAjs.WorkflowScheduleUpdate; exports.WorkflowTemplateGet = _chunkH24IF5AAjs.WorkflowTemplateGet; exports.WorkflowTemplateInstantiate = _chunkH24IF5AAjs.WorkflowTemplateInstantiate; exports.WorkflowTemplateList = _chunkH24IF5AAjs.WorkflowTemplateList; exports.WorkflowTriggerFired = _chunkH24IF5AAjs.WorkflowTriggerFired; exports.WorkflowTriggerPause = _chunkH24IF5AAjs.WorkflowTriggerPause; exports.WorkflowTriggerRegister = _chunkH24IF5AAjs.WorkflowTriggerRegister; exports.WorkflowTriggerResume = _chunkH24IF5AAjs.WorkflowTriggerResume; exports.WorkflowTriggerStatus = _chunkH24IF5AAjs.WorkflowTriggerStatus; exports.WorkflowTypeAgent = _chunkH24IF5AAjs.WorkflowTypeAgent; exports.WorkflowTypeChat = _chunkH24IF5AAjs.WorkflowTypeChat; exports.WorkflowTypeDocument = _chunkH24IF5AAjs.WorkflowTypeDocument; exports.WorkflowTypeEntity = _chunkH24IF5AAjs.WorkflowTypeEntity; exports.WorkflowTypeProductivity = _chunkH24IF5AAjs.WorkflowTypeProductivity; exports.WorkflowTypes = WorkflowTypes; exports.createWorkflowApi = _chunkJES2EBNOjs.createWorkflowApi; exports.createWorkflowInstanceApi = _chunkJES2EBNOjs.createWorkflowInstanceApi; exports.deleteWorkflowApi = _chunkJES2EBNOjs.deleteWorkflowApi; exports.executeWorkflowNodeApi = _chunkJES2EBNOjs.executeWorkflowNodeApi; exports.getWorkflowApi = _chunkJES2EBNOjs.getWorkflowApi; exports.getWorkflowInstanceApi = _chunkJES2EBNOjs.getWorkflowInstanceApi; exports.getWorkflowTemplateApi = _chunkJES2EBNOjs.getWorkflowTemplateApi; exports.instantiateWorkflowTemplateApi = _chunkJES2EBNOjs.instantiateWorkflowTemplateApi; exports.listWorkflowInstancesApi = _chunkJES2EBNOjs.listWorkflowInstancesApi; exports.listWorkflowTemplatesApi = _chunkJES2EBNOjs.listWorkflowTemplatesApi; exports.listWorkflowsApi = _chunkJES2EBNOjs.listWorkflowsApi; exports.nodeDefinitions = nodeDefinitions; exports.nodeSchemas = nodeSchemas; exports.resumeWorkflowNodeApi = _chunkJES2EBNOjs.resumeWorkflowNodeApi; exports.retryWorkflowNodeApi = _chunkJES2EBNOjs.retryWorkflowNodeApi; exports.updateWorkflowApi = _chunkJES2EBNOjs.updateWorkflowApi; exports.updateWorkflowInstanceStatusApi = _chunkJES2EBNOjs.updateWorkflowInstanceStatusApi; exports.useWorkflowInstances = _chunkF5G2ALFSjs.useWorkflowInstances; exports.useWorkflowTemplates = _chunkF5G2ALFSjs.useWorkflowTemplates; exports.useWorkflows = _chunkF5G2ALFSjs.useWorkflows; exports.workflowDefinitionReducer = workflowDefinitionReducer; exports.workflowInstanceReducer = workflowInstanceReducer;
|
|
4346
4386
|
//# sourceMappingURL=index.js.map
|