@epilot/automation-client 1.5.1 → 1.6.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.
package/dist/openapi.d.ts CHANGED
@@ -206,7 +206,13 @@ declare namespace Components {
206
206
  * }
207
207
  * }
208
208
  */
209
- SendEmailAction | CartCheckoutAction | AutomationAction;
209
+ SendEmailAction | AutomationAction;
210
+ export interface ApiSubmissionTrigger {
211
+ type: "api_submission";
212
+ configuration: {
213
+ source_id?: string;
214
+ };
215
+ }
210
216
  export interface AppendValueMapper {
211
217
  mode: /**
212
218
  * - copy_if_exists - it replaces the target attribute with the source value
@@ -355,7 +361,7 @@ declare namespace Components {
355
361
  * 7
356
362
  */
357
363
  runs?: number;
358
- triggers?: (FrontendSubmitTrigger | JourneySubmitTrigger | EntityOperationTrigger | EntityManualTrigger)[];
364
+ triggers?: (FrontendSubmitTrigger | JourneySubmitTrigger | ApiSubmissionTrigger | EntityOperationTrigger | EntityManualTrigger)[];
359
365
  trigger_conditions?: /**
360
366
  * example:
361
367
  * {
@@ -379,36 +385,6 @@ declare namespace Components {
379
385
  * 7791b04a-16d2-44a2-9af9-2d59c25c512f
380
386
  */
381
387
  export type AutomationFlowId = string;
382
- export interface CartCheckoutAction {
383
- id?: /**
384
- * example:
385
- * 9ec3711b-db63-449c-b894-54d5bb622a8f
386
- */
387
- AutomationActionId;
388
- flow_action_id?: /**
389
- * example:
390
- * 9ec3711b-db63-449c-b894-54d5bb622a8f
391
- */
392
- AutomationActionId;
393
- name?: string;
394
- type?: string;
395
- config?: CartCheckoutConfig;
396
- execution_status?: ExecutionStatus;
397
- started_at?: string;
398
- updated_at?: string;
399
- /**
400
- * Flag indicating whether the action was created automatically or manually
401
- */
402
- created_automatically?: boolean;
403
- outputs?: {
404
- [name: string]: any;
405
- };
406
- error_output?: ErrorOutput;
407
- }
408
- export interface CartCheckoutConfig {
409
- relation_attributes?: RelationAttribute[];
410
- mapping_attributes?: MappingAttribute[];
411
- }
412
388
  export type Comparison = "equals" | "any_of" | "not_empty" | "is_empty";
413
389
  export interface CopyValueMapper {
414
390
  mode: /**
@@ -677,6 +653,35 @@ declare namespace Components {
677
653
  *
678
654
  */
679
655
  export type MappingAttributeMode = "copy_if_exists" | "append_if_exists" | "set_value";
656
+ export interface OrderCheckoutAction {
657
+ id?: /**
658
+ * example:
659
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
660
+ */
661
+ AutomationActionId;
662
+ flow_action_id?: /**
663
+ * example:
664
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
665
+ */
666
+ AutomationActionId;
667
+ name?: string;
668
+ type?: string;
669
+ config?: OrderCheckoutConfig;
670
+ execution_status?: ExecutionStatus;
671
+ started_at?: string;
672
+ updated_at?: string;
673
+ /**
674
+ * Flag indicating whether the action was created automatically or manually
675
+ */
676
+ created_automatically?: boolean;
677
+ outputs?: {
678
+ [name: string]: any;
679
+ };
680
+ error_output?: ErrorOutput;
681
+ }
682
+ export interface OrderCheckoutConfig {
683
+ relation_attributes?: RelationAttribute[];
684
+ }
680
685
  /**
681
686
  * example:
682
687
  * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
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
@@ -206,7 +206,13 @@ declare namespace Components {
206
206
  * }
207
207
  * }
208
208
  */
209
- SendEmailAction | CartCheckoutAction | AutomationAction;
209
+ SendEmailAction | AutomationAction;
210
+ export interface ApiSubmissionTrigger {
211
+ type: "api_submission";
212
+ configuration: {
213
+ source_id?: string;
214
+ };
215
+ }
210
216
  export interface AppendValueMapper {
211
217
  mode: /**
212
218
  * - copy_if_exists - it replaces the target attribute with the source value
@@ -355,7 +361,7 @@ declare namespace Components {
355
361
  * 7
356
362
  */
357
363
  runs?: number;
358
- triggers?: (FrontendSubmitTrigger | JourneySubmitTrigger | EntityOperationTrigger | EntityManualTrigger)[];
364
+ triggers?: (FrontendSubmitTrigger | JourneySubmitTrigger | ApiSubmissionTrigger | EntityOperationTrigger | EntityManualTrigger)[];
359
365
  trigger_conditions?: /**
360
366
  * example:
361
367
  * {
@@ -379,36 +385,6 @@ declare namespace Components {
379
385
  * 7791b04a-16d2-44a2-9af9-2d59c25c512f
380
386
  */
381
387
  export type AutomationFlowId = string;
382
- export interface CartCheckoutAction {
383
- id?: /**
384
- * example:
385
- * 9ec3711b-db63-449c-b894-54d5bb622a8f
386
- */
387
- AutomationActionId;
388
- flow_action_id?: /**
389
- * example:
390
- * 9ec3711b-db63-449c-b894-54d5bb622a8f
391
- */
392
- AutomationActionId;
393
- name?: string;
394
- type?: string;
395
- config?: CartCheckoutConfig;
396
- execution_status?: ExecutionStatus;
397
- started_at?: string;
398
- updated_at?: string;
399
- /**
400
- * Flag indicating whether the action was created automatically or manually
401
- */
402
- created_automatically?: boolean;
403
- outputs?: {
404
- [name: string]: any;
405
- };
406
- error_output?: ErrorOutput;
407
- }
408
- export interface CartCheckoutConfig {
409
- relation_attributes?: RelationAttribute[];
410
- mapping_attributes?: MappingAttribute[];
411
- }
412
388
  export type Comparison = "equals" | "any_of" | "not_empty" | "is_empty";
413
389
  export interface CopyValueMapper {
414
390
  mode: /**
@@ -677,6 +653,35 @@ declare namespace Components {
677
653
  *
678
654
  */
679
655
  export type MappingAttributeMode = "copy_if_exists" | "append_if_exists" | "set_value";
656
+ export interface OrderCheckoutAction {
657
+ id?: /**
658
+ * example:
659
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
660
+ */
661
+ AutomationActionId;
662
+ flow_action_id?: /**
663
+ * example:
664
+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
665
+ */
666
+ AutomationActionId;
667
+ name?: string;
668
+ type?: string;
669
+ config?: OrderCheckoutConfig;
670
+ execution_status?: ExecutionStatus;
671
+ started_at?: string;
672
+ updated_at?: string;
673
+ /**
674
+ * Flag indicating whether the action was created automatically or manually
675
+ */
676
+ created_automatically?: boolean;
677
+ outputs?: {
678
+ [name: string]: any;
679
+ };
680
+ error_output?: ErrorOutput;
681
+ }
682
+ export interface OrderCheckoutConfig {
683
+ relation_attributes?: RelationAttribute[];
684
+ }
680
685
  /**
681
686
  * example:
682
687
  * e3d3ebac-baab-4395-abf4-50b5bf1f8b74