ugcinc 2.38.0 → 2.40.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/automations.d.ts +12 -0
- package/dist/automations.js +10 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -36,12 +36,14 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
36
36
|
* Run an automation template
|
|
37
37
|
* @param variableInputs - Optional map of variable node IDs to their runtime values
|
|
38
38
|
* @param saveAsPreview - If true, saves the output as a preview for sub-workflows
|
|
39
|
+
* @param tag - Optional tag for organizing runs
|
|
39
40
|
*/
|
|
40
41
|
run(params: {
|
|
41
42
|
templateId: string;
|
|
42
43
|
orgId: string;
|
|
43
44
|
variableInputs?: Record<string, string>;
|
|
44
45
|
saveAsPreview?: boolean;
|
|
46
|
+
tag?: string;
|
|
45
47
|
}): Promise<ApiResponse<{
|
|
46
48
|
runId: string;
|
|
47
49
|
}>>;
|
|
@@ -54,6 +56,16 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
54
56
|
run: AutomationRun;
|
|
55
57
|
nodes: NodeRun[];
|
|
56
58
|
}>>;
|
|
59
|
+
/**
|
|
60
|
+
* List automation runs for a template
|
|
61
|
+
*/
|
|
62
|
+
listRuns(params: {
|
|
63
|
+
templateId: string;
|
|
64
|
+
limit?: number;
|
|
65
|
+
}): Promise<ApiResponse<Array<{
|
|
66
|
+
run: AutomationRun;
|
|
67
|
+
nodeCount: number;
|
|
68
|
+
}>>>;
|
|
57
69
|
/**
|
|
58
70
|
* Validate a workflow definition without creating it
|
|
59
71
|
*/
|
package/dist/automations.js
CHANGED
|
@@ -47,6 +47,7 @@ class AutomationsClient extends base_1.BaseClient {
|
|
|
47
47
|
* Run an automation template
|
|
48
48
|
* @param variableInputs - Optional map of variable node IDs to their runtime values
|
|
49
49
|
* @param saveAsPreview - If true, saves the output as a preview for sub-workflows
|
|
50
|
+
* @param tag - Optional tag for organizing runs
|
|
50
51
|
*/
|
|
51
52
|
async run(params) {
|
|
52
53
|
return this.request('/automations/run', {
|
|
@@ -63,6 +64,15 @@ class AutomationsClient extends base_1.BaseClient {
|
|
|
63
64
|
body: JSON.stringify(params),
|
|
64
65
|
});
|
|
65
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* List automation runs for a template
|
|
69
|
+
*/
|
|
70
|
+
async listRuns(params) {
|
|
71
|
+
return this.request('/automations/list-runs', {
|
|
72
|
+
method: 'POST',
|
|
73
|
+
body: JSON.stringify(params),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
66
76
|
/**
|
|
67
77
|
* Validate a workflow definition without creating it
|
|
68
78
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -695,8 +695,10 @@ export interface AutomationRun {
|
|
|
695
695
|
id: string;
|
|
696
696
|
template_id: string;
|
|
697
697
|
org_id: string;
|
|
698
|
+
tag: string | null;
|
|
698
699
|
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
699
700
|
variable_inputs: Record<string, string> | null;
|
|
701
|
+
save_as_preview: boolean | null;
|
|
700
702
|
created_at: string;
|
|
701
703
|
completed_at: string | null;
|
|
702
704
|
}
|