@ahomevilla-hotel/node-sdk 1.0.13 → 1.0.16

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.
Files changed (2) hide show
  1. package/api.ts +83 -58
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -208,12 +208,6 @@ export interface Branch {
208
208
  * @memberof Branch
209
209
  */
210
210
  'address': string;
211
- /**
212
- * Branch\'s geographical location
213
- * @type {object}
214
- * @memberof Branch
215
- */
216
- 'location': object;
217
211
  /**
218
212
  * Branch\'s rating
219
213
  * @type {number}
@@ -317,24 +311,30 @@ export interface BranchDetail {
317
311
  * @memberof BranchDetail
318
312
  */
319
313
  'address': string;
320
- /**
321
- * Branch\'s geographical location
322
- * @type {object}
323
- * @memberof BranchDetail
324
- */
325
- 'location': object;
326
314
  /**
327
315
  * Branch\'s rating
328
316
  * @type {number}
329
317
  * @memberof BranchDetail
330
318
  */
331
319
  'rating': number;
320
+ /**
321
+ * Amenities available in the branch
322
+ * @type {Array<Amenity>}
323
+ * @memberof BranchDetail
324
+ */
325
+ 'amenities': Array<Amenity>;
332
326
  /**
333
327
  * List of rooms available in the branch
334
328
  * @type {Array<HotelRoom>}
335
329
  * @memberof BranchDetail
336
330
  */
337
331
  'rooms': Array<HotelRoom>;
332
+ /**
333
+ * Nearby locations
334
+ * @type {Array<NearBy>}
335
+ * @memberof BranchDetail
336
+ */
337
+ 'nearBy': Array<NearBy>;
338
338
  }
339
339
  /**
340
340
  *
@@ -474,12 +474,6 @@ export interface CreateBranchDto {
474
474
  * @memberof CreateBranchDto
475
475
  */
476
476
  'address': string;
477
- /**
478
- * Branch\'s geographical location
479
- * @type {LocationDto}
480
- * @memberof CreateBranchDto
481
- */
482
- 'location': LocationDto;
483
477
  /**
484
478
  * The branch\'s rating.
485
479
  * @type {number}
@@ -891,25 +885,6 @@ export interface InitiateForgotPasswordEmailDto {
891
885
  */
892
886
  'email': string;
893
887
  }
894
- /**
895
- *
896
- * @export
897
- * @interface LocationDto
898
- */
899
- export interface LocationDto {
900
- /**
901
- * Latitude coordinate
902
- * @type {number}
903
- * @memberof LocationDto
904
- */
905
- 'latitude': number;
906
- /**
907
- * Longitude coordinate
908
- * @type {number}
909
- * @memberof LocationDto
910
- */
911
- 'longitude': number;
912
- }
913
888
  /**
914
889
  *
915
890
  * @export
@@ -967,6 +942,25 @@ export interface LogoutResponseDto {
967
942
  */
968
943
  'message': string;
969
944
  }
945
+ /**
946
+ *
947
+ * @export
948
+ * @interface NearBy
949
+ */
950
+ export interface NearBy {
951
+ /**
952
+ * Name of the nearby location
953
+ * @type {string}
954
+ * @memberof NearBy
955
+ */
956
+ 'name': string;
957
+ /**
958
+ * Distance from the branch
959
+ * @type {string}
960
+ * @memberof NearBy
961
+ */
962
+ 'distance': string;
963
+ }
970
964
  /**
971
965
  *
972
966
  * @export
@@ -1060,6 +1054,37 @@ export interface ProvincePaginationResultDto {
1060
1054
  */
1061
1055
  'meta': UsersPaginationResultDtoMeta;
1062
1056
  }
1057
+ /**
1058
+ *
1059
+ * @export
1060
+ * @interface QueryAmenityDto
1061
+ */
1062
+ export interface QueryAmenityDto {
1063
+ /**
1064
+ *
1065
+ * @type {number}
1066
+ * @memberof QueryAmenityDto
1067
+ */
1068
+ 'page'?: number;
1069
+ /**
1070
+ *
1071
+ * @type {number}
1072
+ * @memberof QueryAmenityDto
1073
+ */
1074
+ 'pageSize'?: number;
1075
+ /**
1076
+ * JSON string of FilterAmenityDto
1077
+ * @type {string}
1078
+ * @memberof QueryAmenityDto
1079
+ */
1080
+ 'filters'?: string;
1081
+ /**
1082
+ * JSON string of SortAmenityDto
1083
+ * @type {string}
1084
+ * @memberof QueryAmenityDto
1085
+ */
1086
+ 'sort'?: string;
1087
+ }
1063
1088
  /**
1064
1089
  *
1065
1090
  * @export
@@ -1643,12 +1668,6 @@ export interface UpdateBranchDto {
1643
1668
  * @memberof UpdateBranchDto
1644
1669
  */
1645
1670
  'address'?: string;
