@juhuu/sdk-ts 1.2.18 → 1.2.21
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 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.js +5 -8
- package/dist/index.mjs +5 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -1756,14 +1756,18 @@ declare namespace JUHUU {
|
|
1756
1756
|
namespace List {
|
1757
1757
|
type Params = {
|
1758
1758
|
statusArray?: DeviceStatus[];
|
1759
|
-
rentable?: boolean;
|
1760
1759
|
propertyId?: string;
|
1761
|
-
visible?: boolean;
|
1762
1760
|
deviceTemplateId?: string;
|
1763
|
-
termId?: string;
|
1764
1761
|
};
|
1765
|
-
type Options =
|
1766
|
-
|
1762
|
+
type Options = {
|
1763
|
+
limit?: number;
|
1764
|
+
skip?: number;
|
1765
|
+
} & JUHUU.RequestOptions;
|
1766
|
+
type Response = {
|
1767
|
+
deviceArray: JUHUU.Device.Object[];
|
1768
|
+
count: number;
|
1769
|
+
hasMore: boolean;
|
1770
|
+
};
|
1767
1771
|
}
|
1768
1772
|
namespace Realtime {
|
1769
1773
|
type Params = {
|
package/dist/index.d.ts
CHANGED
@@ -1756,14 +1756,18 @@ declare namespace JUHUU {
|
|
1756
1756
|
namespace List {
|
1757
1757
|
type Params = {
|
1758
1758
|
statusArray?: DeviceStatus[];
|
1759
|
-
rentable?: boolean;
|
1760
1759
|
propertyId?: string;
|
1761
|
-
visible?: boolean;
|
1762
1760
|
deviceTemplateId?: string;
|
1763
|
-
termId?: string;
|
1764
1761
|
};
|
1765
|
-
type Options =
|
1766
|
-
|
1762
|
+
type Options = {
|
1763
|
+
limit?: number;
|
1764
|
+
skip?: number;
|
1765
|
+
} & JUHUU.RequestOptions;
|
1766
|
+
type Response = {
|
1767
|
+
deviceArray: JUHUU.Device.Object[];
|
1768
|
+
count: number;
|
1769
|
+
hasMore: boolean;
|
1770
|
+
};
|
1767
1771
|
}
|
1768
1772
|
namespace Realtime {
|
1769
1773
|
type Params = {
|
package/dist/index.js
CHANGED
@@ -831,20 +831,17 @@ var DevicesService = class extends Service {
|
|
831
831
|
if (DeviceListParams?.statusArray !== void 0) {
|
832
832
|
queryArray.push("statusArray=" + DeviceListParams.statusArray.join(","));
|
833
833
|
}
|
834
|
-
if (DeviceListParams?.rentable !== void 0) {
|
835
|
-
queryArray.push("rentable=" + DeviceListParams.rentable);
|
836
|
-
}
|
837
834
|
if (DeviceListParams?.propertyId !== void 0) {
|
838
835
|
queryArray.push("propertyId=" + DeviceListParams.propertyId);
|
839
836
|
}
|
840
|
-
if (DeviceListParams?.visible !== void 0) {
|
841
|
-
queryArray.push("visible=" + DeviceListParams.visible);
|
842
|
-
}
|
843
837
|
if (DeviceListParams?.deviceTemplateId !== void 0) {
|
844
838
|
queryArray.push("deviceTemplateId=" + DeviceListParams.deviceTemplateId);
|
845
839
|
}
|
846
|
-
if (
|
847
|
-
queryArray.push("
|
840
|
+
if (DeviceListOptions?.limit !== void 0) {
|
841
|
+
queryArray.push("limit=" + DeviceListOptions.limit);
|
842
|
+
}
|
843
|
+
if (DeviceListOptions?.skip !== void 0) {
|
844
|
+
queryArray.push("skip=" + DeviceListOptions.skip);
|
848
845
|
}
|
849
846
|
return await super.sendRequest(
|
850
847
|
{
|
package/dist/index.mjs
CHANGED
@@ -786,20 +786,17 @@ var DevicesService = class extends Service {
|
|
786
786
|
if (DeviceListParams?.statusArray !== void 0) {
|
787
787
|
queryArray.push("statusArray=" + DeviceListParams.statusArray.join(","));
|
788
788
|
}
|
789
|
-
if (DeviceListParams?.rentable !== void 0) {
|
790
|
-
queryArray.push("rentable=" + DeviceListParams.rentable);
|
791
|
-
}
|
792
789
|
if (DeviceListParams?.propertyId !== void 0) {
|
793
790
|
queryArray.push("propertyId=" + DeviceListParams.propertyId);
|
794
791
|
}
|
795
|
-
if (DeviceListParams?.visible !== void 0) {
|
796
|
-
queryArray.push("visible=" + DeviceListParams.visible);
|
797
|
-
}
|
798
792
|
if (DeviceListParams?.deviceTemplateId !== void 0) {
|
799
793
|
queryArray.push("deviceTemplateId=" + DeviceListParams.deviceTemplateId);
|
800
794
|
}
|
801
|
-
if (
|
802
|
-
queryArray.push("
|
795
|
+
if (DeviceListOptions?.limit !== void 0) {
|
796
|
+
queryArray.push("limit=" + DeviceListOptions.limit);
|
797
|
+
}
|
798
|
+
if (DeviceListOptions?.skip !== void 0) {
|
799
|
+
queryArray.push("skip=" + DeviceListOptions.skip);
|
803
800
|
}
|
804
801
|
return await super.sendRequest(
|
805
802
|
{
|