@juhuu/sdk-ts 1.2.231 → 1.2.233
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 +34 -33
- package/dist/index.d.ts +34 -33
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -549,7 +549,7 @@ interface StartCustomBlock extends BaseBlock {
|
|
|
549
549
|
in: Record<string, never>;
|
|
550
550
|
out: Record<string, DataEdgeConnection>;
|
|
551
551
|
data: {
|
|
552
|
-
inputParamDefinitionArray
|
|
552
|
+
inputParamDefinitionArray?: ParamDefinition[];
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
interface StartQuickActionLocationBlock extends BaseBlock {
|
|
@@ -586,8 +586,8 @@ interface ParameterRetrieveBlock extends BaseBlock {
|
|
|
586
586
|
parameter: DataEdgeConnection;
|
|
587
587
|
};
|
|
588
588
|
data: {
|
|
589
|
-
parameterId
|
|
590
|
-
deviceId
|
|
589
|
+
parameterId?: string;
|
|
590
|
+
deviceId?: string;
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
593
|
interface ParameterRetrieveBlockInputs {
|
|
@@ -611,13 +611,14 @@ interface ParameterUpdateBlock extends BaseBlock {
|
|
|
611
611
|
changedFields: DataEdgeConnection;
|
|
612
612
|
};
|
|
613
613
|
data: {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
614
|
+
type: "boolean" | "number" | "text" | "enum";
|
|
615
|
+
parameterId?: string;
|
|
616
|
+
deviceId?: string;
|
|
617
|
+
currentValue?: number | string | boolean | null;
|
|
618
|
+
enumArray?: string[];
|
|
619
|
+
description?: string;
|
|
620
|
+
name?: string;
|
|
621
|
+
reference?: string;
|
|
621
622
|
};
|
|
622
623
|
}
|
|
623
624
|
interface ParameterUpdateBlockInputs {
|
|
@@ -669,8 +670,8 @@ interface MathAddBlock extends BaseBlock {
|
|
|
669
670
|
result: DataEdgeConnection;
|
|
670
671
|
};
|
|
671
672
|
data: {
|
|
672
|
-
a
|
|
673
|
-
b
|
|
673
|
+
a?: number;
|
|
674
|
+
b?: number;
|
|
674
675
|
};
|
|
675
676
|
}
|
|
676
677
|
interface MathAddBlockInputs {
|
|
@@ -680,7 +681,7 @@ interface MathAddBlockInputs {
|
|
|
680
681
|
interface MapDestructureBlock extends BaseBlock {
|
|
681
682
|
type: "map.destructure";
|
|
682
683
|
data: {
|
|
683
|
-
keys
|
|
684
|
+
keys?: string[];
|
|
684
685
|
};
|
|
685
686
|
in: {
|
|
686
687
|
map: DataEdgeConnection;
|
|
@@ -696,7 +697,7 @@ interface IfBlock extends BaseBlock {
|
|
|
696
697
|
in: Record<string, never>;
|
|
697
698
|
out: Record<string, ControlEdgeConnection>;
|
|
698
699
|
data: {
|
|
699
|
-
condition
|
|
700
|
+
condition?: unknown;
|
|
700
701
|
};
|
|
701
702
|
}
|
|
702
703
|
interface HttpPatchBlock extends BaseBlock {
|
|
@@ -707,9 +708,9 @@ interface HttpPatchBlock extends BaseBlock {
|
|
|
707
708
|
headers: DataEdgeConnection;
|
|
708
709
|
};
|
|
709
710
|
data: {
|
|
710
|
-
url
|
|
711
|
-
body
|
|
712
|
-
headers
|
|
711
|
+
url?: string;
|
|
712
|
+
body?: Record<string, string | number | boolean>;
|
|
713
|
+
headers?: Record<string, string>;
|
|
713
714
|
};
|
|
714
715
|
out: {
|
|
715
716
|
status: DataEdgeConnection;
|
|
@@ -732,8 +733,8 @@ interface HttpGetBlock extends BaseBlock {
|
|
|
732
733
|
data: DataEdgeConnection;
|
|
733
734
|
};
|
|
734
735
|
data: {
|
|
735
|
-
url
|
|
736
|
-
headers
|
|
736
|
+
url?: string;
|
|
737
|
+
headers?: Record<string, string>;
|
|
737
738
|
};
|
|
738
739
|
}
|
|
739
740
|
interface HttpGetBlockInputs {
|
|
@@ -752,9 +753,9 @@ interface HttpPostBlock extends BaseBlock {
|
|
|
752
753
|
data: DataEdgeConnection;
|
|
753
754
|
};
|
|
754
755
|
data: {
|
|
755
|
-
url
|
|
756
|
-
body
|
|
757
|
-
headers
|
|
756
|
+
url?: string;
|
|
757
|
+
body?: Record<string, string | number | boolean>;
|
|
758
|
+
headers?: Record<string, string>;
|
|
758
759
|
};
|
|
759
760
|
}
|
|
760
761
|
interface HttpPostBlockInputs {
|
|
@@ -773,8 +774,8 @@ interface HttpDeleteBlock extends BaseBlock {
|
|
|
773
774
|
data: DataEdgeConnection;
|
|
774
775
|
};
|
|
775
776
|
data: {
|
|
776
|
-
url
|
|
777
|
-
headers
|
|
777
|
+
url?: string;
|
|
778
|
+
headers?: Record<string, string>;
|
|
778
779
|
};
|
|
779
780
|
}
|
|
780
781
|
interface HttpDeleteBlockInputs {
|
|
@@ -793,9 +794,9 @@ interface HttpPutBlock extends BaseBlock {
|
|
|
793
794
|
data: DataEdgeConnection;
|
|
794
795
|
};
|
|
795
796
|
data: {
|
|
796
|
-
url
|
|
797
|
-
body
|
|
798
|
-
headers
|
|
797
|
+
url?: string;
|
|
798
|
+
body?: Record<string, string | number | boolean>;
|
|
799
|
+
headers?: Record<string, string>;
|
|
799
800
|
};
|
|
800
801
|
}
|
|
801
802
|
interface HttpPutBlockInputs {
|
|
@@ -814,11 +815,11 @@ interface MqttSendBlock extends BaseBlock {
|
|
|
814
815
|
};
|
|
815
816
|
out: Record<string, never>;
|
|
816
817
|
data: {
|
|
817
|
-
message
|
|
818
|
-
topic
|
|
819
|
-
username
|
|
820
|
-
password
|
|
821
|
-
connectUrl
|
|
818
|
+
message?: string;
|
|
819
|
+
topic?: string;
|
|
820
|
+
username?: string;
|
|
821
|
+
password?: string;
|
|
822
|
+
connectUrl?: string;
|
|
822
823
|
};
|
|
823
824
|
}
|
|
824
825
|
interface MqttSendBlockInputs {
|
|
@@ -833,7 +834,7 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
833
834
|
in: Record<string, DataEdgeConnection>;
|
|
834
835
|
out: Record<string, never>;
|
|
835
836
|
data: {
|
|
836
|
-
outputParamDefintionArray
|
|
837
|
+
outputParamDefintionArray?: ParamDefinition[];
|
|
837
838
|
};
|
|
838
839
|
}
|
|
839
840
|
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MapDestructureBlock | ParameterRetrieveBlock | ParameterUpdateBlock | IfBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | HttpPatchBlock | EndCustomBlock;
|
package/dist/index.d.ts
CHANGED
|
@@ -549,7 +549,7 @@ interface StartCustomBlock extends BaseBlock {
|
|
|
549
549
|
in: Record<string, never>;
|
|
550
550
|
out: Record<string, DataEdgeConnection>;
|
|
551
551
|
data: {
|
|
552
|
-
inputParamDefinitionArray
|
|
552
|
+
inputParamDefinitionArray?: ParamDefinition[];
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
interface StartQuickActionLocationBlock extends BaseBlock {
|
|
@@ -586,8 +586,8 @@ interface ParameterRetrieveBlock extends BaseBlock {
|
|
|
586
586
|
parameter: DataEdgeConnection;
|
|
587
587
|
};
|
|
588
588
|
data: {
|
|
589
|
-
parameterId
|
|
590
|
-
deviceId
|
|
589
|
+
parameterId?: string;
|
|
590
|
+
deviceId?: string;
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
593
|
interface ParameterRetrieveBlockInputs {
|
|
@@ -611,13 +611,14 @@ interface ParameterUpdateBlock extends BaseBlock {
|
|
|
611
611
|
changedFields: DataEdgeConnection;
|
|
612
612
|
};
|
|
613
613
|
data: {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
614
|
+
type: "boolean" | "number" | "text" | "enum";
|
|
615
|
+
parameterId?: string;
|
|
616
|
+
deviceId?: string;
|
|
617
|
+
currentValue?: number | string | boolean | null;
|
|
618
|
+
enumArray?: string[];
|
|
619
|
+
description?: string;
|
|
620
|
+
name?: string;
|
|
621
|
+
reference?: string;
|
|
621
622
|
};
|
|
622
623
|
}
|
|
623
624
|
interface ParameterUpdateBlockInputs {
|
|
@@ -669,8 +670,8 @@ interface MathAddBlock extends BaseBlock {
|
|
|
669
670
|
result: DataEdgeConnection;
|
|
670
671
|
};
|
|
671
672
|
data: {
|
|
672
|
-
a
|
|
673
|
-
b
|
|
673
|
+
a?: number;
|
|
674
|
+
b?: number;
|
|
674
675
|
};
|
|
675
676
|
}
|
|
676
677
|
interface MathAddBlockInputs {
|
|
@@ -680,7 +681,7 @@ interface MathAddBlockInputs {
|
|
|
680
681
|
interface MapDestructureBlock extends BaseBlock {
|
|
681
682
|
type: "map.destructure";
|
|
682
683
|
data: {
|
|
683
|
-
keys
|
|
684
|
+
keys?: string[];
|
|
684
685
|
};
|
|
685
686
|
in: {
|
|
686
687
|
map: DataEdgeConnection;
|
|
@@ -696,7 +697,7 @@ interface IfBlock extends BaseBlock {
|
|
|
696
697
|
in: Record<string, never>;
|
|
697
698
|
out: Record<string, ControlEdgeConnection>;
|
|
698
699
|
data: {
|
|
699
|
-
condition
|
|
700
|
+
condition?: unknown;
|
|
700
701
|
};
|
|
701
702
|
}
|
|
702
703
|
interface HttpPatchBlock extends BaseBlock {
|
|
@@ -707,9 +708,9 @@ interface HttpPatchBlock extends BaseBlock {
|
|
|
707
708
|
headers: DataEdgeConnection;
|
|
708
709
|
};
|
|
709
710
|
data: {
|
|
710
|
-
url
|
|
711
|
-
body
|
|
712
|
-
headers
|
|
711
|
+
url?: string;
|
|
712
|
+
body?: Record<string, string | number | boolean>;
|
|
713
|
+
headers?: Record<string, string>;
|
|
713
714
|
};
|
|
714
715
|
out: {
|
|
715
716
|
status: DataEdgeConnection;
|
|
@@ -732,8 +733,8 @@ interface HttpGetBlock extends BaseBlock {
|
|
|
732
733
|
data: DataEdgeConnection;
|
|
733
734
|
};
|
|
734
735
|
data: {
|
|
735
|
-
url
|
|
736
|
-
headers
|
|
736
|
+
url?: string;
|
|
737
|
+
headers?: Record<string, string>;
|
|
737
738
|
};
|
|
738
739
|
}
|
|
739
740
|
interface HttpGetBlockInputs {
|
|
@@ -752,9 +753,9 @@ interface HttpPostBlock extends BaseBlock {
|
|
|
752
753
|
data: DataEdgeConnection;
|
|
753
754
|
};
|
|
754
755
|
data: {
|
|
755
|
-
url
|
|
756
|
-
body
|
|
757
|
-
headers
|
|
756
|
+
url?: string;
|
|
757
|
+
body?: Record<string, string | number | boolean>;
|
|
758
|
+
headers?: Record<string, string>;
|
|
758
759
|
};
|
|
759
760
|
}
|
|
760
761
|
interface HttpPostBlockInputs {
|
|
@@ -773,8 +774,8 @@ interface HttpDeleteBlock extends BaseBlock {
|
|
|
773
774
|
data: DataEdgeConnection;
|
|
774
775
|
};
|
|
775
776
|
data: {
|
|
776
|
-
url
|
|
777
|
-
headers
|
|
777
|
+
url?: string;
|
|
778
|
+
headers?: Record<string, string>;
|
|
778
779
|
};
|
|
779
780
|
}
|
|
780
781
|
interface HttpDeleteBlockInputs {
|
|
@@ -793,9 +794,9 @@ interface HttpPutBlock extends BaseBlock {
|
|
|
793
794
|
data: DataEdgeConnection;
|
|
794
795
|
};
|
|
795
796
|
data: {
|
|
796
|
-
url
|
|
797
|
-
body
|
|
798
|
-
headers
|
|
797
|
+
url?: string;
|
|
798
|
+
body?: Record<string, string | number | boolean>;
|
|
799
|
+
headers?: Record<string, string>;
|
|
799
800
|
};
|
|
800
801
|
}
|
|
801
802
|
interface HttpPutBlockInputs {
|
|
@@ -814,11 +815,11 @@ interface MqttSendBlock extends BaseBlock {
|
|
|
814
815
|
};
|
|
815
816
|
out: Record<string, never>;
|
|
816
817
|
data: {
|
|
817
|
-
message
|
|
818
|
-
topic
|
|
819
|
-
username
|
|
820
|
-
password
|
|
821
|
-
connectUrl
|
|
818
|
+
message?: string;
|
|
819
|
+
topic?: string;
|
|
820
|
+
username?: string;
|
|
821
|
+
password?: string;
|
|
822
|
+
connectUrl?: string;
|
|
822
823
|
};
|
|
823
824
|
}
|
|
824
825
|
interface MqttSendBlockInputs {
|
|
@@ -833,7 +834,7 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
833
834
|
in: Record<string, DataEdgeConnection>;
|
|
834
835
|
out: Record<string, never>;
|
|
835
836
|
data: {
|
|
836
|
-
outputParamDefintionArray
|
|
837
|
+
outputParamDefintionArray?: ParamDefinition[];
|
|
837
838
|
};
|
|
838
839
|
}
|
|
839
840
|
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MapDestructureBlock | ParameterRetrieveBlock | ParameterUpdateBlock | IfBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | HttpPatchBlock | EndCustomBlock;
|