@daffodil/product 0.94.1 → 0.95.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-product-driver-in-memory.mjs +200 -227
- package/fesm2022/daffodil-product-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-product-driver-magento-2.4.7-testing.mjs +444 -0
- package/fesm2022/daffodil-product-driver-magento-2.4.7-testing.mjs.map +1 -0
- package/fesm2022/daffodil-product-driver-magento-2.4.7.mjs +704 -0
- package/fesm2022/daffodil-product-driver-magento-2.4.7.mjs.map +1 -0
- package/fesm2022/daffodil-product-driver-magento-auto-testing.mjs +7 -0
- package/fesm2022/daffodil-product-driver-magento-auto-testing.mjs.map +1 -0
- package/fesm2022/daffodil-product-driver-magento-auto.mjs +7 -0
- package/fesm2022/daffodil-product-driver-magento-auto.mjs.map +1 -0
- package/fesm2022/daffodil-product-driver-shopify.mjs +99 -127
- package/fesm2022/daffodil-product-driver-shopify.mjs.map +1 -1
- package/fesm2022/daffodil-product-driver-testing.mjs +117 -87
- package/fesm2022/daffodil-product-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-product-driver.mjs +22 -45
- package/fesm2022/daffodil-product-driver.mjs.map +1 -1
- package/fesm2022/daffodil-product-routing.mjs +347 -285
- package/fesm2022/daffodil-product-routing.mjs.map +1 -1
- package/fesm2022/daffodil-product-state-testing.mjs +189 -106
- package/fesm2022/daffodil-product-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-product-state.mjs +566 -659
- package/fesm2022/daffodil-product-state.mjs.map +1 -1
- package/fesm2022/daffodil-product-testing.mjs +316 -276
- package/fesm2022/daffodil-product-testing.mjs.map +1 -1
- package/fesm2022/daffodil-product.mjs +8 -29
- package/fesm2022/daffodil-product.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-product-driver-in-memory.d.ts +65 -75
- package/types/daffodil-product-driver-magento-2.4.7-testing.d.ts +105 -0
- package/types/daffodil-product-driver-magento-2.4.7.d.ts +337 -0
- package/types/daffodil-product-driver-magento-auto-testing.d.ts +1 -0
- package/types/daffodil-product-driver-magento-auto.d.ts +1 -0
- package/types/daffodil-product-driver-shopify.d.ts +31 -43
- package/types/daffodil-product-driver-testing.d.ts +28 -26
- package/types/daffodil-product-driver.d.ts +50 -61
- package/types/daffodil-product-routing.d.ts +101 -110
- package/types/daffodil-product-state-testing.d.ts +45 -43
- package/types/daffodil-product-state.d.ts +347 -375
- package/types/daffodil-product-testing.d.ts +82 -89
- package/types/daffodil-product.d.ts +93 -102
- package/fesm2022/daffodil-product-driver-magento-testing.mjs +0 -275
- package/fesm2022/daffodil-product-driver-magento-testing.mjs.map +0 -1
- package/fesm2022/daffodil-product-driver-magento.mjs +0 -855
- package/fesm2022/daffodil-product-driver-magento.mjs.map +0 -1
- package/types/daffodil-product-driver-magento-testing.d.ts +0 -114
- package/types/daffodil-product-driver-magento.d.ts +0 -396
|
@@ -1,133 +1,126 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import * as _daffodil_core from '@daffodil/core';
|
|
6
|
-
|
|
1
|
+
import { DaffCollectionMetadataFactory, DaffModelFactory, MockCollection } from "@daffodil/core/testing";
|
|
2
|
+
import { DaffProduct, DaffProductCollection, DaffProductImage, DaffProductTypeEnum } from "@daffodil/product";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import { EnvironmentProviders } from "@angular/core";
|
|
7
5
|
/**
|
|
8
6
|
* Mocked DaffProductImage object.
|
|
9
7
|
*/
|
|
10
|
-
declare class MockProductImage implements DaffProductImage {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
export declare class MockProductImage implements DaffProductImage {
|
|
9
|
+
id: string;
|
|
10
|
+
url: string;
|
|
11
|
+
label: string;
|
|
14
12
|
}
|
|
15
13
|
/**
|
|
16
14
|
* A factory for creating DaffProductImage.
|
|
17
15
|
*/
|
|
18
|
-
declare class DaffProductImageFactory extends DaffModelFactory<DaffProductImage> {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
export declare class DaffProductImageFactory extends DaffModelFactory<DaffProductImage> {
|
|
17
|
+
constructor();
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductImageFactory, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
22
20
|
}
|
|
23
|
-
|
|
24
21
|
/**
|
|
25
22
|
* Factory for creating DaffProducts.
|
|
26
23
|
* This will create a random product kind,
|
|
27
24
|
* including extra product kinds that may be provided by optional product packages.
|
|
28
25
|
*/
|
|
29
|
-
declare class DaffProductKindFactory extends DaffModelFactory<DaffProduct> {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
export declare class DaffProductKindFactory extends DaffModelFactory<DaffProduct> {
|
|
27
|
+
private productTypeFactories;
|
|
28
|
+
constructor(productTypeFactories: DaffModelFactory<DaffProduct>[]);
|
|
29
|
+
private get _randomFactory();
|
|
30
|
+
/**
|
|
31
|
+
* Creates a mock product of random kind.
|
|
32
|
+
* Includes extra product kinds that may be provided by optional product packages.
|
|
33
|
+
*/
|
|
34
|
+
create(partial?: Partial<DaffProduct>): DaffProduct;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductKindFactory, never>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
40
37
|
}
|
|
41
|
-
|
|
42
38
|
/**
|
|
43
39
|
* Factory for creating `DaffProduct`s with extension fields.
|
|
44
40
|
* This includes all the extra extension factories that may be provided by optional product packages.
|
|
45
41
|
*/
|
|
46
|
-
declare class DaffProductExtensionFactory<T extends DaffProduct = DaffProduct> extends DaffModelFactory<T> {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
42
|
+
export declare class DaffProductExtensionFactory<T extends DaffProduct = DaffProduct> extends DaffModelFactory<T> {
|
|
43
|
+
private extraFactories;
|
|
44
|
+
private productKindFactory;
|
|
45
|
+
constructor(extraFactories: DaffModelFactory<T>[], productKindFactory: DaffProductKindFactory);
|
|
46
|
+
/**
|
|
47
|
+
* Creates a mock product of random type.
|
|
48
|
+
* Includes extra product types that may be provided by optional product packages.
|
|
49
|
+
* This includes all the extra extension factories that may be provided by optional product packages.
|
|
50
|
+
*/
|
|
51
|
+
create(partial?: Partial<T>): T;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductExtensionFactory<any>, never>;
|
|
53
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
58
54
|
}
|
|
59
|
-
|
|
60
55
|
/**
|
|
61
56
|
* Mocked DaffProduct object.
|
|
62
57
|
*/
|
|
63
|
-
declare class MockProduct implements DaffProduct {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
58
|
+
export declare class MockProduct implements DaffProduct {
|
|
59
|
+
protected imageFactory: DaffProductImageFactory;
|
|
60
|
+
private stubPrice;
|
|
61
|
+
private stubDiscount;
|
|
62
|
+
type: DaffProductTypeEnum;
|
|
63
|
+
id: string;
|
|
64
|
+
url: string;
|
|
65
|
+
canonicalUrl: string;
|
|
66
|
+
price: number;
|
|
67
|
+
in_stock: boolean;
|
|
68
|
+
discount: {
|
|
69
|
+
amount: number;
|
|
70
|
+
percent: number;
|
|
71
|
+
};
|
|
72
|
+
images: import("@daffodil/product").DaffProductImage[];
|
|
73
|
+
thumbnail: import("@daffodil/product").DaffProductImage;
|
|
74
|
+
name: string;
|
|
75
|
+
brand: string;
|
|
76
|
+
description: string;
|
|
77
|
+
short_description: string;
|
|
78
|
+
meta_title: string;
|
|
79
|
+
meta_description: string;
|
|
80
|
+
constructor(imageFactory: DaffProductImageFactory);
|
|
86
81
|
}
|
|
87
82
|
/**
|
|
88
83
|
* Factory for creating simple `DaffProduct`s of no special kind.
|
|
89
84
|
*/
|
|
90
|
-
declare class DaffDefaultProductFactory extends DaffModelFactory<DaffProduct> {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
export declare class DaffDefaultProductFactory extends DaffModelFactory<DaffProduct> {
|
|
86
|
+
constructor(imageFactory: DaffProductImageFactory);
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffDefaultProductFactory, never>;
|
|
88
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
94
89
|
}
|
|
95
|
-
|
|
96
90
|
/**
|
|
97
91
|
* Mocked {@link DaffProductCollection} object.
|
|
98
92
|
*/
|
|
99
|
-
declare class MockProductCollection extends MockCollection<DaffProduct> implements DaffProductCollection {
|
|
100
|
-
|
|
93
|
+
export declare class MockProductCollection extends MockCollection<DaffProduct> implements DaffProductCollection {
|
|
94
|
+
constructor(productFactory: DaffProductKindFactory, metadataFactory: DaffCollectionMetadataFactory);
|
|
101
95
|
}
|
|
102
96
|
/**
|
|
103
97
|
* Factory for creating {@link DaffProductCollection}s.
|
|
104
98
|
*/
|
|
105
|
-
declare class DaffProductCollectionFactory extends DaffModelFactory<DaffProductCollection> {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
99
|
+
export declare class DaffProductCollectionFactory extends DaffModelFactory<DaffProductCollection> {
|
|
100
|
+
constructor(productFactory: DaffProductKindFactory, metadataFactory: DaffCollectionMetadataFactory);
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductCollectionFactory, never>;
|
|
102
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
109
103
|
}
|
|
110
|
-
|
|
111
|
-
declare const
|
|
112
|
-
declare const provideDaffProductExtraFactoryTypes: <R extends DaffModelFactory<DaffProduct, _daffodil_core.Constructable<DaffProduct>> = DaffModelFactory<DaffProduct, _daffodil_core.Constructable<DaffProduct>>>(...classes: i0.Type<R>[]) => Array<i0.ExistingProvider>;
|
|
113
|
-
|
|
114
|
-
declare const DAFF_PRODUCT_EXTRA_FACTORIES: i0.InjectionToken<DaffModelFactory<DaffProduct, _daffodil_core.Constructable<DaffProduct>>[]>;
|
|
115
|
-
declare const provideDaffProductExtraProductFactories: <R extends DaffModelFactory<DaffProduct, _daffodil_core.Constructable<DaffProduct>> = DaffModelFactory<DaffProduct, _daffodil_core.Constructable<DaffProduct>>>(...classes: i0.Type<R>[]) => Array<i0.ExistingProvider>;
|
|
116
|
-
|
|
104
|
+
export declare const DAFF_PRODUCT_TYPE_FACTORIES: import("@angular/core").InjectionToken<DaffModelFactory<DaffProduct, import("@daffodil/core").Constructable<DaffProduct>>[]>, provideDaffProductExtraFactoryTypes: <R extends DaffModelFactory<DaffProduct, import("@daffodil/core").Constructable<DaffProduct>> = DaffModelFactory<DaffProduct, import("@daffodil/core").Constructable<DaffProduct>>>(...classes: import("@angular/core").Type<R>[]) => Array<import("@angular/core").ExistingProvider>;
|
|
105
|
+
export declare const DAFF_PRODUCT_EXTRA_FACTORIES: import("@angular/core").InjectionToken<DaffModelFactory<DaffProduct, import("@daffodil/core").Constructable<DaffProduct>>[]>, provideDaffProductExtraProductFactories: <R extends DaffModelFactory<DaffProduct, import("@daffodil/core").Constructable<DaffProduct>> = DaffModelFactory<DaffProduct, import("@daffodil/core").Constructable<DaffProduct>>>(...classes: import("@angular/core").Type<R>[]) => Array<import("@angular/core").ExistingProvider>;
|
|
117
106
|
/**
|
|
118
107
|
* A helper function to verify that a model is a Product.
|
|
119
108
|
*
|
|
120
109
|
* @param product
|
|
121
110
|
*/
|
|
122
|
-
declare function isProduct(product: DaffProduct): boolean;
|
|
123
|
-
|
|
111
|
+
export declare function isProduct(product: DaffProduct): boolean;
|
|
124
112
|
/**
|
|
125
113
|
* Provides the default product factory as a product type factory.
|
|
114
|
+
*
|
|
115
|
+
* @deprecated in favor of {@link provideDaffProductTesting} Deprecated in version 0.95.0. Will be removed in version 0.98.0.
|
|
126
116
|
*/
|
|
127
|
-
declare class DaffProductTestingModule {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
117
|
+
export declare class DaffProductTestingModule {
|
|
118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductTestingModule, never>;
|
|
119
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffProductTestingModule, never, never, never>;
|
|
120
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffProductTestingModule>;
|
|
131
121
|
}
|
|
132
|
-
|
|
133
|
-
|
|
122
|
+
/**
|
|
123
|
+
* Provides the default product factory as a product type factory.
|
|
124
|
+
*/
|
|
125
|
+
export declare const provideDaffProductTesting: () => EnvironmentProviders;
|
|
126
|
+
export { DaffDefaultProductFactory as DaffProductFactory };
|
|
@@ -1,141 +1,132 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DaffCanonicallyLocatable, DaffCollection, DaffIdentifiable, DaffLocatable } from "@daffodil/core";
|
|
3
2
|
/**
|
|
4
3
|
* Interface for an image on a DaffProduct.
|
|
5
4
|
*/
|
|
6
|
-
interface DaffProductImage extends DaffLocatable, DaffIdentifiable {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export interface DaffProductImage extends DaffLocatable, DaffIdentifiable {
|
|
6
|
+
/**
|
|
7
|
+
* A label describing the image.
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
/**
|
|
14
12
|
* The possible product types.
|
|
15
13
|
*/
|
|
16
|
-
declare enum DaffProductTypeEnum {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
export declare enum DaffProductTypeEnum {
|
|
15
|
+
Simple = "simple",
|
|
16
|
+
Composite = "composite",
|
|
17
|
+
Configurable = "configurable"
|
|
20
18
|
}
|
|
21
19
|
/**
|
|
22
20
|
* An interface for a product usable by the @daffodil/product library.
|
|
23
21
|
*/
|
|
24
|
-
interface DaffProduct extends DaffLocatable, DaffIdentifiable, Partial<DaffCanonicallyLocatable> {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
22
|
+
export interface DaffProduct extends DaffLocatable, DaffIdentifiable, Partial<DaffCanonicallyLocatable> {
|
|
23
|
+
/**
|
|
24
|
+
* The type of product.
|
|
25
|
+
*/
|
|
26
|
+
type: DaffProductTypeEnum;
|
|
27
|
+
/**
|
|
28
|
+
* The product name.
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* An image to concisely visualize the product.
|
|
33
|
+
*/
|
|
34
|
+
thumbnail: DaffProductImage;
|
|
35
|
+
/**
|
|
36
|
+
* An array of images for the product.
|
|
37
|
+
*/
|
|
38
|
+
images?: DaffProductImage[];
|
|
39
|
+
/**
|
|
40
|
+
* The price of the product.
|
|
41
|
+
*/
|
|
42
|
+
price?: number;
|
|
43
|
+
/**
|
|
44
|
+
* The total discounts associated with this product.
|
|
45
|
+
*/
|
|
46
|
+
discount?: DaffProductDiscount;
|
|
47
|
+
/**
|
|
48
|
+
* Whether or not the product is in stock.
|
|
49
|
+
*/
|
|
50
|
+
in_stock?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The product brand.
|
|
53
|
+
*/
|
|
54
|
+
brand?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Describes the product.
|
|
57
|
+
*/
|
|
58
|
+
description?: string;
|
|
59
|
+
/**
|
|
60
|
+
* A shorter description of the product.
|
|
61
|
+
*/
|
|
62
|
+
short_description?: string;
|
|
63
|
+
/**
|
|
64
|
+
* A title for the product to display in the browser tab title.
|
|
65
|
+
*/
|
|
66
|
+
meta_title?: string;
|
|
67
|
+
/**
|
|
68
|
+
* A description of the product for usage in search engine results.
|
|
69
|
+
*/
|
|
70
|
+
meta_description?: string;
|
|
73
71
|
}
|
|
74
72
|
/**
|
|
75
73
|
* The discount for a product.
|
|
76
74
|
*/
|
|
77
|
-
interface DaffProductDiscount {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
75
|
+
export interface DaffProductDiscount {
|
|
76
|
+
/**
|
|
77
|
+
* The discount represented as some amount of currency.
|
|
78
|
+
*/
|
|
79
|
+
amount: number;
|
|
80
|
+
/**
|
|
81
|
+
* The discount represented as a percent of the original product price.
|
|
82
|
+
*/
|
|
83
|
+
percent: number;
|
|
86
84
|
}
|
|
87
|
-
|
|
88
85
|
/**
|
|
89
86
|
* A model for product prices that holds discounts, discounted price, and original price for the associated product.
|
|
90
87
|
*/
|
|
91
|
-
interface DaffProductPrices {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
88
|
+
export interface DaffProductPrices {
|
|
89
|
+
/**
|
|
90
|
+
* The discounted price of the product.
|
|
91
|
+
*/
|
|
92
|
+
discountedPrice: number;
|
|
93
|
+
/**
|
|
94
|
+
* The discount of the product.
|
|
95
|
+
*/
|
|
96
|
+
discount: DaffProductDiscount;
|
|
97
|
+
/**
|
|
98
|
+
* The price of the product before discounts.
|
|
99
|
+
*/
|
|
100
|
+
originalPrice: number;
|
|
104
101
|
}
|
|
105
102
|
/**
|
|
106
103
|
* A ranged price for products that could have more than one possible price, depending on the configurations.
|
|
107
104
|
*/
|
|
108
|
-
interface DaffPriceRange {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
105
|
+
export interface DaffPriceRange {
|
|
106
|
+
/**
|
|
107
|
+
* The maximum prices of the product. Includes discounts, the maximum discounted price, and the maximum original price.
|
|
108
|
+
*/
|
|
109
|
+
maxPrice: DaffProductPrices;
|
|
110
|
+
/**
|
|
111
|
+
* The minimum prices of the product. Includes discounts, the minimum discounted price, and the minimum original price.
|
|
112
|
+
*/
|
|
113
|
+
minPrice: DaffProductPrices;
|
|
117
114
|
}
|
|
118
|
-
|
|
119
115
|
/**
|
|
120
116
|
* A product collection.
|
|
121
117
|
*
|
|
122
118
|
* @inheritdoc
|
|
123
119
|
*/
|
|
124
|
-
type DaffProductCollection = DaffCollection<DaffProduct>;
|
|
125
|
-
|
|
120
|
+
export type DaffProductCollection = DaffCollection<DaffProduct>;
|
|
126
121
|
/**
|
|
127
122
|
* Returns whether a DaffPriceRange has a discount.
|
|
128
123
|
*
|
|
129
124
|
* @param priceRange a DaffPriceRange
|
|
130
125
|
*/
|
|
131
|
-
declare const productPriceRangeHasDiscount: (priceRange: DaffPriceRange) => boolean;
|
|
132
|
-
|
|
126
|
+
export declare const productPriceRangeHasDiscount: (priceRange: DaffPriceRange) => boolean;
|
|
133
127
|
/**
|
|
134
128
|
* Returns whether the min and max prices of a DaffPriceRange are different.
|
|
135
129
|
*
|
|
136
130
|
* @param priceRange a DaffPriceRange
|
|
137
131
|
*/
|
|
138
|
-
declare const productPriceRangeHasPriceRange: (priceRange: DaffPriceRange) => boolean;
|
|
139
|
-
|
|
140
|
-
export { DaffProductTypeEnum, productPriceRangeHasDiscount, productPriceRangeHasPriceRange };
|
|
141
|
-
export type { DaffPriceRange, DaffProduct, DaffProductCollection, DaffProductDiscount, DaffProductImage, DaffProductPrices };
|
|
132
|
+
export declare const productPriceRangeHasPriceRange: (priceRange: DaffPriceRange) => boolean;
|