@ahomevilla-hotel/node-sdk 1.0.7 → 1.0.9

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 +412 -36
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -35,6 +35,18 @@ export interface Amenity {
35
35
  * @memberof Amenity
36
36
  */
37
37
  'id': string;
38
+ /**
39
+ * Soft delete flag
40
+ * @type {boolean}
41
+ * @memberof Amenity
42
+ */
43
+ 'isDeleted': boolean;
44
+ /**
45
+ * Soft delete timestamp
46
+ * @type {string}
47
+ * @memberof Amenity
48
+ */
49
+ 'deletedAt': string | null;
38
50
  /**
39
51
  *
40
52
  * @type {string}
@@ -93,6 +105,18 @@ export interface Branch {
93
105
  * @memberof Branch
94
106
  */
95
107
  'id': string;
108
+ /**
109
+ * Soft delete flag
110
+ * @type {boolean}
111
+ * @memberof Branch
112
+ */
113
+ 'isDeleted': boolean;
114
+ /**
115
+ * Soft delete timestamp
116
+ * @type {string}
117
+ * @memberof Branch
118
+ */
119
+ 'deletedAt': string | null;
96
120
  /**
97
121
  *
98
122
  * @type {string}
@@ -160,6 +184,25 @@ export interface Branch {
160
184
  */
161
185
  'rating': number;
162
186
  }
187
+ /**
188
+ *
189
+ * @export
190
+ * @interface BranchesInfinitePaginationResultDto
191
+ */
192
+ export interface BranchesInfinitePaginationResultDto {
193
+ /**
194
+ *
195
+ * @type {Array<Branch>}
196
+ * @memberof BranchesInfinitePaginationResultDto
197
+ */
198
+ 'data': Array<Branch>;
199
+ /**
200
+ *
201
+ * @type {boolean}
202
+ * @memberof BranchesInfinitePaginationResultDto
203
+ */
204
+ 'hasNextPage': boolean;
205
+ }
163
206
  /**
164
207
  *
165
208
  * @export
@@ -458,6 +501,18 @@ export interface HotelRoom {
458
501
  * @memberof HotelRoom
459
502
  */
460
503
  'id': string;
504
+ /**
505
+ * Soft delete flag
506
+ * @type {boolean}
507
+ * @memberof HotelRoom
508
+ */
509
+ 'isDeleted': boolean;
510
+ /**
511
+ * Soft delete timestamp
512
+ * @type {string}
513
+ * @memberof HotelRoom
514
+ */
515
+ 'deletedAt': string | null;
461
516
  /**
462
517
  *
463
518
  * @type {string}
@@ -692,6 +747,18 @@ export interface Province {
692
747
  * @memberof Province
693
748
  */
694
749
  'id': string;
750
+ /**
751
+ * Soft delete flag
752
+ * @type {boolean}
753
+ * @memberof Province
754
+ */
755
+ 'isDeleted': boolean;
756
+ /**
757
+ * Soft delete timestamp
758
+ * @type {string}
759
+ * @memberof Province
760
+ */
761
+ 'deletedAt': string | null;
695
762
  /**
696
763
  *
697
764
  * @type {string}
@@ -722,6 +789,25 @@ export interface Province {
722
789
  * @memberof Province
723
790
  */
724
791
  'slug': string;
792
+ /**
793
+ *
794
+ * @type {ProvinceCount}
795
+ * @memberof Province
796
+ */
797
+ '_count': ProvinceCount;
798
+ }
799
+ /**
800
+ * Count of branches in the province
801
+ * @export
802
+ * @interface ProvinceCount
803
+ */
804
+ export interface ProvinceCount {
805
+ /**
806
+ *
807
+ * @type {number}
808
+ * @memberof ProvinceCount
809
+ */
810
+ 'branches'?: number;
725
811
  }
726
812
  /**
727
813
  *
@@ -989,6 +1075,18 @@ export interface RoomDetail {
989
1075
  * @memberof RoomDetail
990
1076
  */
991
1077
  'id': string;
1078
+ /**
1079
+ * Soft delete flag
1080
+ * @type {boolean}
1081
+ * @memberof RoomDetail
1082
+ */
1083
+ 'isDeleted': boolean;
1084
+ /**
1085
+ * Soft delete timestamp
1086
+ * @type {string}
1087
+ * @memberof RoomDetail
1088
+ */
1089
+ 'deletedAt': string | null;
992
1090
  /**
993
1091
  *
994
1092
  * @type {string}
@@ -1362,6 +1460,18 @@ export interface User {
1362
1460
  * @memberof User
1363
1461
  */
