@juhuu/sdk-ts 1.2.19 → 1.2.22
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 +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +5 -14
- package/dist/index.mjs +5 -14
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -605,8 +605,6 @@ declare class DevicesService extends Service {
|
|
605
605
|
create(): Promise<void>;
|
606
606
|
retrieve(DeviceRetrieveParams: JUHUU.Device.Retrieve.Params, DeviceRetrieveOptions?: JUHUU.Device.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Retrieve.Response>>;
|
607
607
|
list(DeviceListParams: JUHUU.Device.List.Params, DeviceListOptions?: JUHUU.Device.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.List.Response>>;
|
608
|
-
update(): Promise<void>;
|
609
|
-
delete(): Promise<void>;
|
610
608
|
listen(DeviceRealtimeParams: JUHUU.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU.Device.Realtime.Options): JUHUU.Device.Realtime.Response;
|
611
609
|
message(DeviceMessageParams: JUHUU.Device.Message.Params, DeviceMessageOptions?: JUHUU.Device.Message.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Message.Response>>;
|
612
610
|
parameterUpdate(DeviceParameterParams: JUHUU.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU.Device.ParameterUpdate.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.ParameterUpdate.Response>>;
|
@@ -615,7 +613,6 @@ declare class DevicesService extends Service {
|
|
615
613
|
|
616
614
|
declare class DeviceTemplatesService extends Service {
|
617
615
|
constructor(config: JUHUU.SetupConfig);
|
618
|
-
create(): Promise<void>;
|
619
616
|
retrieve(DeviceTemplateRetrieveParams: JUHUU.DeviceTemplate.Retrieve.Params, DeviceTemplateRetrieveOptions?: JUHUU.DeviceTemplate.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.DeviceTemplate.Retrieve.Response>>;
|
620
617
|
list(DeviceTemplateListParams: JUHUU.DeviceTemplate.List.Params, DeviceTemplateListOptions?: JUHUU.DeviceTemplate.List.Options): Promise<JUHUU.HttpResponse<JUHUU.DeviceTemplate.List.Response>>;
|
621
618
|
}
|
@@ -758,7 +755,6 @@ declare namespace JUHUU {
|
|
758
755
|
* If this is true, a new accessToken will be requested if the current one is expired.
|
759
756
|
*/
|
760
757
|
refreshTokensIfNecessary?: boolean;
|
761
|
-
expand?: Array<"property" | "tariffArray">;
|
762
758
|
};
|
763
759
|
type LocaleString = {
|
764
760
|
[locale: string]: string;
|
@@ -1656,7 +1652,9 @@ declare namespace JUHUU {
|
|
1656
1652
|
type Params = {
|
1657
1653
|
productId: string;
|
1658
1654
|
};
|
1659
|
-
type Options =
|
1655
|
+
type Options = {
|
1656
|
+
expand: Array<"property">;
|
1657
|
+
} & JUHUU.RequestOptions;
|
1660
1658
|
type Response = {
|
1661
1659
|
product: Product.Object;
|
1662
1660
|
};
|
@@ -1756,13 +1754,13 @@ declare namespace JUHUU {
|
|
1756
1754
|
namespace List {
|
1757
1755
|
type Params = {
|
1758
1756
|
statusArray?: DeviceStatus[];
|
1759
|
-
rentable?: boolean;
|
1760
1757
|
propertyId?: string;
|
1761
|
-
visible?: boolean;
|
1762
1758
|
deviceTemplateId?: string;
|
1763
|
-
termId?: string;
|
1764
1759
|
};
|
1765
|
-
type Options =
|
1760
|
+
type Options = {
|
1761
|
+
limit?: number;
|
1762
|
+
skip?: number;
|
1763
|
+
} & JUHUU.RequestOptions;
|
1766
1764
|
type Response = {
|
1767
1765
|
deviceArray: JUHUU.Device.Object[];
|
1768
1766
|
count: number;
|
@@ -1845,7 +1843,9 @@ declare namespace JUHUU {
|
|
1845
1843
|
type Params = {
|
1846
1844
|
connectorId: string;
|
1847
1845
|
};
|
1848
|
-
type Options =
|
1846
|
+
type Options = {
|
1847
|
+
expand: Array<"property">;
|
1848
|
+
} & JUHUU.RequestOptions;
|
1849
1849
|
type Response = {
|
1850
1850
|
connector: JUHUU.Connector.Object;
|
1851
1851
|
};
|
package/dist/index.d.ts
CHANGED
@@ -605,8 +605,6 @@ declare class DevicesService extends Service {
|
|
605
605
|
create(): Promise<void>;
|
606
606
|
retrieve(DeviceRetrieveParams: JUHUU.Device.Retrieve.Params, DeviceRetrieveOptions?: JUHUU.Device.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Retrieve.Response>>;
|
607
607
|
list(DeviceListParams: JUHUU.Device.List.Params, DeviceListOptions?: JUHUU.Device.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.List.Response>>;
|
608
|
-
update(): Promise<void>;
|
609
|
-
delete(): Promise<void>;
|
610
608
|
listen(DeviceRealtimeParams: JUHUU.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU.Device.Realtime.Options): JUHUU.Device.Realtime.Response;
|
611
609
|
message(DeviceMessageParams: JUHUU.Device.Message.Params, DeviceMessageOptions?: JUHUU.Device.Message.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Message.Response>>;
|
612
610
|
parameterUpdate(DeviceParameterParams: JUHUU.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU.Device.ParameterUpdate.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.ParameterUpdate.Response>>;
|
@@ -615,7 +613,6 @@ declare class DevicesService extends Service {
|
|
615
613
|
|
616
614
|
declare class DeviceTemplatesService extends Service {
|
617
615
|
constructor(config: JUHUU.SetupConfig);
|
618
|
-
create(): Promise<void>;
|
619
616
|
retrieve(DeviceTemplateRetrieveParams: JUHUU.DeviceTemplate.Retrieve.Params, DeviceTemplateRetrieveOptions?: JUHUU.DeviceTemplate.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.DeviceTemplate.Retrieve.Response>>;
|
620
617
|
list(DeviceTemplateListParams: JUHUU.DeviceTemplate.List.Params, DeviceTemplateListOptions?: JUHUU.DeviceTemplate.List.Options): Promise<JUHUU.HttpResponse<JUHUU.DeviceTemplate.List.Response>>;
|
621
618
|
}
|
@@ -758,7 +755,6 @@ declare namespace JUHUU {
|
|
758
755
|
* If this is true, a new accessToken will be requested if the current one is expired.
|
759
756
|
*/
|
760
757
|
refreshTokensIfNecessary?: boolean;
|
761
|
-
expand?: Array<"property" | "tariffArray">;
|
762
758
|
};
|
763
759
|
type LocaleString = {
|
764
760
|
[locale: string]: string;
|
@@ -1656,7 +1652,9 @@ declare namespace JUHUU {
|
|
1656
1652
|
type Params = {
|
1657
1653
|
productId: string;
|
1658
1654
|
};
|
1659
|
-
type Options =
|
1655
|
+
type Options = {
|
1656
|
+
expand: Array<"property">;
|
1657
|
+
} & JUHUU.RequestOptions;
|
1660
1658
|
type Response = {
|
1661
1659
|
product: Product.Object;
|
1662
1660
|
};
|
@@ -1756,13 +1754,13 @@ declare namespace JUHUU {
|
|
1756
1754
|
namespace List {
|
1757
1755
|
type Params = {
|
1758
1756
|
statusArray?: DeviceStatus[];
|
1759
|
-
rentable?: boolean;
|
1760
1757
|
propertyId?: string;
|
1761
|
-
visible?: boolean;
|
1762
1758
|
deviceTemplateId?: string;
|
1763
|
-
termId?: string;
|
1764
1759
|
};
|
1765
|
-
type Options =
|
1760
|
+
type Options = {
|
1761
|
+
limit?: number;
|
1762
|
+
skip?: number;
|
1763
|
+
} & JUHUU.RequestOptions;
|
1766
1764
|
type Response = {
|
1767
1765
|
deviceArray: JUHUU.Device.Object[];
|
1768
1766
|
count: number;
|
@@ -1845,7 +1843,9 @@ declare namespace JUHUU {
|
|
1845
1843
|
type Params = {
|
1846
1844
|
connectorId: string;
|
1847
1845
|
};
|
1848
|
-
type Options =
|
1846
|
+
type Options = {
|
1847
|
+
expand: Array<"property">;
|
1848
|
+
} & JUHUU.RequestOptions;
|
1849
1849
|
type Response = {
|
1850
1850
|
connector: JUHUU.Connector.Object;
|
1851
1851
|
};
|
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
|
{
|
@@ -856,10 +853,6 @@ var DevicesService = class extends Service {
|
|
856
853
|
DeviceListOptions
|
857
854
|
);
|
858
855
|
}
|
859
|
-
async update() {
|
860
|
-
}
|
861
|
-
async delete() {
|
862
|
-
}
|
863
856
|
listen(DeviceRealtimeParams, DeviceRealtimeOptions) {
|
864
857
|
const socket = super.connectToWebsocket({
|
865
858
|
url: "devices/" + DeviceRealtimeParams.deviceId + "/websocket"
|
@@ -921,8 +914,6 @@ var DeviceTemplatesService = class extends Service {
|
|
921
914
|
constructor(config) {
|
922
915
|
super(config);
|
923
916
|
}
|
924
|
-
async create() {
|
925
|
-
}
|
926
917
|
async retrieve(DeviceTemplateRetrieveParams, DeviceTemplateRetrieveOptions) {
|
927
918
|
const queryArray = [];
|
928
919
|
if (DeviceTemplateRetrieveParams?.source !== void 0) {
|
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
|
{
|
@@ -811,10 +808,6 @@ var DevicesService = class extends Service {
|
|
811
808
|
DeviceListOptions
|
812
809
|
);
|
813
810
|
}
|
814
|
-
async update() {
|
815
|
-
}
|
816
|
-
async delete() {
|
817
|
-
}
|
818
811
|
listen(DeviceRealtimeParams, DeviceRealtimeOptions) {
|
819
812
|
const socket = super.connectToWebsocket({
|
820
813
|
url: "devices/" + DeviceRealtimeParams.deviceId + "/websocket"
|
@@ -876,8 +869,6 @@ var DeviceTemplatesService = class extends Service {
|
|
876
869
|
constructor(config) {
|
877
870
|
super(config);
|
878
871
|
}
|
879
|
-
async create() {
|
880
|
-
}
|
881
872
|
async retrieve(DeviceTemplateRetrieveParams, DeviceTemplateRetrieveOptions) {
|
882
873
|
const queryArray = [];
|
883
874
|
if (DeviceTemplateRetrieveParams?.source !== void 0) {
|