ugcinc 2.11.2 → 2.11.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/automations.d.ts +13 -1
- package/dist/automations.js +18 -0
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import type { NodeControlConfig, MediaType, NodePort, NodeTypeEnum, WorkflowDefinition, AutomationRun, NodeRun, ApiResponse } from './types';
|
|
1
|
+
import type { NodeControlConfig, MediaType, NodePort, NodeTypeEnum, WorkflowDefinition, AutomationTemplate, AutomationRun, NodeRun, ApiResponse } from './types';
|
|
2
2
|
import { BaseClient } from './base';
|
|
3
3
|
export declare class AutomationsClient extends BaseClient {
|
|
4
|
+
/**
|
|
5
|
+
* List all automation templates for an organization
|
|
6
|
+
*/
|
|
7
|
+
listTemplates(params: {
|
|
8
|
+
orgId: string;
|
|
9
|
+
}): Promise<ApiResponse<AutomationTemplate[]>>;
|
|
10
|
+
/**
|
|
11
|
+
* Get a specific automation template
|
|
12
|
+
*/
|
|
13
|
+
getTemplate(params: {
|
|
14
|
+
templateId: string;
|
|
15
|
+
}): Promise<ApiResponse<AutomationTemplate>>;
|
|
4
16
|
/**
|
|
5
17
|
* Create a new automation template
|
|
6
18
|
*/
|
package/dist/automations.js
CHANGED
|
@@ -5,6 +5,24 @@ exports.getAllNodes = getAllNodes;
|
|
|
5
5
|
exports.getNodeByType = getNodeByType;
|
|
6
6
|
const base_1 = require("./base");
|
|
7
7
|
class AutomationsClient extends base_1.BaseClient {
|
|
8
|
+
/**
|
|
9
|
+
* List all automation templates for an organization
|
|
10
|
+
*/
|
|
11
|
+
async listTemplates(params) {
|
|
12
|
+
return this.request('/automations/list', {
|
|
13
|
+
method: 'POST',
|
|
14
|
+
body: JSON.stringify(params),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get a specific automation template
|
|
19
|
+
*/
|
|
20
|
+
async getTemplate(params) {
|
|
21
|
+
return this.request('/automations/get', {
|
|
22
|
+
method: 'POST',
|
|
23
|
+
body: JSON.stringify(params),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
8
26
|
/**
|
|
9
27
|
* Create a new automation template
|
|
10
28
|
*/
|