@ahomevilla-hotel/node-sdk 1.0.11 → 1.0.13
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/api.ts +364 -115
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -23,6 +23,25 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AmenitiesPaginationResultDto
|
|
30
|
+
*/
|
|
31
|
+
export interface AmenitiesPaginationResultDto {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<Amenity>}
|
|
35
|
+
* @memberof AmenitiesPaginationResultDto
|
|
36
|
+
*/
|
|
37
|
+
'data': Array<Amenity>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {UsersPaginationResultDtoMeta}
|
|
41
|
+
* @memberof AmenitiesPaginationResultDto
|
|
42
|
+
*/
|
|
43
|
+
'meta': UsersPaginationResultDtoMeta;
|
|
44
|
+
}
|
|
26
45
|
/**
|
|
27
46
|
*
|
|
28
47
|
* @export
|
|
@@ -135,6 +154,12 @@ export interface Branch {
|
|
|
135
154
|
* @memberof Branch
|
|
136
155
|
*/
|
|
137
156
|
'provinceId': string;
|
|
157
|
+
/**
|
|
158
|
+
* Province where this branch is located
|
|
159
|
+
* @type {Province}
|
|
160
|
+
* @memberof Branch
|
|
161
|
+
*/
|
|
162
|
+
'province'?: Province;
|
|
138
163
|
/**
|
|
139
164
|
* Branch\'s thumbnail image
|
|
140
165
|
* @type {Image}
|
|
@@ -238,6 +263,12 @@ export interface BranchDetail {
|
|
|
238
263
|
* @memberof BranchDetail
|
|
239
264
|
*/
|
|
240
265
|
'provinceId': string;
|
|
266
|
+
/**
|
|
267
|
+
* Province where this branch is located
|
|
268
|
+
* @type {Province}
|
|
269
|
+
* @memberof BranchDetail
|
|
270
|
+
*/
|
|
271
|
+
'province'?: Province;
|
|
241
272
|
/**
|
|
242
273
|
* Branch\'s thumbnail image
|
|
243
274
|
* @type {Image}
|
|
@@ -343,6 +374,46 @@ export interface BranchesPaginationResultDto {
|
|
|
343
374
|
*/
|
|
344
375
|
'meta': UsersPaginationResultDtoMeta;
|
|
345
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
* @export
|
|
380
|
+
* @interface CreateAmenityDto
|
|
381
|
+
*/
|
|
382
|
+
export interface CreateAmenityDto {
|
|
383
|
+
/**
|
|
384
|
+
* The name of the amenity
|
|
385
|
+
* @type {string}
|
|
386
|
+
* @memberof CreateAmenityDto
|
|
387
|
+
*/
|
|
388
|
+
'name': string;
|
|
389
|
+
/**
|
|
390
|
+
* URL-friendly version of the name (lowercase, hyphenated)
|
|
391
|
+
* @type {string}
|
|
392
|
+
* @memberof CreateAmenityDto
|
|
393
|
+
*/
|
|
394
|
+
'slug': string;
|
|
395
|
+
/**
|
|
396
|
+
* Type of amenity (ROOM, PROPERTY, or SERVICE)
|
|
397
|
+
* @type {string}
|
|
398
|
+
* @memberof CreateAmenityDto
|
|
399
|
+
*/
|
|
400
|
+
'type': CreateAmenityDtoTypeEnum;
|
|
401
|
+
/**
|
|
402
|
+
* Icon image details
|
|
403
|
+
* @type {Image}
|
|
404
|
+
* @memberof CreateAmenityDto
|
|
405
|
+
*/
|
|
406
|
+
'icon': Image;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export const CreateAmenityDtoTypeEnum = {
|
|
410
|
+
Room: 'ROOM',
|
|
411
|
+
Property: 'PROPERTY',
|
|
412
|
+
Service: 'SERVICE'
|
|
413
|
+
} as const;
|
|
414
|
+
|
|
415
|
+
export type CreateAmenityDtoTypeEnum = typeof CreateAmenityDtoTypeEnum[keyof typeof CreateAmenityDtoTypeEnum];
|
|
416
|
+
|
|
346
417
|
/**
|
|
347
418
|
*
|
|
348
419
|
* @export
|
|
@@ -544,6 +615,34 @@ export interface CreateUserDto {
|
|
|
544
615
|
*/
|
|
545
616
|
'name': string;
|
|
546
617
|
}
|
|
618
|
+
/**
|
|
619
|
+
*
|
|
620
|
+
* @export
|
|
621
|
+
* @interface FilterAmenityDto
|
|
622
|
+
*/
|
|
623
|
+
export interface FilterAmenityDto {
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @type {string}
|
|
627
|
+
* @memberof FilterAmenityDto
|
|
628
|
+
*/
|
|
629
|
+
'types'?: FilterAmenityDtoTypesEnum;
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
* @type {string}
|
|
633
|
+
* @memberof FilterAmenityDto
|
|
634
|
+
*/
|
|
635
|
+
'search'?: string;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
export const FilterAmenityDtoTypesEnum = {
|
|
639
|
+
Room: 'ROOM',
|
|
640
|
+
Property: 'PROPERTY',
|
|
641
|
+
Service: 'SERVICE'
|
|
642
|
+
} as const;
|
|
643
|
+
|
|
644
|
+
export type FilterAmenityDtoTypesEnum = typeof FilterAmenityDtoTypesEnum[keyof typeof FilterAmenityDtoTypesEnum];
|
|
645
|
+
|
|
547
646
|
/**
|
|
548
647
|
*
|
|
549
648
|
* @export
|
|
@@ -927,7 +1026,7 @@ export interface Province {
|
|
|
927
1026
|
* @type {ProvinceCount}
|
|
928
1027
|
* @memberof Province
|
|
929
1028
|
*/
|
|
930
|
-
'_count'
|
|
1029
|
+
'_count'?: ProvinceCount;
|
|
931
1030
|
}
|
|
932
1031
|
/**
|
|
933
1032
|
* Count of branches in the province
|
|
@@ -1336,6 +1435,33 @@ export interface SessionResponseDto {
|
|
|
1336
1435
|
*/
|
|
1337
1436
|
'sessions': Array<string>;
|
|
1338
1437
|
}
|
|
1438
|
+
/**
|
|
1439
|
+
*
|
|
1440
|
+
* @export
|
|
1441
|
+
* @interface SortAmenityDto
|
|
1442
|
+
*/
|
|
1443
|
+
export interface SortAmenityDto {
|
|
1444
|
+
/**
|
|
1445
|
+
* Key of Entity to sort
|
|
1446
|
+
* @type {string}
|
|
1447
|
+
* @memberof SortAmenityDto
|
|
1448
|
+
*/
|
|
1449
|
+
'orderBy': string;
|
|
1450
|
+
/**
|
|
1451
|
+
* Order of sorting
|
|
1452
|
+
* @type {string}
|
|
1453
|
+
* @memberof SortAmenityDto
|
|
1454
|
+
*/
|
|
1455
|
+
'order': SortAmenityDtoOrderEnum;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
export const SortAmenityDtoOrderEnum = {
|
|
1459
|
+
Asc: 'asc',
|
|
1460
|
+
Desc: 'desc'
|
|
1461
|
+
} as const;
|
|
1462
|
+
|
|
1463
|
+
export type SortAmenityDtoOrderEnum = typeof SortAmenityDtoOrderEnum[keyof typeof SortAmenityDtoOrderEnum];
|
|
1464
|
+
|
|
1339
1465
|
/**
|
|
1340
1466
|
*
|
|
1341
1467
|
* @export
|
|
@@ -1417,6 +1543,46 @@ export const SortUserDtoOrderEnum = {
|
|
|
1417
1543
|
|
|
1418
1544
|
export type SortUserDtoOrderEnum = typeof SortUserDtoOrderEnum[keyof typeof SortUserDtoOrderEnum];
|
|
1419
1545
|
|
|
1546
|
+
/**
|
|
1547
|
+
*
|
|
1548
|
+
* @export
|
|
1549
|
+
* @interface UpdateAmenityDto
|
|
1550
|
+
*/
|
|
1551
|
+
export interface UpdateAmenityDto {
|
|
1552
|
+
/**
|
|
1553
|
+
* The name of the amenity
|
|
1554
|
+
* @type {string}
|
|
1555
|
+
* @memberof UpdateAmenityDto
|
|
1556
|
+
*/
|
|
1557
|
+
'name'?: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* URL-friendly version of the name (lowercase, hyphenated)
|
|
1560
|
+
* @type {string}
|
|
1561
|
+
* @memberof UpdateAmenityDto
|
|
1562
|
+
*/
|
|
1563
|
+
'slug'?: string;
|
|
1564
|
+
/**
|
|
1565
|
+
* Type of amenity (ROOM, PROPERTY, or SERVICE)
|
|
1566
|
+
* @type {string}
|
|
1567
|
+
* @memberof UpdateAmenityDto
|
|
1568
|
+
*/
|
|
1569
|
+
'type'?: UpdateAmenityDtoTypeEnum;
|
|
1570
|
+
/**
|
|
1571
|
+
* Icon image details
|
|
1572
|
+
* @type {Image}
|
|
1573
|
+
* @memberof UpdateAmenityDto
|
|
1574
|
+
*/
|
|
1575
|
+
'icon'?: Image;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
export const UpdateAmenityDtoTypeEnum = {
|
|
1579
|
+
Room: 'ROOM',
|
|
1580
|
+
Property: 'PROPERTY',
|
|
1581
|
+
Service: 'SERVICE'
|
|
1582
|
+
} as const;
|
|
1583
|
+
|
|
1584
|
+
export type UpdateAmenityDtoTypeEnum = typeof UpdateAmenityDtoTypeEnum[keyof typeof UpdateAmenityDtoTypeEnum];
|
|
1585
|
+
|
|
1420
1586
|
/**
|
|
1421
1587
|
*
|
|
1422
1588
|
* @export
|
|
@@ -1874,14 +2040,14 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1874
2040
|
return {
|
|
1875
2041
|
/**
|
|
1876
2042
|
*
|
|
1877
|
-
* @
|
|
1878
|
-
* @param {
|
|
1879
|
-
* @param {AmenitiesControllerCreateTypeEnum} [type]
|
|
1880
|
-
* @param {File} [icon]
|
|
2043
|
+
* @summary Create new amenity
|
|
2044
|
+
* @param {CreateAmenityDto} createAmenityDto
|
|
1881
2045
|
* @param {*} [options] Override http request option.
|
|
1882
2046
|
* @throws {RequiredError}
|
|
1883
2047
|
*/
|
|
1884
|
-
amenitiesControllerCreate: async (
|
|
2048
|
+
amenitiesControllerCreate: async (createAmenityDto: CreateAmenityDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2049
|
+
// verify required parameter 'createAmenityDto' is not null or undefined
|
|
2050
|
+
assertParamExists('amenitiesControllerCreate', 'createAmenityDto', createAmenityDto)
|
|
1885
2051
|
const localVarPath = `/api/amenities`;
|
|
1886
2052
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1887
2053
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1893,32 +2059,15 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1893
2059
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1894
2060
|
const localVarHeaderParameter = {} as any;
|
|
1895
2061
|
const localVarQueryParameter = {} as any;
|
|
1896
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1897
2062
|
|
|
1898
2063
|
|
|
1899
|
-
if (name !== undefined) {
|
|
1900
|
-
localVarFormParams.append('name', name as any);
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
|
-
if (slug !== undefined) {
|
|
1904
|
-
localVarFormParams.append('slug', slug as any);
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
if (type !== undefined) {
|
|
1908
|
-
localVarFormParams.append('type', type as any);
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
if (icon !== undefined) {
|
|
1912
|
-
localVarFormParams.append('icon', icon as any);
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1917
2064
|
|
|
2065
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2066
|
+
|
|
1918
2067
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1919
2068
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1920
2069
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1921
|
-
localVarRequestOptions.data =
|
|
2070
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createAmenityDto, localVarRequestOptions, configuration)
|
|
1922
2071
|
|
|
1923
2072
|
return {
|
|
1924
2073
|
url: toPathString(localVarUrlObj),
|
|
@@ -1927,14 +2076,15 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1927
2076
|
},
|
|
1928
2077
|
/**
|
|
1929
2078
|
*
|
|
2079
|
+
* @summary Get all amenities
|
|
1930
2080
|
* @param {number} [page]
|
|
1931
2081
|
* @param {number} [pageSize]
|
|
1932
|
-
* @param {
|
|
1933
|
-
* @param {
|
|
2082
|
+
* @param {string} [filters] JSON string of FilterAmenityDto
|
|
2083
|
+
* @param {string} [sort] JSON string of SortAmenityDto
|
|
1934
2084
|
* @param {*} [options] Override http request option.
|
|
1935
2085
|
* @throws {RequiredError}
|
|
1936
2086
|
*/
|
|
1937
|
-
amenitiesControllerFindAll: async (page?: number, pageSize?: number, filters?:
|
|
2087
|
+
amenitiesControllerFindAll: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1938
2088
|
const localVarPath = `/api/amenities`;
|
|
1939
2089
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1940
2090
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1956,12 +2106,10 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1956
2106
|
}
|
|
1957
2107
|
|
|
1958
2108
|
if (filters !== undefined) {
|
|
1959
|
-
|
|
1960
|
-
localVarQueryParameter[key] = value;
|
|
1961
|
-
}
|
|
2109
|
+
localVarQueryParameter['filters'] = filters;
|
|
1962
2110
|
}
|
|
1963
2111
|
|
|
1964
|
-
if (sort) {
|
|
2112
|
+
if (sort !== undefined) {
|
|
1965
2113
|
localVarQueryParameter['sort'] = sort;
|
|
1966
2114
|
}
|
|
1967
2115
|
|
|
@@ -2044,16 +2192,17 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2044
2192
|
},
|
|
2045
2193
|
/**
|
|
2046
2194
|
*
|
|
2195
|
+
* @summary Update amenity
|
|
2047
2196
|
* @param {string} id
|
|
2048
|
-
* @param {
|
|
2049
|
-
* @param {string} [slug] URL-friendly version of the name (lowercase, hyphenated)
|
|
2050
|
-
* @param {AmenitiesControllerUpdateTypeEnum} [type] Type of amenity (ROOM, PROPERTY, or SERVICE)
|
|
2197
|
+
* @param {UpdateAmenityDto} updateAmenityDto
|
|
2051
2198
|
* @param {*} [options] Override http request option.
|
|
2052
2199
|
* @throws {RequiredError}
|
|
2053
2200
|
*/
|
|
2054
|
-
amenitiesControllerUpdate: async (id: string,
|
|
2201
|
+
amenitiesControllerUpdate: async (id: string, updateAmenityDto: UpdateAmenityDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2055
2202
|
// verify required parameter 'id' is not null or undefined
|
|
2056
2203
|
assertParamExists('amenitiesControllerUpdate', 'id', id)
|
|
2204
|
+
// verify required parameter 'updateAmenityDto' is not null or undefined
|
|
2205
|
+
assertParamExists('amenitiesControllerUpdate', 'updateAmenityDto', updateAmenityDto)
|
|
2057
2206
|
const localVarPath = `/api/amenities/{id}`
|
|
2058
2207
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2059
2208
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2066,28 +2215,15 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2066
2215
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
2067
2216
|
const localVarHeaderParameter = {} as any;
|
|
2068
2217
|
const localVarQueryParameter = {} as any;
|
|
2069
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
2070
2218
|
|
|
2071
2219
|
|
|
2072
|
-
if (name !== undefined) {
|
|
2073
|
-
localVarFormParams.append('name', name as any);
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
if (slug !== undefined) {
|
|
2077
|
-
localVarFormParams.append('slug', slug as any);
|
|
2078
|
-
}
|
|
2079
|
-
|
|
2080
|
-
if (type !== undefined) {
|
|
2081
|
-
localVarFormParams.append('type', type as any);
|
|
2082
|
-
}
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2086
2220
|
|
|
2221
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2222
|
+
|
|
2087
2223
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2088
2224
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2089
2225
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2090
|
-
localVarRequestOptions.data =
|
|
2226
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateAmenityDto, localVarRequestOptions, configuration)
|
|
2091
2227
|
|
|
2092
2228
|
return {
|
|
2093
2229
|
url: toPathString(localVarUrlObj),
|
|
@@ -2106,29 +2242,28 @@ export const AmenitiesApiFp = function(configuration?: Configuration) {
|
|
|
2106
2242
|
return {
|
|
2107
2243
|
/**
|
|
2108
2244
|
*
|
|
2109
|
-
* @
|
|
2110
|
-
* @param {
|
|
2111
|
-
* @param {AmenitiesControllerCreateTypeEnum} [type]
|
|
2112
|
-
* @param {File} [icon]
|
|
2245
|
+
* @summary Create new amenity
|
|
2246
|
+
* @param {CreateAmenityDto} createAmenityDto
|
|
2113
2247
|
* @param {*} [options] Override http request option.
|
|
2114
2248
|
* @throws {RequiredError}
|
|
2115
2249
|
*/
|
|
2116
|
-
async amenitiesControllerCreate(
|
|
2117
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerCreate(
|
|
2250
|
+
async amenitiesControllerCreate(createAmenityDto: CreateAmenityDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Amenity>> {
|
|
2251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerCreate(createAmenityDto, options);
|
|
2118
2252
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2119
2253
|
const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
2120
2254
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2121
2255
|
},
|
|
2122
2256
|
/**
|
|
2123
2257
|
*
|
|
2258
|
+
* @summary Get all amenities
|
|
2124
2259
|
* @param {number} [page]
|
|
2125
2260
|
* @param {number} [pageSize]
|
|
2126
|
-
* @param {
|
|
2127
|
-
* @param {
|
|
2261
|
+
* @param {string} [filters] JSON string of FilterAmenityDto
|
|
2262
|
+
* @param {string} [sort] JSON string of SortAmenityDto
|
|
2128
2263
|
* @param {*} [options] Override http request option.
|
|
2129
2264
|
* @throws {RequiredError}
|
|
2130
2265
|
*/
|
|
2131
|
-
async amenitiesControllerFindAll(page?: number, pageSize?: number, filters?:
|
|
2266
|
+
async amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AmenitiesPaginationResultDto>> {
|
|
2132
2267
|
const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerFindAll(page, pageSize, filters, sort, options);
|
|
2133
2268
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2134
2269
|
const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerFindAll']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2160,15 +2295,14 @@ export const AmenitiesApiFp = function(configuration?: Configuration) {
|
|
|
2160
2295
|
},
|
|
2161
2296
|
/**
|
|
2162
2297
|
*
|
|
2298
|
+
* @summary Update amenity
|
|
2163
2299
|
* @param {string} id
|
|
2164
|
-
* @param {
|
|
2165
|
-
* @param {string} [slug] URL-friendly version of the name (lowercase, hyphenated)
|
|
2166
|
-
* @param {AmenitiesControllerUpdateTypeEnum} [type] Type of amenity (ROOM, PROPERTY, or SERVICE)
|
|
2300
|
+
* @param {UpdateAmenityDto} updateAmenityDto
|
|
2167
2301
|
* @param {*} [options] Override http request option.
|
|
2168
2302
|
* @throws {RequiredError}
|
|
2169
2303
|
*/
|
|
2170
|
-
async amenitiesControllerUpdate(id: string,
|
|
2171
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerUpdate(id,
|
|
2304
|
+
async amenitiesControllerUpdate(id: string, updateAmenityDto: UpdateAmenityDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Amenity>> {
|
|
2305
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerUpdate(id, updateAmenityDto, options);
|
|
2172
2306
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2173
2307
|
const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
2174
2308
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2185,26 +2319,25 @@ export const AmenitiesApiFactory = function (configuration?: Configuration, base
|
|
|
2185
2319
|
return {
|
|
2186
2320
|
/**
|
|
2187
2321
|
*
|
|
2188
|
-
* @
|
|
2189
|
-
* @param {
|
|
2190
|
-
* @param {AmenitiesControllerCreateTypeEnum} [type]
|
|
2191
|
-
* @param {File} [icon]
|
|
2322
|
+
* @summary Create new amenity
|
|
2323
|
+
* @param {CreateAmenityDto} createAmenityDto
|
|
2192
2324
|
* @param {*} [options] Override http request option.
|
|
2193
2325
|
* @throws {RequiredError}
|
|
2194
2326
|
*/
|
|
2195
|
-
amenitiesControllerCreate(
|
|
2196
|
-
return localVarFp.amenitiesControllerCreate(
|
|
2327
|
+
amenitiesControllerCreate(createAmenityDto: CreateAmenityDto, options?: RawAxiosRequestConfig): AxiosPromise<Amenity> {
|
|
2328
|
+
return localVarFp.amenitiesControllerCreate(createAmenityDto, options).then((request) => request(axios, basePath));
|
|
2197
2329
|
},
|
|
2198
2330
|
/**
|
|
2199
2331
|
*
|
|
2332
|
+
* @summary Get all amenities
|
|
2200
2333
|
* @param {number} [page]
|
|
2201
2334
|
* @param {number} [pageSize]
|
|
2202
|
-
* @param {
|
|
2203
|
-
* @param {
|
|
2335
|
+
* @param {string} [filters] JSON string of FilterAmenityDto
|
|
2336
|
+
* @param {string} [sort] JSON string of SortAmenityDto
|
|
2204
2337
|
* @param {*} [options] Override http request option.
|
|
2205
2338
|
* @throws {RequiredError}
|
|
2206
2339
|
*/
|
|
2207
|
-
amenitiesControllerFindAll(page?: number, pageSize?: number, filters?:
|
|
2340
|
+
amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<AmenitiesPaginationResultDto> {
|
|
2208
2341
|
return localVarFp.amenitiesControllerFindAll(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
|
|
2209
2342
|
},
|
|
2210
2343
|
/**
|
|
@@ -2227,15 +2360,14 @@ export const AmenitiesApiFactory = function (configuration?: Configuration, base
|
|
|
2227
2360
|
},
|
|
2228
2361
|
/**
|
|
2229
2362
|
*
|
|
2363
|
+
* @summary Update amenity
|
|
2230
2364
|
* @param {string} id
|
|
2231
|
-
* @param {
|
|
2232
|
-
* @param {string} [slug] URL-friendly version of the name (lowercase, hyphenated)
|
|
2233
|
-
* @param {AmenitiesControllerUpdateTypeEnum} [type] Type of amenity (ROOM, PROPERTY, or SERVICE)
|
|
2365
|
+
* @param {UpdateAmenityDto} updateAmenityDto
|
|
2234
2366
|
* @param {*} [options] Override http request option.
|
|
2235
2367
|
* @throws {RequiredError}
|
|
2236
2368
|
*/
|
|
2237
|
-
amenitiesControllerUpdate(id: string,
|
|
2238
|
-
return localVarFp.amenitiesControllerUpdate(id,
|
|
2369
|
+
amenitiesControllerUpdate(id: string, updateAmenityDto: UpdateAmenityDto, options?: RawAxiosRequestConfig): AxiosPromise<Amenity> {
|
|
2370
|
+
return localVarFp.amenitiesControllerUpdate(id, updateAmenityDto, options).then((request) => request(axios, basePath));
|
|
2239
2371
|
},
|
|
2240
2372
|
};
|
|
2241
2373
|
};
|
|
@@ -2249,29 +2381,28 @@ export const AmenitiesApiFactory = function (configuration?: Configuration, base
|
|
|
2249
2381
|
export class AmenitiesApi extends BaseAPI {
|
|
2250
2382
|
/**
|
|
2251
2383
|
*
|
|
2252
|
-
* @
|
|
2253
|
-
* @param {
|
|
2254
|
-
* @param {AmenitiesControllerCreateTypeEnum} [type]
|
|
2255
|
-
* @param {File} [icon]
|
|
2384
|
+
* @summary Create new amenity
|
|
2385
|
+
* @param {CreateAmenityDto} createAmenityDto
|
|
2256
2386
|
* @param {*} [options] Override http request option.
|
|
2257
2387
|
* @throws {RequiredError}
|
|
2258
2388
|
* @memberof AmenitiesApi
|
|
2259
2389
|
*/
|
|
2260
|
-
public amenitiesControllerCreate(
|
|
2261
|
-
return AmenitiesApiFp(this.configuration).amenitiesControllerCreate(
|
|
2390
|
+
public amenitiesControllerCreate(createAmenityDto: CreateAmenityDto, options?: RawAxiosRequestConfig) {
|
|
2391
|
+
return AmenitiesApiFp(this.configuration).amenitiesControllerCreate(createAmenityDto, options).then((request) => request(this.axios, this.basePath));
|
|
2262
2392
|
}
|
|
2263
2393
|
|
|
2264
2394
|
/**
|
|
2265
2395
|
*
|
|
2396
|
+
* @summary Get all amenities
|
|
2266
2397
|
* @param {number} [page]
|
|
2267
2398
|
* @param {number} [pageSize]
|
|
2268
|
-
* @param {
|
|
2269
|
-
* @param {
|
|
2399
|
+
* @param {string} [filters] JSON string of FilterAmenityDto
|
|
2400
|
+
* @param {string} [sort] JSON string of SortAmenityDto
|
|
2270
2401
|
* @param {*} [options] Override http request option.
|
|
2271
2402
|
* @throws {RequiredError}
|
|
2272
2403
|
* @memberof AmenitiesApi
|
|
2273
2404
|
*/
|
|
2274
|
-
public amenitiesControllerFindAll(page?: number, pageSize?: number, filters?:
|
|
2405
|
+
public amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
|
|
2275
2406
|
return AmenitiesApiFp(this.configuration).amenitiesControllerFindAll(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
|
|
2276
2407
|
}
|
|
2277
2408
|
|
|
@@ -2299,37 +2430,18 @@ export class AmenitiesApi extends BaseAPI {
|
|
|
2299
2430
|
|
|
2300
2431
|
/**
|
|
2301
2432
|
*
|
|
2433
|
+
* @summary Update amenity
|
|
2302
2434
|
* @param {string} id
|
|
2303
|
-
* @param {
|
|
2304
|
-
* @param {string} [slug] URL-friendly version of the name (lowercase, hyphenated)
|
|
2305
|
-
* @param {AmenitiesControllerUpdateTypeEnum} [type] Type of amenity (ROOM, PROPERTY, or SERVICE)
|
|
2435
|
+
* @param {UpdateAmenityDto} updateAmenityDto
|
|
2306
2436
|
* @param {*} [options] Override http request option.
|
|
2307
2437
|
* @throws {RequiredError}
|
|
2308
2438
|
* @memberof AmenitiesApi
|
|
2309
2439
|
*/
|
|
2310
|
-
public amenitiesControllerUpdate(id: string,
|
|
2311
|
-
return AmenitiesApiFp(this.configuration).amenitiesControllerUpdate(id,
|
|
2440
|
+
public amenitiesControllerUpdate(id: string, updateAmenityDto: UpdateAmenityDto, options?: RawAxiosRequestConfig) {
|
|
2441
|
+
return AmenitiesApiFp(this.configuration).amenitiesControllerUpdate(id, updateAmenityDto, options).then((request) => request(this.axios, this.basePath));
|
|
2312
2442
|
}
|
|
2313
2443
|
}
|
|
2314
2444
|
|
|
2315
|
-
/**
|
|
2316
|
-
* @export
|
|
2317
|
-
*/
|
|
2318
|
-
export const AmenitiesControllerCreateTypeEnum = {
|
|
2319
|
-
Room: 'ROOM',
|
|
2320
|
-
Property: 'PROPERTY',
|
|
2321
|
-
Service: 'SERVICE'
|
|
2322
|
-
} as const;
|
|
2323
|
-
export type AmenitiesControllerCreateTypeEnum = typeof AmenitiesControllerCreateTypeEnum[keyof typeof AmenitiesControllerCreateTypeEnum];
|
|
2324
|
-
/**
|
|
2325
|
-
* @export
|
|
2326
|
-
*/
|
|
2327
|
-
export const AmenitiesControllerUpdateTypeEnum = {
|
|
2328
|
-
Room: 'ROOM',
|
|
2329
|
-
Property: 'PROPERTY',
|
|
2330
|
-
Service: 'SERVICE'
|
|
2331
|
-
} as const;
|
|
2332
|
-
export type AmenitiesControllerUpdateTypeEnum = typeof AmenitiesControllerUpdateTypeEnum[keyof typeof AmenitiesControllerUpdateTypeEnum];
|
|
2333
2445
|
|
|
2334
2446
|
|
|
2335
2447
|
/**
|
|
@@ -3497,6 +3609,42 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3497
3609
|
options: localVarRequestOptions,
|
|
3498
3610
|
};
|
|
3499
3611
|
},
|
|
3612
|
+
/**
|
|
3613
|
+
*
|
|
3614
|
+
* @summary Get latest branches
|
|
3615
|
+
* @param {number} body
|
|
3616
|
+
* @param {*} [options] Override http request option.
|
|
3617
|
+
* @throws {RequiredError}
|
|
3618
|
+
*/
|
|
3619
|
+
branchControllerGetLatestBranches: async (body: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3620
|
+
// verify required parameter 'body' is not null or undefined
|
|
3621
|
+
assertParamExists('branchControllerGetLatestBranches', 'body', body)
|
|
3622
|
+
const localVarPath = `/api/branches/latest`;
|
|
3623
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3624
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3625
|
+
let baseOptions;
|
|
3626
|
+
if (configuration) {
|
|
3627
|
+
baseOptions = configuration.baseOptions;
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3631
|
+
const localVarHeaderParameter = {} as any;
|
|
3632
|
+
const localVarQueryParameter = {} as any;
|
|
3633
|
+
|
|
3634
|
+
|
|
3635
|
+
|
|
3636
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3637
|
+
|
|
3638
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3639
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3640
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3641
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
3642
|
+
|
|
3643
|
+
return {
|
|
3644
|
+
url: toPathString(localVarUrlObj),
|
|
3645
|
+
options: localVarRequestOptions,
|
|
3646
|
+
};
|
|
3647
|
+
},
|
|
3500
3648
|
/**
|
|
3501
3649
|
*
|
|
3502
3650
|
* @summary Delete a branch
|
|
@@ -3685,6 +3833,19 @@ export const BranchesApiFp = function(configuration?: Configuration) {
|
|
|
3685
3833
|
const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerFindOne']?.[localVarOperationServerIndex]?.url;
|
|
3686
3834
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3687
3835
|
},
|
|
3836
|
+
/**
|
|
3837
|
+
*
|
|
3838
|
+
* @summary Get latest branches
|
|
3839
|
+
* @param {number} body
|
|
3840
|
+
* @param {*} [options] Override http request option.
|
|
3841
|
+
* @throws {RequiredError}
|
|
3842
|
+
*/
|
|
3843
|
+
async branchControllerGetLatestBranches(body: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Branch>>> {
|
|
3844
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerGetLatestBranches(body, options);
|
|
3845
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3846
|
+
const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerGetLatestBranches']?.[localVarOperationServerIndex]?.url;
|
|
3847
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3848
|
+
},
|
|
3688
3849
|
/**
|
|
3689
3850
|
*
|
|
3690
3851
|
* @summary Delete a branch
|
|
@@ -3790,6 +3951,16 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
|
|
|
3790
3951
|
branchControllerFindOne(idOrSlug: string, options?: RawAxiosRequestConfig): AxiosPromise<BranchDetail> {
|
|
3791
3952
|
return localVarFp.branchControllerFindOne(idOrSlug, options).then((request) => request(axios, basePath));
|
|
3792
3953
|
},
|
|
3954
|
+
/**
|
|
3955
|
+
*
|
|
3956
|
+
* @summary Get latest branches
|
|
3957
|
+
* @param {number} body
|
|
3958
|
+
* @param {*} [options] Override http request option.
|
|
3959
|
+
* @throws {RequiredError}
|
|
3960
|
+
*/
|
|
3961
|
+
branchControllerGetLatestBranches(body: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Branch>> {
|
|
3962
|
+
return localVarFp.branchControllerGetLatestBranches(body, options).then((request) => request(axios, basePath));
|
|
3963
|
+
},
|
|
3793
3964
|
/**
|
|
3794
3965
|
*
|
|
3795
3966
|
* @summary Delete a branch
|
|
@@ -3896,6 +4067,18 @@ export class BranchesApi extends BaseAPI {
|
|
|
3896
4067
|
return BranchesApiFp(this.configuration).branchControllerFindOne(idOrSlug, options).then((request) => request(this.axios, this.basePath));
|
|
3897
4068
|
}
|
|
3898
4069
|
|
|
4070
|
+
/**
|
|
4071
|
+
*
|
|
4072
|
+
* @summary Get latest branches
|
|
4073
|
+
* @param {number} body
|
|
4074
|
+
* @param {*} [options] Override http request option.
|
|
4075
|
+
* @throws {RequiredError}
|
|
4076
|
+
* @memberof BranchesApi
|
|
4077
|
+
*/
|
|
4078
|
+
public branchControllerGetLatestBranches(body: number, options?: RawAxiosRequestConfig) {
|
|
4079
|
+
return BranchesApiFp(this.configuration).branchControllerGetLatestBranches(body, options).then((request) => request(this.axios, this.basePath));
|
|
4080
|
+
}
|
|
4081
|
+
|
|
3899
4082
|
/**
|
|
3900
4083
|
*
|
|
3901
4084
|
* @summary Delete a branch
|
|
@@ -4088,6 +4271,37 @@ export const ImagesApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
4088
4271
|
},
|
|
4089
4272
|
/**
|
|
4090
4273
|
*
|
|
4274
|
+
* @summary Upload amenity icon
|
|
4275
|
+
* @param {*} [options] Override http request option.
|
|
4276
|
+
* @throws {RequiredError}
|
|
4277
|
+
*/
|
|
4278
|
+
imagesControllerUploadIcon: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4279
|
+
const localVarPath = `/api/images/icon`;
|
|
4280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4281
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4282
|
+
let baseOptions;
|
|
4283
|
+
if (configuration) {
|
|
4284
|
+
baseOptions = configuration.baseOptions;
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4288
|
+
const localVarHeaderParameter = {} as any;
|
|
4289
|
+
const localVarQueryParameter = {} as any;
|
|
4290
|
+
|
|
4291
|
+
|
|
4292
|
+
|
|
4293
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4294
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4295
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4296
|
+
|
|
4297
|
+
return {
|
|
4298
|
+
url: toPathString(localVarUrlObj),
|
|
4299
|
+
options: localVarRequestOptions,
|
|
4300
|
+
};
|
|
4301
|
+
},
|
|
4302
|
+
/**
|
|
4303
|
+
*
|
|
4304
|
+
* @summary Upload multiple image
|
|
4091
4305
|
* @param {*} [options] Override http request option.
|
|
4092
4306
|
* @throws {RequiredError}
|
|
4093
4307
|
*/
|
|
@@ -4140,10 +4354,23 @@ export const ImagesApiFp = function(configuration?: Configuration) {
|
|
|
4140
4354
|
},
|
|
4141
4355
|
/**
|
|
4142
4356
|
*
|
|
4357
|
+
* @summary Upload amenity icon
|
|
4358
|
+
* @param {*} [options] Override http request option.
|
|
4359
|
+
* @throws {RequiredError}
|
|
4360
|
+
*/
|
|
4361
|
+
async imagesControllerUploadIcon(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageUploadResponseDto>> {
|
|
4362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.imagesControllerUploadIcon(options);
|
|
4363
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4364
|
+
const localVarOperationServerBasePath = operationServerMap['ImagesApi.imagesControllerUploadIcon']?.[localVarOperationServerIndex]?.url;
|
|
4365
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4366
|
+
},
|
|
4367
|
+
/**
|
|
4368
|
+
*
|
|
4369
|
+
* @summary Upload multiple image
|
|
4143
4370
|
* @param {*} [options] Override http request option.
|
|
4144
4371
|
* @throws {RequiredError}
|
|
4145
4372
|
*/
|
|
4146
|
-
async imagesControllerUploadImages(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4373
|
+
async imagesControllerUploadImages(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ImageUploadResponseDto>>> {
|
|
4147
4374
|
const localVarAxiosArgs = await localVarAxiosParamCreator.imagesControllerUploadImages(options);
|
|
4148
4375
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4149
4376
|
const localVarOperationServerBasePath = operationServerMap['ImagesApi.imagesControllerUploadImages']?.[localVarOperationServerIndex]?.url;
|
|
@@ -4171,10 +4398,20 @@ export const ImagesApiFactory = function (configuration?: Configuration, basePat
|
|
|
4171
4398
|
},
|
|
4172
4399
|
/**
|
|
4173
4400
|
*
|
|
4401
|
+
* @summary Upload amenity icon
|
|
4402
|
+
* @param {*} [options] Override http request option.
|
|
4403
|
+
* @throws {RequiredError}
|
|
4404
|
+
*/
|
|
4405
|
+
imagesControllerUploadIcon(options?: RawAxiosRequestConfig): AxiosPromise<ImageUploadResponseDto> {
|
|
4406
|
+
return localVarFp.imagesControllerUploadIcon(options).then((request) => request(axios, basePath));
|
|
4407
|
+
},
|
|
4408
|
+
/**
|
|
4409
|
+
*
|
|
4410
|
+
* @summary Upload multiple image
|
|
4174
4411
|
* @param {*} [options] Override http request option.
|
|
4175
4412
|
* @throws {RequiredError}
|
|
4176
4413
|
*/
|
|
4177
|
-
imagesControllerUploadImages(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4414
|
+
imagesControllerUploadImages(options?: RawAxiosRequestConfig): AxiosPromise<Array<ImageUploadResponseDto>> {
|
|
4178
4415
|
return localVarFp.imagesControllerUploadImages(options).then((request) => request(axios, basePath));
|
|
4179
4416
|
},
|
|
4180
4417
|
};
|
|
@@ -4201,6 +4438,18 @@ export class ImagesApi extends BaseAPI {
|
|
|
4201
4438
|
|
|
4202
4439
|
/**
|
|
4203
4440
|
*
|
|
4441
|
+
* @summary Upload amenity icon
|
|
4442
|
+
* @param {*} [options] Override http request option.
|
|
4443
|
+
* @throws {RequiredError}
|
|
4444
|
+
* @memberof ImagesApi
|
|
4445
|
+
*/
|
|
4446
|
+
public imagesControllerUploadIcon(options?: RawAxiosRequestConfig) {
|
|
4447
|
+
return ImagesApiFp(this.configuration).imagesControllerUploadIcon(options).then((request) => request(this.axios, this.basePath));
|
|
4448
|
+
}
|
|
4449
|
+
|
|
4450
|
+
/**
|
|
4451
|
+
*
|
|
4452
|
+
* @summary Upload multiple image
|
|
4204
4453
|
* @param {*} [options] Override http request option.
|
|
4205
4454
|
* @throws {RequiredError}
|
|
4206
4455
|
* @memberof ImagesApi
|