@daffodil/product 0.63.1 → 0.64.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/transforms/product-transformers.d.ts +1 -1
- package/esm2020/driver/in-memory/backend/product.service.mjs +3 -3
- package/esm2020/driver/in-memory/driver/product-driver.module.mjs +6 -8
- package/esm2020/driver/in-memory/driver/product.service.mjs +3 -3
- package/esm2020/driver/in-memory/injection-tokens/transforms/product-response/response.token.mjs +1 -1
- package/esm2020/driver/magento/injection-tokens/transforms/product/token.mjs +2 -2
- package/esm2020/driver/magento/injection-tokens/transforms/product-preview/preview.token.mjs +2 -2
- package/esm2020/driver/magento/injection-tokens/transforms/product-response/response.token.mjs +2 -2
- package/esm2020/driver/magento/product-driver.module.mjs +5 -7
- package/esm2020/driver/magento/product.service.mjs +3 -3
- package/esm2020/driver/magento/testing/factories/aggregation/aggregation.factory.mjs +3 -3
- package/esm2020/driver/magento/testing/factories/aggregation/type/price.factory.mjs +3 -3
- package/esm2020/driver/magento/testing/factories/aggregation/type/select.factory.mjs +3 -3
- package/esm2020/driver/magento/testing/factories/core/product-preview.factory.mjs +3 -3
- package/esm2020/driver/magento/testing/factories/core/product.factory.mjs +3 -3
- package/esm2020/driver/magento/testing/factories/filter-type-field.factory.mjs +3 -3
- package/esm2020/driver/magento/testing/factories/simple/simple.factory.mjs +3 -3
- package/esm2020/driver/magento/testing/factories/sort-fields.factory.mjs +3 -3
- package/esm2020/driver/magento/transforms/aggregate/add-metadata-types-to-aggregates.mjs +1 -1
- package/esm2020/driver/magento/transforms/aggregate/transform.mjs +2 -2
- package/esm2020/driver/magento/transforms/applied-filter-transformer.service.mjs +3 -3
- package/esm2020/driver/magento/transforms/collection-metadata.mjs +1 -1
- package/esm2020/driver/magento/transforms/product-response.mjs +3 -3
- package/esm2020/driver/magento/transforms/product-transformers.mjs +4 -4
- package/esm2020/driver/magento/transforms/simple-product-transformers.mjs +3 -3
- package/esm2020/driver/shopify/product-driver.module.mjs +5 -7
- package/esm2020/driver/shopify/product.service.mjs +3 -3
- package/esm2020/driver/testing/drivers/product-driver.module.mjs +6 -8
- package/esm2020/driver/testing/drivers/product.service.mjs +3 -3
- package/esm2020/routing/module.mjs +4 -4
- package/esm2020/routing/resolvers/product-page/product-page.resolver.mjs +3 -3
- package/esm2020/routing/resolvers/product-page-id/product-page-id.resolver.mjs +3 -3
- package/esm2020/routing/resolvers/product-page-url/product-page-url.resolver.mjs +3 -3
- package/esm2020/routing/services/get-query-params-from-request.service.mjs +3 -3
- package/esm2020/routing/services/get-request-from-route.service.mjs +3 -3
- package/esm2020/state/effects/best-seller.effects.mjs +3 -3
- package/esm2020/state/effects/product-grid.effects.mjs +3 -3
- package/esm2020/state/effects/product-page.effects.mjs +3 -3
- package/esm2020/state/effects/product.effects.mjs +3 -3
- package/esm2020/state/facades/best-sellers/best-sellers.facade.mjs +3 -3
- package/esm2020/state/facades/product/product.facade.mjs +4 -4
- package/esm2020/state/facades/product-grid/product-grid.facade.mjs +4 -4
- package/esm2020/state/facades/product-page/facade.mjs +4 -4
- package/esm2020/state/product-state.module.mjs +11 -13
- package/esm2020/state/reducers/best-sellers/best-sellers.reducer.mjs +1 -1
- package/esm2020/state/reducers/injection-tokens/config.token.mjs +1 -1
- package/esm2020/state/reducers/injection-tokens/reducers.token.mjs +2 -2
- package/esm2020/state/reducers/product/product.reducer.mjs +1 -1
- package/esm2020/state/reducers/product-entities/product-entities.reducer.mjs +2 -2
- package/esm2020/state/reducers/product-grid/product-grid.reducer.mjs +1 -1
- package/esm2020/state/reducers/product-reducers-state.interface.mjs +1 -1
- package/esm2020/state/reducers/product-reducers.mjs +2 -2
- package/esm2020/state/selectors/all-selectors.selectors.mjs +2 -2
- package/esm2020/state/selectors/product/product.selectors.mjs +1 -1
- package/esm2020/state/testing/mock-best-sellers.facade.mjs +3 -3
- package/esm2020/state/testing/mock-product-facade.mjs +3 -3
- package/esm2020/state/testing/mock-product-grid-facade.mjs +3 -3
- package/esm2020/state/testing/mock-product-page-facade.mjs +5 -5
- package/esm2020/state/testing/product-testing.module.mjs +4 -4
- package/esm2020/testing/factories/collection.factory.mjs +3 -3
- package/esm2020/testing/factories/default-product.factory.mjs +3 -3
- package/esm2020/testing/factories/extension.factory.mjs +5 -5
- package/esm2020/testing/factories/kind.factory.mjs +5 -5
- package/esm2020/testing/factories/product-image.factory.mjs +3 -3
- package/esm2020/testing/testing.module.mjs +4 -4
- package/fesm2015/daffodil-product-driver-in-memory.mjs +11 -13
- package/fesm2015/daffodil-product-driver-in-memory.mjs.map +1 -1
- package/fesm2015/daffodil-product-driver-magento-testing.mjs +24 -24
- package/fesm2015/daffodil-product-driver-magento.mjs +47 -49
- package/fesm2015/daffodil-product-driver-magento.mjs.map +1 -1
- package/fesm2015/daffodil-product-driver-shopify.mjs +7 -9
- package/fesm2015/daffodil-product-driver-shopify.mjs.map +1 -1
- package/fesm2015/daffodil-product-driver-testing.mjs +8 -10
- package/fesm2015/daffodil-product-driver-testing.mjs.map +1 -1
- package/fesm2015/daffodil-product-routing.mjs +19 -19
- package/fesm2015/daffodil-product-state-testing.mjs +17 -17
- package/fesm2015/daffodil-product-state-testing.mjs.map +1 -1
- package/fesm2015/daffodil-product-state.mjs +81 -83
- package/fesm2015/daffodil-product-state.mjs.map +1 -1
- package/fesm2015/daffodil-product-testing.mjs +19 -19
- package/fesm2015/daffodil-product-testing.mjs.map +1 -1
- package/fesm2020/daffodil-product-driver-in-memory.mjs +11 -13
- package/fesm2020/daffodil-product-driver-in-memory.mjs.map +1 -1
- package/fesm2020/daffodil-product-driver-magento-testing.mjs +24 -24
- package/fesm2020/daffodil-product-driver-magento.mjs +47 -49
- package/fesm2020/daffodil-product-driver-magento.mjs.map +1 -1
- package/fesm2020/daffodil-product-driver-shopify.mjs +7 -9
- package/fesm2020/daffodil-product-driver-shopify.mjs.map +1 -1
- package/fesm2020/daffodil-product-driver-testing.mjs +8 -10
- package/fesm2020/daffodil-product-driver-testing.mjs.map +1 -1
- package/fesm2020/daffodil-product-routing.mjs +19 -19
- package/fesm2020/daffodil-product-state-testing.mjs +17 -17
- package/fesm2020/daffodil-product-state-testing.mjs.map +1 -1
- package/fesm2020/daffodil-product-state.mjs +85 -87
- package/fesm2020/daffodil-product-state.mjs.map +1 -1
- package/fesm2020/daffodil-product-testing.mjs +60 -60
- package/fesm2020/daffodil-product-testing.mjs.map +1 -1
- package/package.json +1 -1
- package/state/facades/product/product.facade.d.ts +1 -1
- package/state/facades/product-grid/product-grid.facade.d.ts +1 -1
- package/state/facades/product-page/facade.d.ts +1 -1
- package/state/reducers/best-sellers/best-sellers.reducer.d.ts +1 -1
- package/state/reducers/product/product.reducer.d.ts +1 -1
- package/state/reducers/product-grid/product-grid.reducer.d.ts +1 -1
- package/state/reducers/product-reducers-state.interface.d.ts +1 -1
- package/state/selectors/all-selectors.selectors.d.ts +1 -1
- package/state/selectors/product/product.selectors.d.ts +1 -1
- package/daffodil-product.d.ts +0 -5
- package/driver/daffodil-product-driver.d.ts +0 -5
- package/driver/in-memory/daffodil-product-driver-in-memory.d.ts +0 -5
- package/driver/in-memory/package.json +0 -1
- package/driver/magento/daffodil-product-driver-magento.d.ts +0 -5
- package/driver/magento/package.json +0 -1
- package/driver/magento/testing/daffodil-product-driver-magento-testing.d.ts +0 -5
- package/driver/magento/testing/package.json +0 -1
- package/driver/package.json +0 -1
- package/driver/shopify/daffodil-product-driver-shopify.d.ts +0 -5
- package/driver/shopify/package.json +0 -1
- package/driver/testing/daffodil-product-driver-testing.d.ts +0 -5
- package/driver/testing/package.json +0 -1
- package/routing/daffodil-product-routing.d.ts +0 -5
- package/routing/package.json +0 -1
- package/state/daffodil-product-state.d.ts +0 -5
- package/state/package.json +0 -1
- package/state/testing/daffodil-product-state-testing.d.ts +0 -5
- package/state/testing/package.json +0 -1
- package/testing/daffodil-product-testing.d.ts +0 -5
- package/testing/package.json +0 -1
|
@@ -11,9 +11,9 @@ export class MockDaffBestSellersFacade {
|
|
|
11
11
|
}
|
|
12
12
|
dispatch(action) { }
|
|
13
13
|
}
|
|
14
|
-
/** @nocollapse */ MockDaffBestSellersFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15
|
-
/** @nocollapse */ MockDaffBestSellersFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14
|
+
/** @nocollapse */ MockDaffBestSellersFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffBestSellersFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15
|
+
/** @nocollapse */ MockDaffBestSellersFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffBestSellersFacade, providedIn: 'root' });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffBestSellersFacade, decorators: [{
|
|
17
17
|
type: Injectable,
|
|
18
18
|
args: [{ providedIn: 'root' }]
|
|
19
19
|
}] });
|
|
@@ -39,9 +39,9 @@ export class MockDaffProductFacade {
|
|
|
39
39
|
dispatch(action) { }
|
|
40
40
|
;
|
|
41
41
|
}
|
|
42
|
-
/** @nocollapse */ MockDaffProductFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
/** @nocollapse */ MockDaffProductFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
/** @nocollapse */ MockDaffProductFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffProductFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
43
|
+
/** @nocollapse */ MockDaffProductFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffProductFacade, providedIn: 'root' });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffProductFacade, decorators: [{
|
|
45
45
|
type: Injectable,
|
|
46
46
|
args: [{ providedIn: 'root' }]
|
|
47
47
|
}] });
|
|
@@ -12,9 +12,9 @@ export class MockDaffProductGridFacade {
|
|
|
12
12
|
dispatch(action) { }
|
|
13
13
|
;
|
|
14
14
|
}
|
|
15
|
-
/** @nocollapse */ MockDaffProductGridFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
16
|
-
/** @nocollapse */ MockDaffProductGridFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15
|
+
/** @nocollapse */ MockDaffProductGridFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffProductGridFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
+
/** @nocollapse */ MockDaffProductGridFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffProductGridFacade, providedIn: 'root' });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffProductGridFacade, decorators: [{
|
|
18
18
|
type: Injectable,
|
|
19
19
|
args: [{ providedIn: 'root' }]
|
|
20
20
|
}] });
|
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class MockDaffProductPageFacade {
|
|
8
8
|
constructor() {
|
|
9
|
-
this.loadingState$ = new BehaviorSubject("Stable" /* Stable */);
|
|
9
|
+
this.loadingState$ = new BehaviorSubject("Stable" /* DaffState.Stable */);
|
|
10
10
|
this.loading$ = new BehaviorSubject(false);
|
|
11
11
|
this.mutating$ = new BehaviorSubject(false);
|
|
12
12
|
this.resolving$ = new BehaviorSubject(false);
|
|
@@ -17,10 +17,10 @@ export class MockDaffProductPageFacade {
|
|
|
17
17
|
dispatch(action) { }
|
|
18
18
|
;
|
|
19
19
|
}
|
|
20
|
-
/** @nocollapse */ MockDaffProductPageFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
/** @nocollapse */ MockDaffProductPageFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
/** @nocollapse */ MockDaffProductPageFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffProductPageFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21
|
+
/** @nocollapse */ MockDaffProductPageFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffProductPageFacade, providedIn: 'root' });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffProductPageFacade, decorators: [{
|
|
23
23
|
type: Injectable,
|
|
24
24
|
args: [{ providedIn: 'root' }]
|
|
25
25
|
}] });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay1wcm9kdWN0LXBhZ2UtZmFjYWRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9wcm9kdWN0L3N0YXRlL3Rlc3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ICdAZGFmZm9kaWwvY29yZS9zdGF0ZSc7XG5pbXBvcnQgeyBEYWZmUHJvZHVjdCB9IGZyb20gJ0BkYWZmb2RpbC9wcm9kdWN0JztcbmltcG9ydCB7IERhZmZQcm9kdWN0UGFnZUZhY2FkZUludGVyZmFjZSB9IGZyb20gJ0BkYWZmb2RpbC9wcm9kdWN0L3N0YXRlJztcblxuLyoqXG4gKiBAaW5oZXJpdGRvY1xuICovXG5ASW5qZWN0YWJsZSh7IHByb3ZpZGVkSW46ICdyb290JyB9KVxuZXhwb3J0IGNsYXNzIE1vY2tEYWZmUHJvZHVjdFBhZ2VGYWNhZGUgaW1wbGVtZW50cyBEYWZmUHJvZHVjdFBhZ2VGYWNhZGVJbnRlcmZhY2Uge1xuICBsb2FkaW5nU3RhdGUkID0gbmV3IEJlaGF2aW9yU3ViamVjdDxEYWZmU3RhdGU+KERhZmZTdGF0ZS5TdGFibGUpO1xuICBsb2FkaW5nJCA9IG5ldyBCZWhhdmlvclN1YmplY3Q8Ym9vbGVhbj4oZmFsc2UpO1xuICBtdXRhdGluZyQgPSBuZXcgQmVoYXZpb3JTdWJqZWN0PGJvb2xlYW4+KGZhbHNlKTtcbiAgcmVzb2x2aW5nJCA9IG5ldyBCZWhhdmlvclN1YmplY3Q8Ym9vbGVhbj4oZmFsc2UpO1xuICBlcnJvcnMkID0gbmV3IEJlaGF2aW9yU3ViamVjdDxEYWZmU3RhdGVFcnJvcltdPihbXSk7XG4gIGhhc0Vycm9ycyQgPSBuZXcgQmVoYXZpb3JTdWJqZWN0PGJvb2xlYW4+KGZhbHNlKTtcbiAgcHJvZHVjdCQgPSBuZXcgQmVoYXZpb3JTdWJqZWN0PERhZmZQcm9kdWN0PihudWxsKTtcblxuICBkaXNwYXRjaChhY3Rpb24pIHt9O1xufVxuIl19
|
|
@@ -7,15 +7,15 @@ import { MockDaffProductPageFacade } from './mock-product-page-facade';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export class DaffProductStateTestingModule {
|
|
9
9
|
}
|
|
10
|
-
/** @nocollapse */ DaffProductStateTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11
|
-
/** @nocollapse */ DaffProductStateTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
12
|
-
/** @nocollapse */ DaffProductStateTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
10
|
+
/** @nocollapse */ DaffProductStateTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductStateTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
/** @nocollapse */ DaffProductStateTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffProductStateTestingModule });
|
|
12
|
+
/** @nocollapse */ DaffProductStateTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductStateTestingModule, providers: [
|
|
13
13
|
{ provide: DaffProductFacade, useExisting: MockDaffProductFacade },
|
|
14
14
|
{ provide: DaffProductGridFacade, useExisting: MockDaffProductGridFacade },
|
|
15
15
|
{ provide: DaffBestSellersFacade, useExisting: MockDaffBestSellersFacade },
|
|
16
16
|
{ provide: DaffProductPageFacade, useExisting: MockDaffProductPageFacade },
|
|
17
17
|
] });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductStateTestingModule, decorators: [{
|
|
19
19
|
type: NgModule,
|
|
20
20
|
args: [{
|
|
21
21
|
providers: [
|
|
@@ -20,9 +20,9 @@ export class DaffProductCollectionFactory extends DaffModelFactory {
|
|
|
20
20
|
super(MockProductCollection, productFactory, metadataFactory);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
/** @nocollapse */ DaffProductCollectionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
24
|
-
/** @nocollapse */ DaffProductCollectionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
23
|
+
/** @nocollapse */ DaffProductCollectionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductCollectionFactory, deps: [{ token: i1.DaffProductKindFactory }, { token: i2.DaffCollectionMetadataFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
24
|
+
/** @nocollapse */ DaffProductCollectionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductCollectionFactory, providedIn: 'root' });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductCollectionFactory, decorators: [{
|
|
26
26
|
type: Injectable,
|
|
27
27
|
args: [{
|
|
28
28
|
providedIn: 'root',
|
|
@@ -38,9 +38,9 @@ export class DaffDefaultProductFactory extends DaffModelFactory {
|
|
|
38
38
|
super(MockProduct);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
/** @nocollapse */ DaffDefaultProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
42
|
-
/** @nocollapse */ DaffDefaultProductFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
41
|
+
/** @nocollapse */ DaffDefaultProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffDefaultProductFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
42
|
+
/** @nocollapse */ DaffDefaultProductFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffDefaultProductFactory, providedIn: 'root' });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffDefaultProductFactory, decorators: [{
|
|
44
44
|
type: Injectable,
|
|
45
45
|
args: [{
|
|
46
46
|
providedIn: 'root',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Injectable, Inject, } from '@angular/core';
|
|
2
2
|
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import { DAFF_PRODUCT_EXTRA_FACTORIES } from '../injection-tokens/public_api';
|
|
4
3
|
import { DaffProductKindFactory } from './kind.factory';
|
|
4
|
+
import { DAFF_PRODUCT_EXTRA_FACTORIES } from '../injection-tokens/public_api';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "./kind.factory";
|
|
7
7
|
/**
|
|
@@ -26,9 +26,9 @@ export class DaffProductExtensionFactory extends DaffModelFactory {
|
|
|
26
26
|
{ type: kind.type });
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
/** @nocollapse */ DaffProductExtensionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
30
|
-
/** @nocollapse */ DaffProductExtensionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
/** @nocollapse */ DaffProductExtensionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductExtensionFactory, deps: [{ token: DAFF_PRODUCT_EXTRA_FACTORIES }, { token: i1.DaffProductKindFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
+
/** @nocollapse */ DaffProductExtensionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductExtensionFactory, providedIn: 'root' });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductExtensionFactory, decorators: [{
|
|
32
32
|
type: Injectable,
|
|
33
33
|
args: [{
|
|
34
34
|
providedIn: 'root',
|
|
@@ -37,4 +37,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
37
37
|
type: Inject,
|
|
38
38
|
args: [DAFF_PRODUCT_EXTRA_FACTORIES]
|
|
39
39
|
}] }, { type: i1.DaffProductKindFactory }]; } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZW5zaW9uLmZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL3Byb2R1Y3QvdGVzdGluZy9zcmMvZmFjdG9yaWVzL2V4dGVuc2lvbi5mYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxVQUFVLEVBQ1YsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBSTFELE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3hELE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFNLGdDQUFnQyxDQUFDOzs7QUFFOUU7OztHQUdHO0FBSUgsTUFBTSxPQUFPLDJCQUFpRSxTQUFRLGdCQUFtQjtJQUN2RyxZQUNnRCxjQUFxQyxFQUMzRS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YmUgcHJvdmlkZWQgYnkgb3B0aW9uYWwgcHJvZHVjdCBwYWNrYWdlcy5cbiAgICogVGhpcyBpbmNsdWRlcyBhbGwgdGhlIGV4dHJhIGV4dGVuc2lvbiBmYWN0b3JpZXMgdGhhdCBtYXkgYmUgcHJvdmlkZWQgYnkgb3B0aW9uYWwgcHJvZHVjdCBwYWNrYWdlcy5cbiAgICovXG4gIGNyZWF0ZShwYXJ0aWFsID0ge30pOiBUIHtcbiAgICBjb25zdCBraW5kID0gdGhpcy5wcm9kdWN0S2luZEZhY3RvcnkuY3JlYXRlKHBhcnRpYWwpO1xuXG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24oXG4gICAgICB7fSxcbiAgICAgIGtpbmQsXG4gICAgICAuLi50aGlzLmV4dHJhRmFjdG9yaWVzLm1hcChmYWN0b3J5ID0+IGZhY3RvcnkuY3JlYXRlKHBhcnRpYWwpKSxcbiAgICAgIC8vIHNwcmVhZCB0aGlzIGluIGxhc3QgdG8gcHJlc2VydmUga2luZCdzIHR5cGVcbiAgICAgIHsgdHlwZToga2luZC50eXBlIH0sXG4gICAgKTtcbiAgfVxufVxuIl19
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Injectable, Inject, } from '@angular/core';
|
|
2
2
|
import { sample } from '@daffodil/core';
|
|
3
3
|
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
4
|
-
import { DAFF_PRODUCT_TYPE_FACTORIES } from '../injection-tokens/public_api';
|
|
5
4
|
import { MockProduct } from './default-product.factory';
|
|
5
|
+
import { DAFF_PRODUCT_TYPE_FACTORIES } from '../injection-tokens/public_api';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Factory for creating DaffProducts.
|
|
@@ -25,9 +25,9 @@ export class DaffProductKindFactory extends DaffModelFactory {
|
|
|
25
25
|
return this._randomFactory.create(partial);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
/** @nocollapse */ DaffProductKindFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
29
|
-
/** @nocollapse */ DaffProductKindFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
/** @nocollapse */ DaffProductKindFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductKindFactory, deps: [{ token: DAFF_PRODUCT_TYPE_FACTORIES }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
29
|
+
/** @nocollapse */ DaffProductKindFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductKindFactory, providedIn: 'root' });
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductKindFactory, decorators: [{
|
|
31
31
|
type: Injectable,
|
|
32
32
|
args: [{
|
|
33
33
|
providedIn: 'root',
|
|
@@ -36,4 +36,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
36
36
|
type: Inject,
|
|
37
37
|
args: [DAFF_PRODUCT_TYPE_FACTORIES]
|
|
38
38
|
}] }]; } });
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2luZC5mYWN0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9wcm9kdWN0L3Rlc3Rpbmcvc3JjL2ZhY3Rvcmllcy9raW5kLmZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFVBQVUsRUFDVixNQUFNLEdBQ1AsTUFBTSxlQUFlLEN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ZXMpO1xuICB9XG5cbiAgLyoqXG4gICAqIENyZWF0ZXMgYSBtb2NrIHByb2R1Y3Qgb2YgcmFuZG9tIGtpbmQuXG4gICAqIEluY2x1ZGVzIGV4dHJhIHByb2R1Y3Qga2luZHMgdGhhdCBtYXkgYmUgcHJvdmlkZWQgYnkgb3B0aW9uYWwgcHJvZHVjdCBwYWNrYWdlcy5cbiAgICovXG4gIGNyZWF0ZShwYXJ0aWFsID0ge30pOiBEYWZmUHJvZHVjdCB7XG4gICAgcmV0dXJuIHRoaXMuX3JhbmRvbUZhY3RvcnkuY3JlYXRlKHBhcnRpYWwpO1xuICB9XG59XG4iXX0=
|
|
@@ -123,9 +123,9 @@ export class DaffProductImageFactory extends DaffModelFactory {
|
|
|
123
123
|
super(MockProductImage);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
/** @nocollapse */ DaffProductImageFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
127
|
-
/** @nocollapse */ DaffProductImageFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
126
|
+
/** @nocollapse */ DaffProductImageFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductImageFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
127
|
+
/** @nocollapse */ DaffProductImageFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductImageFactory, providedIn: 'root' });
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductImageFactory, decorators: [{
|
|
129
129
|
type: Injectable,
|
|
130
130
|
args: [{
|
|
131
131
|
providedIn: 'root',
|
|
@@ -7,16 +7,16 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export class DaffProductTestingModule {
|
|
9
9
|
}
|
|
10
|
-
/** @nocollapse */ DaffProductTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11
|
-
/** @nocollapse */ DaffProductTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
12
|
-
/** @nocollapse */ DaffProductTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
10
|
+
/** @nocollapse */ DaffProductTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
/** @nocollapse */ DaffProductTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffProductTestingModule });
|
|
12
|
+
/** @nocollapse */ DaffProductTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductTestingModule, providers: [
|
|
13
13
|
{
|
|
14
14
|
provide: DAFF_PRODUCT_TYPE_FACTORIES,
|
|
15
15
|
useExisting: DaffDefaultProductFactory,
|
|
16
16
|
multi: true,
|
|
17
17
|
},
|
|
18
18
|
] });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductTestingModule, decorators: [{
|
|
20
20
|
type: NgModule,
|
|
21
21
|
args: [{
|
|
22
22
|
providers: [
|
|
@@ -103,9 +103,9 @@ class DaffInMemoryBackendProductService {
|
|
|
103
103
|
return undefined;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
/** @nocollapse */ DaffInMemoryBackendProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
107
|
-
/** @nocollapse */ DaffInMemoryBackendProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
106
|
+
/** @nocollapse */ DaffInMemoryBackendProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendProductService, deps: [{ token: i1.DaffProductExtensionFactory }, { token: i1.DaffProductImageFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
107
|
+
/** @nocollapse */ DaffInMemoryBackendProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendProductService, providedIn: 'root' });
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendProductService, decorators: [{
|
|
109
109
|
type: Injectable,
|
|
110
110
|
args: [{
|
|
111
111
|
providedIn: 'root',
|
|
@@ -179,9 +179,9 @@ class DaffInMemoryProductService {
|
|
|
179
179
|
return this.http.get(`${this.url}${url}`).pipe(map(this.transform));
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
/** @nocollapse */ DaffInMemoryProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
183
|
-
/** @nocollapse */ DaffInMemoryProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
182
|
+
/** @nocollapse */ DaffInMemoryProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryProductService, deps: [{ token: i1$1.HttpClient }, { token: DAFF_PRODUCT_IN_MEMORY_PRODUCT_RESPONSE_TRANSFORM }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
183
|
+
/** @nocollapse */ DaffInMemoryProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryProductService, providedIn: 'root' });
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryProductService, decorators: [{
|
|
185
185
|
type: Injectable,
|
|
186
186
|
args: [{
|
|
187
187
|
providedIn: 'root',
|
|
@@ -209,14 +209,12 @@ class DaffProductInMemoryDriverModule {
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
/** @nocollapse */ DaffProductInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
213
|
-
/** @nocollapse */ DaffProductInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
212
|
+
/** @nocollapse */ DaffProductInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
213
|
+
/** @nocollapse */ DaffProductInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffProductInMemoryDriverModule, imports: [CommonModule,
|
|
214
214
|
DaffProductTestingModule] });
|
|
215
|
-
/** @nocollapse */ DaffProductInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
]] });
|
|
219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffProductInMemoryDriverModule, decorators: [{
|
|
215
|
+
/** @nocollapse */ DaffProductInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductInMemoryDriverModule, imports: [CommonModule,
|
|
216
|
+
DaffProductTestingModule] });
|
|
217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffProductInMemoryDriverModule, decorators: [{
|
|
220
218
|
type: NgModule,
|
|
221
219
|
args: [{
|
|
222
220
|
imports: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-product-driver-in-memory.mjs","sources":["../../../libs/product/driver/in-memory/src/backend/product.service.ts","../../../libs/product/driver/in-memory/src/injection-tokens/transforms/product-response/response-extra.token.ts","../../../libs/product/driver/in-memory/src/injection-tokens/transforms/product-response/response.token.ts","../../../libs/product/driver/in-memory/src/driver/product.service.ts","../../../libs/product/driver/in-memory/src/driver/product-driver.module.ts","../../../libs/product/driver/in-memory/src/daffodil-product-driver-in-memory.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport {\n InMemoryDbService,\n RequestInfoUtilities,\n ParsedRequestUrl,\n STATUS,\n} from 'angular-in-memory-web-api';\n\nimport { DaffProduct } from '@daffodil/product';\nimport {\n DaffProductImageFactory,\n DaffProductExtensionFactory,\n} from '@daffodil/product/testing';\n\n/**\n * An in-memory service that stubs out the backend services for getting products.\n *\n * @Param productFactory: DaffProductFactory instance\n * @Param productImageFactory: DaffProductImageFactory instance\n * @Param products: An array of Products\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryBackendProductService implements InMemoryDbService {\n protected _products: DaffProduct[] = [];\n\n /**\n * The collection of products in the backend.\n */\n get products(): DaffProduct[] {\n return this._products;\n };\n\n constructor(\n private productFactory: DaffProductExtensionFactory,\n private productImageFactory: DaffProductImageFactory) {\n this._products = [\n '1001',\n '1002',\n '1003',\n '1004',\n '1005',\n '1006',\n '1007',\n '1008',\n '1009',\n '1010',\n '1011',\n '1012',\n '1013',\n '1014',\n '1015',\n '1016',\n '1017',\n '1018',\n '1019',\n '1020',\n '1021',\n '1022',\n '1023',\n '1024',\n '1025',\n '1026',\n '1027',\n '1028',\n '1029',\n '1030',\n '1031',\n '1032',\n '1033',\n '1034',\n '1035',\n ].map(id => this.productFactory.create({ id, url: `/${id}`, images: this.productImageFactory.createMany(5) }));\n }\n\n /**\n * Automatically called as part of the InMemoryDbService to parse incoming urls to match the InMemory backend urls.\n *\n * @param url initial url\n * @param utils utility to parse url\n * @returns ParsedRequestUrl\n * @docs-private\n */\n parseRequestUrl(url: string, utils: RequestInfoUtilities): ParsedRequestUrl {\n return utils.parseRequestUrl(url);\n }\n\n /**\n * Creates a fake database of products for the product inmemory backend service.\n *\n * @returns A fake database of an array of products\n * @docs-private\n */\n createDb(): any {\n return {\n products: this._products,\n };\n }\n\n /**\n * Returns products based on the url given.\n *\n * @param reqInfo request object\n * @returns An http response object\n */\n get(reqInfo: any) {\n if(reqInfo.id === 'best-sellers') {\n return reqInfo.utils.createResponse$(() => ({\n body: this._products.slice(0,4),\n status: STATUS.OK,\n }));\n }\n\n return undefined;\n }\n}\n","import {\n InjectionToken,\n Provider,\n} from '@angular/core';\n\n// workaround https://github.com/graycoreio/daffodil/issues/1667\nimport { DaffProduct } from '@daffodil/product';\nimport { DaffProductDriverResponse } from '@daffodil/product/driver';\n\nimport { DaffInMemoryProductResponseExtraTransform } from '../../../interfaces/public_api';\n\n/**\n * A multi-provider injection token for providing extra transform logic in the Product In-Memory driver.\n * It is run after the standard transforms and passed both the current transformed Daffodil response and the In-Memory product response.\n */\nexport const DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS = new InjectionToken<DaffInMemoryProductResponseExtraTransform[]>(\n 'DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS',\n { factory: () => []},\n);\n\n/**\n * Provides extra product transforms for the In-Memory product driver.\n *\n * See {@link DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS}.\n *\n * ```ts\n * providers: [\n * ...daffProvideProductInMemoryExtraProductResponseTransforms(\n * myExtraProductTransform\n * )\n * ]\n * ```\n */\nexport function daffProvideProductInMemoryExtraProductResponseTransforms(...transforms: DaffInMemoryProductResponseExtraTransform[]): Provider[] {\n return transforms.map(transform => ({\n provide: DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS,\n useValue: transform,\n multi: true,\n }));\n}\n","import {\n InjectionToken,\n inject,\n} from '@angular/core';\n\nimport { DaffProduct } from '@daffodil/product';\n// workaround https://github.com/graycoreio/daffodil/issues/1667\nimport { DaffProductDriverResponse } from '@daffodil/product/driver';\n\nimport { DaffInMemoryProductResponseTransform } from '../../../interfaces/public_api';\nimport { DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS } from './response-extra.token';\n\n/**\n * An internal token to combine the In-Memory response transform with the injected transforms.\n */\nexport const DAFF_PRODUCT_IN_MEMORY_PRODUCT_RESPONSE_TRANSFORM = new InjectionToken<DaffInMemoryProductResponseTransform>(\n 'DAFF_PRODUCT_IN_MEMORY_PRODUCT_RESPONSE_TRANSFORM',\n {\n factory: () => {\n const transforms = inject(DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS);\n return (product: DaffProduct) =>\n transforms.reduce(\n (daffProductResponse, transform) => transform(daffProductResponse, product),\n {\n id: product.id,\n products: [product],\n },\n );\n },\n },\n);\n","import { HttpClient } from '@angular/common/http';\nimport {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nimport { DaffProduct } from '@daffodil/product';\nimport {\n DaffProductDriverResponse,\n DaffProductServiceInterface,\n} from '@daffodil/product/driver';\n\nimport { DAFF_PRODUCT_IN_MEMORY_PRODUCT_RESPONSE_TRANSFORM } from '../injection-tokens/public_api';\nimport { DaffInMemoryProductResponseTransform } from '../interfaces/public_api';\n\n/**\n * The product inmemory driver to mock the product backend service.\n *\n * @inheritdoc\n * @Param HttpClient\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryProductService implements DaffProductServiceInterface {\n /**\n * @docs-private\n */\n url = '/api/products';\n\n constructor(\n private http: HttpClient,\n @Inject(DAFF_PRODUCT_IN_MEMORY_PRODUCT_RESPONSE_TRANSFORM) private transform: DaffInMemoryProductResponseTransform,\n ) {}\n\n getAll(): Observable<DaffProduct[]> {\n return this.http.get<DaffProduct[]>(this.url);\n }\n\n getBestSellers(): Observable<DaffProduct[]> {\n return this.http.get<DaffProduct[]>(`${this.url}/best-sellers`);\n }\n\n get(productId: DaffProduct['id']): Observable<DaffProductDriverResponse> {\n return this.http.get<DaffProduct>(`${this.url}/${productId}`).pipe(\n map(this.transform),\n );\n }\n\n getByUrl(url: DaffProduct['url']): Observable<DaffProductDriverResponse> {\n return this.http.get<DaffProduct>(`${this.url}${url}`).pipe(\n map(this.transform),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { DaffProductDriver } from '@daffodil/product/driver';\nimport { DaffProductTestingModule } from '@daffodil/product/testing';\n\nimport { DaffInMemoryProductService } from './product.service';\n\n/**\n * Module for providing the DaffInMemoryProductService driver to your application.\n */\n@NgModule({\n imports: [\n CommonModule,\n DaffProductTestingModule,\n ],\n})\nexport class DaffProductInMemoryDriverModule {\n static forRoot(): ModuleWithProviders<DaffProductInMemoryDriverModule> {\n return {\n ngModule: DaffProductInMemoryDriverModule,\n providers: [\n {\n provide: DaffProductDriver,\n useExisting: DaffInMemoryProductService,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAcA;;;;;;AAMG;MAIU,iCAAiC,CAAA;IAU5C,WACU,CAAA,cAA2C,EAC3C,mBAA4C,EAAA;AAD5C,QAAA,IAAc,CAAA,cAAA,GAAd,cAAc,CAA6B;AAC3C,QAA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,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,EALjC,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,wBAAwB;SACzB,CAAA,EAAA,CAAA,CAAA;2FAEU,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAN3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,wBAAwB;AACzB,qBAAA;iBACF,CAAA;;;ACnBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"daffodil-product-driver-in-memory.mjs","sources":["../../../libs/product/driver/in-memory/src/backend/product.service.ts","../../../libs/product/driver/in-memory/src/injection-tokens/transforms/product-response/response-extra.token.ts","../../../libs/product/driver/in-memory/src/injection-tokens/transforms/product-response/response.token.ts","../../../libs/product/driver/in-memory/src/driver/product.service.ts","../../../libs/product/driver/in-memory/src/driver/product-driver.module.ts","../../../libs/product/driver/in-memory/src/daffodil-product-driver-in-memory.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport {\n InMemoryDbService,\n RequestInfoUtilities,\n ParsedRequestUrl,\n STATUS,\n} from 'angular-in-memory-web-api';\n\nimport { DaffProduct } from '@daffodil/product';\nimport {\n DaffProductImageFactory,\n DaffProductExtensionFactory,\n} from '@daffodil/product/testing';\n\n/**\n * An in-memory service that stubs out the backend services for getting products.\n *\n * @Param productFactory: DaffProductFactory instance\n * @Param productImageFactory: DaffProductImageFactory instance\n * @Param products: An array of Products\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryBackendProductService implements InMemoryDbService {\n protected _products: DaffProduct[] = [];\n\n /**\n * The collection of products in the backend.\n */\n get products(): DaffProduct[] {\n return this._products;\n };\n\n constructor(\n private productFactory: DaffProductExtensionFactory,\n private productImageFactory: DaffProductImageFactory) {\n this._products = [\n '1001',\n '1002',\n '1003',\n '1004',\n '1005',\n '1006',\n '1007',\n '1008',\n '1009',\n '1010',\n '1011',\n '1012',\n '1013',\n '1014',\n '1015',\n '1016',\n '1017',\n '1018',\n '1019',\n '1020',\n '1021',\n '1022',\n '1023',\n '1024',\n '1025',\n '1026',\n '1027',\n '1028',\n '1029',\n '1030',\n '1031',\n '1032',\n '1033',\n '1034',\n '1035',\n ].map(id => this.productFactory.create({ id, url: `/${id}`, images: this.productImageFactory.createMany(5) }));\n }\n\n /**\n * Automatically called as part of the InMemoryDbService to parse incoming urls to match the InMemory backend urls.\n *\n * @param url initial url\n * @param utils utility to parse url\n * @returns ParsedRequestUrl\n * @docs-private\n */\n parseRequestUrl(url: string, utils: RequestInfoUtilities): ParsedRequestUrl {\n return utils.parseRequestUrl(url);\n }\n\n /**\n * Creates a fake database of products for the product inmemory backend service.\n *\n * @returns A fake database of an array of products\n * @docs-private\n */\n createDb(): any {\n return {\n products: this._products,\n };\n }\n\n /**\n * Returns products based on the url given.\n *\n * @param reqInfo request object\n * @returns An http response object\n */\n get(reqInfo: any) {\n if(reqInfo.id === 'best-sellers') {\n return reqInfo.utils.createResponse$(() => ({\n body: this._products.slice(0,4),\n status: STATUS.OK,\n }));\n }\n\n return undefined;\n }\n}\n","import {\n InjectionToken,\n Provider,\n} from '@angular/core';\n\n// workaround https://github.com/graycoreio/daffodil/issues/1667\nimport { DaffProduct } from '@daffodil/product';\nimport { DaffProductDriverResponse } from '@daffodil/product/driver';\n\nimport { DaffInMemoryProductResponseExtraTransform } from '../../../interfaces/public_api';\n\n/**\n * A multi-provider injection token for providing extra transform logic in the Product In-Memory driver.\n * It is run after the standard transforms and passed both the current transformed Daffodil response and the In-Memory product response.\n */\nexport const DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS = new InjectionToken<DaffInMemoryProductResponseExtraTransform[]>(\n 'DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS',\n { factory: () => []},\n);\n\n/**\n * Provides extra product transforms for the In-Memory product driver.\n *\n * See {@link DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS}.\n *\n * ```ts\n * providers: [\n * ...daffProvideProductInMemoryExtraProductResponseTransforms(\n * myExtraProductTransform\n * )\n * ]\n * ```\n */\nexport function daffProvideProductInMemoryExtraProductResponseTransforms(...transforms: DaffInMemoryProductResponseExtraTransform[]): Provider[] {\n return transforms.map(transform => ({\n provide: DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS,\n useValue: transform,\n multi: true,\n }));\n}\n","import {\n InjectionToken,\n inject,\n} from '@angular/core';\n\nimport { DaffProduct } from '@daffodil/product';\n// workaround https://github.com/graycoreio/daffodil/issues/1667\nimport { DaffProductDriverResponse } from '@daffodil/product/driver';\n\nimport { DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS } from './response-extra.token';\nimport { DaffInMemoryProductResponseTransform } from '../../../interfaces/public_api';\n\n/**\n * An internal token to combine the In-Memory response transform with the injected transforms.\n */\nexport const DAFF_PRODUCT_IN_MEMORY_PRODUCT_RESPONSE_TRANSFORM = new InjectionToken<DaffInMemoryProductResponseTransform>(\n 'DAFF_PRODUCT_IN_MEMORY_PRODUCT_RESPONSE_TRANSFORM',\n {\n factory: () => {\n const transforms = inject(DAFF_PRODUCT_IN_MEMORY_EXTRA_PRODUCT_RESPONSE_TRANSFORMS);\n return (product: DaffProduct) =>\n transforms.reduce(\n (daffProductResponse, transform) => transform(daffProductResponse, product),\n {\n id: product.id,\n products: [product],\n },\n );\n },\n },\n);\n","import { HttpClient } from '@angular/common/http';\nimport {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nimport { DaffProduct } from '@daffodil/product';\nimport {\n DaffProductDriverResponse,\n DaffProductServiceInterface,\n} from '@daffodil/product/driver';\n\nimport { DAFF_PRODUCT_IN_MEMORY_PRODUCT_RESPONSE_TRANSFORM } from '../injection-tokens/public_api';\nimport { DaffInMemoryProductResponseTransform } from '../interfaces/public_api';\n\n/**\n * The product inmemory driver to mock the product backend service.\n *\n * @inheritdoc\n * @Param HttpClient\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryProductService implements DaffProductServiceInterface {\n /**\n * @docs-private\n */\n url = '/api/products';\n\n constructor(\n private http: HttpClient,\n @Inject(DAFF_PRODUCT_IN_MEMORY_PRODUCT_RESPONSE_TRANSFORM) private transform: DaffInMemoryProductResponseTransform,\n ) {}\n\n getAll(): Observable<DaffProduct[]> {\n return this.http.get<DaffProduct[]>(this.url);\n }\n\n getBestSellers(): Observable<DaffProduct[]> {\n return this.http.get<DaffProduct[]>(`${this.url}/best-sellers`);\n }\n\n get(productId: DaffProduct['id']): Observable<DaffProductDriverResponse> {\n return this.http.get<DaffProduct>(`${this.url}/${productId}`).pipe(\n map(this.transform),\n );\n }\n\n getByUrl(url: DaffProduct['url']): Observable<DaffProductDriverResponse> {\n return this.http.get<DaffProduct>(`${this.url}${url}`).pipe(\n map(this.transform),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { DaffProductDriver } from '@daffodil/product/driver';\nimport { DaffProductTestingModule } from '@daffodil/product/testing';\n\nimport { DaffInMemoryProductService } from './product.service';\n\n/**\n * Module for providing the DaffInMemoryProductService driver to your application.\n */\n@NgModule({\n imports: [\n CommonModule,\n DaffProductTestingModule,\n ],\n})\nexport class DaffProductInMemoryDriverModule {\n static forRoot(): ModuleWithProviders<DaffProductInMemoryDriverModule> {\n return {\n ngModule: DaffProductInMemoryDriverModule,\n providers: [\n {\n provide: DaffProductDriver,\n useExisting: DaffInMemoryProductService,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAcA;;;;;;AAMG;MAIU,iCAAiC,CAAA;IAU5C,WACU,CAAA,cAA2C,E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,mBAAA,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,YAJxC,YAAY;QACZ,wBAAwB,CAAA,EAAA,CAAA,CAAA;2FAGf,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAN3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,wBAAwB;AACzB,qBAAA;iBACF,CAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -45,9 +45,9 @@ class MagentoProductPreviewFactory extends DaffModelFactory {
|
|
|
45
45
|
super(MockMagentoProductPreview);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
/** @nocollapse */ MagentoProductPreviewFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
49
|
-
/** @nocollapse */ MagentoProductPreviewFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
48
|
+
/** @nocollapse */ MagentoProductPreviewFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductPreviewFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
+
/** @nocollapse */ MagentoProductPreviewFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductPreviewFactory, providedIn: 'root' });
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductPreviewFactory, decorators: [{
|
|
51
51
|
type: Injectable,
|
|
52
52
|
args: [{
|
|
53
53
|
providedIn: 'root',
|
|
@@ -81,9 +81,9 @@ class MagentoCoreProductFactory extends DaffModelFactory {
|
|
|
81
81
|
super(MockMagentoCoreProduct);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
/** @nocollapse */ MagentoCoreProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
85
|
-
/** @nocollapse */ MagentoCoreProductFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
84
|
+
/** @nocollapse */ MagentoCoreProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoCoreProductFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
85
|
+
/** @nocollapse */ MagentoCoreProductFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoCoreProductFactory, providedIn: 'root' });
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoCoreProductFactory, decorators: [{
|
|
87
87
|
type: Injectable,
|
|
88
88
|
args: [{
|
|
89
89
|
providedIn: 'root',
|
|
@@ -104,9 +104,9 @@ class MagentoSimpleProductFactory extends DaffModelFactory {
|
|
|
104
104
|
super(MockMagentoSimpleProduct);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
/** @nocollapse */ MagentoSimpleProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
108
|
-
/** @nocollapse */ MagentoSimpleProductFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
107
|
+
/** @nocollapse */ MagentoSimpleProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoSimpleProductFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
108
|
+
/** @nocollapse */ MagentoSimpleProductFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoSimpleProductFactory, providedIn: 'root' });
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoSimpleProductFactory, decorators: [{
|
|
110
110
|
type: Injectable,
|
|
111
111
|
args: [{
|
|
112
112
|
providedIn: 'root',
|
|
@@ -144,9 +144,9 @@ class MagentoProductAggregationSelectFactory extends DaffModelFactory {
|
|
|
144
144
|
super(MockMagentoAggregationSelect);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
/** @nocollapse */ MagentoProductAggregationSelectFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
148
|
-
/** @nocollapse */ MagentoProductAggregationSelectFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
147
|
+
/** @nocollapse */ MagentoProductAggregationSelectFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductAggregationSelectFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
148
|
+
/** @nocollapse */ MagentoProductAggregationSelectFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductAggregationSelectFactory, providedIn: 'root' });
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductAggregationSelectFactory, decorators: [{
|
|
150
150
|
type: Injectable,
|
|
151
151
|
args: [{
|
|
152
152
|
providedIn: 'root',
|
|
@@ -189,9 +189,9 @@ class MagentoProductAggregationPriceFactory extends DaffModelFactory {
|
|
|
189
189
|
super(MockMagentoAggregationPrice);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
/** @nocollapse */ MagentoProductAggregationPriceFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
193
|
-
/** @nocollapse */ MagentoProductAggregationPriceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
192
|
+
/** @nocollapse */ MagentoProductAggregationPriceFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductAggregationPriceFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
193
|
+
/** @nocollapse */ MagentoProductAggregationPriceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductAggregationPriceFactory, providedIn: 'root' });
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductAggregationPriceFactory, decorators: [{
|
|
195
195
|
type: Injectable,
|
|
196
196
|
args: [{
|
|
197
197
|
providedIn: 'root',
|
|
@@ -205,9 +205,9 @@ class MagentoProductAggregationFactory extends DaffModelFactory {
|
|
|
205
205
|
this.priceFactory = priceFactory;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
/** @nocollapse */ MagentoProductAggregationFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
209
|
-
/** @nocollapse */ MagentoProductAggregationFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
208
|
+
/** @nocollapse */ MagentoProductAggregationFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductAggregationFactory, deps: [{ token: MagentoProductAggregationSelectFactory }, { token: MagentoProductAggregationPriceFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
209
|
+
/** @nocollapse */ MagentoProductAggregationFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductAggregationFactory, providedIn: 'root' });
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductAggregationFactory, decorators: [{
|
|
211
211
|
type: Injectable,
|
|
212
212
|
args: [{
|
|
213
213
|
providedIn: 'root',
|
|
@@ -232,9 +232,9 @@ class MagentoProductFilterTypeFieldFactory extends DaffModelFactory {
|
|
|
232
232
|
super(MockMagentoProductFilterTypeField);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
/** @nocollapse */ MagentoProductFilterTypeFieldFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
236
|
-
/** @nocollapse */ MagentoProductFilterTypeFieldFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
235
|
+
/** @nocollapse */ MagentoProductFilterTypeFieldFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductFilterTypeFieldFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
236
|
+
/** @nocollapse */ MagentoProductFilterTypeFieldFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductFilterTypeFieldFactory, providedIn: 'root' });
|
|
237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductFilterTypeFieldFactory, decorators: [{
|
|
238
238
|
type: Injectable,
|
|
239
239
|
args: [{
|
|
240
240
|
providedIn: 'root',
|
|
@@ -258,9 +258,9 @@ class MagentoProductSortFieldsFactory extends DaffModelFactory {
|
|
|
258
258
|
super(MockMagentoProductSortFields);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
/** @nocollapse */ MagentoProductSortFieldsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
262
|
-
/** @nocollapse */ MagentoProductSortFieldsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
261
|
+
/** @nocollapse */ MagentoProductSortFieldsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductSortFieldsFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
262
|
+
/** @nocollapse */ MagentoProductSortFieldsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductSortFieldsFactory, providedIn: 'root' });
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MagentoProductSortFieldsFactory, decorators: [{
|
|
264
264
|
type: Injectable,
|
|
265
265
|
args: [{
|
|
266
266
|
providedIn: 'root',
|