@epilot/automation-client 2.12.1 → 2.12.2

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
@@ -35,6 +35,22 @@ declare namespace Components {
35
35
  */
36
36
  ConditionStatement[];
37
37
  }
38
+ export interface ActionSchedule {
39
+ /**
40
+ * Schedule Id
41
+ */
42
+ id?: string;
43
+ /**
44
+ * The id of the configured scheduler
45
+ */
46
+ scheduleId?: string;
47
+ /**
48
+ * The source of the schedule_at timestamp that will be used to schedule the action
49
+ */
50
+ source?: {
51
+ [key: string]: any;
52
+ };
53
+ }
38
54
  /**
39
55
  * example:
40
56
  * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
@@ -549,6 +565,10 @@ declare namespace Components {
549
565
  * Condition Id to be checked before executing the action
550
566
  */
551
567
  condition_id?: string;
568
+ /**
569
+ * Schedule Id which indicates the schedule of the action
570
+ */
571
+ schedule_id?: string;
552
572
  execution_status?: ExecutionStatus;
553
573
  started_at?: string;
554
574
  updated_at?: string;
@@ -608,6 +628,10 @@ declare namespace Components {
608
628
  * Condition Id to be checked before executing the action
609
629
  */
610
630
  condition_id?: string;
631
+ /**
632
+ * Schedule Id which indicates the schedule of the action
633
+ */
634
+ schedule_id?: string;
611
635
  }
