@prismatic-io/spectral 5.3.1 → 5.4.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.
package/dist/testing.js
CHANGED
|
@@ -75,10 +75,17 @@ const defaultTriggerPayload = () => {
|
|
|
75
75
|
webhookApiKeys: {
|
|
76
76
|
"Flow 1": ["example-123", "example-456"],
|
|
77
77
|
},
|
|
78
|
+
invokeUrl: "https://example.com",
|
|
79
|
+
executionId: "executionId",
|
|
78
80
|
customer: {
|
|
81
|
+
id: "customerId",
|
|
79
82
|
name: "Customer 1",
|
|
80
83
|
externalId: "1234",
|
|
81
84
|
},
|
|
85
|
+
instance: {
|
|
86
|
+
id: "instanceId",
|
|
87
|
+
name: "Instance 1",
|
|
88
|
+
},
|
|
82
89
|
};
|
|
83
90
|
};
|
|
84
91
|
exports.defaultTriggerPayload = defaultTriggerPayload;
|
|
@@ -18,4 +18,4 @@ export interface ActionPerformBranchingDataReturn<ReturnData> extends ActionPerf
|
|
|
18
18
|
branch: string;
|
|
19
19
|
}
|
|
20
20
|
/** Required return type of all action perform functions */
|
|
21
|
-
export declare type ActionPerformReturn<AllowsBranching extends boolean, ReturnData
|
|
21
|
+
export declare type ActionPerformReturn<AllowsBranching extends boolean, ReturnData> = (AllowsBranching extends true ? ActionPerformBranchingDataReturn<ReturnData> : ActionPerformDataReturn<ReturnData>) | undefined;
|
|
@@ -22,8 +22,16 @@ export interface TriggerPayload {
|
|
|
22
22
|
webhookApiKeys: {
|
|
23
23
|
[key: string]: string[];
|
|
24
24
|
};
|
|
25
|
+
/** The URL that was used to invoke the execution. */
|
|
26
|
+
invokeUrl: string;
|
|
27
|
+
executionId: string;
|
|
25
28
|
customer: {
|
|
29
|
+
id: string | null;
|
|
26
30
|
externalId: string | null;
|
|
27
31
|
name: string | null;
|
|
28
32
|
};
|
|
33
|
+
instance: {
|
|
34
|
+
id: string | null;
|
|
35
|
+
name: string | null;
|
|
36
|
+
};
|
|
29
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismatic-io/spectral",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "Utility library for building Prismatic components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"prismatic"
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "https://github.com/prismatic-io/spectral.git"
|
|
17
17
|
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public",
|
|
20
|
+
"registry": "https://registry.npmjs.org/"
|
|
21
|
+
},
|
|
18
22
|
"license": "MIT",
|
|
19
23
|
"scripts": {
|
|
20
24
|
"clean": "rm -rf dist",
|
|
@@ -73,14 +77,15 @@
|
|
|
73
77
|
]
|
|
74
78
|
},
|
|
75
79
|
"plugins": [
|
|
76
|
-
"@typescript-eslint"
|
|
80
|
+
"@typescript-eslint",
|
|
81
|
+
"prettier"
|
|
77
82
|
],
|
|
78
83
|
"extends": [
|
|
79
84
|
"eslint:recommended",
|
|
80
85
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
81
86
|
"plugin:@typescript-eslint/recommended",
|
|
82
87
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
83
|
-
"prettier"
|
|
88
|
+
"plugin:prettier/recommended"
|
|
84
89
|
],
|
|
85
90
|
"rules": {
|
|
86
91
|
"@typescript-eslint/explicit-function-return-type": "off",
|