Implement SmartMenuiserie API + added bun test-server

This commit is contained in:
Hydroxycarbamide 2022-07-30 19:56:41 +02:00
parent 281cd92194
commit b4806db91a
21 changed files with 377 additions and 244 deletions

View 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
}

View 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[]
}

View file

@ -0,0 +1,4 @@
export interface IAvailableDefaultContainerModel {
Type: string
DefaultChildrenContainers: IAvailableDefaultContainerModel[]
}

View 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
}

View 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;
}

View file

@ -0,0 +1,7 @@
/** Model of an image with multiple source */
export interface IImageModel {
Name: string;
Url: string;
Base64Image: string;
Svg: string;
}