1646
- /**
1647
- * Branch\'s geographical location
1648
- * @type {LocationDto}
1649
- * @memberof UpdateBranchDto
1650
- */
1651
- 'location'?: LocationDto;
1652
1671
  /**
1653
1672
  * The branch\'s rating.
1654
1673
  * @type {number}
@@ -1656,11 +1675,17 @@ export interface UpdateBranchDto {
1656
1675
  */
1657
1676
  'rating'?: number;
1658
1677
  /**
1659
- * Amenities available in the branch
1660
- * @type {Array<Amenity>}
1678
+ * Branch amenities
1679
+ * @type {Array<string>}
1661
1680
  * @memberof UpdateBranchDto
1662
1681
  */
1663
- 'amenities': Array<Amenity>;
1682
+ 'amenityIds': Array<string>;
1683
+ /**
1684
+ * Nearby locations
1685
+ * @type {Array<NearBy>}
1686
+ * @memberof UpdateBranchDto
1687
+ */
1688
+ 'nearBy': Array<NearBy>;
1664
1689
  }
1665
1690
  /**
1666
1691
  *
@@ -2076,7 +2101,7 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
2076
2101
  },
2077
2102
  /**
2078
2103
  *
2079
- * @summary Get all amenities
2104
+ * @summary Get amenities
2080
2105
  * @param {number} [page]
2081
2106
  * @param {number} [pageSize]
2082
2107
  * @param {string} [filters] JSON string of FilterAmenityDto
@@ -2084,7 +2109,7 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
2084
2109
  * @param {*} [options] Override http request option.
2085
2110
  * @throws {RequiredError}
2086
2111
  */
2087
- amenitiesControllerFindAll: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2112
+ amenitiesControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2088
2113
  const localVarPath = `/api/amenities`;
2089
2114
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2090
2115
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2255,7 +2280,7 @@ export const AmenitiesApiFp = function(configuration?: Configuration) {
2255
2280
  },
2256
2281
  /**
2257
2282
  *
2258
- * @summary Get all amenities
2283
+ * @summary Get amenities
2259
2284
  * @param {number} [page]
2260
2285
  * @param {number} [pageSize]
2261
2286
  * @param {string} [filters] JSON string of FilterAmenityDto
@@ -2263,10 +2288,10 @@ export const AmenitiesApiFp = function(configuration?: Configuration) {
2263
2288
  * @param {*} [options] Override http request option.
2264
2289
  * @throws {RequiredError}
2265
2290
  */
2266
- async amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AmenitiesPaginationResultDto>> {
2267
- const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerFindAll(page, pageSize, filters, sort, options);
2291
+ async amenitiesControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AmenitiesPaginationResultDto>> {
2292
+ const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerFindMany(page, pageSize, filters, sort, options);
2268
2293
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2269
- const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerFindAll']?.[localVarOperationServerIndex]?.url;
2294
+ const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerFindMany']?.[localVarOperationServerIndex]?.url;
2270
2295
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2271
2296
  },
2272
2297
  /**
@@ -2329,7 +2354,7 @@ export const AmenitiesApiFactory = function (configuration?: Configuration, base
2329
2354
  },
2330
2355
  /**
2331
2356
  *
2332
- * @summary Get all amenities
2357
+ * @summary Get amenities
2333
2358
  * @param {number} [page]
2334
2359
  * @param {number} [pageSize]
2335
2360
  * @param {string} [filters] JSON string of FilterAmenityDto
@@ -2337,8 +2362,8 @@ export const AmenitiesApiFactory = function (configuration?: Configuration, base
2337
2362
  * @param {*} [options] Override http request option.
2338
2363
  * @throws {RequiredError}
2339
2364
  */
2340
- amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<AmenitiesPaginationResultDto> {
2341
- return localVarFp.amenitiesControllerFindAll(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
2365
+ amenitiesControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<AmenitiesPaginationResultDto> {
2366
+ return localVarFp.amenitiesControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
2342
2367
  },
2343
2368
  /**
2344
2369
  *
@@ -2393,7 +2418,7 @@ export class AmenitiesApi extends BaseAPI {
2393
2418
 
2394
2419
  /**
2395
2420
  *
2396
- * @summary Get all amenities
2421
+ * @summary Get amenities
2397
2422
  * @param {number} [page]
2398
2423
  * @param {number} [pageSize]
2399
2424
  * @param {string} [filters] JSON string of FilterAmenityDto
@@ -2402,8 +2427,8 @@ export class AmenitiesApi extends BaseAPI {
2402
2427
  * @throws {RequiredError}
2403
2428
  * @memberof AmenitiesApi
2404
2429
  */
2405
- public amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
2406
- return AmenitiesApiFp(this.configuration).amenitiesControllerFindAll(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
2430
+ public amenitiesControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
2431
+ return AmenitiesApiFp(this.configuration).amenitiesControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
2407
2432
  }
2408
2433
 
2409
2434
  /**
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "openapi-client",
11
11
  "openapi-generator"
12
12
  ],
13
- "version": "1.0.13",
13
+ "version": "1.0.16",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"