Internal Structure
Class CustomerQuery
CustomerQueryimport {CustomerQuery} from '@scandipwa/shopify-customer/src/api/Customer.query.js'Description: Customer query declaration. Read more: Query controller, TypedQuery
Namespace: ShopifyCustomer/Api/Customer/Query/CustomerQuery
Method _getCustomerFields
_getCustomerFieldsDescription: Function that returns the list of customer fields. Read more: Extending Query controllers
Method getCustomerAccessTokenCreateField
getCustomerAccessTokenCreateFieldDescription: Field getter for access token creation [returns node]
Method getCustomerAccessTokenDeleteField
getCustomerAccessTokenDeleteFieldDescription: Field getter for access token removal [returns node]
Method getCustomerCreateField
getCustomerCreateFieldDescription: Customer create field getter [returns node]
Method getCustomerField
getCustomerFieldDescription: Field getter for customer get [returns node]
Function processCustomer
processCustomerimport {processCustomer} from '@scandipwa/shopify-customer/src/api/Customer.processor.js'Description: Single customer processor.
Namespace: ShopifyCustomer/Api/Customer/Processor/processCustomer
🔮 Common extension point: Process newly added fields.
{
'ShopifyCustomer/Api/Customer/Processor/processCustomer': {
'function': ([customer], callback) => {
customer.addresses = customer.addresses.edges.map({ node } => node);
}
}
}Variable CUSTOMER_CREATE
CUSTOMER_CREATEimport {CUSTOMER_CREATE} from '@scandipwa/shopify-customer/src/api/Customer.query.js'Description: A type of CustomerQuery associated with getCustomerCreateField function.
Usage examples:
// Returns getter of customer create mutation
import getCustomerQueryByType, { CUSTOMER_CREATE } from '@scandipwa/shopify-customer/src/api/Customer.query.js';
const queryGetter = getCustomerQueryByType(CUSTOMER_CREATE);Variable CUSTOMER_GET
CUSTOMER_GETimport {CUSTOMER_GET} from '@scandipwa/shopify-customer/src/api/Customer.query.js'Description: A type of CustomerQuery associated with getCustomerField function.
Usage examples:
// Returns getter of customer get query
import getCustomerQueryByType, { CUSTOMER_GET } from '@scandipwa/shopify-customer/src/api/Customer.query.js';
const queryGetter = getCustomerQueryByType(CUSTOMER_GET);Variable CUSTOMER_LOGIN
CUSTOMER_LOGINimport {CUSTOMER_LOGIN} from '@scandipwa/shopify-customer/src/api/Customer.query.js'Description: A type of CustomerQuery associated with getCustomerAccessTokenCreateField function.
Usage examples:
// Returns getter of customer login query
import getCustomerQueryByType, { CUSTOMER_LOGIN } from '@scandipwa/shopify-customer/src/api/Customer.query.js';
const queryGetter = getCustomerQueryByType(CUSTOMER_LOGIN);Variable CUSTOMER_LOGOUT
CUSTOMER_LOGOUTimport {CUSTOMER_LOGOUT} from '@scandipwa/shopify-customer/src/api/Customer.query.js'Description: A type of CustomerQuery associated with getCustomerAccessTokenDeleteField function.
Usage examples:
// Returns getter of customer logout mutation
import getCustomerQueryByType, { CUSTOMER_LOGOUT } from '@scandipwa/shopify-customer/src/api/Customer.query.js';
const queryGetter = getCustomerQueryByType(CUSTOMER_LOGOUT);Class AccountDetailsComponent
AccountDetailsComponentimport {AccountDetailsComponent} from '@scandipwa/shopify-customer/src/component/AccountDetails/AccountDetails.component.js'Description: Account details component
Namespace: ShopifyCustomer/Component/AccountDetails/Component/AccountDetailsComponent
Member detailsRenderMap
detailsRenderMapDescription: A list of render methods used by account details component. Read more: SortedRenderMap
Function AccountFallbackPage
AccountFallbackPageimport {AccountFallbackPage} from '@scandipwa/shopify-customer/src/component/AccountFallbackPage/index.js'Description: A component used as fallback while the account details component is loading
Namespace: ShopifyCustomer/Component/AccountFallbackPage/Index/AccountFallbackPage
Class AccountPageComponent
AccountPageComponentimport {AccountPageComponent} from '@scandipwa/shopify-customer/src/component/AccountPage/AccountPage.component.js'Description: Account page component
Namespace: ShopifyCustomer/Component/AccountPage/Component/AccountPageComponent
Member contentRenderMap
contentRenderMapDescription: A list of render methods used by account page. Read more: SortedRenderMap
Class AccountPageContainer
AccountPageContainerimport {AccountPageContainer} from '@scandipwa/shopify-customer/src/component/AccountPage/AccountPage.container.js'Description: Account page container. Used to setup a redirect in case user is not logged in.
Namespace: ShopifyCustomer/Component/AccountPage/Container/AccountPageContainer
Function LoginFallbackPage
LoginFallbackPageimport {LoginFallbackPage} from '@scandipwa/shopify-customer/src/component/LoginFallbackPage/index.js'Description: A component used as fallback while the login page is loading
Namespace: ShopifyCustomer/Component/LoginFallbackPage/Index/LoginFallbackPage
Class LoginFormComponent
LoginFormComponentimport {LoginFormComponent} from '@scandipwa/shopify-customer/src/component/LoginForm/LoginForm.component.js'Description: Login form component
Namespace: ShopifyCustomer/Component/LoginForm/Component/LoginFormComponent
Member contentRenderMap
contentRenderMapDescription: A list of render methods used by login form component. Read more: SortedRenderMap
Member formFieldsRenderMap
formFieldsRenderMapDescription: A list of field render methods used by the login form. Read more: SortedRenderMap
Class LoginFormContainer
LoginFormContainerimport {LoginFormContainer} from '@scandipwa/shopify-customer/src/component/LoginForm/LoginForm.container.js'Description: Login form container. Used to define handlers for form operations.
Namespace: ShopifyCustomer/Component/LoginForm/Container/LoginFormContainer
Class LoginPageComponent
LoginPageComponentimport {LoginPageComponent} from '@scandipwa/shopify-customer/src/component/LoginPage/LoginPage.component.js'Description: Login page component.
Namespace: ShopifyCustomer/Component/LoginPage/Component/LoginPageComponent
Function RegisterFallbackPage
RegisterFallbackPageimport {RegisterFallbackPage} from '@scandipwa/shopify-customer/src/component/RegisterFallbackPage/index.js'Description: A component used as fallback while the register page is loading
Namespace: ShopifyCustomer/Component/RegisterFallbackPage/Index/RegisterFallbackPage
Class RegisterFormContainer
RegisterFormContainerimport {RegisterFormContainer} from '@scandipwa/shopify-customer/src/component/RegisterForm/RegisterForm.container.js'Description: Reginster form container. Used to define handlers for form operations.
Namespace: ShopifyCustomer/Component/RegisterForm/Container/RegisterFormContainer
Class RegisterPageComponent
RegisterPageComponentimport {RegisterPageComponent} from '@scandipwa/shopify-customer/src/component/RegisterPage/RegisterPage.component.js'Description: Login page component.
Namespace: ShopifyCustomer/Component/RegisterPage/Component/RegisterPageComponent
Last updated
Was this helpful?