@epilot/automation-client 2.8.2 → 2.8.3

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 CHANGED
@@ -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;
@@ -1168,11 +1168,17 @@ declare namespace Components {
1168
1168
  "equals-ignore-case"?: string;
1169
1169
  }
1170
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";
package/dist/openapi.json CHANGED
@@ -697,7 +697,15 @@
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": [
@@ -719,6 +727,23 @@
719
727
  "TEMPLATE_ERROR"
720
728
  ]
721
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"
745
+ ]
746
+ },
722
747
  "CartCheckoutActionConfig": {
723
748
  "allOf": [
724
749
  {
@@ -2238,11 +2263,20 @@
2238
2263
  "types": {
2239
2264
  "type": "array",
2240
2265
  "items": {
2241
- "type": "string",
2242
- "enum": [
2243
- "CreateMeterReading",
2244
- "UpdateMeterReading",
2245
- "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
+ }
2246
2280
  ]
2247
2281
  }
2248
2282
  }
@@ -2540,9 +2574,6 @@
2540
2574
  }
2541
2575
  },
2542
2576
  "servers": [
2543
- {
2544
- "url": "https://automation.sls.epilot.io"
2545
- },
2546
2577
  {
2547
2578
  "url": "https://automation.sls.epilot.io"
2548
2579
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "2.8.2",
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",