@epilot/automation-client 2.16.4 → 2.16.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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={914:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(o(240));t.default=r.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v1/automation/flows":{"get":{"operationId":"searchFlows","parameters":[{"name":"schema","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"},{"name":"trigger_source_id","in":"query"}],"responses":{}},"post":{"operationId":"createFlow","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/flows/{flow_id}":{"get":{"operationId":"getFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"responses":{}}},"/v1/automation/executions":{"get":{"operationId":"getExecutions","parameters":[{"name":"entity_id","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"}],"responses":{}},"post":{"operationId":"startExecution","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/bulk-jobs":{"post":{"operationId":"bulkTriggerExecutions","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/bulk-jobs/{job_id}":{"get":{"operationId":"getBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"responses":{}},"patch":{"operationId":"patchBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/{execution_id}":{"get":{"operationId":"getExecution","parameters":[{"name":"execution_id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"cancelExecution","parameters":[{"name":"execution_id","in":"path","required":true}],"responses":{}}},"/v1/automation/executions/{execution_id}/{action_id}/retrigger":{"post":{"operationId":"retriggerAction","parameters":[{"name":"execution_id","in":"path","required":true},{"name":"action_id","in":"path","required":true}],"requestBody":{"required":false,"content":{"application/json":{}}},"responses":{}}},"/v1/automation/public/executions:resume":{"post":{"operationId":"resumeExecutionWithToken","requestBody":{"content":{"application/json":{}}},"responses":{}}}},"components":{"responses":{"NotFoundError":{"content":{"application/json":{}}},"ForbiddenError":{"content":{"application/json":{}}}}}}')}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}(914),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={914:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(o(240));t.default=r.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v1/automation/flows":{"get":{"operationId":"searchFlows","parameters":[{"name":"schema","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"},{"name":"trigger_source_id","in":"query"}],"responses":{}},"post":{"operationId":"createFlow","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/flows/{flow_id}":{"get":{"operationId":"getFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"responses":{}}},"/v1/automation/executions":{"get":{"operationId":"getExecutions","parameters":[{"name":"entity_id","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"}],"responses":{}},"post":{"operationId":"startExecution","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/bulk-jobs":{"post":{"operationId":"bulkTriggerExecutions","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/bulk-jobs/{job_id}":{"get":{"operationId":"getBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"responses":{}},"patch":{"operationId":"patchBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/{execution_id}":{"get":{"operationId":"getExecution","parameters":[{"name":"execution_id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"cancelExecution","parameters":[{"name":"execution_id","in":"path","required":true}],"responses":{}}},"/v1/automation/executions/{execution_id}/{action_id}/retrigger":{"post":{"operationId":"retriggerAction","parameters":[{"name":"execution_id","in":"path","required":true},{"name":"action_id","in":"path","required":true}],"requestBody":{"required":false,"content":{"application/json":{}}},"responses":{}}},"/v1/automation/public/executions:resume":{"post":{"operationId":"resumeExecutionWithToken","requestBody":{"content":{"application/json":{}}},"responses":{}}}},"components":{"responses":{"NotFoundError":{"content":{"application/json":{}}},"ForbiddenError":{"content":{"application/json":{}}}}},"servers":[{"url":"https://automation.sls.epilot.io"}]}')}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}(914),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
@@ -220,5 +220,10 @@
220
220
  }
221
221
  }
222
222
  }
223
- }
223
+ },
224
+ "servers": [
225
+ {
226
+ "url": "https://automation.sls.epilot.io"
227
+ }
228
+ ]
224
229
  }
