@epilot/automation-client 2.16.5-rc.2 → 2.17.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/definition.js +1 -1
- package/dist/openapi-runtime.json +1 -1
- package/dist/openapi.d.ts +123 -353
- package/dist/openapi.json +73 -307
- package/package.json +2 -2
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
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})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ declare namespace Components {
|
|
|
126
126
|
types?: (("CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal" | "PortalUserResetPassword" | "PortalUserResetForgotPassword" | "SelfAssignmentFromPortal") | string)[];
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
export type AnyAction = MapEntityAction | TriggerWorkflowAction |
|
|
129
|
+
export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerShareEntityAction | TriggerWebhookAction | CreateDocumentAction | SendEmailAction | /* Creates an order entity with prices from journey */ CartCheckoutAction | CustomAction | AutomationAction;
|
|
130
130
|
export type AnyActionConfig = /**
|
|
131
131
|
* example:
|
|
132
132
|
* {
|
|
@@ -281,7 +281,7 @@ declare namespace Components {
|
|
|
281
281
|
* }
|
|
282
282
|
* }
|
|
283
283
|
*/
|
|
284
|
-
TriggerWorkflowActionConfig | /**
|
|
284
|
+
TriggerWorkflowActionConfig | TriggerShareEntityActionConfig | /**
|
|
285
285
|
* example:
|
|
286
286
|
* {
|
|
287
287
|
* "id": "2520gja-2sgmsaga-0asg-822jgal",
|
|
@@ -297,21 +297,6 @@ declare namespace Components {
|
|
|
297
297
|
* }
|
|
298
298
|
*/
|
|
299
299
|
TriggerWebhookActionConfig | /**
|
|
300
|
-
* example:
|
|
301
|
-
* {
|
|
302
|
-
* "id": "2520gja-2sgmsaga-0asg-822jgal",
|
|
303
|
-
* "name": "ERP",
|
|
304
|
-
* "type": "erp",
|
|
305
|
-
* "config": {
|
|
306
|
-
* "entity_sources": [
|
|
307
|
-
* "contact",
|
|
308
|
-
* "account"
|
|
309
|
-
* ],
|
|
310
|
-
* "target_webhook_id": "25jg9ag2ga"
|
|
311
|
-
* }
|
|
312
|
-
* }
|
|
313
|
-
*/
|
|
314
|
-
ERPActionConfig | /**
|
|
315
300
|
* example:
|
|
316
301
|
* {
|
|
317
302
|
* "id": "08g988-ojt2jtaga-292h-8978gsaga",
|
|
@@ -960,46 +945,15 @@ declare namespace Components {
|
|
|
960
945
|
*/
|
|
961
946
|
execution_summary: /* Execution item for bulk trigger automation. It maps each entity to its automation execution id & status */ ExecItem[];
|
|
962
947
|
}
|
|
963
|
-
export
|
|
964
|
-
flow_id: /**
|
|
965
|
-
* example:
|
|
966
|
-
* 7791b04a-16d2-44a2-9af9-2d59c25c512f
|
|
967
|
-
*/
|
|
968
|
-
AutomationFlowId;
|
|
969
|
-
entities_refs: EntityRef[];
|
|
970
|
-
} | {
|
|
971
|
-
flow_id: /**
|
|
972
|
-
* example:
|
|
973
|
-
* 7791b04a-16d2-44a2-9af9-2d59c25c512f
|
|
974
|
-
*/
|
|
975
|
-
AutomationFlowId;
|
|
976
|
-
entities_query: string;
|
|
977
|
-
} | {
|
|
948
|
+
export interface BulkTriggerRequest {
|
|
978
949
|
flow_id: /**
|
|
979
950
|
* example:
|
|
980
951
|
* 7791b04a-16d2-44a2-9af9-2d59c25c512f
|
|
981
952
|
*/
|
|
982
953
|
AutomationFlowId;
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
* [
|
|
987
|
-
* {
|
|
988
|
-
* "term": {
|
|
989
|
-
* "_schema": "contact"
|
|
990
|
-
* }
|
|
991
|
-
* },
|
|
992
|
-
* {
|
|
993
|
-
* "terms": {
|
|
994
|
-
* "status": [
|
|
995
|
-
* "active"
|
|
996
|
-
* ]
|
|
997
|
-
* }
|
|
998
|
-
* }
|
|
999
|
-
* ]
|
|
1000
|
-
*/
|
|
1001
|
-
EntitySearchFilter;
|
|
1002
|
-
};
|
|
954
|
+
entities_refs?: EntityRef[];
|
|
955
|
+
entities_query?: string;
|
|
956
|
+
}
|
|
1003
957
|
/**
|
|
1004
958
|
* Creates an order entity with prices from journey
|
|
1005
959
|
*/
|
|
@@ -1429,139 +1383,6 @@ declare namespace Components {
|
|
|
1429
1383
|
export type DiffAdded = FilterConditionOnEvent;
|
|
1430
1384
|
export type DiffDeleted = FilterConditionOnEvent;
|
|
1431
1385
|
export type DiffUpdated = FilterConditionOnEvent;
|
|
1432
|
-
export interface ERPAction {
|
|
1433
|
-
id?: /**
|
|
1434
|
-
* example:
|
|
1435
|
-
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
1436
|
-
*/
|
|
1437
|
-
AutomationActionId;
|
|
1438
|
-
flow_action_id?: /**
|
|
1439
|
-
* example:
|
|
1440
|
-
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
1441
|
-
*/
|
|
1442
|
-
AutomationActionId;
|
|
1443
|
-
name?: string;
|
|
1444
|
-
type?: "trigger-webhook";
|
|
1445
|
-
config?: ERPConfig;
|
|
1446
|
-
/**
|
|
1447
|
-
* Whether to stop execution in a failed state if this action fails
|
|
1448
|
-
*/
|
|
1449
|
-
allow_failure?: boolean;
|
|
1450
|
-
/**
|
|
1451
|
-
* Flag indicating whether the action was created automatically or manually
|
|
1452
|
-
*/
|
|
1453
|
-
created_automatically?: boolean;
|
|
1454
|
-
/**
|
|
1455
|
-
* Flag indicating whether the same action can be in bulk in a single execution. e.g; send-email / map-entity
|
|
1456
|
-
*/
|
|
1457
|
-
is_bulk_action?: boolean;
|
|
1458
|
-
reason?: {
|
|
1459
|
-
/**
|
|
1460
|
-
* Why the action has to be skipped/failed
|
|
1461
|
-
* example:
|
|
1462
|
-
* There are no registered portal users for the given emails, hence skipping the action
|
|
1463
|
-
*/
|
|
1464
|
-
message?: string;
|
|
1465
|
-
/**
|
|
1466
|
-
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1467
|
-
*/
|
|
1468
|
-
payload?: {
|
|
1469
|
-
[name: string]: any;
|
|
1470
|
-
};
|
|
1471
|
-
};
|
|
1472
|
-
/**
|
|
1473
|
-
* Condition Id to be checked before executing the action
|
|
1474
|
-
*/
|
|
1475
|
-
condition_id?: string;
|
|
1476
|
-
/**
|
|
1477
|
-
* Schedule Id which indicates the schedule of the action
|
|
1478
|
-
*/
|
|
1479
|
-
schedule_id?: string;
|
|
1480
|
-
execution_status?: ExecutionStatus;
|
|
1481
|
-
started_at?: string;
|
|
1482
|
-
updated_at?: string;
|
|
1483
|
-
/**
|
|
1484
|
-
* example:
|
|
1485
|
-
* {}
|
|
1486
|
-
*/
|
|
1487
|
-
outputs?: {
|
|
1488
|
-
[name: string]: any;
|
|
1489
|
-
};
|
|
1490
|
-
error_output?: ErrorOutput;
|
|
1491
|
-
retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
|
|
1492
|
-
}
|
|
1493
|
-
/**
|
|
1494
|
-
* example:
|
|
1495
|
-
* {
|
|
1496
|
-
* "id": "2520gja-2sgmsaga-0asg-822jgal",
|
|
1497
|
-
* "name": "ERP",
|
|
1498
|
-
* "type": "erp",
|
|
1499
|
-
* "config": {
|
|
1500
|
-
* "entity_sources": [
|
|
1501
|
-
* "contact",
|
|
1502
|
-
* "account"
|
|
1503
|
-
* ],
|
|
1504
|
-
* "target_webhook_id": "25jg9ag2ga"
|
|
1505
|
-
* }
|
|
1506
|
-
* }
|
|
1507
|
-
*/
|
|
1508
|
-
export interface ERPActionConfig {
|
|
1509
|
-
id?: /**
|
|
1510
|
-
* example:
|
|
1511
|
-
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
1512
|
-
*/
|
|
1513
|
-
AutomationActionId;
|
|
1514
|
-
flow_action_id?: /**
|
|
1515
|
-
* example:
|
|
1516
|
-
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
1517
|
-
*/
|
|
1518
|
-
AutomationActionId;
|
|
1519
|
-
name?: string;
|
|
1520
|
-
type?: "erp";
|
|
1521
|
-
config?: ERPConfig;
|
|
1522
|
-
/**
|
|
1523
|
-
* Whether to stop execution in a failed state if this action fails
|
|
1524
|
-
*/
|
|
1525
|
-
allow_failure?: boolean;
|
|
1526
|
-
/**
|
|
1527
|
-
* Flag indicating whether the action was created automatically or manually
|
|
1528
|
-
*/
|
|
1529
|
-
created_automatically?: boolean;
|
|
1530
|
-
/**
|
|
1531
|
-
* Flag indicating whether the same action can be in bulk in a single execution. e.g; send-email / map-entity
|
|
1532
|
-
*/
|
|
1533
|
-
is_bulk_action?: boolean;
|
|
1534
|
-
reason?: {
|
|
1535
|
-
/**
|
|
1536
|
-
* Why the action has to be skipped/failed
|
|
1537
|
-
* example:
|
|
1538
|
-
* There are no registered portal users for the given emails, hence skipping the action
|
|
1539
|
-
*/
|
|
1540
|
-
message?: string;
|
|
1541
|
-
/**
|
|
1542
|
-
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1543
|
-
*/
|
|
1544
|
-
payload?: {
|
|
1545
|
-
[name: string]: any;
|
|
1546
|
-
};
|
|
1547
|
-
};
|
|
1548
|
-
/**
|
|
1549
|
-
* Condition Id to be checked before executing the action
|
|
1550
|
-
*/
|
|
1551
|
-
condition_id?: string;
|
|
1552
|
-
/**
|
|
1553
|
-
* Schedule Id which indicates the schedule of the action
|
|
1554
|
-
*/
|
|
1555
|
-
schedule_id?: string;
|
|
1556
|
-
}
|
|
1557
|
-
export interface ERPConfig {
|
|
1558
|
-
entity_sources?: string[];
|
|
1559
|
-
target_webhook_id?: string;
|
|
1560
|
-
/**
|
|
1561
|
-
* Whether to wait for the request to finish before continuing automation execution
|
|
1562
|
-
*/
|
|
1563
|
-
sync?: boolean;
|
|
1564
|
-
}
|
|
1565
1386
|
/**
|
|
1566
1387
|
* example:
|
|
1567
1388
|
* e3d3ebac-baab-4395-abf4-50b5bf1f8b74
|
|
@@ -1597,7 +1418,7 @@ declare namespace Components {
|
|
|
1597
1418
|
schema?: string;
|
|
1598
1419
|
};
|
|
1599
1420
|
}
|
|
1600
|
-
export type EntityOperation = "createEntity" | "updateEntity" | "deleteEntity"
|
|
1421
|
+
export type EntityOperation = "createEntity" | "updateEntity" | "deleteEntity";
|
|
1601
1422
|
/**
|
|
1602
1423
|
* - If provides filter_config, executes an automation based on the filtered configuration when an entity event occurs.
|
|
1603
1424
|
* - The conditions on a filter follows the event bridge patterns - `https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html`
|
|
@@ -1811,166 +1632,6 @@ declare namespace Components {
|
|
|
1811
1632
|
EntityId;
|
|
1812
1633
|
entity_schema: string;
|
|
1813
1634
|
}
|
|
1814
|
-
/**
|
|
1815
|
-
* A subset of simplified Elasticsearch query clauses. The default operator is a logical AND. Use nested $and, $or, $not to combine filters using different logical operators.
|
|
1816
|
-
* example:
|
|
1817
|
-
* [
|
|
1818
|
-
* {
|
|
1819
|
-
* "term": {
|
|
1820
|
-
* "_schema": "contact"
|
|
1821
|
-
* }
|
|
1822
|
-
* },
|
|
1823
|
-
* {
|
|
1824
|
-
* "terms": {
|
|
1825
|
-
* "status": [
|
|
1826
|
-
* "active"
|
|
1827
|
-
* ]
|
|
1828
|
-
* }
|
|
1829
|
-
* }
|
|
1830
|
-
* ]
|
|
1831
|
-
*/
|
|
1832
|
-
export type EntitySearchFilter = {
|
|
1833
|
-
/**
|
|
1834
|
-
* Returns documents that contain an exact term in a provided field.
|
|
1835
|
-
*
|
|
1836
|
-
* To return a document, the query term must exactly match the queried field's value, including whitespace and capitalization.
|
|
1837
|
-
*
|
|
1838
|
-
* You likely DO NOT want to use this filter on text fields and want to target its .keyword instead.
|
|
1839
|
-
*
|
|
1840
|
-
* example:
|
|
1841
|
-
* {
|
|
1842
|
-
* "_schema": "contact"
|
|
1843
|
-
* }
|
|
1844
|
-
*/
|
|
1845
|
-
term?: {
|
|
1846
|
-
[name: string]: /* A filter field value. */ EntitySearchFilterValue;
|
|
1847
|
-
};
|
|
1848
|
-
/**
|
|
1849
|
-
* Returns documents that contain one of the exact terms in a provided field. See term filter for more info.
|
|
1850
|
-
* example:
|
|
1851
|
-
* {
|
|
1852
|
-
* "status": [
|
|
1853
|
-
* "active"
|
|
1854
|
-
* ]
|
|
1855
|
-
* }
|
|
1856
|
-
*/
|
|
1857
|
-
terms?: {
|
|
1858
|
-
[name: string]: /* A filter field value. */ EntitySearchFilterValue[];
|
|
1859
|
-
};
|
|
1860
|
-
/**
|
|
1861
|
-
* Returns documents based on their IDs.
|
|
1862
|
-
* example:
|
|
1863
|
-
* {
|
|
1864
|
-
* "values": [
|
|
1865
|
-
* "550e8400-e29b-41d4-a716-446655440000"
|
|
1866
|
-
* ]
|
|
1867
|
-
* }
|
|
1868
|
-
*/
|
|
1869
|
-
ids?: {
|
|
1870
|
-
values?: string[];
|
|
1871
|
-
};
|
|
1872
|
-
/**
|
|
1873
|
-
* Returns documents with fields that have terms within a certain range.
|
|
1874
|
-
* example:
|
|
1875
|
-
* {
|
|
1876
|
-
* "_created_at": {
|
|
1877
|
-
* "gte": "2021-01-01T00:00:00.000Z",
|
|
1878
|
-
* "lte": "2021-01-31T23:59:59.999Z"
|
|
1879
|
-
* }
|
|
1880
|
-
* }
|
|
1881
|
-
*/
|
|
1882
|
-
range?: {
|
|
1883
|
-
[name: string]: {
|
|
1884
|
-
gt?: /* A filter field value. */ EntitySearchFilterValue;
|
|
1885
|
-
gte?: /* A filter field value. */ EntitySearchFilterValue;
|
|
1886
|
-
lt?: /* A filter field value. */ EntitySearchFilterValue;
|
|
1887
|
-
lte?: /* A filter field value. */ EntitySearchFilterValue;
|
|
1888
|
-
/**
|
|
1889
|
-
* The date format used to parse date values.
|
|
1890
|
-
*/
|
|
1891
|
-
format?: string;
|
|
1892
|
-
/**
|
|
1893
|
-
* Indicates how the range query matches values for range fields.
|
|
1894
|
-
*/
|
|
1895
|
-
relation?: "INTERSECTS" | "CONTAINS" | "WITHIN";
|
|
1896
|
-
/**
|
|
1897
|
-
* Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC.
|
|
1898
|
-
*/
|
|
1899
|
-
time_zone?: string;
|
|
1900
|
-
};
|
|
1901
|
-
};
|
|
1902
|
-
/**
|
|
1903
|
-
* Returns documents that have a value in the specified field.
|
|
1904
|
-
* example:
|
|
1905
|
-
* {
|
|
1906
|
-
* "field": "_tags"
|
|
1907
|
-
* }
|
|
1908
|
-
*/
|
|
1909
|
-
exists?: {
|
|
1910
|
-
field: string;
|
|
1911
|
-
};
|
|
1912
|
-
$and?: /**
|
|
1913
|
-
* A subset of simplified Elasticsearch query clauses. The default operator is a logical AND. Use nested $and, $or, $not to combine filters using different logical operators.
|
|
1914
|
-
* example:
|
|
1915
|
-
* [
|
|
1916
|
-
* {
|
|
1917
|
-
* "term": {
|
|
1918
|
-
* "_schema": "contact"
|
|
1919
|
-
* }
|
|
1920
|
-
* },
|
|
1921
|
-
* {
|
|
1922
|
-
* "terms": {
|
|
1923
|
-
* "status": [
|
|
1924
|
-
* "active"
|
|
1925
|
-
* ]
|
|
1926
|
-
* }
|
|
1927
|
-
* }
|
|
1928
|
-
* ]
|
|
1929
|
-
*/
|
|
1930
|
-
EntitySearchFilter;
|
|
1931
|
-
$or?: /**
|
|
1932
|
-
* A subset of simplified Elasticsearch query clauses. The default operator is a logical AND. Use nested $and, $or, $not to combine filters using different logical operators.
|
|
1933
|
-
* example:
|
|
1934
|
-
* [
|
|
1935
|
-
* {
|
|
1936
|
-
* "term": {
|
|
1937
|
-
* "_schema": "contact"
|
|
1938
|
-
* }
|
|
1939
|
-
* },
|
|
1940
|
-
* {
|
|
1941
|
-
* "terms": {
|
|
1942
|
-
* "status": [
|
|
1943
|
-
* "active"
|
|
1944
|
-
* ]
|
|
1945
|
-
* }
|
|
1946
|
-
* }
|
|
1947
|
-
* ]
|
|
1948
|
-
*/
|
|
1949
|
-
EntitySearchFilter;
|
|
1950
|
-
$not?: /**
|
|
1951
|
-
* A subset of simplified Elasticsearch query clauses. The default operator is a logical AND. Use nested $and, $or, $not to combine filters using different logical operators.
|
|
1952
|
-
* example:
|
|
1953
|
-
* [
|
|
1954
|
-
* {
|
|
1955
|
-
* "term": {
|
|
1956
|
-
* "_schema": "contact"
|
|
1957
|
-
* }
|
|
1958
|
-
* },
|
|
1959
|
-
* {
|
|
1960
|
-
* "terms": {
|
|
1961
|
-
* "status": [
|
|
1962
|
-
* "active"
|
|
1963
|
-
* ]
|
|
1964
|
-
* }
|
|
1965
|
-
* }
|
|
1966
|
-
* ]
|
|
1967
|
-
*/
|
|
1968
|
-
EntitySearchFilter;
|
|
1969
|
-
}[];
|
|
1970
|
-
/**
|
|
1971
|
-
* A filter field value.
|
|
1972
|
-
*/
|
|
1973
|
-
export type EntitySearchFilterValue = /* A filter field value. */ (string | null) | number | boolean;
|
|
1974
1635
|
export interface EqualsIgnoreCaseCondition {
|
|
1975
1636
|
"equals-ignore-case"?: string;
|
|
1976
1637
|
}
|
|
@@ -2815,6 +2476,119 @@ declare namespace Components {
|
|
|
2815
2476
|
EntityId;
|
|
2816
2477
|
caller?: ApiCallerContext;
|
|
2817
2478
|
}
|
|
2479
|
+
export interface TriggerShareEntityAction {
|
|
2480
|
+
id?: /**
|
|
2481
|
+
* example:
|
|
2482
|
+
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
2483
|
+
*/
|
|
2484
|
+
AutomationActionId;
|
|
2485
|
+
flow_action_id?: /**
|
|
2486
|
+
* example:
|
|
2487
|
+
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
2488
|
+
*/
|
|
2489
|
+
AutomationActionId;
|
|
2490
|
+
name?: string;
|
|
2491
|
+
type?: "trigger-share-entity";
|
|
2492
|
+
config?: TriggerShareEntityConfig;
|
|
2493
|
+
/**
|
|
2494
|
+
* Whether to stop execution in a failed state if this action fails
|
|
2495
|
+
*/
|
|
2496
|
+
allow_failure?: boolean;
|
|
2497
|
+
/**
|
|
2498
|
+
* Flag indicating whether the action was created automatically or manually
|
|
2499
|
+
*/
|
|
2500
|
+
created_automatically?: boolean;
|
|
2501
|
+
/**
|
|
2502
|
+
* Flag indicating whether the same action can be in bulk in a single execution. e.g; send-email / map-entity
|
|
2503
|
+
*/
|
|
2504
|
+
is_bulk_action?: boolean;
|
|
2505
|
+
reason?: {
|
|
2506
|
+
/**
|
|
2507
|
+
* Why the action has to be skipped/failed
|
|
2508
|
+
* example:
|
|
2509
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
2510
|
+
*/
|
|
2511
|
+
message?: string;
|
|
2512
|
+
/**
|
|
2513
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
2514
|
+
*/
|
|
2515
|
+
payload?: {
|
|
2516
|
+
[name: string]: any;
|
|
2517
|
+
};
|
|
2518
|
+
};
|
|
2519
|
+
/**
|
|
2520
|
+
* Condition Id to be checked before executing the action
|
|
2521
|
+
*/
|
|
2522
|
+
condition_id?: string;
|
|
2523
|
+
/**
|
|
2524
|
+
* Schedule Id which indicates the schedule of the action
|
|
2525
|
+
*/
|
|
2526
|
+
schedule_id?: string;
|
|
2527
|
+
execution_status?: ExecutionStatus;
|
|
2528
|
+
started_at?: string;
|
|
2529
|
+
updated_at?: string;
|
|
2530
|
+
/**
|
|
2531
|
+
* example:
|
|
2532
|
+
* {}
|
|
2533
|
+
*/
|
|
2534
|
+
outputs?: {
|
|
2535
|
+
[name: string]: any;
|
|
2536
|
+
};
|
|
2537
|
+
error_output?: ErrorOutput;
|
|
2538
|
+
retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
|
|
2539
|
+
}
|
|
2540
|
+
export interface TriggerShareEntityActionConfig {
|
|
2541
|
+
id?: /**
|
|
2542
|
+
* example:
|
|
2543
|
+
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
2544
|
+
*/
|
|
2545
|
+
AutomationActionId;
|
|
2546
|
+
flow_action_id?: /**
|
|
2547
|
+
* example:
|
|
2548
|
+
* 9ec3711b-db63-449c-b894-54d5bb622a8f
|
|
2549
|
+
*/
|
|
2550
|
+
AutomationActionId;
|
|
2551
|
+
name?: string;
|
|
2552
|
+
type?: "trigger-workflow";
|
|
2553
|
+
config?: TriggerShareEntityConfig;
|
|
2554
|
+
/**
|
|
2555
|
+
* Whether to stop execution in a failed state if this action fails
|
|
2556
|
+
*/
|
|
2557
|
+
allow_failure?: boolean;
|
|
2558
|
+
/**
|
|
2559
|
+
* Flag indicating whether the action was created automatically or manually
|
|
2560
|
+
*/
|
|
2561
|
+
created_automatically?: boolean;
|
|
2562
|
+
/**
|
|
2563
|
+
* Flag indicating whether the same action can be in bulk in a single execution. e.g; send-email / map-entity
|
|
2564
|
+
*/
|
|
2565
|
+
is_bulk_action?: boolean;
|
|
2566
|
+
reason?: {
|
|
2567
|
+
/**
|
|
2568
|
+
* Why the action has to be skipped/failed
|
|
2569
|
+
* example:
|
|
2570
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
2571
|
+
*/
|
|
2572
|
+
message?: string;
|
|
2573
|
+
/**
|
|
2574
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
2575
|
+
*/
|
|
2576
|
+
payload?: {
|
|
2577
|
+
[name: string]: any;
|
|
2578
|
+
};
|
|
2579
|
+
};
|
|
2580
|
+
/**
|
|
2581
|
+
* Condition Id to be checked before executing the action
|
|
2582
|
+
*/
|
|
2583
|
+
condition_id?: string;
|
|
2584
|
+
/**
|
|
2585
|
+
* Schedule Id which indicates the schedule of the action
|
|
2586
|
+
*/
|
|
2587
|
+
schedule_id?: string;
|
|
2588
|
+
}
|
|
2589
|
+
export interface TriggerShareEntityConfig {
|
|
2590
|
+
partner_org_ids?: string[];
|
|
2591
|
+
}
|
|
2818
2592
|
export interface TriggerWebhookAction {
|
|
2819
2593
|
id?: /**
|
|
2820
2594
|
* example:
|
|
@@ -3530,7 +3304,6 @@ declare namespace Paths {
|
|
|
3530
3304
|
}
|
|
3531
3305
|
}
|
|
3532
3306
|
|
|
3533
|
-
|
|
3534
3307
|
export interface OperationMethods {
|
|
3535
3308
|
/**
|
|
3536
3309
|
* searchFlows - searchFlows
|
|
@@ -3845,7 +3618,6 @@ export interface PathsDictionary {
|
|
|
3845
3618
|
|
|
3846
3619
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
3847
3620
|
|
|
3848
|
-
|
|
3849
3621
|
export type ActionCondition = Components.Schemas.ActionCondition;
|
|
3850
3622
|
export type ActionSchedule = Components.Schemas.ActionSchedule;
|
|
3851
3623
|
export type ActionScheduleSource = Components.Schemas.ActionScheduleSource;
|
|
@@ -3883,17 +3655,12 @@ export type CustomAction = Components.Schemas.CustomAction;
|
|
|
3883
3655
|
export type DiffAdded = Components.Schemas.DiffAdded;
|
|
3884
3656
|
export type DiffDeleted = Components.Schemas.DiffDeleted;
|
|
3885
3657
|
export type DiffUpdated = Components.Schemas.DiffUpdated;
|
|
3886
|
-
export type ERPAction = Components.Schemas.ERPAction;
|
|
3887
|
-
export type ERPActionConfig = Components.Schemas.ERPActionConfig;
|
|
3888
|
-
export type ERPConfig = Components.Schemas.ERPConfig;
|
|
3889
3658
|
export type EntityId = Components.Schemas.EntityId;
|
|
3890
3659
|
export type EntityItemSnapshot = Components.Schemas.EntityItemSnapshot;
|
|
3891
3660
|
export type EntityManualTrigger = Components.Schemas.EntityManualTrigger;
|
|
3892
3661
|
export type EntityOperation = Components.Schemas.EntityOperation;
|
|
3893
3662
|
export type EntityOperationTrigger = Components.Schemas.EntityOperationTrigger;
|
|
3894
3663
|
export type EntityRef = Components.Schemas.EntityRef;
|
|
3895
|
-
export type EntitySearchFilter = Components.Schemas.EntitySearchFilter;
|
|
3896
|
-
export type EntitySearchFilterValue = Components.Schemas.EntitySearchFilterValue;
|
|
3897
3664
|
export type EqualsIgnoreCaseCondition = Components.Schemas.EqualsIgnoreCaseCondition;
|
|
3898
3665
|
export type ErrorCode = Components.Schemas.ErrorCode;
|
|
3899
3666
|
export type ErrorDetail = Components.Schemas.ErrorDetail;
|
|
@@ -3943,6 +3710,9 @@ export type TriggerCondition = Components.Schemas.TriggerCondition;
|
|
|
3943
3710
|
export type TriggerEventEntityActivity = Components.Schemas.TriggerEventEntityActivity;
|
|
3944
3711
|
export type TriggerEventEntityOperation = Components.Schemas.TriggerEventEntityOperation;
|
|
3945
3712
|
export type TriggerEventManual = Components.Schemas.TriggerEventManual;
|
|
3713
|
+
export type TriggerShareEntityAction = Components.Schemas.TriggerShareEntityAction;
|
|
3714
|
+
export type TriggerShareEntityActionConfig = Components.Schemas.TriggerShareEntityActionConfig;
|
|
3715
|
+
export type TriggerShareEntityConfig = Components.Schemas.TriggerShareEntityConfig;
|
|
3946
3716
|
export type TriggerWebhookAction = Components.Schemas.TriggerWebhookAction;
|
|
3947
3717
|
export type TriggerWebhookActionConfig = Components.Schemas.TriggerWebhookActionConfig;
|
|
3948
3718
|
export type TriggerWebhookConfig = Components.Schemas.TriggerWebhookConfig;
|
package/dist/openapi.json
CHANGED
|
@@ -330,15 +330,9 @@
|
|
|
330
330
|
},
|
|
331
331
|
"example": {
|
|
332
332
|
"flow_id": "8e2e067e-3c63-4b1a-8e02-6150a3d1fd89",
|
|
333
|
-
"
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
"entity_id": "7791b04a-16d2-44a2-9af9-2d59c25c512f"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
"entity_schema": "opportunity",
|
|
340
|
-
"entity_id": "b35a6c51-2a15-4ef1-9623-20db37b0744f"
|
|
341
|
-
}
|
|
333
|
+
"entity_ids": [
|
|
334
|
+
"7791b04a-16d2-44a2-9af9-2d59c25c512f",
|
|
335
|
+
"b35a6c51-2a15-4ef1-9623-20db37b0744f"
|
|
342
336
|
]
|
|
343
337
|
}
|
|
344
338
|
}
|
|
@@ -847,10 +841,10 @@
|
|
|
847
841
|
"$ref": "#/components/schemas/TriggerWorkflowAction"
|
|
848
842
|
},
|
|
849
843
|
{
|
|
850
|
-
"$ref": "#/components/schemas/
|
|
844
|
+
"$ref": "#/components/schemas/TriggerShareEntityAction"
|
|
851
845
|
},
|
|
852
846
|
{
|
|
853
|
-
"$ref": "#/components/schemas/
|
|
847
|
+
"$ref": "#/components/schemas/TriggerWebhookAction"
|
|
854
848
|
},
|
|
855
849
|
{
|
|
856
850
|
"$ref": "#/components/schemas/CreateDocumentAction"
|
|
@@ -878,10 +872,10 @@
|
|
|
878
872
|
"$ref": "#/components/schemas/TriggerWorkflowActionConfig"
|
|
879
873
|
},
|
|
880
874
|
{
|
|
881
|
-
"$ref": "#/components/schemas/
|
|
875
|
+
"$ref": "#/components/schemas/TriggerShareEntityActionConfig"
|
|
882
876
|
},
|
|
883
877
|
{
|
|
884
|
-
"$ref": "#/components/schemas/
|
|
878
|
+
"$ref": "#/components/schemas/TriggerWebhookActionConfig"
|
|
885
879
|
},
|
|
886
880
|
{
|
|
887
881
|
"$ref": "#/components/schemas/CreateDocumentActionConfig"
|
|
@@ -1990,6 +1984,57 @@
|
|
|
1990
1984
|
"value": "test@epilot.cloud"
|
|
1991
1985
|
}
|
|
1992
1986
|
},
|
|
1987
|
+
"TriggerShareEntityActionConfig": {
|
|
1988
|
+
"allOf": [
|
|
1989
|
+
{
|
|
1990
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
"type": "object",
|
|
1994
|
+
"properties": {
|
|
1995
|
+
"type": {
|
|
1996
|
+
"enum": [
|
|
1997
|
+
"trigger-workflow"
|
|
1998
|
+
]
|
|
1999
|
+
},
|
|
2000
|
+
"config": {
|
|
2001
|
+
"$ref": "#/components/schemas/TriggerShareEntityConfig"
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
]
|
|
2006
|
+
},
|
|
2007
|
+
"TriggerShareEntityAction": {
|
|
2008
|
+
"allOf": [
|
|
2009
|
+
{
|
|
2010
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
"type": "object",
|
|
2014
|
+
"properties": {
|
|
2015
|
+
"type": {
|
|
2016
|
+
"enum": [
|
|
2017
|
+
"trigger-share-entity"
|
|
2018
|
+
]
|
|
2019
|
+
},
|
|
2020
|
+
"config": {
|
|
2021
|
+
"$ref": "#/components/schemas/TriggerShareEntityConfig"
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
]
|
|
2026
|
+
},
|
|
2027
|
+
"TriggerShareEntityConfig": {
|
|
2028
|
+
"type": "object",
|
|
2029
|
+
"properties": {
|
|
2030
|
+
"partner_org_ids": {
|
|
2031
|
+
"type": "array",
|
|
2032
|
+
"items": {
|
|
2033
|
+
"type": "string"
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
},
|
|
1993
2038
|
"AssignUsersToStep": {
|
|
1994
2039
|
"type": "object",
|
|
1995
2040
|
"properties": {
|
|
@@ -2138,77 +2183,6 @@
|
|
|
2138
2183
|
}
|
|
2139
2184
|
}
|
|
2140
2185
|
},
|
|
2141
|
-
"ERPActionConfig": {
|
|
2142
|
-
"allOf": [
|
|
2143
|
-
{
|
|
2144
|
-
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2145
|
-
},
|
|
2146
|
-
{
|
|
2147
|
-
"type": "object",
|
|
2148
|
-
"properties": {
|
|
2149
|
-
"type": {
|
|
2150
|
-
"enum": [
|
|
2151
|
-
"erp"
|
|
2152
|
-
]
|
|
2153
|
-
},
|
|
2154
|
-
"config": {
|
|
2155
|
-
"$ref": "#/components/schemas/ERPConfig"
|
|
2156
|
-
}
|
|
2157
|
-
}
|
|
2158
|
-
}
|
|
2159
|
-
],
|
|
2160
|
-
"example": {
|
|
2161
|
-
"id": "2520gja-2sgmsaga-0asg-822jgal",
|
|
2162
|
-
"name": "ERP",
|
|
2163
|
-
"type": "erp",
|
|
2164
|
-
"config": {
|
|
2165
|
-
"entity_sources": [
|
|
2166
|
-
"contact",
|
|
2167
|
-
"account"
|
|
2168
|
-
],
|
|
2169
|
-
"target_webhook_id": "25jg9ag2ga"
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
},
|
|
2173
|
-
"ERPAction": {
|
|
2174
|
-
"allOf": [
|
|
2175
|
-
{
|
|
2176
|
-
"$ref": "#/components/schemas/AutomationAction"
|
|
2177
|
-
},
|
|
2178
|
-
{
|
|
2179
|
-
"type": "object",
|
|
2180
|
-
"properties": {
|
|
2181
|
-
"type": {
|
|
2182
|
-
"enum": [
|
|
2183
|
-
"trigger-webhook"
|
|
2184
|
-
]
|
|
2185
|
-
},
|
|
2186
|
-
"config": {
|
|
2187
|
-
"$ref": "#/components/schemas/ERPConfig"
|
|
2188
|
-
}
|
|
2189
|
-
}
|
|
2190
|
-
}
|
|
2191
|
-
]
|
|
2192
|
-
},
|
|
2193
|
-
"ERPConfig": {
|
|
2194
|
-
"type": "object",
|
|
2195
|
-
"properties": {
|
|
2196
|
-
"entity_sources": {
|
|
2197
|
-
"type": "array",
|
|
2198
|
-
"items": {
|
|
2199
|
-
"type": "string"
|
|
2200
|
-
}
|
|
2201
|
-
},
|
|
2202
|
-
"target_webhook_id": {
|
|
2203
|
-
"type": "string"
|
|
2204
|
-
},
|
|
2205
|
-
"sync": {
|
|
2206
|
-
"type": "boolean",
|
|
2207
|
-
"description": "Whether to wait for the request to finish before continuing automation execution",
|
|
2208
|
-
"default": false
|
|
2209
|
-
}
|
|
2210
|
-
}
|
|
2211
|
-
},
|
|
2212
2186
|
"ConditionStatement": {
|
|
2213
2187
|
"type": "object",
|
|
2214
2188
|
"properties": {
|
|
@@ -2720,58 +2694,23 @@
|
|
|
2720
2694
|
]
|
|
2721
2695
|
},
|
|
2722
2696
|
"BulkTriggerRequest": {
|
|
2723
|
-
"
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
"
|
|
2727
|
-
"flow_id": {
|
|
2728
|
-
"$ref": "#/components/schemas/AutomationFlowId"
|
|
2729
|
-
},
|
|
2730
|
-
"entities_refs": {
|
|
2731
|
-
"type": "array",
|
|
2732
|
-
"items": {
|
|
2733
|
-
"$ref": "#/components/schemas/EntityRef"
|
|
2734
|
-
}
|
|
2735
|
-
}
|
|
2736
|
-
},
|
|
2737
|
-
"required": [
|
|
2738
|
-
"flow_id",
|
|
2739
|
-
"entities_refs"
|
|
2740
|
-
],
|
|
2741
|
-
"additionalProperties": false
|
|
2697
|
+
"type": "object",
|
|
2698
|
+
"properties": {
|
|
2699
|
+
"flow_id": {
|
|
2700
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
2742
2701
|
},
|
|
2743
|
-
{
|
|
2744
|
-
"type": "
|
|
2745
|
-
"
|
|
2746
|
-
"
|
|
2747
|
-
|
|
2748
|
-
},
|
|
2749
|
-
"entities_query": {
|
|
2750
|
-
"type": "string"
|
|
2751
|
-
}
|
|
2752
|
-
},
|
|
2753
|
-
"required": [
|
|
2754
|
-
"flow_id",
|
|
2755
|
-
"entities_query"
|
|
2756
|
-
],
|
|
2757
|
-
"additionalProperties": false
|
|
2702
|
+
"entities_refs": {
|
|
2703
|
+
"type": "array",
|
|
2704
|
+
"items": {
|
|
2705
|
+
"$ref": "#/components/schemas/EntityRef"
|
|
2706
|
+
}
|
|
2758
2707
|
},
|
|
2759
|
-
{
|
|
2760
|
-
"type": "
|
|
2761
|
-
"properties": {
|
|
2762
|
-
"flow_id": {
|
|
2763
|
-
"$ref": "#/components/schemas/AutomationFlowId"
|
|
2764
|
-
},
|
|
2765
|
-
"entities_filter": {
|
|
2766
|
-
"$ref": "#/components/schemas/EntitySearchFilter"
|
|
2767
|
-
}
|
|
2768
|
-
},
|
|
2769
|
-
"required": [
|
|
2770
|
-
"flow_id",
|
|
2771
|
-
"entities_filter"
|
|
2772
|
-
],
|
|
2773
|
-
"additionalProperties": false
|
|
2708
|
+
"entities_query": {
|
|
2709
|
+
"type": "string"
|
|
2774
2710
|
}
|
|
2711
|
+
},
|
|
2712
|
+
"required": [
|
|
2713
|
+
"flow_id"
|
|
2775
2714
|
]
|
|
2776
2715
|
},
|
|
2777
2716
|
"EntityRef": {
|
|
@@ -3288,180 +3227,7 @@
|
|
|
3288
3227
|
"enum": [
|
|
3289
3228
|
"createEntity",
|
|
3290
3229
|
"updateEntity",
|
|
3291
|
-
"deleteEntity"
|
|
3292
|
-
"softDeleteEntity",
|
|
3293
|
-
"restoreEntity"
|
|
3294
|
-
]
|
|
3295
|
-
},
|
|
3296
|
-
"EntitySearchFilter": {
|
|
3297
|
-
"type": "array",
|
|
3298
|
-
"description": "A subset of simplified Elasticsearch query clauses. The default operator is a logical AND. Use nested $and, $or, $not to combine filters using different logical operators.",
|
|
3299
|
-
"items": {
|
|
3300
|
-
"type": "object",
|
|
3301
|
-
"minProperties": 1,
|
|
3302
|
-
"maxProperties": 1,
|
|
3303
|
-
"properties": {
|
|
3304
|
-
"term": {
|
|
3305
|
-
"description": "Returns documents that contain an exact term in a provided field.\n\nTo return a document, the query term must exactly match the queried field's value, including whitespace and capitalization.\n\nYou likely DO NOT want to use this filter on text fields and want to target its .keyword instead.\n",
|
|
3306
|
-
"externalDocs": {
|
|
3307
|
-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html"
|
|
3308
|
-
},
|
|
3309
|
-
"type": "object",
|
|
3310
|
-
"minProperties": 1,
|
|
3311
|
-
"maxProperties": 1,
|
|
3312
|
-
"additionalProperties": {
|
|
3313
|
-
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
3314
|
-
},
|
|
3315
|
-
"example": {
|
|
3316
|
-
"_schema": "contact"
|
|
3317
|
-
}
|
|
3318
|
-
},
|
|
3319
|
-
"terms": {
|
|
3320
|
-
"description": "Returns documents that contain one of the exact terms in a provided field. See term filter for more info.",
|
|
3321
|
-
"externalDocs": {
|
|
3322
|
-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html"
|
|
3323
|
-
},
|
|
3324
|
-
"type": "object",
|
|
3325
|
-
"minProperties": 1,
|
|
3326
|
-
"maxProperties": 1,
|
|
3327
|
-
"additionalProperties": {
|
|
3328
|
-
"type": "array",
|
|
3329
|
-
"items": {
|
|
3330
|
-
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
3331
|
-
}
|
|
3332
|
-
},
|
|
3333
|
-
"example": {
|
|
3334
|
-
"status": [
|
|
3335
|
-
"active"
|
|
3336
|
-
]
|
|
3337
|
-
}
|
|
3338
|
-
},
|
|
3339
|
-
"ids": {
|
|
3340
|
-
"description": "Returns documents based on their IDs.",
|
|
3341
|
-
"externalDocs": {
|
|
3342
|
-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ids-query.html"
|
|
3343
|
-
},
|
|
3344
|
-
"type": "object",
|
|
3345
|
-
"properties": {
|
|
3346
|
-
"values": {
|
|
3347
|
-
"type": "array",
|
|
3348
|
-
"items": {
|
|
3349
|
-
"type": "string"
|
|
3350
|
-
}
|
|
3351
|
-
}
|
|
3352
|
-
},
|
|
3353
|
-
"example": {
|
|
3354
|
-
"values": [
|
|
3355
|
-
"550e8400-e29b-41d4-a716-446655440000"
|
|
3356
|
-
]
|
|
3357
|
-
}
|
|
3358
|
-
},
|
|
3359
|
-
"range": {
|
|
3360
|
-
"description": "Returns documents with fields that have terms within a certain range.",
|
|
3361
|
-
"externalDocs": {
|
|
3362
|
-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html"
|
|
3363
|
-
},
|
|
3364
|
-
"type": "object",
|
|
3365
|
-
"minProperties": 1,
|
|
3366
|
-
"maxProperties": 1,
|
|
3367
|
-
"additionalProperties": {
|
|
3368
|
-
"type": "object",
|
|
3369
|
-
"properties": {
|
|
3370
|
-
"gt": {
|
|
3371
|
-
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
3372
|
-
},
|
|
3373
|
-
"gte": {
|
|
3374
|
-
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
3375
|
-
},
|
|
3376
|
-
"lt": {
|
|
3377
|
-
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
3378
|
-
},
|
|
3379
|
-
"lte": {
|
|
3380
|
-
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
3381
|
-
},
|
|
3382
|
-
"format": {
|
|
3383
|
-
"type": "string",
|
|
3384
|
-
"description": "The date format used to parse date values."
|
|
3385
|
-
},
|
|
3386
|
-
"relation": {
|
|
3387
|
-
"type": "string",
|
|
3388
|
-
"enum": [
|
|
3389
|
-
"INTERSECTS",
|
|
3390
|
-
"CONTAINS",
|
|
3391
|
-
"WITHIN"
|
|
3392
|
-
],
|
|
3393
|
-
"description": "Indicates how the range query matches values for range fields."
|
|
3394
|
-
},
|
|
3395
|
-
"time_zone": {
|
|
3396
|
-
"type": "string",
|
|
3397
|
-
"description": "Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC."
|
|
3398
|
-
}
|
|
3399
|
-
}
|
|
3400
|
-
},
|
|
3401
|
-
"example": {
|
|
3402
|
-
"_created_at": {
|
|
3403
|
-
"gte": "2021-01-01T00:00:00.000Z",
|
|
3404
|
-
"lte": "2021-01-31T23:59:59.999Z"
|
|
3405
|
-
}
|
|
3406
|
-
}
|
|
3407
|
-
},
|
|
3408
|
-
"exists": {
|
|
3409
|
-
"description": "Returns documents that have a value in the specified field.",
|
|
3410
|
-
"externalDocs": {
|
|
3411
|
-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-query.html"
|
|
3412
|
-
},
|
|
3413
|
-
"type": "object",
|
|
3414
|
-
"properties": {
|
|
3415
|
-
"field": {
|
|
3416
|
-
"type": "string"
|
|
3417
|
-
}
|
|
3418
|
-
},
|
|
3419
|
-
"required": [
|
|
3420
|
-
"field"
|
|
3421
|
-
],
|
|
3422
|
-
"example": {
|
|
3423
|
-
"field": "_tags"
|
|
3424
|
-
}
|
|
3425
|
-
},
|
|
3426
|
-
"$and": {
|
|
3427
|
-
"$ref": "#/components/schemas/EntitySearchFilter"
|
|
3428
|
-
},
|
|
3429
|
-
"$or": {
|
|
3430
|
-
"$ref": "#/components/schemas/EntitySearchFilter"
|
|
3431
|
-
},
|
|
3432
|
-
"$not": {
|
|
3433
|
-
"$ref": "#/components/schemas/EntitySearchFilter"
|
|
3434
|
-
}
|
|
3435
|
-
}
|
|
3436
|
-
},
|
|
3437
|
-
"example": [
|
|
3438
|
-
{
|
|
3439
|
-
"term": {
|
|
3440
|
-
"_schema": "contact"
|
|
3441
|
-
}
|
|
3442
|
-
},
|
|
3443
|
-
{
|
|
3444
|
-
"terms": {
|
|
3445
|
-
"status": [
|
|
3446
|
-
"active"
|
|
3447
|
-
]
|
|
3448
|
-
}
|
|
3449
|
-
}
|
|
3450
|
-
]
|
|
3451
|
-
},
|
|
3452
|
-
"EntitySearchFilterValue": {
|
|
3453
|
-
"description": "A filter field value.",
|
|
3454
|
-
"oneOf": [
|
|
3455
|
-
{
|
|
3456
|
-
"type": "string",
|
|
3457
|
-
"nullable": true
|
|
3458
|
-
},
|
|
3459
|
-
{
|
|
3460
|
-
"type": "number"
|
|
3461
|
-
},
|
|
3462
|
-
{
|
|
3463
|
-
"type": "boolean"
|
|
3464
|
-
}
|
|
3230
|
+
"deleteEntity"
|
|
3465
3231
|
]
|
|
3466
3232
|
},
|
|
3467
3233
|
"EntityManualTrigger": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/automation-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
4
4
|
"description": "Client library for epilot automation API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"json-loader": "^0.5.7",
|
|
67
67
|
"node-fetch": "^3.2.10",
|
|
68
68
|
"openapi-client-axios": "^7.5.1",
|
|
69
|
-
"openapicmd": "^2.6.
|
|
69
|
+
"openapicmd": "^2.6.0",
|
|
70
70
|
"ts-jest": "^26.5.0",
|
|
71
71
|
"ts-loader": "^8.0.14",
|
|
72
72
|
"ts-node": "^10.9.1",
|