@prismatic-io/spectral 4.0.1 → 4.0.2
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/types/index.d.ts +1 -0
- package/dist/types/index.js +14 -0
- package/dist/types/server-types.d.ts +6 -6
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -10,10 +10,23 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
13
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
20
|
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
16
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.serverTypes = void 0;
|
|
17
30
|
__exportStar(require("./Credential"), exports);
|
|
18
31
|
__exportStar(require("./AuthorizationDefinition"), exports);
|
|
19
32
|
__exportStar(require("./ActionDefinition"), exports);
|
|
@@ -30,3 +43,4 @@ __exportStar(require("./TriggerPerformFunction"), exports);
|
|
|
30
43
|
__exportStar(require("./TriggerDefinition"), exports);
|
|
31
44
|
__exportStar(require("./HttpResponse"), exports);
|
|
32
45
|
__exportStar(require("./TriggerPayload"), exports);
|
|
46
|
+
exports.serverTypes = __importStar(require("./server-types"));
|
|
@@ -111,13 +111,13 @@ interface ServerPerformBranchingDataReturn extends ServerPerformDataReturn {
|
|
|
111
111
|
branch: string;
|
|
112
112
|
}
|
|
113
113
|
/** Required return type of all action perform functions */
|
|
114
|
-
declare type ActionPerformReturn = ServerPerformDataStructureReturn | ServerPerformBranchingDataStructureReturn | ServerPerformDataReturn | ServerPerformBranchingDataReturn | void;
|
|
114
|
+
export declare type ActionPerformReturn = ServerPerformDataStructureReturn | ServerPerformBranchingDataStructureReturn | ServerPerformDataReturn | ServerPerformBranchingDataReturn | void;
|
|
115
115
|
/** Definition of the function to perform when an Action is invoked. */
|
|
116
|
-
declare type ActionPerformFunction = (context: ActionContext, params: ActionInputParameters) => Promise<ActionPerformReturn>;
|
|
117
|
-
declare type TriggerResult = TriggerBranchingResult | TriggerBaseResult | void;
|
|
116
|
+
export declare type ActionPerformFunction = (context: ActionContext, params: ActionInputParameters) => Promise<ActionPerformReturn>;
|
|
117
|
+
export declare type TriggerResult = TriggerBranchingResult | TriggerBaseResult | void;
|
|
118
118
|
/** Definition of the function to perform when a Trigger is invoked. */
|
|
119
|
-
declare type TriggerPerformFunction = (context: ActionContext, payload: TriggerPayload, params: ActionInputParameters) => Promise<TriggerResult>;
|
|
120
|
-
declare type InputField = DefaultInputField | CodeInputField;
|
|
119
|
+
export declare type TriggerPerformFunction = (context: ActionContext, payload: TriggerPayload, params: ActionInputParameters) => Promise<TriggerResult>;
|
|
120
|
+
export declare type InputField = DefaultInputField | CodeInputField;
|
|
121
121
|
/** Defines attributes of a InputField. */
|
|
122
122
|
interface DefaultInputField {
|
|
123
123
|
/** Unique identifier of the InputField. Must be unique within an Action. */
|
|
@@ -146,7 +146,7 @@ interface CodeInputField extends DefaultInputField {
|
|
|
146
146
|
language?: string;
|
|
147
147
|
}
|
|
148
148
|
/** InputField type enumeration. */
|
|
149
|
-
declare type InputFieldType = "string" | "text" | "password" | "boolean" | "code" | "data" | "conditional";
|
|
149
|
+
export declare type InputFieldType = "string" | "text" | "password" | "boolean" | "code" | "data" | "conditional";
|
|
150
150
|
/** Binary data payload */
|
|
151
151
|
export interface DataPayload {
|
|
152
152
|
/** Raw binary data as a Buffer */
|