612
636
  export interface AutomationActionExecutionState {
613
637
  execution_status?: ExecutionStatus;
@@ -669,6 +693,7 @@ declare namespace Components {
669
693
  */
670
694
  AutomationActionId;
671
695
  conditions?: ActionCondition[];
696
+ schedules?: ActionSchedule[];
672
697
  actions: AnyAction[];
673
698
  resume_token?: /**
674
699
  * A unique token to resume a paused automation execution
@@ -721,6 +746,7 @@ declare namespace Components {
721
746
  */
722
747
  entity_schema?: string;
723
748
  conditions?: ActionCondition[];
749
+ schedules?: ActionSchedule[];
724
750
  /**
725
751
  * The actions (nodes) of the automation flow
726
752
  */
@@ -929,6 +955,10 @@ declare namespace Components {
929
955
  * Condition Id to be checked before executing the action
930
956
  */
931
957
  condition_id?: string;
958
+ /**
959
+ * Schedule Id which indicates the schedule of the action
960
+ */
961
+ schedule_id?: string;
932
962
  execution_status?: ExecutionStatus;
933
963
  started_at?: string;
934
964
  updated_at?: string;
@@ -989,6 +1019,10 @@ declare namespace Components {
989
1019
  * Condition Id to be checked before executing the action
990
1020
  */
991
1021
  condition_id?: string;
1022
+ /**
1023
+ * Schedule Id which indicates the schedule of the action
1024
+ */
1025
+ schedule_id?: string;
992
1026
  }
993
1027
  export interface CartCheckoutConfig {
994
1028
  /**
@@ -1050,9 +1084,12 @@ declare namespace Components {
1050
1084
  */
1051
1085
  id?: string; // uuid
1052
1086
  source?: {
1087
+ /**
1088
+ * The id of the action or trigger
1089
+ */
1090
+ id?: string;
1053
1091
  origin?: "trigger" | "action";
1054
1092
  originType?: "entity" | "workflow" | "journey_block";
1055
- id?: string;
1056
1093
  schema?: string;
1057
1094
  attribute?: string;
1058
1095
  attributeType?: "string" | "text" | "number" | "boolean" | "date" | "datetime" | "tags" | "country" | "email" | "phone" | "product" | "price" | "status" | "relation" | "multiselect" | "select" | "radio" | "relation_user" | "purpose" | "label";
@@ -1122,6 +1159,10 @@ declare namespace Components {
1122
1159
  * Condition Id to be checked before executing the action
1123
1160
  */
1124
1161
  condition_id?: string;
1162
+ /**
1163
+ * Schedule Id which indicates the schedule of the action
1164
+ */
1165
+ schedule_id?: string;
1125
1166
  execution_status?: ExecutionStatus;
1126
1167
  started_at?: string;
1127
1168
  updated_at?: string;
@@ -1197,6 +1238,10 @@ declare namespace Components {
1197
1238
  * Condition Id to be checked before executing the action
1198
1239
  */
1199
1240
  condition_id?: string;
1241
+ /**
1242
+ * Schedule Id which indicates the schedule of the action
1243
+ */
1244
+ schedule_id?: string;
1200
1245
  }
1201
1246
  export interface CreateDocumentConfig {
1202
1247
  template_id?: string;
@@ -1463,7 +1508,7 @@ declare namespace Components {
1463
1508
  details?: ErrorDetail[];
1464
1509
  };
1465
1510
  }
1466
- export type ExecutionStatus = "pending" | "in_progress" | "paused" | "success" | "failed" | "cancelled" | "skipped";
1511
+ export type ExecutionStatus = "pending" | "in_progress" | "paused" | "success" | "failed" | "cancelled" | "skipped" | "scheduled";
1467
1512
  export interface ExistsCondition {
1468
1513
  exists?: boolean;
1469
1514
  }
@@ -1550,6 +1595,10 @@ declare namespace Components {
1550
1595
  * Condition Id to be checked before executing the action
1551
1596
  */
1552
1597
  condition_id?: string;
1598
+ /**
1599
+ * Schedule Id which indicates the schedule of the action
1600
+ */
1601
+ schedule_id?: string;
1553
1602
  execution_status?: ExecutionStatus;
1554
1603
  started_at?: string;
1555
1604
  updated_at?: string;
@@ -1727,6 +1776,10 @@ declare namespace Components {
1727
1776
  * Condition Id to be checked before executing the action
1728
1777
  */
1729
1778
  condition_id?: string;
1779
+ /**
1780
+ * Schedule Id which indicates the schedule of the action
1781
+ */
1782
+ schedule_id?: string;
1730
1783
  }
1731
1784
  export interface MapEntityConfig {
1732
1785
  mapping_config?: MappingConfigRef;
@@ -1984,6 +2037,10 @@ declare namespace Components {
1984
2037
  * Condition Id to be checked before executing the action
1985
2038
  */
1986
2039
  condition_id?: string;
2040
+ /**
2041
+ * Schedule Id which indicates the schedule of the action
2042
+ */
2043
+ schedule_id?: string;
1987
2044
  execution_status?: ExecutionStatus;
1988
2045
  started_at?: string;
1989
2046
  updated_at?: string;
@@ -2053,6 +2110,10 @@ declare namespace Components {
2053
2110
  * Condition Id to be checked before executing the action
2054
2111
  */
2055
2112
  condition_id?: string;
2113
+ /**
2114
+ * Schedule Id which indicates the schedule of the action
2115
+ */
2116
+ schedule_id?: string;
2056
2117
  }
2057
2118
  export interface SendEmailConfig {
2058
2119
  email_template_id?: string;
@@ -2260,6 +2321,10 @@ declare namespace Components {
2260
2321
  * Condition Id to be checked before executing the action
2261
2322
  */
2262
2323
  condition_id?: string;
2324
+ /**
2325
+ * Schedule Id which indicates the schedule of the action
2326
+ */
2327
+ schedule_id?: string;
2263
2328
  execution_status?: ExecutionStatus;
2264
2329
  started_at?: string;
2265
2330
  updated_at?: string;
@@ -2332,6 +2397,10 @@ declare namespace Components {
2332
2397
  * Condition Id to be checked before executing the action
2333
2398
  */
2334
2399
  condition_id?: string;
2400
+ /**
2401
+ * Schedule Id which indicates the schedule of the action
2402
+ */
2403
+ schedule_id?: string;
2335
2404
  }
2336
2405
  export interface TriggerWebhookConfig {
2337
2406
  entity_sources?: string[];
@@ -2385,6 +2454,10 @@ declare namespace Components {
2385
2454
  * Condition Id to be checked before executing the action
2386
2455
  */
2387
2456
  condition_id?: string;
2457
+ /**
2458
+ * Schedule Id which indicates the schedule of the action
2459
+ */
2460
+ schedule_id?: string;
2388
2461
  execution_status?: ExecutionStatus;
2389
2462
  started_at?: string;
2390
2463
  updated_at?: string;
@@ -2476,6 +2549,10 @@ declare namespace Components {
2476
2549
  * Condition Id to be checked before executing the action
2477
2550
  */
2478
2551
  condition_id?: string;
2552
+ /**
2553
+ * Schedule Id which indicates the schedule of the action
2554
+ */
2555
+ schedule_id?: string;
2479
2556
  }
2480
2557
  /**
2481
2558
  * example:
@@ -2526,7 +2603,6 @@ declare namespace Components {
2526
2603
  * ]
2527
2604
  */
2528
2605
  AssignUsersToStep[];
2529
- filter_with_purposes?: boolean;
2530
2606
  }
2531
2607
  export interface WildcardCondition {
2532
2608
  wildcard?: string;
@@ -3061,6 +3137,7 @@ export interface PathsDictionary {
3061
3137
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
3062
3138
 
3063
3139
  export type ActionCondition = Components.Schemas.ActionCondition;
3140
+ export type ActionSchedule = Components.Schemas.ActionSchedule;
3064
3141
  export type ActivityId = Components.Schemas.ActivityId;
3065
3142
  export type ActivityTrigger = Components.Schemas.ActivityTrigger;
3066
3143
  export type AnyAction = Components.Schemas.AnyAction;
package/dist/openapi.json CHANGED
@@ -615,6 +615,12 @@
615
615
  "$ref": "#/components/schemas/ActionCondition"
616
616
  }
617
617
  },
618
+ "schedules": {
619
+ "type": "array",
620
+ "items": {
621
+ "$ref": "#/components/schemas/ActionSchedule"
622
+ }
623
+ },
618
624
  "actions": {
619
625
  "type": "array",
620
626
  "description": "The actions (nodes) of the automation flow",
@@ -814,6 +820,10 @@
814
820
  "condition_id": {
815
821
  "type": "string",
816
822
  "description": "Condition Id to be checked before executing the action"
823
+ },
824
+ "schedule_id": {
825
+ "type": "string",
826
+ "description": "Schedule Id which indicates the schedule of the action"
817
827
  }
818
828
  }
819
829
  },
@@ -1794,9 +1804,6 @@
1794
1804
  "items": {
1795
1805
  "$ref": "#/components/schemas/AssignUsersToStep"
1796
1806
  }
1797
- },
1798
- "filter_with_purposes": {
1799
- "type": "boolean"
1800
1807
  }
1801
1808
  }
1802
1809
  },
@@ -1942,6 +1949,10 @@
1942
1949
  "source": {
1943
1950
  "type": "object",
1944
1951
  "properties": {
1952
+ "id": {
1953
+ "type": "string",
1954
+ "description": "The id of the action or trigger"
1955
+ },
1945
1956
  "origin": {
1946
1957
  "type": "string",
1947
1958
  "enum": [
@@ -1957,9 +1968,6 @@
1957
1968
  "journey_block"
1958
1969
  ]
1959
1970
  },
1960
- "id": {
1961
- "type": "string"
1962
- },
1963
1971
  "schema": {
1964
1972
  "type": "string"
1965
1973
  },
@@ -2063,6 +2071,40 @@
2063
2071
  }
2064
2072
  }
2065
2073
  },
2074
+ "ActionSchedule": {
2075
+ "type": "object",
2076
+ "properties": {
2077
+ "id": {
2078
+ "type": "string",
2079
+ "description": "Schedule Id"
2080
+ },
2081
+ "scheduleId": {
2082
+ "type": "string",
2083
+ "description": "The id of the configured scheduler"
2084
+ },
2085
+ "source": {
2086
+ "type": "object",
2087
+ "description": "The source of the schedule_at timestamp that will be used to schedule the action",
2088
+ "id": {
2089
+ "type": "string",
2090
+ "description": "The iGd of the action or trigger"
2091
+ },
2092
+ "origin": {
2093
+ "type": "string",
2094
+ "enum": [
2095
+ "trigger",
2096
+ "action"
2097
+ ]
2098
+ },
2099
+ "schema": {
2100
+ "type": "string"
2101
+ },
2102
+ "attribute": {
2103
+ "type": "string"
2104
+ }
2105
+ }
2106
+ }
2107
+ },
2066
2108
  "AutomationExecutionId": {
2067
2109
  "type": "string",
2068
2110
  "example": "9baf184f-bc81-4128-bca3-d974c90a12c4"
@@ -2112,6 +2154,12 @@
2112
2154
  "$ref": "#/components/schemas/ActionCondition"
2113
2155
  }
2114
2156
  },
2157
+ "schedules": {
2158
+ "type": "array",
2159
+ "items": {
2160
+ "$ref": "#/components/schemas/ActionSchedule"
2161
+ }
2162
+ },
2115
2163
  "actions": {
2116
2164
  "type": "array",
2117
2165
  "items": {
@@ -2304,7 +2352,8 @@
2304
2352
  "success",
2305
2353
  "failed",
2306
2354
  "cancelled",
2307
- "skipped"
2355
+ "skipped",
2356
+ "scheduled"
2308
2357
  ]
2309
2358
  },
2310
2359
  "GetExecutionsResp": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "2.12.1",
3
+ "version": "2.12.2",
4
4
  "description": "Client library for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",