mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-05 06:19:08 +00:00
48 lines
1007 B
TypeScript
48 lines
1007 B
TypeScript
import { Link, Theme } from '@dadosfera/protospack-v2/dist/lib/Duc/interfaces/entities';
|
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
|
|
export class CustomerLink implements Link {
|
|
@ApiProperty()
|
|
href: string;
|
|
@ApiProperty()
|
|
name: string;
|
|
@ApiProperty()
|
|
description: string;
|
|
@ApiPropertyOptional()
|
|
iconSrc: string;
|
|
}
|
|
export class CustomerLinkRequest {
|
|
@ApiProperty({ type: [CustomerLink] })
|
|
links: CustomerLink[];
|
|
}
|
|
|
|
export class CustomerLinksResponse {
|
|
@ApiProperty({ type: [CustomerLink] })
|
|
links: CustomerLink[];
|
|
}
|
|
|
|
export class CustomerTheme implements Theme {
|
|
@ApiProperty()
|
|
backgroundColor: string;
|
|
@ApiProperty()
|
|
textColor: string;
|
|
@ApiProperty()
|
|
logo: string;
|
|
@ApiProperty()
|
|
logoLogin: string;
|
|
}
|
|
|
|
export class CustomerThemeResponse {
|
|
@ApiProperty()
|
|
theme: CustomerTheme;
|
|
}
|
|
|
|
export class CustomerThemeRequest {
|
|
@ApiProperty()
|
|
displayName: string;
|
|
@ApiProperty()
|
|
backgroundColor: string;
|
|
@ApiProperty()
|
|
textColor: string;
|
|
}
|