@prismatic-io/spectral 10.6.4 → 10.6.6
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/clients/http/index.d.ts +2 -3
- package/dist/clients/http/inputs.d.ts +1 -1
- package/dist/component.d.ts +8 -0
- package/dist/component.js +38 -0
- package/dist/generators/componentManifest/createActions.d.ts +1 -1
- package/dist/generators/componentManifest/createConnections.d.ts +1 -1
- package/dist/generators/componentManifest/createConnections.js +1 -1
- package/dist/generators/componentManifest/createDataSources.d.ts +1 -1
- package/dist/generators/componentManifest/createDataSources.js +1 -1
- package/dist/generators/componentManifest/createTriggers.d.ts +1 -1
- package/dist/generators/componentManifest/getInputs.js +5 -5
- package/dist/generators/componentManifest/helpers.d.ts +1 -1
- package/dist/generators/componentManifest/templates/connections/connection.ts.ejs +1 -1
- package/dist/generators/componentManifest/templates/dataSources/dataSource.ts.ejs +1 -1
- package/dist/generators/utils/createDependencyImports.d.ts +1 -1
- package/dist/generators/utils/createDependencyImports.js +4 -2
- package/dist/index.d.ts +1 -1
- package/dist/integration.d.ts +7 -0
- package/dist/integration.js +35 -0
- package/dist/serverTypes/asyncContext.d.ts +1 -1
- package/dist/serverTypes/convertIntegration.js +12 -1
- package/dist/testing.d.ts +2 -2
- package/dist/types/ActionDefinition.d.ts +5 -2
- package/dist/types/ActionInputParameters.d.ts +2 -3
- package/dist/types/ActionPerformFunction.d.ts +12 -2
- package/dist/types/ComponentDefinition.d.ts +6 -2
- package/dist/types/ComponentManifest.d.ts +3 -1
- package/dist/types/ComponentRegistry.d.ts +2 -1
- package/dist/types/ConfigPages.d.ts +2 -2
- package/dist/types/ConfigVars.d.ts +8 -2
- package/dist/types/ConfigVars.js +3 -3
- package/dist/types/ConnectionDefinition.d.ts +2 -1
- package/dist/types/DataSourceDefinition.d.ts +4 -1
- package/dist/types/DataSourcePerformFunction.d.ts +4 -1
- package/dist/types/DataSourceResult.d.ts +1 -1
- package/dist/types/Inputs.d.ts +3 -3
- package/dist/types/IntegrationDefinition.d.ts +16 -3
- package/dist/types/PollingTriggerDefinition.d.ts +9 -1
- package/dist/types/ScopedConfigVars.js +3 -3
- package/dist/types/TriggerDefinition.d.ts +6 -1
- package/dist/types/TriggerEventFunction.d.ts +3 -1
- package/dist/types/TriggerPayload.d.ts +5 -1
- package/dist/types/TriggerPerformFunction.d.ts +5 -1
- package/dist/types/TriggerResult.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -14
- package/dist/types/typeExportComponent.d.ts +25 -0
- package/dist/types/typeExportComponent.js +54 -0
- package/dist/types/typeExportIntegration.d.ts +27 -0
- package/dist/types/typeExportIntegration.js +43 -0
- package/dist/util.d.ts +2 -0
- package/dist/util.js +16 -0
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { AxiosResponse } from "axios";
|
|
2
|
-
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
1
|
+
import type { AxiosInstance, AxiosResponse, AxiosRequestConfig } from "axios";
|
|
3
2
|
import { IAxiosRetryConfig } from "axios-retry";
|
|
4
|
-
import { ActionInputParameters } from "../../types";
|
|
3
|
+
import type { ActionInputParameters } from "../../types/ActionInputParameters";
|
|
5
4
|
import { inputs } from "./inputs";
|
|
6
5
|
export type HttpClient = AxiosInstance;
|
|
7
6
|
interface RetryConfig extends Omit<IAxiosRetryConfig, "retryDelay"> {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module contains functions to help developers create custom components
|
|
3
|
+
* to run on the Prismatic platform.
|
|
4
|
+
*/
|
|
5
|
+
export { component, action, trigger, pollingTrigger, dataSource, input, connection, onPremConnection, oauth2Connection, } from "./index";
|
|
6
|
+
export { default as util } from "./util";
|
|
7
|
+
export * from "./types/typeExportComponent";
|
|
8
|
+
export * from "./errors";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This module contains functions to help developers create custom components
|
|
4
|
+
* to run on the Prismatic platform.
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.util = exports.oauth2Connection = exports.onPremConnection = exports.connection = exports.input = exports.dataSource = exports.pollingTrigger = exports.trigger = exports.action = exports.component = void 0;
|
|
25
|
+
var index_1 = require("./index");
|
|
26
|
+
Object.defineProperty(exports, "component", { enumerable: true, get: function () { return index_1.component; } });
|
|
27
|
+
Object.defineProperty(exports, "action", { enumerable: true, get: function () { return index_1.action; } });
|
|
28
|
+
Object.defineProperty(exports, "trigger", { enumerable: true, get: function () { return index_1.trigger; } });
|
|
29
|
+
Object.defineProperty(exports, "pollingTrigger", { enumerable: true, get: function () { return index_1.pollingTrigger; } });
|
|
30
|
+
Object.defineProperty(exports, "dataSource", { enumerable: true, get: function () { return index_1.dataSource; } });
|
|
31
|
+
Object.defineProperty(exports, "input", { enumerable: true, get: function () { return index_1.input; } });
|
|
32
|
+
Object.defineProperty(exports, "connection", { enumerable: true, get: function () { return index_1.connection; } });
|
|
33
|
+
Object.defineProperty(exports, "onPremConnection", { enumerable: true, get: function () { return index_1.onPremConnection; } });
|
|
34
|
+
Object.defineProperty(exports, "oauth2Connection", { enumerable: true, get: function () { return index_1.oauth2Connection; } });
|
|
35
|
+
var util_1 = require("./util");
|
|
36
|
+
Object.defineProperty(exports, "util", { enumerable: true, get: function () { return __importDefault(util_1).default; } });
|
|
37
|
+
__exportStar(require("./types/typeExportComponent"), exports);
|
|
38
|
+
__exportStar(require("./errors"), exports);
|
|
@@ -43,7 +43,7 @@ const createConnections = (_a) => __awaiter(void 0, [_a], void 0, function* ({ c
|
|
|
43
43
|
const imports = (0, getImports_1.getImports)({
|
|
44
44
|
inputs,
|
|
45
45
|
additionalImports: {
|
|
46
|
-
"@prismatic-io/spectral": ["ConfigVarExpression", "ConfigVarVisibility"],
|
|
46
|
+
"@prismatic-io/spectral/dist/types": ["ConfigVarExpression", "ConfigVarVisibility"],
|
|
47
47
|
},
|
|
48
48
|
});
|
|
49
49
|
const onPremAvailable = connection.inputs.some((input) => input.onPremControlled || input.onPremiseControlled);
|
|
@@ -43,7 +43,7 @@ const createDataSources = (_a) => __awaiter(void 0, [_a], void 0, function* ({ c
|
|
|
43
43
|
const imports = (0, getImports_1.getImports)({
|
|
44
44
|
inputs,
|
|
45
45
|
additionalImports: {
|
|
46
|
-
"@prismatic-io/spectral": ["ConfigVarExpression", "TemplateExpression"],
|
|
46
|
+
"@prismatic-io/spectral/dist/types": ["ConfigVarExpression", "TemplateExpression"],
|
|
47
47
|
},
|
|
48
48
|
});
|
|
49
49
|
return yield renderDataSource({
|
|
@@ -43,23 +43,23 @@ exports.INPUT_TYPE_MAP = {
|
|
|
43
43
|
boolean: "boolean",
|
|
44
44
|
code: "string",
|
|
45
45
|
conditional: {
|
|
46
|
-
module: "@prismatic-io/spectral",
|
|
46
|
+
module: "@prismatic-io/spectral/dist/util",
|
|
47
47
|
type: "ConditionalExpression",
|
|
48
48
|
},
|
|
49
49
|
connection: {
|
|
50
|
-
module: "@prismatic-io/spectral",
|
|
50
|
+
module: "@prismatic-io/spectral/dist/types",
|
|
51
51
|
type: "Connection",
|
|
52
52
|
},
|
|
53
53
|
objectSelection: {
|
|
54
|
-
module: "@prismatic-io/spectral",
|
|
54
|
+
module: "@prismatic-io/spectral/dist/types",
|
|
55
55
|
type: "ObjectSelection",
|
|
56
56
|
},
|
|
57
57
|
objectFieldMap: {
|
|
58
|
-
module: "@prismatic-io/spectral",
|
|
58
|
+
module: "@prismatic-io/spectral/dist/types",
|
|
59
59
|
type: "ObjectFieldMap",
|
|
60
60
|
},
|
|
61
61
|
jsonForm: {
|
|
62
|
-
module: "@prismatic-io/spectral",
|
|
62
|
+
module: "@prismatic-io/spectral/dist/types",
|
|
63
63
|
type: "JSONForm",
|
|
64
64
|
},
|
|
65
65
|
dynamicObjectSelection: "string",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const helpers: {
|
|
2
|
-
createDependencyImports: ({ imports }: import("../utils/createDependencyImports").CreateDependencyImportsProps) => string
|
|
2
|
+
createDependencyImports: ({ imports }: import("../utils/createDependencyImports").CreateDependencyImportsProps) => string;
|
|
3
3
|
capitalizeFirstLetter: (value: string) => string;
|
|
4
4
|
generatePackageJsonVersion: () => string;
|
|
5
5
|
formatType: (key: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<%- include('../partials/generatedHeader.ejs') -%>
|
|
2
|
-
import { connectionConfigVar } from "@prismatic-io/spectral";
|
|
2
|
+
import { connectionConfigVar } from "@prismatic-io/spectral/integration";
|
|
3
3
|
<%- include('../partials/imports.ejs', { imports, helpers }) %>
|
|
4
4
|
|
|
5
5
|
export interface <%= connection.typeInterface %>Values {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<%- include('../partials/generatedHeader.ejs') -%>
|
|
2
|
-
import { dataSourceConfigVar } from "@prismatic-io/spectral";
|
|
2
|
+
import { dataSourceConfigVar } from "@prismatic-io/spectral/integration";
|
|
3
3
|
<%- include('../partials/imports.ejs', { imports, helpers }) %>
|
|
4
4
|
|
|
5
5
|
export interface <%= dataSource.typeInterface %>Values {
|
|
@@ -2,4 +2,4 @@ import type { Imports } from "../componentManifest/getImports";
|
|
|
2
2
|
export interface CreateDependencyImportsProps {
|
|
3
3
|
imports: Imports;
|
|
4
4
|
}
|
|
5
|
-
export declare const createDependencyImports: ({ imports }: CreateDependencyImportsProps) => string
|
|
5
|
+
export declare const createDependencyImports: ({ imports }: CreateDependencyImportsProps) => string;
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createDependencyImports = void 0;
|
|
4
4
|
const createDependencyImports = ({ imports }) => {
|
|
5
|
-
return Object.entries(imports)
|
|
5
|
+
return Object.entries(imports)
|
|
6
|
+
.map(([module, types]) => {
|
|
6
7
|
return `import type { ${types.join(", ")} } from "${module}";`;
|
|
7
|
-
})
|
|
8
|
+
})
|
|
9
|
+
.join("\n");
|
|
8
10
|
};
|
|
9
11
|
exports.createDependencyImports = createDependencyImports;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { ActionDefinition, InputFieldDefinition, ComponentDefinition, DefaultConnectionDefinition, OAuth2ConnectionDefinition, Inputs, TriggerDefinition, ActionPerformReturn, TriggerResult, DataSourceDefinition, DataSourceType, IntegrationDefinition, Flow, ConfigPage, StandardConfigVar, ConnectionConfigVar, ConfigVarResultCollection, TriggerPayload, DataSourceConfigVar, OnPremConnectionDefinition, ComponentManifest, OrganizationActivatedConnectionConfigVar, CustomerActivatedConnectionConfigVar } from "./types";
|
|
7
7
|
import { convertComponent } from "./serverTypes/convertComponent";
|
|
8
8
|
import { convertIntegration } from "./serverTypes/convertIntegration";
|
|
9
|
-
import { PollingTriggerDefinition } from "./types/PollingTriggerDefinition";
|
|
9
|
+
import type { PollingTriggerDefinition } from "./types/PollingTriggerDefinition";
|
|
10
10
|
/**
|
|
11
11
|
* This function creates a code-native integration object that can be
|
|
12
12
|
* imported into Prismatic. For information on using this function to
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module contains functions to help developers create integrations
|
|
3
|
+
* that can run on the Prismatic platform.
|
|
4
|
+
*/
|
|
5
|
+
export { integration, flow, configVar, dataSourceConfigVar, connectionConfigVar, customerActivatedConnection, organizationActivatedConnection, componentManifest, componentManifests, onPremConnection, oauth2Connection, } from "./index";
|
|
6
|
+
export * from "./types/typeExportIntegration";
|
|
7
|
+
export * from "./errors";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This module contains functions to help developers create integrations
|
|
4
|
+
* that can run on the Prismatic platform.
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.oauth2Connection = exports.onPremConnection = exports.componentManifests = exports.componentManifest = exports.organizationActivatedConnection = exports.customerActivatedConnection = exports.connectionConfigVar = exports.dataSourceConfigVar = exports.configVar = exports.flow = exports.integration = void 0;
|
|
22
|
+
var index_1 = require("./index");
|
|
23
|
+
Object.defineProperty(exports, "integration", { enumerable: true, get: function () { return index_1.integration; } });
|
|
24
|
+
Object.defineProperty(exports, "flow", { enumerable: true, get: function () { return index_1.flow; } });
|
|
25
|
+
Object.defineProperty(exports, "configVar", { enumerable: true, get: function () { return index_1.configVar; } });
|
|
26
|
+
Object.defineProperty(exports, "dataSourceConfigVar", { enumerable: true, get: function () { return index_1.dataSourceConfigVar; } });
|
|
27
|
+
Object.defineProperty(exports, "connectionConfigVar", { enumerable: true, get: function () { return index_1.connectionConfigVar; } });
|
|
28
|
+
Object.defineProperty(exports, "customerActivatedConnection", { enumerable: true, get: function () { return index_1.customerActivatedConnection; } });
|
|
29
|
+
Object.defineProperty(exports, "organizationActivatedConnection", { enumerable: true, get: function () { return index_1.organizationActivatedConnection; } });
|
|
30
|
+
Object.defineProperty(exports, "componentManifest", { enumerable: true, get: function () { return index_1.componentManifest; } });
|
|
31
|
+
Object.defineProperty(exports, "componentManifests", { enumerable: true, get: function () { return index_1.componentManifests; } });
|
|
32
|
+
Object.defineProperty(exports, "onPremConnection", { enumerable: true, get: function () { return index_1.onPremConnection; } });
|
|
33
|
+
Object.defineProperty(exports, "oauth2Connection", { enumerable: true, get: function () { return index_1.oauth2Connection; } });
|
|
34
|
+
__exportStar(require("./types/typeExportIntegration"), exports);
|
|
35
|
+
__exportStar(require("./errors"), exports);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ActionContext } from "../types";
|
|
1
|
+
import type { ActionContext } from "../types/ActionPerformFunction";
|
|
2
2
|
export declare function runWithContext<T>(context: ActionContext, fn: () => T | Promise<T>): T | Promise<T>;
|
|
3
3
|
export declare function requireContext(): ActionContext;
|
|
@@ -346,6 +346,7 @@ const convertFlow = (flow, componentRegistry, referenceKey) => {
|
|
|
346
346
|
},
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
|
+
let hasSchedule = false;
|
|
349
350
|
if ("schedule" in flow && typeof flow.schedule === "object") {
|
|
350
351
|
const { schedule } = flow;
|
|
351
352
|
triggerStep.schedule = {
|
|
@@ -357,10 +358,20 @@ const convertFlow = (flow, componentRegistry, referenceKey) => {
|
|
|
357
358
|
},
|
|
358
359
|
};
|
|
359
360
|
result.schedule = undefined;
|
|
361
|
+
hasSchedule = true;
|
|
360
362
|
}
|
|
361
363
|
if ("queueConfig" in flow && typeof flow.queueConfig === "object") {
|
|
362
364
|
const { queueConfig } = flow;
|
|
363
|
-
|
|
365
|
+
if (hasSchedule && queueConfig.usesFifoQueue) {
|
|
366
|
+
throw new Error(`${flow.name} has a schedule & usesFifoQueue set to true. FIFO queues cannot be used with scheduled flows.`);
|
|
367
|
+
}
|
|
368
|
+
else if (!hasSchedule && queueConfig.singletonExecutions) {
|
|
369
|
+
throw new Error(`${flow.name} is configured for singletonExecutions but has no schedule. Unscheduled flows cannot be configured for singleton executions.`);
|
|
370
|
+
}
|
|
371
|
+
else if (queueConfig.usesFifoQueue && queueConfig.singletonExecutions) {
|
|
372
|
+
throw new Error(`${flow.name} is configured for both FIFO queues and singleton executions, but these options are mutually exclusive. Please choose one.`);
|
|
373
|
+
}
|
|
374
|
+
result.queueConfig = Object.assign(Object.assign({ usesFifoQueue: false }, queueConfig), (queueConfig.dedupeIdField
|
|
364
375
|
? {
|
|
365
376
|
dedupeIdField: {
|
|
366
377
|
type: "reference",
|
package/dist/testing.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* information on unit testing, check out our docs:
|
|
5
5
|
* https://prismatic.io/docs/custom-connectors/unit-testing/
|
|
6
6
|
*/
|
|
7
|
-
import { ActionPerformReturn as ServerActionPerformReturn, TriggerPayload, TriggerResult, ConnectionValue, ActionLogger, Component, DataSourceResult, DataSourceContext } from "./serverTypes";
|
|
8
|
-
import { ActionContext, ConnectionDefinition, ActionDefinition, TriggerDefinition, Inputs, ActionInputParameters, DataSourceDefinition, ActionPerformReturn as InvokeActionPerformReturn, TriggerResult as InvokeTriggerResult, DataSourceType, DataSourceResult as InvokeDataSourceResult, TriggerEventFunctionReturn, Flow, ConfigVarResultCollection, ComponentManifest } from "./types";
|
|
7
|
+
import type { ActionPerformReturn as ServerActionPerformReturn, TriggerPayload, TriggerResult, ConnectionValue, ActionLogger, Component, DataSourceResult, DataSourceContext } from "./serverTypes";
|
|
8
|
+
import type { ActionContext, ConnectionDefinition, ActionDefinition, TriggerDefinition, Inputs, ActionInputParameters, DataSourceDefinition, ActionPerformReturn as InvokeActionPerformReturn, TriggerResult as InvokeTriggerResult, DataSourceType, DataSourceResult as InvokeDataSourceResult, TriggerEventFunctionReturn, Flow, ConfigVarResultCollection, ComponentManifest } from "./types";
|
|
9
9
|
/**
|
|
10
10
|
* Create a test connection to use when testing your custom component locally. See
|
|
11
11
|
* https://prismatic.io/docs/custom-connectors/unit-testing/#providing-test-connection-inputs-to-an-action-test
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ActionPerformFunction } from "./ActionPerformFunction";
|
|
2
|
+
import type { ActionPerformReturn } from "./ActionPerformReturn";
|
|
3
|
+
import type { ComponentManifestAction } from "./ComponentManifest";
|
|
4
|
+
import type { ActionDisplayDefinition } from "./DisplayDefinition";
|
|
5
|
+
import type { ConfigVarResultCollection, Inputs } from "./Inputs";
|
|
3
6
|
/**
|
|
4
7
|
* ActionDefinition is the type of the object that is passed in to `action` function to
|
|
5
8
|
* define a component action. See
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { InputFieldCollection, InputCleanFunction, Connection, KeyValuePair } from "./Inputs";
|
|
1
|
+
import type { ConditionalExpression } from "./conditional-logic";
|
|
2
|
+
import type { Connection, InputCleanFunction, InputFieldCollection, Inputs, KeyValuePair } from "./Inputs";
|
|
4
3
|
/**
|
|
5
4
|
* Collection of input parameters.
|
|
6
5
|
* Inputs can be static values, references to config variables, or
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import { AxiosRequestConfig, AxiosResponse } from "axios";
|
|
2
|
-
import {
|
|
1
|
+
import type { AxiosRequestConfig, AxiosResponse } from "axios";
|
|
2
|
+
import type { ConfigVarResultCollection, Inputs } from "./Inputs";
|
|
3
|
+
import type { ComponentManifest } from "./ComponentManifest";
|
|
4
|
+
import type { ActionPerformReturn } from "./ActionPerformReturn";
|
|
5
|
+
import type { ActionInputParameters } from "./ActionInputParameters";
|
|
6
|
+
import type { ActionLogger } from "./ActionLogger";
|
|
7
|
+
import type { CustomerAttributes } from "./CustomerAttributes";
|
|
8
|
+
import type { InstanceAttributes } from "./InstanceAttributes";
|
|
9
|
+
import type { UserAttributes } from "./UserAttributes";
|
|
10
|
+
import type { IntegrationAttributes } from "./IntegrationAttributes";
|
|
11
|
+
import type { FlowAttributes } from "./FlowAttributes";
|
|
12
|
+
import type { FlowSchemas } from "./FlowSchemas";
|
|
3
13
|
interface StandardLineage {
|
|
4
14
|
componentActionKey: string;
|
|
5
15
|
executionId: string;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { ActionDefinition
|
|
2
|
-
import {
|
|
1
|
+
import type { ActionDefinition } from "./ActionDefinition";
|
|
2
|
+
import type { ConnectionDefinition } from "./ConnectionDefinition";
|
|
3
|
+
import type { DataSourceDefinition } from "./DataSourceDefinition";
|
|
4
|
+
import type { ComponentDisplayDefinition } from "./DisplayDefinition";
|
|
5
|
+
import type { PollingTriggerDefinition } from "./PollingTriggerDefinition";
|
|
6
|
+
import type { TriggerDefinition } from "./TriggerDefinition";
|
|
3
7
|
export type ErrorHandler = (error: unknown) => unknown | Promise<unknown>;
|
|
4
8
|
export interface ComponentHooks {
|
|
5
9
|
/**
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { CollectionType
|
|
1
|
+
import type { CollectionType } from "./ConfigVars";
|
|
2
|
+
import type { DataSourceType } from "./DataSourceResult";
|
|
3
|
+
import type { InputFieldType } from "./Inputs";
|
|
2
4
|
export interface ComponentManifest {
|
|
3
5
|
key: string;
|
|
4
6
|
public: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ComponentManifest
|
|
1
|
+
import type { ComponentManifest } from "./ComponentManifest";
|
|
2
|
+
import type { ConfigVarVisibility } from "./ConfigVars";
|
|
2
3
|
import type { Prettify, UnionToIntersection } from "./utils";
|
|
3
4
|
/**
|
|
4
5
|
* Root ComponentRegistry type exposed for augmentation.
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { ValidationMode } from "./jsonforms/ValidationMode";
|
|
2
|
-
import { type DataSourceDefinition, type ConnectionDefinition, type Inputs, type DataSourceType, type Connection, type JSONForm, type ObjectFieldMap, type ObjectSelection, type ConfigVarResultCollection, type Schedule, type CollectionDataSourceType, type DataSourceReference, type ConfigPage, type ConfigPages, type ConfigPageElement, type ComponentRegistryDataSource, type ComponentRegistryConnection, type UserLevelConfigPages, type OrganizationActivatedConnectionConfigVar, type ScopedConfigVarMap } from ".";
|
|
1
|
+
import type { ValidationMode } from "./jsonforms/ValidationMode";
|
|
3
2
|
import type { Prettify, UnionToIntersection } from "./utils";
|
|
3
|
+
import type { ComponentRegistryConnection, ComponentRegistryDataSource, DataSourceReference } from "./ComponentRegistry";
|
|
4
|
+
import type { ConfigVarResultCollection, Connection, Inputs, JSONForm, ObjectFieldMap, ObjectSelection, Schedule } from "./Inputs";
|
|
5
|
+
import type { CollectionDataSourceType, DataSourceType } from "./DataSourceResult";
|
|
6
|
+
import type { DataSourceDefinition } from "./DataSourceDefinition";
|
|
7
|
+
import type { ConnectionDefinition } from "./ConnectionDefinition";
|
|
8
|
+
import type { OrganizationActivatedConnectionConfigVar, ScopedConfigVarMap } from "./ScopedConfigVars";
|
|
9
|
+
import type { ConfigPage, ConfigPageElement, ConfigPages, UserLevelConfigPages } from "./ConfigPages";
|
|
4
10
|
/** Supported data types for config variables. */
|
|
5
11
|
export type ConfigVarDataType = "string" | "date" | "timestamp" | "picklist" | "code" | "boolean" | "number" | "schedule" | "objectSelection" | "objectFieldMap" | "jsonForm" | "htmlElement";
|
|
6
12
|
type ConfigVarDataTypeDefaultValueMap<TMap extends Record<ConfigVarDataType, unknown> = {
|
package/dist/types/ConfigVars.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isConnectionReferenceConfigVar = exports.isConnectionDefinitionConfigVar = exports.isDataSourceReferenceConfigVar = exports.isDataSourceDefinitionConfigVar = exports.isJsonFormDataSourceConfigVar = exports.isJsonFormConfigVar = exports.isScheduleConfigVar = exports.isCodeConfigVar = exports.isHtmlElementConfigVar = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ComponentRegistry_1 = require("./ComponentRegistry");
|
|
5
5
|
const isHtmlElementConfigVar = (cv) => "dataType" in cv && cv.dataType === "htmlElement";
|
|
6
6
|
exports.isHtmlElementConfigVar = isHtmlElementConfigVar;
|
|
7
7
|
const isCodeConfigVar = (cv) => "dataType" in cv && cv.dataType === "code";
|
|
@@ -21,7 +21,7 @@ const isDataSourceReferenceConfigVar = (
|
|
|
21
21
|
cv) => typeof cv === "object" &&
|
|
22
22
|
cv !== null &&
|
|
23
23
|
"dataSource" in cv &&
|
|
24
|
-
(0,
|
|
24
|
+
(0, ComponentRegistry_1.isComponentReference)(cv.dataSource);
|
|
25
25
|
exports.isDataSourceReferenceConfigVar = isDataSourceReferenceConfigVar;
|
|
26
26
|
const isConnectionDefinitionConfigVar = (cv) => "dataType" in cv && cv.dataType === "connection" && "inputs" in cv;
|
|
27
27
|
exports.isConnectionDefinitionConfigVar = isConnectionDefinitionConfigVar;
|
|
@@ -32,5 +32,5 @@ const isConnectionReferenceConfigVar = (
|
|
|
32
32
|
cv) => typeof cv === "object" &&
|
|
33
33
|
cv !== null &&
|
|
34
34
|
"connection" in cv &&
|
|
35
|
-
(0,
|
|
35
|
+
(0, ComponentRegistry_1.isComponentReference)(cv.connection);
|
|
36
36
|
exports.isConnectionReferenceConfigVar = isConnectionReferenceConfigVar;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ConnectionInput, ConnectionTemplateInputField, OnPremConnectionInput } from "./Inputs";
|
|
2
|
+
import type { ConnectionDisplayDefinition } from "./DisplayDefinition";
|
|
2
3
|
export declare enum OAuth2Type {
|
|
3
4
|
/**
|
|
4
5
|
* This connection uses the OAuth 2.0 client credentials flow. See
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DataSourcePerformFunction } from "./DataSourcePerformFunction";
|
|
2
|
+
import type { DataSourceType } from "./DataSourceResult";
|
|
3
|
+
import type { ActionDisplayDefinition } from "./DisplayDefinition";
|
|
4
|
+
import type { ConfigVarResultCollection, Inputs } from "./Inputs";
|
|
2
5
|
/**
|
|
3
6
|
* DataSourceDefinition is the type of the object that is passed in to `dataSource` function to
|
|
4
7
|
* define a data source. See
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ActionInputParameters } from "./ActionInputParameters";
|
|
2
|
+
import type { ActionContext } from "./ActionPerformFunction";
|
|
3
|
+
import type { DataSourceResult, DataSourceType } from "./DataSourceResult";
|
|
4
|
+
import type { ConfigVarResultCollection, Inputs } from "./Inputs";
|
|
2
5
|
/** Context provided to perform method containing helpers and contextual data. */
|
|
3
6
|
export type DataSourceContext<TConfigVars extends ConfigVarResultCollection = ConfigVarResultCollection> = Pick<ActionContext<TConfigVars>, "logger" | "customer" | "instance" | "user" | "configVars">;
|
|
4
7
|
/** Definition of the function to perform when a Data Source is invoked. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONForm, ObjectFieldMap, ObjectSelection } from "./Inputs";
|
|
2
2
|
/** The type of field that is appropriate for rendering the data that is the result of the data source perform function. */
|
|
3
3
|
type DataSourceTypeMap = {
|
|
4
4
|
string: string;
|
package/dist/types/Inputs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConditionalExpression } from "./conditional-logic";
|
|
2
|
-
import { JsonSchema } from "./jsonforms/JsonSchema";
|
|
3
|
-
import { UISchemaElement } from "./jsonforms/UISchemaElement";
|
|
1
|
+
import type { ConditionalExpression } from "./conditional-logic";
|
|
2
|
+
import type { JsonSchema } from "./jsonforms/JsonSchema";
|
|
3
|
+
import type { UISchemaElement } from "./jsonforms/UISchemaElement";
|
|
4
4
|
/**
|
|
5
5
|
* KeyValuePair input parameter type.
|
|
6
6
|
* This allows users to input multiple keys / values as an input.
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ActionContext, ActionPerformFunction } from "./ActionPerformFunction";
|
|
2
|
+
import type { ActionPerformReturn } from "./ActionPerformReturn";
|
|
3
|
+
import type { ComponentRegistry, ConfigVarExpression, TriggerReference, ValueExpression } from "./ComponentRegistry";
|
|
4
|
+
import type { ConfigPages, UserLevelConfigPages } from "./ConfigPages";
|
|
5
|
+
import type { ConfigVars } from "./ConfigVars";
|
|
6
|
+
import type { FlowDefinitionFlowSchema } from "./FlowSchemas";
|
|
7
|
+
import type { Inputs } from "./Inputs";
|
|
8
|
+
import type { ScopedConfigVarMap } from "./ScopedConfigVars";
|
|
9
|
+
import type { TriggerEventFunction } from "./TriggerEventFunction";
|
|
10
|
+
import type { TriggerPayload } from "./TriggerPayload";
|
|
11
|
+
import type { TriggerPerformFunction } from "./TriggerPerformFunction";
|
|
12
|
+
import type { TriggerResult } from "./TriggerResult";
|
|
2
13
|
/**
|
|
3
14
|
* Defines attributes of a code-native integration. See
|
|
4
15
|
* https://prismatic.io/docs/integrations/code-native/
|
|
@@ -149,10 +160,12 @@ export type RetryConfig = {
|
|
|
149
160
|
};
|
|
150
161
|
/** Defines attributes of a retry configuration used by a flow of an integration. */
|
|
151
162
|
export type QueueConfig = {
|
|
152
|
-
/** Determines whether the flow should be executed using FIFO ordering. */
|
|
153
|
-
usesFifoQueue
|
|
163
|
+
/** Determines whether the flow should be executed using FIFO ordering. Not valid for synchonous or scheduled flows. */
|
|
164
|
+
usesFifoQueue?: boolean;
|
|
154
165
|
/** Reference to the field in the flow's trigger return payload; used to determine whether to queue the execution. */
|
|
155
166
|
dedupeIdField?: string;
|
|
167
|
+
/** Determines whether the flow should be setup for singleton executions. Only valid for scheduled/polling trigger-based flows. */
|
|
168
|
+
singletonExecutions?: boolean;
|
|
156
169
|
};
|
|
157
170
|
/** Defines attributes of a step error configuration used to determine how to handle errors during flow step execution. */
|
|
158
171
|
export type StepErrorConfig = {
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActionDefinition } from "./ActionDefinition";
|
|
2
|
+
import type { ActionInputParameters } from "./ActionInputParameters";
|
|
3
|
+
import type { ActionContext } from "./ActionPerformFunction";
|
|
4
|
+
import type { ActionPerformReturn } from "./ActionPerformReturn";
|
|
5
|
+
import type { ActionDisplayDefinition } from "./DisplayDefinition";
|
|
6
|
+
import type { ConfigVarResultCollection, Inputs } from "./Inputs";
|
|
7
|
+
import type { TriggerEventFunction } from "./TriggerEventFunction";
|
|
8
|
+
import type { TriggerPayload } from "./TriggerPayload";
|
|
9
|
+
import type { TriggerResult } from "./TriggerResult";
|
|
2
10
|
export interface PollingContext<TInputs extends Inputs = Inputs, TConfigVars extends ConfigVarResultCollection = ConfigVarResultCollection> extends ActionContext<TConfigVars> {
|
|
3
11
|
polling: {
|
|
4
12
|
invokeAction: (params: ActionInputParameters<TInputs>) => Promise<ActionPerformReturn<boolean, any>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isConnectionScopedConfigVar = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ConfigVars_1 = require("./ConfigVars");
|
|
5
5
|
const isConnectionScopedConfigVar = (cv) => {
|
|
6
6
|
if (!cv || typeof cv !== "object" || Array.isArray(cv)) {
|
|
7
7
|
return false;
|
|
@@ -9,7 +9,7 @@ const isConnectionScopedConfigVar = (cv) => {
|
|
|
9
9
|
if (!("dataType" in cv) || cv.dataType !== "connection") {
|
|
10
10
|
return false;
|
|
11
11
|
}
|
|
12
|
-
return (!(0,
|
|
13
|
-
!(0,
|
|
12
|
+
return (!(0, ConfigVars_1.isConnectionDefinitionConfigVar)(cv) &&
|
|
13
|
+
!(0, ConfigVars_1.isConnectionReferenceConfigVar)(cv));
|
|
14
14
|
};
|
|
15
15
|
exports.isConnectionScopedConfigVar = isConnectionScopedConfigVar;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { ActionDisplayDefinition
|
|
1
|
+
import type { ActionDisplayDefinition } from "./DisplayDefinition";
|
|
2
|
+
import type { ConfigVarResultCollection, Inputs } from "./Inputs";
|
|
3
|
+
import type { TriggerEventFunction } from "./TriggerEventFunction";
|
|
4
|
+
import type { TriggerPayload } from "./TriggerPayload";
|
|
5
|
+
import type { TriggerPerformFunction } from "./TriggerPerformFunction";
|
|
6
|
+
import type { TriggerResult } from "./TriggerResult";
|
|
2
7
|
declare const optionChoices: readonly ["invalid", "valid", "required"];
|
|
3
8
|
export type TriggerOptionChoice = (typeof optionChoices)[number];
|
|
4
9
|
export declare const TriggerOptionChoices: TriggerOptionChoice[];
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ActionInputParameters } from "./ActionInputParameters";
|
|
2
|
+
import type { ActionContext } from "./ActionPerformFunction";
|
|
3
|
+
import type { ConfigVarResultCollection, Inputs } from "./Inputs";
|
|
2
4
|
export type TriggerEventFunctionReturn = {
|
|
3
5
|
/** An optional object, the keys and values of which will be persisted in the flow-specific instanceState and available for subsequent actions and executions. */
|
|
4
6
|
instanceState?: Record<string, unknown>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CustomerAttributes } from "./CustomerAttributes";
|
|
2
|
+
import type { FlowAttributes } from "./FlowAttributes";
|
|
3
|
+
import type { InstanceAttributes } from "./InstanceAttributes";
|
|
4
|
+
import type { IntegrationAttributes } from "./IntegrationAttributes";
|
|
5
|
+
import type { UserAttributes } from "./UserAttributes";
|
|
2
6
|
/** Represents a Trigger Payload, which is data passed into a Trigger to invoke an Integration execution. */
|
|
3
7
|
export interface TriggerPayload {
|
|
4
8
|
/** The headers sent in the webhook request. */
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ActionInputParameters } from "./ActionInputParameters";
|
|
2
|
+
import type { ActionContext } from "./ActionPerformFunction";
|
|
3
|
+
import type { ConfigVarResultCollection, Inputs } from "./Inputs";
|
|
4
|
+
import type { TriggerPayload } from "./TriggerPayload";
|
|
5
|
+
import type { TriggerResult } from "./TriggerResult";
|
|
2
6
|
/** Definition of the function to perform when a Trigger is invoked. */
|
|
3
7
|
export type TriggerPerformFunction<TInputs extends Inputs, TConfigVars extends ConfigVarResultCollection, TAllowsBranching extends boolean | undefined, TResult extends TriggerResult<TAllowsBranching, TriggerPayload>> = (context: ActionContext<TConfigVars>, payload: TriggerPayload, params: ActionInputParameters<TInputs>) => Promise<TResult>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TriggerPayload } from "./TriggerPayload";
|
|
2
1
|
import { HttpResponse } from "./HttpResponse";
|
|
2
|
+
import { TriggerPayload } from "./TriggerPayload";
|
|
3
3
|
/** Represents the result of a Trigger action. */
|
|
4
4
|
export interface TriggerBaseResult<TPayload extends TriggerPayload> {
|
|
5
5
|
/** The payload in the request that invoked the Integration, which is returned as a result for later use. */
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -14,23 +14,10 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
14
14
|
if (k2 === undefined) k2 = k;
|
|
15
15
|
o[k2] = m[k];
|
|
16
16
|
}));
|
|
17
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
-
}) : function(o, v) {
|
|
20
|
-
o["default"] = v;
|
|
21
|
-
});
|
|
22
17
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
24
19
|
};
|
|
25
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
-
if (mod && mod.__esModule) return mod;
|
|
27
|
-
var result = {};
|
|
28
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
-
__setModuleDefault(result, mod);
|
|
30
|
-
return result;
|
|
31
|
-
};
|
|
32
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.serverTypes = void 0;
|
|
34
21
|
__exportStar(require("./ActionDefinition"), exports);
|
|
35
22
|
__exportStar(require("./ComponentDefinition"), exports);
|
|
36
23
|
__exportStar(require("./ComponentRegistry"), exports);
|
|
@@ -65,4 +52,4 @@ __exportStar(require("./ComponentManifest"), exports);
|
|
|
65
52
|
__exportStar(require("./ScopedConfigVars"), exports);
|
|
66
53
|
__exportStar(require("./PollingTriggerDefinition"), exports);
|
|
67
54
|
__exportStar(require("./FlowSchemas"), exports);
|
|
68
|
-
|
|
55
|
+
__exportStar(require("./utils"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from "./ActionDefinition";
|
|
2
|
+
export * from "./ComponentDefinition";
|
|
3
|
+
export * from "./ConnectionDefinition";
|
|
4
|
+
export * from "./Inputs";
|
|
5
|
+
export * from "./ActionPerformReturn";
|
|
6
|
+
export * from "./DataPayload";
|
|
7
|
+
export * from "./DisplayDefinition";
|
|
8
|
+
export * from "./ActionInputParameters";
|
|
9
|
+
export * from "./ActionLogger";
|
|
10
|
+
export * from "./ActionPerformFunction";
|
|
11
|
+
export * from "./conditional-logic";
|
|
12
|
+
export * from "./TriggerResult";
|
|
13
|
+
export * from "./TriggerPerformFunction";
|
|
14
|
+
export * from "./TriggerDefinition";
|
|
15
|
+
export * from "./HttpResponse";
|
|
16
|
+
export * from "./TriggerPayload";
|
|
17
|
+
export * from "./DataSourceDefinition";
|
|
18
|
+
export * from "./DataSourcePerformFunction";
|
|
19
|
+
export * from "./DataSourceResult";
|
|
20
|
+
export * from "./InstanceAttributes";
|
|
21
|
+
export * from "./CustomerAttributes";
|
|
22
|
+
export * from "./UserAttributes";
|
|
23
|
+
export * from "./ComponentManifest";
|
|
24
|
+
export * from "./PollingTriggerDefinition";
|
|
25
|
+
export * as serverTypes from "../serverTypes";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
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
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
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
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.serverTypes = void 0;
|
|
30
|
+
__exportStar(require("./ActionDefinition"), exports);
|
|
31
|
+
__exportStar(require("./ComponentDefinition"), exports);
|
|
32
|
+
__exportStar(require("./ConnectionDefinition"), exports);
|
|
33
|
+
__exportStar(require("./Inputs"), exports);
|
|
34
|
+
__exportStar(require("./ActionPerformReturn"), exports);
|
|
35
|
+
__exportStar(require("./DataPayload"), exports);
|
|
36
|
+
__exportStar(require("./DisplayDefinition"), exports);
|
|
37
|
+
__exportStar(require("./ActionInputParameters"), exports);
|
|
38
|
+
__exportStar(require("./ActionLogger"), exports);
|
|
39
|
+
__exportStar(require("./ActionPerformFunction"), exports);
|
|
40
|
+
__exportStar(require("./conditional-logic"), exports);
|
|
41
|
+
__exportStar(require("./TriggerResult"), exports);
|
|
42
|
+
__exportStar(require("./TriggerPerformFunction"), exports);
|
|
43
|
+
__exportStar(require("./TriggerDefinition"), exports);
|
|
44
|
+
__exportStar(require("./HttpResponse"), exports);
|
|
45
|
+
__exportStar(require("./TriggerPayload"), exports);
|
|
46
|
+
__exportStar(require("./DataSourceDefinition"), exports);
|
|
47
|
+
__exportStar(require("./DataSourcePerformFunction"), exports);
|
|
48
|
+
__exportStar(require("./DataSourceResult"), exports);
|
|
49
|
+
__exportStar(require("./InstanceAttributes"), exports);
|
|
50
|
+
__exportStar(require("./CustomerAttributes"), exports);
|
|
51
|
+
__exportStar(require("./UserAttributes"), exports);
|
|
52
|
+
__exportStar(require("./ComponentManifest"), exports);
|
|
53
|
+
__exportStar(require("./PollingTriggerDefinition"), exports);
|
|
54
|
+
exports.serverTypes = __importStar(require("../serverTypes"));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from "./ComponentRegistry";
|
|
2
|
+
export * from "./ConfigPages";
|
|
3
|
+
export * from "./ConfigVars";
|
|
4
|
+
export * from "./ScopedConfigVars";
|
|
5
|
+
export * from "./Inputs";
|
|
6
|
+
export * from "./ActionPerformReturn";
|
|
7
|
+
export * from "./DataPayload";
|
|
8
|
+
export * from "./ActionInputParameters";
|
|
9
|
+
export * from "./ActionLogger";
|
|
10
|
+
export * from "./ActionPerformFunction";
|
|
11
|
+
export * from "./conditional-logic";
|
|
12
|
+
export * from "./TriggerEventFunction";
|
|
13
|
+
export * from "./TriggerResult";
|
|
14
|
+
export * from "./TriggerPerformFunction";
|
|
15
|
+
export * from "./HttpResponse";
|
|
16
|
+
export * from "./TriggerPayload";
|
|
17
|
+
export * from "./DataSourcePerformFunction";
|
|
18
|
+
export * from "./DataSourceResult";
|
|
19
|
+
export * from "./InstanceAttributes";
|
|
20
|
+
export * from "./CustomerAttributes";
|
|
21
|
+
export * from "./UserAttributes";
|
|
22
|
+
export * from "./IntegrationAttributes";
|
|
23
|
+
export * from "./FlowAttributes";
|
|
24
|
+
export * from "./IntegrationDefinition";
|
|
25
|
+
export * from "./ComponentManifest";
|
|
26
|
+
export * from "./ScopedConfigVars";
|
|
27
|
+
export * from "./FlowSchemas";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ComponentRegistry"), exports);
|
|
18
|
+
__exportStar(require("./ConfigPages"), exports);
|
|
19
|
+
__exportStar(require("./ConfigVars"), exports);
|
|
20
|
+
__exportStar(require("./ScopedConfigVars"), exports);
|
|
21
|
+
__exportStar(require("./Inputs"), exports);
|
|
22
|
+
__exportStar(require("./ActionPerformReturn"), exports);
|
|
23
|
+
__exportStar(require("./DataPayload"), exports);
|
|
24
|
+
__exportStar(require("./ActionInputParameters"), exports);
|
|
25
|
+
__exportStar(require("./ActionLogger"), exports);
|
|
26
|
+
__exportStar(require("./ActionPerformFunction"), exports);
|
|
27
|
+
__exportStar(require("./conditional-logic"), exports);
|
|
28
|
+
__exportStar(require("./TriggerEventFunction"), exports);
|
|
29
|
+
__exportStar(require("./TriggerResult"), exports);
|
|
30
|
+
__exportStar(require("./TriggerPerformFunction"), exports);
|
|
31
|
+
__exportStar(require("./HttpResponse"), exports);
|
|
32
|
+
__exportStar(require("./TriggerPayload"), exports);
|
|
33
|
+
__exportStar(require("./DataSourcePerformFunction"), exports);
|
|
34
|
+
__exportStar(require("./DataSourceResult"), exports);
|
|
35
|
+
__exportStar(require("./InstanceAttributes"), exports);
|
|
36
|
+
__exportStar(require("./CustomerAttributes"), exports);
|
|
37
|
+
__exportStar(require("./UserAttributes"), exports);
|
|
38
|
+
__exportStar(require("./IntegrationAttributes"), exports);
|
|
39
|
+
__exportStar(require("./FlowAttributes"), exports);
|
|
40
|
+
__exportStar(require("./IntegrationDefinition"), exports);
|
|
41
|
+
__exportStar(require("./ComponentManifest"), exports);
|
|
42
|
+
__exportStar(require("./ScopedConfigVars"), exports);
|
|
43
|
+
__exportStar(require("./FlowSchemas"), exports);
|
package/dist/util.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export declare const lowerCaseHeaders: (headers: Record<string, string>) => Reco
|
|
|
26
26
|
* @returns This function returns an object, parsing JSON as necessary
|
|
27
27
|
*/
|
|
28
28
|
export declare const toObject: (value: unknown) => object;
|
|
29
|
+
export * from "./errors";
|
|
30
|
+
export * from "./conditionalLogic";
|
|
29
31
|
declare const _default: {
|
|
30
32
|
types: {
|
|
31
33
|
isBool: (value: unknown) => value is boolean;
|
package/dist/util.js
CHANGED
|
@@ -4,6 +4,20 @@
|
|
|
4
4
|
* Many functions in the `util` module are used to coerce data into a particular type, and can be accessed through `util.types`.
|
|
5
5
|
* For example, `util.types.toInt("5.5")` will return an integer, `5`.
|
|
6
6
|
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
7
21
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
23
|
};
|
|
@@ -515,6 +529,8 @@ const cleanObject = (obj, predicate) => {
|
|
|
515
529
|
const defaultPredicate = (v) => v === undefined || v === null || v === "";
|
|
516
530
|
return (0, omitBy_1.default)(obj, predicate || defaultPredicate);
|
|
517
531
|
};
|
|
532
|
+
__exportStar(require("./errors"), exports);
|
|
533
|
+
__exportStar(require("./conditionalLogic"), exports);
|
|
518
534
|
exports.default = {
|
|
519
535
|
types: {
|
|
520
536
|
isBool,
|