@daffodil/cart 0.94.1-rc.0 → 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-cart-driver-in-memory.mjs +1618 -1198
- package/fesm2022/daffodil-cart-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento-2.4.7-testing.mjs +546 -0
- package/fesm2022/daffodil-cart-driver-magento-2.4.7-testing.mjs.map +1 -0
- package/fesm2022/daffodil-cart-driver-magento-2.4.7.mjs +2607 -0
- package/fesm2022/daffodil-cart-driver-magento-2.4.7.mjs.map +1 -0
- package/fesm2022/daffodil-cart-driver-magento-auto-testing.mjs +7 -0
- package/fesm2022/daffodil-cart-driver-magento-auto-testing.mjs.map +1 -0
- package/fesm2022/daffodil-cart-driver-magento-auto.mjs +7 -0
- package/fesm2022/daffodil-cart-driver-magento-auto.mjs.map +1 -0
- package/fesm2022/daffodil-cart-driver-testing.mjs +553 -335
- package/fesm2022/daffodil-cart-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver.mjs +167 -292
- package/fesm2022/daffodil-cart-driver.mjs.map +1 -1
- package/fesm2022/daffodil-cart-routing.mjs +741 -542
- package/fesm2022/daffodil-cart-routing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-state-testing.mjs +288 -193
- package/fesm2022/daffodil-cart-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-state.mjs +2571 -2800
- package/fesm2022/daffodil-cart-state.mjs.map +1 -1
- package/fesm2022/daffodil-cart-testing.mjs +542 -357
- package/fesm2022/daffodil-cart-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart.mjs +131 -200
- package/fesm2022/daffodil-cart.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-cart-driver-in-memory.d.ts +273 -292
- package/types/daffodil-cart-driver-magento-2.4.7-testing.d.ts +176 -0
- package/types/daffodil-cart-driver-magento-2.4.7.d.ts +860 -0
- package/types/daffodil-cart-driver-magento-auto-testing.d.ts +1 -0
- package/types/daffodil-cart-driver-magento-auto.d.ts +1 -0
- package/types/daffodil-cart-driver-testing.d.ts +111 -118
- package/types/daffodil-cart-driver.d.ts +219 -262
- package/types/daffodil-cart-routing.d.ts +130 -149
- package/types/daffodil-cart-state-testing.d.ts +115 -114
- package/types/daffodil-cart-state.d.ts +1126 -1173
- package/types/daffodil-cart-testing.d.ts +146 -158
- package/types/daffodil-cart.d.ts +302 -321
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs +0 -332
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs.map +0 -1
- package/fesm2022/daffodil-cart-driver-magento.mjs +0 -2273
- package/fesm2022/daffodil-cart-driver-magento.mjs.map +0 -1
- package/types/daffodil-cart-driver-magento-testing.d.ts +0 -188
- package/types/daffodil-cart-driver-magento.d.ts +0 -999
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { MagentoCartAddress, MagentoCartAddressInput, MagentoCartCoupon, MagentoCartPaymentMethod, MagentoCartShippingMethod, MagentoCart, MagentoCartItem, MagentoCartItemTypeEnum, MagentoCartItemProduct, MagentoBundleCartItem, MagentoConfigurableCartItem, MagentoShippingAddress } from '@daffodil/cart/driver/magento';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { MagentoMoney, MagentoDiscount } from '@daffodil/driver/magento';
|
|
5
|
-
|
|
6
|
-
declare class MockMagentoCartAddress implements MagentoCartAddress {
|
|
7
|
-
__typename: string;
|
|
8
|
-
customer_address_id: number;
|
|
9
|
-
region: {
|
|
10
|
-
__typename: string;
|
|
11
|
-
region_id: number;
|
|
12
|
-
code: string;
|
|
13
|
-
};
|
|
14
|
-
country: {
|
|
15
|
-
__typename: string;
|
|
16
|
-
code: string;
|
|
17
|
-
label: string;
|
|
18
|
-
};
|
|
19
|
-
street: string[];
|
|
20
|
-
company: string;
|
|
21
|
-
telephone: string;
|
|
22
|
-
postcode: string;
|
|
23
|
-
city: string;
|
|
24
|
-
firstname: string;
|
|
25
|
-
lastname: string;
|
|
26
|
-
email: string;
|
|
27
|
-
}
|
|
28
|
-
declare class MagentoCartAddressFactory extends DaffModelFactory<MagentoCartAddress> {
|
|
29
|
-
constructor();
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartAddressFactory, never>;
|
|
31
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartAddressFactory>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
declare class MockMagentoCartAddressInput implements MagentoCartAddressInput {
|
|
35
|
-
region_id: number;
|
|
36
|
-
country_code: string;
|
|
37
|
-
street: string[];
|
|
38
|
-
company: string;
|
|
39
|
-
telephone: string;
|
|
40
|
-
postcode: string;
|
|
41
|
-
city: string;
|
|
42
|
-
firstname: string;
|
|
43
|
-
lastname: string;
|
|
44
|
-
save_in_address_book: boolean;
|
|
45
|
-
}
|
|
46
|
-
declare class MagentoCartAddressInputFactory extends DaffModelFactory<MagentoCartAddressInput> {
|
|
47
|
-
constructor();
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartAddressInputFactory, never>;
|
|
49
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartAddressInputFactory>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare class MockMagentoCartCoupon implements MagentoCartCoupon {
|
|
53
|
-
code: string;
|
|
54
|
-
}
|
|
55
|
-
declare class MagentoCartCouponFactory extends DaffModelFactory<MagentoCartCoupon> {
|
|
56
|
-
constructor();
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartCouponFactory, never>;
|
|
58
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartCouponFactory>;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
declare class MockMagentoCartPaymentMethod implements MagentoCartPaymentMethod {
|
|
62
|
-
code: string;
|
|
63
|
-
title: string;
|
|
64
|
-
purchase_order_number: string;
|
|
65
|
-
}
|
|
66
|
-
declare class MagentoCartPaymentMethodFactory extends DaffModelFactory<MagentoCartPaymentMethod> {
|
|
67
|
-
constructor();
|
|
68
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartPaymentMethodFactory, never>;
|
|
69
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartPaymentMethodFactory>;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
declare class MockCartShippingMethod implements MagentoCartShippingMethod {
|
|
73
|
-
carrier_code: string;
|
|
74
|
-
carrier_title: string;
|
|
75
|
-
method_title: string;
|
|
76
|
-
method_code: string;
|
|
77
|
-
amount: MagentoMoney;
|
|
78
|
-
private money;
|
|
79
|
-
}
|
|
80
|
-
declare class MagentoCartShippingMethodFactory extends DaffModelFactory<MagentoCartShippingMethod> {
|
|
81
|
-
constructor();
|
|
82
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartShippingMethodFactory, never>;
|
|
83
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartShippingMethodFactory>;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
declare class MockMagentoCart implements MagentoCart {
|
|
87
|
-
__typename: string;
|
|
88
|
-
id: string;
|
|
89
|
-
prices: {
|
|
90
|
-
__typename: string;
|
|
91
|
-
subtotal_excluding_tax: MagentoMoney;
|
|
92
|
-
grand_total: MagentoMoney;
|
|
93
|
-
subtotal_including_tax: MagentoMoney;
|
|
94
|
-
subtotal_with_discount_excluding_tax: MagentoMoney;
|
|
95
|
-
applied_taxes: {
|
|
96
|
-
__typename: string;
|
|
97
|
-
amount: MagentoMoney;
|
|
98
|
-
label: string;
|
|
99
|
-
}[];
|
|
100
|
-
discounts: {
|
|
101
|
-
__typename: string;
|
|
102
|
-
amount: MagentoMoney;
|
|
103
|
-
label: string;
|
|
104
|
-
}[];
|
|
105
|
-
};
|
|
106
|
-
applied_coupons: any[];
|
|
107
|
-
items: any[];
|
|
108
|
-
billing_address: any;
|
|
109
|
-
shipping_addresses: any[];
|
|
110
|
-
available_payment_methods: any[];
|
|
111
|
-
selected_payment_method: any;
|
|
112
|
-
email: string;
|
|
113
|
-
private money;
|
|
114
|
-
}
|
|
115
|
-
declare class MagentoCartFactory extends DaffModelFactory<MagentoCart> {
|
|
116
|
-
constructor();
|
|
117
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartFactory, never>;
|
|
118
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartFactory>;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
declare class MockMagentoCartItem implements MagentoCartItem {
|
|
122
|
-
__typename: MagentoCartItemTypeEnum;
|
|
123
|
-
id: string;
|
|
124
|
-
prices: {
|
|
125
|
-
__typename: string;
|
|
126
|
-
price: MagentoMoney;
|
|
127
|
-
row_total: MagentoMoney;
|
|
128
|
-
discounts: MagentoDiscount[];
|
|
129
|
-
};
|
|
130
|
-
product: MagentoCartItemProduct;
|
|
131
|
-
quantity: number;
|
|
132
|
-
private createProduct;
|
|
133
|
-
private money;
|
|
134
|
-
private discounts;
|
|
135
|
-
}
|
|
136
|
-
declare class MagentoCartItemFactory extends DaffModelFactory<MagentoCartItem> {
|
|
137
|
-
constructor();
|
|
138
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCartItemFactory, never>;
|
|
139
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCartItemFactory>;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
declare class MockMagentoBundleCartItem extends MockMagentoCartItem implements MagentoBundleCartItem {
|
|
143
|
-
__typename: MagentoCartItemTypeEnum;
|
|
144
|
-
bundle_options: {
|
|
145
|
-
id: number;
|
|
146
|
-
type: string;
|
|
147
|
-
label: string;
|
|
148
|
-
price: number;
|
|
149
|
-
quantity: number;
|
|
150
|
-
values: {
|
|
151
|
-
id: number;
|
|
152
|
-
label: string;
|
|
153
|
-
price: number;
|
|
154
|
-
quantity: number;
|
|
155
|
-
}[];
|
|
156
|
-
}[];
|
|
157
|
-
}
|
|
158
|
-
declare class MagentoBundleCartItemFactory extends DaffModelFactory<MagentoBundleCartItem> {
|
|
159
|
-
constructor();
|
|
160
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoBundleCartItemFactory, never>;
|
|
161
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoBundleCartItemFactory>;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
declare class MockMagentoConfigurableCartItem extends MockMagentoCartItem implements MagentoConfigurableCartItem {
|
|
165
|
-
__typename: MagentoCartItemTypeEnum;
|
|
166
|
-
configurable_options: {
|
|
167
|
-
option_label: string;
|
|
168
|
-
value_label: string;
|
|
169
|
-
}[];
|
|
170
|
-
}
|
|
171
|
-
declare class MagentoConfigurableCartItemFactory extends DaffModelFactory<MagentoConfigurableCartItem> {
|
|
172
|
-
constructor();
|
|
173
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoConfigurableCartItemFactory, never>;
|
|
174
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoConfigurableCartItemFactory>;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
declare class MockMagentoShippingAddress extends MockMagentoCartAddress implements MagentoShippingAddress {
|
|
178
|
-
__typename: string;
|
|
179
|
-
available_shipping_methods: any[];
|
|
180
|
-
selected_shipping_method: any;
|
|
181
|
-
}
|
|
182
|
-
declare class MagentoShippingAddressFactory extends DaffModelFactory<MagentoShippingAddress> {
|
|
183
|
-
constructor();
|
|
184
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoShippingAddressFactory, never>;
|
|
185
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoShippingAddressFactory>;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export { MagentoBundleCartItemFactory, MagentoCartAddressFactory, MagentoCartAddressInputFactory, MagentoCartCouponFactory, MagentoCartFactory, MagentoCartItemFactory, MagentoCartPaymentMethodFactory, MagentoCartShippingMethodFactory, MagentoConfigurableCartItemFactory, MagentoShippingAddressFactory, MockCartShippingMethod, MockMagentoBundleCartItem, MockMagentoCart, MockMagentoCartAddress, MockMagentoCartAddressInput, MockMagentoCartCoupon, MockMagentoCartItem, MockMagentoCartPaymentMethod, MockMagentoConfigurableCartItem, MockMagentoShippingAddress };
|