@prismatic-io/spectral 10.17.2 → 10.18.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.
Files changed (53) 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 +199 -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/FlowAttributes.d.ts +1 -1
  45. package/dist/types/index.d.ts +20 -20
  46. package/dist/types/index.js +20 -20
  47. package/dist/types/typeExportComponent.d.ts +15 -15
  48. package/dist/types/typeExportComponent.js +18 -18
  49. package/dist/types/typeExportIntegration.d.ts +17 -17
  50. package/dist/types/typeExportIntegration.js +17 -17
  51. package/dist/util.d.ts +29 -14
  52. package/dist/util.js +366 -108
  53. package/package.json +26 -28
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
  */
@@ -118,6 +173,7 @@ const createActionContext = (context) => {
118
173
  }, flow: {
119
174
  id: "flowId",
120
175
  name: "Flow 1",
176
+ stableId: "flowStableId",
121
177
  }, startedAt: new Date().toISOString(), invokeFlow: invokeFlowTest, executionFrame: {
122
178
  invokedByExecutionJWT: "some-jwt",
123
179
  invokedByExecutionStartedAt: "00-00-0000",
@@ -129,10 +185,10 @@ const createActionContext = (context) => {
129
185
  }, debug: {
130
186
  enabled: false,
131
187
  timeElapsed: {
132
- mark: (context, label) => { },
133
- measure: (context, label, marks) => { },
188
+ mark: (_context, _label) => { },
189
+ measure: (_context, _label, _marks) => { },
134
190
  },
135
- memoryUsage: (context, label, showDetail) => { },
191
+ memoryUsage: (_context, _label, _showDetail) => { },
136
192
  results: {
137
193
  timeElapsed: { marks: {}, measurements: {} },
138
194
  memoryUsage: [],
@@ -156,10 +212,27 @@ const createDataSourceContext = (context) => {
156
212
  } }, context);
157
213
  };
158
214
  /**
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.
215
+ * Invokes a custom component action's `perform` function within a test harness.
216
+ * Returns both the action result and a mock logger for asserting logging behavior.
217
+ *
218
+ * @param actionDef The action definition to test (only `perform` is used).
219
+ * @param params Input parameter values to pass to the action's `perform` function.
220
+ * @param context Optional partial context overrides (e.g. custom `configVars` or `instanceState`).
221
+ * @returns An object with `result` (the action's return value) and `loggerMock` (for asserting logs).
222
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
223
+ * @example
224
+ * import { testing } from "@prismatic-io/spectral";
225
+ * import { myAction } from "./actions";
226
+ *
227
+ * it("should return items", async () => {
228
+ * const { result, loggerMock } = await testing.invoke(myAction, {
229
+ * connection: testConnection,
230
+ * limit: "10",
231
+ * });
232
+ *
233
+ * expect(result.data).toHaveProperty("items");
234
+ * expect(loggerMock.info).toHaveBeenCalled();
235
+ * });
163
236
  */
