@ahomevilla-hotel/node-sdk 1.0.5 → 1.0.7

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 +270 -24
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -374,6 +374,78 @@ export interface CreateUserDto {
374
374
  */
375
375
  'name': string;
376
376
  }
377
+ /**
378
+ *
379
+ * @export
380
+ * @interface FilterBranchesDto
381
+ */
382
+ export interface FilterBranchesDto {
383
+ /**
384
+ * Search by keyword
385
+ * @type {string}
386
+ * @memberof FilterBranchesDto
387
+ */
388
+ 'keyword'?: string;
389
+ /**
390
+ * Filter by active status
391
+ * @type {boolean}
392
+ * @memberof FilterBranchesDto
393
+ */
394
+ 'is_active'?: boolean;
395
+ /**
396
+ * Filter by rating
397
+ * @type {number}
398
+ * @memberof FilterBranchesDto
399
+ */
400
+ 'rating'?: number;
401
+ /**
402
+ * Filter by province
403
+ * @type {string}
404
+ * @memberof FilterBranchesDto
405
+ */
406
+ 'provinceId'?: string;
407
+ /**
408
+ *
409
+ * @type {Array<string>}
410
+ * @memberof FilterBranchesDto
411
+ */
412
+ 'amenities'?: Array<string>;
413
+ }
414
+ /**
415
+ *
416
+ * @export
417
+ * @interface FilterProvincesDto
418
+ */
419
+ export interface FilterProvincesDto {
420
+ /**
421
+ * Search by keyword
422
+ * @type {string}
423
+ * @memberof FilterProvincesDto
424
+ */
425
+ 'keyword'?: string;
426
+ }
427
+ /**
428
+ *
429
+ * @export
430
+ * @interface FilterUserDto
431
+ */
432
+ export interface FilterUserDto {
433
+ /**
434
+ *
435
+ * @type {string}
436
+ * @memberof FilterUserDto
437
+ */
438
+ 'roles'?: FilterUserDtoRolesEnum;
439
+ }
440
+
441
+ export const FilterUserDtoRolesEnum = {
442
+ User: 'USER',
443
+ Staff: 'STAFF',
444
+ Admin: 'ADMIN'
445
+ } as const;
446
+
447
+ export type FilterUserDtoRolesEnum = typeof FilterUserDtoRolesEnum[keyof typeof FilterUserDtoRolesEnum];
448
+
377
449
  /**
378
450
  *
379
451
  * @export
@@ -670,6 +742,99 @@ export interface ProvincePaginationResultDto {
670
742
  */
671
743
  'meta': UsersPaginationResultDtoMeta;
672
744
  }
745
+ /**
746
+ *
747
+ * @export
748
+ * @interface QueryBranchesDto
749
+ */
750
+ export interface QueryBranchesDto {
751
+ /**
752
+ *
753
+ * @type {number}
754
+ * @memberof QueryBranchesDto
755
+ */
756
+ 'page'?: number;
757
+ /**
758
+ *
759
+ * @type {number}
760
+ * @memberof QueryBranchesDto
761
+ */
762
+ 'pageSize'?: number;
763
+ /**
764
+ * JSON string of FilterBranchesDto
765
+ * @type {string}
766
+ * @memberof QueryBranchesDto
767
+ */
768
+ 'filters'?: string;
769
+ /**
770
+ * JSON string of SortBranchDto[]
771
+ * @type {string}
772
+ * @memberof QueryBranchesDto
773
+ */
774
+ 'sort'?: string;
775
+ }
776
+ /**
777
+ *
778
+ * @export
779
+ * @interface QueryProvincesDto
780
+ */
781
+ export interface QueryProvincesDto {
782
+ /**
783
+ *
784
+ * @type {number}
785
+ * @memberof QueryProvincesDto
786
+ */
787
+ 'page'?: number;
788
+ /**
789
+ *
790
+ * @type {number}
791
+ * @memberof QueryProvincesDto
792
+ */
793
+ 'pageSize'?: number;
794
+ /**
795
+ * JSON string of FilterProvincesDto
796
+ * @type {string}
797
+ * @memberof QueryProvincesDto
798
+ */
799
+ 'filters'?: string;
800
+ /**
801
+ * JSON string of SortProvinceDto[]
802
+ * @type {string}
803
+ * @memberof QueryProvincesDto
804
+ */
805
+ 'sort'?: string;
806
+ }
807
+ /**
808
+ *
809
+ * @export
810
+ * @interface QueryUsersDto
811
+ */
812
+ export interface QueryUsersDto {
813
+ /**
814
+ *
815
+ * @type {number}
816
+ * @memberof QueryUsersDto
817
+ */
818
+ 'page'?: number;
819
+ /**
820
+ *
821
+ * @type {number}
822
+ * @memberof QueryUsersDto
823
+ */
824
+ 'pageSize'?: number;
825
+ /**
826
+ * JSON string of FilterUserDto
827
+ * @type {string}
828
+ * @memberof QueryUsersDto
829
+ */
830
+ 'filters'?: string;
831
+ /**
832
+ * JSON string of SortUserDto[]
833
+ * @type {string}
834
+ * @memberof QueryUsersDto
835
+ */
836
+ 'sort'?: string;
837
+ }
673
838
  /**
674
839
  *
675
840
  * @export
@@ -940,6 +1105,87 @@ export interface SessionResponseDto {
940
1105
  */
