@epilot/automation-client 2.16.2 → 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.
- package/dist/openapi.d.ts +32 -139
- package/dist/openapi.json +23 -132
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -126,32 +126,6 @@ declare namespace Components {
|
|
|
126
126
|
types?: (("CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal" | "PortalUserResetPassword" | "PortalUserResetForgotPassword" | "SelfAssignmentFromPortal") | string)[];
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
export interface AdvancedCustomActionConfig {
|
|
130
|
-
/**
|
|
131
|
-
* Name of the custom action
|
|
132
|
-
*/
|
|
133
|
-
name?: string;
|
|
134
|
-
/**
|
|
135
|
-
* Description of the custom action
|
|
136
|
-
*/
|
|
137
|
-
description?: string;
|
|
138
|
-
/**
|
|
139
|
-
* The ID of the app to fetch configuration from the app API
|
|
140
|
-
* example:
|
|
141
|
-
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
142
|
-
*/
|
|
143
|
-
app_id?: string;
|
|
144
|
-
/**
|
|
145
|
-
* The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component
|
|
146
|
-
* example:
|
|
147
|
-
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
148
|
-
*/
|
|
149
|
-
component_id?: string;
|
|
150
|
-
type: "advanced";
|
|
151
|
-
advanced_settings?: {
|
|
152
|
-
[name: string]: any;
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
129
|
export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerWebhookAction | CreateDocumentAction | SendEmailAction | /* Creates an order entity with prices from journey */ CartCheckoutAction | CustomAction | AutomationAction;
|
|
156
130
|
export type AnyActionConfig = /**
|
|
157
131
|
* example:
|
|
@@ -352,7 +326,7 @@ declare namespace Components {
|
|
|
352
326
|
* }
|
|
353
327
|
* }
|
|
354
328
|
*/
|
|
355
|
-
SendEmailActionConfig | /* Creates an order entity with prices from journey */ CartCheckoutActionConfig |
|
|
329
|
+
SendEmailActionConfig | /* Creates an order entity with prices from journey */ CartCheckoutActionConfig | CustomAction | AutomationActionConfig;
|
|
356
330
|
export type AnyTrigger = FrontendSubmitTrigger | JourneySubmitTrigger | ApiSubmissionTrigger | /**
|
|
357
331
|
* - If provides filter_config, executes an automation based on the filtered configuration when an entity event occurs.
|
|
358
332
|
* - The conditions on a filter follows the event bridge patterns - `https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html`
|
|
@@ -819,6 +793,10 @@ declare namespace Components {
|
|
|
819
793
|
* Who disabled the flow (system or user)
|
|
820
794
|
*/
|
|
821
795
|
disabled_by: "system" | "user";
|
|
796
|
+
/**
|
|
797
|
+
* The 360 user email that disabled the flow
|
|
798
|
+
*/
|
|
799
|
+
blame?: string;
|
|
822
800
|
};
|
|
823
801
|
triggers: AnyTrigger[];
|
|
824
802
|
trigger_conditions?: /**
|
|
@@ -911,64 +889,6 @@ declare namespace Components {
|
|
|
911
889
|
*/
|
|
912
890
|
id?: string; // uuid
|
|
913
891
|
}
|
|
914
|
-
export interface BaseCustomActionConfig {
|
|
915
|
-
/**
|
|
916
|
-
* Name of the custom action
|
|
917
|
-
*/
|
|
918
|
-
name?: string;
|
|
919
|
-
/**
|
|
920
|
-
* Description of the custom action
|
|
921
|
-
*/
|
|
922
|
-
description?: string;
|
|
923
|
-
/**
|
|
924
|
-
* The ID of the app to fetch configuration from the app API
|
|
925
|
-
* example:
|
|
926
|
-
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
927
|
-
*/
|
|
928
|
-
app_id?: string;
|
|
929
|
-
/**
|
|
930
|
-
* The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component
|
|
931
|
-
* example:
|
|
932
|
-
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
933
|
-
*/
|
|
934
|
-
component_id?: string;
|
|
935
|
-
}
|
|
936
|
-
export interface BasicCustomActionConfig {
|
|
937
|
-
/**
|
|
938
|
-
* Name of the custom action
|
|
939
|
-
*/
|
|
940
|
-
name?: string;
|
|
941
|
-
/**
|
|
942
|
-
* Description of the custom action
|
|
943
|
-
*/
|
|
944
|
-
description?: string;
|
|
945
|
-
/**
|
|
946
|
-
* The ID of the app to fetch configuration from the app API
|
|
947
|
-
* example:
|
|
948
|
-
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
949
|
-
*/
|
|
950
|
-
app_id?: string;
|
|
951
|
-
/**
|
|
952
|
-
* The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component
|
|
953
|
-
* example:
|
|
954
|
-
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
955
|
-
*/
|
|
956
|
-
component_id?: string;
|
|
957
|
-
type: "basic";
|
|
958
|
-
basic_settings?: {
|
|
959
|
-
/**
|
|
960
|
-
* URL to call
|
|
961
|
-
*/
|
|
962
|
-
url?: string;
|
|
963
|
-
headers?: {
|
|
964
|
-
[name: string]: any;
|
|
965
|
-
};
|
|
966
|
-
/**
|
|
967
|
-
* SSM Reference to the auth token to use for the request
|
|
968
|
-
*/
|
|
969
|
-
auth_token_ref?: string;
|
|
970
|
-
};
|
|
971
|
-
}
|
|
972
892
|
export interface BulkTriggerJob {
|
|
973
893
|
job_id: /**
|
|
974
894
|
* Job ID for tracking the status of bulk trigger automation executions
|
|
@@ -1386,7 +1306,33 @@ declare namespace Components {
|
|
|
1386
1306
|
AutomationActionId;
|
|
1387
1307
|
name?: string;
|
|
1388
1308
|
type?: "custom-action";
|
|
1389
|
-
config?:
|
|
1309
|
+
config?: {
|
|
1310
|
+
[name: string]: any;
|
|
1311
|
+
/**
|
|
1312
|
+
* The name of the custom action
|
|
1313
|
+
* example:
|
|
1314
|
+
* Credit Check
|
|
1315
|
+
*/
|
|
1316
|
+
name?: string;
|
|
1317
|
+
/**
|
|
1318
|
+
* The description of the custom action
|
|
1319
|
+
* example:
|
|
1320
|
+
* Check if the customer has a credit limit
|
|
1321
|
+
*/
|
|
1322
|
+
description?: string;
|
|
1323
|
+
/**
|
|
1324
|
+
* The ID of the app to fetch configuration from the app API
|
|
1325
|
+
* example:
|
|
1326
|
+
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
1327
|
+
*/
|
|
1328
|
+
app_id?: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component
|
|
1331
|
+
* example:
|
|
1332
|
+
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
1333
|
+
*/
|
|
1334
|
+
component_id?: string;
|
|
1335
|
+
};
|
|
1390
1336
|
/**
|
|
1391
1337
|
* Whether to stop execution in a failed state if this action fails
|
|
1392
1338
|
*/
|
|
@@ -1434,55 +1380,6 @@ declare namespace Components {
|
|
|
1434
1380
|
error_output?: ErrorOutput;
|
|
1435
1381
|
retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
|
|
1436
1382
|
}
|
|
1437
|
-
export interface CustomActionConfig {
|
|
1438
|
-
id?: /**
|
|
1439
|
-
* example:
|
|
1440
|
-
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
1441
|
-
*/
|
|
1442
|
-
AutomationActionId;
|
|
1443
|
-
flow_action_id?: /**
|
|
1444
|
-
* example:
|
|
1445
|
-
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
1446
|
-
*/
|
|
1447
|
-
AutomationActionId;
|
|
1448
|
-
name?: string;
|
|
1449
|
-
type?: "custom-action";
|
|
1450
|
-
config?: BasicCustomActionConfig | AdvancedCustomActionConfig;
|
|
1451
|
-
/**
|
|
1452
|
-
* Whether to stop execution in a failed state if this action fails
|
|
1453
|
-
*/
|
|
1454
|
-
allow_failure?: boolean;
|
|
1455
|
-
/**
|
|
1456
|
-
* Flag indicating whether the action was created automatically or manually
|
|
1457
|
-
*/
|
|
1458
|
-
created_automatically?: boolean;
|
|
1459
|
-
/**
|
|
1460
|
-
* Flag indicating whether the same action can be in bulk in a single execution. e.g; send-email / map-entity
|
|
1461
|
-
*/
|
|
1462
|
-
is_bulk_action?: boolean;
|
|
1463
|
-
reason?: {
|
|
1464
|
-
/**
|
|
1465
|
-
* Why the action has to be skipped/failed
|
|
1466
|
-
* example:
|
|
1467
|
-
* There are no registered portal users for the given emails, hence skipping the action
|
|
1468
|
-
*/
|
|
1469
|
-
message?: string;
|
|
1470
|
-
/**
|
|
1471
|
-
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1472
|
-
*/
|
|
1473
|
-
payload?: {
|
|
1474
|
-
[name: string]: any;
|
|
1475
|
-
};
|
|
1476
|
-
};
|
|
1477
|
-
/**
|
|
1478
|
-
* Condition Id to be checked before executing the action
|
|
1479
|
-
*/
|
|
1480
|
-
condition_id?: string;
|
|
1481
|
-
/**
|
|
1482
|
-
* Schedule Id which indicates the schedule of the action
|
|
1483
|
-
*/
|
|
1484
|
-
schedule_id?: string;
|
|
1485
|
-
}
|
|
1486
1383
|
export type DiffAdded = FilterConditionOnEvent;
|
|
1487
1384
|
export type DiffDeleted = FilterConditionOnEvent;
|
|
1488
1385
|
export type DiffUpdated = FilterConditionOnEvent;
|
|
@@ -3613,7 +3510,6 @@ export type ActionSchedule = Components.Schemas.ActionSchedule;
|
|
|
3613
3510
|
export type ActionScheduleSource = Components.Schemas.ActionScheduleSource;
|
|
3614
3511
|
export type ActivityId = Components.Schemas.ActivityId;
|
|
3615
3512
|
export type ActivityTrigger = Components.Schemas.ActivityTrigger;
|
|
3616
|
-
export type AdvancedCustomActionConfig = Components.Schemas.AdvancedCustomActionConfig;
|
|
3617
3513
|
export type AnyAction = Components.Schemas.AnyAction;
|
|
3618
3514
|
export type AnyActionConfig = Components.Schemas.AnyActionConfig;
|
|
3619
3515
|
export type AnyTrigger = Components.Schemas.AnyTrigger;
|
|
@@ -3631,8 +3527,6 @@ export type AutomationExecutionId = Components.Schemas.AutomationExecutionId;
|
|
|
3631
3527
|
export type AutomationFlow = Components.Schemas.AutomationFlow;
|
|
3632
3528
|
export type AutomationFlowId = Components.Schemas.AutomationFlowId;
|
|
3633
3529
|
export type AutomationTrigger = Components.Schemas.AutomationTrigger;
|
|
3634
|
-
export type BaseCustomActionConfig = Components.Schemas.BaseCustomActionConfig;
|
|
3635
|
-
export type BasicCustomActionConfig = Components.Schemas.BasicCustomActionConfig;
|
|
3636
3530
|
export type BulkTriggerJob = Components.Schemas.BulkTriggerJob;
|
|
3637
3531
|
export type BulkTriggerRequest = Components.Schemas.BulkTriggerRequest;
|
|
3638
3532
|
export type CartCheckoutAction = Components.Schemas.CartCheckoutAction;
|
|
@@ -3645,7 +3539,6 @@ export type CreateDocumentAction = Components.Schemas.CreateDocumentAction;
|
|
|
3645
3539
|
export type CreateDocumentActionConfig = Components.Schemas.CreateDocumentActionConfig;
|
|
3646
3540
|
export type CreateDocumentConfig = Components.Schemas.CreateDocumentConfig;
|
|
3647
3541
|
export type CustomAction = Components.Schemas.CustomAction;
|
|
3648
|
-
export type CustomActionConfig = Components.Schemas.CustomActionConfig;
|
|
3649
3542
|
export type DiffAdded = Components.Schemas.DiffAdded;
|
|
3650
3543
|
export type DiffDeleted = Components.Schemas.DiffDeleted;
|
|
3651
3544
|
export type DiffUpdated = Components.Schemas.DiffUpdated;
|
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": [
|
|
@@ -877,7 +881,7 @@
|
|
|
877
881
|
"$ref": "#/components/schemas/CartCheckoutActionConfig"
|
|
878
882
|
},
|
|
879
883
|
{
|
|
880
|
-
"$ref": "#/components/schemas/
|
|
884
|
+
"$ref": "#/components/schemas/CustomAction"
|
|
881
885
|
},
|
|
882
886
|
{
|
|
883
887
|
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
@@ -2008,33 +2012,10 @@
|
|
|
2008
2012
|
}
|
|
2009
2013
|
]
|
|
2010
2014
|
},
|
|
2011
|
-
"
|
|
2012
|
-
"type": "object",
|
|
2013
|
-
"properties": {
|
|
2014
|
-
"name": {
|
|
2015
|
-
"type": "string",
|
|
2016
|
-
"description": "Name of the custom action"
|
|
2017
|
-
},
|
|
2018
|
-
"description": {
|
|
2019
|
-
"type": "string",
|
|
2020
|
-
"description": "Description of the custom action"
|
|
2021
|
-
},
|
|
2022
|
-
"app_id": {
|
|
2023
|
-
"type": "string",
|
|
2024
|
-
"description": "The ID of the app to fetch configuration from the app API",
|
|
2025
|
-
"example": "c451c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2026
|
-
},
|
|
2027
|
-
"component_id": {
|
|
2028
|
-
"type": "string",
|
|
2029
|
-
"description": "The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component",
|
|
2030
|
-
"example": "2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2031
|
-
}
|
|
2032
|
-
}
|
|
2033
|
-
},
|
|
2034
|
-
"BasicCustomActionConfig": {
|
|
2015
|
+
"CustomAction": {
|
|
2035
2016
|
"allOf": [
|
|
2036
2017
|
{
|
|
2037
|
-
"$ref": "#/components/schemas/
|
|
2018
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2038
2019
|
},
|
|
2039
2020
|
{
|
|
2040
2021
|
"type": "object",
|
|
@@ -2042,121 +2023,31 @@
|
|
|
2042
2023
|
"type": {
|
|
2043
2024
|
"type": "string",
|
|
2044
2025
|
"enum": [
|
|
2045
|
-
"
|
|
2026
|
+
"custom-action"
|
|
2046
2027
|
]
|
|
2047
2028
|
},
|
|
2048
|
-
"
|
|
2029
|
+
"config": {
|
|
2049
2030
|
"type": "object",
|
|
2050
2031
|
"properties": {
|
|
2051
|
-
"
|
|
2032
|
+
"name": {
|
|
2052
2033
|
"type": "string",
|
|
2053
|
-
"description": "
|
|
2054
|
-
|
|
2055
|
-
"headers": {
|
|
2056
|
-
"type": "object",
|
|
2057
|
-
"additionalProperties": true
|
|
2034
|
+
"description": "The name of the custom action",
|
|
2035
|
+
"example": "Credit Check"
|
|
2058
2036
|
},
|
|
2059
|
-
"
|
|
2037
|
+
"description": {
|
|
2060
2038
|
"type": "string",
|
|
2061
|
-
"description": "
|
|
2062
|
-
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
2065
|
-
},
|
|
2066
|
-
"required": [
|
|
2067
|
-
"type"
|
|
2068
|
-
]
|
|
2069
|
-
}
|
|
2070
|
-
]
|
|
2071
|
-
},
|
|
2072
|
-
"AdvancedCustomActionConfig": {
|
|
2073
|
-
"allOf": [
|
|
2074
|
-
{
|
|
2075
|
-
"$ref": "#/components/schemas/BaseCustomActionConfig"
|
|
2076
|
-
},
|
|
2077
|
-
{
|
|
2078
|
-
"type": "object",
|
|
2079
|
-
"properties": {
|
|
2080
|
-
"type": {
|
|
2081
|
-
"type": "string",
|
|
2082
|
-
"enum": [
|
|
2083
|
-
"advanced"
|
|
2084
|
-
]
|
|
2085
|
-
},
|
|
2086
|
-
"advanced_settings": {
|
|
2087
|
-
"type": "object",
|
|
2088
|
-
"additionalProperties": true
|
|
2089
|
-
}
|
|
2090
|
-
},
|
|
2091
|
-
"required": [
|
|
2092
|
-
"type"
|
|
2093
|
-
]
|
|
2094
|
-
}
|
|
2095
|
-
]
|
|
2096
|
-
},
|
|
2097
|
-
"CustomActionConfig": {
|
|
2098
|
-
"allOf": [
|
|
2099
|
-
{
|
|
2100
|
-
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2101
|
-
},
|
|
2102
|
-
{
|
|
2103
|
-
"type": "object",
|
|
2104
|
-
"properties": {
|
|
2105
|
-
"type": {
|
|
2106
|
-
"type": "string",
|
|
2107
|
-
"enum": [
|
|
2108
|
-
"custom-action"
|
|
2109
|
-
]
|
|
2110
|
-
},
|
|
2111
|
-
"config": {
|
|
2112
|
-
"oneOf": [
|
|
2113
|
-
{
|
|
2114
|
-
"$ref": "#/components/schemas/BasicCustomActionConfig"
|
|
2039
|
+
"description": "The description of the custom action",
|
|
2040
|
+
"example": "Check if the customer has a credit limit"
|
|
2115
2041
|
},
|
|
2116
|
-
{
|
|
2117
|
-
"
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
"discriminator": {
|
|
2121
|
-
"propertyName": "type",
|
|
2122
|
-
"mapping": {
|
|
2123
|
-
"basic": "#/components/schemas/BasicCustomActionConfig",
|
|
2124
|
-
"advanced": "#/components/schemas/AdvancedCustomActionConfig"
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
]
|
|
2131
|
-
},
|
|
2132
|
-
"CustomAction": {
|
|
2133
|
-
"allOf": [
|
|
2134
|
-
{
|
|
2135
|
-
"$ref": "#/components/schemas/AutomationAction"
|
|
2136
|
-
},
|
|
2137
|
-
{
|
|
2138
|
-
"type": "object",
|
|
2139
|
-
"properties": {
|
|
2140
|
-
"type": {
|
|
2141
|
-
"type": "string",
|
|
2142
|
-
"enum": [
|
|
2143
|
-
"custom-action"
|
|
2144
|
-
]
|
|
2145
|
-
},
|
|
2146
|
-
"config": {
|
|
2147
|
-
"oneOf": [
|
|
2148
|
-
{
|
|
2149
|
-
"$ref": "#/components/schemas/BasicCustomActionConfig"
|
|
2042
|
+
"app_id": {
|
|
2043
|
+
"type": "string",
|
|
2044
|
+
"description": "The ID of the app to fetch configuration from the app API",
|
|
2045
|
+
"example": "c451c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2150
2046
|
},
|
|
2151
|
-
{
|
|
2152
|
-
"
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
"discriminator": {
|
|
2156
|
-
"propertyName": "type",
|
|
2157
|
-
"mapping": {
|
|
2158
|
-
"basic": "#/components/schemas/BasicCustomActionConfig",
|
|
2159
|
-
"advanced": "#/components/schemas/AdvancedCustomActionConfig"
|
|
2047
|
+
"component_id": {
|
|
2048
|
+
"type": "string",
|
|
2049
|
+
"description": "The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component",
|
|
2050
|
+
"example": "2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2160
2051
|
}
|
|
2161
2052
|
}
|
|
2162
2053
|
}
|