@daffodil/order 0.94.1 → 0.95.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/fesm2022/daffodil-order-driver-in-memory.mjs +191 -159
- package/fesm2022/daffodil-order-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-order-driver-magento-2.4.0-testing.mjs +0 -4
- package/fesm2022/daffodil-order-driver-magento-2.4.0.mjs +288 -297
- package/fesm2022/daffodil-order-driver-magento-2.4.0.mjs.map +1 -1
- package/fesm2022/daffodil-order-driver-magento-2.4.1-testing.mjs +813 -424
- package/fesm2022/daffodil-order-driver-magento-2.4.1-testing.mjs.map +1 -1
- package/fesm2022/daffodil-order-driver-magento-2.4.1.mjs +370 -428
- package/fesm2022/daffodil-order-driver-magento-2.4.1.mjs.map +1 -1
- package/fesm2022/daffodil-order-driver-magento-auto-testing.mjs +7 -0
- package/fesm2022/daffodil-order-driver-magento-auto-testing.mjs.map +1 -0
- package/fesm2022/daffodil-order-driver-magento-auto.mjs +7 -0
- package/fesm2022/daffodil-order-driver-magento-auto.mjs.map +1 -0
- package/fesm2022/daffodil-order-driver-testing.mjs +113 -74
- package/fesm2022/daffodil-order-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-order-driver.mjs +18 -29
- package/fesm2022/daffodil-order-driver.mjs.map +1 -1
- package/fesm2022/daffodil-order-state-testing.mjs +147 -111
- package/fesm2022/daffodil-order-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-order-state.mjs +547 -546
- package/fesm2022/daffodil-order-state.mjs.map +1 -1
- package/fesm2022/daffodil-order-testing.mjs +841 -470
- package/fesm2022/daffodil-order-testing.mjs.map +1 -1
- package/fesm2022/daffodil-order.mjs +12 -17
- package/fesm2022/daffodil-order.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-order-driver-in-memory.d.ts +53 -51
- package/types/daffodil-order-driver-magento-2.4.0-testing.d.ts +1 -2
- package/types/daffodil-order-driver-magento-2.4.0.d.ts +142 -158
- package/types/daffodil-order-driver-magento-2.4.1-testing.d.ts +238 -258
- package/types/daffodil-order-driver-magento-2.4.1.d.ts +205 -234
- package/types/daffodil-order-driver-magento-auto-testing.d.ts +1 -0
- package/types/daffodil-order-driver-magento-auto.d.ts +1 -0
- package/types/daffodil-order-driver-testing.d.ts +27 -24
- package/types/daffodil-order-driver.d.ts +23 -31
- package/types/daffodil-order-state-testing.d.ts +52 -47
- package/types/daffodil-order-state.d.ts +293 -317
- package/types/daffodil-order-testing.d.ts +228 -246
- package/types/daffodil-order.d.ts +141 -158
- package/fesm2022/daffodil-order-driver-magento-2.4.0-testing.mjs.map +0 -1
|
@@ -1,52 +1,57 @@
|
|
|
1
|
-
import { Dictionary } from
|
|
2
|
-
import { Action } from
|
|
3
|
-
import { BehaviorSubject } from
|
|
4
|
-
import {
|
|
5
|
-
import { DaffOrder, DaffOrderTotal } from
|
|
6
|
-
import { DaffOrderFacadeInterface } from
|
|
7
|
-
import * as i0 from
|
|
8
|
-
|
|
1
|
+
import { Dictionary } from "@ngrx/entity";
|
|
2
|
+
import { Action } from "@ngrx/store";
|
|
3
|
+
import { BehaviorSubject } from "rxjs";
|
|
4
|
+
import { DaffState, DaffStateError } from "@daffodil/core/state";
|
|
5
|
+
import { DaffOrder, DaffOrderTotal } from "@daffodil/order";
|
|
6
|
+
import { DaffOrderFacadeInterface } from "@daffodil/order/state";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import { EnvironmentProviders } from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* @inheritdoc
|
|
11
11
|
*/
|
|
12
|
-
declare class MockDaffOrderFacade implements DaffOrderFacadeInterface {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
12
|
+
export declare class MockDaffOrderFacade implements DaffOrderFacadeInterface {
|
|
13
|
+
loading$: BehaviorSubject<boolean>;
|
|
14
|
+
errors$: BehaviorSubject<DaffStateError[]>;
|
|
15
|
+
loadingState$: BehaviorSubject<DaffState>;
|
|
16
|
+
resolving$: BehaviorSubject<boolean>;
|
|
17
|
+
mutating$: BehaviorSubject<boolean>;
|
|
18
|
+
hasErrors$: BehaviorSubject<boolean>;
|
|
19
|
+
orders$: BehaviorSubject<DaffOrder[]>;
|
|
20
|
+
orderIds$: BehaviorSubject<DaffOrder['id'][]>;
|
|
21
|
+
orderCount$: BehaviorSubject<number>;
|
|
22
|
+
orderEntities$: BehaviorSubject<Dictionary<DaffOrder>>;
|
|
23
|
+
placedOrder$: BehaviorSubject<DaffOrder>;
|
|
24
|
+
hasPlacedOrder$: BehaviorSubject<boolean>;
|
|
25
|
+
getOrder$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder>;
|
|
26
|
+
getTotals$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['totals']>;
|
|
27
|
+
getAppliedCodes$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['applied_codes']>;
|
|
28
|
+
getItems$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['items']>;
|
|
29
|
+
getBillingAddresses$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['billing_addresses']>;
|
|
30
|
+
getShippingAddresses$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['shipping_addresses']>;
|
|
31
|
+
getShipments$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['shipments']>;
|
|
32
|
+
getPayment$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['payment']>;
|
|
33
|
+
getInvoices$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['invoices']>;
|
|
34
|
+
getCredits$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['credits']>;
|
|
35
|
+
getGrandTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal>;
|
|
36
|
+
getSubtotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal>;
|
|
37
|
+
getShippingTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal>;
|
|
38
|
+
getDiscountTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal>;
|
|
39
|
+
hasDiscount$(orderId: DaffOrder['id']): BehaviorSubject<boolean>;
|
|
40
|
+
getTaxTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal>;
|
|
41
|
+
dispatch(action: Action): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffOrderFacade, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated in favor of {@link provideDaffOrderStateTesting} Deprecated in version 0.95.0. Will be removed in version 0.98.0.
|
|
47
|
+
*/
|
|
48
|
+
export declare class DaffOrderStateTestingModule {
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderStateTestingModule, never>;
|
|
50
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderStateTestingModule, never, never, never>;
|
|
51
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderStateTestingModule>;
|
|
50
52
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Provides {@link MockDaffOrderFacade} and {@link MockDaffCollectionFacade} in place of
|
|
55
|
+
* {@link DaffOrderFacade} and {@link DaffOrderCollectionFacade}.
|
|
56
|
+
*/
|
|
57
|
+
export declare const provideDaffOrderStateTesting: () => EnvironmentProviders;
|