add packageView type to handle the configuration of packages
This commit is contained in:
@@ -550,6 +550,35 @@ components:
|
||||
- meta
|
||||
- name
|
||||
- alias
|
||||
MetaPackageView:
|
||||
type: object
|
||||
properties:
|
||||
packageAlias:
|
||||
type: string
|
||||
required:
|
||||
- packageAlias
|
||||
IManifestPackageView:
|
||||
type: object
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- packageView
|
||||
meta:
|
||||
$ref: '#/components/schemas/MetaPackageView'
|
||||
name:
|
||||
type: string
|
||||
js:
|
||||
type: string
|
||||
elementName:
|
||||
type: string
|
||||
alias:
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- meta
|
||||
- name
|
||||
- alias
|
||||
IManifestEntrypoint:
|
||||
type: object
|
||||
properties:
|
||||
@@ -586,6 +615,7 @@ components:
|
||||
- $ref: '#/components/schemas/IManifestDashboard'
|
||||
- $ref: '#/components/schemas/IManifestEditorView'
|
||||
- $ref: '#/components/schemas/IManifestPropertyAction'
|
||||
- $ref: '#/components/schemas/IManifestPackageView'
|
||||
- $ref: '#/components/schemas/IManifestEntrypoint'
|
||||
- $ref: '#/components/schemas/IManifestCustom'
|
||||
discriminator:
|
||||
@@ -596,6 +626,7 @@ components:
|
||||
dashboard: '#/components/schemas/IManifestDashboard'
|
||||
editorView: '#/components/schemas/IManifestEditorView'
|
||||
propertyAction: '#/components/schemas/IManifestPropertyAction'
|
||||
packageView: '#/components/schemas/IManifestPackageView'
|
||||
entrypoint: '#/components/schemas/IManifestEntrypoint'
|
||||
custom: '#/components/schemas/IManifestCustom'
|
||||
ManifestsResponse:
|
||||
@@ -607,6 +638,28 @@ components:
|
||||
$ref: '#/components/schemas/Manifest'
|
||||
required:
|
||||
- manifests
|
||||
Package:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
alias:
|
||||
type: string
|
||||
version:
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- alias
|
||||
- version
|
||||
PackagesResponse:
|
||||
type: object
|
||||
properties:
|
||||
packages:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Package'
|
||||
required:
|
||||
- packages
|
||||
ServerStatus:
|
||||
type: string
|
||||
enum:
|
||||
|
||||
@@ -26,6 +26,7 @@ export type Manifest =
|
||||
| IManifestDashboard
|
||||
| IManifestEditorView
|
||||
| IManifestPropertyAction
|
||||
| IManifestPackageView
|
||||
| IManifestEntrypoint
|
||||
| IManifestCustom;
|
||||
|
||||
@@ -35,6 +36,7 @@ export type ManifestStandardTypes =
|
||||
| 'dashboard'
|
||||
| 'editorView'
|
||||
| 'propertyAction'
|
||||
| 'packageView'
|
||||
| 'entrypoint';
|
||||
|
||||
export interface ManifestsResponse {
|
||||
@@ -84,6 +86,10 @@ export interface MetaPropertyAction {
|
||||
propertyEditors: string[];
|
||||
}
|
||||
|
||||
export interface MetaPackageView {
|
||||
packageAlias: string;
|
||||
}
|
||||
|
||||
export interface IManifestCustom extends IManifest {
|
||||
type: 'custom';
|
||||
meta?: {};
|
||||
@@ -122,6 +128,11 @@ export interface IManifestPropertyAction extends IManifestElement {
|
||||
meta: MetaPropertyAction;
|
||||
}
|
||||
|
||||
export interface IManifestPackageView extends IManifestElement {
|
||||
type: 'packageView';
|
||||
meta: MetaPackageView;
|
||||
}
|
||||
|
||||
export interface IManifestEntrypoint extends IManifest {
|
||||
type: 'entrypoint';
|
||||
js: string;
|
||||
|
||||
Reference in New Issue
Block a user