-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
register after order is not show if registration is not possible
- Loading branch information
1 parent
123022f
commit 0dd85f3
Showing
16 changed files
with
146 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
app/src/FrontendApi/Resolver/Customer/User/CustomerUserRegisteredQuery.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
storefront/graphql/requests/customer/queries/CouldBeCustomerRegisteredQuery.generated.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
import * as Types from '../../../types'; | ||
|
||
import gql from 'graphql-tag'; | ||
import * as Urql from 'urql'; | ||
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||
export type TypeCouldBeCustomerRegisteredQueryVariables = Types.Exact<{ | ||
email: Types.Scalars['String']['input']; | ||
companyNumber: Types.InputMaybe<Types.Scalars['String']['input']>; | ||
}>; | ||
|
||
|
||
export type TypeCouldBeCustomerRegisteredQuery = { __typename?: 'Query', couldBeCustomerRegisteredQuery: boolean }; | ||
|
||
|
||
export interface PossibleTypesResultData { | ||
possibleTypes: { | ||
[key: string]: string[] | ||
} | ||
} | ||
const result: PossibleTypesResultData = { | ||
"possibleTypes": { | ||
"Advert": [ | ||
"AdvertCode", | ||
"AdvertImage" | ||
], | ||
"ArticleInterface": [ | ||
"ArticleSite", | ||
"BlogArticle" | ||
], | ||
"Breadcrumb": [ | ||
"ArticleSite", | ||
"BlogArticle", | ||
"BlogCategory", | ||
"Brand", | ||
"Category", | ||
"Flag", | ||
"MainVariant", | ||
"RegularProduct", | ||
"Store", | ||
"Variant" | ||
], | ||
"CustomerUser": [ | ||
"CompanyCustomerUser", | ||
"RegularCustomerUser" | ||
], | ||
"Hreflang": [ | ||
"BlogArticle", | ||
"BlogCategory", | ||
"Brand", | ||
"Flag", | ||
"MainVariant", | ||
"RegularProduct", | ||
"SeoPage", | ||
"Variant" | ||
], | ||
"NotBlogArticleInterface": [ | ||
"ArticleLink", | ||
"ArticleSite" | ||
], | ||
"ParameterFilterOptionInterface": [ | ||
"ParameterCheckboxFilterOption", | ||
"ParameterColorFilterOption", | ||
"ParameterSliderFilterOption" | ||
], | ||
"Product": [ | ||
"MainVariant", | ||
"RegularProduct", | ||
"Variant" | ||
], | ||
"ProductListable": [ | ||
"Brand", | ||
"Category", | ||
"Flag" | ||
], | ||
"Slug": [ | ||
"ArticleSite", | ||
"BlogArticle", | ||
"BlogCategory", | ||
"Brand", | ||
"Category", | ||
"Flag", | ||
"MainVariant", | ||
"RegularProduct", | ||
"Store", | ||
"Variant" | ||
] | ||
} | ||
}; | ||
export default result; | ||
|
||
|
||
export const CouldBeCustomerRegisteredQueryDocument = gql` | ||
query CouldBeCustomerRegisteredQuery($email: String!, $companyNumber: String) { | ||
couldBeCustomerRegisteredQuery(email: $email, companyNumber: $companyNumber) | ||
} | ||
`; | ||
|
||
export function useCouldBeCustomerRegisteredQuery(options: Omit<Urql.UseQueryArgs<TypeCouldBeCustomerRegisteredQueryVariables>, 'query'>) { | ||
return Urql.useQuery<TypeCouldBeCustomerRegisteredQuery, TypeCouldBeCustomerRegisteredQueryVariables>({ query: CouldBeCustomerRegisteredQueryDocument, ...options }); | ||
}; |
3 changes: 3 additions & 0 deletions
3
storefront/graphql/requests/customer/queries/CouldBeCustomerRegisteredQuery.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
query CouldBeCustomerRegisteredQuery($email: String!, $companyNumber: String) { | ||
couldBeCustomerRegisteredQuery(email: $email, companyNumber: $companyNumber) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters