@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/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 | DocumentGenerationAction | SendEmailAction | AutomationAction;
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 Generation",
106
- * "type": "document-generation",
105
+ * "name": "Create Document",
106
+ * "type": "create-document",
107
107
  * "config": {
108
- * "template_document": {
108
+ * "template_id": {
109
109
  * "type": "string",
110
- * "example": "templates/my-template.pdf"
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 DocumentGenerationAction {
119
+ export interface CreateDocumentAction {
116
120
  id?: AutomationActionId;
117
121
  name?: string;
118
122
  type?: string;
119
- config?: DocumentGenerationConfig;
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 DocumentGenerationConfig {
128
- template_document?: string;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "API Client for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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 | DocumentGenerationAction | SendEmailAction | AutomationAction;
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 Generation",
106
- * "type": "document-generation",
105
+ * "name": "Create Document",
106
+ * "type": "create-document",
107
107
  * "config": {
108
- * "template_document": {
108
+ * "template_id": {
109
109
  * "type": "string",
110
- * "example": "templates/my-template.pdf"
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 DocumentGenerationAction {
119
+ export interface CreateDocumentAction {
116
120
  id?: AutomationActionId;
117
121
  name?: string;
118
122
  type?: string;
119
- config?: DocumentGenerationConfig;
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 DocumentGenerationConfig {
128
- template_document?: string;
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;