@kohost/api-client 3.0.0-beta.61 → 3.0.0-beta.63
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/dist/cjs/Client/index.js +80 -40
- package/dist/cjs/schemas/PropertySchema.d.ts +15 -3
- package/dist/cjs/schemas/property.json +43 -6
- package/dist/esm/Client.js +80 -40
- package/dist/esm/Client.js.map +3 -3
- package/dist/esm/Models.js +43 -6
- package/dist/esm/Models.js.map +2 -2
- package/dist/useCases/{CreateSpaceType.js → CreateCateory.js} +2 -2
- package/dist/useCases/{DeleteSpaceType.js → DeleteCategory.js} +2 -2
- package/dist/useCases/{DescribeSpaceType.js → DescribeCategory.js} +2 -2
- package/dist/useCases/{ListSpaceTypes.js → ListCategories.js} +2 -2
- package/dist/useCases/TipUser.js +32 -0
- package/dist/useCases/{UpdateSpaceType.js → UpdateCategory.js} +2 -2
- package/package.json +1 -1
package/dist/cjs/Client/index.js
CHANGED
|
@@ -803,6 +803,44 @@ var require_DescribeMyAccessCredentials = __commonJS({
|
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
805
|
|
|
806
|
+
// dist/useCases/TipUser.js
|
|
807
|
+
var require_TipUser = __commonJS({
|
|
808
|
+
"dist/useCases/TipUser.js"(exports2, module2) {
|
|
809
|
+
module2.exports = /* @__PURE__ */ __name(function TipUser2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
810
|
+
if (!requestData)
|
|
811
|
+
requestData = {};
|
|
812
|
+
const pathParams = [":id"];
|
|
813
|
+
const { data, query, headers } = requestData;
|
|
814
|
+
let url = "/users/:id/tip";
|
|
815
|
+
if (pathParams && data) {
|
|
816
|
+
for (const param of pathParams) {
|
|
817
|
+
const paramName = param.replace(":", "");
|
|
818
|
+
url = url.replace(param, data[paramName]);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
822
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
823
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
824
|
+
return Promise.reject(
|
|
825
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
826
|
+
);
|
|
827
|
+
}
|
|
828
|
+
const config = {
|
|
829
|
+
method: "post",
|
|
830
|
+
url,
|
|
831
|
+
...httpConfigOptions
|
|
832
|
+
};
|
|
833
|
+
if (data)
|
|
834
|
+
config.data = data;
|
|
835
|
+
if (query)
|
|
836
|
+
config.params = query;
|
|
837
|
+
if (headers)
|
|
838
|
+
config.headers = headers;
|
|
839
|
+
return this._http.request(config);
|
|
840
|
+
}, "TipUser");
|
|
841
|
+
}
|
|
842
|
+
});
|
|
843
|
+
|
|
806
844
|
// dist/useCases/ListSpaces.js
|
|
807
845
|
var require_ListSpaces = __commonJS({
|
|
808
846
|
"dist/useCases/ListSpaces.js"(exports2, module2) {
|
|
@@ -1145,15 +1183,15 @@ var require_SetSpaceScene = __commonJS({
|
|
|
1145
1183
|
}
|
|
1146
1184
|
});
|
|
1147
1185
|
|
|
1148
|
-
// dist/useCases/
|
|
1149
|
-
var
|
|
1150
|
-
"dist/useCases/
|
|
1151
|
-
module2.exports = /* @__PURE__ */ __name(function
|
|
1186
|
+
// dist/useCases/CreateCateory.js
|
|
1187
|
+
var require_CreateCateory = __commonJS({
|
|
1188
|
+
"dist/useCases/CreateCateory.js"(exports2, module2) {
|
|
1189
|
+
module2.exports = /* @__PURE__ */ __name(function CreateCateory2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1152
1190
|
if (!requestData)
|
|
1153
1191
|
requestData = {};
|
|
1154
1192
|
const pathParams = null;
|
|
1155
1193
|
const { data, query, headers } = requestData;
|
|
1156
|
-
let url = "/
|
|
1194
|
+
let url = "/categories";
|
|
1157
1195
|
if (pathParams && data) {
|
|
1158
1196
|
for (const param of pathParams) {
|
|
1159
1197
|
const paramName = param.replace(":", "");
|
|
@@ -1179,19 +1217,19 @@ var require_CreateSpaceType = __commonJS({
|
|
|
1179
1217
|
if (headers)
|
|
1180
1218
|
config.headers = headers;
|
|
1181
1219
|
return this._http.request(config);
|
|
1182
|
-
}, "
|
|
1220
|
+
}, "CreateCateory");
|
|
1183
1221
|
}
|
|
1184
1222
|
});
|
|
1185
1223
|
|
|
1186
|
-
// dist/useCases/
|
|
1187
|
-
var
|
|
1188
|
-
"dist/useCases/
|
|
1189
|
-
module2.exports = /* @__PURE__ */ __name(function
|
|
1224
|
+
// dist/useCases/DeleteCategory.js
|
|
1225
|
+
var require_DeleteCategory = __commonJS({
|
|
1226
|
+
"dist/useCases/DeleteCategory.js"(exports2, module2) {
|
|
1227
|
+
module2.exports = /* @__PURE__ */ __name(function DeleteCategory2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1190
1228
|
if (!requestData)
|
|
1191
1229
|
requestData = {};
|
|
1192
1230
|
const pathParams = [":id"];
|
|
1193
1231
|
const { data, query, headers } = requestData;
|
|
1194
|
-
let url = "/
|
|
1232
|
+
let url = "/categories/:id";
|
|
1195
1233
|
if (pathParams && data) {
|
|
1196
1234
|
for (const param of pathParams) {
|
|
1197
1235
|
const paramName = param.replace(":", "");
|
|
@@ -1217,19 +1255,19 @@ var require_DeleteSpaceType = __commonJS({
|
|
|
1217
1255
|
if (headers)
|
|
1218
1256
|
config.headers = headers;
|
|
1219
1257
|
return this._http.request(config);
|
|
1220
|
-
}, "
|
|
1258
|
+
}, "DeleteCategory");
|
|
1221
1259
|
}
|
|
1222
1260
|
});
|
|
1223
1261
|
|
|
1224
|
-
// dist/useCases/
|
|
1225
|
-
var
|
|
1226
|
-
"dist/useCases/
|
|
1227
|
-
module2.exports = /* @__PURE__ */ __name(function
|
|
1262
|
+
// dist/useCases/DescribeCategory.js
|
|
1263
|
+
var require_DescribeCategory = __commonJS({
|
|
1264
|
+
"dist/useCases/DescribeCategory.js"(exports2, module2) {
|
|
1265
|
+
module2.exports = /* @__PURE__ */ __name(function DescribeCategory2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1228
1266
|
if (!requestData)
|
|
1229
1267
|
requestData = {};
|
|
1230
1268
|
const pathParams = [":id"];
|
|
1231
1269
|
const { data, query, headers } = requestData;
|
|
1232
|
-
let url = "/
|
|
1270
|
+
let url = "/categories/:id";
|
|
1233
1271
|
if (pathParams && data) {
|
|
1234
1272
|
for (const param of pathParams) {
|
|
1235
1273
|
const paramName = param.replace(":", "");
|
|
@@ -1255,19 +1293,19 @@ var require_DescribeSpaceType = __commonJS({
|
|
|
1255
1293
|
if (headers)
|
|
1256
1294
|
config.headers = headers;
|
|
1257
1295
|
return this._http.request(config);
|
|
1258
|
-
}, "
|
|
1296
|
+
}, "DescribeCategory");
|
|
1259
1297
|
}
|
|
1260
1298
|
});
|
|
1261
1299
|
|
|
1262
|
-
// dist/useCases/
|
|
1263
|
-
var
|
|
1264
|
-
"dist/useCases/
|
|
1265
|
-
module2.exports = /* @__PURE__ */ __name(function
|
|
1300
|
+
// dist/useCases/ListCategories.js
|
|
1301
|
+
var require_ListCategories = __commonJS({
|
|
1302
|
+
"dist/useCases/ListCategories.js"(exports2, module2) {
|
|
1303
|
+
module2.exports = /* @__PURE__ */ __name(function ListCategories2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1266
1304
|
if (!requestData)
|
|
1267
1305
|
requestData = {};
|
|
1268
1306
|
const pathParams = null;
|
|
1269
1307
|
const { data, query, headers } = requestData;
|
|
1270
|
-
let url = "/
|
|
1308
|
+
let url = "/categories";
|
|
1271
1309
|
if (pathParams && data) {
|
|
1272
1310
|
for (const param of pathParams) {
|
|
1273
1311
|
const paramName = param.replace(":", "");
|
|
@@ -1293,19 +1331,19 @@ var require_ListSpaceTypes = __commonJS({
|
|
|
1293
1331
|
if (headers)
|
|
1294
1332
|
config.headers = headers;
|
|
1295
1333
|
return this._http.request(config);
|
|
1296
|
-
}, "
|
|
1334
|
+
}, "ListCategories");
|
|
1297
1335
|
}
|
|
1298
1336
|
});
|
|
1299
1337
|
|
|
1300
|
-
// dist/useCases/
|
|
1301
|
-
var
|
|
1302
|
-
"dist/useCases/
|
|
1303
|
-
module2.exports = /* @__PURE__ */ __name(function
|
|
1338
|
+
// dist/useCases/UpdateCategory.js
|
|
1339
|
+
var require_UpdateCategory = __commonJS({
|
|
1340
|
+
"dist/useCases/UpdateCategory.js"(exports2, module2) {
|
|
1341
|
+
module2.exports = /* @__PURE__ */ __name(function UpdateCategory2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1304
1342
|
if (!requestData)
|
|
1305
1343
|
requestData = {};
|
|
1306
1344
|
const pathParams = [":id"];
|
|
1307
1345
|
const { data, query, headers } = requestData;
|
|
1308
|
-
let url = "/
|
|
1346
|
+
let url = "/categories/:id";
|
|
1309
1347
|
if (pathParams && data) {
|
|
1310
1348
|
for (const param of pathParams) {
|
|
1311
1349
|
const paramName = param.replace(":", "");
|
|
@@ -1331,7 +1369,7 @@ var require_UpdateSpaceType = __commonJS({
|
|
|
1331
1369
|
if (headers)
|
|
1332
1370
|
config.headers = headers;
|
|
1333
1371
|
return this._http.request(config);
|
|
1334
|
-
}, "
|
|
1372
|
+
}, "UpdateCategory");
|
|
1335
1373
|
}
|
|
1336
1374
|
});
|
|
1337
1375
|
|
|
@@ -5765,6 +5803,7 @@ var ListUserSpaces = require_ListUserSpaces();
|
|
|
5765
5803
|
var ListUserOrders = require_ListUserOrders();
|
|
5766
5804
|
var ListTeam = require_ListTeam();
|
|
5767
5805
|
var DescribeMyAccessCredentials = require_DescribeMyAccessCredentials();
|
|
5806
|
+
var TipUser = require_TipUser();
|
|
5768
5807
|
var ListSpaces = require_ListSpaces();
|
|
5769
5808
|
var ListMySpaces = require_ListMySpaces();
|
|
5770
5809
|
var ListRoomsInSpace = require_ListRoomsInSpace();
|
|
@@ -5774,11 +5813,11 @@ var DescribeSpace = require_DescribeSpace();
|
|
|
5774
5813
|
var DeleteSpace = require_DeleteSpace();
|
|
5775
5814
|
var CreateRoomInSpace = require_CreateRoomInSpace();
|
|
5776
5815
|
var SetSpaceScene = require_SetSpaceScene();
|
|
5777
|
-
var
|
|
5778
|
-
var
|
|
5779
|
-
var
|
|
5780
|
-
var
|
|
5781
|
-
var
|
|
5816
|
+
var CreateCateory = require_CreateCateory();
|
|
5817
|
+
var DeleteCategory = require_DeleteCategory();
|
|
5818
|
+
var DescribeCategory = require_DescribeCategory();
|
|
5819
|
+
var ListCategories = require_ListCategories();
|
|
5820
|
+
var UpdateCategory = require_UpdateCategory();
|
|
5782
5821
|
var ListRooms = require_ListRooms();
|
|
5783
5822
|
var DescribeRoom = require_DescribeRoom();
|
|
5784
5823
|
var CreateRoom = require_CreateRoom();
|
|
@@ -6028,6 +6067,7 @@ KohostApiClient.prototype.ListUserSpaces = ListUserSpaces;
|
|
|
6028
6067
|
KohostApiClient.prototype.ListUserOrders = ListUserOrders;
|
|
6029
6068
|
KohostApiClient.prototype.ListTeam = ListTeam;
|
|
6030
6069
|
KohostApiClient.prototype.DescribeMyAccessCredentials = DescribeMyAccessCredentials;
|
|
6070
|
+
KohostApiClient.prototype.TipUser = TipUser;
|
|
6031
6071
|
KohostApiClient.prototype.ListSpaces = ListSpaces;
|
|
6032
6072
|
KohostApiClient.prototype.ListMySpaces = ListMySpaces;
|
|
6033
6073
|
KohostApiClient.prototype.ListRoomsInSpace = ListRoomsInSpace;
|
|
@@ -6037,11 +6077,11 @@ KohostApiClient.prototype.DescribeSpace = DescribeSpace;
|
|
|
6037
6077
|
KohostApiClient.prototype.DeleteSpace = DeleteSpace;
|
|
6038
6078
|
KohostApiClient.prototype.CreateRoomInSpace = CreateRoomInSpace;
|
|
6039
6079
|
KohostApiClient.prototype.SetSpaceScene = SetSpaceScene;
|
|
6040
|
-
KohostApiClient.prototype.
|
|
6041
|
-
KohostApiClient.prototype.
|
|
6042
|
-
KohostApiClient.prototype.
|
|
6043
|
-
KohostApiClient.prototype.
|
|
6044
|
-
KohostApiClient.prototype.
|
|
6080
|
+
KohostApiClient.prototype.CreateCateory = CreateCateory;
|
|
6081
|
+
KohostApiClient.prototype.DeleteCategory = DeleteCategory;
|
|
6082
|
+
KohostApiClient.prototype.DescribeCategory = DescribeCategory;
|
|
6083
|
+
KohostApiClient.prototype.ListCategories = ListCategories;
|
|
6084
|
+
KohostApiClient.prototype.UpdateCategory = UpdateCategory;
|
|
6045
6085
|
KohostApiClient.prototype.ListRooms = ListRooms;
|
|
6046
6086
|
KohostApiClient.prototype.DescribeRoom = DescribeRoom;
|
|
6047
6087
|
KohostApiClient.prototype.CreateRoom = CreateRoom;
|
|
@@ -19,6 +19,8 @@ export interface Property {
|
|
|
19
19
|
* Reference (id) to the organization that owns this property
|
|
20
20
|
*/
|
|
21
21
|
organization: string;
|
|
22
|
+
checkInTime?: string;
|
|
23
|
+
checkOutTime?: string;
|
|
22
24
|
address?: {
|
|
23
25
|
street?: string;
|
|
24
26
|
city?: string;
|
|
@@ -70,14 +72,24 @@ export interface Property {
|
|
|
70
72
|
identification?: unknown;
|
|
71
73
|
earlyCheckIn?: {
|
|
72
74
|
dynamic: boolean;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
minimumPrice?: number;
|
|
76
|
+
maximumPrice?: number;
|
|
77
|
+
priceRatioPerHour?: number;
|
|
75
78
|
[k: string]: unknown;
|
|
76
79
|
};
|
|
77
80
|
roomUpgrades?: unknown;
|
|
78
81
|
[k: string]: unknown;
|
|
79
82
|
};
|
|
80
|
-
CheckOut?:
|
|
83
|
+
CheckOut?: {
|
|
84
|
+
lateCheckOut?: {
|
|
85
|
+
dynamic: boolean;
|
|
86
|
+
minimumPrice?: number;
|
|
87
|
+
maximumPrice?: number;
|
|
88
|
+
priceRatioPerHour?: number;
|
|
89
|
+
[k: string]: unknown;
|
|
90
|
+
};
|
|
91
|
+
[k: string]: unknown;
|
|
92
|
+
};
|
|
81
93
|
Concierge?: unknown;
|
|
82
94
|
DigitalKey?: {
|
|
83
95
|
system?: "salto";
|
|
@@ -29,6 +29,12 @@
|
|
|
29
29
|
"type": "string",
|
|
30
30
|
"description": "Reference (id) to the organization that owns this property"
|
|
31
31
|
},
|
|
32
|
+
"checkInTime": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"checkOutTime": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
32
38
|
"address": {
|
|
33
39
|
"type": "object",
|
|
34
40
|
"properties": {
|
|
@@ -187,24 +193,55 @@
|
|
|
187
193
|
"identification": {},
|
|
188
194
|
"earlyCheckIn": {
|
|
189
195
|
"type": "object",
|
|
190
|
-
"required": ["dynamic"
|
|
196
|
+
"required": ["dynamic"],
|
|
191
197
|
"properties": {
|
|
192
198
|
"dynamic": {
|
|
193
199
|
"type": "boolean",
|
|
194
200
|
"default": false
|
|
195
201
|
},
|
|
196
|
-
"
|
|
197
|
-
"type": "
|
|
202
|
+
"minimumPrice": {
|
|
203
|
+
"type": "number",
|
|
204
|
+
"default": 10
|
|
205
|
+
},
|
|
206
|
+
"maximumPrice": {
|
|
207
|
+
"type": "number",
|
|
208
|
+
"default": 50
|
|
198
209
|
},
|
|
199
|
-
"
|
|
200
|
-
"type": "
|
|
210
|
+
"priceRatioPerHour": {
|
|
211
|
+
"type": "number",
|
|
212
|
+
"default": 0.1
|
|
201
213
|
}
|
|
202
214
|
}
|
|
203
215
|
},
|
|
204
216
|
"roomUpgrades": {}
|
|
205
217
|
}
|
|
206
218
|
},
|
|
207
|
-
"CheckOut": {
|
|
219
|
+
"CheckOut": {
|
|
220
|
+
"properties": {
|
|
221
|
+
"lateCheckOut": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"required": ["dynamic"],
|
|
224
|
+
"properties": {
|
|
225
|
+
"dynamic": {
|
|
226
|
+
"type": "boolean",
|
|
227
|
+
"default": false
|
|
228
|
+
},
|
|
229
|
+
"minimumPrice": {
|
|
230
|
+
"type": "number",
|
|
231
|
+
"default": 10
|
|
232
|
+
},
|
|
233
|
+
"maximumPrice": {
|
|
234
|
+
"type": "number",
|
|
235
|
+
"default": 50
|
|
236
|
+
},
|
|
237
|
+
"priceRatioPerHour": {
|
|
238
|
+
"type": "number",
|
|
239
|
+
"default": 0.1
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
208
245
|
"Concierge": {},
|
|
209
246
|
"DigitalKey": {
|
|
210
247
|
"type": "object",
|
package/dist/esm/Client.js
CHANGED
|
@@ -803,6 +803,44 @@ var require_DescribeMyAccessCredentials = __commonJS({
|
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
805
|
|
|
806
|
+
// dist/useCases/TipUser.js
|
|
807
|
+
var require_TipUser = __commonJS({
|
|
808
|
+
"dist/useCases/TipUser.js"(exports, module) {
|
|
809
|
+
module.exports = /* @__PURE__ */ __name(function TipUser(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
810
|
+
if (!requestData)
|
|
811
|
+
requestData = {};
|
|
812
|
+
const pathParams = [":id"];
|
|
813
|
+
const { data, query, headers } = requestData;
|
|
814
|
+
let url = "/users/:id/tip";
|
|
815
|
+
if (pathParams && data) {
|
|
816
|
+
for (const param of pathParams) {
|
|
817
|
+
const paramName = param.replace(":", "");
|
|
818
|
+
url = url.replace(param, data[paramName]);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
822
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
823
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
824
|
+
return Promise.reject(
|
|
825
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
826
|
+
);
|
|
827
|
+
}
|
|
828
|
+
const config = {
|
|
829
|
+
method: "post",
|
|
830
|
+
url,
|
|
831
|
+
...httpConfigOptions
|
|
832
|
+
};
|
|
833
|
+
if (data)
|
|
834
|
+
config.data = data;
|
|
835
|
+
if (query)
|
|
836
|
+
config.params = query;
|
|
837
|
+
if (headers)
|
|
838
|
+
config.headers = headers;
|
|
839
|
+
return this._http.request(config);
|
|
840
|
+
}, "TipUser");
|
|
841
|
+
}
|
|
842
|
+
});
|
|
843
|
+
|
|
806
844
|
// dist/useCases/ListSpaces.js
|
|
807
845
|
var require_ListSpaces = __commonJS({
|
|
808
846
|
"dist/useCases/ListSpaces.js"(exports, module) {
|
|
@@ -1145,15 +1183,15 @@ var require_SetSpaceScene = __commonJS({
|
|
|
1145
1183
|
}
|
|
1146
1184
|
});
|
|
1147
1185
|
|
|
1148
|
-
// dist/useCases/
|
|
1149
|
-
var
|
|
1150
|
-
"dist/useCases/
|
|
1151
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
1186
|
+
// dist/useCases/CreateCateory.js
|
|
1187
|
+
var require_CreateCateory = __commonJS({
|
|
1188
|
+
"dist/useCases/CreateCateory.js"(exports, module) {
|
|
1189
|
+
module.exports = /* @__PURE__ */ __name(function CreateCateory(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1152
1190
|
if (!requestData)
|
|
1153
1191
|
requestData = {};
|
|
1154
1192
|
const pathParams = null;
|
|
1155
1193
|
const { data, query, headers } = requestData;
|
|
1156
|
-
let url = "/
|
|
1194
|
+
let url = "/categories";
|
|
1157
1195
|
if (pathParams && data) {
|
|
1158
1196
|
for (const param of pathParams) {
|
|
1159
1197
|
const paramName = param.replace(":", "");
|
|
@@ -1179,19 +1217,19 @@ var require_CreateSpaceType = __commonJS({
|
|
|
1179
1217
|
if (headers)
|
|
1180
1218
|
config.headers = headers;
|
|
1181
1219
|
return this._http.request(config);
|
|
1182
|
-
}, "
|
|
1220
|
+
}, "CreateCateory");
|
|
1183
1221
|
}
|
|
1184
1222
|
});
|
|
1185
1223
|
|
|
1186
|
-
// dist/useCases/
|
|
1187
|
-
var
|
|
1188
|
-
"dist/useCases/
|
|
1189
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
1224
|
+
// dist/useCases/DeleteCategory.js
|
|
1225
|
+
var require_DeleteCategory = __commonJS({
|
|
1226
|
+
"dist/useCases/DeleteCategory.js"(exports, module) {
|
|
1227
|
+
module.exports = /* @__PURE__ */ __name(function DeleteCategory(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1190
1228
|
if (!requestData)
|
|
1191
1229
|
requestData = {};
|
|
1192
1230
|
const pathParams = [":id"];
|
|
1193
1231
|
const { data, query, headers } = requestData;
|
|
1194
|
-
let url = "/
|
|
1232
|
+
let url = "/categories/:id";
|
|
1195
1233
|
if (pathParams && data) {
|
|
1196
1234
|
for (const param of pathParams) {
|
|
1197
1235
|
const paramName = param.replace(":", "");
|
|
@@ -1217,19 +1255,19 @@ var require_DeleteSpaceType = __commonJS({
|
|
|
1217
1255
|
if (headers)
|
|
1218
1256
|
config.headers = headers;
|
|
1219
1257
|
return this._http.request(config);
|
|
1220
|
-
}, "
|
|
1258
|
+
}, "DeleteCategory");
|
|
1221
1259
|
}
|
|
1222
1260
|
});
|
|
1223
1261
|
|
|
1224
|
-
// dist/useCases/
|
|
1225
|
-
var
|
|
1226
|
-
"dist/useCases/
|
|
1227
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
1262
|
+
// dist/useCases/DescribeCategory.js
|
|
1263
|
+
var require_DescribeCategory = __commonJS({
|
|
1264
|
+
"dist/useCases/DescribeCategory.js"(exports, module) {
|
|
1265
|
+
module.exports = /* @__PURE__ */ __name(function DescribeCategory(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1228
1266
|
if (!requestData)
|
|
1229
1267
|
requestData = {};
|
|
1230
1268
|
const pathParams = [":id"];
|
|
1231
1269
|
const { data, query, headers } = requestData;
|
|
1232
|
-
let url = "/
|
|
1270
|
+
let url = "/categories/:id";
|
|
1233
1271
|
if (pathParams && data) {
|
|
1234
1272
|
for (const param of pathParams) {
|
|
1235
1273
|
const paramName = param.replace(":", "");
|
|
@@ -1255,19 +1293,19 @@ var require_DescribeSpaceType = __commonJS({
|
|
|
1255
1293
|
if (headers)
|
|
1256
1294
|
config.headers = headers;
|
|
1257
1295
|
return this._http.request(config);
|
|
1258
|
-
}, "
|
|
1296
|
+
}, "DescribeCategory");
|
|
1259
1297
|
}
|
|
1260
1298
|
});
|
|
1261
1299
|
|
|
1262
|
-
// dist/useCases/
|
|
1263
|
-
var
|
|
1264
|
-
"dist/useCases/
|
|
1265
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
1300
|
+
// dist/useCases/ListCategories.js
|
|
1301
|
+
var require_ListCategories = __commonJS({
|
|
1302
|
+
"dist/useCases/ListCategories.js"(exports, module) {
|
|
1303
|
+
module.exports = /* @__PURE__ */ __name(function ListCategories(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1266
1304
|
if (!requestData)
|
|
1267
1305
|
requestData = {};
|
|
1268
1306
|
const pathParams = null;
|
|
1269
1307
|
const { data, query, headers } = requestData;
|
|
1270
|
-
let url = "/
|
|
1308
|
+
let url = "/categories";
|
|
1271
1309
|
if (pathParams && data) {
|
|
1272
1310
|
for (const param of pathParams) {
|
|
1273
1311
|
const paramName = param.replace(":", "");
|
|
@@ -1293,19 +1331,19 @@ var require_ListSpaceTypes = __commonJS({
|
|
|
1293
1331
|
if (headers)
|
|
1294
1332
|
config.headers = headers;
|
|
1295
1333
|
return this._http.request(config);
|
|
1296
|
-
}, "
|
|
1334
|
+
}, "ListCategories");
|
|
1297
1335
|
}
|
|
1298
1336
|
});
|
|
1299
1337
|
|
|
1300
|
-
// dist/useCases/
|
|
1301
|
-
var
|
|
1302
|
-
"dist/useCases/
|
|
1303
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
1338
|
+
// dist/useCases/UpdateCategory.js
|
|
1339
|
+
var require_UpdateCategory = __commonJS({
|
|
1340
|
+
"dist/useCases/UpdateCategory.js"(exports, module) {
|
|
1341
|
+
module.exports = /* @__PURE__ */ __name(function UpdateCategory(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1304
1342
|
if (!requestData)
|
|
1305
1343
|
requestData = {};
|
|
1306
1344
|
const pathParams = [":id"];
|
|
1307
1345
|
const { data, query, headers } = requestData;
|
|
1308
|
-
let url = "/
|
|
1346
|
+
let url = "/categories/:id";
|
|
1309
1347
|
if (pathParams && data) {
|
|
1310
1348
|
for (const param of pathParams) {
|
|
1311
1349
|
const paramName = param.replace(":", "");
|
|
@@ -1331,7 +1369,7 @@ var require_UpdateSpaceType = __commonJS({
|
|
|
1331
1369
|
if (headers)
|
|
1332
1370
|
config.headers = headers;
|
|
1333
1371
|
return this._http.request(config);
|
|
1334
|
-
}, "
|
|
1372
|
+
}, "UpdateCategory");
|
|
1335
1373
|
}
|
|
1336
1374
|
});
|
|
1337
1375
|
|
|
@@ -8236,6 +8274,7 @@ var require_Client = __commonJS({
|
|
|
8236
8274
|
var ListUserOrders = require_ListUserOrders();
|
|
8237
8275
|
var ListTeam = require_ListTeam();
|
|
8238
8276
|
var DescribeMyAccessCredentials = require_DescribeMyAccessCredentials();
|
|
8277
|
+
var TipUser = require_TipUser();
|
|
8239
8278
|
var ListSpaces = require_ListSpaces();
|
|
8240
8279
|
var ListMySpaces = require_ListMySpaces();
|
|
8241
8280
|
var ListRoomsInSpace = require_ListRoomsInSpace();
|
|
@@ -8245,11 +8284,11 @@ var require_Client = __commonJS({
|
|
|
8245
8284
|
var DeleteSpace = require_DeleteSpace();
|
|
8246
8285
|
var CreateRoomInSpace = require_CreateRoomInSpace();
|
|
8247
8286
|
var SetSpaceScene = require_SetSpaceScene();
|
|
8248
|
-
var
|
|
8249
|
-
var
|
|
8250
|
-
var
|
|
8251
|
-
var
|
|
8252
|
-
var
|
|
8287
|
+
var CreateCateory = require_CreateCateory();
|
|
8288
|
+
var DeleteCategory = require_DeleteCategory();
|
|
8289
|
+
var DescribeCategory = require_DescribeCategory();
|
|
8290
|
+
var ListCategories = require_ListCategories();
|
|
8291
|
+
var UpdateCategory = require_UpdateCategory();
|
|
8253
8292
|
var ListRooms = require_ListRooms();
|
|
8254
8293
|
var DescribeRoom = require_DescribeRoom();
|
|
8255
8294
|
var CreateRoom = require_CreateRoom();
|
|
@@ -8499,6 +8538,7 @@ var require_Client = __commonJS({
|
|
|
8499
8538
|
KohostApiClient.prototype.ListUserOrders = ListUserOrders;
|
|
8500
8539
|
KohostApiClient.prototype.ListTeam = ListTeam;
|
|
8501
8540
|
KohostApiClient.prototype.DescribeMyAccessCredentials = DescribeMyAccessCredentials;
|
|
8541
|
+
KohostApiClient.prototype.TipUser = TipUser;
|
|
8502
8542
|
KohostApiClient.prototype.ListSpaces = ListSpaces;
|
|
8503
8543
|
KohostApiClient.prototype.ListMySpaces = ListMySpaces;
|
|
8504
8544
|
KohostApiClient.prototype.ListRoomsInSpace = ListRoomsInSpace;
|
|
@@ -8508,11 +8548,11 @@ var require_Client = __commonJS({
|
|
|
8508
8548
|
KohostApiClient.prototype.DeleteSpace = DeleteSpace;
|
|
8509
8549
|
KohostApiClient.prototype.CreateRoomInSpace = CreateRoomInSpace;
|
|
8510
8550
|
KohostApiClient.prototype.SetSpaceScene = SetSpaceScene;
|
|
8511
|
-
KohostApiClient.prototype.
|
|
8512
|
-
KohostApiClient.prototype.
|
|
8513
|
-
KohostApiClient.prototype.
|
|
8514
|
-
KohostApiClient.prototype.
|
|
8515
|
-
KohostApiClient.prototype.
|
|
8551
|
+
KohostApiClient.prototype.CreateCateory = CreateCateory;
|
|
8552
|
+
KohostApiClient.prototype.DeleteCategory = DeleteCategory;
|
|
8553
|
+
KohostApiClient.prototype.DescribeCategory = DescribeCategory;
|
|
8554
|
+
KohostApiClient.prototype.ListCategories = ListCategories;
|
|
8555
|
+
KohostApiClient.prototype.UpdateCategory = UpdateCategory;
|
|
8516
8556
|
KohostApiClient.prototype.ListRooms = ListRooms;
|
|
8517
8557
|
KohostApiClient.prototype.DescribeRoom = DescribeRoom;
|
|
8518
8558
|
KohostApiClient.prototype.CreateRoom = CreateRoom;
|