docs: update docusaurus to v3 (#5625)
* update dependencies * update onboarding mdx * fixes for mdx issues * fixes for mdx compatibility * resolve mdx errors * fixes in reference * fix check errors * revert change in vale action * fix node version in action * fix summary in markdown
This commit is contained in:
@@ -12,14 +12,14 @@ Provides layer to manipulate customers.
|
||||
|
||||
### constructor
|
||||
|
||||
**new CustomerService**(`«destructured»`)
|
||||
`**new CustomerService**(«destructured»)`
|
||||
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "__namedParameters",
|
||||
"type": "[`InjectedDependencies`](../types/InjectedDependencies-7.mdx)",
|
||||
"type": "[InjectedDependencies](../types/InjectedDependencies-7.mdx)",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -33,7 +33,7 @@ Provides layer to manipulate customers.
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "__configModule__",
|
||||
"type": "Record<`string`, `unknown`\\>",
|
||||
"type": "`Record<string, unknown>`",
|
||||
"description": "",
|
||||
"optional": true,
|
||||
"defaultValue": "",
|
||||
@@ -51,7 +51,7 @@ Provides layer to manipulate customers.
|
||||
},
|
||||
{
|
||||
"name": "__moduleDeclaration__",
|
||||
"type": "Record<`string`, `unknown`\\>",
|
||||
"type": "`Record<string, unknown>`",
|
||||
"description": "",
|
||||
"optional": true,
|
||||
"defaultValue": "",
|
||||
@@ -60,7 +60,7 @@ Provides layer to manipulate customers.
|
||||
},
|
||||
{
|
||||
"name": "addressRepository_",
|
||||
"type": "`Repository`<[`Address`](Address.mdx)\\>",
|
||||
"type": "Repository<[Address](Address.mdx)>",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -69,7 +69,7 @@ Provides layer to manipulate customers.
|
||||
},
|
||||
{
|
||||
"name": "customerRepository_",
|
||||
"type": "`Repository`<[`Customer`](Customer.mdx)\\> & { `listAndCount`: Method listAndCount }",
|
||||
"type": "Repository<[Customer](Customer.mdx)> & `{ listAndCount: Method listAndCount }`",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -78,7 +78,7 @@ Provides layer to manipulate customers.
|
||||
},
|
||||
{
|
||||
"name": "eventBusService_",
|
||||
"type": "[`EventBusService`](EventBusService.mdx)",
|
||||
"type": "[EventBusService](EventBusService.mdx)",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -87,7 +87,7 @@ Provides layer to manipulate customers.
|
||||
},
|
||||
{
|
||||
"name": "manager_",
|
||||
"type": "`EntityManager`",
|
||||
"type": "EntityManager",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -96,7 +96,7 @@ Provides layer to manipulate customers.
|
||||
},
|
||||
{
|
||||
"name": "transactionManager_",
|
||||
"type": "`undefined` \\| `EntityManager`",
|
||||
"type": "`undefined` \\| EntityManager",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -145,16 +145,16 @@ Provides layer to manipulate customers.
|
||||
|
||||
### activeManager\_
|
||||
|
||||
`Protected` `get` **activeManager_**(): `EntityManager`
|
||||
`Protected get**activeManager_**(): EntityManager`
|
||||
|
||||
#### Returns
|
||||
|
||||
`EntityManager`
|
||||
EntityManager
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "EntityManager",
|
||||
"type": "`EntityManager`",
|
||||
"type": "EntityManager",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
@@ -167,7 +167,7 @@ Provides layer to manipulate customers.
|
||||
|
||||
### addAddress
|
||||
|
||||
**addAddress**(`customerId`, `address`): `Promise`<[`Customer`](Customer.mdx) \| [`Address`](Address.mdx)\>
|
||||
`**addAddress**(customerId, address): Promise<[Customer](Customer.mdx) \| [Address](Address.mdx)>`
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -183,7 +183,7 @@ Provides layer to manipulate customers.
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"type": "[`AddressCreatePayload`](AddressCreatePayload.mdx)",
|
||||
"type": "[AddressCreatePayload](AddressCreatePayload.mdx)",
|
||||
"description": "Address fields used when creating an address.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -194,12 +194,12 @@ Provides layer to manipulate customers.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx) \| [`Address`](Address.mdx)\>
|
||||
Promise<[Customer](Customer.mdx) \| [Address](Address.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx) \\| [`Address`](Address.mdx)\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx) \\| [Address](Address.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
@@ -212,7 +212,7 @@ ___
|
||||
|
||||
### atomicPhase\_
|
||||
|
||||
`Protected` **atomicPhase_**<`TResult`, `TError`\>(`work`, `isolationOrErrorHandler?`, `maybeErrorHandlerOrDontFail?`): `Promise`<`TResult`\>
|
||||
`Protected **atomicPhase_**<TypeParameter TResult, TypeParameter TError>(work, isolationOrErrorHandler?, maybeErrorHandlerOrDontFail?): Promise<TResult>`
|
||||
|
||||
Wraps some work within a transactional block. If the service already has
|
||||
a transaction manager attached this will be reused, otherwise a new
|
||||
@@ -244,7 +244,7 @@ transaction manager is created.
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "work",
|
||||
"type": "(`transactionManager`: `EntityManager`) => `Promise`<`TResult`\\>",
|
||||
"type": "(`transactionManager`: EntityManager) => Promise<TResult>",
|
||||
"description": "the transactional work to be done",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -253,7 +253,7 @@ transaction manager is created.
|
||||
},
|
||||
{
|
||||
"name": "isolationOrErrorHandler",
|
||||
"type": "`IsolationLevel` \\| (`error`: `TError`) => `Promise`<`void` \\| `TResult`\\>",
|
||||
"type": "`IsolationLevel` \\| (`error`: `TError`) => Promise<void \\| TResult>",
|
||||
"description": "the isolation level to be used for the work.",
|
||||
"optional": true,
|
||||
"defaultValue": "",
|
||||
@@ -262,7 +262,7 @@ transaction manager is created.
|
||||
},
|
||||
{
|
||||
"name": "maybeErrorHandlerOrDontFail",
|
||||
"type": "(`error`: `TError`) => `Promise`<`void` \\| `TResult`\\>",
|
||||
"type": "(`error`: `TError`) => Promise<void \\| TResult>",
|
||||
"description": "Potential error handler",
|
||||
"optional": true,
|
||||
"defaultValue": "",
|
||||
@@ -273,12 +273,12 @@ transaction manager is created.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<`TResult`\>
|
||||
Promise<TResult>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<`TResult`\\>",
|
||||
"type": "Promise<TResult>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the result of the transactional work",
|
||||
@@ -291,18 +291,18 @@ ___
|
||||
|
||||
### count
|
||||
|
||||
**count**(): `Promise`<`number`\>
|
||||
`**count**(): Promise<number>`
|
||||
|
||||
Return the total number of documents in database
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<`number`\>
|
||||
Promise<number>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<`number`\\>",
|
||||
"type": "Promise<number>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the result of the count operation",
|
||||
@@ -315,7 +315,7 @@ ___
|
||||
|
||||
### create
|
||||
|
||||
**create**(`customer`): `Promise`<[`Customer`](Customer.mdx)\>
|
||||
`**create**(customer): Promise<[Customer](Customer.mdx)>`
|
||||
|
||||
Creates a customer from an email - customers can have accounts associated,
|
||||
e.g. to login and view order history, etc. If a password is provided the
|
||||
@@ -327,7 +327,7 @@ used to hold details of customers.
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "customer",
|
||||
"type": "[`CreateCustomerInput`](../types/CreateCustomerInput.mdx)",
|
||||
"type": "[CreateCustomerInput](../types/CreateCustomerInput.mdx)",
|
||||
"description": "the customer to create",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -338,12 +338,12 @@ used to hold details of customers.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx)\>
|
||||
Promise<[Customer](Customer.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the result of create",
|
||||
@@ -356,7 +356,7 @@ ___
|
||||
|
||||
### delete
|
||||
|
||||
**delete**(`customerId`): `Promise`<`void` \| [`Customer`](Customer.mdx)\>
|
||||
`**delete**(customerId): Promise<void \| [Customer](Customer.mdx)>`
|
||||
|
||||
Deletes a customer from a given customer id.
|
||||
|
||||
@@ -376,12 +376,12 @@ Deletes a customer from a given customer id.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<`void` \| [`Customer`](Customer.mdx)\>
|
||||
Promise<void \| [Customer](Customer.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<`void` \\| [`Customer`](Customer.mdx)\\>",
|
||||
"type": "Promise<void \\| [Customer](Customer.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the result of the delete operation.",
|
||||
@@ -394,7 +394,7 @@ ___
|
||||
|
||||
### generateResetPasswordToken
|
||||
|
||||
**generateResetPasswordToken**(`customerId`): `Promise`<`string`\>
|
||||
`**generateResetPasswordToken**(customerId): Promise<string>`
|
||||
|
||||
Generate a JSON Web token, that will be sent to a customer, that wishes to
|
||||
reset password.
|
||||
@@ -418,12 +418,12 @@ which is always 15 minutes.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<`string`\>
|
||||
Promise<string>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<`string`\\>",
|
||||
"type": "Promise<string>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the generated JSON web token",
|
||||
@@ -436,7 +436,7 @@ ___
|
||||
|
||||
### hashPassword\_
|
||||
|
||||
**hashPassword_**(`password`): `Promise`<`string`\>
|
||||
`**hashPassword_**(password): Promise<string>`
|
||||
|
||||
Hashes a password
|
||||
|
||||
@@ -456,12 +456,12 @@ Hashes a password
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<`string`\>
|
||||
Promise<string>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<`string`\\>",
|
||||
"type": "Promise<string>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "hashed password",
|
||||
@@ -474,14 +474,14 @@ ___
|
||||
|
||||
### list
|
||||
|
||||
**list**(`selector?`, `config?`): `Promise`<[`Customer`](Customer.mdx)[]\>
|
||||
`**list**(selector?, config?): Promise<[Customer](Customer.mdx)[]>`
|
||||
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "selector",
|
||||
"type": "[`Selector`](../types/Selector.mdx)<[`Customer`](Customer.mdx)\\> & { `groups?`: `string`[] ; `q?`: `string` }",
|
||||
"type": "[Selector](../types/Selector.mdx)<[Customer](Customer.mdx)> & `{ groups?: string[] ; q?: string }`",
|
||||
"description": "the query object for find",
|
||||
"optional": false,
|
||||
"defaultValue": "{}",
|
||||
@@ -490,7 +490,7 @@ ___
|
||||
},
|
||||
{
|
||||
"name": "config",
|
||||
"type": "[`FindConfig`](../interfaces/FindConfig.mdx)<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "[FindConfig](../interfaces/FindConfig.mdx)<[Customer](Customer.mdx)>",
|
||||
"description": "the config object containing query settings",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -501,12 +501,12 @@ ___
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx)[]\>
|
||||
Promise<[Customer](Customer.mdx)[]>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx)[]\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx)[]>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the result of the find operation",
|
||||
@@ -519,14 +519,14 @@ ___
|
||||
|
||||
### listAndCount
|
||||
|
||||
**listAndCount**(`selector`, `config?`): `Promise`<[[`Customer`](Customer.mdx)[], `number`]\>
|
||||
`**listAndCount**(selector, config?): Promise<[[Customer](Customer.mdx)[], number]>`
|
||||
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "selector",
|
||||
"type": "[`Selector`](../types/Selector.mdx)<[`Customer`](Customer.mdx)\\> & { `groups?`: `string`[] ; `q?`: `string` }",
|
||||
"type": "[Selector](../types/Selector.mdx)<[Customer](Customer.mdx)> & `{ groups?: string[] ; q?: string }`",
|
||||
"description": "the query object for find",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -535,7 +535,7 @@ ___
|
||||
},
|
||||
{
|
||||
"name": "config",
|
||||
"type": "[`FindConfig`](../interfaces/FindConfig.mdx)<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "[FindConfig](../interfaces/FindConfig.mdx)<[Customer](Customer.mdx)>",
|
||||
"description": "the config object containing query settings",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -546,12 +546,12 @@ ___
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[[`Customer`](Customer.mdx)[], `number`]\>
|
||||
Promise<[[Customer](Customer.mdx)[], number]>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[[`Customer`](Customer.mdx)[], `number`]\\>",
|
||||
"type": "Promise<[[Customer](Customer.mdx)[], number]>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the result of the find operation",
|
||||
@@ -564,7 +564,7 @@ ___
|
||||
|
||||
### listByEmail
|
||||
|
||||
**listByEmail**(`email`, `config?`): `Promise`<[`Customer`](Customer.mdx)[]\>
|
||||
`**listByEmail**(email, config?): Promise<[Customer](Customer.mdx)[]>`
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -580,7 +580,7 @@ ___
|
||||
},
|
||||
{
|
||||
"name": "config",
|
||||
"type": "[`FindConfig`](../interfaces/FindConfig.mdx)<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "[FindConfig](../interfaces/FindConfig.mdx)<[Customer](Customer.mdx)>",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -591,12 +591,12 @@ ___
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx)[]\>
|
||||
Promise<[Customer](Customer.mdx)[]>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx)[]\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx)[]>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
@@ -609,7 +609,7 @@ ___
|
||||
|
||||
### removeAddress
|
||||
|
||||
**removeAddress**(`customerId`, `addressId`): `Promise`<`void`\>
|
||||
`**removeAddress**(customerId, addressId): Promise<void>`
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -636,12 +636,12 @@ ___
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<`void`\>
|
||||
Promise<void>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<`void`\\>",
|
||||
"type": "Promise<void>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
@@ -654,7 +654,7 @@ ___
|
||||
|
||||
### retrieve
|
||||
|
||||
**retrieve**(`customerId`, `config?`): `Promise`<[`Customer`](Customer.mdx)\>
|
||||
`**retrieve**(customerId, config?): Promise<[Customer](Customer.mdx)>`
|
||||
|
||||
Gets a customer by id.
|
||||
|
||||
@@ -672,7 +672,7 @@ Gets a customer by id.
|
||||
},
|
||||
{
|
||||
"name": "config",
|
||||
"type": "[`FindConfig`](../interfaces/FindConfig.mdx)<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "[FindConfig](../interfaces/FindConfig.mdx)<[Customer](Customer.mdx)>",
|
||||
"description": "the config object containing query settings",
|
||||
"optional": false,
|
||||
"defaultValue": "{}",
|
||||
@@ -683,12 +683,12 @@ Gets a customer by id.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx)\>
|
||||
Promise<[Customer](Customer.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the customer document.",
|
||||
@@ -701,7 +701,7 @@ ___
|
||||
|
||||
### retrieveByEmail
|
||||
|
||||
**retrieveByEmail**(`email`, `config?`): `Promise`<[`Customer`](Customer.mdx)\>
|
||||
`**retrieveByEmail**(email, config?): Promise<[Customer](Customer.mdx)>`
|
||||
|
||||
Gets a registered customer by email.
|
||||
|
||||
@@ -719,7 +719,7 @@ Gets a registered customer by email.
|
||||
},
|
||||
{
|
||||
"name": "config",
|
||||
"type": "[`FindConfig`](../interfaces/FindConfig.mdx)<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "[FindConfig](../interfaces/FindConfig.mdx)<[Customer](Customer.mdx)>",
|
||||
"description": "the config object containing query settings",
|
||||
"optional": false,
|
||||
"defaultValue": "{}",
|
||||
@@ -730,12 +730,12 @@ Gets a registered customer by email.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx)\>
|
||||
Promise<[Customer](Customer.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the customer document.",
|
||||
@@ -750,7 +750,7 @@ ___
|
||||
|
||||
### retrieveByPhone
|
||||
|
||||
**retrieveByPhone**(`phone`, `config?`): `Promise`<[`Customer`](Customer.mdx)\>
|
||||
`**retrieveByPhone**(phone, config?): Promise<[Customer](Customer.mdx)>`
|
||||
|
||||
Gets a customer by phone.
|
||||
|
||||
@@ -768,7 +768,7 @@ Gets a customer by phone.
|
||||
},
|
||||
{
|
||||
"name": "config",
|
||||
"type": "[`FindConfig`](../interfaces/FindConfig.mdx)<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "[FindConfig](../interfaces/FindConfig.mdx)<[Customer](Customer.mdx)>",
|
||||
"description": "the config object containing query settings",
|
||||
"optional": false,
|
||||
"defaultValue": "{}",
|
||||
@@ -779,12 +779,12 @@ Gets a customer by phone.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx)\>
|
||||
Promise<[Customer](Customer.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the customer document.",
|
||||
@@ -797,7 +797,7 @@ ___
|
||||
|
||||
### retrieveRegisteredByEmail
|
||||
|
||||
**retrieveRegisteredByEmail**(`email`, `config?`): `Promise`<[`Customer`](Customer.mdx)\>
|
||||
`**retrieveRegisteredByEmail**(email, config?): Promise<[Customer](Customer.mdx)>`
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -813,7 +813,7 @@ ___
|
||||
},
|
||||
{
|
||||
"name": "config",
|
||||
"type": "[`FindConfig`](../interfaces/FindConfig.mdx)<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "[FindConfig](../interfaces/FindConfig.mdx)<[Customer](Customer.mdx)>",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "{}",
|
||||
@@ -824,12 +824,12 @@ ___
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx)\>
|
||||
Promise<[Customer](Customer.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
@@ -842,7 +842,7 @@ ___
|
||||
|
||||
### retrieveUnregisteredByEmail
|
||||
|
||||
**retrieveUnregisteredByEmail**(`email`, `config?`): `Promise`<[`Customer`](Customer.mdx)\>
|
||||
`**retrieveUnregisteredByEmail**(email, config?): Promise<[Customer](Customer.mdx)>`
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -858,7 +858,7 @@ ___
|
||||
},
|
||||
{
|
||||
"name": "config",
|
||||
"type": "[`FindConfig`](../interfaces/FindConfig.mdx)<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "[FindConfig](../interfaces/FindConfig.mdx)<[Customer](Customer.mdx)>",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "{}",
|
||||
@@ -869,12 +869,12 @@ ___
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx)\>
|
||||
Promise<[Customer](Customer.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
@@ -887,14 +887,14 @@ ___
|
||||
|
||||
### retrieve\_
|
||||
|
||||
`Private` **retrieve_**(`selector`, `config?`): `Promise`<[`Customer`](Customer.mdx)\>
|
||||
`Private **retrieve_**(selector, config?): Promise<[Customer](Customer.mdx)>`
|
||||
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "selector",
|
||||
"type": "[`Selector`](../types/Selector.mdx)<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "[Selector](../types/Selector.mdx)<[Customer](Customer.mdx)>",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -903,7 +903,7 @@ ___
|
||||
},
|
||||
{
|
||||
"name": "config",
|
||||
"type": "[`FindConfig`](../interfaces/FindConfig.mdx)<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "[FindConfig](../interfaces/FindConfig.mdx)<[Customer](Customer.mdx)>",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "{}",
|
||||
@@ -914,12 +914,12 @@ ___
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx)\>
|
||||
Promise<[Customer](Customer.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
@@ -932,14 +932,14 @@ ___
|
||||
|
||||
### shouldRetryTransaction\_
|
||||
|
||||
`Protected` **shouldRetryTransaction_**(`err`): `boolean`
|
||||
`Protected **shouldRetryTransaction_**(err): boolean`
|
||||
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "err",
|
||||
"type": "Record<`string`, `unknown`\\> \\| { `code`: `string` }",
|
||||
"type": "`Record<string, unknown>` \\| `{ code: string }`",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -968,7 +968,7 @@ ___
|
||||
|
||||
### update
|
||||
|
||||
**update**(`customerId`, `update`): `Promise`<[`Customer`](Customer.mdx)\>
|
||||
`**update**(customerId, update): Promise<[Customer](Customer.mdx)>`
|
||||
|
||||
Updates a customer.
|
||||
|
||||
@@ -986,7 +986,7 @@ Updates a customer.
|
||||
},
|
||||
{
|
||||
"name": "update",
|
||||
"type": "[`UpdateCustomerInput`](../types/UpdateCustomerInput.mdx)",
|
||||
"type": "[UpdateCustomerInput](../types/UpdateCustomerInput.mdx)",
|
||||
"description": "an object with the update values.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -997,12 +997,12 @@ Updates a customer.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Customer`](Customer.mdx)\>
|
||||
Promise<[Customer](Customer.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Customer`](Customer.mdx)\\>",
|
||||
"type": "Promise<[Customer](Customer.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "resolves to the update result.",
|
||||
@@ -1015,7 +1015,7 @@ ___
|
||||
|
||||
### updateAddress
|
||||
|
||||
**updateAddress**(`customerId`, `addressId`, `address`): `Promise`<[`Address`](Address.mdx)\>
|
||||
`**updateAddress**(customerId, addressId, address): Promise<[Address](Address.mdx)>`
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -1040,7 +1040,7 @@ ___
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"type": "[`StorePostCustomersCustomerAddressesAddressReq`](StorePostCustomersCustomerAddressesAddressReq.mdx)",
|
||||
"type": "[StorePostCustomersCustomerAddressesAddressReq](StorePostCustomersCustomerAddressesAddressReq.mdx)",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -1051,12 +1051,12 @@ ___
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<[`Address`](Address.mdx)\>
|
||||
Promise<[Address](Address.mdx)>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<[`Address`](Address.mdx)\\>",
|
||||
"type": "Promise<[Address](Address.mdx)>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
@@ -1069,7 +1069,7 @@ ___
|
||||
|
||||
### updateBillingAddress\_
|
||||
|
||||
**updateBillingAddress_**(`customer`, `addressOrId`): `Promise`<`void`\>
|
||||
`**updateBillingAddress_**(customer, addressOrId): Promise<void>`
|
||||
|
||||
Updates the customers' billing address.
|
||||
|
||||
@@ -1078,7 +1078,7 @@ Updates the customers' billing address.
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "customer",
|
||||
"type": "[`Customer`](Customer.mdx)",
|
||||
"type": "[Customer](Customer.mdx)",
|
||||
"description": "the Customer to update",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -1087,7 +1087,7 @@ Updates the customers' billing address.
|
||||
},
|
||||
{
|
||||
"name": "addressOrId",
|
||||
"type": "`undefined` \\| `string` \\| `DeepPartial`<[`Address`](Address.mdx)\\>",
|
||||
"type": "`undefined` \\| `string` \\| DeepPartial<[Address](Address.mdx)>",
|
||||
"description": "the value to set the billing address to",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -1098,12 +1098,12 @@ Updates the customers' billing address.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<`void`\>
|
||||
Promise<void>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<`void`\\>",
|
||||
"type": "Promise<void>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "the result of the update operation",
|
||||
@@ -1116,14 +1116,14 @@ ___
|
||||
|
||||
### withTransaction
|
||||
|
||||
**withTransaction**(`transactionManager?`): [`CustomerService`](CustomerService.mdx)
|
||||
`**withTransaction**(transactionManager?): [CustomerService](CustomerService.mdx)`
|
||||
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "transactionManager",
|
||||
"type": "`EntityManager`",
|
||||
"type": "EntityManager",
|
||||
"description": "",
|
||||
"optional": true,
|
||||
"defaultValue": "",
|
||||
@@ -1134,12 +1134,12 @@ ___
|
||||
|
||||
#### Returns
|
||||
|
||||
[`CustomerService`](CustomerService.mdx)
|
||||
[CustomerService](CustomerService.mdx)
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "CustomerService",
|
||||
"type": "[`CustomerService`](CustomerService.mdx)",
|
||||
"type": "[CustomerService](CustomerService.mdx)",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
|
||||
Reference in New Issue
Block a user