@juhuu/sdk-ts 1.1.3 → 1.1.4
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/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +18 -0
- package/dist/index.mjs +18 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -591,6 +591,7 @@ declare class PropertiesService extends Service {
|
|
591
591
|
declare class PointsService extends Service {
|
592
592
|
constructor(config: JUHUU.SetupConfig);
|
593
593
|
map(PointListParams: JUHUU.Point.Map.Params, PointListOptions?: JUHUU.Point.Map.Options): Promise<JUHUU.HttpResponse<JUHUU.Point.Map.Response>>;
|
594
|
+
list(PointListParams: JUHUU.Point.List.Params, PointListOptions?: JUHUU.Point.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Point.List.Response>>;
|
594
595
|
private toRadians;
|
595
596
|
calculateDistance(lat1: number, lon1: number, lat2: number, lon2: number): number;
|
596
597
|
calculateAltitudeForTopDownView(topLeftLat: number, topLeftLon: number, bottomRightLat: number, bottomRightLon: number): number;
|
@@ -1198,6 +1199,13 @@ declare namespace JUHUU {
|
|
1198
1199
|
type Options = JUHUU.RequestOptions;
|
1199
1200
|
type Response = JUHUU.Point.Object[];
|
1200
1201
|
}
|
1202
|
+
export namespace List {
|
1203
|
+
type Params = {
|
1204
|
+
propertyId?: string;
|
1205
|
+
};
|
1206
|
+
type Options = JUHUU.RequestOptions;
|
1207
|
+
type Response = JUHUU.Location.Object[];
|
1208
|
+
}
|
1201
1209
|
export { };
|
1202
1210
|
}
|
1203
1211
|
namespace Payout {
|
@@ -1375,6 +1383,7 @@ declare namespace JUHUU {
|
|
1375
1383
|
export namespace List {
|
1376
1384
|
type Params = {
|
1377
1385
|
rentableDeviceGroupLocationId?: string;
|
1386
|
+
propertyId?: string;
|
1378
1387
|
};
|
1379
1388
|
type Options = JUHUU.RequestOptions;
|
1380
1389
|
type Response = JUHUU.Location.Object[];
|
package/dist/index.d.ts
CHANGED
@@ -591,6 +591,7 @@ declare class PropertiesService extends Service {
|
|
591
591
|
declare class PointsService extends Service {
|
592
592
|
constructor(config: JUHUU.SetupConfig);
|
593
593
|
map(PointListParams: JUHUU.Point.Map.Params, PointListOptions?: JUHUU.Point.Map.Options): Promise<JUHUU.HttpResponse<JUHUU.Point.Map.Response>>;
|
594
|
+
list(PointListParams: JUHUU.Point.List.Params, PointListOptions?: JUHUU.Point.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Point.List.Response>>;
|
594
595
|
private toRadians;
|
595
596
|
calculateDistance(lat1: number, lon1: number, lat2: number, lon2: number): number;
|
596
597
|
calculateAltitudeForTopDownView(topLeftLat: number, topLeftLon: number, bottomRightLat: number, bottomRightLon: number): number;
|
@@ -1198,6 +1199,13 @@ declare namespace JUHUU {
|
|
1198
1199
|
type Options = JUHUU.RequestOptions;
|
1199
1200
|
type Response = JUHUU.Point.Object[];
|
1200
1201
|
}
|
1202
|
+
export namespace List {
|
1203
|
+
type Params = {
|
1204
|
+
propertyId?: string;
|
1205
|
+
};
|
1206
|
+
type Options = JUHUU.RequestOptions;
|
1207
|
+
type Response = JUHUU.Location.Object[];
|
1208
|
+
}
|
1201
1209
|
export { };
|
1202
1210
|
}
|
1203
1211
|
namespace Payout {
|
@@ -1375,6 +1383,7 @@ declare namespace JUHUU {
|
|
1375
1383
|
export namespace List {
|
1376
1384
|
type Params = {
|
1377
1385
|
rentableDeviceGroupLocationId?: string;
|
1386
|
+
propertyId?: string;
|
1378
1387
|
};
|
1379
1388
|
type Options = JUHUU.RequestOptions;
|
1380
1389
|
type Response = JUHUU.Location.Object[];
|
package/dist/index.js
CHANGED
@@ -730,6 +730,21 @@ var PointsService = class extends Service {
|
|
730
730
|
PointListOptions
|
731
731
|
);
|
732
732
|
}
|
733
|
+
async list(PointListParams, PointListOptions) {
|
734
|
+
const queryArray = [];
|
735
|
+
if (PointListParams?.propertyId !== void 0) {
|
736
|
+
queryArray.push("propertyId=" + PointListParams.propertyId);
|
737
|
+
}
|
738
|
+
return await super.sendRequest(
|
739
|
+
{
|
740
|
+
method: "GET",
|
741
|
+
url: "points?" + queryArray.join("&"),
|
742
|
+
body: void 0,
|
743
|
+
useAuthentication: false
|
744
|
+
},
|
745
|
+
PointListOptions
|
746
|
+
);
|
747
|
+
}
|
733
748
|
toRadians(degrees) {
|
734
749
|
return degrees * Math.PI / 180;
|
735
750
|
}
|
@@ -933,6 +948,9 @@ var LocationsService = class extends Service {
|
|
933
948
|
"rentableDeviceGroupLocationId=" + LocationListParams.rentableDeviceGroupLocationId
|
934
949
|
);
|
935
950
|
}
|
951
|
+
if (LocationListParams?.propertyId !== void 0) {
|
952
|
+
queryArray.push("propertyId=" + LocationListParams.propertyId);
|
953
|
+
}
|
936
954
|
return await super.sendRequest(
|
937
955
|
{
|
938
956
|
method: "GET",
|
package/dist/index.mjs
CHANGED
@@ -685,6 +685,21 @@ var PointsService = class extends Service {
|
|
685
685
|
PointListOptions
|
686
686
|
);
|
687
687
|
}
|
688
|
+
async list(PointListParams, PointListOptions) {
|
689
|
+
const queryArray = [];
|
690
|
+
if (PointListParams?.propertyId !== void 0) {
|
691
|
+
queryArray.push("propertyId=" + PointListParams.propertyId);
|
692
|
+
}
|
693
|
+
return await super.sendRequest(
|
694
|
+
{
|
695
|
+
method: "GET",
|
696
|
+
url: "points?" + queryArray.join("&"),
|
697
|
+
body: void 0,
|
698
|
+
useAuthentication: false
|
699
|
+
},
|
700
|
+
PointListOptions
|
701
|
+
);
|
702
|
+
}
|
688
703
|
toRadians(degrees) {
|
689
704
|
return degrees * Math.PI / 180;
|
690
705
|
}
|
@@ -888,6 +903,9 @@ var LocationsService = class extends Service {
|
|
888
903
|
"rentableDeviceGroupLocationId=" + LocationListParams.rentableDeviceGroupLocationId
|
889
904
|
);
|
890
905
|
}
|
906
|
+
if (LocationListParams?.propertyId !== void 0) {
|
907
|
+
queryArray.push("propertyId=" + LocationListParams.propertyId);
|
908
|
+
}
|
891
909
|
return await super.sendRequest(
|
892
910
|
{
|
893
911
|
method: "GET",
|