🚨 Announcing Vendure v2 Beta

InitialData

InitialData

Package: @vendure/core File: types.ts

An object defining initial settings for a new Vendure installation.

Signature

interface InitialData {
  defaultLanguage: LanguageCode;
  defaultZone: string;
  roles?: RoleDefinition[];
  countries: CountryDefinition[];
  taxRates: Array<{ name: string; percentage: number }>;
  shippingMethods: Array<{ name: string; price: number }>;
  paymentMethods: Array<{ name: string; handler: ConfigurableOperationInput }>;
  collections: CollectionDefinition[];
}

Members

defaultLanguage

property
type:
LanguageCode

defaultZone

property
type:
string

roles

property
type:
RoleDefinition[]

countries

property
type:
CountryDefinition[]

taxRates

property
type:
Array<{ name: string; percentage: number }>

shippingMethods

property
type:
Array<{ name: string; price: number }>

paymentMethods

property
type:
Array<{ name: string; handler: ConfigurableOperationInput }>

collections

property
type:
CollectionDefinition[]