File

src/components/location-overview/location-overview.model.ts

Description

This interface represents the metadata for the location overview.

Extends

CmsComponent

Index

Properties

Properties

headline
headline: string
Type : string
Optional
locations
locations: LocationData[]
Type : LocationData[]
Optional
previewId
previewId: string
Type : string
Optional
typeCode
typeCode: string
Type : string
Optional
uid
uid: string
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;
    };
  };
}

results matching ""

    No results matching ""