Skip to content

Commit 2f8fc9b

Browse files
authored
Merge pull request #177 from epilot-dev/feat/automation-portal-password-activities
Included password reset activities of portal on automation triggers
2 parents 842f138 + 6f8e71e commit 2f8fc9b

File tree

3 files changed

+51
-13
lines changed

3 files changed

+51
-13
lines changed

clients/automation-client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@epilot/automation-client",
3-
"version": "2.8.1",
3+
"version": "2.8.3",
44
"description": "Client library for epilot automation API",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

clients/automation-client/src/openapi.d.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare namespace Components {
2222
* submission
2323
*/
2424
schema?: string;
25-
types?: ("CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal")[];
25+
types?: (("CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal" | "PortalUserResetPassword" | "PortalUserResetForgotPassword") | string)[];
2626
};
2727
}
2828
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 {
11671167
export interface EqualsIgnoreCaseCondition {
11681168
"equals-ignore-case"?: string;
11691169
}
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+
}
11711176
export interface ErrorOutput {
11721177
error_code: ErrorCode;
11731178
error_reason: string;
11741179
error_info?: {
11751180
[name: string]: any;
1181+
details?: ErrorDetail[];
11761182
};
11771183
}
11781184
export type ExecutionStatus = "pending" | "in_progress" | "success" | "failed" | "cancelled" | "skipped";

clients/automation-client/src/openapi.json

+42-10
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,15 @@
697697
},
698698
"error_info": {
699699
"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+
}
701709
}
702710
},
703711
"required": [
@@ -715,7 +723,25 @@
715723
"TIMEOUT_ERROR",
716724
"BAD_CONFIG",
717725
"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"
719745
]
720746
},
721747
"CartCheckoutActionConfig": {
@@ -2237,11 +2263,20 @@
22372263
"types": {
22382264
"type": "array",
22392265
"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+
}
22452280
]
22462281
}
22472282
}
@@ -2539,9 +2574,6 @@
25392574
}
25402575
},
25412576
"servers": [
2542-
{
2543-
"url": "https://automation.sls.epilot.io"
2544-
},
25452577
{
25462578
"url": "https://automation.sls.epilot.io"
25472579
}

0 commit comments

Comments
 (0)