@activepieces/shared
Advanced tools
Comparing version 0.3.24 to 0.3.25
{ | ||
"name": "@activepieces/shared", | ||
"version": "0.3.24", | ||
"version": "0.3.25", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -32,3 +32,3 @@ export * from "./lib/flows/actions/action"; | ||
export { Principal } from "./lib/authentication/model/principal"; | ||
export { CodeAction, PieceAction, LoopOnItemsAction, PieceActionSettings, LoopOnItemsActionSettings, Action, ActionType, CodeActionSettings } from './lib/flows/actions/action'; | ||
export { CodeAction, PieceAction, LoopOnItemsAction, PieceActionSettings, LoopOnItemsActionSettings, Action, ActionType, CodeActionSettings, StepSettings } from './lib/flows/actions/action'; | ||
export { StoreEntry, StoreEntryId } from './lib/store-entry/store-entry'; | ||
@@ -35,0 +35,0 @@ export * from './lib/user/user'; |
@@ -12,3 +12,3 @@ import { AppConnectionId } from "../app-connection/app-connection"; | ||
} | ||
declare type ErrorParams = ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | ProjectNotFoundErrorParams | FlowVersionNotFoundErrorParams | FlowInstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExeceededErrorParams | TriggerFailedErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | OpenAiFailedErrorParams | TestTriggerFailedErrorParams | FlowOperationErrorParams | EntityNotFoundErrorParams | ValidationErrorParams | ExecutionTimeoutErrorParams; | ||
declare type ErrorParams = ConfigNotFoundErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowRunNotFoundErrorParams | ProjectNotFoundErrorParams | FlowVersionNotFoundErrorParams | FlowInstanceNotFoundErrorParams | InvalidBearerTokenParams | InvalidCredentialsErrorParams | JobRemovalFailureErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | StepNotFoundErrorParams | AppConnectionNotFoundErrorParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidJwtTokenErrorParams | TaskQuotaExceededErrorParams | TriggerFailedErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | OpenAiFailedErrorParams | TestTriggerFailedErrorParams | FlowOperationErrorParams | EntityNotFoundErrorParams | ValidationErrorParams | ExecutionTimeoutErrorParams | TriggerEnableErrorParams | TriggerDisableErrorParams; | ||
export interface BaseErrorParams<T, V> { | ||
@@ -89,3 +89,3 @@ code: T; | ||
}>; | ||
export declare type OpenAiFailedErrorParams = BaseErrorParams<ErrorCode.OPENAI_FAILED, Record<string, never>>; | ||
export declare type OpenAiFailedErrorParams = BaseErrorParams<ErrorCode.OPEN_AI_FAILED, Record<string, never>>; | ||
export declare type FlowOperationErrorParams = BaseErrorParams<ErrorCode.FLOW_OPERATION_INVALID, Record<string, never>>; | ||
@@ -95,3 +95,3 @@ export declare type InvalidJwtTokenErrorParams = BaseErrorParams<ErrorCode.INVALID_OR_EXPIRED_JWT_TOKEN, { | ||
}>; | ||
export declare type TaskQuotaExeceededErrorParams = BaseErrorParams<ErrorCode.TASK_QUOTA_EXCEEDED, { | ||
export declare type TaskQuotaExceededErrorParams = BaseErrorParams<ErrorCode.TASK_QUOTA_EXCEEDED, { | ||
projectId: string; | ||
@@ -109,2 +109,8 @@ }>; | ||
}>; | ||
export declare type TriggerEnableErrorParams = BaseErrorParams<ErrorCode.TRIGGER_ENABLE, { | ||
flowVersionId?: FlowVersionId; | ||
}>; | ||
export declare type TriggerDisableErrorParams = BaseErrorParams<ErrorCode.TRIGGER_DISABLE, { | ||
flowVersionId?: FlowVersionId; | ||
}>; | ||
export declare enum ErrorCode { | ||
@@ -134,8 +140,10 @@ CONFIG_NOT_FOUND = "CONFIG_NOT_FOUND", | ||
FLOW_OPERATION_INVALID = "FLOW_OPERATION_INVALID", | ||
OPENAI_FAILED = "OPENAI_FAILED", | ||
OPEN_AI_FAILED = "OPEN_AI_FAILED", | ||
TEST_TRIGGER_FAILED = "TEST_TRIGGER_FAILED", | ||
ENTITY_NOT_FOUND = "ENTITY_NOT_FOUND", | ||
VALIDATION = "VALIDATION", | ||
EXECUTION_TIMEOUT = "EXECUTION_TIMEOUT" | ||
EXECUTION_TIMEOUT = "EXECUTION_TIMEOUT", | ||
TRIGGER_ENABLE = "TRIGGER_ENABLE", | ||
TRIGGER_DISABLE = "TRIGGER_DISABLE" | ||
} | ||
export {}; |
@@ -36,3 +36,3 @@ "use strict"; | ||
ErrorCode["FLOW_OPERATION_INVALID"] = "FLOW_OPERATION_INVALID"; | ||
ErrorCode["OPENAI_FAILED"] = "OPENAI_FAILED"; | ||
ErrorCode["OPEN_AI_FAILED"] = "OPEN_AI_FAILED"; | ||
ErrorCode["TEST_TRIGGER_FAILED"] = "TEST_TRIGGER_FAILED"; | ||
@@ -42,3 +42,5 @@ ErrorCode["ENTITY_NOT_FOUND"] = "ENTITY_NOT_FOUND"; | ||
ErrorCode["EXECUTION_TIMEOUT"] = "EXECUTION_TIMEOUT"; | ||
ErrorCode["TRIGGER_ENABLE"] = "TRIGGER_ENABLE"; | ||
ErrorCode["TRIGGER_DISABLE"] = "TRIGGER_DISABLE"; | ||
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); | ||
//# sourceMappingURL=activepieces-error.js.map |
import { Static } from '@sinclair/typebox'; | ||
import { PieceTriggerSettings } from '../triggers/trigger'; | ||
export declare enum ActionType { | ||
@@ -248,1 +249,2 @@ CODE = "CODE", | ||
}; | ||
export declare type StepSettings = CodeActionSettings | PieceActionSettings | PieceTriggerSettings | BranchActionSettings | LoopOnItemsActionSettings; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
258642
3636