@activepieces/shared
Advanced tools
Comparing version 0.3.5 to 0.3.6
{ | ||
"name": "@activepieces/shared", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -13,3 +13,3 @@ import { AppConnectionId } from "../app-connection/app-connection"; | ||
} | ||
declare type ErrorParams = CollectionNotFoundErrorParams | ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExeceededErrorParams | TriggerFailedErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | OpenAiFailedErrorParams | FlowOperationErrorParams; | ||
declare type ErrorParams = CollectionNotFoundErrorParams | ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExeceededErrorParams | TriggerFailedErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | OpenAiFailedErrorParams | TestTriggerFailedErrorParams | FlowOperationErrorParams; | ||
export interface BaseErrorParams<T, V> { | ||
@@ -99,2 +99,5 @@ code: T; | ||
}>; | ||
export declare type TestTriggerFailedErrorParams = BaseErrorParams<ErrorCode.TEST_TRIGGER_FAILED, { | ||
message: string; | ||
}>; | ||
export declare enum ErrorCode { | ||
@@ -125,4 +128,5 @@ COLLECTION_NOT_FOUND = "COLLECTION_NOT_FOUND", | ||
FLOW_OPERATION_INVALID = "FLOW_OPERATION_INVALID", | ||
OPENAI_FAILED = "OPENAI_FAILED" | ||
OPENAI_FAILED = "OPENAI_FAILED", | ||
TEST_TRIGGER_FAILED = "TEST_TRIGGER_FAILED" | ||
} | ||
export {}; |
@@ -38,3 +38,4 @@ "use strict"; | ||
ErrorCode["OPENAI_FAILED"] = "OPENAI_FAILED"; | ||
ErrorCode["TEST_TRIGGER_FAILED"] = "TEST_TRIGGER_FAILED"; | ||
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); | ||
//# sourceMappingURL=activepieces-error.js.map |
@@ -72,2 +72,7 @@ import { CollectionId } from "../collections/collection"; | ||
} | ||
export interface ExecuteTestOrRunTriggerResponse { | ||
success: boolean; | ||
message?: string; | ||
output: unknown[]; | ||
} | ||
export interface ExecuteTriggerResponse { | ||
@@ -74,0 +79,0 @@ listeners: AppEventListener[]; |
Sorry, the diff of this file is not supported yet
188746
2827
221
8