vinmonopolet-ts 5.2.3 → 5.2.4
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/CHANGELOG.md
CHANGED
|
@@ -103,7 +103,6 @@ __decorate([
|
|
|
103
103
|
(0, class_transformer_1.Type)(() => Volume_1.Volume)
|
|
104
104
|
], BaseProduct.prototype, "volume", void 0);
|
|
105
105
|
__decorate([
|
|
106
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
107
106
|
(0, class_validator_1.ValidateNested)(),
|
|
108
107
|
(0, class_transformer_1.Type)(() => Category_1.default)
|
|
109
108
|
], BaseProduct.prototype, "mainCategory", void 0);
|
|
@@ -113,7 +112,6 @@ __decorate([
|
|
|
113
112
|
(0, class_transformer_1.Type)(() => Category_1.default)
|
|
114
113
|
], BaseProduct.prototype, "mainSubCategory", void 0);
|
|
115
114
|
__decorate([
|
|
116
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
117
115
|
(0, class_validator_1.ValidateNested)(),
|
|
118
116
|
(0, class_transformer_1.Type)(() => Category_1.default)
|
|
119
117
|
], BaseProduct.prototype, "mainCountry", void 0);
|
|
@@ -126,7 +124,6 @@ __decorate([
|
|
|
126
124
|
(0, class_transformer_1.Type)(() => Category_1.default)
|
|
127
125
|
], BaseProduct.prototype, "subDistrict", void 0);
|
|
128
126
|
__decorate([
|
|
129
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
130
127
|
(0, class_validator_1.IsString)()
|
|
131
128
|
], BaseProduct.prototype, "productSelection", void 0);
|
|
132
129
|
__decorate([
|
|
@@ -142,7 +142,6 @@ __decorate([
|
|
|
142
142
|
Type(() => Volume)
|
|
143
143
|
], BaseProduct.prototype, "volume", void 0);
|
|
144
144
|
__decorate([
|
|
145
|
-
IsNotEmpty(),
|
|
146
145
|
ValidateNested(),
|
|
147
146
|
Type(() => Category)
|
|
148
147
|
], BaseProduct.prototype, "mainCategory", void 0);
|
|
@@ -152,7 +151,6 @@ __decorate([
|
|
|
152
151
|
Type(() => Category)
|
|
153
152
|
], BaseProduct.prototype, "mainSubCategory", void 0);
|
|
154
153
|
__decorate([
|
|
155
|
-
IsNotEmpty(),
|
|
156
154
|
ValidateNested(),
|
|
157
155
|
Type(() => Category)
|
|
158
156
|
], BaseProduct.prototype, "mainCountry", void 0);
|
|
@@ -165,7 +163,6 @@ __decorate([
|
|
|
165
163
|
Type(() => Category)
|
|
166
164
|
], BaseProduct.prototype, "subDistrict", void 0);
|
|
167
165
|
__decorate([
|
|
168
|
-
IsNotEmpty(),
|
|
169
166
|
IsString()
|
|
170
167
|
], BaseProduct.prototype, "productSelection", void 0);
|
|
171
168
|
__decorate([
|
|
@@ -55,7 +55,7 @@ declare class BaseProduct {
|
|
|
55
55
|
/**
|
|
56
56
|
* The given product selection the product is available in (Bestillingsutvalget, Basisutvalget etc).
|
|
57
57
|
*/
|
|
58
|
-
productSelection
|
|
58
|
+
productSelection?: string;
|
|
59
59
|
/**
|
|
60
60
|
* information regarding the product availability either in stores or through mail.
|
|
61
61
|
*/
|
|
@@ -68,7 +68,7 @@ declare class BaseProduct {
|
|
|
68
68
|
* The status of the product. Most commonly just "active".
|
|
69
69
|
*/
|
|
70
70
|
status: any;
|
|
71
|
-
constructor(code: string, name: string, url: string, price: number, pricePerLiter: number, images: ProductImage[], volume: Volume | undefined, mainCategory: Category | undefined, subCategory: Category | undefined, country: Category | undefined, district: Category | undefined, subDistrict: Category | undefined, productSeelection: string, availability: IAvailability | undefined, buyable: boolean, status: string);
|
|
71
|
+
constructor(code: string, name: string, url: string, price: number, pricePerLiter: number, images: ProductImage[], volume: Volume | undefined, mainCategory: Category | undefined, subCategory: Category | undefined, country: Category | undefined, district: Category | undefined, subDistrict: Category | undefined, productSeelection: string | undefined, availability: IAvailability | undefined, buyable: boolean, status: string);
|
|
72
72
|
/**
|
|
73
73
|
* Gets the populated version of the product.
|
|
74
74
|
* @returns Promise<PopulatedProduct>
|