vinmonopolet-ts 3.0.0 → 3.1.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/CHANGELOG.md
CHANGED
|
@@ -43,8 +43,8 @@ const class_transformer_1 = require("class-transformer");
|
|
|
43
43
|
const Volume_1 = require("./Volume");
|
|
44
44
|
const defaultCategory = { code: null, name: null, url: null };
|
|
45
45
|
const defaultAvailability = {
|
|
46
|
-
deliveryAvailability: {
|
|
47
|
-
storeAvailability: {
|
|
46
|
+
deliveryAvailability: { availableForPurchase: true, infos: [] },
|
|
47
|
+
storeAvailability: { availableForPurchase: true, infos: [] },
|
|
48
48
|
};
|
|
49
49
|
const mapFromStreamObject = (prod, product) => {
|
|
50
50
|
Object.keys(product).forEach((key) => {
|
|
@@ -14,8 +14,8 @@ import { Type } from "class-transformer";
|
|
|
14
14
|
import { Volume } from "./Volume";
|
|
15
15
|
const defaultCategory = { code: null, name: null, url: null };
|
|
16
16
|
const defaultAvailability = {
|
|
17
|
-
deliveryAvailability: {
|
|
18
|
-
storeAvailability: {
|
|
17
|
+
deliveryAvailability: { availableForPurchase: true, infos: [] },
|
|
18
|
+
storeAvailability: { availableForPurchase: true, infos: [] },
|
|
19
19
|
};
|
|
20
20
|
const mapFromStreamObject = (prod, product) => {
|
|
21
21
|
Object.keys(product).forEach((key) => {
|
|
@@ -5,12 +5,18 @@ import RawMaterial from "./RawMaterial";
|
|
|
5
5
|
import { Volume } from "./Volume";
|
|
6
6
|
interface IAvailability {
|
|
7
7
|
deliveryAvailability: {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
availableForPurchase: boolean;
|
|
9
|
+
infos: {
|
|
10
|
+
availability: string;
|
|
11
|
+
readableValue: string;
|
|
12
|
+
}[];
|
|
10
13
|
};
|
|
11
14
|
storeAvailability: {
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
availableForPurchase: boolean;
|
|
16
|
+
infos: {
|
|
17
|
+
availability: string;
|
|
18
|
+
readableValue: string;
|
|
19
|
+
}[];
|
|
14
20
|
};
|
|
15
21
|
}
|
|
16
22
|
export declare class StreamProduct {
|