Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

_createdAt

_createdAt: Date

_createdBy

_createdBy: string

Optional _refLocales

_refLocales: StringTMap<StringAnyMap>

_updatedAt

_updatedAt: Date

_updatedBy

_updatedBy: string

Private _validationController

_validationController: ValidationController

id

id: string

Static options

options: ModelOptions

Accessors

_label

  • get _label(): string

api

deco

isMultilang

  • get isMultilang(): boolean

validationController

  • get validationController(): ValidationController

Static api

Static baseroute

  • get baseroute(): string

Static deco

Static isMultilang

  • get isMultilang(): boolean

Methods

addLocaleInSuffixIfNecessary

  • addLocaleInSuffixIfNecessary(suffix: string, options?: GetAllOptions): string

deleteRoute

  • deleteRoute(elementId: string): string

fixBodyIfFilesToUpload

  • fixBodyIfFilesToUpload(body: any, options?: FixBodyOptions): Promise<any>

get

  • get(propertyName: string): any

getFilePreview

  • getFilePreview(property: string, format: string, options?: FilePreviewOptions): Promise<Blob>

getFilePreviewUrl

  • getFilePreviewUrl(property: string, format: string): Promise<string>

getOneRoute

  • getOneRoute(elementId: string): string

getRoute

  • getRoute(): string

getUxFilePreviewData

  • getUxFilePreviewData(property: string, file: UxFileItem, format: string): Promise<void>

postRoute

  • postRoute(): string

putRoute

  • putRoute(elementId: string): string

remove

save

  • save(suffix?: string, options?: SaveOptions): Promise<any>

set

  • set(propertyName: string, value: any): void

unClass

  • unClass(): any

updateInstanceFromElement

  • updateInstanceFromElement<T>(element: any, properties?: string[]): Promise<T>

updateInstanceFromUnclassedElement

  • updateInstanceFromUnclassedElement<T>(element: any, properties?: string[]): T

updateProperties

validate

  • validate(): Promise<boolean>

validationRules

  • validationRules(): any

Static addLocaleInSuffixIfNecessary

  • addLocaleInSuffixIfNecessary(suffix: string, options?: GetAllOptions): string

Static deleteRoute

  • deleteRoute(elementId: string): string

Static getAll

  • getAll<T>(suffix: string, options?: GetAllOptions): Promise<InstanceType<T>[]>

Static getAllRoute

  • getAllRoute(): string

Static getOneRoute

  • getOneRoute(elementId: string): string

Static getOneWithId

  • getOneWithId<T>(id: string, suffix: string, options?: GetOneOptions): Promise<InstanceType<T>>

Static getOneWithQuery

  • getOneWithQuery<T>(): Promise<InstanceType<T>>

Static instanceFromApi

  • instanceFromApi<T>(element: any): Promise<InstanceType<T>>

Static instanceFromElement

  • instanceFromElement<T>(element: any): InstanceType<T>

Static instanceFromUnclassedElement

  • instanceFromUnclassedElement<T>(element: any): InstanceType<T>

Static postRoute

  • postRoute(): string

Static putRoute

  • putRoute(elementId: string): string

Static request

  • request(method: "get" | "post" | "delete" | "put", uri?: string, body?: any, options?: RequestOption): Promise<Model[]>

Generated using TypeDoc