Socket
Socket
Sign inDemoInstall

@prismatic-io/spectral

Package Overview
Dependencies
Maintainers
6
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismatic-io/spectral - npm Package Compare versions

Comparing version 7.8.0-preview3 to 7.8.0-preview4

4

dist/serverTypes/index.d.ts
/// <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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc