@ahomevilla-hotel/node-sdk 1.0.10 → 1.0.11

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 +128 -19
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -196,6 +196,115 @@ export interface Branch {
196
196
  */
197
197
  'rating': number;
198
198
  }
199
+ /**
200
+ *
201
+ * @export
202
+ * @interface BranchDetail
203
+ */
204
+ export interface BranchDetail {
205
+ /**
206
+ *
207
+ * @type {string}
208
+ * @memberof BranchDetail
209
+ */
210
+ 'id': string;
211
+ /**
212
+ * Soft delete flag
213
+ * @type {boolean}
214
+ * @memberof BranchDetail
215
+ */
216
+ 'isDeleted': boolean;
217
+ /**
218
+ * Soft delete timestamp
219
+ * @type {string}
220
+ * @memberof BranchDetail
221
+ */
222
+ 'deletedAt': string | null;
223
+ /**
224
+ *
225
+ * @type {string}
226
+ * @memberof BranchDetail
227
+ */
228
+ 'createdAt': string;
229
+ /**
230
+ *
231
+ * @type {string}
232
+ * @memberof BranchDetail
233
+ */
234
+ 'updatedAt': string;
235
+ /**
236
+ * ID of the province where this branch is located
237
+ * @type {string}
238
+ * @memberof BranchDetail
239
+ */
240
+ 'provinceId': string;
241
+ /**
242
+ * Branch\'s thumbnail image
243
+ * @type {Image}
244
+ * @memberof BranchDetail
245
+ */
246
+ 'thumbnail': Image;
247
+ /**
248
+ * Branch\'s image gallery
249
+ * @type {Array<Image>}
250
+ * @memberof BranchDetail
251
+ */
252
+ 'images': Array<Image>;
253
+ /**
254
+ * Branch\'s name
255
+ * @type {string}
256
+ * @memberof BranchDetail
257
+ */
258
+ 'name': string;
259
+ /**
260
+ * Branch\'s slug
261
+ * @type {string}
262
+ * @memberof BranchDetail
263
+ */
264
+ 'slug': string;
265
+ /**
266
+ * Branch\'s description
267
+ * @type {string}
268
+ * @memberof BranchDetail
269
+ */
270
+ 'description': string;
271
+ /**
272
+ * Branch\'s contact phone number
273
+ * @type {string}
274
+ * @memberof BranchDetail
275
+ */
276
+ 'phone': string;
277
+ /**
278
+ * Branch\'s active status
279
+ * @type {boolean}
280
+ * @memberof BranchDetail
281
+ */
282
+ 'is_active': boolean;
283
+ /**
284
+ * Branch\'s physical address
285
+ * @type {string}
286
+ * @memberof BranchDetail
287
+ */
288
+ 'address': string;
289
+ /**
290
+ * Branch\'s geographical location
291
+ * @type {object}
292
+ * @memberof BranchDetail
293
+ */
294
+ 'location': object;
295
+ /**
296
+ * Branch\'s rating
297
+ * @type {number}
298
+ * @memberof BranchDetail
299
+ */
300
+ 'rating': number;
301
+ /**
302
+ * List of rooms available in the branch
303
+ * @type {Array<HotelRoom>}
304
+ * @memberof BranchDetail
305
+ */
306
+ 'rooms': Array<HotelRoom>;
307
+ }
199
308
  /**
200
309
  *
201
310
  * @export
@@ -3356,16 +3465,16 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3356
3465
  },
3357
3466
  /**
3358
3467
  *
3359
- * @summary Get branch by ID
3360
- * @param {string} id
3468
+ * @summary Get branch by ID or slug
3469
+ * @param {string} idOrSlug
3361
3470
  * @param {*} [options] Override http request option.
3362
3471
  * @throws {RequiredError}
3363
3472
  */
3364
- branchControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3365
- // verify required parameter 'id' is not null or undefined
3366
- assertParamExists('branchControllerFindOne', 'id', id)
3367
- const localVarPath = `/api/branches/{id}`
3368
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3473
+ branchControllerFindOne: async (idOrSlug: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3474
+ // verify required parameter 'idOrSlug' is not null or undefined
3475
+ assertParamExists('branchControllerFindOne', 'idOrSlug', idOrSlug)
3476
+ const localVarPath = `/api/branches/{idOrSlug}`
3477
+ .replace(`{${"idOrSlug"}}`, encodeURIComponent(String(idOrSlug)));
3369
3478
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3370
3479
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3371
3480
  let baseOptions;
@@ -3565,13 +3674,13 @@ export const BranchesApiFp = function(configuration?: Configuration) {
3565
3674
  },
3566
3675
  /**
3567
3676
  *
3568
- * @summary Get branch by ID
3569
- * @param {string} id
3677
+ * @summary Get branch by ID or slug
3678
+ * @param {string} idOrSlug
3570
3679
  * @param {*} [options] Override http request option.
3571
3680
  * @throws {RequiredError}
3572
3681
  */
3573
- async branchControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Branch>> {
3574
- const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerFindOne(id, options);
3682
+ async branchControllerFindOne(idOrSlug: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BranchDetail>> {
3683
+ const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerFindOne(idOrSlug, options);
3575
3684
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3576
3685
  const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerFindOne']?.[localVarOperationServerIndex]?.url;
3577
3686
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3673,13 +3782,13 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
3673
3782
  },
3674
3783
  /**
3675
3784
  *
3676
- * @summary Get branch by ID
3677
- * @param {string} id
3785
+ * @summary Get branch by ID or slug
3786
+ * @param {string} idOrSlug
3678
3787
  * @param {*} [options] Override http request option.
3679
3788
  * @throws {RequiredError}
3680
3789
  */
3681
- branchControllerFindOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Branch> {
3682
- return localVarFp.branchControllerFindOne(id, options).then((request) => request(axios, basePath));
3790
+ branchControllerFindOne(idOrSlug: string, options?: RawAxiosRequestConfig): AxiosPromise<BranchDetail> {
3791
+ return localVarFp.branchControllerFindOne(idOrSlug, options).then((request) => request(axios, basePath));
3683
3792
  },
3684
3793
  /**
3685
3794
  *
@@ -3777,14 +3886,14 @@ export class BranchesApi extends BaseAPI {
3777
3886
 
3778
3887
  /**
3779
3888
  *
3780
- * @summary Get branch by ID
3781
- * @param {string} id
3889
+ * @summary Get branch by ID or slug
3890
+ * @param {string} idOrSlug
3782
3891
  * @param {*} [options] Override http request option.
3783
3892
  * @throws {RequiredError}
3784
3893
  * @memberof BranchesApi
3785
3894
  */
3786
- public branchControllerFindOne(id: string, options?: RawAxiosRequestConfig) {
3787
- return BranchesApiFp(this.configuration).branchControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
3895
+ public branchControllerFindOne(idOrSlug: string, options?: RawAxiosRequestConfig) {
3896
+ return BranchesApiFp(this.configuration).branchControllerFindOne(idOrSlug, options).then((request) => request(this.axios, this.basePath));
3788
3897
  }
3789
3898
 
3790
3899
  /**
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "openapi-client",
11
11
  "openapi-generator"
12
12
  ],
13
- "version": "1.0.10",
13
+ "version": "1.0.11",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"