src/components/location-overview/location-overview.model.ts
This interface represents the metadata for the location overview.
CmsComponent
Properties |
headline |
headline:
|
Type : string
|
Optional |
locations |
locations:
|
Type : LocationData[]
|
Optional |
previewId |
previewId:
|
Type : string
|
Optional |
typeCode |
typeCode:
|
Type : string
|
Optional |
uid |
uid:
|
Type : string
|
Optional |
import { CmsComponent } from '@spartacus/core';
import { CmsInputTextFormData } from '../../converter/teaser/fs-teaser.model';
/**
* This interface represents the metadata for the location overview.
*
* @export
* @interface LocationOverviewComponentData
*/
export interface LocationOverviewComponentData extends CmsComponent {
uid?: string;
typeCode?: string;
previewId?: string;
headline?: string;
locations?: LocationData[];
}
export interface LocationReference extends CmsComponent {
fsType: string;
identifier: string;
value: {
fsType: string;
target: {
fsType: string;
schema: string;
entityType: string;
identifier: string;
dataset: LocationDatasetDocument;
};
};
childPreviewId: string;
}
/**
* This interface represents the address information of a location.
*
* @export
* @interface LocationData
*/
export interface LocationData extends CmsComponent {
uid?: any;
street?: any;
number?: any;
zip?: any;
city?: any;
}
export interface LocationDatasetDocument {
uid: string;
typeCode: string;
flexType: string;
otherProperties: {
formData: {
tt_city: CmsInputTextFormData;
tt_number: CmsInputTextFormData;
tt_street: CmsInputTextFormData;
tt_zip: CmsInputTextFormData;
};
previewId: string;
locale: {
identifier: string;
country: string;
language: string;
};
};
}