@epilot/automation-client 2.5.5 → 2.5.7
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 +197 -1
- package/dist/openapi.json +17 -1
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare namespace Components {
|
|
|
22
22
|
* submission
|
|
23
23
|
*/
|
|
24
24
|
schema?: string;
|
|
25
|
-
types?: ("CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal" | "MessageActivity" | "SyncActivity")[];
|
|
25
|
+
types?: ("CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal" | "MessageActivity" | "SyncActivity" | "EntityAccessFromPortal")[];
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerWebhookAction | CreateDocumentAction | SendEmailAction | /* Creates an order entity with prices from journey */ CartCheckoutAction | AutomationAction;
|
|
@@ -490,6 +490,20 @@ declare namespace Components {
|
|
|
490
490
|
* Flag indicating whether the action was created automatically or manually
|
|
491
491
|
*/
|
|
492
492
|
created_automatically?: boolean;
|
|
493
|
+
reason?: {
|
|
494
|
+
/**
|
|
495
|
+
* Why the action has to be skipped/failed
|
|
496
|
+
* example:
|
|
497
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
498
|
+
*/
|
|
499
|
+
message?: string;
|
|
500
|
+
/**
|
|
501
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
502
|
+
*/
|
|
503
|
+
payload?: {
|
|
504
|
+
[name: string]: any;
|
|
505
|
+
};
|
|
506
|
+
};
|
|
493
507
|
execution_status?: ExecutionStatus;
|
|
494
508
|
started_at?: string;
|
|
495
509
|
updated_at?: string;
|
|
@@ -527,6 +541,20 @@ declare namespace Components {
|
|
|
527
541
|
* Flag indicating whether the action was created automatically or manually
|
|
528
542
|
*/
|
|
529
543
|
created_automatically?: boolean;
|
|
544
|
+
reason?: {
|
|
545
|
+
/**
|
|
546
|
+
* Why the action has to be skipped/failed
|
|
547
|
+
* example:
|
|
548
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
549
|
+
*/
|
|
550
|
+
message?: string;
|
|
551
|
+
/**
|
|
552
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
553
|
+
*/
|
|
554
|
+
payload?: {
|
|
555
|
+
[name: string]: any;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
530
558
|
}
|
|
531
559
|
export interface AutomationActionExecutionState {
|
|
532
560
|
execution_status?: ExecutionStatus;
|
|
@@ -688,6 +716,20 @@ declare namespace Components {
|
|
|
688
716
|
* Flag indicating whether the action was created automatically or manually
|
|
689
717
|
*/
|
|
690
718
|
created_automatically?: boolean;
|
|
719
|
+
reason?: {
|
|
720
|
+
/**
|
|
721
|
+
* Why the action has to be skipped/failed
|
|
722
|
+
* example:
|
|
723
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
724
|
+
*/
|
|
725
|
+
message?: string;
|
|
726
|
+
/**
|
|
727
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
728
|
+
*/
|
|
729
|
+
payload?: {
|
|
730
|
+
[name: string]: any;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
691
733
|
execution_status?: ExecutionStatus;
|
|
692
734
|
started_at?: string;
|
|
693
735
|
updated_at?: string;
|
|
@@ -726,6 +768,20 @@ declare namespace Components {
|
|
|
726
768
|
* Flag indicating whether the action was created automatically or manually
|
|
727
769
|
*/
|
|
728
770
|
created_automatically?: boolean;
|
|
771
|
+
reason?: {
|
|
772
|
+
/**
|
|
773
|
+
* Why the action has to be skipped/failed
|
|
774
|
+
* example:
|
|
775
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
776
|
+
*/
|
|
777
|
+
message?: string;
|
|
778
|
+
/**
|
|
779
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
780
|
+
*/
|
|
781
|
+
payload?: {
|
|
782
|
+
[name: string]: any;
|
|
783
|
+
};
|
|
784
|
+
};
|
|
729
785
|
}
|
|
730
786
|
export interface CartCheckoutConfig {
|
|
731
787
|
/**
|
|
@@ -801,6 +857,20 @@ declare namespace Components {
|
|
|
801
857
|
* Flag indicating whether the action was created automatically or manually
|
|
802
858
|
*/
|
|
803
859
|
created_automatically?: boolean;
|
|
860
|
+
reason?: {
|
|
861
|
+
/**
|
|
862
|
+
* Why the action has to be skipped/failed
|
|
863
|
+
* example:
|
|
864
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
865
|
+
*/
|
|
866
|
+
message?: string;
|
|
867
|
+
/**
|
|
868
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
869
|
+
*/
|
|
870
|
+
payload?: {
|
|
871
|
+
[name: string]: any;
|
|
872
|
+
};
|
|
873
|
+
};
|
|
804
874
|
execution_status?: ExecutionStatus;
|
|
805
875
|
started_at?: string;
|
|
806
876
|
updated_at?: string;
|
|
@@ -854,6 +924,20 @@ declare namespace Components {
|
|
|
854
924
|
* Flag indicating whether the action was created automatically or manually
|
|
855
925
|
*/
|
|
856
926
|
created_automatically?: boolean;
|
|
927
|
+
reason?: {
|
|
928
|
+
/**
|
|
929
|
+
* Why the action has to be skipped/failed
|
|
930
|
+
* example:
|
|
931
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
932
|
+
*/
|
|
933
|
+
message?: string;
|
|
934
|
+
/**
|
|
935
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
936
|
+
*/
|
|
937
|
+
payload?: {
|
|
938
|
+
[name: string]: any;
|
|
939
|
+
};
|
|
940
|
+
};
|
|
857
941
|
}
|
|
858
942
|
export interface CreateDocumentConfig {
|
|
859
943
|
template_id?: string;
|
|
@@ -1135,6 +1219,20 @@ declare namespace Components {
|
|
|
1135
1219
|
* Flag indicating whether the action was created automatically or manually
|
|
1136
1220
|
*/
|
|
1137
1221
|
created_automatically?: boolean;
|
|
1222
|
+
reason?: {
|
|
1223
|
+
/**
|
|
1224
|
+
* Why the action has to be skipped/failed
|
|
1225
|
+
* example:
|
|
1226
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
1227
|
+
*/
|
|
1228
|
+
message?: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1231
|
+
*/
|
|
1232
|
+
payload?: {
|
|
1233
|
+
[name: string]: any;
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1138
1236
|
execution_status?: ExecutionStatus;
|
|
1139
1237
|
started_at?: string;
|
|
1140
1238
|
updated_at?: string;
|
|
@@ -1290,6 +1388,20 @@ declare namespace Components {
|
|
|
1290
1388
|
* Flag indicating whether the action was created automatically or manually
|
|
1291
1389
|
*/
|
|
1292
1390
|
created_automatically?: boolean;
|
|
1391
|
+
reason?: {
|
|
1392
|
+
/**
|
|
1393
|
+
* Why the action has to be skipped/failed
|
|
1394
|
+
* example:
|
|
1395
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
1396
|
+
*/
|
|
1397
|
+
message?: string;
|
|
1398
|
+
/**
|
|
1399
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1400
|
+
*/
|
|
1401
|
+
payload?: {
|
|
1402
|
+
[name: string]: any;
|
|
1403
|
+
};
|
|
1404
|
+
};
|
|
1293
1405
|
}
|
|
1294
1406
|
export interface MapEntityConfig {
|
|
1295
1407
|
mapping_config?: MappingConfigRef;
|
|
@@ -1498,6 +1610,20 @@ declare namespace Components {
|
|
|
1498
1610
|
* Flag indicating whether the action was created automatically or manually
|
|
1499
1611
|
*/
|
|
1500
1612
|
created_automatically?: boolean;
|
|
1613
|
+
reason?: {
|
|
1614
|
+
/**
|
|
1615
|
+
* Why the action has to be skipped/failed
|
|
1616
|
+
* example:
|
|
1617
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
1618
|
+
*/
|
|
1619
|
+
message?: string;
|
|
1620
|
+
/**
|
|
1621
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1622
|
+
*/
|
|
1623
|
+
payload?: {
|
|
1624
|
+
[name: string]: any;
|
|
1625
|
+
};
|
|
1626
|
+
};
|
|
1501
1627
|
execution_status?: ExecutionStatus;
|
|
1502
1628
|
started_at?: string;
|
|
1503
1629
|
updated_at?: string;
|
|
@@ -1545,6 +1671,20 @@ declare namespace Components {
|
|
|
1545
1671
|
* Flag indicating whether the action was created automatically or manually
|
|
1546
1672
|
*/
|
|
1547
1673
|
created_automatically?: boolean;
|
|
1674
|
+
reason?: {
|
|
1675
|
+
/**
|
|
1676
|
+
* Why the action has to be skipped/failed
|
|
1677
|
+
* example:
|
|
1678
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
1679
|
+
*/
|
|
1680
|
+
message?: string;
|
|
1681
|
+
/**
|
|
1682
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1683
|
+
*/
|
|
1684
|
+
payload?: {
|
|
1685
|
+
[name: string]: any;
|
|
1686
|
+
};
|
|
1687
|
+
};
|
|
1548
1688
|
}
|
|
1549
1689
|
export interface SendEmailConfig {
|
|
1550
1690
|
email_template_id?: string;
|
|
@@ -1720,6 +1860,20 @@ declare namespace Components {
|
|
|
1720
1860
|
* Flag indicating whether the action was created automatically or manually
|
|
1721
1861
|
*/
|
|
1722
1862
|
created_automatically?: boolean;
|
|
1863
|
+
reason?: {
|
|
1864
|
+
/**
|
|
1865
|
+
* Why the action has to be skipped/failed
|
|
1866
|
+
* example:
|
|
1867
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
1868
|
+
*/
|
|
1869
|
+
message?: string;
|
|
1870
|
+
/**
|
|
1871
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1872
|
+
*/
|
|
1873
|
+
payload?: {
|
|
1874
|
+
[name: string]: any;
|
|
1875
|
+
};
|
|
1876
|
+
};
|
|
1723
1877
|
execution_status?: ExecutionStatus;
|
|
1724
1878
|
started_at?: string;
|
|
1725
1879
|
updated_at?: string;
|
|
@@ -1770,6 +1924,20 @@ declare namespace Components {
|
|
|
1770
1924
|
* Flag indicating whether the action was created automatically or manually
|
|
1771
1925
|
*/
|
|
1772
1926
|
created_automatically?: boolean;
|
|
1927
|
+
reason?: {
|
|
1928
|
+
/**
|
|
1929
|
+
* Why the action has to be skipped/failed
|
|
1930
|
+
* example:
|
|
1931
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
1932
|
+
*/
|
|
1933
|
+
message?: string;
|
|
1934
|
+
/**
|
|
1935
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1936
|
+
*/
|
|
1937
|
+
payload?: {
|
|
1938
|
+
[name: string]: any;
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1773
1941
|
}
|
|
1774
1942
|
export interface TriggerWebhookConfig {
|
|
1775
1943
|
entity_sources?: string[];
|
|
@@ -1797,6 +1965,20 @@ declare namespace Components {
|
|
|
1797
1965
|
* Flag indicating whether the action was created automatically or manually
|
|
1798
1966
|
*/
|
|
1799
1967
|
created_automatically?: boolean;
|
|
1968
|
+
reason?: {
|
|
1969
|
+
/**
|
|
1970
|
+
* Why the action has to be skipped/failed
|
|
1971
|
+
* example:
|
|
1972
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
1973
|
+
*/
|
|
1974
|
+
message?: string;
|
|
1975
|
+
/**
|
|
1976
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
1977
|
+
*/
|
|
1978
|
+
payload?: {
|
|
1979
|
+
[name: string]: any;
|
|
1980
|
+
};
|
|
1981
|
+
};
|
|
1800
1982
|
execution_status?: ExecutionStatus;
|
|
1801
1983
|
started_at?: string;
|
|
1802
1984
|
updated_at?: string;
|
|
@@ -1866,6 +2048,20 @@ declare namespace Components {
|
|
|
1866
2048
|
* Flag indicating whether the action was created automatically or manually
|
|
1867
2049
|
*/
|
|
1868
2050
|
created_automatically?: boolean;
|
|
2051
|
+
reason?: {
|
|
2052
|
+
/**
|
|
2053
|
+
* Why the action has to be skipped/failed
|
|
2054
|
+
* example:
|
|
2055
|
+
* There are no registered portal users for the given emails, hence skipping the action
|
|
2056
|
+
*/
|
|
2057
|
+
message?: string;
|
|
2058
|
+
/**
|
|
2059
|
+
* Extra metadata about the skipping reason - such as a certain condition not met, etc.
|
|
2060
|
+
*/
|
|
2061
|
+
payload?: {
|
|
2062
|
+
[name: string]: any;
|
|
2063
|
+
};
|
|
2064
|
+
};
|
|
1869
2065
|
}
|
|
1870
2066
|
/**
|
|
1871
2067
|
* example:
|
package/dist/openapi.json
CHANGED
|
@@ -625,6 +625,21 @@
|
|
|
625
625
|
"created_automatically": {
|
|
626
626
|
"description": "Flag indicating whether the action was created automatically or manually",
|
|
627
627
|
"type": "boolean"
|
|
628
|
+
},
|
|
629
|
+
"reason": {
|
|
630
|
+
"type": "object",
|
|
631
|
+
"properties": {
|
|
632
|
+
"message": {
|
|
633
|
+
"type": "string",
|
|
634
|
+
"description": "Why the action has to be skipped/failed",
|
|
635
|
+
"example": "There are no registered portal users for the given emails, hence skipping the action"
|
|
636
|
+
},
|
|
637
|
+
"payload": {
|
|
638
|
+
"type": "object",
|
|
639
|
+
"additionalProperties": true,
|
|
640
|
+
"description": "Extra metadata about the skipping reason - such as a certain condition not met, etc."
|
|
641
|
+
}
|
|
642
|
+
}
|
|
628
643
|
}
|
|
629
644
|
}
|
|
630
645
|
},
|
|
@@ -2215,7 +2230,8 @@
|
|
|
2215
2230
|
"UpdateMeterReading",
|
|
2216
2231
|
"DocDownloadedFromPortal",
|
|
2217
2232
|
"MessageActivity",
|
|
2218
|
-
"SyncActivity"
|
|
2233
|
+
"SyncActivity",
|
|
2234
|
+
"EntityAccessFromPortal"
|
|
2219
2235
|
]
|
|
2220
2236
|
}
|
|
2221
2237
|
}
|