@activepieces/shared
Advanced tools
Comparing version 0.10.75 to 0.10.76
{ | ||
"name": "@activepieces/shared", | ||
"version": "0.10.75", | ||
"version": "0.10.76", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -28,3 +28,2 @@ import { Static } from '@sinclair/typebox'; | ||
type: import("@sinclair/typebox").TLiteral<AppConnectionType.PLATFORM_OAUTH2>; | ||
token_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>; | ||
redirect_url: import("@sinclair/typebox").TString<string>; | ||
@@ -46,3 +45,2 @@ }>; | ||
type: import("@sinclair/typebox").TLiteral<AppConnectionType.CLOUD_OAUTH2>; | ||
token_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>; | ||
}>; | ||
@@ -69,3 +67,2 @@ name: import("@sinclair/typebox").TString<string>; | ||
grant_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof OAuth2GrantType>>; | ||
token_url: import("@sinclair/typebox").TString<string>; | ||
props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>>; | ||
@@ -109,3 +106,2 @@ scope: import("@sinclair/typebox").TString<string>; | ||
grant_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof OAuth2GrantType>>; | ||
token_url: import("@sinclair/typebox").TString<string>; | ||
props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>>; | ||
@@ -132,3 +128,2 @@ scope: import("@sinclair/typebox").TString<string>; | ||
type: import("@sinclair/typebox").TLiteral<AppConnectionType.CLOUD_OAUTH2>; | ||
token_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>; | ||
}>; | ||
@@ -148,3 +143,2 @@ name: import("@sinclair/typebox").TString<string>; | ||
type: import("@sinclair/typebox").TLiteral<AppConnectionType.PLATFORM_OAUTH2>; | ||
token_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>; | ||
redirect_url: import("@sinclair/typebox").TString<string>; | ||
@@ -151,0 +145,0 @@ }>; |
@@ -32,3 +32,2 @@ "use strict"; | ||
type: typebox_1.Type.Literal(app_connection_1.AppConnectionType.PLATFORM_OAUTH2), | ||
token_url: typebox_1.Type.Optional(typebox_1.Type.String({})), | ||
redirect_url: typebox_1.Type.String({}), | ||
@@ -47,3 +46,2 @@ }) }), { | ||
type: typebox_1.Type.Literal(app_connection_1.AppConnectionType.CLOUD_OAUTH2), | ||
token_url: typebox_1.Type.Optional(typebox_1.Type.String({})), | ||
}) }), { | ||
@@ -64,3 +62,2 @@ title: 'Cloud OAuth2', | ||
grant_type: typebox_1.Type.Optional(typebox_1.Type.Enum(OAuth2GrantType)), | ||
token_url: typebox_1.Type.String({}), | ||
props: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any())), | ||
@@ -67,0 +64,0 @@ scope: typebox_1.Type.String(), |
@@ -11,3 +11,3 @@ import { AppConnectionId } from '../app-connection/app-connection'; | ||
} | ||
type ErrorParams = AppConnectionNotFoundErrorParams | AuthenticationParams | AuthorizationErrorParams | ConfigNotFoundErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | InvitationOnlySignUpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | QuotaExceededParams | SignUpDisabledParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams | DomainIsNotAllowedErrorParams | EmailAuthIsDisabledParams; | ||
type ErrorParams = AppConnectionNotFoundErrorParams | AuthenticationParams | AuthorizationErrorParams | ConfigNotFoundErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | InvitationOnlySignUpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | QuotaExceededParams | FeatureDisabledErrorParams | SignUpDisabledParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams | DomainIsNotAllowedErrorParams | EmailAuthIsDisabledParams; | ||
export type BaseErrorParams<T, V> = { | ||
@@ -134,2 +134,5 @@ code: T; | ||
}>; | ||
export type FeatureDisabledErrorParams = BaseErrorParams<ErrorCode.FEATURE_DISABLED, { | ||
message: string; | ||
}>; | ||
export type SignUpDisabledParams = BaseErrorParams<ErrorCode.SIGN_UP_DISABLED, Record<string, never>>; | ||
@@ -173,2 +176,3 @@ export type AuthenticationParams = BaseErrorParams<ErrorCode.AUTHENTICATION, { | ||
QUOTA_EXCEEDED = "QUOTA_EXCEEDED", | ||
FEATURE_DISABLED = "FEATURE_DISABLED", | ||
SIGN_UP_DISABLED = "SIGN_UP_DISABLED", | ||
@@ -175,0 +179,0 @@ STEP_NOT_FOUND = "STEP_NOT_FOUND", |
@@ -45,2 +45,3 @@ "use strict"; | ||
ErrorCode["QUOTA_EXCEEDED"] = "QUOTA_EXCEEDED"; | ||
ErrorCode["FEATURE_DISABLED"] = "FEATURE_DISABLED"; | ||
ErrorCode["SIGN_UP_DISABLED"] = "SIGN_UP_DISABLED"; | ||
@@ -47,0 +48,0 @@ ErrorCode["STEP_NOT_FOUND"] = "STEP_NOT_FOUND"; |
@@ -80,3 +80,3 @@ import { RunEnvironment } from '../flow-run/flow-run'; | ||
UPGRADE_POPUP = "upgrade.popup", | ||
FLOW_CREATED = "flow.created", | ||
CREATED_FLOW = "flow.created", | ||
DEMO_IMPORTED = "demo.imported", | ||
@@ -102,3 +102,3 @@ FLOW_RUN_CREATED = "run.created", | ||
}; | ||
export type TelemetryEvent = BaseTelemetryEvent<TelemetryEventName.SIGNED_UP, SignedUp> | BaseTelemetryEvent<TelemetryEventName.REFERRAL, Referral> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_CLICKED, UpgradeClicked> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_POPUP, UpgradePopup> | BaseTelemetryEvent<TelemetryEventName.FLOW_RUN_CREATED, RunCreated> | BaseTelemetryEvent<TelemetryEventName.FLOW_PUBLISHED, FlowPublished> | BaseTelemetryEvent<TelemetryEventName.QUOTA_ALERT, QuotaAlert> | BaseTelemetryEvent<TelemetryEventName.FLOW_CREATED, FlowCreated> | BaseTelemetryEvent<TelemetryEventName.TEMPLATE_SEARCH, TemplateSearch> | BaseTelemetryEvent<TelemetryEventName.PIECES_SEARCH, PiecesSearch> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED, FlowImported> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED_USING_FILE, FlowImportedUsingFile> | BaseTelemetryEvent<TelemetryEventName.REFERRAL_LINK_COPIED, ReferralLinkCopied> | BaseTelemetryEvent<TelemetryEventName.FLOW_SHARED, FlowShared> | BaseTelemetryEvent<TelemetryEventName.DEMO_IMPORTED, Record<string, never>> | BaseTelemetryEvent<TelemetryEventName.OPENED_PRICING_FROM_DASHBOARD, OpenedFromDasahboard> | BaseTelemetryEvent<TelemetryEventName.COPILOT_GENERATED_CODE, CopilotGeneratedCode> | BaseTelemetryEvent<TelemetryEventName.INTERFACES_VIEWED, InterfacesViewed> | BaseTelemetryEvent<TelemetryEventName.INTERFACES_SUBMITTED, InterfacesViewed>; | ||
export type TelemetryEvent = BaseTelemetryEvent<TelemetryEventName.SIGNED_UP, SignedUp> | BaseTelemetryEvent<TelemetryEventName.REFERRAL, Referral> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_CLICKED, UpgradeClicked> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_POPUP, UpgradePopup> | BaseTelemetryEvent<TelemetryEventName.FLOW_RUN_CREATED, RunCreated> | BaseTelemetryEvent<TelemetryEventName.FLOW_PUBLISHED, FlowPublished> | BaseTelemetryEvent<TelemetryEventName.QUOTA_ALERT, QuotaAlert> | BaseTelemetryEvent<TelemetryEventName.CREATED_FLOW, FlowCreated> | BaseTelemetryEvent<TelemetryEventName.TEMPLATE_SEARCH, TemplateSearch> | BaseTelemetryEvent<TelemetryEventName.PIECES_SEARCH, PiecesSearch> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED, FlowImported> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED_USING_FILE, FlowImportedUsingFile> | BaseTelemetryEvent<TelemetryEventName.REFERRAL_LINK_COPIED, ReferralLinkCopied> | BaseTelemetryEvent<TelemetryEventName.FLOW_SHARED, FlowShared> | BaseTelemetryEvent<TelemetryEventName.DEMO_IMPORTED, Record<string, never>> | BaseTelemetryEvent<TelemetryEventName.OPENED_PRICING_FROM_DASHBOARD, OpenedFromDasahboard> | BaseTelemetryEvent<TelemetryEventName.COPILOT_GENERATED_CODE, CopilotGeneratedCode> | BaseTelemetryEvent<TelemetryEventName.INTERFACES_VIEWED, InterfacesViewed> | BaseTelemetryEvent<TelemetryEventName.INTERFACES_SUBMITTED, InterfacesViewed>; | ||
export {}; |
@@ -11,3 +11,3 @@ "use strict"; | ||
TelemetryEventName["UPGRADE_POPUP"] = "upgrade.popup"; | ||
TelemetryEventName["FLOW_CREATED"] = "flow.created"; | ||
TelemetryEventName["CREATED_FLOW"] = "flow.created"; | ||
TelemetryEventName["DEMO_IMPORTED"] = "demo.imported"; | ||
@@ -14,0 +14,0 @@ TelemetryEventName["FLOW_RUN_CREATED"] = "run.created"; |
@@ -6,3 +6,3 @@ import { AppConnectionValue } from '../app-connection/app-connection'; | ||
import { PiecePackage } from '../pieces'; | ||
import { ExecutionState, ExecutionType } from '../flow-run/execution/execution-output'; | ||
import { ExecutionState, ExecutionType, ResumePayload } from '../flow-run/execution/execution-output'; | ||
export declare enum EngineOperationType { | ||
@@ -58,3 +58,3 @@ EXTRACT_PIECE_METADATA = "EXTRACT_PIECE_METADATA", | ||
tasks: number; | ||
resumePayload: unknown; | ||
resumePayload: ResumePayload; | ||
}; | ||
@@ -61,0 +61,0 @@ export type ExecuteFlowOperation = BeginExecuteFlowOperation | ResumeExecuteFlowOperation; |
@@ -0,1 +1,2 @@ | ||
import { TriggerPayload } from '../../engine'; | ||
import { StepOutput } from './step-output'; | ||
@@ -43,5 +44,7 @@ export declare const MAX_LOG_SIZE: number; | ||
export type WebhookPauseMetadata = BasePauseMetadata<PauseType.WEBHOOK> & { | ||
actions: string[]; | ||
requestId: string; | ||
response: Record<string, unknown>; | ||
}; | ||
export type PauseMetadata = DelayPauseMetadata | WebhookPauseMetadata; | ||
export type ResumePayload = TriggerPayload; | ||
export type PauseExecutionOutput = BaseExecutionOutput<ExecutionOutputStatus.PAUSED> & { | ||
@@ -48,0 +51,0 @@ pauseMetadata: PauseMetadata; |
@@ -26,3 +26,3 @@ import { BaseModel } from '../common/base-model'; | ||
environment: RunEnvironment; | ||
pauseMetadata?: PauseMetadata | null; | ||
pauseMetadata?: PauseMetadata; | ||
executionOutput?: ExecutionOutput; | ||
@@ -29,0 +29,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
459667
6308