@prismatic-io/spectral 10.17.1 → 10.18.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.
Files changed (52) hide show
  1. package/dist/clients/http/index.d.ts +84 -16
  2. package/dist/clients/http/index.js +85 -17
  3. package/dist/component.d.ts +3 -3
  4. package/dist/component.js +8 -8
  5. package/dist/conditionalLogic/index.js +3 -3
  6. package/dist/errors.d.ts +67 -0
  7. package/dist/errors.js +67 -0
  8. package/dist/generators/cniComponentManifest/cli.js +5 -5
  9. package/dist/generators/cniComponentManifest/index.d.ts +1 -1
  10. package/dist/generators/componentManifest/cli.js +6 -6
  11. package/dist/generators/componentManifest/createActions.d.ts +1 -1
  12. package/dist/generators/componentManifest/createActions.js +4 -4
  13. package/dist/generators/componentManifest/createConnections.d.ts +1 -1
  14. package/dist/generators/componentManifest/createConnections.js +4 -4
  15. package/dist/generators/componentManifest/createDataSources.d.ts +1 -1
  16. package/dist/generators/componentManifest/createDataSources.js +4 -4
  17. package/dist/generators/componentManifest/createStaticFiles.d.ts +1 -1
  18. package/dist/generators/componentManifest/createStaticFiles.js +1 -1
  19. package/dist/generators/componentManifest/createTriggers.d.ts +1 -1
  20. package/dist/generators/componentManifest/createTriggers.js +4 -4
  21. package/dist/generators/componentManifest/helpers.js +1 -1
  22. package/dist/generators/componentManifest/index.d.ts +2 -2
  23. package/dist/generators/componentManifest/index.js +1 -1
  24. package/dist/generators/utils/escapeSpecialCharacters.js +1 -1
  25. package/dist/index.d.ts +543 -53
  26. package/dist/index.js +545 -55
  27. package/dist/integration.d.ts +2 -2
  28. package/dist/integration.js +9 -9
  29. package/dist/serverTypes/asyncContext.d.ts +1 -1
  30. package/dist/serverTypes/context.d.ts +1 -1
  31. package/dist/serverTypes/context.js +2 -2
  32. package/dist/serverTypes/convertComponent.d.ts +2 -2
  33. package/dist/serverTypes/convertComponent.js +2 -2
  34. package/dist/serverTypes/convertIntegration.d.ts +3 -3
  35. package/dist/serverTypes/convertIntegration.js +13 -13
  36. package/dist/serverTypes/index.d.ts +2 -7
  37. package/dist/serverTypes/perform.d.ts +1 -1
  38. package/dist/serverTypes/perform.js +1 -1
  39. package/dist/testing.d.ts +195 -31
  40. package/dist/testing.js +197 -33
  41. package/dist/types/ActionPerformFunction.d.ts +6 -6
  42. package/dist/types/ConfigVars.d.ts +6 -6
  43. package/dist/types/ConnectionDefinition.d.ts +1 -1
  44. package/dist/types/index.d.ts +20 -20
  45. package/dist/types/index.js +20 -20
  46. package/dist/types/typeExportComponent.d.ts +15 -15
  47. package/dist/types/typeExportComponent.js +18 -18
  48. package/dist/types/typeExportIntegration.d.ts +17 -17
  49. package/dist/types/typeExportIntegration.js +17 -17
  50. package/dist/util.d.ts +29 -14
  51. package/dist/util.js +366 -108
  52. package/package.json +27 -29
package/dist/testing.js CHANGED
@@ -18,8 +18,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.createHarness = exports.ComponentTestHarness = exports.invokeFlow = exports.invokeDataSource = exports.invokeTrigger = exports.defaultTriggerPayload = exports.invoke = exports.createMockContextComponents = exports.loggerMock = exports.connectionValue = exports.defaultConnectionValueEnvironmentVariable = exports.createConnection = void 0;
19
19
  const jest_mock_1 = require("jest-mock");
