@epilot/automation-client 2.8.9 → 2.9.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
@@ -344,7 +344,7 @@ declare namespace Components {
344
344
  */
345
345
  EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger;
346
346
  export interface AnythingButCondition {
347
- "anything-but"?: (string | number)[];
347
+ "anything-but"?: string[];
348
348
  }
349
349
  export interface ApiCallerContext {
350
350
  [name: string]: any;
@@ -625,6 +625,25 @@ declare namespace Components {
625
625
  */
626
626
  AutomationActionId;
627
627
  actions: AnyAction[];
628
+ /**
629
+ * The edges between actions which define the flow order
630
+ */
631
+ edges?: /**
632
+ * example:
633
+ * {
634
+ * "id": "9ec3711b-db63-449c-b894-54d5bb622a8f",
635
+ * "start": "3567cabc-587f-4ba2-8752-1f3da0100d1f",
636
+ * "end": "4e29af6c-9824-461c-bcfb-505840a949ba",
637
+ * "condition_output": true
638
+ * }
639
+ */
640
+ Edge[];
641
+ /**
642
+ * Version of the flow
643
+ * example:
644
+ * 2
645
+ */
646
+ version?: number;
628
647
  trigger_event?: TriggerEventManual | TriggerEventEntityActivity | TriggerEventEntityOperation;
629
648
  }
630
649
  /**
@@ -903,7 +922,7 @@ declare namespace Components {
903
922
  source?: {
904
923
  id?: string;
905
924
  type?: string;
906
- attributes?: string;
925
+ attribute?: string;
907
926
  };
908
927
  operation?: "equals" | "not_equals" | "contains" | "not_contains" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "greater_than_or_equals" | "less_than_or_equals" | "is_empty" | "is_not_empty";
909
928
  values?: string[];
@@ -1320,7 +1339,7 @@ declare namespace Components {
1320
1339
  exists?: boolean;
1321
1340
  }
1322
1341
  export type FilterConditionOnEvent = OrCondition | {
1323
- [name: string]: (string | number | boolean | EqualsIgnoreCaseCondition | AnythingButCondition | NumericCondition | ExistsCondition | PrefixCondition | SuffixCondition | WildcardCondition)[];
1342
+ [name: string]: (string | EqualsIgnoreCaseCondition | AnythingButCondition | NumericCondition | ExistsCondition | PrefixCondition | SuffixCondition | WildcardCondition)[];
1324
1343
  };
1325
1344
  export interface FrontendSubmitTrigger {
1326
1345
  type: "frontend_submission";
package/dist/openapi.json CHANGED
@@ -1811,7 +1811,7 @@
1811
1811
  "type": {
1812
1812
  "type": "string"
1813
1813
  },
1814
- "attributes": {
1814
+ "attribute": {
1815
1815
  "type": "string"
1816
1816
  }
1817
1817
  }
@@ -1910,6 +1910,18 @@
1910
1910
  "$ref": "#/components/schemas/AnyAction"
1911
1911
  }
1912
1912
  },
1913
+ "edges": {
1914
+ "type": "array",
1915
+ "description": "The edges between actions which define the flow order",
1916
+ "items": {
1917
+ "$ref": "#/components/schemas/Edge"
1918
+ }
1919
+ },
1920
+ "version": {
1921
+ "type": "number",
1922
+ "description": "Version of the flow",
1923
+ "example": 2
1924
+ },
1913
1925
  "trigger_event": {
1914
1926
  "oneOf": [
1915
1927
  {
@@ -2522,12 +2534,6 @@
2522
2534
  {
2523
2535
  "type": "string"
2524
2536
  },
2525
- {
2526
- "type": "number"
2527
- },
2528
- {
2529
- "type": "boolean"
2530
- },
2531
2537
  {
2532
2538
  "$ref": "#/components/schemas/EqualsIgnoreCaseCondition"
2533
2539
  },
@@ -2569,14 +2575,7 @@
2569
2575
  "anything-but": {
2570
2576
  "type": "array",
2571
2577
  "items": {
2572
- "oneOf": [
2573
- {
2574
- "type": "string"
2575
- },
2576
- {
2577
- "type": "integer"
2578
- }
2579
- ]
2578
+ "type": "string"
2580
2579
  }
2581
2580
  }
2582
2581
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "2.8.9",
3
+ "version": "2.9.0",
4
4
  "description": "Client library for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",