@epilot/automation-client 2.12.2 → 2.13.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 +48 -57
- package/dist/openapi.json +76 -90
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -39,17 +39,24 @@ declare namespace Components {
|
|
|
39
39
|
/**
|
|
40
40
|
* Schedule Id
|
|
41
41
|
*/
|
|
42
|
-
id
|
|
42
|
+
id: string;
|
|
43
43
|
/**
|
|
44
|
-
* The id of the configured scheduler
|
|
44
|
+
* The id of the configured scheduler which will be added on automation triggered
|
|
45
45
|
*/
|
|
46
46
|
scheduleId?: string;
|
|
47
|
+
source: /* The source of the schedule_at timestamp that will be used to schedule the action */ ActionScheduleSource;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The source of the schedule_at timestamp that will be used to schedule the action
|
|
51
|
+
*/
|
|
52
|
+
export interface ActionScheduleSource {
|
|
47
53
|
/**
|
|
48
|
-
* The
|
|
54
|
+
* The iGd of the action or trigger
|
|
49
55
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
id: string;
|
|
57
|
+
origin: "trigger" | "action";
|
|
58
|
+
schema: string;
|
|
59
|
+
attribute: string;
|
|
53
60
|
}
|
|
54
61
|
/**
|
|
55
62
|
* example:
|
|
@@ -819,14 +826,16 @@ declare namespace Components {
|
|
|
819
826
|
AutomationFlowId;
|
|
820
827
|
/**
|
|
821
828
|
* Status of the bulk trigger automation job
|
|
822
|
-
* *
|
|
823
|
-
* *
|
|
824
|
-
* *
|
|
825
|
-
* *
|
|
826
|
-
* *
|
|
829
|
+
* * approval: Waiting for user approval to start the bulk trigger automation
|
|
830
|
+
* * starting: Starting automation executions
|
|
831
|
+
* * in_progress: Automation execution are currently running
|
|
832
|
+
* * send_report: Automation executions finished running. Report is being created & sent to the user who initiated the bulk trigger automation
|
|
833
|
+
* * finished: Automation executions finished running. Some may have failed. Check the status of each entity.
|
|
834
|
+
* * failed: Bulk trigger automation execution failed. Some executions might have started. Check the status of each entity.
|
|
835
|
+
* * cancelled: Bulk trigger automation execution was cancelled
|
|
827
836
|
*
|
|
828
837
|
*/
|
|
829
|
-
status: "
|
|
838
|
+
status: "approval" | "starting" | "in_progress" | "send_report" | "finished" | "failed" | "cancelled";
|
|
830
839
|
/**
|
|
831
840
|
* User ID who created the bulk trigger automation job
|
|
832
841
|
* example:
|
|
@@ -846,54 +855,13 @@ declare namespace Components {
|
|
|
846
855
|
*/
|
|
847
856
|
task_token?: string;
|
|
848
857
|
/**
|
|
849
|
-
*
|
|
858
|
+
* Entity ID of the report file entity
|
|
850
859
|
*/
|
|
851
|
-
|
|
852
|
-
entity_id: /**
|
|
853
|
-
* example:
|
|
854
|
-
* e3d3ebac-baab-4395-abf4-50b5bf1f8b74
|
|
855
|
-
*/
|
|
856
|
-
EntityId;
|
|
857
|
-
}[];
|
|
860
|
+
report_file_entity_id?: string;
|
|
858
861
|
/**
|
|
859
|
-
* List of
|
|
862
|
+
* List of entities & their automation execution id & status
|
|
860
863
|
*/
|
|
861
|
-
|
|
862
|
-
entity_id: /**
|
|
863
|
-
* example:
|
|
864
|
-
* e3d3ebac-baab-4395-abf4-50b5bf1f8b74
|
|
865
|
-
*/
|
|
866
|
-
EntityId;
|
|
867
|
-
execution_id: /**
|
|
868
|
-
* example:
|
|
869
|
-
* 9baf184f-bc81-4128-bca3-d974c90a12c4
|
|
870
|
-
*/
|
|
871
|
-
AutomationExecutionId;
|
|
872
|
-
}[];
|
|
873
|
-
/**
|
|
874
|
-
* List of entity ids that were skipped or failed
|
|
875
|
-
*/
|
|
876
|
-
failed?: {
|
|
877
|
-
entity_id: /**
|
|
878
|
-
* example:
|
|
879
|
-
* e3d3ebac-baab-4395-abf4-50b5bf1f8b74
|
|
880
|
-
*/
|
|
881
|
-
EntityId;
|
|
882
|
-
/**
|
|
883
|
-
* Error message for the failed automation execution
|
|
884
|
-
*/
|
|
885
|
-
error: string;
|
|
886
|
-
}[];
|
|
887
|
-
/**
|
|
888
|
-
* List of entity ids that were cancelled from triggering automation
|
|
889
|
-
*/
|
|
890
|
-
cancelled?: {
|
|
891
|
-
entity_id: /**
|
|
892
|
-
* example:
|
|
893
|
-
* e3d3ebac-baab-4395-abf4-50b5bf1f8b74
|
|
894
|
-
*/
|
|
895
|
-
EntityId;
|
|
896
|
-
}[];
|
|
864
|
+
execution_summary: /* Execution item for bulk trigger automation. It maps each entity to its automation execution id & status */ ExecItem[];
|
|
897
865
|
}
|
|
898
866
|
export interface BulkTriggerRequest {
|
|
899
867
|
flow_id: /**
|
|
@@ -1508,6 +1476,26 @@ declare namespace Components {
|
|
|
1508
1476
|
details?: ErrorDetail[];
|
|
1509
1477
|
};
|
|
1510
1478
|
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Execution item for bulk trigger automation. It maps each entity to its automation execution id & status
|
|
1481
|
+
*/
|
|
1482
|
+
export interface ExecItem {
|
|
1483
|
+
entity_id: /**
|
|
1484
|
+
* example:
|
|
1485
|
+
* e3d3ebac-baab-4395-abf4-50b5bf1f8b74
|
|
1486
|
+
*/
|
|
1487
|
+
EntityId;
|
|
1488
|
+
execution_id?: /**
|
|
1489
|
+
* example:
|
|
1490
|
+
* 9baf184f-bc81-4128-bca3-d974c90a12c4
|
|
1491
|
+
*/
|
|
1492
|
+
AutomationExecutionId;
|
|
1493
|
+
execution_status: ExecutionStatus;
|
|
1494
|
+
/**
|
|
1495
|
+
* Error message for the failed automation execution
|
|
1496
|
+
*/
|
|
1497
|
+
error?: string;
|
|
1498
|
+
}
|
|
1511
1499
|
export type ExecutionStatus = "pending" | "in_progress" | "paused" | "success" | "failed" | "cancelled" | "skipped" | "scheduled";
|
|
1512
1500
|
export interface ExistsCondition {
|
|
1513
1501
|
exists?: boolean;
|
|
@@ -2603,6 +2591,7 @@ declare namespace Components {
|
|
|
2603
2591
|
* ]
|
|
2604
2592
|
*/
|
|
2605
2593
|
AssignUsersToStep[];
|
|
2594
|
+
filter_with_purposes?: boolean;
|
|
2606
2595
|
}
|
|
2607
2596
|
export interface WildcardCondition {
|
|
2608
2597
|
wildcard?: string;
|
|
@@ -3138,6 +3127,7 @@ export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
|
3138
3127
|
|
|
3139
3128
|
export type ActionCondition = Components.Schemas.ActionCondition;
|
|
3140
3129
|
export type ActionSchedule = Components.Schemas.ActionSchedule;
|
|
3130
|
+
export type ActionScheduleSource = Components.Schemas.ActionScheduleSource;
|
|
3141
3131
|
export type ActivityId = Components.Schemas.ActivityId;
|
|
3142
3132
|
export type ActivityTrigger = Components.Schemas.ActivityTrigger;
|
|
3143
3133
|
export type AnyAction = Components.Schemas.AnyAction;
|
|
@@ -3180,6 +3170,7 @@ export type EqualsIgnoreCaseCondition = Components.Schemas.EqualsIgnoreCaseCondi
|
|
|
3180
3170
|
export type ErrorCode = Components.Schemas.ErrorCode;
|
|
3181
3171
|
export type ErrorDetail = Components.Schemas.ErrorDetail;
|
|
3182
3172
|
export type ErrorOutput = Components.Schemas.ErrorOutput;
|
|
3173
|
+
export type ExecItem = Components.Schemas.ExecItem;
|
|
3183
3174
|
export type ExecutionStatus = Components.Schemas.ExecutionStatus;
|
|
3184
3175
|
export type ExistsCondition = Components.Schemas.ExistsCondition;
|
|
3185
3176
|
export type FilterConditionOnEvent = Components.Schemas.FilterConditionOnEvent;
|
package/dist/openapi.json
CHANGED
|
@@ -1804,6 +1804,9 @@
|
|
|
1804
1804
|
"items": {
|
|
1805
1805
|
"$ref": "#/components/schemas/AssignUsersToStep"
|
|
1806
1806
|
}
|
|
1807
|
+
},
|
|
1808
|
+
"filter_with_purposes": {
|
|
1809
|
+
"type": "boolean"
|
|
1807
1810
|
}
|
|
1808
1811
|
}
|
|
1809
1812
|
},
|
|
@@ -2071,6 +2074,35 @@
|
|
|
2071
2074
|
}
|
|
2072
2075
|
}
|
|
2073
2076
|
},
|
|
2077
|
+
"ActionScheduleSource": {
|
|
2078
|
+
"type": "object",
|
|
2079
|
+
"description": "The source of the schedule_at timestamp that will be used to schedule the action",
|
|
2080
|
+
"properties": {
|
|
2081
|
+
"id": {
|
|
2082
|
+
"type": "string",
|
|
2083
|
+
"description": "The iGd of the action or trigger"
|
|
2084
|
+
},
|
|
2085
|
+
"origin": {
|
|
2086
|
+
"type": "string",
|
|
2087
|
+
"enum": [
|
|
2088
|
+
"trigger",
|
|
2089
|
+
"action"
|
|
2090
|
+
]
|
|
2091
|
+
},
|
|
2092
|
+
"schema": {
|
|
2093
|
+
"type": "string"
|
|
2094
|
+
},
|
|
2095
|
+
"attribute": {
|
|
2096
|
+
"type": "string"
|
|
2097
|
+
}
|
|
2098
|
+
},
|
|
2099
|
+
"required": [
|
|
2100
|
+
"id",
|
|
2101
|
+
"origin",
|
|
2102
|
+
"schema",
|
|
2103
|
+
"attribute"
|
|
2104
|
+
]
|
|
2105
|
+
},
|
|
2074
2106
|
"ActionSchedule": {
|
|
2075
2107
|
"type": "object",
|
|
2076
2108
|
"properties": {
|
|
@@ -2080,30 +2112,16 @@
|
|
|
2080
2112
|
},
|
|
2081
2113
|
"scheduleId": {
|
|
2082
2114
|
"type": "string",
|
|
2083
|
-
"description": "The id of the configured scheduler"
|
|
2115
|
+
"description": "The id of the configured scheduler which will be added on automation triggered"
|
|
2084
2116
|
},
|
|
2085
2117
|
"source": {
|
|
2086
|
-
"
|
|
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
|
-
}
|
|
2118
|
+
"$ref": "#/components/schemas/ActionScheduleSource"
|
|
2105
2119
|
}
|
|
2106
|
-
}
|
|
2120
|
+
},
|
|
2121
|
+
"required": [
|
|
2122
|
+
"id",
|
|
2123
|
+
"source"
|
|
2124
|
+
]
|
|
2107
2125
|
},
|
|
2108
2126
|
"AutomationExecutionId": {
|
|
2109
2127
|
"type": "string",
|
|
@@ -2437,7 +2455,8 @@
|
|
|
2437
2455
|
"status",
|
|
2438
2456
|
"created_by",
|
|
2439
2457
|
"created_at",
|
|
2440
|
-
"updated_at"
|
|
2458
|
+
"updated_at",
|
|
2459
|
+
"execution_summary"
|
|
2441
2460
|
],
|
|
2442
2461
|
"properties": {
|
|
2443
2462
|
"job_id": {
|
|
@@ -2451,13 +2470,15 @@
|
|
|
2451
2470
|
},
|
|
2452
2471
|
"status": {
|
|
2453
2472
|
"type": "string",
|
|
2454
|
-
"description": "Status of the bulk trigger automation job\n*
|
|
2473
|
+
"description": "Status of the bulk trigger automation job\n* approval: Waiting for user approval to start the bulk trigger automation\n* starting: Starting automation executions\n* in_progress: Automation execution are currently running\n* send_report: Automation executions finished running. Report is being created & sent to the user who initiated the bulk trigger automation\n* finished: Automation executions finished running. Some may have failed. Check the status of each entity.\n* failed: Bulk trigger automation execution failed. Some executions might have started. Check the status of each entity.\n* cancelled: Bulk trigger automation execution was cancelled\n",
|
|
2455
2474
|
"enum": [
|
|
2456
|
-
"
|
|
2457
|
-
"
|
|
2458
|
-
"
|
|
2459
|
-
"
|
|
2460
|
-
"
|
|
2475
|
+
"approval",
|
|
2476
|
+
"starting",
|
|
2477
|
+
"in_progress",
|
|
2478
|
+
"send_report",
|
|
2479
|
+
"finished",
|
|
2480
|
+
"failed",
|
|
2481
|
+
"cancelled"
|
|
2461
2482
|
]
|
|
2462
2483
|
},
|
|
2463
2484
|
"created_by": {
|
|
@@ -2483,74 +2504,39 @@
|
|
|
2483
2504
|
"description": "Task token to approve/cancel the bulk automation job",
|
|
2484
2505
|
"example": "8c086140-f33e-4bb7-a993-50c0f2402c7b"
|
|
2485
2506
|
},
|
|
2486
|
-
"
|
|
2487
|
-
"type": "
|
|
2488
|
-
"description": "
|
|
2489
|
-
"items": {
|
|
2490
|
-
"type": "object",
|
|
2491
|
-
"required": [
|
|
2492
|
-
"entity_id"
|
|
2493
|
-
],
|
|
2494
|
-
"properties": {
|
|
2495
|
-
"entity_id": {
|
|
2496
|
-
"$ref": "#/components/schemas/EntityId"
|
|
2497
|
-
}
|
|
2498
|
-
}
|
|
2499
|
-
}
|
|
2507
|
+
"report_file_entity_id": {
|
|
2508
|
+
"type": "string",
|
|
2509
|
+
"description": "Entity ID of the report file entity"
|
|
2500
2510
|
},
|
|
2501
|
-
"
|
|
2511
|
+
"execution_summary": {
|
|
2502
2512
|
"type": "array",
|
|
2503
|
-
"description": "List of
|
|
2513
|
+
"description": "List of entities & their automation execution id & status",
|
|
2504
2514
|
"items": {
|
|
2505
|
-
"
|
|
2506
|
-
"required": [
|
|
2507
|
-
"entity_id",
|
|
2508
|
-
"execution_id"
|
|
2509
|
-
],
|
|
2510
|
-
"properties": {
|
|
2511
|
-
"entity_id": {
|
|
2512
|
-
"$ref": "#/components/schemas/EntityId"
|
|
2513
|
-
},
|
|
2514
|
-
"execution_id": {
|
|
2515
|
-
"$ref": "#/components/schemas/AutomationExecutionId"
|
|
2516
|
-
}
|
|
2517
|
-
}
|
|
2515
|
+
"$ref": "#/components/schemas/ExecItem"
|
|
2518
2516
|
}
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
},
|
|
2520
|
+
"ExecItem": {
|
|
2521
|
+
"type": "object",
|
|
2522
|
+
"description": "Execution item for bulk trigger automation. It maps each entity to its automation execution id & status",
|
|
2523
|
+
"required": [
|
|
2524
|
+
"entity_id",
|
|
2525
|
+
"execution_status"
|
|
2526
|
+
],
|
|
2527
|
+
"properties": {
|
|
2528
|
+
"entity_id": {
|
|
2529
|
+
"$ref": "#/components/schemas/EntityId"
|
|
2519
2530
|
},
|
|
2520
|
-
"
|
|
2521
|
-
"
|
|
2522
|
-
"description": "List of entity ids that were skipped or failed",
|
|
2523
|
-
"items": {
|
|
2524
|
-
"type": "object",
|
|
2525
|
-
"required": [
|
|
2526
|
-
"entity_id",
|
|
2527
|
-
"error"
|
|
2528
|
-
],
|
|
2529
|
-
"properties": {
|
|
2530
|
-
"entity_id": {
|
|
2531
|
-
"$ref": "#/components/schemas/EntityId"
|
|
2532
|
-
},
|
|
2533
|
-
"error": {
|
|
2534
|
-
"type": "string",
|
|
2535
|
-
"description": "Error message for the failed automation execution"
|
|
2536
|
-
}
|
|
2537
|
-
}
|
|
2538
|
-
}
|
|
2531
|
+
"execution_id": {
|
|
2532
|
+
"$ref": "#/components/schemas/AutomationExecutionId"
|
|
2539
2533
|
},
|
|
2540
|
-
"
|
|
2541
|
-
"
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
"entity_id"
|
|
2547
|
-
],
|
|
2548
|
-
"properties": {
|
|
2549
|
-
"entity_id": {
|
|
2550
|
-
"$ref": "#/components/schemas/EntityId"
|
|
2551
|
-
}
|
|
2552
|
-
}
|
|
2553
|
-
}
|
|
2534
|
+
"execution_status": {
|
|
2535
|
+
"$ref": "#/components/schemas/ExecutionStatus"
|
|
2536
|
+
},
|
|
2537
|
+
"error": {
|
|
2538
|
+
"type": "string",
|
|
2539
|
+
"description": "Error message for the failed automation execution"
|
|
2554
2540
|
}
|
|
2555
2541
|
}
|
|
2556
2542
|
},
|