@prismatic-io/spectral 9.3.0 → 9.3.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.
@@ -195,6 +195,10 @@ const convertComponentReference = (componentReference, componentRegistry, refere
195
195
  ? valueExpr
196
196
  : JSON.stringify(valueExpr);
197
197
  const meta = convertInputPermissionAndVisibility((0, lodash_1.pick)(value, ["permissionAndVisibilityType", "visibleToOrgDeployer"]));
198
+ const { writeOnly } = (0, lodash_1.pick)(value, ["writeOnly"]);
199
+ if (writeOnly) {
200
+ meta.writeOnly = writeOnly;
201
+ }
198
202
  return Object.assign(Object.assign({}, result), { [key]: { type: type, value: formattedValue, meta } });
199
203
  }
200
204
  if ("configVar" in value) {
@@ -30,7 +30,9 @@ type ComponentReferenceTypeValueMap<TValue, TMap extends Record<ComponentReferen
30
30
  actions: ValueExpression<TValue>;
31
31
  triggers: ValueExpression<TValue> | ConfigVarExpression;
32
32
  dataSources: ValueExpression<TValue> | ConfigVarExpression;
33
- connections: (ValueExpression<TValue> | ConfigVarExpression) & ConfigVarVisibility;
33
+ connections: (ValueExpression<TValue> | ConfigVarExpression) & ConfigVarVisibility & {
34
+ writeOnly?: true;
35
+ };
34
36
  }> = TMap;
35
37
  export type ComponentReference<TComponentReference extends {
36
38
  component: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "9.3.0",
3
+ "version": "9.3.1",
4
4
  "description": "Utility library for building Prismatic components and code-native integrations",
5
5
  "keywords": ["prismatic"],
6
6
  "main": "dist/index.js",