@vendure/common
Advanced tools
Comparing version 0.1.2-beta.7 to 0.1.2-beta.8
@@ -88,2 +88,9 @@ export declare type Maybe<T> = T | null; | ||
} | ||
export declare type BooleanCustomFieldConfig = CustomField & { | ||
__typename?: 'BooleanCustomFieldConfig'; | ||
name: Scalars['String']; | ||
type: Scalars['String']; | ||
label?: Maybe<Array<LocalizedString>>; | ||
description?: Maybe<Array<LocalizedString>>; | ||
}; | ||
export declare type BooleanOperators = { | ||
@@ -448,2 +455,25 @@ eq?: Maybe<Scalars['Boolean']>; | ||
}; | ||
export declare type CustomField = { | ||
__typename?: 'CustomField'; | ||
name: Scalars['String']; | ||
type: Scalars['String']; | ||
label?: Maybe<Array<LocalizedString>>; | ||
description?: Maybe<Array<LocalizedString>>; | ||
}; | ||
export declare type CustomFieldConfig = StringCustomFieldConfig | LocaleStringCustomFieldConfig | IntCustomFieldConfig | FloatCustomFieldConfig | BooleanCustomFieldConfig | DateTimeCustomFieldConfig; | ||
export declare type CustomFields = { | ||
__typename?: 'CustomFields'; | ||
Address: Array<CustomFieldConfig>; | ||
Collection: Array<CustomFieldConfig>; | ||
Customer: Array<CustomFieldConfig>; | ||
Facet: Array<CustomFieldConfig>; | ||
FacetValue: Array<CustomFieldConfig>; | ||
GlobalSettings: Array<CustomFieldConfig>; | ||
OrderLine: Array<CustomFieldConfig>; | ||
Product: Array<CustomFieldConfig>; | ||
ProductOption: Array<CustomFieldConfig>; | ||
ProductOptionGroup: Array<CustomFieldConfig>; | ||
ProductVariant: Array<CustomFieldConfig>; | ||
User: Array<CustomFieldConfig>; | ||
}; | ||
export declare type DateOperators = { | ||
@@ -459,2 +489,12 @@ eq?: Maybe<Scalars['DateTime']>; | ||
}; | ||
export declare type DateTimeCustomFieldConfig = CustomField & { | ||
__typename?: 'DateTimeCustomFieldConfig'; | ||
name: Scalars['String']; | ||
type: Scalars['String']; | ||
label?: Maybe<Array<LocalizedString>>; | ||
description?: Maybe<Array<LocalizedString>>; | ||
min?: Maybe<Scalars['String']>; | ||
max?: Maybe<Scalars['String']>; | ||
step?: Maybe<Scalars['Int']>; | ||
}; | ||
export declare type DeletionResponse = { | ||
@@ -519,2 +559,12 @@ __typename?: 'DeletionResponse'; | ||
}; | ||
export declare type FloatCustomFieldConfig = CustomField & { | ||
__typename?: 'FloatCustomFieldConfig'; | ||
name: Scalars['String']; | ||
type: Scalars['String']; | ||
label?: Maybe<Array<LocalizedString>>; | ||
description?: Maybe<Array<LocalizedString>>; | ||
min?: Maybe<Scalars['Float']>; | ||
max?: Maybe<Scalars['Float']>; | ||
step?: Maybe<Scalars['Float']>; | ||
}; | ||
export declare type Fulfillment = Node & { | ||
@@ -583,2 +633,12 @@ __typename?: 'Fulfillment'; | ||
}; | ||
export declare type IntCustomFieldConfig = CustomField & { | ||
__typename?: 'IntCustomFieldConfig'; | ||
name: Scalars['String']; | ||
type: Scalars['String']; | ||
label?: Maybe<Array<LocalizedString>>; | ||
description?: Maybe<Array<LocalizedString>>; | ||
min?: Maybe<Scalars['Int']>; | ||
max?: Maybe<Scalars['Int']>; | ||
step?: Maybe<Scalars['Int']>; | ||
}; | ||
export declare enum LanguageCode { | ||
@@ -770,2 +830,15 @@ aa = "aa", | ||
} | ||
export declare type LocaleStringCustomFieldConfig = CustomField & { | ||
__typename?: 'LocaleStringCustomFieldConfig'; | ||
name: Scalars['String']; | ||
type: Scalars['String']; | ||
label?: Maybe<Array<LocalizedString>>; | ||
description?: Maybe<Array<LocalizedString>>; | ||
pattern?: Maybe<Scalars['String']>; | ||
}; | ||
export declare type LocalizedString = { | ||
__typename?: 'LocalizedString'; | ||
languageCode: LanguageCode; | ||
value: Scalars['String']; | ||
}; | ||
export declare type LoginResult = { | ||
@@ -1378,3 +1451,3 @@ __typename?: 'LoginResult'; | ||
__typename?: 'ServerConfig'; | ||
customFields?: Maybe<Scalars['JSON']>; | ||
customFieldConfig: CustomFields; | ||
}; | ||
@@ -1441,2 +1514,16 @@ export declare type ShippingMethod = Node & { | ||
} | ||
export declare type StringCustomFieldConfig = CustomField & { | ||
__typename?: 'StringCustomFieldConfig'; | ||
name: Scalars['String']; | ||
type: Scalars['String']; | ||
label?: Maybe<Array<LocalizedString>>; | ||
description?: Maybe<Array<LocalizedString>>; | ||
pattern?: Maybe<Scalars['String']>; | ||
options?: Maybe<Array<StringFieldOption>>; | ||
}; | ||
export declare type StringFieldOption = { | ||
__typename?: 'StringFieldOption'; | ||
value: Scalars['String']; | ||
label?: Maybe<Array<LocalizedString>>; | ||
}; | ||
export declare type StringOperators = { | ||
@@ -1443,0 +1530,0 @@ eq?: Maybe<Scalars['String']>; |
@@ -13,24 +13,2 @@ export declare type DeepPartial<T> = { | ||
export declare type CustomFieldType = 'string' | 'localeString' | 'int' | 'float' | 'boolean' | 'datetime'; | ||
export interface CustomFieldConfig { | ||
name: string; | ||
type: CustomFieldType; | ||
} | ||
export interface CustomFields { | ||
Address?: CustomFieldConfig[]; | ||
Collection?: CustomFieldConfig[]; | ||
Customer?: CustomFieldConfig[]; | ||
Facet?: CustomFieldConfig[]; | ||
FacetValue?: CustomFieldConfig[]; | ||
GlobalSettings?: CustomFieldConfig[]; | ||
OrderLine?: CustomFieldConfig[]; | ||
Product?: CustomFieldConfig[]; | ||
ProductOption?: CustomFieldConfig[]; | ||
ProductOptionGroup?: CustomFieldConfig[]; | ||
ProductVariant?: CustomFieldConfig[]; | ||
User?: CustomFieldConfig[]; | ||
} | ||
export interface HasCustomFields { | ||
customFields: CustomFieldsObject; | ||
} | ||
export declare type MayHaveCustomFields = Partial<HasCustomFields>; | ||
export declare type CustomFieldsObject = { | ||
@@ -37,0 +15,0 @@ [key: string]: any; |
{ | ||
"name": "@vendure/common", | ||
"version": "0.1.2-beta.7", | ||
"version": "0.1.2-beta.8", | ||
"main": "index.js", | ||
@@ -21,3 +21,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "884c8c262ff949459517675ea7c5a8a1444947dc" | ||
"gitHead": "d09dbb528eb6831a9bfd010e4c469a2253bcbb70" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
179815
5138