20
20
  /**
21
- * Create a test connection to use when testing your custom component locally. See
22
- * https://prismatic.io/docs/custom-connectors/unit-testing/#providing-test-connection-inputs-to-an-action-test
21
+ * Create a test connection to use when testing your custom component locally.
22
+ * This builds a `ConnectionValue` from your connection definition and
23
+ * test credential values.
24
+ *
25
+ * @param connectionDef The connection definition (only `key` is used).
26
+ * @param values A record of field values for the connection (e.g. `apiKey`, `baseUrl`).
27
+ * @param tokenValues Optional OAuth 2.0 token values (e.g. `access_token`, `refresh_token`).
28
+ * @param displayName Optional display name for the connection config variable.
29
+ * @returns A `ConnectionValue` object suitable for use in test invocations.
30
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/#providing-test-connection-inputs-to-an-action-test | Test Connection Inputs}
31
+ * @example
32
+ * import { testing } from "@prismatic-io/spectral";
33
+ * import { apiKeyConnection } from "./connections";
34
+ *
35
+ * const testConnection = testing.createConnection(apiKeyConnection, {
36
+ * apiKey: "test-api-key-123",
37
+ * baseUrl: "https://api.acme.com/v2",
38
+ * });
39
+ *
40
+ * // Use with testing.invoke()
41
+ * const { result } = await testing.invoke(myAction, {
42
+ * connection: testConnection,
43
+ * });
23
44
  */