1364
1462
  'id': string;
1463
+ /**
1464
+ * Soft delete flag
1465
+ * @type {boolean}
1466
+ * @memberof User
1467
+ */
1468
+ 'isDeleted': boolean;
1469
+ /**
1470
+ * Soft delete timestamp
1471
+ * @type {string}
1472
+ * @memberof User
1473
+ */
1474
+ 'deletedAt': string | null;
1365
1475
  /**
1366
1476
  *
1367
1477
  * @type {string}
@@ -1674,12 +1784,12 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
1674
1784
  *
1675
1785
  * @param {number} [page]
1676
1786
  * @param {number} [pageSize]
1677
- * @param {string} [filters] JSON string
1678
- * @param {string} [sort] JSON string
1787
+ * @param {object} [filters]
1788
+ * @param {Array<string>} [sort]
1679
1789
  * @param {*} [options] Override http request option.
1680
1790
  * @throws {RequiredError}
1681
1791
  */
1682
- amenitiesControllerFindAll: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1792
+ amenitiesControllerFindAll: async (page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1683
1793
  const localVarPath = `/api/amenities`;
1684
1794
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1685
1795
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1701,10 +1811,12 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
1701
1811
  }
1702
1812
 
1703
1813
  if (filters !== undefined) {
1704
- localVarQueryParameter['filters'] = filters;
1814
+ for (const [key, value] of Object.entries(filters)) {
1815
+ localVarQueryParameter[key] = value;
1816
+ }
1705
1817
  }
1706
1818
 
1707
- if (sort !== undefined) {
1819
+ if (sort) {
1708
1820
  localVarQueryParameter['sort'] = sort;
1709
1821
  }
1710
1822
 
@@ -1866,12 +1978,12 @@ export const AmenitiesApiFp = function(configuration?: Configuration) {
1866
1978
  *
1867
1979
  * @param {number} [page]
1868
1980
  * @param {number} [pageSize]
1869
- * @param {string} [filters] JSON string
1870
- * @param {string} [sort] JSON string
1981
+ * @param {object} [filters]
1982
+ * @param {Array<string>} [sort]
1871
1983
  * @param {*} [options] Override http request option.
1872
1984
  * @throws {RequiredError}
1873
1985
  */
1874
- async amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1986
+ async amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1875
1987
  const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerFindAll(page, pageSize, filters, sort, options);
1876
1988
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1877
1989
  const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerFindAll']?.[localVarOperationServerIndex]?.url;
@@ -1942,12 +2054,12 @@ export const AmenitiesApiFactory = function (configuration?: Configuration, base
1942
2054
  *
1943
2055
  * @param {number} [page]
1944
2056
  * @param {number} [pageSize]
1945
- * @param {string} [filters] JSON string
1946
- * @param {string} [sort] JSON string
2057
+ * @param {object} [filters]
2058
+ * @param {Array<string>} [sort]
1947
2059
  * @param {*} [options] Override http request option.
1948
2060
  * @throws {RequiredError}
1949
2061
  */
1950
- amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2062
+ amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1951
2063
  return localVarFp.amenitiesControllerFindAll(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
1952
2064
  },
1953
2065
  /**
@@ -2008,13 +2120,13 @@ export class AmenitiesApi extends BaseAPI {
2008
2120
  *
2009
2121
  * @param {number} [page]
2010
2122
  * @param {number} [pageSize]
2011
- * @param {string} [filters] JSON string
2012
- * @param {string} [sort] JSON string
2123
+ * @param {object} [filters]
2124
+ * @param {Array<string>} [sort]
2013
2125
  * @param {*} [options] Override http request option.
2014
2126
  * @throws {RequiredError}
2015
2127
  * @memberof AmenitiesApi
2016
2128
  */
2017
- public amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
2129
+ public amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options?: RawAxiosRequestConfig) {
2018
2130
  return AmenitiesApiFp(this.configuration).amenitiesControllerFindAll(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
2019
2131
  }
2020
2132
 
@@ -3050,7 +3162,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3050
3162
  branchControllerCreate: async (createBranchDto: CreateBranchDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3051
3163
  // verify required parameter 'createBranchDto' is not null or undefined
3052
3164
  assertParamExists('branchControllerCreate', 'createBranchDto', createBranchDto)
3053
- const localVarPath = `/api/branch`;
3165
+ const localVarPath = `/api/branches`;
3054
3166
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3055
3167
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3056
3168
  let baseOptions;
@@ -3076,6 +3188,36 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3076
3188
  options: localVarRequestOptions,
3077
3189
  };
3078
3190
  },
3191
+ /**
3192
+ *
3193
+ * @summary Get all soft-deleted branches
3194
+ * @param {*} [options] Override http request option.
3195
+ * @throws {RequiredError}
3196
+ */
3197
+ branchControllerFindDeleted: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3198
+ const localVarPath = `/api/branches/deleted`;
3199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3200
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3201
+ let baseOptions;
3202
+ if (configuration) {
3203
+ baseOptions = configuration.baseOptions;
3204
+ }
3205
+
3206
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3207
+ const localVarHeaderParameter = {} as any;
3208
+ const localVarQueryParameter = {} as any;
3209
+
3210
+
3211
+
3212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3214
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3215
+
3216
+ return {
3217
+ url: toPathString(localVarUrlObj),
3218
+ options: localVarRequestOptions,
3219
+ };
3220
+ },
3079
3221
  /**
3080
3222
  *
3081
3223
  * @summary Get all branches with pagination and filters
@@ -3087,7 +3229,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3087
3229
  * @throws {RequiredError}
3088
3230
  */
3089
3231
  branchControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3090
- const localVarPath = `/api/branch`;
3232
+ const localVarPath = `/api/branches`;
3091
3233
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3092
3234
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3093
3235
  let baseOptions;
@@ -3137,7 +3279,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3137
3279
  * @throws {RequiredError}
3138
3280
  */
3139
3281
  branchControllerFindManyInfinite: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3140
- const localVarPath = `/api/branch/infinite`;
3282
+ const localVarPath = `/api/branches/infinite`;
3141
3283
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3142
3284
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3143
3285
  let baseOptions;
@@ -3186,7 +3328,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3186
3328
  branchControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3187
3329
  // verify required parameter 'id' is not null or undefined
3188
3330
  assertParamExists('branchControllerFindOne', 'id', id)
3189
- const localVarPath = `/api/branch/{id}`
3331
+ const localVarPath = `/api/branches/{id}`
3190
3332
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3191
3333
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3192
3334
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3220,7 +3362,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3220
3362
  branchControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3221
3363
  // verify required parameter 'id' is not null or undefined
3222
3364
  assertParamExists('branchControllerRemove', 'id', id)
3223
- const localVarPath = `/api/branch/{id}`
3365
+ const localVarPath = `/api/branches/{id}`
3224
3366
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3225
3367
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3226
3368
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3235,6 +3377,40 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3235
3377
 
3236
3378
 
3237
3379
 
3380
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3381
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3382
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3383
+
3384
+ return {
3385
+ url: toPathString(localVarUrlObj),
3386
+ options: localVarRequestOptions,
3387
+ };
3388
+ },
3389
+ /**
3390
+ *
3391
+ * @summary Restore a soft-deleted branch
3392
+ * @param {string} id
3393
+ * @param {*} [options] Override http request option.
3394
+ * @throws {RequiredError}
3395
+ */
3396
+ branchControllerRestore: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3397
+ // verify required parameter 'id' is not null or undefined
3398
+ assertParamExists('branchControllerRestore', 'id', id)
3399
+ const localVarPath = `/api/branches/{id}/restore`
3400
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3401
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3402
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3403
+ let baseOptions;
3404
+ if (configuration) {
3405
+ baseOptions = configuration.baseOptions;
3406
+ }
3407
+
3408
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3409
+ const localVarHeaderParameter = {} as any;
3410
+ const localVarQueryParameter = {} as any;
3411
+
3412
+
3413
+
3238
3414
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3239
3415
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3240
3416
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3257,7 +3433,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3257
3433
  assertParamExists('branchControllerUpdate', 'id', id)
3258
3434
  // verify required parameter 'updateBranchDto' is not null or undefined
3259
3435
  assertParamExists('branchControllerUpdate', 'updateBranchDto', updateBranchDto)
