@daffodil/customer 0.87.2 → 0.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/driver/in-memory/index.d.ts +129 -1
- package/driver/index.d.ts +118 -1
- package/driver/magento/index.d.ts +206 -1
- package/driver/magento/testing/index.d.ts +37 -1
- package/driver/testing/index.d.ts +55 -1
- package/fesm2022/daffodil-customer-driver-in-memory.mjs +16 -16
- package/fesm2022/daffodil-customer-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-customer-driver-magento-testing.mjs +10 -10
- package/fesm2022/daffodil-customer-driver-magento-testing.mjs.map +1 -1
- package/fesm2022/daffodil-customer-driver-magento.mjs +10 -10
- package/fesm2022/daffodil-customer-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-customer-driver-testing.mjs +10 -10
- package/fesm2022/daffodil-customer-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-customer-driver.mjs.map +1 -1
- package/fesm2022/daffodil-customer-routing.mjs +6 -6
- package/fesm2022/daffodil-customer-routing.mjs.map +1 -1
- package/fesm2022/daffodil-customer-state-testing.mjs +13 -13
- package/fesm2022/daffodil-customer-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-customer-state.mjs +16 -16
- package/fesm2022/daffodil-customer-state.mjs.map +1 -1
- package/fesm2022/daffodil-customer-testing.mjs +8 -8
- package/fesm2022/daffodil-customer-testing.mjs.map +1 -1
- package/index.d.ts +44 -1
- package/package.json +1 -1
- package/routing/index.d.ts +29 -1
- package/state/index.d.ts +493 -1
- package/state/testing/index.d.ts +66 -1
- package/testing/index.d.ts +46 -1
- package/driver/errors/address-not-found.d.ts +0 -10
- package/driver/errors/codes.d.ts +0 -6
- package/driver/errors/default-billing-address-deletion.d.ts +0 -10
- package/driver/errors/default-shipping-address-deletion.d.ts +0 -10
- package/driver/errors/invalid-api-response.d.ts +0 -10
- package/driver/errors/map.d.ts +0 -13
- package/driver/errors/public_api.d.ts +0 -6
- package/driver/in-memory/backend/address.service.d.ts +0 -39
- package/driver/in-memory/backend/customer.service.d.ts +0 -41
- package/driver/in-memory/collection-names/address.const.d.ts +0 -1
- package/driver/in-memory/collection-names/customer.const.d.ts +0 -1
- package/driver/in-memory/driver/address.service.d.ts +0 -24
- package/driver/in-memory/driver/customer-driver.module.d.ts +0 -12
- package/driver/in-memory/driver/customer.service.d.ts +0 -22
- package/driver/in-memory/public_api.d.ts +0 -5
- package/driver/interfaces/address-service.interface.d.ts +0 -29
- package/driver/interfaces/customer-service.interface.d.ts +0 -26
- package/driver/magento/address.service.d.ts +0 -27
- package/driver/magento/customer-driver.module.d.ts +0 -9
- package/driver/magento/customer.service.d.ts +0 -20
- package/driver/magento/errors/map.d.ts +0 -3
- package/driver/magento/errors/public_api.d.ts +0 -1
- package/driver/magento/errors/transform.d.ts +0 -10
- package/driver/magento/models/gender.enum.d.ts +0 -4
- package/driver/magento/models/public_api.d.ts +0 -3
- package/driver/magento/models/requests/address-attribute-input.type.d.ts +0 -4
- package/driver/magento/models/requests/address-input.type.d.ts +0 -22
- package/driver/magento/models/requests/address-region-input.type.d.ts +0 -8
- package/driver/magento/models/requests/customer-input.type.d.ts +0 -14
- package/driver/magento/models/requests/public_api.d.ts +0 -4
- package/driver/magento/models/responses/change-email.type.d.ts +0 -6
- package/driver/magento/models/responses/change-password.type.d.ts +0 -5
- package/driver/magento/models/responses/create-customer-address.type.d.ts +0 -4
- package/driver/magento/models/responses/customer-address.type.d.ts +0 -18
- package/driver/magento/models/responses/customer.type.d.ts +0 -8
- package/driver/magento/models/responses/delete-customer-address.type.d.ts +0 -3
- package/driver/magento/models/responses/get-customer-addresses.type.d.ts +0 -4
- package/driver/magento/models/responses/get-customer.type.d.ts +0 -4
- package/driver/magento/models/responses/public_api.d.ts +0 -10
- package/driver/magento/models/responses/update-customer-address.type.d.ts +0 -4
- package/driver/magento/models/responses/update-customer.type.d.ts +0 -6
- package/driver/magento/public_api.d.ts +0 -7
- package/driver/magento/queries/change-password.d.ts +0 -2
- package/driver/magento/queries/create-customer-address.d.ts +0 -1
- package/driver/magento/queries/delete-customer-address.d.ts +0 -1
- package/driver/magento/queries/fragments/customer-address.d.ts +0 -1
- package/driver/magento/queries/fragments/customer.d.ts +0 -1
- package/driver/magento/queries/fragments/public_api.d.ts +0 -2
- package/driver/magento/queries/get-customer-addresses.d.ts +0 -2
- package/driver/magento/queries/get-customer.d.ts +0 -2
- package/driver/magento/queries/public_api.d.ts +0 -9
- package/driver/magento/queries/update-customer-address.d.ts +0 -1
- package/driver/magento/queries/update-customer.d.ts +0 -2
- package/driver/magento/queries/update-email.d.ts +0 -2
- package/driver/magento/testing/factories/address.factory.d.ts +0 -28
- package/driver/magento/testing/factories/customer.factory.d.ts +0 -9
- package/driver/magento/testing/factories/public_api.d.ts +0 -2
- package/driver/magento/testing/public_api.d.ts +0 -1
- package/driver/magento/transforms/public_api.d.ts +0 -2
- package/driver/magento/transforms/requests/address-input.d.ts +0 -3
- package/driver/magento/transforms/requests/customer-input.d.ts +0 -3
- package/driver/magento/transforms/requests/public_api.d.ts +0 -2
- package/driver/magento/transforms/responses/customer-address.d.ts +0 -3
- package/driver/magento/transforms/responses/customer.d.ts +0 -3
- package/driver/magento/transforms/responses/public_api.d.ts +0 -2
- package/driver/magento/validators/change-email.d.ts +0 -3
- package/driver/magento/validators/change-password.d.ts +0 -3
- package/driver/magento/validators/create-customer-address.d.ts +0 -3
- package/driver/magento/validators/delete-customer-address.d.ts +0 -3
- package/driver/magento/validators/get-customer-addresses.d.ts +0 -3
- package/driver/magento/validators/get-customer.d.ts +0 -3
- package/driver/magento/validators/public_api.d.ts +0 -8
- package/driver/magento/validators/update-customer-address.d.ts +0 -3
- package/driver/magento/validators/update-customer.d.ts +0 -3
- package/driver/public_api.d.ts +0 -3
- package/driver/testing/drivers/address.service.d.ts +0 -23
- package/driver/testing/drivers/customer-driver.module.d.ts +0 -12
- package/driver/testing/drivers/customer.service.d.ts +0 -21
- package/driver/testing/drivers/public_api.d.ts +0 -3
- package/driver/testing/public_api.d.ts +0 -1
- package/models/address.type.d.ts +0 -15
- package/models/customer.type.d.ts +0 -27
- package/models/public_api.d.ts +0 -2
- package/public_api.d.ts +0 -1
- package/routing/guards/clear-errors.guard.d.ts +0 -14
- package/routing/guards/public_api.d.ts +0 -1
- package/routing/public_api.d.ts +0 -2
- package/routing/resolvers/customer.resolver.d.ts +0 -13
- package/routing/resolvers/public_api.d.ts +0 -1
- package/state/actions/address.actions.d.ts +0 -166
- package/state/actions/customer.actions.d.ts +0 -133
- package/state/actions/public_api.d.ts +0 -2
- package/state/customer.module.d.ts +0 -11
- package/state/effects/address.effects.d.ts +0 -31
- package/state/effects/customer.effects.d.ts +0 -30
- package/state/facades/address/facade.d.ts +0 -28
- package/state/facades/address/interface.d.ts +0 -14
- package/state/facades/customer/facade.d.ts +0 -26
- package/state/facades/customer/interface.d.ts +0 -13
- package/state/facades/public_api.d.ts +0 -4
- package/state/injection-tokens/error-matcher.token.d.ts +0 -2
- package/state/injection-tokens/public_api.d.ts +0 -1
- package/state/models/address.type.d.ts +0 -3
- package/state/models/public_api.d.ts +0 -1
- package/state/public_api.d.ts +0 -7
- package/state/reducers/address/initial-state.d.ts +0 -5
- package/state/reducers/address/public_api.d.ts +0 -3
- package/state/reducers/address/reducer.d.ts +0 -7
- package/state/reducers/address/type.d.ts +0 -5
- package/state/reducers/address-entities/adapter.d.ts +0 -6
- package/state/reducers/address-entities/public_api.d.ts +0 -2
- package/state/reducers/address-entities/reducer.d.ts +0 -12
- package/state/reducers/customer/adapter.d.ts +0 -12
- package/state/reducers/customer/initial-state.d.ts +0 -5
- package/state/reducers/customer/interface.d.ts +0 -9
- package/state/reducers/customer/public_api.d.ts +0 -4
- package/state/reducers/customer/reducer.d.ts +0 -7
- package/state/reducers/public_api.d.ts +0 -6
- package/state/reducers/reducers.interface.d.ts +0 -19
- package/state/reducers/store-feature-key.d.ts +0 -4
- package/state/reducers/token/extra.token.d.ts +0 -3
- package/state/reducers/token/public_api.d.ts +0 -1
- package/state/reducers/token/reducers.token.d.ts +0 -3
- package/state/selectors/address/selector.d.ts +0 -15
- package/state/selectors/customer/selector.d.ts +0 -14
- package/state/selectors/feature.selector.d.ts +0 -10
- package/state/selectors/public_api.d.ts +0 -3
- package/state/testing/customer-testing.module.d.ts +0 -9
- package/state/testing/factories/customer-address.factory.d.ts +0 -21
- package/state/testing/factories/public_api.d.ts +0 -1
- package/state/testing/mock-address-facade.d.ts +0 -19
- package/state/testing/mock-customer-facade.d.ts +0 -20
- package/state/testing/public_api.d.ts +0 -4
- package/testing/factories/customer-address.factory.d.ts +0 -20
- package/testing/factories/customer.factory.d.ts +0 -26
- package/testing/factories/public_api.d.ts +0 -2
- package/testing/public_api.d.ts +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './fragments/public_api';
|
|
2
|
-
export * from './get-customer';
|
|
3
|
-
export * from './get-customer-addresses';
|
|
4
|
-
export * from './create-customer-address';
|
|
5
|
-
export * from './update-customer-address';
|
|
6
|
-
export * from './delete-customer-address';
|
|
7
|
-
export * from './update-customer';
|
|
8
|
-
export * from './update-email';
|
|
9
|
-
export * from './change-password';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const updateCustomerAddress: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
2
|
-
import { MagentoCustomerAddress } from '@daffodil/customer/driver/magento';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MockMagentoCustomerAddress implements MagentoCustomerAddress {
|
|
5
|
-
__typename: string;
|
|
6
|
-
id: number;
|
|
7
|
-
region: {
|
|
8
|
-
__typename: string;
|
|
9
|
-
region_code: string;
|
|
10
|
-
region_id: number;
|
|
11
|
-
};
|
|
12
|
-
country_code: string;
|
|
13
|
-
street: string[];
|
|
14
|
-
company: string;
|
|
15
|
-
telephone: string;
|
|
16
|
-
postcode: string;
|
|
17
|
-
city: string;
|
|
18
|
-
firstname: string;
|
|
19
|
-
lastname: string;
|
|
20
|
-
email: string;
|
|
21
|
-
default_billing: boolean;
|
|
22
|
-
default_shipping: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare class MagentoCustomerAddressFactory extends DaffModelFactory<MagentoCustomerAddress> {
|
|
25
|
-
constructor();
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCustomerAddressFactory, never>;
|
|
27
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCustomerAddressFactory>;
|
|
28
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
2
|
-
import { MagentoCustomer } from '@daffodil/customer/driver/magento';
|
|
3
|
-
import { MagentoCustomerAddressFactory } from './address.factory';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MagentoCustomerFactory extends DaffModelFactory<MagentoCustomer> {
|
|
6
|
-
constructor(addressFactory: MagentoCustomerAddressFactory);
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCustomerFactory, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCustomerFactory>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './factories/public_api';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { MagentoChangeEmailResponse } from '../models/public_api';
|
|
3
|
-
export declare const validateChangeEmailResponse: (response: ApolloQueryResult<MagentoChangeEmailResponse>) => ApolloQueryResult<MagentoChangeEmailResponse>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { MagentoChangePasswordResponse } from '../models/public_api';
|
|
3
|
-
export declare const validateChangePasswordResponse: (response: ApolloQueryResult<MagentoChangePasswordResponse>) => ApolloQueryResult<MagentoChangePasswordResponse>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { MagentoCreateCustomerAddressResponse } from '../models/public_api';
|
|
3
|
-
export declare const validateCreateCustomerAddressResponse: (response: ApolloQueryResult<MagentoCreateCustomerAddressResponse>) => ApolloQueryResult<MagentoCreateCustomerAddressResponse>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { MagentoDeleteCustomerAddressResponse } from '../models/public_api';
|
|
3
|
-
export declare const validateDeleteCustomerAddressResponse: (response: ApolloQueryResult<MagentoDeleteCustomerAddressResponse>) => ApolloQueryResult<MagentoDeleteCustomerAddressResponse>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { MagentoGetCustomerAddressesResponse } from '../models/public_api';
|
|
3
|
-
export declare const validateGetCustomerAddressesResponse: (response: ApolloQueryResult<MagentoGetCustomerAddressesResponse>) => ApolloQueryResult<MagentoGetCustomerAddressesResponse>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { MagentoGetCustomerResponse } from '../models/public_api';
|
|
3
|
-
export declare const validateGetCustomerResponse: (response: ApolloQueryResult<MagentoGetCustomerResponse>) => ApolloQueryResult<MagentoGetCustomerResponse>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { validateGetCustomerResponse } from './get-customer';
|
|
2
|
-
export { validateChangeEmailResponse } from './change-email';
|
|
3
|
-
export { validateChangePasswordResponse } from './change-password';
|
|
4
|
-
export { validateGetCustomerAddressesResponse } from './get-customer-addresses';
|
|
5
|
-
export { validateCreateCustomerAddressResponse } from './create-customer-address';
|
|
6
|
-
export { validateUpdateCustomerAddressResponse } from './update-customer-address';
|
|
7
|
-
export { validateDeleteCustomerAddressResponse } from './delete-customer-address';
|
|
8
|
-
export { validateUpdateCustomerResponse } from './update-customer';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { MagentoUpdateCustomerAddressResponse } from '../models/public_api';
|
|
3
|
-
export declare const validateUpdateCustomerAddressResponse: (response: ApolloQueryResult<MagentoUpdateCustomerAddressResponse>) => ApolloQueryResult<MagentoUpdateCustomerAddressResponse>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { MagentoUpdateCustomerResponse } from '../models/public_api';
|
|
3
|
-
export declare const validateUpdateCustomerResponse: (response: ApolloQueryResult<MagentoUpdateCustomerResponse>) => ApolloQueryResult<MagentoUpdateCustomerResponse>;
|
package/driver/public_api.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { DaffCustomerDriverInterface, DaffCustomerDriver, provideDaffCustomerDriver, } from './interfaces/customer-service.interface';
|
|
2
|
-
export { DaffCustomerAddressDriverInterface, DaffCustomerAddressDriver, provideDaffCustomerAddressDriver, } from './interfaces/address-service.interface';
|
|
3
|
-
export * from './errors/public_api';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DaffIdentifiable } from '@daffodil/core';
|
|
3
|
-
import { DaffCustomerAddress } from '@daffodil/customer';
|
|
4
|
-
import { DaffCustomerAddressDriverInterface } from '@daffodil/customer/driver';
|
|
5
|
-
import { DaffCustomerAddressFactory } from '@daffodil/customer/testing';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* A basic customer driver that creates mock customer results of different kinds.
|
|
9
|
-
* For testing purposes.
|
|
10
|
-
*
|
|
11
|
-
* @inheritdoc
|
|
12
|
-
*/
|
|
13
|
-
export declare class DaffCustomerAddressTestingDriver implements DaffCustomerAddressDriverInterface {
|
|
14
|
-
private factory;
|
|
15
|
-
constructor(factory: DaffCustomerAddressFactory);
|
|
16
|
-
list(): Observable<DaffCustomerAddress[]>;
|
|
17
|
-
get(addressId: string): Observable<DaffCustomerAddress>;
|
|
18
|
-
update(address: Partial<DaffCustomerAddress> & DaffIdentifiable): Observable<DaffCustomerAddress[]>;
|
|
19
|
-
add(address: DaffCustomerAddress): Observable<DaffCustomerAddress[]>;
|
|
20
|
-
delete(addressId: string): Observable<DaffCustomerAddress[]>;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerAddressTestingDriver, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCustomerAddressTestingDriver>;
|
|
23
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
/**
|
|
5
|
-
* Provides the {@link DaffCustomerTestingDriver} as the {@link DaffCustomerDriver}.
|
|
6
|
-
*/
|
|
7
|
-
export declare class DaffCustomerTestingDriverModule {
|
|
8
|
-
static forRoot(): ModuleWithProviders<DaffCustomerTestingDriverModule>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerTestingDriverModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCustomerTestingDriverModule, never, [typeof i1.CommonModule], never>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffCustomerTestingDriverModule>;
|
|
12
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DaffCustomer } from '@daffodil/customer';
|
|
3
|
-
import { DaffCustomerDriverInterface } from '@daffodil/customer/driver';
|
|
4
|
-
import { DaffCustomerFactory } from '@daffodil/customer/testing';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* A basic customer driver that creates mock customer results of different kinds.
|
|
8
|
-
* For testing purposes.
|
|
9
|
-
*
|
|
10
|
-
* @inheritdoc
|
|
11
|
-
*/
|
|
12
|
-
export declare class DaffCustomerTestingDriver implements DaffCustomerDriverInterface {
|
|
13
|
-
private customerFactory;
|
|
14
|
-
constructor(customerFactory: DaffCustomerFactory);
|
|
15
|
-
changeEmail(email: string, password: string): Observable<DaffCustomer>;
|
|
16
|
-
changePassword(oldPassword: string, newPassword: string): Observable<void>;
|
|
17
|
-
get(): Observable<DaffCustomer>;
|
|
18
|
-
update(customer: Partial<DaffCustomer>): Observable<DaffCustomer>;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerTestingDriver, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCustomerTestingDriver>;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './drivers/public_api';
|
package/models/address.type.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DaffIdentifiable } from '@daffodil/core';
|
|
2
|
-
import { DaffPersonalAddress } from '@daffodil/geography';
|
|
3
|
-
/**
|
|
4
|
-
* An address that belongs to a {@link DaffCustomer}
|
|
5
|
-
*/
|
|
6
|
-
export interface DaffCustomerAddress extends DaffPersonalAddress, DaffIdentifiable {
|
|
7
|
-
/**
|
|
8
|
-
* Whether this address is the customer's default billing address.
|
|
9
|
-
*/
|
|
10
|
-
defaultBilling: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Whether this address is the customer's default shipping address.
|
|
13
|
-
*/
|
|
14
|
-
defaultShipping: boolean;
|
|
15
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { DaffIdentifiable } from '@daffodil/core';
|
|
2
|
-
import { DaffCustomerAddress } from './address.type';
|
|
3
|
-
/**
|
|
4
|
-
* A customer.
|
|
5
|
-
*/
|
|
6
|
-
export interface DaffCustomer extends DaffIdentifiable {
|
|
7
|
-
/**
|
|
8
|
-
* The customer's email.
|
|
9
|
-
*/
|
|
10
|
-
email: string;
|
|
11
|
-
/**
|
|
12
|
-
* The customer's first or birth name.
|
|
13
|
-
*/
|
|
14
|
-
firstName: string;
|
|
15
|
-
/**
|
|
16
|
-
* The customer's last or family name.
|
|
17
|
-
*/
|
|
18
|
-
lastName: string;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the customer is subscribed to the newsletter.
|
|
21
|
-
*/
|
|
22
|
-
isSubscribed: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* A list of the customer's stored addresses.
|
|
25
|
-
*/
|
|
26
|
-
addresses: DaffCustomerAddress[];
|
|
27
|
-
}
|
package/models/public_api.d.ts
DELETED
package/public_api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './models/public_api';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { UrlTree } from '@angular/router';
|
|
2
|
-
import { Store } from '@ngrx/store';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* A guard that will clear customer state errors before allowing route deactivation.
|
|
7
|
-
*/
|
|
8
|
-
export declare class DaffCustomerClearErrorsGuard {
|
|
9
|
-
private store;
|
|
10
|
-
constructor(store: Store<any>);
|
|
11
|
-
canDeactivate(): boolean | UrlTree | Observable<boolean | UrlTree> | Promise<boolean | UrlTree>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerClearErrorsGuard, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCustomerClearErrorsGuard>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DaffCustomerClearErrorsGuard } from './clear-errors.guard';
|
package/routing/public_api.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DaffCustomerPageFacade } from '@daffodil/customer/state';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Dispatches customer load.
|
|
6
|
-
*/
|
|
7
|
-
export declare class DaffCustomerResolver {
|
|
8
|
-
private facade;
|
|
9
|
-
constructor(facade: DaffCustomerPageFacade);
|
|
10
|
-
resolve(): Observable<boolean>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerResolver, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCustomerResolver>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DaffCustomerResolver } from './customer.resolver';
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffIdentifiable } from '@daffodil/core';
|
|
3
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
import { DaffCustomer, DaffCustomerAddress } from '@daffodil/customer';
|
|
5
|
-
/**
|
|
6
|
-
* The customer address action types enum.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum DaffCustomerAddressActionTypes {
|
|
9
|
-
AddressListAction = "[@daffodil/customer] Address List Action",
|
|
10
|
-
AddressListSuccessAction = "[@daffodil/customer] Address List Success Action",
|
|
11
|
-
AddressListFailureAction = "[@daffodil/customer] Address List Failure Action",
|
|
12
|
-
AddressLoadAction = "[@daffodil/customer] Address Load Action",
|
|
13
|
-
AddressLoadSuccessAction = "[@daffodil/customer] Address Load Success Action",
|
|
14
|
-
AddressLoadFailureAction = "[@daffodil/customer] Address Load Failure Action",
|
|
15
|
-
AddressAddAction = "[@daffodil/customer] Address Add Action",
|
|
16
|
-
AddressAddSuccessAction = "[@daffodil/customer] Address Add Success Action",
|
|
17
|
-
AddressAddFailureAction = "[@daffodil/customer] Address Add Failure Action",
|
|
18
|
-
AddressUpdateAction = "[@daffodil/customer] Address Update Action",
|
|
19
|
-
AddressUpdateSuccessAction = "[@daffodil/customer] Address Update Success Action",
|
|
20
|
-
AddressUpdateFailureAction = "[@daffodil/customer] Address Update Failure Action",
|
|
21
|
-
AddressDeleteAction = "[@daffodil/customer] Address Delete Action",
|
|
22
|
-
AddressDeleteSuccessAction = "[@daffodil/customer] Address Delete Success Action",
|
|
23
|
-
AddressDeleteFailureAction = "[@daffodil/customer] Address Delete Failure Action"
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Lists the addresses of the current customer.
|
|
27
|
-
*
|
|
28
|
-
* @param addressId The ID of the address.
|
|
29
|
-
*/
|
|
30
|
-
export declare class DaffCustomerAddressList implements Action {
|
|
31
|
-
readonly type = DaffCustomerAddressActionTypes.AddressListAction;
|
|
32
|
-
constructor();
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Indicates a successful listing of customer addresses.
|
|
36
|
-
*/
|
|
37
|
-
export declare class DaffCustomerAddressListSuccess<T extends DaffCustomerAddress = DaffCustomerAddress> implements Action {
|
|
38
|
-
payload: T[];
|
|
39
|
-
readonly type = DaffCustomerAddressActionTypes.AddressListSuccessAction;
|
|
40
|
-
constructor(payload: T[]);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* A failed customer address list with the error message.
|
|
44
|
-
*/
|
|
45
|
-
export declare class DaffCustomerAddressListFailure implements Action {
|
|
46
|
-
payload: DaffStateError;
|
|
47
|
-
readonly type = DaffCustomerAddressActionTypes.AddressListFailureAction;
|
|
48
|
-
constructor(payload: DaffStateError);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Loads an address of the current customer.
|
|
52
|
-
*
|
|
53
|
-
* @param addressId The ID of the address.
|
|
54
|
-
*/
|
|
55
|
-
export declare class DaffCustomerAddressLoad implements Action {
|
|
56
|
-
addressId: DaffCustomerAddress['id'];
|
|
57
|
-
readonly type = DaffCustomerAddressActionTypes.AddressLoadAction;
|
|
58
|
-
constructor(addressId: DaffCustomerAddress['id']);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Indicates a successful load of a customer address.
|
|
62
|
-
*/
|
|
63
|
-
export declare class DaffCustomerAddressLoadSuccess<T extends DaffCustomerAddress = DaffCustomerAddress> implements Action {
|
|
64
|
-
payload: T;
|
|
65
|
-
readonly type = DaffCustomerAddressActionTypes.AddressLoadSuccessAction;
|
|
66
|
-
constructor(payload: T);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* A failed customer address load with the error message.
|
|
70
|
-
*/
|
|
71
|
-
export declare class DaffCustomerAddressLoadFailure implements Action {
|
|
72
|
-
payload: DaffStateError;
|
|
73
|
-
id: DaffCustomer['id'];
|
|
74
|
-
readonly type = DaffCustomerAddressActionTypes.AddressLoadFailureAction;
|
|
75
|
-
constructor(payload: DaffStateError, id: DaffCustomer['id']);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Updates one of the currently logged-in customer's addresses.
|
|
79
|
-
*
|
|
80
|
-
* @param query The customer query.
|
|
81
|
-
*/
|
|
82
|
-
export declare class DaffCustomerAddressUpdate<T extends DaffCustomerAddress = DaffCustomerAddress> implements Action {
|
|
83
|
-
address: Partial<T> & DaffIdentifiable;
|
|
84
|
-
readonly type = DaffCustomerAddressActionTypes.AddressUpdateAction;
|
|
85
|
-
constructor(address: Partial<T> & DaffIdentifiable);
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Indicates a successful update of one of the currently logged-in customer's addresses.
|
|
89
|
-
*/
|
|
90
|
-
export declare class DaffCustomerAddressUpdateSuccess<T extends DaffCustomerAddress = DaffCustomerAddress> implements Action {
|
|
91
|
-
payload: T[];
|
|
92
|
-
readonly type = DaffCustomerAddressActionTypes.AddressUpdateSuccessAction;
|
|
93
|
-
constructor(payload: T[]);
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* A failed address update with the error message.
|
|
97
|
-
*/
|
|
98
|
-
export declare class DaffCustomerAddressUpdateFailure implements Action {
|
|
99
|
-
payload: DaffStateError;
|
|
100
|
-
id: DaffCustomer['id'];
|
|
101
|
-
readonly type = DaffCustomerAddressActionTypes.AddressUpdateFailureAction;
|
|
102
|
-
constructor(payload: DaffStateError, id: DaffCustomer['id']);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Adds one of the currently logged-in customer's addresses.
|
|
106
|
-
*
|
|
107
|
-
* @param query The customer query.
|
|
108
|
-
*/
|
|
109
|
-
export declare class DaffCustomerAddressAdd<T extends DaffCustomerAddress = DaffCustomerAddress> implements Action {
|
|
110
|
-
address: T;
|
|
111
|
-
placeholderId?: string;
|
|
112
|
-
readonly type = DaffCustomerAddressActionTypes.AddressAddAction;
|
|
113
|
-
constructor(address: T, placeholderId?: string);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Indicates a successful addition of one of the currently logged-in customer's addresses.
|
|
117
|
-
*
|
|
118
|
-
* @param payload The updated list of customer addresses.
|
|
119
|
-
*/
|
|
120
|
-
export declare class DaffCustomerAddressAddSuccess<T extends DaffCustomerAddress = DaffCustomerAddress> implements Action {
|
|
121
|
-
payload: T[];
|
|
122
|
-
readonly type = DaffCustomerAddressActionTypes.AddressAddSuccessAction;
|
|
123
|
-
constructor(payload: T[]);
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* A failed address addition with the error message.
|
|
127
|
-
*/
|
|
128
|
-
export declare class DaffCustomerAddressAddFailure implements Action {
|
|
129
|
-
payload: DaffStateError;
|
|
130
|
-
id: DaffCustomer['id'];
|
|
131
|
-
readonly type = DaffCustomerAddressActionTypes.AddressAddFailureAction;
|
|
132
|
-
constructor(payload: DaffStateError, id: DaffCustomer['id']);
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Deletes one of the currently logged-in customer's addresses.
|
|
136
|
-
*
|
|
137
|
-
* @param addressId The ID of the address.
|
|
138
|
-
*/
|
|
139
|
-
export declare class DaffCustomerAddressDelete implements Action {
|
|
140
|
-
addressId: DaffCustomerAddress['id'];
|
|
141
|
-
readonly type = DaffCustomerAddressActionTypes.AddressDeleteAction;
|
|
142
|
-
constructor(addressId: DaffCustomerAddress['id']);
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Indicates a successful deletion of one of the currently logged-in customer's addresses.
|
|
146
|
-
*
|
|
147
|
-
* @param payload The updated list of customer addresses.
|
|
148
|
-
*/
|
|
149
|
-
export declare class DaffCustomerAddressDeleteSuccess<T extends DaffCustomerAddress = DaffCustomerAddress> implements Action {
|
|
150
|
-
payload: T[];
|
|
151
|
-
readonly type = DaffCustomerAddressActionTypes.AddressDeleteSuccessAction;
|
|
152
|
-
constructor(payload: T[]);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* A failed address deletion with the error message.
|
|
156
|
-
*/
|
|
157
|
-
export declare class DaffCustomerAddressDeleteFailure implements Action {
|
|
158
|
-
payload: DaffStateError;
|
|
159
|
-
id: DaffCustomer['id'];
|
|
160
|
-
readonly type = DaffCustomerAddressActionTypes.AddressDeleteFailureAction;
|
|
161
|
-
constructor(payload: DaffStateError, id: DaffCustomer['id']);
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* A union of the customer action types.
|
|
165
|
-
*/
|
|
166
|
-
export type DaffCustomerAddressActions<T extends DaffCustomerAddress = DaffCustomerAddress> = DaffCustomerAddressList | DaffCustomerAddressListSuccess<T> | DaffCustomerAddressListFailure | DaffCustomerAddressLoad | DaffCustomerAddressLoadSuccess<T> | DaffCustomerAddressLoadFailure | DaffCustomerAddressUpdate<T> | DaffCustomerAddressUpdateSuccess<T> | DaffCustomerAddressUpdateFailure | DaffCustomerAddressAdd<T> | DaffCustomerAddressAddSuccess<T> | DaffCustomerAddressAddFailure | DaffCustomerAddressDelete | DaffCustomerAddressDeleteSuccess | DaffCustomerAddressDeleteFailure;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
3
|
-
import { DaffCustomer } from '@daffodil/customer';
|
|
4
|
-
/**
|
|
5
|
-
* The customer action types enum.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum DaffCustomerActionTypes {
|
|
8
|
-
CustomerLoadAction = "[@daffodil/customer] Customer Load Action",
|
|
9
|
-
CustomerLoadSuccessAction = "[@daffodil/customer] Customer Load Success Action",
|
|
10
|
-
CustomerLoadFailureAction = "[@daffodil/customer] Customer Load Failure Action",
|
|
11
|
-
CustomerUpdateAction = "[@daffodil/customer] Customer Update Action",
|
|
12
|
-
CustomerUpdateSuccessAction = "[@daffodil/customer] Customer Update Success Action",
|
|
13
|
-
CustomerUpdateFailureAction = "[@daffodil/customer] Customer Update Failure Action",
|
|
14
|
-
CustomerChangeEmailAction = "[@daffodil/customer] Customer Change Email Action",
|
|
15
|
-
CustomerChangeEmailSuccessAction = "[@daffodil/customer] Customer Change Email Success Action",
|
|
16
|
-
CustomerChangeEmailFailureAction = "[@daffodil/customer] Customer Change Email Failure Action",
|
|
17
|
-
CustomerChangePasswordAction = "[@daffodil/customer] Customer Change Password Action",
|
|
18
|
-
CustomerChangePasswordSuccessAction = "[@daffodil/customer] Customer Change Password Success Action",
|
|
19
|
-
CustomerChangePasswordFailureAction = "[@daffodil/customer] Customer Change Password Failure Action",
|
|
20
|
-
CustomerClearErrorsAction = "[@daffodil/customer] Customer Clear Errors Action"
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Loads the currently logged-in customer.
|
|
24
|
-
*
|
|
25
|
-
* @param query The customer query.
|
|
26
|
-
*/
|
|
27
|
-
export declare class DaffCustomerLoad implements Action {
|
|
28
|
-
readonly type = DaffCustomerActionTypes.CustomerLoadAction;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Indicates a successful load of the currently logged-in customer.
|
|
32
|
-
*/
|
|
33
|
-
export declare class DaffCustomerLoadSuccess<T extends DaffCustomer = DaffCustomer> implements Action {
|
|
34
|
-
payload: T;
|
|
35
|
-
readonly type = DaffCustomerActionTypes.CustomerLoadSuccessAction;
|
|
36
|
-
constructor(payload: T);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* A failed customer load with the error message.
|
|
40
|
-
*/
|
|
41
|
-
export declare class DaffCustomerLoadFailure implements Action {
|
|
42
|
-
payload: DaffStateError;
|
|
43
|
-
readonly type = DaffCustomerActionTypes.CustomerLoadFailureAction;
|
|
44
|
-
constructor(payload: DaffStateError);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Updates the currently logged-in customer.
|
|
48
|
-
*
|
|
49
|
-
* @param query The customer query.
|
|
50
|
-
*/
|
|
51
|
-
export declare class DaffCustomerUpdate<T extends DaffCustomer = DaffCustomer> implements Action {
|
|
52
|
-
customer: Partial<T>;
|
|
53
|
-
readonly type = DaffCustomerActionTypes.CustomerUpdateAction;
|
|
54
|
-
constructor(customer: Partial<T>);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Indicates a successful update of the currently logged-in customer.
|
|
58
|
-
*/
|
|
59
|
-
export declare class DaffCustomerUpdateSuccess<T extends DaffCustomer = DaffCustomer> implements Action {
|
|
60
|
-
payload: T;
|
|
61
|
-
readonly type = DaffCustomerActionTypes.CustomerUpdateSuccessAction;
|
|
62
|
-
constructor(payload: T);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* A failed customer update with the error message.
|
|
66
|
-
*/
|
|
67
|
-
export declare class DaffCustomerUpdateFailure implements Action {
|
|
68
|
-
payload: DaffStateError;
|
|
69
|
-
readonly type = DaffCustomerActionTypes.CustomerUpdateFailureAction;
|
|
70
|
-
constructor(payload: DaffStateError);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Changes the email of the currently logged-in customer.
|
|
74
|
-
*
|
|
75
|
-
* @param query The customer query.
|
|
76
|
-
*/
|
|
77
|
-
export declare class DaffCustomerChangeEmail implements Action {
|
|
78
|
-
email: string;
|
|
79
|
-
password: string;
|
|
80
|
-
readonly type = DaffCustomerActionTypes.CustomerChangeEmailAction;
|
|
81
|
-
constructor(email: string, password: string);
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Indicates a successful email change of the currently logged-in customer.
|
|
85
|
-
*/
|
|
86
|
-
export declare class DaffCustomerChangeEmailSuccess<T extends DaffCustomer = DaffCustomer> implements Action {
|
|
87
|
-
payload: T;
|
|
88
|
-
readonly type = DaffCustomerActionTypes.CustomerChangeEmailSuccessAction;
|
|
89
|
-
constructor(payload: T);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* A failed customer email change with the error message.
|
|
93
|
-
*/
|
|
94
|
-
export declare class DaffCustomerChangeEmailFailure implements Action {
|
|
95
|
-
payload: DaffStateError;
|
|
96
|
-
readonly type = DaffCustomerActionTypes.CustomerChangeEmailFailureAction;
|
|
97
|
-
constructor(payload: DaffStateError);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Changes the password of the currently logged-in customer.
|
|
101
|
-
*
|
|
102
|
-
* @param query The customer query.
|
|
103
|
-
*/
|
|
104
|
-
export declare class DaffCustomerChangePassword implements Action {
|
|
105
|
-
newPassword: string;
|
|
106
|
-
oldPassword: string;
|
|
107
|
-
readonly type = DaffCustomerActionTypes.CustomerChangePasswordAction;
|
|
108
|
-
constructor(newPassword: string, oldPassword: string);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Indicates a successful password change of the currently logged-in customer.
|
|
112
|
-
*/
|
|
113
|
-
export declare class DaffCustomerChangePasswordSuccess implements Action {
|
|
114
|
-
readonly type = DaffCustomerActionTypes.CustomerChangePasswordSuccessAction;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* A failed customer password change with the error message.
|
|
118
|
-
*/
|
|
119
|
-
export declare class DaffCustomerChangePasswordFailure implements Action {
|
|
120
|
-
payload: DaffStateError;
|
|
121
|
-
readonly type = DaffCustomerActionTypes.CustomerChangePasswordFailureAction;
|
|
122
|
-
constructor(payload: DaffStateError);
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* An action to clear all customer errors in state.
|
|
126
|
-
*/
|
|
127
|
-
export declare class DaffCustomerClearErrors implements Action {
|
|
128
|
-
readonly type = DaffCustomerActionTypes.CustomerClearErrorsAction;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* A union of the customer action types.
|
|
132
|
-
*/
|
|
133
|
-
export type DaffCustomerActions<T extends DaffCustomer = DaffCustomer> = DaffCustomerLoad | DaffCustomerLoadSuccess<T> | DaffCustomerLoadFailure | DaffCustomerUpdate | DaffCustomerUpdateSuccess<T> | DaffCustomerUpdateFailure | DaffCustomerChangeEmail | DaffCustomerChangeEmailSuccess<T> | DaffCustomerChangeEmailFailure | DaffCustomerChangePassword | DaffCustomerChangePasswordSuccess | DaffCustomerChangePasswordFailure | DaffCustomerClearErrors;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@ngrx/store";
|
|
3
|
-
import * as i2 from "@ngrx/effects";
|
|
4
|
-
/**
|
|
5
|
-
* Creates the customer feature store.
|
|
6
|
-
*/
|
|
7
|
-
export declare class DaffCustomerStateModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerStateModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCustomerStateModule, never, [typeof i1.StoreFeatureModule, typeof i2.EffectsFeatureModule], never>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffCustomerStateModule>;
|
|
11
|
-
}
|