164
237
  const invoke = (_a, params_1, context_1) => __awaiter(void 0, [_a, params_1, context_1], void 0, function* ({ perform }, params, context) {
165
238
  const realizedContext = createActionContext(context);
@@ -219,6 +292,7 @@ const defaultTriggerPayload = () => {
219
292
  flow: {
220
293
  id: "flowId",
221
294
  name: "Flow 1",
295
+ stableId: "flowStableId",
222
296
  },
223
297
  startedAt: new Date().toISOString(),
224
298
  globalDebug: false,
@@ -226,10 +300,33 @@ const defaultTriggerPayload = () => {
226
300
  };
227
301
  exports.defaultTriggerPayload = defaultTriggerPayload;
228
302
  /**
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.
303
+ * Invokes a custom component trigger's `perform` function within a test harness.
304
+ * Provides a default trigger payload that can be overridden. Returns both the
305
+ * trigger result and a mock logger for asserting logging behavior.
306
+ *
307
+ * @param triggerDef The trigger definition to test (only `perform` is used).
308
+ * @param context Optional partial context overrides.
309
+ * @param payload Optional partial trigger payload overrides (merged with defaults).
310
+ * @param params Optional input parameter values for the trigger.
311
+ * @returns An object with `result` (the trigger's return value) and `loggerMock`.
312
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
313
+ * @example
314
+ * import { testing } from "@prismatic-io/spectral";
315
+ * import { webhookTrigger } from "./triggers";
316
+ *
317
+ * it("should process the webhook payload", async () => {
318
+ * const { result } = await testing.invokeTrigger(
319
+ * webhookTrigger,
320
+ * undefined, // use default context
321
+ * {
322
+ * body: { data: JSON.stringify({ event: "created" }) },
323
+ * headers: { "x-webhook-secret": "test-secret" },
324
+ * },
325
+ * { secret: "test-secret" },
326
+ * );
327
+ *
328
+ * expect(result.payload).toBeDefined();
329
+ * });
233
330
  */
234
331
  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
332
  const realizedContext = createActionContext(context);
@@ -243,9 +340,27 @@ const invokeTrigger = (_a, context_1, payload_1, params_1) => __awaiter(void 0,
243
340
  });
244
341
  exports.invokeTrigger = invokeTrigger;
245
342
  /**
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.
343
+ * Invokes a custom component data source's `perform` function within a test harness.
344
+ * Returns the data source result directly.
345
+ *
346
+ * @param dataSourceDef The data source definition to test (only `perform` is used).
347
+ * @param params Input parameter values to pass to the data source's `perform` function.
348
+ * @param context Optional partial context overrides.
349
+ * @returns The data source result (e.g. a picklist, JSON form, or other data source type).
350
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
351
+ * @example
352
+ * import { testing } from "@prismatic-io/spectral";
353
+ * import { selectChannel } from "./dataSources";
354
+ *
355
+ * it("should return a list of channels", async () => {
356
+ * const result = await testing.invokeDataSource(selectChannel, {
357
+ * connection: testConnection,
358
+ * });
359
+ *
360
+ * expect(result.result).toContainEqual(
361
+ * expect.objectContaining({ label: "General" }),
362
+ * );
363
+ * });
249
364
  */
250
365
  const invokeDataSource = (_a, params_1, context_1) => __awaiter(void 0, [_a, params_1, context_1], void 0, function* ({ perform }, params, context) {
251
366
  const realizedContext = createDataSourceContext(context);
@@ -263,9 +378,35 @@ const createConfigVars = (values) => {
263
378
  }, {});
264
379
  };
265
380
  /**
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
381
+ * Invokes a code-native integration flow within a test harness. Runs the
382
+ * flow's `onTrigger` (if defined) followed by `onExecution`, and returns
383
+ * the execution result. Accepts optional config variables, context overrides,
384
+ * and a custom trigger payload.
385
+ *
386
+ * @param flow The flow definition to test.
387
+ * @param options Optional config variables, context overrides, and trigger payload.
388
+ * @returns An object with `result` (the flow execution return value) and `loggerMock`.
389
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
390
+ * @example
391
+ * import { invokeFlow } from "@prismatic-io/spectral/dist/testing";
392
+ * import { myFlow } from "./flows";
393
+ *
394
+ * it("should execute the flow end-to-end", async () => {
395
+ * const { result } = await invokeFlow(myFlow, {
396
+ * configVars: {
397
+ * "Acme API Endpoint": "https://api.acme.com",
398
+ * "Acme Connection": {
399
+ * fields: { apiKey: "test-key" },
400
+ * key: "apiKey",
401
+ * },
402
+ * },
403
+ * payload: {
404
+ * body: { data: JSON.stringify({ event: "created" }) },
405
+ * },
406
+ * });
407
+ *
408
+ * expect(result.data).toBeDefined();
409
+ * });
269
410
  */
270
411
  const invokeFlow = (flow_1, ...args_1) => __awaiter(void 0, [flow_1, ...args_1], void 0, function* (flow, { configVars, context, payload, } = {}) {
271
412
  const realizedConfigVars = createConfigVars(configVars);
@@ -366,8 +507,33 @@ class ComponentTestHarness {
366
507
  }
367
508
  exports.ComponentTestHarness = ComponentTestHarness;
368
509
  /**
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/
510
+ * Create a testing harness to test a custom component's actions, triggers
511
+ * and data sources by key. The harness automatically provides default input
512
+ * values and mock context.
513
+ *
514
+ * @param component The compiled component object (the result of calling `component()`).
515
+ * @returns A `ComponentTestHarness` instance with `.action()`, `.trigger()`, and `.dataSource()` methods.
516
+ * @see {@link https://prismatic.io/docs/custom-connectors/unit-testing/ | Unit Testing}
517
+ * @example
518
+ * import { testing } from "@prismatic-io/spectral";
519
+ * import myComponent from ".";
520
+ *
521
+ * const harness = testing.createHarness(myComponent);
522
+ *
523
+ * it("should list items", async () => {
524
+ * const result = await harness.action("listItems", {
525
+ * connection: testConnection,
526
+ * limit: "10",
527
+ * });
528
+ * expect(result.data).toHaveProperty("items");
529
+ * });
530
+ *
531
+ * it("should handle a webhook trigger", async () => {
532
+ * const result = await harness.trigger("webhook", {
533
+ * body: { data: '{"event":"created"}' },
534
+ * });
535
+ * expect(result.payload).toBeDefined();
536
+ * });
371
537
  */
372
538
  const createHarness = (component) => {
373
539
  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
@@ -5,5 +5,5 @@ export interface FlowAttributes {
5
5
  /** The name of the currently running flow. */
6
6
  name: string;
7
7
  /** The stable ID of the currently running flow. */
8
- stableId?: string;
8
+ stableId: string;
9
9
  }
@@ -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";