Skip to content

Commit

Permalink
feat(core): Expose nullable property of CustomFieldConfig
Browse files Browse the repository at this point in the history
Relates to #1083
  • Loading branch information
michaelbromley committed Oct 5, 2021
1 parent b8448c1 commit 9ec6b90
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ export type BooleanCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
};

export type BooleanOperators = {
Expand Down Expand Up @@ -631,13 +632,17 @@ export type CreatePaymentMethodInput = {
handler: ConfigurableOperationInput;
};

export type CreateProductCustomFieldsInput = {
coffeeProfileWithMilk?: Maybe<Scalars['String']>;
};

export type CreateProductInput = {
featuredAssetId?: Maybe<Scalars['ID']>;
enabled?: Maybe<Scalars['Boolean']>;
assetIds?: Maybe<Array<Scalars['ID']>>;
facetValueIds?: Maybe<Array<Scalars['ID']>>;
translations: Array<ProductTranslationInput>;
customFields?: Maybe<Scalars['JSON']>;
customFields?: Maybe<CreateProductCustomFieldsInput>;
};

export type CreateProductOptionGroupInput = {
Expand Down Expand Up @@ -1073,6 +1078,7 @@ export type CustomField = {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
};

export type CustomFieldConfig =
Expand Down Expand Up @@ -1225,6 +1231,7 @@ export type DateTimeCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
min?: Maybe<Scalars['String']>;
max?: Maybe<Scalars['String']>;
step?: Maybe<Scalars['Int']>;
Expand Down Expand Up @@ -1430,6 +1437,7 @@ export type FloatCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
min?: Maybe<Scalars['Float']>;
max?: Maybe<Scalars['Float']>;
step?: Maybe<Scalars['Float']>;
Expand Down Expand Up @@ -1574,6 +1582,7 @@ export type IntCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
min?: Maybe<Scalars['Int']>;
max?: Maybe<Scalars['Int']>;
step?: Maybe<Scalars['Int']>;
Expand Down Expand Up @@ -2014,6 +2023,7 @@ export type LocaleStringCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
pattern?: Maybe<Scalars['String']>;
};

Expand Down Expand Up @@ -3365,13 +3375,17 @@ export type Product = Node & {
facetValues: Array<FacetValue>;
translations: Array<ProductTranslation>;
collections: Array<Collection>;
customFields?: Maybe<Scalars['JSON']>;
customFields?: Maybe<ProductCustomFields>;
};

export type ProductVariantListArgs = {
options?: Maybe<ProductVariantListOptions>;
};

export type ProductCustomFields = {
coffeeProfileWithMilk?: Maybe<Scalars['String']>;
};

export type ProductFilterParameter = {
enabled?: Maybe<BooleanOperators>;
createdAt?: Maybe<DateOperators>;
Expand All @@ -3380,6 +3394,7 @@ export type ProductFilterParameter = {
name?: Maybe<StringOperators>;
slug?: Maybe<StringOperators>;
description?: Maybe<StringOperators>;
coffeeProfileWithMilk?: Maybe<StringOperators>;
};

export type ProductList = PaginatedList & {
Expand Down Expand Up @@ -3463,6 +3478,7 @@ export type ProductSortParameter = {
name?: Maybe<SortOrder>;
slug?: Maybe<SortOrder>;
description?: Maybe<SortOrder>;
coffeeProfileWithMilk?: Maybe<SortOrder>;
};

export type ProductTranslation = {
Expand Down Expand Up @@ -3946,6 +3962,7 @@ export type RelationCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
entity: Scalars['String'];
scalarFields: Array<Scalars['String']>;
};
Expand Down Expand Up @@ -4268,6 +4285,7 @@ export type StringCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
pattern?: Maybe<Scalars['String']>;
options?: Maybe<Array<StringFieldOption>>;
};
Expand Down Expand Up @@ -4434,6 +4452,7 @@ export type TextCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
};

export type TransitionFulfillmentToStateResult = Fulfillment | FulfillmentStateTransitionError;
Expand Down Expand Up @@ -4604,14 +4623,18 @@ export type UpdatePaymentMethodInput = {
handler?: Maybe<ConfigurableOperationInput>;
};

export type UpdateProductCustomFieldsInput = {
coffeeProfileWithMilk?: Maybe<Scalars['String']>;
};

export type UpdateProductInput = {
id: Scalars['ID'];
enabled?: Maybe<Scalars['Boolean']>;
featuredAssetId?: Maybe<Scalars['ID']>;
assetIds?: Maybe<Array<Scalars['ID']>>;
facetValueIds?: Maybe<Array<Scalars['ID']>>;
translations?: Maybe<Array<ProductTranslationInput>>;
customFields?: Maybe<Scalars['JSON']>;
customFields?: Maybe<UpdateProductCustomFieldsInput>;
};

export type UpdateProductOptionGroupInput = {
Expand Down
18 changes: 17 additions & 1 deletion packages/common/src/generated-shop-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export type BooleanCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
};

export type BooleanOperators = {
Expand Down Expand Up @@ -703,6 +704,7 @@ export type CustomField = {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
};

export type CustomFieldConfig =
Expand Down Expand Up @@ -807,6 +809,7 @@ export type DateTimeCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
min?: Maybe<Scalars['String']>;
max?: Maybe<Scalars['String']>;
step?: Maybe<Scalars['Int']>;
Expand Down Expand Up @@ -982,6 +985,7 @@ export type FloatCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
min?: Maybe<Scalars['Float']>;
max?: Maybe<Scalars['Float']>;
step?: Maybe<Scalars['Float']>;
Expand Down Expand Up @@ -1119,6 +1123,7 @@ export type IntCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
min?: Maybe<Scalars['Int']>;
max?: Maybe<Scalars['Int']>;
step?: Maybe<Scalars['Int']>;
Expand Down Expand Up @@ -1468,6 +1473,7 @@ export type LocaleStringCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
pattern?: Maybe<Scalars['String']>;
};

Expand Down Expand Up @@ -2311,20 +2317,26 @@ export type Product = Node & {
facetValues: Array<FacetValue>;
translations: Array<ProductTranslation>;
collections: Array<Collection>;
customFields?: Maybe<Scalars['JSON']>;
customFields?: Maybe<ProductCustomFields>;
};

export type ProductVariantListArgs = {
options?: Maybe<ProductVariantListOptions>;
};

export type ProductCustomFields = {
__typename?: 'ProductCustomFields';
coffeeProfileWithMilk?: Maybe<Scalars['String']>;
};

export type ProductFilterParameter = {
createdAt?: Maybe<DateOperators>;
updatedAt?: Maybe<DateOperators>;
languageCode?: Maybe<StringOperators>;
name?: Maybe<StringOperators>;
slug?: Maybe<StringOperators>;
description?: Maybe<StringOperators>;
coffeeProfileWithMilk?: Maybe<StringOperators>;
};

export type ProductList = PaginatedList & {
Expand Down Expand Up @@ -2392,6 +2404,7 @@ export type ProductSortParameter = {
name?: Maybe<SortOrder>;
slug?: Maybe<SortOrder>;
description?: Maybe<SortOrder>;
coffeeProfileWithMilk?: Maybe<SortOrder>;
};

export type ProductTranslation = {
Expand Down Expand Up @@ -2624,6 +2637,7 @@ export type RelationCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
entity: Scalars['String'];
scalarFields: Array<Scalars['String']>;
};
Expand Down Expand Up @@ -2810,6 +2824,7 @@ export type StringCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
pattern?: Maybe<Scalars['String']>;
options?: Maybe<Array<StringFieldOption>>;
};
Expand Down Expand Up @@ -2906,6 +2921,7 @@ export type TextCustomFieldConfig = CustomField & {
description?: Maybe<Array<LocalizedString>>;
readonly?: Maybe<Scalars['Boolean']>;
internal?: Maybe<Scalars['Boolean']>;
nullable?: Maybe<Scalars['Boolean']>;
};

export type TransitionOrderToStateResult = Order | OrderStateTransitionError;
Expand Down
Loading

0 comments on commit 9ec6b90

Please sign in to comment.