@openshift-console/dynamic-plugin-sdk
Advanced tools
Comparing version 0.0.0-alpha1 to 0.0.0-alpha2
@@ -40,2 +40,5 @@ export default { | ||
"$ref": "#/definitions/YAMLTemplate" | ||
}, | ||
{ | ||
"$ref": "#/definitions/AddAction" | ||
} | ||
@@ -513,4 +516,107 @@ ] | ||
"additionalProperties": false | ||
}, | ||
"AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "dev-console.add/action" | ||
}, | ||
"properties": { | ||
"$ref": "#/definitions/ExtensionProperties.AddAction" | ||
}, | ||
"flags": { | ||
"$ref": "#/definitions/ExtensionFlags" | ||
} | ||
}, | ||
"required": [ | ||
"properties", | ||
"type" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionProperties.AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "ID used to identify the action." | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "The label of the action" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "The description of the action." | ||
}, | ||
"href": { | ||
"type": "string", | ||
"description": "The href to navigate to." | ||
}, | ||
"icon": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/definitions/EncodedCodeRef" | ||
} | ||
], | ||
"description": "The perspective display icon." | ||
}, | ||
"accessReview": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExtensionAccessReviewResourceAttributes" | ||
}, | ||
"description": "Optional access review to control visibility / enablement of the action." | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"label", | ||
"description", | ||
"href" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionAccessReviewResourceAttributes": { | ||
"type": "object", | ||
"properties": { | ||
"group": { | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"type": "string" | ||
}, | ||
"subresource": { | ||
"type": "string" | ||
}, | ||
"verb": { | ||
"$ref": "#/definitions/ExtensionK8sVerb" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ExtensionK8sVerb": { | ||
"type": "string", | ||
"enum": [ | ||
"create", | ||
"get", | ||
"list", | ||
"update", | ||
"patch", | ||
"delete", | ||
"deletecollection", | ||
"watch" | ||
] | ||
} | ||
} | ||
}; |
@@ -40,2 +40,5 @@ { | ||
"$ref": "#/definitions/YAMLTemplate" | ||
}, | ||
{ | ||
"$ref": "#/definitions/AddAction" | ||
} | ||
@@ -513,4 +516,107 @@ ] | ||
"additionalProperties": false | ||
}, | ||
"AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "dev-console.add/action" | ||
}, | ||
"properties": { | ||
"$ref": "#/definitions/ExtensionProperties.AddAction" | ||
}, | ||
"flags": { | ||
"$ref": "#/definitions/ExtensionFlags" | ||
} | ||
}, | ||
"required": [ | ||
"properties", | ||
"type" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionProperties.AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "ID used to identify the action." | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "The label of the action" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "The description of the action." | ||
}, | ||
"href": { | ||
"type": "string", | ||
"description": "The href to navigate to." | ||
}, | ||
"icon": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/definitions/EncodedCodeRef" | ||
} | ||
], | ||
"description": "The perspective display icon." | ||
}, | ||
"accessReview": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExtensionAccessReviewResourceAttributes" | ||
}, | ||
"description": "Optional access review to control visibility / enablement of the action." | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"label", | ||
"description", | ||
"href" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionAccessReviewResourceAttributes": { | ||
"type": "object", | ||
"properties": { | ||
"group": { | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"type": "string" | ||
}, | ||
"subresource": { | ||
"type": "string" | ||
}, | ||
"verb": { | ||
"$ref": "#/definitions/ExtensionK8sVerb" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ExtensionK8sVerb": { | ||
"type": "string", | ||
"enum": [ | ||
"create", | ||
"get", | ||
"list", | ||
"update", | ||
"patch", | ||
"delete", | ||
"deletecollection", | ||
"watch" | ||
] | ||
} | ||
} | ||
} |
@@ -84,2 +84,5 @@ export default { | ||
"$ref": "#/definitions/YAMLTemplate" | ||
}, | ||
{ | ||
"$ref": "#/definitions/AddAction" | ||
} | ||
@@ -557,4 +560,107 @@ ] | ||
"additionalProperties": false | ||
}, | ||
"AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "dev-console.add/action" | ||
}, | ||
"properties": { | ||
"$ref": "#/definitions/ExtensionProperties.AddAction" | ||
}, | ||
"flags": { | ||
"$ref": "#/definitions/ExtensionFlags" | ||
} | ||
}, | ||
"required": [ | ||
"properties", | ||
"type" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionProperties.AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "ID used to identify the action." | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "The label of the action" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "The description of the action." | ||
}, | ||
"href": { | ||
"type": "string", | ||
"description": "The href to navigate to." | ||
}, | ||
"icon": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/definitions/EncodedCodeRef" | ||
} | ||
], | ||
"description": "The perspective display icon." | ||
}, | ||
"accessReview": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExtensionAccessReviewResourceAttributes" | ||
}, | ||
"description": "Optional access review to control visibility / enablement of the action." | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"label", | ||
"description", | ||
"href" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionAccessReviewResourceAttributes": { | ||
"type": "object", | ||
"properties": { | ||
"group": { | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"type": "string" | ||
}, | ||
"subresource": { | ||
"type": "string" | ||
}, | ||
"verb": { | ||
"$ref": "#/definitions/ExtensionK8sVerb" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ExtensionK8sVerb": { | ||
"type": "string", | ||
"enum": [ | ||
"create", | ||
"get", | ||
"list", | ||
"update", | ||
"patch", | ||
"delete", | ||
"deletecollection", | ||
"watch" | ||
] | ||
} | ||
} | ||
}; |
@@ -84,2 +84,5 @@ { | ||
"$ref": "#/definitions/YAMLTemplate" | ||
}, | ||
{ | ||
"$ref": "#/definitions/AddAction" | ||
} | ||
@@ -557,4 +560,107 @@ ] | ||
"additionalProperties": false | ||
}, | ||
"AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "dev-console.add/action" | ||
}, | ||
"properties": { | ||
"$ref": "#/definitions/ExtensionProperties.AddAction" | ||
}, | ||
"flags": { | ||
"$ref": "#/definitions/ExtensionFlags" | ||
} | ||
}, | ||
"required": [ | ||
"properties", | ||
"type" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionProperties.AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "ID used to identify the action." | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "The label of the action" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "The description of the action." | ||
}, | ||
"href": { | ||
"type": "string", | ||
"description": "The href to navigate to." | ||
}, | ||
"icon": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/definitions/EncodedCodeRef" | ||
} | ||
], | ||
"description": "The perspective display icon." | ||
}, | ||
"accessReview": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExtensionAccessReviewResourceAttributes" | ||
}, | ||
"description": "Optional access review to control visibility / enablement of the action." | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"label", | ||
"description", | ||
"href" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionAccessReviewResourceAttributes": { | ||
"type": "object", | ||
"properties": { | ||
"group": { | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"type": "string" | ||
}, | ||
"subresource": { | ||
"type": "string" | ||
}, | ||
"verb": { | ||
"$ref": "#/definitions/ExtensionK8sVerb" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ExtensionK8sVerb": { | ||
"type": "string", | ||
"enum": [ | ||
"create", | ||
"get", | ||
"list", | ||
"update", | ||
"patch", | ||
"delete", | ||
"deletecollection", | ||
"watch" | ||
] | ||
} | ||
} | ||
} |
{ | ||
"name": "@openshift-console/dynamic-plugin-sdk", | ||
"version": "0.0.0-alpha1", | ||
"version": "0.0.0-alpha2", | ||
"description": "Tools and APIs for building OpenShift Console dynamic plugins", | ||
"license": "Apache-2.0", | ||
"main": "dist/src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"main": "dist/packages/console-dynamic-plugin-sdk/src/index.js", | ||
"types": "dist/packages/console-dynamic-plugin-sdk/src/index.d.ts", | ||
"scripts": { | ||
"clean": "rm -rf ./dist", | ||
"build": "yarn schema && tsc && cp -r ./schema ./dist", | ||
"clean": "rm -rf ./dist ./schema", | ||
"build": "yarn schema && yarn ts-node ./scripts/build-sdk.ts && cp -r ./schema ./dist", | ||
"prepublish": "yarn build && cp ../../../LICENSE ./", | ||
@@ -16,3 +16,2 @@ "schema": "yarn clean && yarn ts-node ./scripts/generate-schema.ts", | ||
"devDependencies": { | ||
"comment-json": "4.x", | ||
"ts-json-schema-generator": "0.x", | ||
@@ -19,0 +18,0 @@ "webpack": "5.0.0-beta.16" |
@@ -109,3 +109,3 @@ # OpenShift Console Dynamic Plugins | ||
import * as webpack from 'webpack'; | ||
import { ConsoleRemotePlugin } from '@openshift-console/dynamic-plugin-sdk'; | ||
import { ConsoleRemotePlugin } from '@console/dynamic-plugin-sdk'; | ||
@@ -112,0 +112,0 @@ const config: webpack.Configuration = { |
@@ -40,2 +40,5 @@ export default { | ||
"$ref": "#/definitions/YAMLTemplate" | ||
}, | ||
{ | ||
"$ref": "#/definitions/AddAction" | ||
} | ||
@@ -513,4 +516,107 @@ ] | ||
"additionalProperties": false | ||
}, | ||
"AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "dev-console.add/action" | ||
}, | ||
"properties": { | ||
"$ref": "#/definitions/ExtensionProperties.AddAction" | ||
}, | ||
"flags": { | ||
"$ref": "#/definitions/ExtensionFlags" | ||
} | ||
}, | ||
"required": [ | ||
"properties", | ||
"type" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionProperties.AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "ID used to identify the action." | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "The label of the action" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "The description of the action." | ||
}, | ||
"href": { | ||
"type": "string", | ||
"description": "The href to navigate to." | ||
}, | ||
"icon": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/definitions/EncodedCodeRef" | ||
} | ||
], | ||
"description": "The perspective display icon." | ||
}, | ||
"accessReview": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExtensionAccessReviewResourceAttributes" | ||
}, | ||
"description": "Optional access review to control visibility / enablement of the action." | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"label", | ||
"description", | ||
"href" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionAccessReviewResourceAttributes": { | ||
"type": "object", | ||
"properties": { | ||
"group": { | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"type": "string" | ||
}, | ||
"subresource": { | ||
"type": "string" | ||
}, | ||
"verb": { | ||
"$ref": "#/definitions/ExtensionK8sVerb" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ExtensionK8sVerb": { | ||
"type": "string", | ||
"enum": [ | ||
"create", | ||
"get", | ||
"list", | ||
"update", | ||
"patch", | ||
"delete", | ||
"deletecollection", | ||
"watch" | ||
] | ||
} | ||
} | ||
}; |
@@ -40,2 +40,5 @@ { | ||
"$ref": "#/definitions/YAMLTemplate" | ||
}, | ||
{ | ||
"$ref": "#/definitions/AddAction" | ||
} | ||
@@ -513,4 +516,107 @@ ] | ||
"additionalProperties": false | ||
}, | ||
"AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "dev-console.add/action" | ||
}, | ||
"properties": { | ||
"$ref": "#/definitions/ExtensionProperties.AddAction" | ||
}, | ||
"flags": { | ||
"$ref": "#/definitions/ExtensionFlags" | ||
} | ||
}, | ||
"required": [ | ||
"properties", | ||
"type" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionProperties.AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "ID used to identify the action." | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "The label of the action" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "The description of the action." | ||
}, | ||
"href": { | ||
"type": "string", | ||
"description": "The href to navigate to." | ||
}, | ||
"icon": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/definitions/EncodedCodeRef" | ||
} | ||
], | ||
"description": "The perspective display icon." | ||
}, | ||
"accessReview": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExtensionAccessReviewResourceAttributes" | ||
}, | ||
"description": "Optional access review to control visibility / enablement of the action." | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"label", | ||
"description", | ||
"href" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionAccessReviewResourceAttributes": { | ||
"type": "object", | ||
"properties": { | ||
"group": { | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"type": "string" | ||
}, | ||
"subresource": { | ||
"type": "string" | ||
}, | ||
"verb": { | ||
"$ref": "#/definitions/ExtensionK8sVerb" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ExtensionK8sVerb": { | ||
"type": "string", | ||
"enum": [ | ||
"create", | ||
"get", | ||
"list", | ||
"update", | ||
"patch", | ||
"delete", | ||
"deletecollection", | ||
"watch" | ||
] | ||
} | ||
} | ||
} |
@@ -84,2 +84,5 @@ export default { | ||
"$ref": "#/definitions/YAMLTemplate" | ||
}, | ||
{ | ||
"$ref": "#/definitions/AddAction" | ||
} | ||
@@ -557,4 +560,107 @@ ] | ||
"additionalProperties": false | ||
}, | ||
"AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "dev-console.add/action" | ||
}, | ||
"properties": { | ||
"$ref": "#/definitions/ExtensionProperties.AddAction" | ||
}, | ||
"flags": { | ||
"$ref": "#/definitions/ExtensionFlags" | ||
} | ||
}, | ||
"required": [ | ||
"properties", | ||
"type" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionProperties.AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "ID used to identify the action." | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "The label of the action" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "The description of the action." | ||
}, | ||
"href": { | ||
"type": "string", | ||
"description": "The href to navigate to." | ||
}, | ||
"icon": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/definitions/EncodedCodeRef" | ||
} | ||
], | ||
"description": "The perspective display icon." | ||
}, | ||
"accessReview": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExtensionAccessReviewResourceAttributes" | ||
}, | ||
"description": "Optional access review to control visibility / enablement of the action." | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"label", | ||
"description", | ||
"href" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionAccessReviewResourceAttributes": { | ||
"type": "object", | ||
"properties": { | ||
"group": { | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"type": "string" | ||
}, | ||
"subresource": { | ||
"type": "string" | ||
}, | ||
"verb": { | ||
"$ref": "#/definitions/ExtensionK8sVerb" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ExtensionK8sVerb": { | ||
"type": "string", | ||
"enum": [ | ||
"create", | ||
"get", | ||
"list", | ||
"update", | ||
"patch", | ||
"delete", | ||
"deletecollection", | ||
"watch" | ||
] | ||
} | ||
} | ||
}; |
@@ -84,2 +84,5 @@ { | ||
"$ref": "#/definitions/YAMLTemplate" | ||
}, | ||
{ | ||
"$ref": "#/definitions/AddAction" | ||
} | ||
@@ -557,4 +560,107 @@ ] | ||
"additionalProperties": false | ||
}, | ||
"AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "dev-console.add/action" | ||
}, | ||
"properties": { | ||
"$ref": "#/definitions/ExtensionProperties.AddAction" | ||
}, | ||
"flags": { | ||
"$ref": "#/definitions/ExtensionFlags" | ||
} | ||
}, | ||
"required": [ | ||
"properties", | ||
"type" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionProperties.AddAction": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "ID used to identify the action." | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "The label of the action" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "The description of the action." | ||
}, | ||
"href": { | ||
"type": "string", | ||
"description": "The href to navigate to." | ||
}, | ||
"icon": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"$ref": "#/definitions/EncodedCodeRef" | ||
} | ||
], | ||
"description": "The perspective display icon." | ||
}, | ||
"accessReview": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExtensionAccessReviewResourceAttributes" | ||
}, | ||
"description": "Optional access review to control visibility / enablement of the action." | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"label", | ||
"description", | ||
"href" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ExtensionAccessReviewResourceAttributes": { | ||
"type": "object", | ||
"properties": { | ||
"group": { | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"type": "string" | ||
}, | ||
"subresource": { | ||
"type": "string" | ||
}, | ||
"verb": { | ||
"$ref": "#/definitions/ExtensionK8sVerb" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ExtensionK8sVerb": { | ||
"type": "string", | ||
"enum": [ | ||
"create", | ||
"get", | ||
"list", | ||
"update", | ||
"patch", | ||
"delete", | ||
"deletecollection", | ||
"watch" | ||
] | ||
} | ||
} | ||
} |
@@ -0,4 +1,7 @@ | ||
export * from './add-actions'; | ||
export * from './context-providers'; | ||
export * from './feature-flags'; | ||
export * from './pages'; | ||
export * from './pvc'; | ||
export * from './redux'; | ||
export * from './yaml-templates'; |
@@ -5,3 +5,3 @@ import { Extension } from '@console/plugin-sdk/src/typings/base'; | ||
export namespace ExtensionProperties { | ||
namespace ExtensionProperties { | ||
export type PVCCreateProp = { | ||
@@ -8,0 +8,0 @@ /** label for the create prop */ |
import { Extension } from '@console/plugin-sdk/src/typings/base'; | ||
export namespace ExtensionProperties { | ||
namespace ExtensionProperties { | ||
export type YAMLTemplate = { | ||
@@ -5,0 +5,0 @@ /** Model associated with the template. */ |
@@ -1,2 +0,2 @@ | ||
export * from './webpack/ConsoleRemotePlugin'; | ||
export * from './extensions'; | ||
export * from './api'; |
@@ -7,2 +7,3 @@ import { FeatureFlag, ModelFeatureFlag } from '../extensions/feature-flags'; | ||
import { YAMLTemplate } from '../extensions/yaml-templates'; | ||
import { AddAction } from '../extensions/add-actions'; | ||
@@ -19,3 +20,4 @@ export type SupportedExtension = | ||
| PVCDelete | ||
| YAMLTemplate; | ||
| YAMLTemplate | ||
| AddAction; | ||
@@ -22,0 +24,0 @@ /** |
@@ -15,1 +15,22 @@ // TODO: remove this, this type is being used to avoid a JSON schema compilation error. | ||
}; | ||
// TODO: remove this, this type is being used to avoid a JSON schema compilation error. | ||
export type ExtensionAccessReviewResourceAttributes = { | ||
group?: string; | ||
resource?: string; | ||
subresource?: string; | ||
verb?: ExtensionK8sVerb; | ||
name?: string; | ||
namespace?: string; | ||
}; | ||
// TODO: remove this, this type is being used to avoid a JSON schema compilation error. | ||
export type ExtensionK8sVerb = | ||
| 'create' | ||
| 'get' | ||
| 'list' | ||
| 'update' | ||
| 'patch' | ||
| 'delete' | ||
| 'deletecollection' | ||
| 'watch'; |
@@ -13,4 +13,4 @@ { | ||
"noUnusedLocals": true, | ||
"types": ["node", "jest"], | ||
"typeRoots": ["node_modules/@types", "../../node_modules/@types"], | ||
"types": ["node", "jest", "console"], | ||
"typeRoots": ["node_modules/@types", "../../node_modules/@types", "../../@types"], | ||
"declaration": true | ||
@@ -17,0 +17,0 @@ }, |
2
9446
308583
115