Skip to content

Commit

Permalink
feat(core): Allow phoneNumber in registerCustomerAccount mutation
Browse files Browse the repository at this point in the history
Closes #389
  • Loading branch information
michaelbromley committed Jun 29, 2020
1 parent 4678360 commit 2c710b9
Show file tree
Hide file tree
Showing 14 changed files with 60 additions and 112 deletions.
19 changes: 3 additions & 16 deletions packages/admin-ui/src/lib/core/src/common/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,6 @@ export type CreateProductInput = {
customFields?: Maybe<Scalars['JSON']>;
};

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

export type CreateProductOptionGroupCustomFieldsInput = {
linkUrl?: Maybe<Scalars['String']>;
};
Expand All @@ -532,7 +528,7 @@ export type CreateProductOptionInput = {
productOptionGroupId: Scalars['ID'];
code: Scalars['String'];
translations: Array<ProductOptionGroupTranslationInput>;
customFields?: Maybe<CreateProductOptionCustomFieldsInput>;
customFields?: Maybe<Scalars['JSON']>;
};

export type CreateProductVariantInput = {
Expand Down Expand Up @@ -2695,12 +2691,7 @@ export type ProductOption = Node & {
name: Scalars['String'];
groupId: Scalars['ID'];
translations: Array<ProductOptionTranslation>;
customFields?: Maybe<ProductOptionCustomFields>;
};

export type ProductOptionCustomFields = {
__typename?: 'ProductOptionCustomFields';
colorHex?: Maybe<Scalars['String']>;
customFields?: Maybe<Scalars['JSON']>;
};

export type ProductOptionGroup = Node & {
Expand Down Expand Up @@ -3690,10 +3681,6 @@ export type UpdateProductInput = {
customFields?: Maybe<Scalars['JSON']>;
};

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

export type UpdateProductOptionGroupCustomFieldsInput = {
linkUrl?: Maybe<Scalars['String']>;
};
Expand All @@ -3709,7 +3696,7 @@ export type UpdateProductOptionInput = {
id: Scalars['ID'];
code?: Maybe<Scalars['String']>;
translations?: Maybe<Array<ProductOptionGroupTranslationInput>>;
customFields?: Maybe<UpdateProductOptionCustomFieldsInput>;
customFields?: Maybe<Scalars['JSON']>;
};

export type UpdateProductVariantInput = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,6 @@ export type CreateProductInput = {
customFields?: Maybe<Scalars['JSON']>;
};

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

export type CreateProductOptionGroupCustomFieldsInput = {
linkUrl?: Maybe<Scalars['String']>;
};
Expand All @@ -531,7 +527,7 @@ export type CreateProductOptionInput = {
productOptionGroupId: Scalars['ID'];
code: Scalars['String'];
translations: Array<ProductOptionGroupTranslationInput>;
customFields?: Maybe<CreateProductOptionCustomFieldsInput>;
customFields?: Maybe<Scalars['JSON']>;
};

export type CreateProductVariantInput = {
Expand Down Expand Up @@ -2572,12 +2568,7 @@ export type ProductOption = Node & {
name: Scalars['String'];
groupId: Scalars['ID'];
translations: Array<ProductOptionTranslation>;
customFields?: Maybe<ProductOptionCustomFields>;
};

export type ProductOptionCustomFields = {
__typename?: 'ProductOptionCustomFields';
colorHex?: Maybe<Scalars['String']>;
customFields?: Maybe<Scalars['JSON']>;
};

export type ProductOptionGroup = Node & {
Expand Down Expand Up @@ -3522,10 +3513,6 @@ export type UpdateProductInput = {
customFields?: Maybe<Scalars['JSON']>;
};

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

export type UpdateProductOptionGroupCustomFieldsInput = {
linkUrl?: Maybe<Scalars['String']>;
};
Expand All @@ -3541,7 +3528,7 @@ export type UpdateProductOptionInput = {
id: Scalars['ID'];
code?: Maybe<Scalars['String']>;
translations?: Maybe<Array<ProductOptionGroupTranslationInput>>;
customFields?: Maybe<UpdateProductOptionCustomFieldsInput>;
customFields?: Maybe<Scalars['JSON']>;
};

export type UpdateProductVariantInput = {
Expand Down
8 changes: 2 additions & 6 deletions packages/common/src/generated-shop-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1768,12 +1768,7 @@ export type ProductOption = Node & {
name: Scalars['String'];
groupId: Scalars['ID'];
translations: Array<ProductOptionTranslation>;
customFields?: Maybe<ProductOptionCustomFields>;
};

export type ProductOptionCustomFields = {
__typename?: 'ProductOptionCustomFields';
colorHex?: Maybe<Scalars['String']>;
customFields?: Maybe<Scalars['JSON']>;
};

export type ProductOptionGroup = Node & {
Expand Down Expand Up @@ -1993,6 +1988,7 @@ export type RegisterCustomerInput = {
title?: Maybe<Scalars['String']>;
firstName?: Maybe<Scalars['String']>;
lastName?: Maybe<Scalars['String']>;
phoneNumber?: Maybe<Scalars['String']>;
password?: Maybe<Scalars['String']>;
};

Expand Down
19 changes: 3 additions & 16 deletions packages/common/src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,6 @@ export type CreateProductInput = {
customFields?: Maybe<Scalars['JSON']>;
};

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

export type CreateProductOptionGroupCustomFieldsInput = {
linkUrl?: Maybe<Scalars['String']>;
};
Expand All @@ -531,7 +527,7 @@ export type CreateProductOptionInput = {
productOptionGroupId: Scalars['ID'];
code: Scalars['String'];
translations: Array<ProductOptionGroupTranslationInput>;
customFields?: Maybe<CreateProductOptionCustomFieldsInput>;
customFields?: Maybe<Scalars['JSON']>;
};

export type CreateProductVariantInput = {
Expand Down Expand Up @@ -2655,12 +2651,7 @@ export type ProductOption = Node & {
name: Scalars['String'];
groupId: Scalars['ID'];
translations: Array<ProductOptionTranslation>;
customFields?: Maybe<ProductOptionCustomFields>;
};

export type ProductOptionCustomFields = {
__typename?: 'ProductOptionCustomFields';
colorHex?: Maybe<Scalars['String']>;
customFields?: Maybe<Scalars['JSON']>;
};

export type ProductOptionGroup = Node & {
Expand Down Expand Up @@ -3642,10 +3633,6 @@ export type UpdateProductInput = {
customFields?: Maybe<Scalars['JSON']>;
};

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

export type UpdateProductOptionGroupCustomFieldsInput = {
linkUrl?: Maybe<Scalars['String']>;
};
Expand All @@ -3661,7 +3648,7 @@ export type UpdateProductOptionInput = {
id: Scalars['ID'];
code?: Maybe<Scalars['String']>;
translations?: Maybe<Array<ProductOptionGroupTranslationInput>>;
customFields?: Maybe<UpdateProductOptionCustomFieldsInput>;
customFields?: Maybe<Scalars['JSON']>;
};

export type UpdateProductVariantInput = {
Expand Down
19 changes: 3 additions & 16 deletions packages/core/e2e/graphql/generated-e2e-admin-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,6 @@ export type CreateProductInput = {
customFields?: Maybe<Scalars['JSON']>;
};

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

export type CreateProductOptionGroupCustomFieldsInput = {
linkUrl?: Maybe<Scalars['String']>;
};
Expand All @@ -531,7 +527,7 @@ export type CreateProductOptionInput = {
productOptionGroupId: Scalars['ID'];
code: Scalars['String'];
translations: Array<ProductOptionGroupTranslationInput>;
customFields?: Maybe<CreateProductOptionCustomFieldsInput>;
customFields?: Maybe<Scalars['JSON']>;
};

export type CreateProductVariantInput = {
Expand Down Expand Up @@ -2572,12 +2568,7 @@ export type ProductOption = Node & {
name: Scalars['String'];
groupId: Scalars['ID'];
translations: Array<ProductOptionTranslation>;
customFields?: Maybe<ProductOptionCustomFields>;
};

export type ProductOptionCustomFields = {
__typename?: 'ProductOptionCustomFields';
colorHex?: Maybe<Scalars['String']>;
customFields?: Maybe<Scalars['JSON']>;
};

export type ProductOptionGroup = Node & {
Expand Down Expand Up @@ -3522,10 +3513,6 @@ export type UpdateProductInput = {
customFields?: Maybe<Scalars['JSON']>;
};

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

export type UpdateProductOptionGroupCustomFieldsInput = {
linkUrl?: Maybe<Scalars['String']>;
};
Expand All @@ -3541,7 +3528,7 @@ export type UpdateProductOptionInput = {
id: Scalars['ID'];
code?: Maybe<Scalars['String']>;
translations?: Maybe<Array<ProductOptionGroupTranslationInput>>;
customFields?: Maybe<UpdateProductOptionCustomFieldsInput>;
customFields?: Maybe<Scalars['JSON']>;
};

export type UpdateProductVariantInput = {
Expand Down
8 changes: 2 additions & 6 deletions packages/core/e2e/graphql/generated-e2e-shop-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1768,12 +1768,7 @@ export type ProductOption = Node & {
name: Scalars['String'];
groupId: Scalars['ID'];
translations: Array<ProductOptionTranslation>;
customFields?: Maybe<ProductOptionCustomFields>;
};

export type ProductOptionCustomFields = {
__typename?: 'ProductOptionCustomFields';
colorHex?: Maybe<Scalars['String']>;
customFields?: Maybe<Scalars['JSON']>;
};

export type ProductOptionGroup = Node & {
Expand Down Expand Up @@ -1993,6 +1988,7 @@ export type RegisterCustomerInput = {
title?: Maybe<Scalars['String']>;
firstName?: Maybe<Scalars['String']>;
lastName?: Maybe<Scalars['String']>;
phoneNumber?: Maybe<Scalars['String']>;
password?: Maybe<Scalars['String']>;
};

Expand Down
1 change: 1 addition & 0 deletions packages/core/e2e/graphql/shared-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export const GET_CUSTOMER_LIST = gql`
firstName
lastName
emailAddress
phoneNumber
user {
id
verified
Expand Down
Loading

0 comments on commit 2c710b9

Please sign in to comment.