@infrab4a/connect 3.14.3-beta.0 → 3.14.3-beta.2
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/bundles/infrab4a-connect.umd.js +72 -68
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/models/category.d.ts +2 -0
- package/esm2015/domain/catalog/models/category.js +6 -1
- package/fesm2015/infrab4a-connect.js +50 -46
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/package.json +1 -1
|
@@ -1823,6 +1823,74 @@
|
|
|
1823
1823
|
return Filter;
|
|
1824
1824
|
}(BaseModel));
|
|
1825
1825
|
|
|
1826
|
+
var KitProduct = /** @class */ (function (_super) {
|
|
1827
|
+
__extends(KitProduct, _super);
|
|
1828
|
+
function KitProduct() {
|
|
1829
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1830
|
+
}
|
|
1831
|
+
Object.defineProperty(KitProduct, "identifiersFields", {
|
|
1832
|
+
get: function () {
|
|
1833
|
+
return ['productId', 'kitProductId'];
|
|
1834
|
+
},
|
|
1835
|
+
enumerable: false,
|
|
1836
|
+
configurable: true
|
|
1837
|
+
});
|
|
1838
|
+
return KitProduct;
|
|
1839
|
+
}(BaseModel));
|
|
1840
|
+
__decorate([
|
|
1841
|
+
classTransformer.Type(function () { return Product; }),
|
|
1842
|
+
__metadata("design:type", Product)
|
|
1843
|
+
], KitProduct.prototype, "kit", void 0);
|
|
1844
|
+
__decorate([
|
|
1845
|
+
classTransformer.Type(function () { return Product; }),
|
|
1846
|
+
__metadata("design:type", Product)
|
|
1847
|
+
], KitProduct.prototype, "product", void 0);
|
|
1848
|
+
|
|
1849
|
+
var Product = /** @class */ (function (_super) {
|
|
1850
|
+
__extends(Product, _super);
|
|
1851
|
+
function Product() {
|
|
1852
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1853
|
+
}
|
|
1854
|
+
Object.defineProperty(Product.prototype, "evaluation", {
|
|
1855
|
+
get: function () {
|
|
1856
|
+
return {
|
|
1857
|
+
reviews: this.reviews,
|
|
1858
|
+
count: this.reviewsTotal,
|
|
1859
|
+
rating: this.rate,
|
|
1860
|
+
};
|
|
1861
|
+
},
|
|
1862
|
+
set: function (evaluation) {
|
|
1863
|
+
if (!evaluation) {
|
|
1864
|
+
this.reviews = null;
|
|
1865
|
+
this.reviewsTotal = null;
|
|
1866
|
+
this.rate = null;
|
|
1867
|
+
return;
|
|
1868
|
+
}
|
|
1869
|
+
this.reviews = evaluation.reviews || this.reviews;
|
|
1870
|
+
this.reviewsTotal = evaluation.count || this.reviewsTotal;
|
|
1871
|
+
this.rate = evaluation.rating || this.rate;
|
|
1872
|
+
},
|
|
1873
|
+
enumerable: false,
|
|
1874
|
+
configurable: true
|
|
1875
|
+
});
|
|
1876
|
+
Object.defineProperty(Product, "identifiersFields", {
|
|
1877
|
+
get: function () {
|
|
1878
|
+
return ['id'];
|
|
1879
|
+
},
|
|
1880
|
+
enumerable: false,
|
|
1881
|
+
configurable: true
|
|
1882
|
+
});
|
|
1883
|
+
return Product;
|
|
1884
|
+
}(BaseModel));
|
|
1885
|
+
__decorate([
|
|
1886
|
+
classTransformer.Type(function () { return Category; }),
|
|
1887
|
+
__metadata("design:type", Category)
|
|
1888
|
+
], Product.prototype, "category", void 0);
|
|
1889
|
+
__decorate([
|
|
1890
|
+
classTransformer.Type(function () { return KitProduct; }),
|
|
1891
|
+
__metadata("design:type", Array)
|
|
1892
|
+
], Product.prototype, "kitProducts", void 0);
|
|
1893
|
+
|
|
1826
1894
|
var Category = /** @class */ (function (_super) {
|
|
1827
1895
|
__extends(Category, _super);
|
|
1828
1896
|
function Category() {
|
|
@@ -1845,6 +1913,10 @@
|
|
|
1845
1913
|
classTransformer.Type(function () { return Filter; }),
|
|
1846
1914
|
__metadata("design:type", Array)
|
|
1847
1915
|
], Category.prototype, "filters", void 0);
|
|
1916
|
+
__decorate([
|
|
1917
|
+
classTransformer.Type(function () { return Product; }),
|
|
1918
|
+
__metadata("design:type", Array)
|
|
1919
|
+
], Category.prototype, "childrenProducts", void 0);
|
|
1848
1920
|
|
|
1849
1921
|
var CategoryCollectionChildren = /** @class */ (function (_super) {
|
|
1850
1922
|
__extends(CategoryCollectionChildren, _super);
|
|
@@ -1918,74 +1990,6 @@
|
|
|
1918
1990
|
return FilterOption;
|
|
1919
1991
|
}(BaseModel));
|
|
1920
1992
|
|
|
1921
|
-
var Product = /** @class */ (function (_super) {
|
|
1922
|
-
__extends(Product, _super);
|
|
1923
|
-
function Product() {
|
|
1924
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1925
|
-
}
|
|
1926
|
-
Object.defineProperty(Product.prototype, "evaluation", {
|
|
1927
|
-
get: function () {
|
|
1928
|
-
return {
|
|
1929
|
-
reviews: this.reviews,
|
|
1930
|
-
count: this.reviewsTotal,
|
|
1931
|
-
rating: this.rate,
|
|
1932
|
-
};
|
|
1933
|
-
},
|
|
1934
|
-
set: function (evaluation) {
|
|
1935
|
-
if (!evaluation) {
|
|
1936
|
-
this.reviews = null;
|
|
1937
|
-
this.reviewsTotal = null;
|
|
1938
|
-
this.rate = null;
|
|
1939
|
-
return;
|
|
1940
|
-
}
|
|
1941
|
-
this.reviews = evaluation.reviews || this.reviews;
|
|
1942
|
-
this.reviewsTotal = evaluation.count || this.reviewsTotal;
|
|
1943
|
-
this.rate = evaluation.rating || this.rate;
|
|
1944
|
-
},
|
|
1945
|
-
enumerable: false,
|
|
1946
|
-
configurable: true
|
|
1947
|
-
});
|
|
1948
|
-
Object.defineProperty(Product, "identifiersFields", {
|
|
1949
|
-
get: function () {
|
|
1950
|
-
return ['id'];
|
|
1951
|
-
},
|
|
1952
|
-
enumerable: false,
|
|
1953
|
-
configurable: true
|
|
1954
|
-
});
|
|
1955
|
-
return Product;
|
|
1956
|
-
}(BaseModel));
|
|
1957
|
-
__decorate([
|
|
1958
|
-
classTransformer.Type(function () { return Category; }),
|
|
1959
|
-
__metadata("design:type", Category)
|
|
1960
|
-
], Product.prototype, "category", void 0);
|
|
1961
|
-
__decorate([
|
|
1962
|
-
classTransformer.Type(function () { return KitProduct; }),
|
|
1963
|
-
__metadata("design:type", Array)
|
|
1964
|
-
], Product.prototype, "kitProducts", void 0);
|
|
1965
|
-
|
|
1966
|
-
var KitProduct = /** @class */ (function (_super) {
|
|
1967
|
-
__extends(KitProduct, _super);
|
|
1968
|
-
function KitProduct() {
|
|
1969
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1970
|
-
}
|
|
1971
|
-
Object.defineProperty(KitProduct, "identifiersFields", {
|
|
1972
|
-
get: function () {
|
|
1973
|
-
return ['productId', 'kitProductId'];
|
|
1974
|
-
},
|
|
1975
|
-
enumerable: false,
|
|
1976
|
-
configurable: true
|
|
1977
|
-
});
|
|
1978
|
-
return KitProduct;
|
|
1979
|
-
}(BaseModel));
|
|
1980
|
-
__decorate([
|
|
1981
|
-
classTransformer.Type(function () { return Product; }),
|
|
1982
|
-
__metadata("design:type", Product)
|
|
1983
|
-
], KitProduct.prototype, "kit", void 0);
|
|
1984
|
-
__decorate([
|
|
1985
|
-
classTransformer.Type(function () { return Product; }),
|
|
1986
|
-
__metadata("design:type", Product)
|
|
1987
|
-
], KitProduct.prototype, "product", void 0);
|
|
1988
|
-
|
|
1989
1993
|
var Variant = /** @class */ (function (_super) {
|
|
1990
1994
|
__extends(Variant, _super);
|
|
1991
1995
|
function Variant() {
|