@prismatic-io/spectral 7.2.1 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,6 +49,7 @@ export interface ActionContext {
49
49
  instanceState: Record<string, unknown>;
50
50
  crossFlowState: Record<string, unknown>;
51
51
  executionState: Record<string, unknown>;
52
+ integrationState: Record<string, unknown>;
52
53
  stepId: string;
53
54
  executionId: string;
54
55
  webhookUrls: Record<string, string>;
@@ -89,6 +90,7 @@ interface TriggerBaseResult {
89
90
  instanceState?: Record<string, unknown>;
90
91
  crossFlowState?: Record<string, unknown>;
91
92
  executionState?: Record<string, unknown>;
93
+ integrationState?: Record<string, unknown>;
92
94
  failed?: boolean;
93
95
  error?: Record<string, unknown>;
94
96
  }
@@ -169,6 +171,7 @@ interface ServerPerformDataStructureReturn {
169
171
  instanceState?: Record<string, unknown>;
170
172
  crossFlowState?: Record<string, unknown>;
171
173
  executionState?: Record<string, unknown>;
174
+ integrationState?: Record<string, unknown>;
172
175
  failed?: boolean;
173
176
  error?: Record<string, unknown>;
174
177
  }
@@ -179,6 +182,7 @@ interface ServerPerformDataReturn {
179
182
  instanceState?: Record<string, unknown>;
180
183
  crossFlowState?: Record<string, unknown>;
181
184
  executionState?: Record<string, unknown>;
185
+ integrationState?: Record<string, unknown>;
182
186
  failed?: boolean;
183
187
  error?: Record<string, unknown>;
184
188
  }
package/dist/testing.js CHANGED
@@ -42,6 +42,7 @@ const baseActionContext = {
42
42
  instanceState: {},
43
43
  crossFlowState: {},
44
44
  executionState: {},
45
+ integrationState: {},
45
46
  stepId: "mockStepId",
46
47
  executionId: "mockExecutionId",
47
48
  webhookUrls: {
@@ -7,10 +7,12 @@ export interface ActionContext {
7
7
  logger: ActionLogger;
8
8
  /** A a flow-specific key/value store that may be used to store small amounts of data that is persisted between Instance executions */
9
9
  instanceState: Record<string, unknown>;
10
- /** An key/value store what is shared between flows on an Instance that may be used to store small amounts of data that is persisted between Instance executions */
10
+ /** A key/value store that is shared between flows on an Instance that may be used to store small amounts of data that is persisted between Instance executions */
11
11
  crossFlowState: Record<string, unknown>;
12
12
  /** A key/value store that may be used to store small amounts of data for use later during the execution */
13
13
  executionState: Record<string, unknown>;
14
+ /** A key/value store that is shared between all flows of an Instance for any version of an Integration that may be used to store small amounts of data that is persisted between Instance executions */
15
+ integrationState: Record<string, unknown>;
14
16
  /** A unique id that corresponds to the step on the Integration */
15
17
  stepId: string;
16
18
  /** A unique id that corresponds to the specific execution of the Integration */
@@ -12,6 +12,8 @@ export interface ActionPerformDataReturn<ReturnData> {
12
12
  crossFlowState?: Record<string, unknown>;
13
13
  /** An optional object, the keys and values of which will be persisted in the executionState and available for the duration of the execution */
14
14
  executionState?: Record<string, unknown>;
15
+ /** 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 */
16
+ integrationState?: Record<string, unknown>;
15
17
  /** A field populated by the Prismatic platform which indicates whether the action failed with an error during execution. */
16
18
  failed?: boolean;
17
19
  /** A field populated by the Prismatic platform which may refer to an object that contains data about any error that resulted in failure. */
@@ -12,6 +12,8 @@ export interface TriggerBaseResult {
12
12
  crossFlowState?: Record<string, unknown>;
13
13
  /** An optional object, the keys and values of which will be persisted in the executionState and available for the duration of the execution */
14
14
  executionState?: Record<string, unknown>;
15
+ /** 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 */
16
+ integrationState?: Record<string, unknown>;
15
17
  /** A field populated by the Prismatic platform which indicates whether the trigger failed with an error during execution. */
16
18
  failed?: boolean;
17
19
  /** A field populated by the Prismatic platform which may refer to an object that contains data about any error that resulted in failure. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "7.2.1",
3
+ "version": "7.3.1",
4
4
  "description": "Utility library for building Prismatic components",
5
5
  "keywords": [
6
6
  "prismatic"