Implement SmartMenuiserie API + added bun test-server
This commit is contained in:
parent
281cd92194
commit
b4806db91a
21 changed files with 377 additions and 244 deletions
11
src/Interfaces/ActionContainerModel.ts
Normal file
11
src/Interfaces/ActionContainerModel.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { AddingBehavior } from '../Enums/AddingBehavior';
|
||||
import { IImageModel } from './IImageModel';
|
||||
|
||||
export interface IActionContainerModel {
|
||||
Id: string
|
||||
CustomLogo: IImageModel
|
||||
Label: string
|
||||
Description: string
|
||||
Action: string
|
||||
AddingBehavior: AddingBehavior
|
||||
}
|
28
src/Interfaces/IAvailableContainerModel.ts
Normal file
28
src/Interfaces/IAvailableContainerModel.ts
Normal file
|
@ -0,0 +1,28 @@
|
|||
import { IActionContainerModel } from './ActionContainerModel'
|
||||
import { IAvailableDefaultContainerModel } from './IAvailableDefaultContainerModel'
|
||||
|
||||
/** Model of available container used in application configuration */
|
||||
export interface IAvailableContainerModel {
|
||||
Type: string
|
||||
BodyColor: string
|
||||
BorderColor: string
|
||||
BorderWidth: number
|
||||
Width: number
|
||||
Height: number
|
||||
Padding: number
|
||||
MinWidth: number
|
||||
MaxWidth: number
|
||||
MinHeight: number
|
||||
MaxHeight: number
|
||||
IsWidthFixed: boolean
|
||||
IsPositionFixed: boolean
|
||||
|
||||
ShowCotation: boolean
|
||||
|
||||
/** Default Type container to add with this container (Priority on DefaultChildrenContainers property) */
|
||||
TypeChildContainerDefault: string
|
||||
|
||||
/** Default children container to add with this container */
|
||||
DefaultChildrenContainers: IAvailableDefaultContainerModel[]
|
||||
ContainerActions: IActionContainerModel[]
|
||||
}
|
4
src/Interfaces/IAvailableDefaultContainerModel.ts
Normal file
4
src/Interfaces/IAvailableDefaultContainerModel.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export interface IAvailableDefaultContainerModel {
|
||||
Type: string
|
||||
DefaultChildrenContainers: IAvailableDefaultContainerModel[]
|
||||
}
|
12
src/Interfaces/IAvailableSymbolModel.ts
Normal file
12
src/Interfaces/IAvailableSymbolModel.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { XPositionReference } from '../Enums/XPositionReference';
|
||||
import { IImageModel } from './IImageModel';
|
||||
|
||||
/**
|
||||
* Model of available symbol to configure the application */
|
||||
export interface IAvailableSymbolModel {
|
||||
Name: string
|
||||
XPositionReference: XPositionReference
|
||||
Image: IImageModel
|
||||
Width: number
|
||||
Height: number
|
||||
}
|
9
src/Interfaces/IConfigurationResponseModel.ts
Normal file
9
src/Interfaces/IConfigurationResponseModel.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { IAvailableContainerModel } from './IAvailableContainerModel';
|
||||
import { IAvailableSymbolModel } from './IAvailableSymbolModel';
|
||||
|
||||
/** Model of configuration for the application to configure it */
|
||||
export interface IConfigurationResponseModel {
|
||||
AvailableContainers: IAvailableContainerModel[];
|
||||
AvailableSymbols: IAvailableSymbolModel[];
|
||||
MainContainer: IAvailableContainerModel;
|
||||
}
|
7
src/Interfaces/IImageModel.ts
Normal file
7
src/Interfaces/IImageModel.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
/** Model of an image with multiple source */
|
||||
export interface IImageModel {
|
||||
Name: string;
|
||||
Url: string;
|
||||
Base64Image: string;
|
||||
Svg: string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue