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