3260
- const localVarPath = `/api/branch/{id}`
3436
+ const localVarPath = `/api/branches/{id}`
3261
3437
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3262
3438
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3263
3439
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3307,6 +3483,18 @@ export const BranchesApiFp = function(configuration?: Configuration) {
3307
3483
  const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerCreate']?.[localVarOperationServerIndex]?.url;
3308
3484
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3309
3485
  },
3486
+ /**
3487
+ *
3488
+ * @summary Get all soft-deleted branches
3489
+ * @param {*} [options] Override http request option.
3490
+ * @throws {RequiredError}
3491
+ */
3492
+ async branchControllerFindDeleted(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Branch>>> {
3493
+ const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerFindDeleted(options);
3494
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3495
+ const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerFindDeleted']?.[localVarOperationServerIndex]?.url;
3496
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3497
+ },
3310
3498
  /**
3311
3499
  *
3312
3500
  * @summary Get all branches with pagination and filters
@@ -3333,7 +3521,7 @@ export const BranchesApiFp = function(configuration?: Configuration) {
3333
3521
  * @param {*} [options] Override http request option.
3334
3522
  * @throws {RequiredError}
3335
3523
  */
3336
- async branchControllerFindManyInfinite(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Branch>>> {
3524
+ async branchControllerFindManyInfinite(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BranchesInfinitePaginationResultDto>> {
3337
3525
  const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerFindManyInfinite(page, pageSize, filters, sort, options);
3338
3526
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3339
3527
  const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerFindManyInfinite']?.[localVarOperationServerIndex]?.url;
@@ -3365,6 +3553,19 @@ export const BranchesApiFp = function(configuration?: Configuration) {
3365
3553
  const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerRemove']?.[localVarOperationServerIndex]?.url;
3366
3554
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3367
3555
  },
3556
+ /**
3557
+ *
3558
+ * @summary Restore a soft-deleted branch
3559
+ * @param {string} id
3560
+ * @param {*} [options] Override http request option.
3561
+ * @throws {RequiredError}
3562
+ */
3563
+ async branchControllerRestore(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerRestore(id, options);
3565
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3566
+ const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerRestore']?.[localVarOperationServerIndex]?.url;
3567
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3568
+ },
3368
3569
  /**
3369
3570
  *
3370
3571
  * @summary Update a branch
@@ -3399,6 +3600,15 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
3399
3600
  branchControllerCreate(createBranchDto: CreateBranchDto, options?: RawAxiosRequestConfig): AxiosPromise<Branch> {
3400
3601
  return localVarFp.branchControllerCreate(createBranchDto, options).then((request) => request(axios, basePath));
3401
3602
  },
3603
+ /**
3604
+ *
3605
+ * @summary Get all soft-deleted branches
3606
+ * @param {*} [options] Override http request option.
3607
+ * @throws {RequiredError}
3608
+ */
3609
+ branchControllerFindDeleted(options?: RawAxiosRequestConfig): AxiosPromise<Array<Branch>> {
3610
+ return localVarFp.branchControllerFindDeleted(options).then((request) => request(axios, basePath));
3611
+ },
3402
3612
  /**
3403
3613
  *
3404
3614
  * @summary Get all branches with pagination and filters
@@ -3422,7 +3632,7 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
3422
3632
  * @param {*} [options] Override http request option.
3423
3633
  * @throws {RequiredError}
3424
3634
  */
3425
- branchControllerFindManyInfinite(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Branch>> {
3635
+ branchControllerFindManyInfinite(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<BranchesInfinitePaginationResultDto> {
3426
3636
  return localVarFp.branchControllerFindManyInfinite(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
3427
3637
  },
3428
3638
  /**
@@ -3445,6 +3655,16 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
3445
3655
  branchControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3446
3656
  return localVarFp.branchControllerRemove(id, options).then((request) => request(axios, basePath));
3447
3657
  },
3658
+ /**
3659
+ *
3660
+ * @summary Restore a soft-deleted branch
3661
+ * @param {string} id
3662
+ * @param {*} [options] Override http request option.
3663
+ * @throws {RequiredError}
3664
+ */
3665
+ branchControllerRestore(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3666
+ return localVarFp.branchControllerRestore(id, options).then((request) => request(axios, basePath));
3667
+ },
3448
3668
  /**
3449
3669
  *
3450
3670
  * @summary Update a branch
@@ -3478,6 +3698,17 @@ export class BranchesApi extends BaseAPI {
3478
3698
  return BranchesApiFp(this.configuration).branchControllerCreate(createBranchDto, options).then((request) => request(this.axios, this.basePath));
3479
3699
  }
3480
3700
 
3701
+ /**
3702
+ *
3703
+ * @summary Get all soft-deleted branches
3704
+ * @param {*} [options] Override http request option.
3705
+ * @throws {RequiredError}
3706
+ * @memberof BranchesApi
3707
+ */
3708
+ public branchControllerFindDeleted(options?: RawAxiosRequestConfig) {
3709
+ return BranchesApiFp(this.configuration).branchControllerFindDeleted(options).then((request) => request(this.axios, this.basePath));
3710
+ }
3711
+
3481
3712
  /**
3482
3713
  *
3483
3714
  * @summary Get all branches with pagination and filters
@@ -3532,6 +3763,18 @@ export class BranchesApi extends BaseAPI {
3532
3763
  return BranchesApiFp(this.configuration).branchControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
3533
3764
  }
3534
3765
 
3766
+ /**
3767
+ *
3768
+ * @summary Restore a soft-deleted branch
3769
+ * @param {string} id
3770
+ * @param {*} [options] Override http request option.
3771
+ * @throws {RequiredError}
3772
+ * @memberof BranchesApi
3773
+ */
3774
+ public branchControllerRestore(id: string, options?: RawAxiosRequestConfig) {
3775
+ return BranchesApiFp(this.configuration).branchControllerRestore(id, options).then((request) => request(this.axios, this.basePath));
3776
+ }
3777
+
3535
3778
  /**
3536
3779
  *
3537
3780
  * @summary Update a branch
@@ -3866,6 +4109,36 @@ export const ProvincesApiAxiosParamCreator = function (configuration?: Configura
3866
4109
  options: localVarRequestOptions,
3867
4110
  };
3868
4111
  },
4112
+ /**
4113
+ *
4114
+ * @summary Get all soft-deleted provinces
4115
+ * @param {*} [options] Override http request option.
4116
+ * @throws {RequiredError}
4117
+ */
4118
+ provincesControllerFindDeleted: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4119
+ const localVarPath = `/api/provinces/deleted`;
4120
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4121
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4122
+ let baseOptions;
4123
+ if (configuration) {
4124
+ baseOptions = configuration.baseOptions;
4125
+ }
4126
+
4127
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4128
+ const localVarHeaderParameter = {} as any;
4129
+ const localVarQueryParameter = {} as any;
4130
+
4131
+
4132
+
4133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4135
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4136
+
4137
+ return {
4138
+ url: toPathString(localVarUrlObj),
4139
+ options: localVarRequestOptions,
4140
+ };
4141
+ },
3869
4142
  /**
3870
4143
  *
3871
4144
  * @summary Get all provinces with pagination and filters
@@ -3975,6 +4248,40 @@ export const ProvincesApiAxiosParamCreator = function (configuration?: Configura
3975
4248
 
3976
4249
 
3977
4250
 
4251
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4253
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4254
+
4255
+ return {
4256
+ url: toPathString(localVarUrlObj),
4257
+ options: localVarRequestOptions,
4258
+ };
4259
+ },
4260
+ /**
4261
+ *
4262
+ * @summary Restore a soft-deleted province
4263
+ * @param {string} id
4264
+ * @param {*} [options] Override http request option.
4265
+ * @throws {RequiredError}
4266
+ */
4267
+ provincesControllerRestore: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4268
+ // verify required parameter 'id' is not null or undefined
4269
+ assertParamExists('provincesControllerRestore', 'id', id)
4270
+ const localVarPath = `/api/provinces/{id}/restore`
4271
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4272
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4273
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4274
+ let baseOptions;
4275
+ if (configuration) {
4276
+ baseOptions = configuration.baseOptions;
4277
+ }
4278
+
4279
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4280
+ const localVarHeaderParameter = {} as any;
4281
+ const localVarQueryParameter = {} as any;
4282
+
4283
+
4284
+
3978
4285
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3979
4286
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3980
4287
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4047,6 +4354,18 @@ export const ProvincesApiFp = function(configuration?: Configuration) {
4047
4354
  const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerCreate']?.[localVarOperationServerIndex]?.url;
4048
4355
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4049
4356
  },
4357
+ /**
4358
+ *
4359
+ * @summary Get all soft-deleted provinces
4360
+ * @param {*} [options] Override http request option.
4361
+ * @throws {RequiredError}
4362
+ */
4363
+ async provincesControllerFindDeleted(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Province>>> {
4364
+ const localVarAxiosArgs = await localVarAxiosParamCreator.provincesControllerFindDeleted(options);
4365
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4366
+ const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerFindDeleted']?.[localVarOperationServerIndex]?.url;
4367
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4368
+ },
4050
4369
  /**
4051
4370
  *
4052
4371
  * @summary Get all provinces with pagination and filters
@@ -4089,6 +4408,19 @@ export const ProvincesApiFp = function(configuration?: Configuration) {
4089
4408
  const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerRemove']?.[localVarOperationServerIndex]?.url;
4090
4409
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4091
4410
  },
4411
+ /**
4412
+ *
4413
+ * @summary Restore a soft-deleted province
4414
+ * @param {string} id
4415
+ * @param {*} [options] Override http request option.
4416
+ * @throws {RequiredError}
4417
+ */
4418
+ async provincesControllerRestore(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4419
+ const localVarAxiosArgs = await localVarAxiosParamCreator.provincesControllerRestore(id, options);
4420
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4421
+ const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerRestore']?.[localVarOperationServerIndex]?.url;
4422
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4423
+ },
4092
4424
  /**
4093
4425
  *
4094
4426
  * @summary Update a province
@@ -4123,6 +4455,15 @@ export const ProvincesApiFactory = function (configuration?: Configuration, base
4123
4455
  provincesControllerCreate(createProvinceDto: CreateProvinceDto, options?: RawAxiosRequestConfig): AxiosPromise<Province> {
4124
4456
  return localVarFp.provincesControllerCreate(createProvinceDto, options).then((request) => request(axios, basePath));
4125
4457
  },
4458
+ /**
4459
+ *
4460
+ * @summary Get all soft-deleted provinces
4461
+ * @param {*} [options] Override http request option.
4462
+ * @throws {RequiredError}
4463
+ */
4464
+ provincesControllerFindDeleted(options?: RawAxiosRequestConfig): AxiosPromise<Array<Province>> {
4465
+ return localVarFp.provincesControllerFindDeleted(options).then((request) => request(axios, basePath));
4466
+ },
4126
4467
  /**
4127
4468
  *
4128
4469
  * @summary Get all provinces with pagination and filters
@@ -4156,6 +4497,16 @@ export const ProvincesApiFactory = function (configuration?: Configuration, base
4156
4497
  provincesControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
4157
4498
  return localVarFp.provincesControllerRemove(id, options).then((request) => request(axios, basePath));
4158
4499
  },
4500
+ /**
4501
+ *
4502
+ * @summary Restore a soft-deleted province
4503
+ * @param {string} id
4504
+ * @param {*} [options] Override http request option.
4505
+ * @throws {RequiredError}
4506
+ */
4507
+ provincesControllerRestore(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
4508
+ return localVarFp.provincesControllerRestore(id, options).then((request) => request(axios, basePath));
4509
+ },
4159
4510
  /**
4160
4511
  *
4161
4512
  * @summary Update a province
@@ -4189,6 +4540,17 @@ export class ProvincesApi extends BaseAPI {
4189
4540
  return ProvincesApiFp(this.configuration).provincesControllerCreate(createProvinceDto, options).then((request) => request(this.axios, this.basePath));
4190
4541
  }
4191
4542
 
4543
+ /**
4544
+ *
4545
+ * @summary Get all soft-deleted provinces
4546
+ * @param {*} [options] Override http request option.
4547
+ * @throws {RequiredError}
4548
+ * @memberof ProvincesApi
4549
+ */
4550
+ public provincesControllerFindDeleted(options?: RawAxiosRequestConfig) {
4551
+ return ProvincesApiFp(this.configuration).provincesControllerFindDeleted(options).then((request) => request(this.axios, this.basePath));
4552
+ }
4553
+
4192
4554
  /**
4193
4555
  *
4194
4556
  * @summary Get all provinces with pagination and filters
@@ -4228,6 +4590,18 @@ export class ProvincesApi extends BaseAPI {
4228
4590
  return ProvincesApiFp(this.configuration).provincesControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
4229
4591
  }
4230
4592
 
4593
+ /**
4594
+ *
4595
+ * @summary Restore a soft-deleted province
4596
+ * @param {string} id
4597
+ * @param {*} [options] Override http request option.
4598
+ * @throws {RequiredError}
4599
+ * @memberof ProvincesApi
4600
+ */
4601
+ public provincesControllerRestore(id: string, options?: RawAxiosRequestConfig) {
4602
+ return ProvincesApiFp(this.configuration).provincesControllerRestore(id, options).then((request) => request(this.axios, this.basePath));
4603
+ }
4604
+
4231
4605
  /**
4232
4606
  *
4233
4607
  * @summary Update a province
@@ -4291,12 +4665,12 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
4291
4665
  * @summary Get all room details with pagination and filters
4292
4666
  * @param {number} [page]
4293
4667
  * @param {number} [pageSize]
4294
- * @param {string} [filters] JSON string
4295
- * @param {string} [sort] JSON string
4668
+ * @param {object} [filters]
4669
+ * @param {Array<string>} [sort]
4296
4670
  * @param {*} [options] Override http request option.
4297
4671
  * @throws {RequiredError}
4298
4672
  */
4299
- roomDetailControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4673
+ roomDetailControllerFindMany: async (page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4300
4674
  const localVarPath = `/api/room-details`;
4301
4675
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4302
4676
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4318,10 +4692,12 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
4318
4692
  }
4319
4693
 
4320
4694
  if (filters !== undefined) {
4321
- localVarQueryParameter['filters'] = filters;
4695
+ for (const [key, value] of Object.entries(filters)) {
4696
+ localVarQueryParameter[key] = value;
4697
+ }
4322
4698
  }
4323
4699
 
4324
- if (sort !== undefined) {
4700
+ if (sort) {
4325
4701
  localVarQueryParameter['sort'] = sort;
4326
4702
  }
4327
4703
 
@@ -4472,12 +4848,12 @@ export const RoomDetailsApiFp = function(configuration?: Configuration) {
4472
4848
  * @summary Get all room details with pagination and filters
4473
4849
  * @param {number} [page]
4474
4850
  * @param {number} [pageSize]
4475
- * @param {string} [filters] JSON string
4476
- * @param {string} [sort] JSON string
4851
+ * @param {object} [filters]
4852
+ * @param {Array<string>} [sort]
4477
4853
  * @param {*} [options] Override http request option.
4478
4854
  * @throws {RequiredError}
4479
4855
  */
4480
- async roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetailPaginationResultDto>> {
4856
+ async roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetailPaginationResultDto>> {
4481
4857
  const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerFindMany(page, pageSize, filters, sort, options);
4482
4858
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4483
4859
  const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerFindMany']?.[localVarOperationServerIndex]?.url;
@@ -4548,12 +4924,12 @@ export const RoomDetailsApiFactory = function (configuration?: Configuration, ba
4548
4924
  * @summary Get all room details with pagination and filters
4549
4925
  * @param {number} [page]
4550
4926
  * @param {number} [pageSize]
4551
- * @param {string} [filters] JSON string
4552
- * @param {string} [sort] JSON string
4927
+ * @param {object} [filters]
4928
+ * @param {Array<string>} [sort]
4553
4929
  * @param {*} [options] Override http request option.
4554
4930
  * @throws {RequiredError}
4555
4931
  */
4556
- roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetailPaginationResultDto> {
4932
+ roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<RoomDetailPaginationResultDto> {
4557
4933
  return localVarFp.roomDetailControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
4558
4934
  },
4559
4935
  /**
@@ -4614,13 +4990,13 @@ export class RoomDetailsApi extends BaseAPI {
4614
4990
  * @summary Get all room details with pagination and filters
4615
4991
  * @param {number} [page]
4616
4992
  * @param {number} [pageSize]
4617
- * @param {string} [filters] JSON string
4618
- * @param {string} [sort] JSON string
4993
+ * @param {object} [filters]
4994
+ * @param {Array<string>} [sort]
4619
4995
  * @param {*} [options] Override http request option.
4620
4996
  * @throws {RequiredError}
4621
4997
  * @memberof RoomDetailsApi
4622
4998
  */
4623
- public roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
4999
+ public roomDetailControllerFindMany(page?: number, pageSize?: number, filters?: object, sort?: Array<string>, options?: RawAxiosRequestConfig) {
4624
5000
  return RoomDetailsApiFp(this.configuration).roomDetailControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
4625
5001
  }
4626
5002
 
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "openapi-client",
11
11
  "openapi-generator"
12
12
  ],
13
- "version": "1.0.7",
13
+ "version": "1.0.9",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"