941
1106
  'sessions': Array<string>;
942
1107
  }
1108
+ /**
1109
+ *
1110
+ * @export
1111
+ * @interface SortBranchDto
1112
+ */
1113
+ export interface SortBranchDto {
1114
+ /**
1115
+ * Key of Entity to sort
1116
+ * @type {string}
1117
+ * @memberof SortBranchDto
1118
+ */
1119
+ 'orderBy': string;
1120
+ /**
1121
+ * Order of sorting
1122
+ * @type {string}
1123
+ * @memberof SortBranchDto
1124
+ */
1125
+ 'order': SortBranchDtoOrderEnum;
1126
+ }
1127
+
1128
+ export const SortBranchDtoOrderEnum = {
1129
+ Asc: 'asc',
1130
+ Desc: 'desc'
1131
+ } as const;
1132
+
1133
+ export type SortBranchDtoOrderEnum = typeof SortBranchDtoOrderEnum[keyof typeof SortBranchDtoOrderEnum];
1134
+
1135
+ /**
1136
+ *
1137
+ * @export
1138
+ * @interface SortProvinceDto
1139
+ */
1140
+ export interface SortProvinceDto {
1141
+ /**
1142
+ * Key of Entity to sort
1143
+ * @type {string}
1144
+ * @memberof SortProvinceDto
1145
+ */
1146
+ 'orderBy': string;
1147
+ /**
1148
+ * Order of sorting
1149
+ * @type {string}
1150
+ * @memberof SortProvinceDto
1151
+ */
1152
+ 'order': SortProvinceDtoOrderEnum;
1153
+ }
1154
+
1155
+ export const SortProvinceDtoOrderEnum = {
1156
+ Asc: 'asc',
1157
+ Desc: 'desc'
1158
+ } as const;
1159
+
1160
+ export type SortProvinceDtoOrderEnum = typeof SortProvinceDtoOrderEnum[keyof typeof SortProvinceDtoOrderEnum];
1161
+
1162
+ /**
1163
+ *
1164
+ * @export
1165
+ * @interface SortUserDto
1166
+ */
1167
+ export interface SortUserDto {
1168
+ /**
1169
+ * Key of User
1170
+ * @type {string}
1171
+ * @memberof SortUserDto
1172
+ */
1173
+ 'orderBy': string;
1174
+ /**
1175
+ * Order of sorting
1176
+ * @type {string}
1177
+ * @memberof SortUserDto
1178
+ */
1179
+ 'order': SortUserDtoOrderEnum;
1180
+ }
1181
+
1182
+ export const SortUserDtoOrderEnum = {
1183
+ Asc: 'asc',
1184
+ Desc: 'desc'
1185
+ } as const;
1186
+
1187
+ export type SortUserDtoOrderEnum = typeof SortUserDtoOrderEnum[keyof typeof SortUserDtoOrderEnum];
1188
+
943
1189
  /**
944
1190
  *
945
1191
  * @export
@@ -2835,8 +3081,8 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
2835
3081
  * @summary Get all branches with pagination and filters
2836
3082
  * @param {number} [page]
2837
3083
  * @param {number} [pageSize]
2838
- * @param {string} [filters] JSON string
2839
- * @param {string} [sort] JSON string
3084
+ * @param {string} [filters] JSON string of FilterBranchesDto
3085
+ * @param {string} [sort] JSON string of SortBranchDto[]
2840
3086
  * @param {*} [options] Override http request option.
2841
3087
  * @throws {RequiredError}
2842
3088
  */
