projects/core/src/model/misc.model.ts
Properties |
|
Optional details |
Type : ErrorModel[]
|
Defined in projects/core/src/model/misc.model.ts:89
|
Optional message |
Type : string
|
Defined in projects/core/src/model/misc.model.ts:85
|
Optional status |
Type : number
|
Defined in projects/core/src/model/misc.model.ts:86
|
Optional statusText |
Type : string
|
Defined in projects/core/src/model/misc.model.ts:87
|
Optional url |
Type : string | null
|
Defined in projects/core/src/model/misc.model.ts:88
|
import { Address } from './address.model';
export interface Currency {
active?: boolean;
isocode?: string;
name?: string;
symbol?: string;
}
export interface Time {
formattedHour?: string;
hour?: number;
minute?: number;
}
export interface GeoPoint {
latitude?: number;
longitude?: number;
}
export interface Language {
active?: boolean;
isocode?: string;
name?: string;
nativeName?: string;
}
export interface User {
currency?: Currency;
customerId?: string;
deactivationDate?: Date;
defaultAddress?: Address;
displayUid?: string;
firstName?: string;
language?: Language;
lastName?: string;
name?: string;
title?: string;
titleCode?: string;
uid?: string;
roles?: string[];
}
export interface ListModel {
ids: string[];
pagination?: PaginationModel;
sorts?: SortModel[];
}
// TODO(#8875): Do we need it here?
export interface EntitiesModel<T> {
values: T[];
pagination?: PaginationModel;
sorts?: SortModel[];
}
export interface PaginationModel {
currentPage?: number;
pageSize?: number;
sort?: string;
totalPages?: number;
totalResults?: number;
}
export interface SortModel {
code?: string;
name?: string;
selected?: boolean;
}
export interface Title {
code?: string;
name?: string;
}
export interface ErrorModel {
message?: string;
reason?: string;
subject?: string;
subjectType?: string;
type?: string;
}
export class HttpErrorModel {
message?: string;
status?: number;
statusText?: string;
url?: string | null;
details?: ErrorModel[];
}
export interface BaseStore {
currencies?: Currency[];
defaultCurrency?: Currency;
languages?: Language[];
defaultLanguage?: Language;
}
export interface BaseSite {
channel?: string;
defaultLanguage?: Language;
defaultPreviewCatalogId?: string;
defaultPreviewCategoryCode?: string;
defaultPreviewProductCode?: string;
locale?: string;
name?: string;
theme?: string;
uid?: string;
stores?: BaseStore[];
urlPatterns?: string[];
urlEncodingAttributes?: string[];
baseStore?: BaseStore;
}