ugcinc 2.38.0 → 2.39.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.
@@ -54,6 +54,16 @@ export declare class AutomationsClient extends BaseClient {
54
54
  run: AutomationRun;
55
55
  nodes: NodeRun[];
56
56
  }>>;
57
+ /**
58
+ * List automation runs for a template
59
+ */
60
+ listRuns(params: {
61
+ templateId: string;
62
+ limit?: number;
63
+ }): Promise<ApiResponse<Array<{
64
+ run: AutomationRun;
65
+ nodeCount: number;
66
+ }>>>;
57
67
  /**
58
68
  * Validate a workflow definition without creating it
59
69
  */
@@ -63,6 +63,15 @@ class AutomationsClient extends base_1.BaseClient {
63
63
  body: JSON.stringify(params),
64
64
  });
65
65
  }
66
+ /**
67
+ * List automation runs for a template
68
+ */
69
+ async listRuns(params) {
70
+ return this.request('/automations/list-runs', {
71
+ method: 'POST',
72
+ body: JSON.stringify(params),
73
+ });
74
+ }
66
75
  /**
67
76
  * Validate a workflow definition without creating it
68
77
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.38.0",
3
+ "version": "2.39.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",