@ahomevilla-hotel/node-sdk 1.0.8 → 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 +393 -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}
@@ -1008,6 +1075,18 @@ export interface RoomDetail {
1008
1075
  * @memberof RoomDetail
1009
1076
  */
1010
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;
1011
1090
  /**
1012
1091
  *
1013
1092
  * @type {string}
@@ -1381,6 +1460,18 @@ export interface User {
1381
1460
  * @memberof User
1382
1461
  */
1383
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;
1384
1475
  /**
1385
1476
  *
1386
1477
  * @type {string}
@@ -1693,12 +1784,12 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
1693
1784
  *
1694
1785
  * @param {number} [page]
1695
1786
  * @param {number} [pageSize]
1696
- * @param {string} [filters] JSON string
1697
- * @param {string} [sort] JSON string
1787
+ * @param {object} [filters]
1788
+ * @param {Array<string>} [sort]
1698
1789
  * @param {*} [options] Override http request option.
1699
1790
  * @throws {RequiredError}
1700
1791
  */
1701
- 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> => {
1702
1793
  const localVarPath = `/api/amenities`;
1703
1794
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1704
1795
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1720,10 +1811,12 @@ export const AmenitiesApiAxiosParamCreator = function (configuration?: Configura
1720
1811
  }
1721
1812
 
1722
1813
  if (filters !== undefined) {
1723
- localVarQueryParameter['filters'] = filters;
1814
+ for (const [key, value] of Object.entries(filters)) {
1815
+ localVarQueryParameter[key] = value;
1816
+ }
1724
1817
  }
1725
1818
 
1726
- if (sort !== undefined) {
1819
+ if (sort) {
1727
1820
  localVarQueryParameter['sort'] = sort;
1728
1821
  }
1729
1822
 
@@ -1885,12 +1978,12 @@ export const AmenitiesApiFp = function(configuration?: Configuration) {
1885
1978
  *
1886
1979
  * @param {number} [page]
1887
1980
  * @param {number} [pageSize]
1888
- * @param {string} [filters] JSON string
1889
- * @param {string} [sort] JSON string
1981
+ * @param {object} [filters]
1982
+ * @param {Array<string>} [sort]
1890
1983
  * @param {*} [options] Override http request option.
1891
1984
  * @throws {RequiredError}
1892
1985
  */
1893
- 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>> {
1894
1987
  const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerFindAll(page, pageSize, filters, sort, options);
1895
1988
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1896
1989
  const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerFindAll']?.[localVarOperationServerIndex]?.url;
@@ -1961,12 +2054,12 @@ export const AmenitiesApiFactory = function (configuration?: Configuration, base
1961
2054
  *
1962
2055
  * @param {number} [page]
1963
2056
  * @param {number} [pageSize]
1964
- * @param {string} [filters] JSON string
1965
- * @param {string} [sort] JSON string
2057
+ * @param {object} [filters]
2058
+ * @param {Array<string>} [sort]
1966
2059
  * @param {*} [options] Override http request option.
1967
2060
  * @throws {RequiredError}
1968
2061
  */
1969
- 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> {
1970
2063
  return localVarFp.amenitiesControllerFindAll(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
1971
2064
  },
1972
2065
  /**
@@ -2027,13 +2120,13 @@ export class AmenitiesApi extends BaseAPI {
2027
2120
  *
2028
2121
  * @param {number} [page]
2029
2122
  * @param {number} [pageSize]
2030
- * @param {string} [filters] JSON string
2031
- * @param {string} [sort] JSON string
2123
+ * @param {object} [filters]
2124
+ * @param {Array<string>} [sort]
2032
2125
  * @param {*} [options] Override http request option.
2033
2126
  * @throws {RequiredError}
2034
2127
  * @memberof AmenitiesApi
2035
2128
  */
2036
- 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) {
2037
2130
  return AmenitiesApiFp(this.configuration).amenitiesControllerFindAll(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
2038
2131
  }
2039
2132
 
@@ -3069,7 +3162,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3069
3162
  branchControllerCreate: async (createBranchDto: CreateBranchDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3070
3163
  // verify required parameter 'createBranchDto' is not null or undefined
3071
3164
  assertParamExists('branchControllerCreate', 'createBranchDto', createBranchDto)
3072
- const localVarPath = `/api/branch`;
3165
+ const localVarPath = `/api/branches`;
3073
3166
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3074
3167
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3075
3168
  let baseOptions;
@@ -3095,6 +3188,36 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3095
3188
  options: localVarRequestOptions,
3096
3189
  };
3097
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
+ },
3098
3221
  /**
3099
3222
  *
3100
3223
  * @summary Get all branches with pagination and filters
@@ -3106,7 +3229,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3106
3229
  * @throws {RequiredError}
3107
3230
  */
3108
3231
  branchControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3109
- const localVarPath = `/api/branch`;
3232
+ const localVarPath = `/api/branches`;
3110
3233
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3111
3234
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3112
3235
  let baseOptions;
@@ -3156,7 +3279,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3156
3279
  * @throws {RequiredError}
3157
3280
  */
3158
3281
  branchControllerFindManyInfinite: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3159
- const localVarPath = `/api/branch/infinite`;
3282
+ const localVarPath = `/api/branches/infinite`;
3160
3283
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3161
3284
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3162
3285
  let baseOptions;
@@ -3205,7 +3328,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3205
3328
  branchControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3206
3329
  // verify required parameter 'id' is not null or undefined
3207
3330
  assertParamExists('branchControllerFindOne', 'id', id)
3208
- const localVarPath = `/api/branch/{id}`
3331
+ const localVarPath = `/api/branches/{id}`
3209
3332
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3210
3333
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3211
3334
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3239,7 +3362,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3239
3362
  branchControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3240
3363
  // verify required parameter 'id' is not null or undefined
3241
3364
  assertParamExists('branchControllerRemove', 'id', id)
3242
- const localVarPath = `/api/branch/{id}`
3365
+ const localVarPath = `/api/branches/{id}`
3243
3366
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3244
3367
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3245
3368
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3254,6 +3377,40 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3254
3377
 
3255
3378
 
3256
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
+
3257
3414
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3258
3415
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3259
3416
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3276,7 +3433,7 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
3276
3433
  assertParamExists('branchControllerUpdate', 'id', id)
3277
3434
  // verify required parameter 'updateBranchDto' is not null or undefined
3278
3435
  assertParamExists('branchControllerUpdate', 'updateBranchDto', updateBranchDto)
3279
- const localVarPath = `/api/branch/{id}`
3436
+ const localVarPath = `/api/branches/{id}`
3280
3437
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3281
3438
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3282
3439
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3326,6 +3483,18 @@ export const BranchesApiFp = function(configuration?: Configuration) {
3326
3483
  const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerCreate']?.[localVarOperationServerIndex]?.url;
3327
3484
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3328
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
+ },
3329
3498
  /**
3330
3499
  *
3331
3500
  * @summary Get all branches with pagination and filters
@@ -3352,7 +3521,7 @@ export const BranchesApiFp = function(configuration?: Configuration) {
3352
3521
  * @param {*} [options] Override http request option.
3353
3522
  * @throws {RequiredError}
3354
3523
  */
3355
- 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>> {
3356
3525
  const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerFindManyInfinite(page, pageSize, filters, sort, options);
3357
3526
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3358
3527
  const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerFindManyInfinite']?.[localVarOperationServerIndex]?.url;
@@ -3384,6 +3553,19 @@ export const BranchesApiFp = function(configuration?: Configuration) {
3384
3553
  const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerRemove']?.[localVarOperationServerIndex]?.url;
3385
3554
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3386
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
+ },
3387
3569
  /**
3388
3570
  *
3389
3571
  * @summary Update a branch
@@ -3418,6 +3600,15 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
3418
3600
  branchControllerCreate(createBranchDto: CreateBranchDto, options?: RawAxiosRequestConfig): AxiosPromise<Branch> {
3419
3601
  return localVarFp.branchControllerCreate(createBranchDto, options).then((request) => request(axios, basePath));
3420
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
+ },
3421
3612
  /**
3422
3613
  *
3423
3614
  * @summary Get all branches with pagination and filters
@@ -3441,7 +3632,7 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
3441
3632
  * @param {*} [options] Override http request option.
3442
3633
  * @throws {RequiredError}
3443
3634
  */
3444
- 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> {
3445
3636
  return localVarFp.branchControllerFindManyInfinite(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
3446
3637
  },
3447
3638
  /**
@@ -3464,6 +3655,16 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
3464
3655
  branchControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3465
3656
  return localVarFp.branchControllerRemove(id, options).then((request) => request(axios, basePath));
3466
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
+ },
3467
3668
  /**
3468
3669
  *
3469
3670
  * @summary Update a branch
@@ -3497,6 +3698,17 @@ export class BranchesApi extends BaseAPI {
3497
3698
  return BranchesApiFp(this.configuration).branchControllerCreate(createBranchDto, options).then((request) => request(this.axios, this.basePath));
3498
3699
  }
3499
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
+
3500
3712
  /**
3501
3713
  *
3502
3714
  * @summary Get all branches with pagination and filters
@@ -3551,6 +3763,18 @@ export class BranchesApi extends BaseAPI {
3551
3763
  return BranchesApiFp(this.configuration).branchControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
3552
3764
  }
3553
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
+
3554
3778
  /**
3555
3779
  *
3556
3780
  * @summary Update a branch
@@ -3885,6 +4109,36 @@ export const ProvincesApiAxiosParamCreator = function (configuration?: Configura
3885
4109
  options: localVarRequestOptions,
3886
4110
  };
3887
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
+ },
3888
4142
  /**
3889
4143
  *
3890
4144
  * @summary Get all provinces with pagination and filters
@@ -3994,6 +4248,40 @@ export const ProvincesApiAxiosParamCreator = function (configuration?: Configura
3994
4248
 
3995
4249
 
3996
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
+
3997
4285
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3998
4286
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3999
4287
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4066,6 +4354,18 @@ export const ProvincesApiFp = function(configuration?: Configuration) {
4066
4354
  const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerCreate']?.[localVarOperationServerIndex]?.url;
4067
4355
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4068
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
+ },
4069
4369
  /**
4070
4370
  *
4071
4371
  * @summary Get all provinces with pagination and filters
@@ -4108,6 +4408,19 @@ export const ProvincesApiFp = function(configuration?: Configuration) {
4108
4408
  const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerRemove']?.[localVarOperationServerIndex]?.url;
4109
4409
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4110
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
+ },
4111
4424
  /**
4112
4425
  *
4113
4426
  * @summary Update a province
@@ -4142,6 +4455,15 @@ export const ProvincesApiFactory = function (configuration?: Configuration, base
4142
4455
  provincesControllerCreate(createProvinceDto: CreateProvinceDto, options?: RawAxiosRequestConfig): AxiosPromise<Province> {
4143
4456
  return localVarFp.provincesControllerCreate(createProvinceDto, options).then((request) => request(axios, basePath));
4144
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
+ },
4145
4467
  /**
4146
4468
  *
4147
4469
  * @summary Get all provinces with pagination and filters
@@ -4175,6 +4497,16 @@ export const ProvincesApiFactory = function (configuration?: Configuration, base
4175
4497
  provincesControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
4176
4498
  return localVarFp.provincesControllerRemove(id, options).then((request) => request(axios, basePath));
4177
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
+ },
4178
4510
  /**
4179
4511
  *
4180
4512
  * @summary Update a province
@@ -4208,6 +4540,17 @@ export class ProvincesApi extends BaseAPI {
4208
4540
  return ProvincesApiFp(this.configuration).provincesControllerCreate(createProvinceDto, options).then((request) => request(this.axios, this.basePath));
4209
4541
  }
4210
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
+
4211
4554
  /**
4212
4555
  *
4213
4556
  * @summary Get all provinces with pagination and filters
@@ -4247,6 +4590,18 @@ export class ProvincesApi extends BaseAPI {
4247
4590
  return ProvincesApiFp(this.configuration).provincesControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
4248
4591
  }
4249
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
+
4250
4605
  /**
4251
4606
  *
4252
4607
  * @summary Update a province
@@ -4310,12 +4665,12 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
4310
4665
  * @summary Get all room details with pagination and filters
4311
4666
  * @param {number} [page]
4312
4667
  * @param {number} [pageSize]
4313
- * @param {string} [filters] JSON string
4314
- * @param {string} [sort] JSON string
4668
+ * @param {object} [filters]
4669
+ * @param {Array<string>} [sort]
4315
4670
  * @param {*} [options] Override http request option.
4316
4671
  * @throws {RequiredError}
4317
4672
  */
4318
- 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> => {
4319
4674
  const localVarPath = `/api/room-details`;
4320
4675
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4321
4676
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4337,10 +4692,12 @@ export const RoomDetailsApiAxiosParamCreator = function (configuration?: Configu
4337
4692
  }
4338
4693
 
4339
4694
  if (filters !== undefined) {
4340
- localVarQueryParameter['filters'] = filters;
4695
+ for (const [key, value] of Object.entries(filters)) {
4696
+ localVarQueryParameter[key] = value;
4697
+ }
4341
4698
  }
4342
4699
 
4343
- if (sort !== undefined) {
4700
+ if (sort) {
4344
4701
  localVarQueryParameter['sort'] = sort;
4345
4702
  }
4346
4703
 
@@ -4491,12 +4848,12 @@ export const RoomDetailsApiFp = function(configuration?: Configuration) {
4491
4848
  * @summary Get all room details with pagination and filters
4492
4849
  * @param {number} [page]
4493
4850
  * @param {number} [pageSize]
4494
- * @param {string} [filters] JSON string
4495
- * @param {string} [sort] JSON string
4851
+ * @param {object} [filters]
4852
+ * @param {Array<string>} [sort]
4496
4853
  * @param {*} [options] Override http request option.
4497
4854
  * @throws {RequiredError}
4498
4855
  */
4499
- 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>> {
4500
4857
  const localVarAxiosArgs = await localVarAxiosParamCreator.roomDetailControllerFindMany(page, pageSize, filters, sort, options);
4501
4858
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4502
4859
  const localVarOperationServerBasePath = operationServerMap['RoomDetailsApi.roomDetailControllerFindMany']?.[localVarOperationServerIndex]?.url;
@@ -4567,12 +4924,12 @@ export const RoomDetailsApiFactory = function (configuration?: Configuration, ba
4567
4924
  * @summary Get all room details with pagination and filters
4568
4925
  * @param {number} [page]
4569
4926
  * @param {number} [pageSize]
4570
- * @param {string} [filters] JSON string
4571
- * @param {string} [sort] JSON string
4927
+ * @param {object} [filters]
4928
+ * @param {Array<string>} [sort]
4572
4929
  * @param {*} [options] Override http request option.
4573
4930
  * @throws {RequiredError}
4574
4931
  */
4575
- 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> {
4576
4933
  return localVarFp.roomDetailControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
4577
4934
  },
4578
4935
  /**
@@ -4633,13 +4990,13 @@ export class RoomDetailsApi extends BaseAPI {
4633
4990
  * @summary Get all room details with pagination and filters
4634
4991
  * @param {number} [page]
4635
4992
  * @param {number} [pageSize]
4636
- * @param {string} [filters] JSON string
4637
- * @param {string} [sort] JSON string
4993
+ * @param {object} [filters]
4994
+ * @param {Array<string>} [sort]
4638
4995
  * @param {*} [options] Override http request option.
4639
4996
  * @throws {RequiredError}
4640
4997
  * @memberof RoomDetailsApi
4641
4998
  */
4642
- 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) {
4643
5000
  return RoomDetailsApiFp(this.configuration).roomDetailControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
4644
5001
  }
4645
5002
 
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "openapi-client",
11
11
  "openapi-generator"
12
12
  ],
13
- "version": "1.0.8",
13
+ "version": "1.0.9",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"