@kohost/api-client 3.1.10 → 3.1.12

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?: File;
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
- export interface File {
56
- /**
57
- * Name of the file.
58
- */
59
- name: string;
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
- * Base64-encoded data of the file.
83
+ * Size in bytes
66
84
  */
67
- data: string;
68
- [k: string]: unknown;
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?: string[];
70
+ features?: "pet"[];
71
71
  maximumOccupancy?: number;
72
72
  housekeepingStatus?: "clean" | "dirty" | "inspected" | "pickup";
73
73
  serviceStatus?: "inService" | "outOfOrder" | "outOfService";
@@ -25,7 +25,7 @@
25
25
  "type": "number"
26
26
  },
27
27
  "image": {
28
- "$ref": "definitions.json#/definitions/file"
28
+ "$ref": "mediaFile.json"
29
29
  },
30
30
  "category": {
31
31
  "type": "string"
@@ -77,7 +77,8 @@
77
77
  "features": {
78
78
  "type": "array",
79
79
  "items": {
80
- "type": "string"
80
+ "type": "string",
81
+ "enum": ["pet"]
81
82
  }
82
83
  },
83
84
  "maximumOccupancy": {
@@ -11039,7 +11039,8 @@ var require_space = __commonJS({
11039
11039
  features: {
11040
11040
  type: "array",
11041
11041
  items: {
11042
- type: "string"
11042
+ type: "string",
11043
+ enum: ["pet"]
11043
11044
  }
11044
11045
  },
11045
11046
  maximumOccupancy: {
@@ -11614,7 +11615,7 @@ var require_product = __commonJS({
11614
11615
  type: "number"
11615
11616
  },
11616
11617
  image: {
11617
- $ref: "definitions.json#/definitions/file"
11618
+ $ref: "mediaFile.json"
11618
11619
  },
11619
11620
  category: {
11620
11621
  type: "string"