@prismatic-io/spectral 10.5.7 → 10.5.9-rc.0

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.
@@ -65,7 +65,9 @@ const convertConfigPages = (pages, userLevelConfigured) => {
65
65
  return [];
66
66
  }
67
67
  return Object.entries(pages).map(([name, { tagline, elements }]) => (Object.assign(Object.assign({ name,
68
- tagline }, (userLevelConfigured ? { userLevelConfigured } : {})), { elements: Object.entries(elements).map(([key, value]) => {
68
+ tagline }, (userLevelConfigured ? { userLevelConfigured } : {})), { elements: Object.entries(elements)
69
+ .filter(([key, value]) => !(0, types_1.isConnectionScopedConfigVar)(value))
70
+ .map(([key, value]) => {
69
71
  if (typeof value === "string") {
70
72
  return {
71
73
  type: "htmlElement",
@@ -380,6 +382,10 @@ const convertConfigVar = (key, configVar, referenceKey, componentRegistry) => {
380
382
  stableKey,
381
383
  dataType: "connection",
382
384
  useScopedConfigVar: stableKey,
385
+ meta: {
386
+ visibleToCustomerDeployer: false,
387
+ visibleToOrgDeployer: false,
388
+ },
383
389
  };
384
390
  }
385
391
  const { orgOnly, meta } = convertConfigVarPermissionAndVisibility((0, pick_1.default)(configVar, ["permissionAndVisibilityType", "visibleToOrgDeployer"]));
@@ -1,5 +1,4 @@
1
- import { InstanceAttributes, CustomerAttributes, DataSourceType, DataSourceResultType, UserAttributes, TriggerEventFunctionReturn, IntegrationAttributes, FlowAttributes, ConfigVarResultCollection, ComponentManifest, FlowInvoker, ExecutionFrame, DebugContext } from "../types";
2
- import { FlowSchemas } from "../types/FlowSchema";
1
+ import { InstanceAttributes, CustomerAttributes, DataSourceType, DataSourceResultType, UserAttributes, TriggerEventFunctionReturn, IntegrationAttributes, FlowAttributes, ConfigVarResultCollection, ComponentManifest, FlowInvoker, ExecutionFrame, DebugContext, FlowSchemas } from "../types";
3
2
  interface DisplayDefinition {
4
3
  label: string;
5
4
  description: string;
@@ -9,6 +8,7 @@ export { CustomerAttributes } from "../types";
9
8
  export { UserAttributes } from "../types";
10
9
  export { IntegrationAttributes } from "../types";
11
10
  export { FlowAttributes } from "../types";
11
+ export { FlowSchemas } from "../types";
12
12
  export interface Component {
13
13
  key: string;
14
14
  public?: boolean;
package/dist/testing.js CHANGED
@@ -134,13 +134,7 @@ const createActionContext = (context) => {
134
134
  memoryUsage: [],
135
135
  allowedMemory: 1024,
136
136
  },
137
- }, flowSchemas: {
138
- invoke: {
139
- properties: {},
140
- type: "",
141
- title: "",
142
- },
143
- } }, context);
137
+ }, flowSchemas: {} }, context);
144
138
  };
145
139
  const createDataSourceContext = (context) => {
146
140
  return Object.assign({ logger: (0, exports.loggerMock)(), configVars: {}, customer: {
@@ -1,6 +1,5 @@
1
1
  import { AxiosRequestConfig, AxiosResponse } from "axios";
2
- import { Inputs, ConfigVarResultCollection, ActionPerformReturn, ActionInputParameters, ActionLogger, InstanceAttributes, CustomerAttributes, UserAttributes, IntegrationAttributes, FlowAttributes, ComponentManifest } from ".";
3
- import { FlowSchemas } from "./FlowSchema";
2
+ import { Inputs, ConfigVarResultCollection, ActionPerformReturn, ActionInputParameters, ActionLogger, InstanceAttributes, CustomerAttributes, UserAttributes, IntegrationAttributes, FlowAttributes, ComponentManifest, FlowSchemas } from ".";
4
3
  interface StandardLineage {
5
4
  componentActionKey: string;
6
5
  executionId: string;
@@ -5,6 +5,8 @@ export interface FlowSchema {
5
5
  properties: Record<string, Record<string, unknown>>;
6
6
  }
7
7
  export interface FlowSchemas {
8
- invoke: FlowSchema;
9
- [key: string]: FlowSchema;
8
+ [key: string]: {
9
+ invoke: FlowSchema;
10
+ [key: string]: FlowSchema;
11
+ };
10
12
  }
@@ -35,4 +35,5 @@ export * from "./IntegrationDefinition";
35
35
  export * from "./ComponentManifest";
36
36
  export * from "./ScopedConfigVars";
37
37
  export * from "./PollingTriggerDefinition";
38
+ export * from "./FlowSchemas";
38
39
  export * as serverTypes from "../serverTypes";
@@ -64,4 +64,5 @@ __exportStar(require("./IntegrationDefinition"), exports);
64
64
  __exportStar(require("./ComponentManifest"), exports);
65
65
  __exportStar(require("./ScopedConfigVars"), exports);
66
66
  __exportStar(require("./PollingTriggerDefinition"), exports);
67
+ __exportStar(require("./FlowSchemas"), exports);
67
68
  exports.serverTypes = __importStar(require("../serverTypes"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "10.5.7",
3
+ "version": "10.5.9-rc.0",
4
4
  "description": "Utility library for building Prismatic connectors and code-native integrations",
5
5
  "keywords": ["prismatic"],
6
6
  "main": "dist/index.js",
File without changes