@kohost/api-client 3.1.10 → 3.1.11
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.
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
export type Date =
|
|
9
|
+
| string
|
|
10
|
+
| {
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
|
|
8
14
|
export interface Product {
|
|
9
15
|
id?: string;
|
|
10
16
|
type?: string;
|
|
@@ -44,7 +50,7 @@ export interface Product {
|
|
|
44
50
|
[k: string]: unknown;
|
|
45
51
|
};
|
|
46
52
|
price: number;
|
|
47
|
-
image?:
|
|
53
|
+
image?: MediaFile;
|
|
48
54
|
category?: string;
|
|
49
55
|
imageUrl?: {
|
|
50
56
|
[k: string]: unknown;
|
|
@@ -52,18 +58,33 @@ export interface Product {
|
|
|
52
58
|
systemId?: string;
|
|
53
59
|
[k: string]: unknown;
|
|
54
60
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* MIME type of the file (e.g. application/pdf).
|
|
62
|
-
*/
|
|
61
|
+
/**
|
|
62
|
+
* Any media file
|
|
63
|
+
*/
|
|
64
|
+
export interface MediaFile {
|
|
65
|
+
id?: string;
|
|
63
66
|
type: string;
|
|
67
|
+
name?: string;
|
|
68
|
+
fileHash?: string;
|
|
69
|
+
mimeType?:
|
|
70
|
+
| "image/*"
|
|
71
|
+
| "image/jpeg"
|
|
72
|
+
| "image/png"
|
|
73
|
+
| "image/gif"
|
|
74
|
+
| "image/webp"
|
|
75
|
+
| "image/avif"
|
|
76
|
+
| "image/svg+xml"
|
|
77
|
+
| "application/pdf";
|
|
78
|
+
data?: string;
|
|
79
|
+
url?: string;
|
|
80
|
+
width?: number;
|
|
81
|
+
height?: number;
|
|
64
82
|
/**
|
|
65
|
-
*
|
|
83
|
+
* Size in bytes
|
|
66
84
|
*/
|
|
67
|
-
|
|
68
|
-
|
|
85
|
+
size?: number;
|
|
86
|
+
uploadUrl?: string;
|
|
87
|
+
uploadUrlExpires?: Date;
|
|
88
|
+
createdBy?: string;
|
|
89
|
+
systemId?: string;
|
|
69
90
|
}
|
|
@@ -67,7 +67,7 @@ export interface Space {
|
|
|
67
67
|
};
|
|
68
68
|
allowed?: boolean;
|
|
69
69
|
};
|
|
70
|
-
features?:
|
|
70
|
+
features?: "pet";
|
|
71
71
|
maximumOccupancy?: number;
|
|
72
72
|
housekeepingStatus?: "clean" | "dirty" | "inspected" | "pickup";
|
|
73
73
|
serviceStatus?: "inService" | "outOfOrder" | "outOfService";
|
package/dist/esm/Models.js
CHANGED
|
@@ -11037,10 +11037,10 @@ var require_space = __commonJS({
|
|
|
11037
11037
|
}
|
|
11038
11038
|
},
|
|
11039
11039
|
features: {
|
|
11040
|
-
type: "
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
|
|
11040
|
+
type: "string",
|
|
11041
|
+
enum: [
|
|
11042
|
+
"pet"
|
|
11043
|
+
]
|
|
11044
11044
|
},
|
|
11045
11045
|
maximumOccupancy: {
|
|
11046
11046
|
type: "number",
|
|
@@ -11614,7 +11614,7 @@ var require_product = __commonJS({
|
|
|
11614
11614
|
type: "number"
|
|
11615
11615
|
},
|
|
11616
11616
|
image: {
|
|
11617
|
-
$ref: "
|
|
11617
|
+
$ref: "mediaFile.json"
|
|
11618
11618
|
},
|
|
11619
11619
|
category: {
|
|
11620
11620
|
type: "string"
|