File tree 3 files changed +51
-13
lines changed
clients/automation-client
3 files changed +51
-13
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @epilot/automation-client" ,
3
- "version" : " 2.8.1 " ,
3
+ "version" : " 2.8.3 " ,
4
4
"description" : " Client library for epilot automation API" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ declare namespace Components {
22
22
* submission
23
23
*/
24
24
schema ?: string ;
25
- types ?: ( "CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal" ) [ ] ;
25
+ types ?: ( ( "CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal" | "PortalUserResetPassword" | "PortalUserResetForgotPassword" ) | string ) [ ] ;
26
26
} ;
27
27
}
28
28
export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerWebhookAction | CreateDocumentAction | SendEmailAction | /* Creates an order entity with prices from journey */ CartCheckoutAction | AutomationAction ;
@@ -1167,12 +1167,18 @@ declare namespace Components {
1167
1167
export interface EqualsIgnoreCaseCondition {
1168
1168
"equals-ignore-case" ?: string ;
1169
1169
}
1170
- export type ErrorCode = "MAPPING_ERROR" | "REFRESH_RELATIONS_ERROR" | "DUPLICATE_ENTITY_ERROR" | "TRIGGER_WORKFLOW_ERROR" | "TIMEOUT_ERROR" | "BAD_CONFIG" | "INTERNAL_ERROR" | "TRIGGER_WEBHOOK_ERROR" ;
1170
+ export type ErrorCode = "MAPPING_ERROR" | "REFRESH_RELATIONS_ERROR" | "DUPLICATE_ENTITY_ERROR" | "TRIGGER_WORKFLOW_ERROR" | "TIMEOUT_ERROR" | "BAD_CONFIG" | "INTERNAL_ERROR" | "TRIGGER_WEBHOOK_ERROR" | "TEMPLATE_ERROR" ;
1171
+ export interface ErrorDetail {
1172
+ explanation : string ;
1173
+ context ?: string ;
1174
+ id ?: string ;
1175
+ }
1171
1176
export interface ErrorOutput {
1172
1177
error_code : ErrorCode ;
1173
1178
error_reason : string ;
1174
1179
error_info ?: {
1175
1180
[ name : string ] : any ;
1181
+ details ?: ErrorDetail [ ] ;
1176
1182
} ;
1177
1183
}
1178
1184
export type ExecutionStatus = "pending" | "in_progress" | "success" | "failed" | "cancelled" | "skipped" ;
Original file line number Diff line number Diff line change 697
697
},
698
698
"error_info" : {
699
699
"type" : " object" ,
700
- "additionalProperties" : true
700
+ "additionalProperties" : true ,
701
+ "properties" : {
702
+ "details" : {
703
+ "type" : " array" ,
704
+ "items" : {
705
+ "$ref" : " #/components/schemas/ErrorDetail"
706
+ }
707
+ }
708
+ }
701
709
}
702
710
},
703
711
"required" : [
715
723
" TIMEOUT_ERROR" ,
716
724
" BAD_CONFIG" ,
717
725
" INTERNAL_ERROR" ,
718
- " TRIGGER_WEBHOOK_ERROR"
726
+ " TRIGGER_WEBHOOK_ERROR" ,
727
+ " TEMPLATE_ERROR"
728
+ ]
729
+ },
730
+ "ErrorDetail" : {
731
+ "type" : " object" ,
732
+ "properties" : {
733
+ "explanation" : {
734
+ "type" : " string"
735
+ },
736
+ "context" : {
737
+ "type" : " string"
738
+ },
739
+ "id" : {
740
+ "type" : " string"
741
+ }
742
+ },
743
+ "required" : [
744
+ " explanation"
719
745
]
720
746
},
721
747
"CartCheckoutActionConfig" : {
2237
2263
"types" : {
2238
2264
"type" : " array" ,
2239
2265
"items" : {
2240
- "type" : " string" ,
2241
- "enum" : [
2242
- " CreateMeterReading" ,
2243
- " UpdateMeterReading" ,
2244
- " DocDownloadedFromPortal"
2266
+ "anyOf" : [
2267
+ {
2268
+ "type" : " string" ,
2269
+ "enum" : [
2270
+ " CreateMeterReading" ,
2271
+ " UpdateMeterReading" ,
2272
+ " DocDownloadedFromPortal" ,
2273
+ " PortalUserResetPassword" ,
2274
+ " PortalUserResetForgotPassword"
2275
+ ]
2276
+ },
2277
+ {
2278
+ "type" : " string"
2279
+ }
2245
2280
]
2246
2281
}
2247
2282
}
2539
2574
}
2540
2575
},
2541
2576
"servers" : [
2542
- {
2543
- "url" : " https://automation.sls.epilot.io"
2544
- },
2545
2577
{
2546
2578
"url" : " https://automation.sls.epilot.io"
2547
2579
}
You can’t perform that action at this time.
0 commit comments