@daffodil/cart 0.91.0 → 0.92.3-rc.1
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 +73 -73
- package/fesm2022/daffodil-cart-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs +34 -34
- package/fesm2022/daffodil-cart-driver-magento-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-magento.mjs +82 -85
- package/fesm2022/daffodil-cart-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver-testing.mjs +37 -37
- package/fesm2022/daffodil-cart-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-driver.mjs +3 -3
- package/fesm2022/daffodil-cart-driver.mjs.map +1 -1
- package/fesm2022/daffodil-cart-routing.mjs +37 -37
- package/fesm2022/daffodil-cart-routing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-state-testing.mjs +16 -16
- package/fesm2022/daffodil-cart-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart-state.mjs +54 -79
- package/fesm2022/daffodil-cart-state.mjs.map +1 -1
- package/fesm2022/daffodil-cart-testing.mjs +27 -28
- package/fesm2022/daffodil-cart-testing.mjs.map +1 -1
- package/fesm2022/daffodil-cart.mjs +3 -3
- package/fesm2022/daffodil-cart.mjs.map +1 -1
- package/index.d.ts +0 -5
- package/package.json +1 -1
- package/testing/index.d.ts +0 -1
|
@@ -45,13 +45,12 @@ class DaffMagentoCartAddressTransformer {
|
|
|
45
45
|
suffix: null,
|
|
46
46
|
middlename: null,
|
|
47
47
|
prefix: null,
|
|
48
|
-
address_type: null,
|
|
49
48
|
} : null;
|
|
50
49
|
}
|
|
51
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
52
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
50
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartAddressTransformer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
51
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartAddressTransformer, providedIn: 'root' }); }
|
|
53
52
|
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartAddressTransformer, decorators: [{
|
|
55
54
|
type: Injectable,
|
|
56
55
|
args: [{
|
|
57
56
|
providedIn: 'root',
|
|
@@ -71,15 +70,14 @@ class DaffMagentoBillingAddressTransformer {
|
|
|
71
70
|
* @param address the address from a magento cart query.
|
|
72
71
|
*/
|
|
73
72
|
transform(address) {
|
|
74
|
-
return address
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
} : null;
|
|
73
|
+
return address
|
|
74
|
+
? this.addressTransformer.transform(address)
|
|
75
|
+
: null;
|
|
78
76
|
}
|
|
79
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
80
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
77
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoBillingAddressTransformer, deps: [{ token: DaffMagentoCartAddressTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
78
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoBillingAddressTransformer, providedIn: 'root' }); }
|
|
81
79
|
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoBillingAddressTransformer, decorators: [{
|
|
83
81
|
type: Injectable,
|
|
84
82
|
args: [{
|
|
85
83
|
providedIn: 'root',
|
|
@@ -204,10 +202,10 @@ class DaffMagentoCartPaymentTransformer {
|
|
|
204
202
|
method: responsePayment.code,
|
|
205
203
|
} : null;
|
|
206
204
|
}
|
|
207
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
208
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
205
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartPaymentTransformer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
206
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartPaymentTransformer, providedIn: 'root' }); }
|
|
209
207
|
}
|
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartPaymentTransformer, decorators: [{
|
|
211
209
|
type: Injectable,
|
|
212
210
|
args: [{
|
|
213
211
|
providedIn: 'root',
|
|
@@ -235,10 +233,10 @@ class DaffMagentoCartShippingRateTransformer {
|
|
|
235
233
|
method_description: null,
|
|
236
234
|
} : null;
|
|
237
235
|
}
|
|
238
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
239
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
236
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingRateTransformer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
237
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingRateTransformer, providedIn: 'root' }); }
|
|
240
238
|
}
|
|
241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingRateTransformer, decorators: [{
|
|
242
240
|
type: Injectable,
|
|
243
241
|
args: [{
|
|
244
242
|
providedIn: 'root',
|
|
@@ -319,15 +317,14 @@ class DaffMagentoShippingAddressTransformer {
|
|
|
319
317
|
* @param address the address from a magento cart query.
|
|
320
318
|
*/
|
|
321
319
|
transform(address) {
|
|
322
|
-
return address
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
} : null;
|
|
320
|
+
return address
|
|
321
|
+
? this.addressTransformer.transform(address)
|
|
322
|
+
: null;
|
|
326
323
|
}
|
|
327
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
328
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
324
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoShippingAddressTransformer, deps: [{ token: DaffMagentoCartAddressTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
325
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoShippingAddressTransformer, providedIn: 'root' }); }
|
|
329
326
|
}
|
|
330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoShippingAddressTransformer, decorators: [{
|
|
331
328
|
type: Injectable,
|
|
332
329
|
args: [{
|
|
333
330
|
providedIn: 'root',
|
|
@@ -486,10 +483,10 @@ class DaffMagentoCartTransformer {
|
|
|
486
483
|
id: cart.id,
|
|
487
484
|
}) : null;
|
|
488
485
|
}
|
|
489
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
490
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
486
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartTransformer, deps: [{ token: DaffMagentoShippingAddressTransformer }, { token: DaffMagentoBillingAddressTransformer }, { token: DaffMagentoCartPaymentTransformer }, { token: DaffMagentoCartShippingRateTransformer }, { token: DAFF_CART_MAGENTO_CART_ITEM_TRANSFORMS }, { token: DAFF_CART_MAGENTO_CART_TRANSFORMS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
487
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartTransformer, providedIn: 'root' }); }
|
|
491
488
|
}
|
|
492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartTransformer, decorators: [{
|
|
493
490
|
type: Injectable,
|
|
494
491
|
args: [{
|
|
495
492
|
providedIn: 'root',
|
|
@@ -520,10 +517,10 @@ class DaffMagentoCartAddressInputTransformer {
|
|
|
520
517
|
telephone: cartAddress.telephone,
|
|
521
518
|
};
|
|
522
519
|
}
|
|
523
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
524
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
520
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartAddressInputTransformer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
521
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartAddressInputTransformer, providedIn: 'root' }); }
|
|
525
522
|
}
|
|
526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartAddressInputTransformer, decorators: [{
|
|
527
524
|
type: Injectable,
|
|
528
525
|
args: [{
|
|
529
526
|
providedIn: 'root',
|
|
@@ -545,10 +542,10 @@ class DaffMagentoShippingAddressInputTransformer {
|
|
|
545
542
|
customer_address_id: null,
|
|
546
543
|
};
|
|
547
544
|
}
|
|
548
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
549
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
545
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoShippingAddressInputTransformer, deps: [{ token: DaffMagentoCartAddressInputTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
546
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoShippingAddressInputTransformer, providedIn: 'root' }); }
|
|
550
547
|
}
|
|
551
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoShippingAddressInputTransformer, decorators: [{
|
|
552
549
|
type: Injectable,
|
|
553
550
|
args: [{
|
|
554
551
|
providedIn: 'root',
|
|
@@ -570,10 +567,10 @@ class DaffMagentoBillingAddressInputTransformer {
|
|
|
570
567
|
customer_address_id: null,
|
|
571
568
|
};
|
|
572
569
|
}
|
|
573
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
574
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
570
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoBillingAddressInputTransformer, deps: [{ token: DaffMagentoCartAddressInputTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
571
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoBillingAddressInputTransformer, providedIn: 'root' }); }
|
|
575
572
|
}
|
|
576
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoBillingAddressInputTransformer, decorators: [{
|
|
577
574
|
type: Injectable,
|
|
578
575
|
args: [{
|
|
579
576
|
providedIn: 'root',
|
|
@@ -587,10 +584,10 @@ class DaffMagentoCartItemUpdateInputTransformer {
|
|
|
587
584
|
cart_item_id: Number(item.id),
|
|
588
585
|
};
|
|
589
586
|
}
|
|
590
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
591
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
587
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartItemUpdateInputTransformer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
588
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartItemUpdateInputTransformer, providedIn: 'root' }); }
|
|
592
589
|
}
|
|
593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartItemUpdateInputTransformer, decorators: [{
|
|
594
591
|
type: Injectable,
|
|
595
592
|
args: [{
|
|
596
593
|
providedIn: 'root',
|
|
@@ -603,10 +600,10 @@ class DaffMagentoPaymentMethodInputTransformer {
|
|
|
603
600
|
...payment.payment_info,
|
|
604
601
|
};
|
|
605
602
|
}
|
|
606
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
607
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
603
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoPaymentMethodInputTransformer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
604
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoPaymentMethodInputTransformer, providedIn: 'root' }); }
|
|
608
605
|
}
|
|
609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoPaymentMethodInputTransformer, decorators: [{
|
|
610
607
|
type: Injectable,
|
|
611
608
|
args: [{
|
|
612
609
|
providedIn: 'root',
|
|
@@ -620,10 +617,10 @@ class DaffMagentoShippingMethodInputTransformer {
|
|
|
620
617
|
method_code: method.method_code,
|
|
621
618
|
};
|
|
622
619
|
}
|
|
623
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
624
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
620
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoShippingMethodInputTransformer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
621
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoShippingMethodInputTransformer, providedIn: 'root' }); }
|
|
625
622
|
}
|
|
626
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoShippingMethodInputTransformer, decorators: [{
|
|
627
624
|
type: Injectable,
|
|
628
625
|
args: [{
|
|
629
626
|
providedIn: 'root',
|
|
@@ -1513,10 +1510,10 @@ class DaffMagentoCartService {
|
|
|
1513
1510
|
: throwError(() => resp.errors.filter((err) => !err.recoverable)[0])));
|
|
1514
1511
|
}
|
|
1515
1512
|
;
|
|
1516
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1517
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1513
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartService, deps: [{ token: i1.Apollo }, { token: DAFF_MAGENTO_CART_MUTATION_QUEUE }, { token: DaffMagentoCartTransformer }, { token: DaffCartItemDriver }, { token: DAFF_CART_MAGENTO_EXTRA_CART_FRAGMENTS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1514
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartService, providedIn: 'root' }); }
|
|
1518
1515
|
}
|
|
1519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartService, decorators: [{
|
|
1520
1517
|
type: Injectable,
|
|
1521
1518
|
args: [{
|
|
1522
1519
|
providedIn: 'root',
|
|
@@ -1630,10 +1627,10 @@ class DaffMagentoCartItemService {
|
|
|
1630
1627
|
? throwError(() => magentoCartTransformUserError(result.data.addProductsToCart.user_errors[0]))
|
|
1631
1628
|
: of(this.cartTransformer.transform(result.data.addProductsToCart.cart))), catchError(err => throwError(() => transformCartMagentoError(err))));
|
|
1632
1629
|
}
|
|
1633
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1634
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1630
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartItemService, deps: [{ token: i1.Apollo }, { token: DAFF_MAGENTO_CART_MUTATION_QUEUE }, { token: DAFF_CART_MAGENTO_EXTRA_CART_FRAGMENTS }, { token: DAFF_CART_MAGENTO_CART_ITEM_TRANSFORMS }, { token: DaffMagentoCartTransformer }, { token: DaffMagentoCartItemUpdateInputTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1631
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartItemService, providedIn: 'root' }); }
|
|
1635
1632
|
}
|
|
1636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartItemService, decorators: [{
|
|
1637
1634
|
type: Injectable,
|
|
1638
1635
|
args: [{
|
|
1639
1636
|
providedIn: 'root',
|
|
@@ -1721,10 +1718,10 @@ class DaffMagentoCartPaymentService {
|
|
|
1721
1718
|
fetchPolicy: 'network-only',
|
|
1722
1719
|
}).pipe(map(resp => this.cartTransformer.transform(resp.data.setGuestEmailOnCart.cart)), catchError(error => throwError(() => transformCartMagentoError(error))));
|
|
1723
1720
|
}
|
|
1724
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1725
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1721
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartPaymentService, deps: [{ token: i1.Apollo }, { token: DAFF_MAGENTO_CART_MUTATION_QUEUE }, { token: DaffMagentoCartTransformer }, { token: DaffMagentoCartPaymentTransformer }, { token: DaffMagentoPaymentMethodInputTransformer }, { token: DaffMagentoBillingAddressInputTransformer }, { token: DAFF_CART_MAGENTO_EXTRA_CART_FRAGMENTS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1722
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartPaymentService, providedIn: 'root' }); }
|
|
1726
1723
|
}
|
|
1727
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartPaymentService, decorators: [{
|
|
1728
1725
|
type: Injectable,
|
|
1729
1726
|
args: [{
|
|
1730
1727
|
providedIn: 'root',
|
|
@@ -1755,10 +1752,10 @@ class DaffMagentoCartPaymentMethodsService {
|
|
|
1755
1752
|
fetchPolicy: 'network-only',
|
|
1756
1753
|
}).pipe(map(result => result.data.cart.available_payment_methods.map(item => this.paymentTransformer.transform(item))), catchError(error => throwError(() => transformCartMagentoError(error))));
|
|
1757
1754
|
}
|
|
1758
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1759
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1755
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartPaymentMethodsService, deps: [{ token: i1.Apollo }, { token: DAFF_CART_MAGENTO_EXTRA_CART_FRAGMENTS }, { token: DaffMagentoCartPaymentTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1756
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartPaymentMethodsService, providedIn: 'root' }); }
|
|
1760
1757
|
}
|
|
1761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartPaymentMethodsService, decorators: [{
|
|
1762
1759
|
type: Injectable,
|
|
1763
1760
|
args: [{
|
|
1764
1761
|
providedIn: 'root',
|
|
@@ -1813,10 +1810,10 @@ class DaffMagentoCartAddressService {
|
|
|
1813
1810
|
fetchPolicy: 'network-only',
|
|
1814
1811
|
}).pipe(map(resp => this.cartTransformer.transform(resp.data.setGuestEmailOnCart.cart)), catchError(error => throwError(() => transformCartMagentoError(error))));
|
|
1815
1812
|
}
|
|
1816
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1817
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1813
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartAddressService, deps: [{ token: DAFF_MAGENTO_CART_MUTATION_QUEUE }, { token: DAFF_CART_MAGENTO_EXTRA_CART_FRAGMENTS }, { token: DaffMagentoCartTransformer }, { token: DaffMagentoCartAddressInputTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1814
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartAddressService, providedIn: 'root' }); }
|
|
1818
1815
|
}
|
|
1819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1816
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartAddressService, decorators: [{
|
|
1820
1817
|
type: Injectable,
|
|
1821
1818
|
args: [{
|
|
1822
1819
|
providedIn: 'root',
|
|
@@ -1882,10 +1879,10 @@ class DaffMagentoCartBillingAddressService {
|
|
|
1882
1879
|
email: resp.data.setGuestEmailOnCart.cart.email,
|
|
1883
1880
|
})), catchError(error => throwError(() => transformCartMagentoError(error))));
|
|
1884
1881
|
}
|
|
1885
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1886
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1882
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartBillingAddressService, deps: [{ token: i1.Apollo }, { token: DAFF_MAGENTO_CART_MUTATION_QUEUE }, { token: DAFF_CART_MAGENTO_EXTRA_CART_FRAGMENTS }, { token: DaffMagentoCartTransformer }, { token: DaffMagentoBillingAddressTransformer }, { token: DaffMagentoBillingAddressInputTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1883
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartBillingAddressService, providedIn: 'root' }); }
|
|
1887
1884
|
}
|
|
1888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartBillingAddressService, decorators: [{
|
|
1889
1886
|
type: Injectable,
|
|
1890
1887
|
args: [{
|
|
1891
1888
|
providedIn: 'root',
|
|
@@ -1951,10 +1948,10 @@ class DaffMagentoCartShippingAddressService {
|
|
|
1951
1948
|
email: resp.data.setGuestEmailOnCart.cart.email,
|
|
1952
1949
|
})), catchError(error => throwError(() => transformCartMagentoError(error))));
|
|
1953
1950
|
}
|
|
1954
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1955
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1951
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingAddressService, deps: [{ token: i1.Apollo }, { token: DAFF_MAGENTO_CART_MUTATION_QUEUE }, { token: DAFF_CART_MAGENTO_EXTRA_CART_FRAGMENTS }, { token: DaffMagentoCartTransformer }, { token: DaffMagentoShippingAddressTransformer }, { token: DaffMagentoShippingAddressInputTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1952
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingAddressService, providedIn: 'root' }); }
|
|
1956
1953
|
}
|
|
1957
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingAddressService, decorators: [{
|
|
1958
1955
|
type: Injectable,
|
|
1959
1956
|
args: [{
|
|
1960
1957
|
providedIn: 'root',
|
|
@@ -1985,10 +1982,10 @@ class DaffMagentoCartShippingMethodsService {
|
|
|
1985
1982
|
fetchPolicy: 'network-only',
|
|
1986
1983
|
}).pipe(map(result => result.data.cart.shipping_addresses[0].available_shipping_methods.map(item => this.shippingRateTransformer.transform(item))), catchError(error => throwError(() => transformCartMagentoError(error))));
|
|
1987
1984
|
}
|
|
1988
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1989
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1985
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingMethodsService, deps: [{ token: i1.Apollo }, { token: DAFF_CART_MAGENTO_EXTRA_CART_FRAGMENTS }, { token: DaffMagentoCartShippingRateTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1986
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingMethodsService, providedIn: 'root' }); }
|
|
1990
1987
|
}
|
|
1991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingMethodsService, decorators: [{
|
|
1992
1989
|
type: Injectable,
|
|
1993
1990
|
args: [{
|
|
1994
1991
|
providedIn: 'root',
|
|
@@ -2054,10 +2051,10 @@ class DaffMagentoCartShippingInformationService {
|
|
|
2054
2051
|
},
|
|
2055
2052
|
}).pipe(map(result => this.cartTransformer.transform(result.data.setShippingMethodsOnCart.cart)), catchError(error => throwError(() => transformCartMagentoError(error))));
|
|
2056
2053
|
}
|
|
2057
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2058
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2054
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingInformationService, deps: [{ token: i1.Apollo }, { token: DAFF_MAGENTO_CART_MUTATION_QUEUE }, { token: DAFF_CART_MAGENTO_EXTRA_CART_FRAGMENTS }, { token: DaffMagentoCartTransformer }, { token: DaffMagentoCartShippingRateTransformer }, { token: DaffMagentoShippingMethodInputTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2055
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingInformationService, providedIn: 'root' }); }
|
|
2059
2056
|
}
|
|
2060
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartShippingInformationService, decorators: [{
|
|
2061
2058
|
type: Injectable,
|
|
2062
2059
|
args: [{
|
|
2063
2060
|
providedIn: 'root',
|
|
@@ -2112,10 +2109,10 @@ class DaffMagentoCartCouponService {
|
|
|
2112
2109
|
fetchPolicy: 'network-only',
|
|
2113
2110
|
}).pipe(map(result => this.cartTransformer.transform(result.data.removeCouponFromCart.cart)), catchError(err => throwError(() => transformCartMagentoError(err))));
|
|
2114
2111
|
}
|
|
2115
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2116
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2112
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartCouponService, deps: [{ token: DAFF_MAGENTO_CART_MUTATION_QUEUE }, { token: DAFF_CART_MAGENTO_EXTRA_CART_FRAGMENTS }, { token: DaffMagentoCartTransformer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2113
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartCouponService, providedIn: 'root' }); }
|
|
2117
2114
|
}
|
|
2118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartCouponService, decorators: [{
|
|
2119
2116
|
type: Injectable,
|
|
2120
2117
|
args: [{
|
|
2121
2118
|
providedIn: 'root',
|
|
@@ -2150,10 +2147,10 @@ class DaffMagentoCartOrderService {
|
|
|
2150
2147
|
cartId,
|
|
2151
2148
|
})), catchError(err => throwError(() => transformCartMagentoError(err))));
|
|
2152
2149
|
}
|
|
2153
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2154
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2150
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartOrderService, deps: [{ token: DAFF_MAGENTO_CART_MUTATION_QUEUE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2151
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartOrderService, providedIn: 'root' }); }
|
|
2155
2152
|
}
|
|
2156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartOrderService, decorators: [{
|
|
2157
2154
|
type: Injectable,
|
|
2158
2155
|
args: [{
|
|
2159
2156
|
providedIn: 'root',
|
|
@@ -2196,10 +2193,10 @@ class DaffMagentoCartCouponResponseTransformer {
|
|
|
2196
2193
|
id: cart.id,
|
|
2197
2194
|
} : null;
|
|
2198
2195
|
}
|
|
2199
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2200
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2196
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartCouponResponseTransformer, deps: [{ token: DAFF_CART_MAGENTO_CART_ITEM_TRANSFORMS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2197
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartCouponResponseTransformer, providedIn: 'root' }); }
|
|
2201
2198
|
}
|
|
2202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffMagentoCartCouponResponseTransformer, decorators: [{
|
|
2203
2200
|
type: Injectable,
|
|
2204
2201
|
args: [{
|
|
2205
2202
|
providedIn: 'root',
|
|
@@ -2249,11 +2246,11 @@ class DaffCartMagentoDriverModule {
|
|
|
2249
2246
|
],
|
|
2250
2247
|
};
|
|
2251
2248
|
}
|
|
2252
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2253
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
2254
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
2249
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffCartMagentoDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2250
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: DaffCartMagentoDriverModule, imports: [CommonModule] }); }
|
|
2251
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffCartMagentoDriverModule, imports: [CommonModule] }); }
|
|
2255
2252
|
}
|
|
2256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffCartMagentoDriverModule, decorators: [{
|
|
2257
2254
|
type: NgModule,
|
|
2258
2255
|
args: [{
|
|
2259
2256
|
imports: [
|