@epilot/automation-client 0.7.3 → 0.7.5
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/definition.js +1 -1
- package/dist/openapi.d.ts +26 -9
- package/package.json +1 -1
- package/src/openapi.d.ts +26 -9
package/dist/openapi.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
declare namespace Components {
|
|
11
11
|
namespace Schemas {
|
|
12
|
-
export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerWebhookAction |
|
|
12
|
+
export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerWebhookAction | CreateDocumentAction | SendEmailAction | AutomationAction;
|
|
13
13
|
/**
|
|
14
14
|
* example:
|
|
15
15
|
* [
|
|
@@ -102,21 +102,25 @@ declare namespace Components {
|
|
|
102
102
|
* example:
|
|
103
103
|
* {
|
|
104
104
|
* "id": "08g988-ojt2jtaga-292h-8978gsaga",
|
|
105
|
-
* "name": "Document
|
|
106
|
-
* "type": "document
|
|
105
|
+
* "name": "Create Document",
|
|
106
|
+
* "type": "create-document",
|
|
107
107
|
* "config": {
|
|
108
|
-
* "
|
|
108
|
+
* "template_id": {
|
|
109
109
|
* "type": "string",
|
|
110
|
-
* "example": "
|
|
110
|
+
* "example": "112b08ba-789c-42f2-9940-43b302f641e8\""
|
|
111
|
+
* },
|
|
112
|
+
* "filename": {
|
|
113
|
+
* "type": "string",
|
|
114
|
+
* "example": "newsletter.pdf\""
|
|
111
115
|
* }
|
|
112
116
|
* }
|
|
113
117
|
* }
|
|
114
118
|
*/
|
|
115
|
-
export interface
|
|
119
|
+
export interface CreateDocumentAction {
|
|
116
120
|
id?: AutomationActionId;
|
|
117
121
|
name?: string;
|
|
118
122
|
type?: string;
|
|
119
|
-
config?:
|
|
123
|
+
config?: CreateDocumentConfig;
|
|
120
124
|
status?: ExecutionStatus;
|
|
121
125
|
started_at?: string;
|
|
122
126
|
updated_at?: string;
|
|
@@ -124,8 +128,9 @@ declare namespace Components {
|
|
|
124
128
|
[name: string]: any;
|
|
125
129
|
};
|
|
126
130
|
}
|
|
127
|
-
export interface
|
|
128
|
-
|
|
131
|
+
export interface CreateDocumentConfig {
|
|
132
|
+
template_id?: string;
|
|
133
|
+
filename?: string;
|
|
129
134
|
}
|
|
130
135
|
/**
|
|
131
136
|
* example:
|
|
@@ -236,6 +241,18 @@ declare namespace Components {
|
|
|
236
241
|
* e3d3ebac-baab-4395-abf4-50b5bf1f8b74
|
|
237
242
|
*/
|
|
238
243
|
export type OrganizationId = string;
|
|
244
|
+
/**
|
|
245
|
+
* example:
|
|
246
|
+
* {
|
|
247
|
+
* "id": "25jga0-gkasl26-0asg-908sgaj2",
|
|
248
|
+
* "name": "Send Email",
|
|
249
|
+
* "type": "send-email",
|
|
250
|
+
* "config": {
|
|
251
|
+
* "email_template_id": "gasj02-29ug9asgm-29t9gsaghg2g-pkmbhx2",
|
|
252
|
+
* "language_code": "de"
|
|
253
|
+
* }
|
|
254
|
+
* }
|
|
255
|
+
*/
|
|
239
256
|
export interface SendEmailAction {
|
|
240
257
|
id?: AutomationActionId;
|
|
241
258
|
name?: string;
|
package/package.json
CHANGED
package/src/openapi.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
declare namespace Components {
|
|
11
11
|
namespace Schemas {
|
|
12
|
-
export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerWebhookAction |
|
|
12
|
+
export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerWebhookAction | CreateDocumentAction | SendEmailAction | AutomationAction;
|
|
13
13
|
/**
|
|
14
14
|
* example:
|
|
15
15
|
* [
|
|
@@ -102,21 +102,25 @@ declare namespace Components {
|
|
|
102
102
|
* example:
|
|
103
103
|
* {
|
|
104
104
|
* "id": "08g988-ojt2jtaga-292h-8978gsaga",
|
|
105
|
-
* "name": "Document
|
|
106
|
-
* "type": "document
|
|
105
|
+
* "name": "Create Document",
|
|
106
|
+
* "type": "create-document",
|
|
107
107
|
* "config": {
|
|
108
|
-
* "
|
|
108
|
+
* "template_id": {
|
|
109
109
|
* "type": "string",
|
|
110
|
-
* "example": "
|
|
110
|
+
* "example": "112b08ba-789c-42f2-9940-43b302f641e8\""
|
|
111
|
+
* },
|
|
112
|
+
* "filename": {
|
|
113
|
+
* "type": "string",
|
|
114
|
+
* "example": "newsletter.pdf\""
|
|
111
115
|
* }
|
|
112
116
|
* }
|
|
113
117
|
* }
|
|
114
118
|
*/
|
|
115
|
-
export interface
|
|
119
|
+
export interface CreateDocumentAction {
|
|
116
120
|
id?: AutomationActionId;
|
|
117
121
|
name?: string;
|
|
118
122
|
type?: string;
|
|
119
|
-
config?:
|
|
123
|
+
config?: CreateDocumentConfig;
|
|
120
124
|
status?: ExecutionStatus;
|
|
121
125
|
started_at?: string;
|
|
122
126
|
updated_at?: string;
|
|
@@ -124,8 +128,9 @@ declare namespace Components {
|
|
|
124
128
|
[name: string]: any;
|
|
125
129
|
};
|
|
126
130
|
}
|
|
127
|
-
export interface
|
|
128
|
-
|
|
131
|
+
export interface CreateDocumentConfig {
|
|
132
|
+
template_id?: string;
|
|
133
|
+
filename?: string;
|
|
129
134
|
}
|
|
130
135
|
/**
|
|
131
136
|
* example:
|
|
@@ -236,6 +241,18 @@ declare namespace Components {
|
|
|
236
241
|
* e3d3ebac-baab-4395-abf4-50b5bf1f8b74
|
|
237
242
|
*/
|
|
238
243
|
export type OrganizationId = string;
|
|
244
|
+
/**
|
|
245
|
+
* example:
|
|
246
|
+
* {
|
|
247
|
+
* "id": "25jga0-gkasl26-0asg-908sgaj2",
|
|
248
|
+
* "name": "Send Email",
|
|
249
|
+
* "type": "send-email",
|
|
250
|
+
* "config": {
|
|
251
|
+
* "email_template_id": "gasj02-29ug9asgm-29t9gsaghg2g-pkmbhx2",
|
|
252
|
+
* "language_code": "de"
|
|
253
|
+
* }
|
|
254
|
+
* }
|
|
255
|
+
*/
|
|
239
256
|
export interface SendEmailAction {
|
|
240
257
|
id?: AutomationActionId;
|
|
241
258
|
name?: string;
|