update schemas so they export at PropertyEditorConfig model

This commit is contained in:
Mads Rasmussen
2022-09-27 11:40:55 +02:00
parent 366ccca209
commit 7aa01d2bab
5 changed files with 36 additions and 62 deletions

View File

@@ -602,6 +602,17 @@ components:
- label
- alias
- propertyEditorUI
PropertyEditorConfig:
type: object
properties:
properties:
type: array
items:
$ref: '#/components/schemas/PropertyEditorConfigProperty'
defaultConfig:
type: object
required:
- properties
MetaPropertyEditorUI:
type: object
properties:
@@ -614,16 +625,7 @@ components:
group:
type: string
config:
type: object
properties:
properties:
type: array
items:
$ref: '#/components/schemas/PropertyEditorConfigProperty'
defaultConfig:
type: object
required:
- properties
$ref: '#/components/schemas/PropertyEditorConfig'
required:
- label
- propertyEditor
@@ -918,16 +920,7 @@ components:
hasConfig:
type: boolean
config:
type: object
properties:
properties:
type: array
items:
$ref: '#/components/schemas/PropertyEditorConfigProperty'
defaultConfig:
type: object
required:
- properties
$ref: '#/components/schemas/PropertyEditorConfig'
required:
- alias
- name
@@ -959,16 +952,7 @@ components:
hasConfig:
type: boolean
config:
type: object
properties:
properties:
type: array
items:
$ref: '#/components/schemas/PropertyEditorConfigProperty'
defaultConfig:
type: object
required:
- properties
$ref: '#/components/schemas/PropertyEditorConfig'
required:
- alias
- name
@@ -980,19 +964,15 @@ components:
properties:
propertyEditorAlias:
type: string
config:
properties:
type: array
items:
$ref: '#/components/schemas/PropertyEditorConfigProperty'
defaultConfig:
type: object
properties:
properties:
type: array
items:
$ref: '#/components/schemas/PropertyEditorConfigProperty'
defaultConfig:
type: object
required:
- properties
required:
- propertyEditorAlias
- properties
ServerStatus:
type: string
enum:

View File

@@ -182,15 +182,16 @@ export interface components {
alias: string;
propertyEditorUI: string;
};
PropertyEditorConfig: {
properties: components["schemas"]["PropertyEditorConfigProperty"][];
defaultConfig?: { [key: string]: unknown };
};
MetaPropertyEditorUI: {
label: string;
propertyEditor: string;
icon: string;
group: string;
config?: {
properties: components["schemas"]["PropertyEditorConfigProperty"][];
defaultConfig?: { [key: string]: unknown };
};
config?: components["schemas"]["PropertyEditorConfig"];
};
IManifestPropertyEditorUI: {
/** @enum {string} */
@@ -306,10 +307,7 @@ export interface components {
group?: string;
isSystem: boolean;
hasConfig: boolean;
config?: {
properties: components["schemas"]["PropertyEditorConfigProperty"][];
defaultConfig?: { [key: string]: unknown };
};
config?: components["schemas"]["PropertyEditorConfig"];
};
PropertyEditorsListResponse: {
propertyEditors: components["schemas"]["PropertyEditor"][];
@@ -321,17 +319,12 @@ export interface components {
group?: string;
isSystem: boolean;
hasConfig: boolean;
config?: {
properties: components["schemas"]["PropertyEditorConfigProperty"][];
defaultConfig?: { [key: string]: unknown };
};
config?: components["schemas"]["PropertyEditorConfig"];
};
PropertyEditorConfigResponse: {
propertyEditorAlias: string;
config?: {
properties: components["schemas"]["PropertyEditorConfigProperty"][];
defaultConfig?: { [key: string]: unknown };
};
properties: components["schemas"]["PropertyEditorConfigProperty"][];
defaultConfig?: { [key: string]: unknown };
};
/** @enum {string} */
ServerStatus: "running" | "must-install" | "must-upgrade";

View File

@@ -35,6 +35,7 @@ export type PackageInstalled = components['schemas']['PackageInstalled'];
export type PropertyEditorsListResponse = components['schemas']['PropertyEditorsListResponse'];
export type PropertyEditorResponse = components['schemas']['PropertyEditorResponse'];
export type PropertyEditorConfigResponse = components['schemas']['PropertyEditorConfigResponse'];
export type PropertyEditorConfig = components['schemas']['PropertyEditorConfig'];
export type PropertyEditor = components['schemas']['PropertyEditor'];
export type PropertyEditorConfigProperty = components['schemas']['PropertyEditorConfigProperty'];

View File

@@ -99,11 +99,12 @@ export interface MetaTreeItemAction {
icon: string;
weight: number;
}
export interface MetaPropertyEditorUI extends PropertyEditorConfig {
export interface MetaPropertyEditorUI {
label: string;
propertyEditor: string;
icon: string;
group: string;
config?: PropertyEditorConfig;
}
export interface MetaDashboard {

View File

@@ -54,20 +54,19 @@ export interface PropertyEditorConfigResponse extends PropertyEditorConfig {
propertyEditorAlias: string;
}
export interface PropertyEditor extends PropertyEditorConfig {
export interface PropertyEditor {
alias: string;
name: string;
icon: string;
group?: string;
isSystem: boolean;
hasConfig: boolean;
config?: PropertyEditorConfig;
}
export interface PropertyEditorConfig {
config?: {
properties: PropertyEditorConfigProperty[];
defaultConfig?: {};
};
properties: PropertyEditorConfigProperty[];
defaultConfig?: {};
}
export interface PropertyEditorConfigProperty {