24
45
  const createConnection = ({ key }, values, tokenValues, displayName) => ({
25
46
  configVarKey: displayName !== null && displayName !== void 0 ? displayName : "",
@@ -30,8 +51,21 @@ const createConnection = ({ key }, values, tokenValues, displayName) => ({
30
51
  exports.createConnection = createConnection;
31
52
  exports.defaultConnectionValueEnvironmentVariable = "PRISMATIC_CONNECTION_VALUE";
32
53
  /**
33
- * Source a test connection from an environment variable for local testing. See
34
- * https://prismatic.io/docs/custom-connectors/unit-testing/#access-connections-for-local-testing
54
+ * Source a test connection from an environment variable for local testing.
55
+ * The environment variable should contain a JSON-serialized connection value.
56
+ * Defaults to reading from `PRISMATIC_CONNECTION_VALUE`.
57
+ *
58
+ * @param envVarKey The name of the environment variable to read. Defaults to `"PRISMATIC_CONNECTION_VALUE"`.
59
+ * @returns A `ConnectionValue` parsed from the environment variable.
60
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/#access-connections-for-local-testing | Access Connections for Local Testing}
61
+ * @example
62
+ * import { testing } from "@prismatic-io/spectral";
63
+ *
64
+ * // Reads from PRISMATIC_CONNECTION_VALUE env var (default)
65
+ * const conn = testing.connectionValue();
66
+ *
67
+ * // Or specify a custom env var
68
+ * const conn = testing.connectionValue("MY_ACME_CONNECTION");
35
69
  */
36
70
  const connectionValue = (envVarKey = exports.defaultConnectionValueEnvironmentVariable) => {
37
71
  const value = process.env[envVarKey];
@@ -43,9 +77,17 @@ const connectionValue = (envVarKey = exports.defaultConnectionValueEnvironmentVa
43
77
  };
44
78
  exports.connectionValue = connectionValue;
45
79
  /**
46
- * Pre-built mock of ActionLogger. Suitable for asserting logs are created as expected. See
47
- * https://prismatic.io/docs/custom-connectors/unit-testing/#verifying-correct-logging-in-action-tests
48
- * for information on testing correct logging behavior in your custom component.
80
+ * Pre-built mock of ActionLogger. All log methods (`info`, `warn`, `error`, etc.)
81
+ * are Jest spies, so you can assert that your actions log the expected messages.
82
+ *
83
+ * @returns A mock `ActionLogger` with Jest spy methods.
84
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/#verifying-correct-logging-in-action-tests | Verifying Logging}
85
+ * @example
86
+ * import { testing } from "@prismatic-io/spectral";
87
+ *
88
+ * const logger = testing.loggerMock();
89
+ * // Pass logger in context, then assert:
90
+ * expect(logger.info).toHaveBeenCalledWith("Processing started");
49
91
  */
50
92
  const loggerMock = () => ({
51
93
  metric: console.log,
@@ -57,20 +99,33 @@ const loggerMock = () => ({
57
99
  error: (0, jest_mock_1.spyOn)(console, "error"),
58
100
  });
59
101
  exports.loggerMock = loggerMock;
60
- function invokeFlowTest(flowName, data, config) {
102
+ function invokeFlowTest(_flowName, _data, _config) {
61
103
  return __awaiter(this, void 0, void 0, function* () {
62
104
  return Promise.resolve({});
63
105
  });
64
106
  }
65
107
  /**
66
- * Creates basic component mocks based on the CNI's component registry.
67
- * You may pass mock overrides in the second argument, e.g.:
108
+ * Creates basic component action mocks based on a code-native integration's
109
+ * component registry. Each action mock returns the action's `examplePayload`
110
+ * by default. Pass overrides in the second argument to customize specific mocks.
111
+ *
112
+ * @param registry The component registry (or subset) to mock.
113
+ * @param mocks Optional overrides for specific component actions.
114
+ * @returns An object of mocked component actions, suitable for use in test context.
115
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
116
+ * @example
117
+ * import { createMockContextComponents } from "@prismatic-io/spectral/dist/testing";
118
+ * import { componentRegistry } from "./componentRegistry";
119
+ *
120
+ * // Default mocks (uses examplePayload from the manifest)
121
+ * const components = createMockContextComponents(componentRegistry);
68
122
  *
69
- * createMockContextComponents(myManifest, {
123
+ * // With custom overrides
124
+ * const components = createMockContextComponents(componentRegistry, {
70
125
  * actions: {
71
- * myComponentName: {
72
- * myComponentAction: () => Promise.resolve({ data: "my test data "}),
73
- * }
126
+ * slack: {
127
+ * postMessage: () => Promise.resolve({ data: { ok: true } }),
128
+ * },
74
129
  * },
75
130
  * });
76
131
  */
@@ -129,10 +184,10 @@ const createActionContext = (context) => {
129
184
  }, debug: {
130
185
  enabled: false,
131
186
  timeElapsed: {
132
- mark: (context, label) => { },
133
- measure: (context, label, marks) => { },
187
+ mark: (_context, _label) => { },
188
+ measure: (_context, _label, _marks) => { },
134
189
  },
135
- memoryUsage: (context, label, showDetail) => { },
190
+ memoryUsage: (_context, _label, _showDetail) => { },
136
191
  results: {
137
192
  timeElapsed: { marks: {}, measurements: {} },
138
193
  memoryUsage: [],
@@ -156,10 +211,27 @@ const createDataSourceContext = (context) => {
156
211
  } }, context);
157
212
  };
158
213
  /**
159
- * Invokes specified ActionDefinition perform function using supplied params
160
- * and optional context. Accepts a generic type matching ActionPerformReturn as a convenience
161
- * to avoid extra casting within test methods. Returns an InvokeResult containing both the
162
- * action result and a mock logger for asserting logging.
214
+ * Invokes a custom component action's `perform` function within a test harness.
215
+ * Returns both the action result and a mock logger for asserting logging behavior.
216
+ *
217
+ * @param actionDef The action definition to test (only `perform` is used).
218
+ * @param params Input parameter values to pass to the action's `perform` function.
219
+ * @param context Optional partial context overrides (e.g. custom `configVars` or `instanceState`).
220
+ * @returns An object with `result` (the action's return value) and `loggerMock` (for asserting logs).
221
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
222
+ * @example
223
+ * import { testing } from "@prismatic-io/spectral";
224
+ * import { myAction } from "./actions";
225
+ *
226
+ * it("should return items", async () => {
227
+ * const { result, loggerMock } = await testing.invoke(myAction, {
228
+ * connection: testConnection,
229
+ * limit: "10",
230
+ * });
231
+ *
232
+ * expect(result.data).toHaveProperty("items");
233
+ * expect(loggerMock.info).toHaveBeenCalled();
234
+ * });
163
235
  */
164
236
  const invoke = (_a, params_1, context_1) => __awaiter(void 0, [_a, params_1, context_1], void 0, function* ({ perform }, params, context) {
165
237
  const realizedContext = createActionContext(context);
@@ -226,10 +298,33 @@ const defaultTriggerPayload = () => {
226
298
  };
227
299
  exports.defaultTriggerPayload = defaultTriggerPayload;
228
300
  /**
229
- * Invokes specified TriggerDefinition perform function using supplied params
230
- * and optional context. Accepts a generic type matching TriggerResult as a convenience
231
- * to avoid extra casting within test methods. Returns an InvokeResult containing both the
232
- * trigger result and a mock logger for asserting logging.
301
+ * Invokes a custom component trigger's `perform` function within a test harness.
302
+ * Provides a default trigger payload that can be overridden. Returns both the
303
+ * trigger result and a mock logger for asserting logging behavior.
304
+ *
305
+ * @param triggerDef The trigger definition to test (only `perform` is used).
306
+ * @param context Optional partial context overrides.
307
+ * @param payload Optional partial trigger payload overrides (merged with defaults).
308
+ * @param params Optional input parameter values for the trigger.
309
+ * @returns An object with `result` (the trigger's return value) and `loggerMock`.
310
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
311
+ * @example
312
+ * import { testing } from "@prismatic-io/spectral";
313
+ * import { webhookTrigger } from "./triggers";
314
+ *
315
+ * it("should process the webhook payload", async () => {
316
+ * const { result } = await testing.invokeTrigger(
317
+ * webhookTrigger,
318
+ * undefined, // use default context
319
+ * {
320
+ * body: { data: JSON.stringify({ event: "created" }) },
321
+ * headers: { "x-webhook-secret": "test-secret" },
322
+ * },
323
+ * { secret: "test-secret" },
324
+ * );
325
+ *
326
+ * expect(result.payload).toBeDefined();
327
+ * });
233
328
  */
234
329
  const invokeTrigger = (_a, context_1, payload_1, params_1) => __awaiter(void 0, [_a, context_1, payload_1, params_1], void 0, function* ({ perform }, context, payload, params) {
235
330
  const realizedContext = createActionContext(context);
@@ -243,9 +338,27 @@ const invokeTrigger = (_a, context_1, payload_1, params_1) => __awaiter(void 0,
243
338
  });
244
339
  exports.invokeTrigger = invokeTrigger;
245
340
  /**
246
- * Invokes specified DataSourceDefinition perform function using supplied params.
247
- * Accepts a generic type matching DataSourceResult as a convenience to avoid extra
248
- * casting within test methods. Returns a DataSourceResult.
341
+ * Invokes a custom component data source's `perform` function within a test harness.
342
+ * Returns the data source result directly.
343
+ *
344
+ * @param dataSourceDef The data source definition to test (only `perform` is used).
345
+ * @param params Input parameter values to pass to the data source's `perform` function.
346
+ * @param context Optional partial context overrides.
347
+ * @returns The data source result (e.g. a picklist, JSON form, or other data source type).
348
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
349
+ * @example
350
+ * import { testing } from "@prismatic-io/spectral";
351
+ * import { selectChannel } from "./dataSources";
352
+ *
353
+ * it("should return a list of channels", async () => {
354
+ * const result = await testing.invokeDataSource(selectChannel, {
355
+ * connection: testConnection,
356
+ * });
357
+ *
358
+ * expect(result.result).toContainEqual(
359
+ * expect.objectContaining({ label: "General" }),
360
+ * );
361
+ * });
249
362
  */
250
363
  const invokeDataSource = (_a, params_1, context_1) => __awaiter(void 0, [_a, params_1, context_1], void 0, function* ({ perform }, params, context) {
251
364
  const realizedContext = createDataSourceContext(context);
@@ -263,9 +376,35 @@ const createConfigVars = (values) => {
263
376
  }, {});
264
377
  };
265
378
  /**
266
- * Invokes specified Flow of a Code Native Integration using supplied params.
267
- * Runs the Trigger and then the Action function and returns the result of the Action. See
268
- * https://prismatic.io/docs/integrations/triggers/cross-flow/#using-cross-flow-triggers-in-code-native
379
+ * Invokes a code-native integration flow within a test harness. Runs the
380
+ * flow's `onTrigger` (if defined) followed by `onExecution`, and returns
381
+ * the execution result. Accepts optional config variables, context overrides,
382
+ * and a custom trigger payload.
383
+ *
384
+ * @param flow The flow definition to test.
385
+ * @param options Optional config variables, context overrides, and trigger payload.
386
+ * @returns An object with `result` (the flow execution return value) and `loggerMock`.
387
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
388
+ * @example
389
+ * import { invokeFlow } from "@prismatic-io/spectral/dist/testing";
390
+ * import { myFlow } from "./flows";
391
+ *
392
+ * it("should execute the flow end-to-end", async () => {
393
+ * const { result } = await invokeFlow(myFlow, {
394
+ * configVars: {
395
+ * "Acme API Endpoint": "https://api.acme.com",
396
+ * "Acme Connection": {
397
+ * fields: { apiKey: "test-key" },
398
+ * key: "apiKey",
399
+ * },
400
+ * },
401
+ * payload: {
402
+ * body: { data: JSON.stringify({ event: "created" }) },
403
+ * },
404
+ * });
405
+ *
406
+ * expect(result.data).toBeDefined();
407
+ * });
269
408
  */
270
409
  const invokeFlow = (flow_1, ...args_1) => __awaiter(void 0, [flow_1, ...args_1], void 0, function* (flow, { configVars, context, payload, } = {}) {
271
410
  const realizedConfigVars = createConfigVars(configVars);
@@ -366,8 +505,33 @@ class ComponentTestHarness {
366
505
  }
367
506
  exports.ComponentTestHarness = ComponentTestHarness;
368
507
  /**
369
- * Create a testing harness to test a custom component's actions, triggers and data sources. See
370
- * https://prismatic.io/docs/custom-connectors/unit-testing/
508
+ * Create a testing harness to test a custom component's actions, triggers
509
+ * and data sources by key. The harness automatically provides default input
510
+ * values and mock context.
511
+ *
512
+ * @param component The compiled component object (the result of calling `component()`).
513
+ * @returns A `ComponentTestHarness` instance with `.action()`, `.trigger()`, and `.dataSource()` methods.
514
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
515
+ * @example
516
+ * import { testing } from "@prismatic-io/spectral";
517
+ * import myComponent from ".";
518
+ *
519
+ * const harness = testing.createHarness(myComponent);
520
+ *
521
+ * it("should list items", async () => {
522
+ * const result = await harness.action("listItems", {
523
+ * connection: testConnection,
524
+ * limit: "10",
525
+ * });
526
+ * expect(result.data).toHaveProperty("items");
527
+ * });
528
+ *
529
+ * it("should handle a webhook trigger", async () => {
530
+ * const result = await harness.trigger("webhook", {
531
+ * body: { data: '{"event":"created"}' },
532
+ * });
533
+ * expect(result.payload).toBeDefined();
534
+ * });
371
535
  */
372
536
  const createHarness = (component) => {
373
537
  return new ComponentTestHarness(component);
@@ -1,15 +1,15 @@
1
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
2
  import type { ActionInputParameters } from "./ActionInputParameters";
6
3
  import type { ActionLogger } from "./ActionLogger";
4
+ import type { ActionPerformReturn } from "./ActionPerformReturn";
5
+ import type { ComponentManifest } from "./ComponentManifest";
7
6
  import type { CustomerAttributes } from "./CustomerAttributes";
8
- import type { InstanceAttributes } from "./InstanceAttributes";
9
- import type { UserAttributes } from "./UserAttributes";
10
- import type { IntegrationAttributes } from "./IntegrationAttributes";
11
7
  import type { FlowAttributes } from "./FlowAttributes";
12
8
  import type { FlowSchemas } from "./FlowSchemas";
9
+ import type { ConfigVarResultCollection, Inputs } from "./Inputs";
10
+ import type { InstanceAttributes } from "./InstanceAttributes";
11
+ import type { IntegrationAttributes } from "./IntegrationAttributes";
12
+ import type { UserAttributes } from "./UserAttributes";
13
13
  interface StandardLineage {
14
14
  componentActionKey: string;
15
15
  executionId: string;
@@ -1,12 +1,12 @@
1
- import type { ValidationMode } from "./jsonforms/ValidationMode";
2
- import type { Prettify, UnionToIntersection } from "./utils";
3
1
  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";
2
+ import type { ConfigPage, ConfigPageElement, ConfigPages, UserLevelConfigPages } from "./ConfigPages";
7
3
  import type { ConnectionDefinition } from "./ConnectionDefinition";
4
+ import type { DataSourceDefinition } from "./DataSourceDefinition";
5
+ import type { CollectionDataSourceType, DataSourceType } from "./DataSourceResult";
6
+ import type { ConfigVarResultCollection, Connection, Inputs, JSONForm, ObjectFieldMap, ObjectSelection, Schedule } from "./Inputs";
7
+ import type { ValidationMode } from "./jsonforms/ValidationMode";
8
8
  import type { OrganizationActivatedConnectionConfigVar, ScopedConfigVarMap } from "./ScopedConfigVars";
9
- import type { ConfigPage, ConfigPageElement, ConfigPages, UserLevelConfigPages } from "./ConfigPages";
9
+ import type { Prettify, UnionToIntersection } from "./utils";
10
10
  /** Supported data types for config variables. */
11
11
  export type ConfigVarDataType = "string" | "date" | "timestamp" | "picklist" | "code" | "boolean" | "number" | "schedule" | "objectSelection" | "objectFieldMap" | "jsonForm" | "htmlElement";
12
12
  type ConfigVarDataTypeDefaultValueMap<TMap extends Record<ConfigVarDataType, unknown> = {
@@ -1,5 +1,5 @@
1
- import type { ConnectionInput, ConnectionTemplateInputField, OnPremConnectionInput } from "./Inputs";
2
1
  import type { ConnectionDisplayDefinition } from "./DisplayDefinition";
2
+ import type { ConnectionInput, ConnectionTemplateInputField, OnPremConnectionInput } from "./Inputs";
3
3
  export declare enum OAuth2Type {
4
4
  /**
5
5
  * This connection uses the OAuth 2.0 client credentials flow. See
@@ -3,37 +3,37 @@
3
3
  * `import { DesiredType } from "@prismatic-io/spectral"`
4
4
  */
5
5
  export * from "./ActionDefinition";
6
+ export * from "./ActionInputParameters";
7
+ export * from "./ActionLogger";
8
+ export * from "./ActionPerformFunction";
9
+ export * from "./ActionPerformReturn";
6
10
  export * from "./ComponentDefinition";
11
+ export * from "./ComponentManifest";
7
12
  export * from "./ComponentRegistry";
8
13
  export * from "./ConfigPages";
9
14
  export * from "./ConfigVars";
10
- export * from "./ScopedConfigVars";
11
15
  export * from "./ConnectionDefinition";
12
- export * from "./Inputs";
13
- export * from "./ActionPerformReturn";
14
- export * from "./DataPayload";
15
- export * from "./DisplayDefinition";
16
- export * from "./ActionInputParameters";
17
- export * from "./ActionLogger";
18
- export * from "./ActionPerformFunction";
16
+ export * from "./CustomerAttributes";
19
17
  export * from "./conditional-logic";
20
- export * from "./TriggerEventFunction";
21
- export * from "./TriggerResult";
22
- export * from "./TriggerPerformFunction";
23
- export * from "./TriggerDefinition";
24
- export * from "./HttpResponse";
25
- export * from "./TriggerPayload";
18
+ export * from "./DataPayload";
26
19
  export * from "./DataSourceDefinition";
27
20
  export * from "./DataSourcePerformFunction";
28
21
  export * from "./DataSourceResult";
22
+ export * from "./DisplayDefinition";
23
+ export * from "./FlowAttributes";
24
+ export * from "./FlowSchemas";
25
+ export * from "./HttpResponse";
26
+ export * from "./Inputs";
29
27
  export * from "./InstanceAttributes";
30
- export * from "./CustomerAttributes";
31
- export * from "./UserAttributes";
32
28
  export * from "./IntegrationAttributes";
33
- export * from "./FlowAttributes";
34
29
  export * from "./IntegrationDefinition";
35
- export * from "./ComponentManifest";
36
- export * from "./ScopedConfigVars";
37
30
  export * from "./PollingTriggerDefinition";
38
- export * from "./FlowSchemas";
31
+ export * from "./ScopedConfigVars";
32
+ export * from "./ScopedConfigVars";
33
+ export * from "./TriggerDefinition";
34
+ export * from "./TriggerEventFunction";
35
+ export * from "./TriggerPayload";
36
+ export * from "./TriggerPerformFunction";
37
+ export * from "./TriggerResult";
38
+ export * from "./UserAttributes";
39
39
  export * from "./utils";
@@ -19,37 +19,37 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  __exportStar(require("./ActionDefinition"), exports);
22
+ __exportStar(require("./ActionInputParameters"), exports);
23
+ __exportStar(require("./ActionLogger"), exports);
24
+ __exportStar(require("./ActionPerformFunction"), exports);
25
+ __exportStar(require("./ActionPerformReturn"), exports);
22
26
  __exportStar(require("./ComponentDefinition"), exports);
27
+ __exportStar(require("./ComponentManifest"), exports);
23
28
  __exportStar(require("./ComponentRegistry"), exports);
24
29
  __exportStar(require("./ConfigPages"), exports);
25
30
  __exportStar(require("./ConfigVars"), exports);
26
- __exportStar(require("./ScopedConfigVars"), exports);
27
31
  __exportStar(require("./ConnectionDefinition"), exports);
28
- __exportStar(require("./Inputs"), exports);
29
- __exportStar(require("./ActionPerformReturn"), exports);
30
- __exportStar(require("./DataPayload"), exports);
31
- __exportStar(require("./DisplayDefinition"), exports);
32
- __exportStar(require("./ActionInputParameters"), exports);
33
- __exportStar(require("./ActionLogger"), exports);
34
- __exportStar(require("./ActionPerformFunction"), exports);
32
+ __exportStar(require("./CustomerAttributes"), exports);
35
33
  __exportStar(require("./conditional-logic"), exports);
36
- __exportStar(require("./TriggerEventFunction"), exports);
37
- __exportStar(require("./TriggerResult"), exports);
38
- __exportStar(require("./TriggerPerformFunction"), exports);
39
- __exportStar(require("./TriggerDefinition"), exports);
40
- __exportStar(require("./HttpResponse"), exports);
41
- __exportStar(require("./TriggerPayload"), exports);
34
+ __exportStar(require("./DataPayload"), exports);
42
35
  __exportStar(require("./DataSourceDefinition"), exports);
43
36
  __exportStar(require("./DataSourcePerformFunction"), exports);
44
37
  __exportStar(require("./DataSourceResult"), exports);
38
+ __exportStar(require("./DisplayDefinition"), exports);
39
+ __exportStar(require("./FlowAttributes"), exports);
40
+ __exportStar(require("./FlowSchemas"), exports);
41
+ __exportStar(require("./HttpResponse"), exports);
42
+ __exportStar(require("./Inputs"), exports);
45
43
  __exportStar(require("./InstanceAttributes"), exports);
46
- __exportStar(require("./CustomerAttributes"), exports);
47
- __exportStar(require("./UserAttributes"), exports);
48
44
  __exportStar(require("./IntegrationAttributes"), exports);
49
- __exportStar(require("./FlowAttributes"), exports);
50
45
  __exportStar(require("./IntegrationDefinition"), exports);
51
- __exportStar(require("./ComponentManifest"), exports);
52
- __exportStar(require("./ScopedConfigVars"), exports);
53
46
  __exportStar(require("./PollingTriggerDefinition"), exports);
54
- __exportStar(require("./FlowSchemas"), exports);
47
+ __exportStar(require("./ScopedConfigVars"), exports);
48
+ __exportStar(require("./ScopedConfigVars"), exports);
49
+ __exportStar(require("./TriggerDefinition"), exports);
50
+ __exportStar(require("./TriggerEventFunction"), exports);
51
+ __exportStar(require("./TriggerPayload"), exports);
52
+ __exportStar(require("./TriggerPerformFunction"), exports);
53
+ __exportStar(require("./TriggerResult"), exports);
54
+ __exportStar(require("./UserAttributes"), exports);
55
55
  __exportStar(require("./utils"), exports);
@@ -1,25 +1,25 @@
1
+ export * as serverTypes from "../serverTypes";
1
2
  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
3
  export * from "./ActionInputParameters";
9
4
  export * from "./ActionLogger";
10
5
  export * from "./ActionPerformFunction";
6
+ export * from "./ActionPerformReturn";
7
+ export * from "./ComponentDefinition";
8
+ export * from "./ComponentManifest";
9
+ export * from "./ConnectionDefinition";
10
+ export * from "./CustomerAttributes";
11
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";
12
+ export * from "./DataPayload";
17
13
  export * from "./DataSourceDefinition";
18
14
  export * from "./DataSourcePerformFunction";
19
15
  export * from "./DataSourceResult";
16
+ export * from "./DisplayDefinition";
17
+ export * from "./HttpResponse";
18
+ export * from "./Inputs";
20
19
  export * from "./InstanceAttributes";
21
- export * from "./CustomerAttributes";
22
- export * from "./UserAttributes";
23
- export * from "./ComponentManifest";
24
20
  export * from "./PollingTriggerDefinition";
25
- export * as serverTypes from "../serverTypes";
21
+ export * from "./TriggerDefinition";
22
+ export * from "./TriggerPayload";
23
+ export * from "./TriggerPerformFunction";
24
+ export * from "./TriggerResult";
25
+ export * from "./UserAttributes";
@@ -15,9 +15,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
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
18
  var __importStar = (this && this.__importStar) || function (mod) {
22
19
  if (mod && mod.__esModule) return mod;
23
20
  var result = {};
@@ -25,30 +22,33 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
22
  __setModuleDefault(result, mod);
26
23
  return result;
27
24
  };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.serverTypes = void 0;
30
+ exports.serverTypes = __importStar(require("../serverTypes"));
30
31
  __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
32
  __exportStar(require("./ActionInputParameters"), exports);
38
33
  __exportStar(require("./ActionLogger"), exports);
39
34
  __exportStar(require("./ActionPerformFunction"), exports);
35
+ __exportStar(require("./ActionPerformReturn"), exports);
36
+ __exportStar(require("./ComponentDefinition"), exports);
37
+ __exportStar(require("./ComponentManifest"), exports);
38
+ __exportStar(require("./ConnectionDefinition"), exports);
39
+ __exportStar(require("./CustomerAttributes"), exports);
40
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);
41
+ __exportStar(require("./DataPayload"), exports);
46
42
  __exportStar(require("./DataSourceDefinition"), exports);
47
43
  __exportStar(require("./DataSourcePerformFunction"), exports);
48
44
  __exportStar(require("./DataSourceResult"), exports);
45
+ __exportStar(require("./DisplayDefinition"), exports);
46
+ __exportStar(require("./HttpResponse"), exports);
47
+ __exportStar(require("./Inputs"), exports);
49
48
  __exportStar(require("./InstanceAttributes"), exports);
50
- __exportStar(require("./CustomerAttributes"), exports);
51
- __exportStar(require("./UserAttributes"), exports);
52
- __exportStar(require("./ComponentManifest"), exports);
53
49
  __exportStar(require("./PollingTriggerDefinition"), exports);
54
- exports.serverTypes = __importStar(require("../serverTypes"));
50
+ __exportStar(require("./TriggerDefinition"), exports);
51
+ __exportStar(require("./TriggerPayload"), exports);
52
+ __exportStar(require("./TriggerPerformFunction"), exports);
53
+ __exportStar(require("./TriggerResult"), exports);
54
+ __exportStar(require("./UserAttributes"), exports);
@@ -1,27 +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
1
  export * from "./ActionInputParameters";
9
2
  export * from "./ActionLogger";
10
3
  export * from "./ActionPerformFunction";
4
+ export * from "./ActionPerformReturn";
5
+ export * from "./ComponentManifest";
6
+ export * from "./ComponentRegistry";
7
+ export * from "./ConfigPages";
8
+ export * from "./ConfigVars";
9
+ export * from "./CustomerAttributes";
11
10
  export * from "./conditional-logic";
12
- export * from "./TriggerEventFunction";
13
- export * from "./TriggerResult";
14
- export * from "./TriggerPerformFunction";
15
- export * from "./HttpResponse";
16
- export * from "./TriggerPayload";
11
+ export * from "./DataPayload";
17
12
  export * from "./DataSourcePerformFunction";
18
13
  export * from "./DataSourceResult";
14
+ export * from "./FlowAttributes";
15
+ export * from "./FlowSchemas";
16
+ export * from "./HttpResponse";
17
+ export * from "./Inputs";
19
18
  export * from "./InstanceAttributes";
20
- export * from "./CustomerAttributes";
21
- export * from "./UserAttributes";
22
19
  export * from "./IntegrationAttributes";
23
- export * from "./FlowAttributes";
24
20
  export * from "./IntegrationDefinition";
25
- export * from "./ComponentManifest";
26
21
  export * from "./ScopedConfigVars";
27
- export * from "./FlowSchemas";
22
+ export * from "./ScopedConfigVars";
23
+ export * from "./TriggerEventFunction";
24
+ export * from "./TriggerPayload";
25
+ export * from "./TriggerPerformFunction";
26
+ export * from "./TriggerResult";
27
+ export * from "./UserAttributes";