ugcinc 2.73.2 → 2.73.4
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 +20 -0
- package/dist/automations.js +18 -0
- package/dist/node-runtime.d.ts +2 -0
- package/dist/types.d.ts +5 -0
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -66,6 +66,26 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
66
66
|
run: AutomationRun;
|
|
67
67
|
nodeCount: number;
|
|
68
68
|
}>>>;
|
|
69
|
+
/**
|
|
70
|
+
* List all automation runs for the organization (across all templates)
|
|
71
|
+
*/
|
|
72
|
+
listAllRuns(params: {
|
|
73
|
+
limit?: number;
|
|
74
|
+
reviewStatus?: 'pending_review' | 'approved' | 'rejected' | 'all';
|
|
75
|
+
}): Promise<ApiResponse<Array<{
|
|
76
|
+
run: AutomationRun;
|
|
77
|
+
templateName: string;
|
|
78
|
+
nodeCount: number;
|
|
79
|
+
}>>>;
|
|
80
|
+
/**
|
|
81
|
+
* Update review status for a run
|
|
82
|
+
*/
|
|
83
|
+
updateReviewStatus(params: {
|
|
84
|
+
runId: string;
|
|
85
|
+
reviewStatus: 'approved' | 'rejected';
|
|
86
|
+
}): Promise<ApiResponse<{
|
|
87
|
+
success: boolean;
|
|
88
|
+
}>>;
|
|
69
89
|
/**
|
|
70
90
|
* Validate a workflow definition without creating it
|
|
71
91
|
*/
|
package/dist/automations.js
CHANGED
|
@@ -73,6 +73,24 @@ class AutomationsClient extends base_1.BaseClient {
|
|
|
73
73
|
body: JSON.stringify(params),
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* List all automation runs for the organization (across all templates)
|
|
78
|
+
*/
|
|
79
|
+
async listAllRuns(params) {
|
|
80
|
+
return this.request('/automations/list-all-runs', {
|
|
81
|
+
method: 'POST',
|
|
82
|
+
body: JSON.stringify(params),
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Update review status for a run
|
|
87
|
+
*/
|
|
88
|
+
async updateReviewStatus(params) {
|
|
89
|
+
return this.request('/automations/update-review-status', {
|
|
90
|
+
method: 'POST',
|
|
91
|
+
body: JSON.stringify(params),
|
|
92
|
+
});
|
|
93
|
+
}
|
|
76
94
|
/**
|
|
77
95
|
* Validate a workflow definition without creating it
|
|
78
96
|
*/
|
package/dist/node-runtime.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -826,6 +826,8 @@ export interface OutputNodeConfig {
|
|
|
826
826
|
saveToMedia: boolean;
|
|
827
827
|
globalTag?: string;
|
|
828
828
|
makeUnique: boolean;
|
|
829
|
+
createPost?: boolean;
|
|
830
|
+
requireReview?: boolean;
|
|
829
831
|
}
|
|
830
832
|
export interface CanvasState {
|
|
831
833
|
zoom: number;
|
|
@@ -881,6 +883,9 @@ export interface AutomationRun {
|
|
|
881
883
|
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
882
884
|
variable_inputs: Record<string, string> | null;
|
|
883
885
|
save_as_preview: boolean | null;
|
|
886
|
+
create_post: boolean | null;
|
|
887
|
+
require_review: boolean | null;
|
|
888
|
+
review_status: 'pending_review' | 'approved' | 'rejected' | null;
|
|
884
889
|
created_at: string;
|
|
885
890
|
completed_at: string | null;
|
|
886
891
|
}
|