@prismatic-io/prism 7.0.0-rc.3 → 7.0.0-rc.4

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.
@@ -1,22 +1,34 @@
1
1
  import { ComponentManifest, ConfigPage } from "@prismatic-io/spectral";
2
2
 
3
3
  // @ts-ignore
4
- import { configPages, componentRegistry } from "../src";
4
+ import { configPages, componentRegistry, userLevelConfigPages } from "../src";
5
5
 
6
6
  type IsAny<T> = 0 extends 1 & T ? true : false;
7
7
 
8
- type TConfigPages = IsAny<typeof configPages> extends true
9
- ? { [key: string]: ConfigPage }
10
- : typeof configPages;
8
+ type TConfigPages =
9
+ IsAny<typeof configPages> extends true
10
+ ? { [key: string]: ConfigPage }
11
+ : typeof configPages;
11
12
 
12
- type TComponentRegistry = IsAny<typeof componentRegistry> extends true
13
- ? { [key: string]: ComponentManifest }
14
- : typeof componentRegistry;
13
+ type TUserLevelConfigPages =
14
+ IsAny<typeof userLevelConfigPages> extends true
15
+ ? { [key: string]: ConfigPage }
16
+ : typeof userLevelConfigPages;
17
+
18
+ type TComponentRegistry =
19
+ IsAny<typeof componentRegistry> extends true
20
+ ? { [key: string]: ComponentManifest }
21
+ : typeof componentRegistry;
15
22
 
16
23
  declare module "@prismatic-io/spectral" {
17
24
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
18
25
  interface IntegrationDefinitionConfigPages extends TConfigPages {}
19
26
 
27
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
28
+ interface IntegrationDefinitionUserLevelConfigPages
29
+ extends TUserLevelConfigPages {}
30
+
20
31
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
21
32
  interface IntegrationDefinitionComponentRegistry extends TComponentRegistry {}
22
33
  }
34
+
@@ -26,5 +26,3 @@ export const configPages = {
26
26
  },
27
27
  }),
28
28
  };
29
-
30
- export type ConfigPages = typeof configPages;
@@ -66,5 +66,3 @@ export const configPages = {
66
66
  },
67
67
  }),
68
68
  };
69
-
70
- export type ConfigPages = typeof configPages;
@@ -4983,5 +4983,5 @@
4983
4983
  "enableJsonFlag": false
4984
4984
  }
4985
4985
  },
4986
- "version": "7.0.0-rc.3"
4986
+ "version": "7.0.0-rc.4"
4987
4987
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/prism",
3
- "version": "7.0.0-rc.3",
3
+ "version": "7.0.0-rc.4",
4
4
  "description": "Build, deploy, and support integrations in Prismatic from the comfort of your command line",
5
5
  "keywords": ["prismatic", "cli"],
6
6
  "homepage": "https://prismatic.io",