@prismatic-io/spectral
Advanced tools
Comparing version 7.8.0-preview3 to 7.8.0-preview4
/// <reference types="node" /> | ||
import { Instance, Customer, DataSourceType, DataSourceResultType, User } from "../types"; | ||
import { Instance, Customer, DataSourceType, DataSourceResultType, User, TriggerEventFunctionReturn } from "../types"; | ||
interface DisplayDefinition { | ||
@@ -105,3 +105,3 @@ label: string; | ||
export declare type TriggerPerformFunction = (context: ActionContext, payload: TriggerPayload, params: Record<string, unknown>) => Promise<TriggerResult>; | ||
export declare type TriggerEventFunction = (context: ActionContext, params: Record<string, unknown>) => Promise<void>; | ||
export declare type TriggerEventFunction = (context: ActionContext, params: Record<string, unknown>) => Promise<void | TriggerEventFunctionReturn>; | ||
export interface Trigger { | ||
@@ -108,0 +108,0 @@ key: string; |
import { Inputs, ActionContext, ActionInputParameters } from "."; | ||
export declare type TriggerEventFunctionReturn = { | ||
/** An optional object, the keys and values of which will be persisted in the flow-specific instanceState and available for subsequent actions and executions */ | ||
instanceState?: Record<string, unknown>; | ||
/** An optional object, the keys and values of which will be persisted in the crossFlowState and available in any flow for subsequent actions and executions */ | ||
crossFlowState?: Record<string, unknown>; | ||
/** An optional object, the keys and values of which will be persisted in the executionState and available for the duration of the execution */ | ||
executionState?: Record<string, unknown>; | ||
/** An optional object, the keys and values of which will be persisted in the integrationState and available in any flow of an Instance for any version of an Integration for subsequent actions and executions */ | ||
integrationState?: Record<string, unknown>; | ||
}; | ||
/** Definition of the function to execute when a Trigger Event occurs. */ | ||
export declare type TriggerEventFunction<TInputs extends Inputs> = (context: ActionContext, params: ActionInputParameters<TInputs>) => Promise<void>; | ||
export declare type TriggerEventFunction<TInputs extends Inputs> = (context: ActionContext, params: ActionInputParameters<TInputs>) => Promise<void | TriggerEventFunctionReturn>; |
{ | ||
"name": "@prismatic-io/spectral", | ||
"version": "7.8.0-preview3", | ||
"version": "7.8.0-preview4", | ||
"description": "Utility library for building Prismatic components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176533
3919