@ahomevilla-hotel/node-sdk 1.0.6 → 1.0.8
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.
- package/api.ts +265 -0
- 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
|
|
@@ -650,6 +722,25 @@ export interface Province {
|
|
|
650
722
|
* @memberof Province
|
|
651
723
|
*/
|
|
652
724
|
'slug': string;
|
|
725
|
+
/**
|
|
726
|
+
*
|
|
727
|
+
* @type {ProvinceCount}
|
|
728
|
+
* @memberof Province
|
|
729
|
+
*/
|
|
730
|
+
'_count': ProvinceCount;
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Count of branches in the province
|
|
734
|
+
* @export
|
|
735
|
+
* @interface ProvinceCount
|
|
736
|
+
*/
|
|
737
|
+
export interface ProvinceCount {
|
|
738
|
+
/**
|
|
739
|
+
*
|
|
740
|
+
* @type {number}
|
|
741
|
+
* @memberof ProvinceCount
|
|
742
|
+
*/
|
|
743
|
+
'branches'?: number;
|
|
653
744
|
}
|
|
654
745
|
/**
|
|
655
746
|
*
|
|
@@ -670,6 +761,99 @@ export interface ProvincePaginationResultDto {
|
|
|
670
761
|
*/
|
|
671
762
|
'meta': UsersPaginationResultDtoMeta;
|
|
672
763
|
}
|
|
764
|
+
/**
|
|
765
|
+
*
|
|
766
|
+
* @export
|
|
767
|
+
* @interface QueryBranchesDto
|
|
768
|
+
*/
|
|
769
|
+
export interface QueryBranchesDto {
|
|
770
|
+
/**
|
|
771
|
+
*
|
|
772
|
+
* @type {number}
|
|
773
|
+
* @memberof QueryBranchesDto
|
|
774
|
+
*/
|
|
775
|
+
'page'?: number;
|
|
776
|
+
/**
|
|
777
|
+
*
|
|
778
|
+
* @type {number}
|
|
779
|
+
* @memberof QueryBranchesDto
|
|
780
|
+
*/
|
|
781
|
+
'pageSize'?: number;
|
|
782
|
+
/**
|
|
783
|
+
* JSON string of FilterBranchesDto
|
|
784
|
+
* @type {string}
|
|
785
|
+
* @memberof QueryBranchesDto
|
|
786
|
+
*/
|
|
787
|
+
'filters'?: string;
|
|
788
|
+
/**
|
|
789
|
+
* JSON string of SortBranchDto[]
|
|
790
|
+
* @type {string}
|
|
791
|
+
* @memberof QueryBranchesDto
|
|
792
|
+
*/
|
|
793
|
+
'sort'?: string;
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @export
|
|
798
|
+
* @interface QueryProvincesDto
|
|
799
|
+
*/
|
|
800
|
+
export interface QueryProvincesDto {
|
|
801
|
+
/**
|
|
802
|
+
*
|
|
803
|
+
* @type {number}
|
|
804
|
+
* @memberof QueryProvincesDto
|
|
805
|
+
*/
|
|
806
|
+
'page'?: number;
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
* @type {number}
|
|
810
|
+
* @memberof QueryProvincesDto
|
|
811
|
+
*/
|
|
812
|
+
'pageSize'?: number;
|
|
813
|
+
/**
|
|
814
|
+
* JSON string of FilterProvincesDto
|
|
815
|
+
* @type {string}
|
|
816
|
+
* @memberof QueryProvincesDto
|
|
817
|
+
*/
|
|
818
|
+
'filters'?: string;
|
|
819
|
+
/**
|
|
820
|
+
* JSON string of SortProvinceDto[]
|
|
821
|
+
* @type {string}
|
|
822
|
+
* @memberof QueryProvincesDto
|
|
823
|
+
*/
|
|
824
|
+
'sort'?: string;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
*
|
|
828
|
+
* @export
|
|
829
|
+
* @interface QueryUsersDto
|
|
830
|
+
*/
|
|
831
|
+
export interface QueryUsersDto {
|
|
832
|
+
/**
|
|
833
|
+
*
|
|
834
|
+
* @type {number}
|
|
835
|
+
* @memberof QueryUsersDto
|
|
836
|
+
*/
|
|
837
|
+
'page'?: number;
|
|
838
|
+
/**
|
|
839
|
+
*
|
|
840
|
+
* @type {number}
|
|
841
|
+
* @memberof QueryUsersDto
|
|
842
|
+
*/
|
|
843
|
+
'pageSize'?: number;
|
|
844
|
+
/**
|
|
845
|
+
* JSON string of FilterUserDto
|
|
846
|
+
* @type {string}
|
|
847
|
+
* @memberof QueryUsersDto
|
|
848
|
+
*/
|
|
849
|
+
'filters'?: string;
|
|
850
|
+
/**
|
|
851
|
+
* JSON string of SortUserDto[]
|
|
852
|
+
* @type {string}
|
|
853
|
+
* @memberof QueryUsersDto
|
|
854
|
+
*/
|
|
855
|
+
'sort'?: string;
|
|
856
|
+
}
|
|
673
857
|
/**
|
|
674
858
|
*
|
|
675
859
|
* @export
|
|
@@ -940,6 +1124,87 @@ export interface SessionResponseDto {
|
|
|
940
1124
|
*/
|
|
941
1125
|
'sessions': Array<string>;
|
|
942
1126
|
}
|
|
1127
|
+
/**
|
|
1128
|
+
*
|
|
1129
|
+
* @export
|
|
1130
|
+
* @interface SortBranchDto
|
|
1131
|
+
*/
|
|
1132
|
+
export interface SortBranchDto {
|
|
1133
|
+
/**
|
|
1134
|
+
* Key of Entity to sort
|
|
1135
|
+
* @type {string}
|
|
1136
|
+
* @memberof SortBranchDto
|
|
1137
|
+
*/
|
|
1138
|
+
'orderBy': string;
|
|
1139
|
+
/**
|
|
1140
|
+
* Order of sorting
|
|
1141
|
+
* @type {string}
|
|
1142
|
+
* @memberof SortBranchDto
|
|
1143
|
+
*/
|
|
1144
|
+
'order': SortBranchDtoOrderEnum;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
export const SortBranchDtoOrderEnum = {
|
|
1148
|
+
Asc: 'asc',
|
|
1149
|
+
Desc: 'desc'
|
|
1150
|
+
} as const;
|
|
1151
|
+
|
|
1152
|
+
export type SortBranchDtoOrderEnum = typeof SortBranchDtoOrderEnum[keyof typeof SortBranchDtoOrderEnum];
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
*
|
|
1156
|
+
* @export
|
|
1157
|
+
* @interface SortProvinceDto
|
|
1158
|
+
*/
|
|
1159
|
+
export interface SortProvinceDto {
|
|
1160
|
+
/**
|
|
1161
|
+
* Key of Entity to sort
|
|
1162
|
+
* @type {string}
|
|
1163
|
+
* @memberof SortProvinceDto
|
|
1164
|
+
*/
|
|
1165
|
+
'orderBy': string;
|
|
1166
|
+
/**
|
|
1167
|
+
* Order of sorting
|
|
1168
|
+
* @type {string}
|
|
1169
|
+
* @memberof SortProvinceDto
|
|
1170
|
+
*/
|
|
1171
|
+
'order': SortProvinceDtoOrderEnum;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
export const SortProvinceDtoOrderEnum = {
|
|
1175
|
+
Asc: 'asc',
|
|
1176
|
+
Desc: 'desc'
|
|
1177
|
+
} as const;
|
|
1178
|
+
|
|
1179
|
+
export type SortProvinceDtoOrderEnum = typeof SortProvinceDtoOrderEnum[keyof typeof SortProvinceDtoOrderEnum];
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
*
|
|
1183
|
+
* @export
|
|
1184
|
+
* @interface SortUserDto
|
|
1185
|
+
*/
|
|
1186
|
+
export interface SortUserDto {
|
|
1187
|
+
/**
|
|
1188
|
+
* Key of User
|
|
1189
|
+
* @type {string}
|
|
1190
|
+
* @memberof SortUserDto
|
|
1191
|
+
*/
|
|
1192
|
+
'orderBy': string;
|
|
1193
|
+
/**
|
|
1194
|
+
* Order of sorting
|
|
1195
|
+
* @type {string}
|
|
1196
|
+
* @memberof SortUserDto
|
|
1197
|
+
*/
|
|
1198
|
+
'order': SortUserDtoOrderEnum;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
export const SortUserDtoOrderEnum = {
|
|
1202
|
+
Asc: 'asc',
|
|
1203
|
+
Desc: 'desc'
|
|
1204
|
+
} as const;
|
|
1205
|
+
|
|
1206
|
+
export type SortUserDtoOrderEnum = typeof SortUserDtoOrderEnum[keyof typeof SortUserDtoOrderEnum];
|
|
1207
|
+
|
|
943
1208
|
/**
|
|
944
1209
|
*
|
|
945
1210
|
* @export
|