@@ -2885,8 +3131,8 @@ export const BranchesApiAxiosParamCreator = function (configuration?: Configurat
2885
3131
  * @summary Get branches with infinite scroll for client app
2886
3132
  * @param {number} [page]
2887
3133
  * @param {number} [pageSize]
2888
- * @param {string} [filters] JSON string
2889
- * @param {string} [sort] JSON string
3134
+ * @param {string} [filters] JSON string of FilterBranchesDto
3135
+ * @param {string} [sort] JSON string of SortBranchDto[]
2890
3136
  * @param {*} [options] Override http request option.
2891
3137
  * @throws {RequiredError}
2892
3138
  */
@@ -3066,8 +3312,8 @@ export const BranchesApiFp = function(configuration?: Configuration) {
3066
3312
  * @summary Get all branches with pagination and filters
3067
3313
  * @param {number} [page]
3068
3314
  * @param {number} [pageSize]
3069
- * @param {string} [filters] JSON string
3070
- * @param {string} [sort] JSON string
3315
+ * @param {string} [filters] JSON string of FilterBranchesDto
3316
+ * @param {string} [sort] JSON string of SortBranchDto[]
3071
3317
  * @param {*} [options] Override http request option.
3072
3318
  * @throws {RequiredError}
3073
3319
  */
@@ -3082,8 +3328,8 @@ export const BranchesApiFp = function(configuration?: Configuration) {
3082
3328
  * @summary Get branches with infinite scroll for client app
3083
3329
  * @param {number} [page]
3084
3330
  * @param {number} [pageSize]
3085
- * @param {string} [filters] JSON string
3086
- * @param {string} [sort] JSON string
3331
+ * @param {string} [filters] JSON string of FilterBranchesDto
3332
+ * @param {string} [sort] JSON string of SortBranchDto[]
3087
3333
  * @param {*} [options] Override http request option.
3088
3334
  * @throws {RequiredError}
3089
3335
  */
@@ -3158,8 +3404,8 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
3158
3404
  * @summary Get all branches with pagination and filters
3159
3405
  * @param {number} [page]
3160
3406
  * @param {number} [pageSize]
3161
- * @param {string} [filters] JSON string
3162
- * @param {string} [sort] JSON string
3407
+ * @param {string} [filters] JSON string of FilterBranchesDto
3408
+ * @param {string} [sort] JSON string of SortBranchDto[]
3163
3409
  * @param {*} [options] Override http request option.
3164
3410
  * @throws {RequiredError}
3165
3411
  */
@@ -3171,8 +3417,8 @@ export const BranchesApiFactory = function (configuration?: Configuration, baseP
3171
3417
  * @summary Get branches with infinite scroll for client app
3172
3418
  * @param {number} [page]
3173
3419
  * @param {number} [pageSize]
3174
- * @param {string} [filters] JSON string
3175
- * @param {string} [sort] JSON string
3420
+ * @param {string} [filters] JSON string of FilterBranchesDto
3421
+ * @param {string} [sort] JSON string of SortBranchDto[]
3176
3422
  * @param {*} [options] Override http request option.
3177
3423
  * @throws {RequiredError}
3178
3424
  */
@@ -3237,8 +3483,8 @@ export class BranchesApi extends BaseAPI {
3237
3483
  * @summary Get all branches with pagination and filters
3238
3484
  * @param {number} [page]
3239
3485
  * @param {number} [pageSize]
3240
- * @param {string} [filters] JSON string
3241
- * @param {string} [sort] JSON string
3486
+ * @param {string} [filters] JSON string of FilterBranchesDto
3487
+ * @param {string} [sort] JSON string of SortBranchDto[]
3242
3488
  * @param {*} [options] Override http request option.
3243
3489
  * @throws {RequiredError}
3244
3490
  * @memberof BranchesApi
@@ -3252,8 +3498,8 @@ export class BranchesApi extends BaseAPI {
3252
3498
  * @summary Get branches with infinite scroll for client app
3253
3499
  * @param {number} [page]
3254
3500
  * @param {number} [pageSize]
3255
- * @param {string} [filters] JSON string
3256
- * @param {string} [sort] JSON string
3501
+ * @param {string} [filters] JSON string of FilterBranchesDto
3502
+ * @param {string} [sort] JSON string of SortBranchDto[]
3257
3503
  * @param {*} [options] Override http request option.
3258
3504
  * @throws {RequiredError}
3259
3505
  * @memberof BranchesApi
@@ -3625,8 +3871,8 @@ export const ProvincesApiAxiosParamCreator = function (configuration?: Configura
3625
3871
  * @summary Get all provinces with pagination and filters
3626
3872
  * @param {number} [page]
3627
3873
  * @param {number} [pageSize]
3628
- * @param {string} [filters] JSON string
3629
- * @param {string} [sort] JSON string
3874
+ * @param {string} [filters] JSON string of FilterProvincesDto
3875
+ * @param {string} [sort] JSON string of SortProvinceDto[]
3630
3876
  * @param {*} [options] Override http request option.
3631
3877
  * @throws {RequiredError}
3632
3878
  */
@@ -3806,8 +4052,8 @@ export const ProvincesApiFp = function(configuration?: Configuration) {
3806
4052
  * @summary Get all provinces with pagination and filters
3807
4053
  * @param {number} [page]
3808
4054
  * @param {number} [pageSize]
3809
- * @param {string} [filters] JSON string
3810
- * @param {string} [sort] JSON string
4055
+ * @param {string} [filters] JSON string of FilterProvincesDto
4056
+ * @param {string} [sort] JSON string of SortProvinceDto[]
3811
4057
  * @param {*} [options] Override http request option.
3812
4058
  * @throws {RequiredError}
3813
4059
  */
@@ -3882,8 +4128,8 @@ export const ProvincesApiFactory = function (configuration?: Configuration, base
3882
4128
  * @summary Get all provinces with pagination and filters
3883
4129
  * @param {number} [page]
3884
4130
  * @param {number} [pageSize]
3885
- * @param {string} [filters] JSON string
3886
- * @param {string} [sort] JSON string
4131
+ * @param {string} [filters] JSON string of FilterProvincesDto
4132
+ * @param {string} [sort] JSON string of SortProvinceDto[]
3887
4133
  * @param {*} [options] Override http request option.
3888
4134
  * @throws {RequiredError}
3889
4135
  */
@@ -3948,8 +4194,8 @@ export class ProvincesApi extends BaseAPI {
3948
4194
  * @summary Get all provinces with pagination and filters
3949
4195
  * @param {number} [page]
3950
4196
  * @param {number} [pageSize]
3951
- * @param {string} [filters] JSON string
3952
- * @param {string} [sort] JSON string
4197
+ * @param {string} [filters] JSON string of FilterProvincesDto
4198
+ * @param {string} [sort] JSON string of SortProvinceDto[]
3953
4199
  * @param {*} [options] Override http request option.
3954
4200
  * @throws {RequiredError}
3955
4201
  * @memberof ProvincesApi
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "openapi-client",
11
11
  "openapi-generator"
12
12
  ],
13
- "version": "1.0.5",
13
+ "version": "1.0.7",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"