@daffodil/customer 0.51.0 → 0.53.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/magento/testing/factories/address.factory.d.ts +14 -14
- package/driver/testing/drivers/public_api.d.ts +1 -0
- package/esm2020/driver/magento/customer-driver.module.mjs +1 -13
- package/esm2020/driver/magento/testing/factories/address.factory.mjs +3 -3
- package/esm2020/driver/magento/testing/factories/customer.factory.mjs +2 -2
- package/esm2020/driver/testing/drivers/public_api.mjs +2 -1
- package/esm2020/state/testing/customer-testing.module.mjs +5 -2
- package/esm2020/state/testing/factories/customer-address.factory.mjs +32 -0
- package/esm2020/state/testing/factories/public_api.mjs +2 -0
- package/esm2020/state/testing/mock-address-facade.mjs +28 -0
- package/esm2020/state/testing/public_api.mjs +3 -1
- package/esm2020/testing/factories/customer-address.factory.mjs +2 -2
- package/esm2020/testing/factories/customer.factory.mjs +2 -2
- package/fesm2015/daffodil-customer-driver-magento-testing.mjs +2 -2
- package/fesm2015/daffodil-customer-driver-magento-testing.mjs.map +1 -1
- package/fesm2015/daffodil-customer-driver-magento.mjs +1 -11
- package/fesm2015/daffodil-customer-driver-magento.mjs.map +1 -1
- package/fesm2015/daffodil-customer-driver-testing.mjs +1 -1
- package/fesm2015/daffodil-customer-state-testing.mjs +59 -3
- package/fesm2015/daffodil-customer-state-testing.mjs.map +1 -1
- package/fesm2015/daffodil-customer-testing.mjs +1 -1
- package/fesm2015/daffodil-customer-testing.mjs.map +1 -1
- package/fesm2020/daffodil-customer-driver-magento-testing.mjs +2 -2
- package/fesm2020/daffodil-customer-driver-magento-testing.mjs.map +1 -1
- package/fesm2020/daffodil-customer-driver-magento.mjs +1 -11
- package/fesm2020/daffodil-customer-driver-magento.mjs.map +1 -1
- package/fesm2020/daffodil-customer-driver-testing.mjs +1 -1
- package/fesm2020/daffodil-customer-state-testing.mjs +59 -3
- package/fesm2020/daffodil-customer-state-testing.mjs.map +1 -1
- package/fesm2020/daffodil-customer-testing.mjs +1 -1
- package/fesm2020/daffodil-customer-testing.mjs.map +1 -1
- package/package.json +5 -5
- package/state/testing/factories/customer-address.factory.d.ts +21 -0
- package/state/testing/factories/public_api.d.ts +1 -0
- package/state/testing/mock-address-facade.d.ts +19 -0
- package/state/testing/public_api.d.ts +2 -0
- package/testing/factories/customer-address.factory.d.ts +3 -3
- package/testing/factories/customer.factory.d.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daffodil/customer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "A client-side Angular package for managing ecommerce customers agnostic to the ecommerce platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@angular/common": "^13.0.0",
|
|
17
17
|
"@angular/core": "^13.0.0",
|
|
18
|
-
"@daffodil/geography": "0.
|
|
19
|
-
"@daffodil/core": "0.
|
|
18
|
+
"@daffodil/geography": "0.53.0",
|
|
19
|
+
"@daffodil/core": "0.53.0",
|
|
20
20
|
"@ngrx/effects": "^13.0.0",
|
|
21
21
|
"@ngrx/store": "^13.0.0",
|
|
22
22
|
"rxjs": "7.5.5"
|
|
23
23
|
},
|
|
24
24
|
"optionalDependencies": {
|
|
25
25
|
"@apollo/client": "^3.0.0",
|
|
26
|
-
"@daffodil/driver": "0.
|
|
26
|
+
"@daffodil/driver": "0.53.0",
|
|
27
27
|
"apollo-angular": "^3.0.1",
|
|
28
|
-
"@faker-js/faker": "^
|
|
28
|
+
"@faker-js/faker": "^6.3.1"
|
|
29
29
|
},
|
|
30
30
|
"module": "fesm2015/daffodil-customer.mjs",
|
|
31
31
|
"es2020": "fesm2020/daffodil-customer.mjs",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DaffState } from '@daffodil/core/state';
|
|
2
|
+
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
+
import { DaffCustomerAddressEntity } from '@daffodil/customer/state';
|
|
4
|
+
import { MockDaffCustomerAddress } from '@daffodil/customer/testing';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Mock class for {@link DaffCustomerAddressEntity}.
|
|
8
|
+
*/
|
|
9
|
+
export declare class MockDaffCustomerAddressEntity extends MockDaffCustomerAddress implements DaffCustomerAddressEntity {
|
|
10
|
+
daffState: DaffState;
|
|
11
|
+
daffErrors: any[];
|
|
12
|
+
daffTemp: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Model factory for {@link DaffCustomerAddressEntity}.
|
|
16
|
+
*/
|
|
17
|
+
export declare class DaffCustomerAddressEntityFactory extends DaffModelFactory<DaffCustomerAddressEntity> {
|
|
18
|
+
constructor();
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerAddressEntityFactory, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCustomerAddressEntityFactory>;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './customer-address.factory';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Action } from '@ngrx/store';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { DaffStateError } from '@daffodil/core/state';
|
|
4
|
+
import { MockDaffOperationStateFacade } from '@daffodil/core/state/testing';
|
|
5
|
+
import { DaffCustomerAddressEntity, DaffCustomerAddressPageFacadeInterface } from '@daffodil/customer/state';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Mocks out facade fields and methods for testing purposes.
|
|
9
|
+
*
|
|
10
|
+
* @inheritdoc
|
|
11
|
+
*/
|
|
12
|
+
export declare class MockDaffCustomerAddressPageFacade extends MockDaffOperationStateFacade implements DaffCustomerAddressPageFacadeInterface {
|
|
13
|
+
addresses$: BehaviorSubject<DaffCustomerAddressEntity[]>;
|
|
14
|
+
errors$: BehaviorSubject<DaffStateError[]>;
|
|
15
|
+
getAddress(): import("rxjs").Observable<null>;
|
|
16
|
+
dispatch(action: Action): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffCustomerAddressPageFacade, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MockDaffCustomerAddressPageFacade>;
|
|
19
|
+
}
|
|
@@ -6,9 +6,9 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Mock class for {@link DaffCustomerAddress}.
|
|
7
7
|
*/
|
|
8
8
|
export declare class MockDaffCustomerAddress extends MockDaffPersonalAddress implements DaffCustomerAddress {
|
|
9
|
-
id:
|
|
10
|
-
defaultBilling:
|
|
11
|
-
defaultShipping:
|
|
9
|
+
id: string;
|
|
10
|
+
defaultBilling: boolean;
|
|
11
|
+
defaultShipping: boolean;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Model factory for {@link DaffCustomerAddress}.
|
|
@@ -7,11 +7,11 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class MockDaffCustomer implements DaffCustomer {
|
|
9
9
|
private addressFactory;
|
|
10
|
-
id:
|
|
11
|
-
email:
|
|
12
|
-
firstName:
|
|
13
|
-
lastName:
|
|
14
|
-
isSubscribed:
|
|
10
|
+
id: string;
|
|
11
|
+
email: string;
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
isSubscribed: boolean;
|
|
15
15
|
addresses: DaffCustomerAddress[];
|
|
16
16
|
constructor(addressFactory: DaffCustomerAddressFactory);
|
|
17
17
|
private createAddresses;
|