package/dist/openapi.d.ts CHANGED
@@ -443,7 +443,7 @@ declare namespace Components {
443
443
  * ```
444
444
  *
445
445
  */
446
- EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger;
446
+ EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger | FlowsTrigger;
447
447
  export interface AnythingButCondition {
448
448
  "anything-but"?: string[];
449
449
  }
@@ -793,6 +793,10 @@ declare namespace Components {
793
793
  * Who disabled the flow (system or user)
794
794
  */
795
795
  disabled_by: "system" | "user";
796
+ /**
797
+ * The 360 user email that disabled the flow
798
+ */
799
+ blame?: string;
796
800
  };
797
801
  triggers: AnyTrigger[];
798
802
  trigger_conditions?: /**
@@ -1685,6 +1689,17 @@ declare namespace Components {
1685
1689
  export type FilterConditionOnEvent = OrCondition | {
1686
1690
  [name: string]: (string | EqualsIgnoreCaseCondition | AnythingButCondition | NumericCondition | ExistsCondition | PrefixCondition | SuffixCondition | WildcardCondition)[];
1687
1691
  };
1692
+ export interface FlowsTrigger {
1693
+ /**
1694
+ * example:
1695
+ * 12d4f45a-1883-4841-a94c-5928cb338a94
1696
+ */
1697
+ id?: string; // uuid
1698
+ type: "flows_trigger";
1699
+ configuration: {
1700
+ source_id: string; // uuid
1701
+ };
1702
+ }
1688
1703
  export interface FrontendSubmitTrigger {
1689
1704
  /**
1690
1705
  * example:
@@ -3542,6 +3557,7 @@ export type ExecItem = Components.Schemas.ExecItem;
3542
3557
  export type ExecutionStatus = Components.Schemas.ExecutionStatus;
3543
3558
  export type ExistsCondition = Components.Schemas.ExistsCondition;
3544
3559
  export type FilterConditionOnEvent = Components.Schemas.FilterConditionOnEvent;
3560
+ export type FlowsTrigger = Components.Schemas.FlowsTrigger;
3545
3561
  export type FrontendSubmitTrigger = Components.Schemas.FrontendSubmitTrigger;
3546
3562
  export type GetExecutionsResp = Components.Schemas.GetExecutionsResp;
3547
3563
  export type JobId = Components.Schemas.JobId;
package/dist/openapi.json CHANGED
@@ -662,6 +662,10 @@
662
662
  "user"
663
663
  ],
664
664
  "description": "Who disabled the flow (system or user)"
665
+ },
666
+ "blame": {
667
+ "type": "string",
668
+ "description": "The 360 user email that disabled the flow"
665
669
  }
666
670
  },
667
671
  "required": [
@@ -822,6 +826,9 @@
822
826
  },
823
827
  {
824
828
  "$ref": "#/components/schemas/ReceivedEmailTrigger"
829
+ },
830
+ {
831
+ "$ref": "#/components/schemas/FlowsTrigger"
825
832
  }
826
833
  ]
827
834
  },
@@ -2788,6 +2795,40 @@
2788
2795
  }
2789
2796
  }
2790
2797
  },
2798
+ "FlowsTrigger": {
2799
+ "allOf": [
2800
+ {
2801
+ "$ref": "#/components/schemas/AutomationTrigger"
2802
+ },
2803
+ {
2804
+ "type": "object",
2805
+ "properties": {
2806
+ "type": {
2807
+ "type": "string",
2808
+ "enum": [
2809
+ "flows_trigger"
2810
+ ]
2811
+ },
2812
+ "configuration": {
2813
+ "type": "object",
2814
+ "properties": {
2815
+ "source_id": {
2816
+ "type": "string",
2817
+ "format": "uuid"
2818
+ }
2819
+ },
2820
+ "required": [
2821
+ "source_id"
2822
+ ]
2823
+ }
2824
+ },
2825
+ "required": [
2826
+ "type",
2827
+ "configuration"
2828
+ ]
2829
+ }
2830
+ ]
2831
+ },
2791
2832
  "JourneySubmitTrigger": {
2792
2833
  "allOf": [
2793
2834
  {
@@ -3507,5 +3548,10 @@
3507
3548
  }
3508
3549
  }
3509
3550
  }
3510
- }
3551
+ },
3552
+ "servers": [
3553
+ {
3554
+ "url": "https://automation.sls.epilot.io"
3555
+ }
3556
+ ]
3511
3557
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "2.16.4",
3
+ "version": "2.16.5",
4
4
  "description": "Client library for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",