@ahomevilla-hotel/node-sdk 1.0.14 → 1.0.16
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 +40 -46
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -208,12 +208,6 @@ export interface Branch {
|
|
|
208
208
|
* @memberof Branch
|
|
209
209
|
*/
|
|
210
210
|
'address': string;
|
|
211
|
-
/**
|
|
212
|
-
* Branch\'s geographical location
|
|
213
|
-
* @type {object}
|
|
214
|
-
* @memberof Branch
|
|
215
|
-
*/
|
|
216
|
-
'location': object;
|
|
217
211
|
/**
|
|
218
212
|
* Branch\'s rating
|
|
219
213
|
* @type {number}
|
|
@@ -317,24 +311,30 @@ export interface BranchDetail {
|
|
|
317
311
|
* @memberof BranchDetail
|
|
318
312
|
*/
|
|
319
313
|
'address': string;
|
|
320
|
-
/**
|
|
321
|
-
* Branch\'s geographical location
|
|
322
|
-
* @type {object}
|
|
323
|
-
* @memberof BranchDetail
|
|
324
|
-
*/
|
|
325
|
-
'location': object;
|
|
326
314
|
/**
|
|
327
315
|
* Branch\'s rating
|
|
328
316
|
* @type {number}
|
|
329
317
|
* @memberof BranchDetail
|
|
330
318
|
*/
|
|
331
319
|
'rating': number;
|
|
320
|
+
/**
|
|
321
|
+
* Amenities available in the branch
|
|
322
|
+
* @type {Array<Amenity>}
|
|
323
|
+
* @memberof BranchDetail
|
|
324
|
+
*/
|
|
325
|
+
'amenities': Array<Amenity>;
|
|
332
326
|
/**
|
|
333
327
|
* List of rooms available in the branch
|
|
334
328
|
* @type {Array<HotelRoom>}
|
|
335
329
|
* @memberof BranchDetail
|
|
336
330
|
*/
|
|
337
331
|
'rooms': Array<HotelRoom>;
|
|
332
|
+
/**
|
|
333
|
+
* Nearby locations
|
|
334
|
+
* @type {Array<NearBy>}
|
|
335
|
+
* @memberof BranchDetail
|
|
336
|
+
*/
|
|
337
|
+
'nearBy': Array<NearBy>;
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
340
|
*
|
|
@@ -474,12 +474,6 @@ export interface CreateBranchDto {
|
|
|
474
474
|
* @memberof CreateBranchDto
|
|
475
475
|
*/
|
|
476
476
|
'address': string;
|
|
477
|
-
/**
|
|
478
|
-
* Branch\'s geographical location
|
|
479
|
-
* @type {LocationDto}
|
|
480
|
-
* @memberof CreateBranchDto
|
|
481
|
-
*/
|
|
482
|
-
'location': LocationDto;
|
|
483
477
|
/**
|
|
484
478
|
* The branch\'s rating.
|
|
485
479
|
* @type {number}
|
|
@@ -891,25 +885,6 @@ export interface InitiateForgotPasswordEmailDto {
|
|
|
891
885
|
*/
|
|
892
886
|
'email': string;
|
|
893
887
|
}
|
|
894
|
-
/**
|
|
895
|
-
*
|
|
896
|
-
* @export
|
|
897
|
-
* @interface LocationDto
|
|
898
|
-
*/
|
|
899
|
-
export interface LocationDto {
|
|
900
|
-
/**
|
|
901
|
-
* Latitude coordinate
|
|
902
|
-
* @type {number}
|
|
903
|
-
* @memberof LocationDto
|
|
904
|
-
*/
|
|
905
|
-
'latitude': number;
|
|
906
|
-
/**
|
|
907
|
-
* Longitude coordinate
|
|
908
|
-
* @type {number}
|
|
909
|
-
* @memberof LocationDto
|
|
910
|
-
*/
|
|
911
|
-
'longitude': number;
|
|
912
|
-
}
|
|
913
888
|
/**
|
|
914
889
|
*
|
|
915
890
|
* @export
|
|
@@ -967,6 +942,25 @@ export interface LogoutResponseDto {
|
|
|
967
942
|
*/
|
|
968
943
|
'message': string;
|
|
969
944
|
}
|
|
945
|
+
/**
|
|
946
|
+
*
|
|
947
|
+
* @export
|
|
948
|
+
* @interface NearBy
|
|
949
|
+
*/
|
|
950
|
+
export interface NearBy {
|
|
951
|
+
/**
|
|
952
|
+
* Name of the nearby location
|
|
953
|
+
* @type {string}
|
|
954
|
+
* @memberof NearBy
|
|
955
|
+
*/
|
|
956
|
+
'name': string;
|
|
957
|
+
/**
|
|
958
|
+
* Distance from the branch
|
|
959
|
+
* @type {string}
|
|
960
|
+
* @memberof NearBy
|
|
961
|
+
*/
|
|
962
|
+
'distance': string;
|
|
963
|
+
}
|
|
970
964
|
/**
|
|
971
965
|
*
|
|
972
966
|
* @export
|
|
@@ -1674,12 +1668,6 @@ export interface UpdateBranchDto {
|
|
|
1674
1668
|
* @memberof UpdateBranchDto
|
|
1675
1669
|
*/
|
|
1676
1670
|
'address'?: string;
|
|
1677
|
-
/**
|
|
1678
|
-
* Branch\'s geographical location
|
|
1679
|
-
* @type {LocationDto}
|
|
1680
|
-
* @memberof UpdateBranchDto
|
|
1681
|
-
*/
|
|
1682
|
-
'location'?: LocationDto;
|
|
1683
1671
|
/**
|
|
1684
1672
|
* The branch\'s rating.
|
|
1685
1673
|
* @type {number}
|
|
@@ -1687,11 +1675,17 @@ export interface UpdateBranchDto {
|
|
|
1687
1675
|
*/
|
|
1688
1676
|
'rating'?: number;
|
|
1689
1677
|
/**
|
|
1690
|
-
*
|
|
1691
|
-
* @type {Array<
|
|
1678
|
+
* Branch amenities
|
|
1679
|
+
* @type {Array<string>}
|
|
1692
1680
|
* @memberof UpdateBranchDto
|
|
1693
1681
|
*/
|
|
1694
|
-
'
|
|
1682
|
+
'amenityIds': Array<string>;
|
|
1683
|
+
/**
|
|
1684
|
+
* Nearby locations
|
|
1685
|
+
* @type {Array<NearBy>}
|
|
1686
|
+
* @memberof UpdateBranchDto
|
|
1687
|
+
*/
|
|
1688
|
+
'nearBy': Array<NearBy>;
|
|
1695
1689
|
}
|
|
1696
1690
|
/**
|
|
1697
1691
|
*
|