@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 =
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
type TConfigPages =
|
|
9
|
+
IsAny<typeof configPages> extends true
|
|
10
|
+
? { [key: string]: ConfigPage }
|
|
11
|
+
: typeof configPages;
|
|
11
12
|
|
|
12
|
-
type
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismatic-io/prism",
|
|
3
|
-
"version": "7.0.0-rc.
|
|
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",
|