@ahomevilla-hotel/node-sdk 1.0.13 → 1.0.14

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 +43 -12
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -1060,6 +1060,37 @@ export interface ProvincePaginationResultDto {
1060
1060
  */
1061
1061
  'meta': UsersPaginationResultDtoMeta;
1062
1062
  }
1063
+ /**
1064
+ *
1065
+ * @export
1066
+ * @interface QueryAmenityDto
1067
+ */
1068
+ export interface QueryAmenityDto {
1069
+ /**
1070
+ *
1071
+ * @type {number}
1072
+ * @memberof QueryAmenityDto
1073
+ */
1074
+ 'page'?: number;
1075
+ /**
1076
+ *
1077
+ * @type {number}
1078
+ * @memberof QueryAmenityDto
1079
+ */
1080
+ 'pageSize'?: number;
1081
+ /**
1082
+ * JSON string of FilterAmenityDto
1083
+ * @type {string}
1084
+ * @memberof QueryAmenityDto
1085
+ */
1086
+ 'filters'?: string;
1087
+ /**
1088
+ * JSON string of SortAmenityDto
1089
+ * @type {string}
1090
+ * @memberof QueryAmenityDto
1091
+ */
1092
+ 'sort'?: string;
1093
+ }
1063
1094
  /**
1064
1095
  *
1065
1096
  * @export
@@ -2076,7 +2107,7 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
2076
2107
  },
2077
2108
  /**
2078
2109
  *
2079
- * @summary Get all amenities
2110
+ * @summary Get amenities
2080
2111
  * @param {number} [page]
2081
2112
  * @param {number} [pageSize]
2082
2113
  * @param {string} [filters] JSON string of FilterAmenityDto
@@ -2084,7 +2115,7 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
2084
2115
  * @param {*} [options] Override http request option.
2085
2116
  * @throws {RequiredError}
2086
2117
  */
2087
- amenitiesControllerFindAll: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2118
+ amenitiesControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2088
2119
  const localVarPath = `/api/amenities`;
2089
2120
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2090
2121
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2255,7 +2286,7 @@ export const AmenitiesApiFp = function(configuration?: Configuration) {
2255
2286
  },
2256
2287
  /**
2257
2288
  *
2258
- * @summary Get all amenities
2289
+ * @summary Get amenities
2259
2290
  * @param {number} [page]
2260
2291
  * @param {number} [pageSize]
2261
2292
  * @param {string} [filters] JSON string of FilterAmenityDto
@@ -2263,10 +2294,10 @@ export const AmenitiesApiFp = function(configuration?: Configuration) {
2263
2294
  * @param {*} [options] Override http request option.
2264
2295
  * @throws {RequiredError}
2265
2296
  */
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);
2297
+ async amenitiesControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AmenitiesPaginationResultDto>> {
2298
+ const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerFindMany(page, pageSize, filters, sort, options);
2268
2299
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2269
- const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerFindAll']?.[localVarOperationServerIndex]?.url;
2300
+ const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerFindMany']?.[localVarOperationServerIndex]?.url;
2270
2301
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2271
2302
  },
2272
2303
  /**
@@ -2329,7 +2360,7 @@ export const AmenitiesApiFactory = function (configuration?: Configuration, base
2329
2360
  },
2330
2361
  /**
2331
2362
  *
2332
- * @summary Get all amenities
2363
+ * @summary Get amenities
2333
2364
  * @param {number} [page]
2334
2365
  * @param {number} [pageSize]
2335
2366
  * @param {string} [filters] JSON string of FilterAmenityDto
@@ -2337,8 +2368,8 @@ export const AmenitiesApiFactory = function (configuration?: Configuration, base
2337
2368
  * @param {*} [options] Override http request option.
2338
2369
  * @throws {RequiredError}
2339
2370
  */
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));
2371
+ amenitiesControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<AmenitiesPaginationResultDto> {
2372
+ return localVarFp.amenitiesControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
2342
2373
  },
2343
2374
  /**
2344
2375
  *
@@ -2393,7 +2424,7 @@ export class AmenitiesApi extends BaseAPI {
2393
2424
 
2394
2425
  /**
2395
2426
  *
2396
- * @summary Get all amenities
2427
+ * @summary Get amenities
2397
2428
  * @param {number} [page]
2398
2429
  * @param {number} [pageSize]
2399
2430
  * @param {string} [filters] JSON string of FilterAmenityDto
@@ -2402,8 +2433,8 @@ export class AmenitiesApi extends BaseAPI {
2402
2433
  * @throws {RequiredError}
2403
2434
  * @memberof AmenitiesApi
2404
2435
  */
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));
2436
+ public amenitiesControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
2437
+ return AmenitiesApiFp(this.configuration).amenitiesControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
2407
2438
  }
2408
2439
 
2409
2440
  /**
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.14",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"