@juhuu/sdk-ts 1.2.226 → 1.2.228
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 +225 -57
- package/dist/index.d.ts +225 -57
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -15,16 +15,6 @@ type Frontend = "dashboard" | "app";
|
|
|
15
15
|
type FlowExecutionEnvironment = "dashboard" | "app" | "backend";
|
|
16
16
|
type ApiKeyStatus = "enabled" | "disabled";
|
|
17
17
|
type FlowStatus = "error" | "ready";
|
|
18
|
-
type FlowLog = {
|
|
19
|
-
severity: "debug" | "info" | "warning" | "error";
|
|
20
|
-
message: string;
|
|
21
|
-
createdAt: Date;
|
|
22
|
-
};
|
|
23
|
-
type QuickAction = {
|
|
24
|
-
icon: string | null;
|
|
25
|
-
name: LocaleString;
|
|
26
|
-
flowId: string;
|
|
27
|
-
};
|
|
28
18
|
type License = {
|
|
29
19
|
type: "url";
|
|
30
20
|
validUntil: Date | null;
|
|
@@ -554,40 +544,92 @@ interface LocaleString {
|
|
|
554
544
|
interface BaseBlock {
|
|
555
545
|
id: string;
|
|
556
546
|
}
|
|
557
|
-
interface
|
|
558
|
-
type: "
|
|
547
|
+
interface StartCustomBlock extends BaseBlock {
|
|
548
|
+
type: "start.custom";
|
|
559
549
|
in: Record<string, never>;
|
|
560
|
-
out: Record<string,
|
|
550
|
+
out: Record<string, DataEdgeConnection>;
|
|
551
|
+
data: {
|
|
552
|
+
inputParamDefinitionArray: ParamDefinition[];
|
|
553
|
+
};
|
|
561
554
|
}
|
|
562
|
-
interface
|
|
563
|
-
type: "
|
|
555
|
+
interface StartQuickActionLocationBlock extends BaseBlock {
|
|
556
|
+
type: "start.quickAction.location";
|
|
564
557
|
in: Record<string, never>;
|
|
565
|
-
out:
|
|
566
|
-
|
|
558
|
+
out: {
|
|
559
|
+
locationId: DataEdgeConnection;
|
|
560
|
+
propertyId: DataEdgeConnection;
|
|
561
|
+
};
|
|
567
562
|
}
|
|
568
|
-
interface
|
|
569
|
-
type: "
|
|
563
|
+
interface StartSessionUpdateBlock extends BaseBlock {
|
|
564
|
+
type: "start.session.update";
|
|
570
565
|
in: Record<string, never>;
|
|
571
566
|
out: {
|
|
572
|
-
|
|
573
|
-
|
|
567
|
+
beforeSession: string;
|
|
568
|
+
afterSession: string;
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
interface StartParameterUpdateBlock extends BaseBlock {
|
|
572
|
+
type: "start.parameter.update";
|
|
573
|
+
in: Record<string, never>;
|
|
574
|
+
out: {
|
|
575
|
+
beforeParameter: string;
|
|
576
|
+
afterParameter: string;
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
interface ParameterRetrieveBlock extends BaseBlock {
|
|
580
|
+
type: "parameter.retrieve";
|
|
581
|
+
in: {
|
|
582
|
+
parameterId: DataEdgeConnection;
|
|
583
|
+
deviceId: DataEdgeConnection;
|
|
584
|
+
};
|
|
585
|
+
out: {
|
|
586
|
+
parameter: DataEdgeConnection;
|
|
587
|
+
};
|
|
588
|
+
data: {
|
|
589
|
+
parameterId: string | null;
|
|
590
|
+
deviceId: string | null;
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
interface ParameterRetrieveBlockInputs {
|
|
594
|
+
parameterId: string;
|
|
595
|
+
deviceId: string | null;
|
|
596
|
+
}
|
|
597
|
+
interface ParameterUpdateBlock extends BaseBlock {
|
|
598
|
+
type: "parameter.update";
|
|
599
|
+
in: {
|
|
600
|
+
parameterId: string;
|
|
601
|
+
deviceId: string | null;
|
|
602
|
+
currentValue: number | string | boolean;
|
|
603
|
+
};
|
|
604
|
+
out: {
|
|
605
|
+
parameter: string;
|
|
606
|
+
};
|
|
607
|
+
data: {
|
|
608
|
+
parameterId: string | null;
|
|
609
|
+
deviceId: string | null;
|
|
610
|
+
currentValue: number | string | boolean | null;
|
|
574
611
|
};
|
|
575
612
|
}
|
|
613
|
+
interface ParameterUpdateBlockInputs {
|
|
614
|
+
parameterId: string;
|
|
615
|
+
deviceId: string | null;
|
|
616
|
+
currentValue: number | string | boolean;
|
|
617
|
+
}
|
|
576
618
|
interface ConstNumberBlock extends BaseBlock {
|
|
577
619
|
type: "const.number";
|
|
578
620
|
in: Record<string, never>;
|
|
579
621
|
out: {
|
|
580
|
-
value:
|
|
622
|
+
value: DataEdgeConnection;
|
|
581
623
|
};
|
|
582
624
|
data: {
|
|
583
625
|
value: number;
|
|
584
626
|
};
|
|
585
627
|
}
|
|
586
|
-
interface
|
|
587
|
-
type: "const.
|
|
628
|
+
interface ConstTextBlock extends BaseBlock {
|
|
629
|
+
type: "const.text";
|
|
588
630
|
in: Record<string, never>;
|
|
589
631
|
out: {
|
|
590
|
-
value:
|
|
632
|
+
value: DataEdgeConnection;
|
|
591
633
|
};
|
|
592
634
|
data: {
|
|
593
635
|
value: string;
|
|
@@ -597,7 +639,7 @@ interface ConstBooleanBlock extends BaseBlock {
|
|
|
597
639
|
type: "const.boolean";
|
|
598
640
|
in: Record<string, never>;
|
|
599
641
|
out: {
|
|
600
|
-
value:
|
|
642
|
+
value: DataEdgeConnection;
|
|
601
643
|
};
|
|
602
644
|
data: {
|
|
603
645
|
value: boolean;
|
|
@@ -606,11 +648,11 @@ interface ConstBooleanBlock extends BaseBlock {
|
|
|
606
648
|
interface MathAddBlock extends BaseBlock {
|
|
607
649
|
type: "math.add";
|
|
608
650
|
in: {
|
|
609
|
-
a:
|
|
610
|
-
b:
|
|
651
|
+
a: DataEdgeConnection;
|
|
652
|
+
b: DataEdgeConnection;
|
|
611
653
|
};
|
|
612
654
|
out: {
|
|
613
|
-
result:
|
|
655
|
+
result: DataEdgeConnection;
|
|
614
656
|
};
|
|
615
657
|
data: {
|
|
616
658
|
a: number | null;
|
|
@@ -621,53 +663,167 @@ interface MathAddBlockInputs {
|
|
|
621
663
|
a: number;
|
|
622
664
|
b: number;
|
|
623
665
|
}
|
|
624
|
-
interface
|
|
625
|
-
type: "
|
|
666
|
+
interface MapDestructureBlock extends BaseBlock {
|
|
667
|
+
type: "map.destructure";
|
|
668
|
+
data: {
|
|
669
|
+
keys: string[];
|
|
670
|
+
};
|
|
626
671
|
in: {
|
|
627
|
-
|
|
672
|
+
map: DataEdgeConnection;
|
|
673
|
+
};
|
|
674
|
+
out: Record<string, DataEdgeConnection>;
|
|
675
|
+
}
|
|
676
|
+
interface MapDestructureBlockInputs {
|
|
677
|
+
map: Record<string, string | number | boolean>;
|
|
678
|
+
keys: string[];
|
|
679
|
+
}
|
|
680
|
+
interface IfBlock extends BaseBlock {
|
|
681
|
+
type: "control.if";
|
|
682
|
+
in: Record<string, never>;
|
|
683
|
+
out: Record<string, ControlEdgeConnection>;
|
|
684
|
+
data: {
|
|
685
|
+
condition: unknown;
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
interface HttpPatchBlock extends BaseBlock {
|
|
689
|
+
type: "http.patch";
|
|
690
|
+
in: {
|
|
691
|
+
url: DataEdgeConnection;
|
|
692
|
+
body: DataEdgeConnection;
|
|
693
|
+
headers: DataEdgeConnection;
|
|
694
|
+
};
|
|
695
|
+
data: {
|
|
696
|
+
url: string | null;
|
|
697
|
+
body: Record<string, string | number | boolean> | null;
|
|
698
|
+
headers: Record<string, string> | null;
|
|
628
699
|
};
|
|
629
700
|
out: {
|
|
630
|
-
|
|
631
|
-
|
|
701
|
+
status: string;
|
|
702
|
+
data: string;
|
|
632
703
|
};
|
|
633
704
|
}
|
|
634
|
-
interface
|
|
635
|
-
|
|
705
|
+
interface HttpsPatchBlockInputs {
|
|
706
|
+
url: string;
|
|
707
|
+
body: Record<string, string | number | boolean>;
|
|
708
|
+
headers: Record<string, string>;
|
|
709
|
+
}
|
|
710
|
+
interface HttpGetBlock extends BaseBlock {
|
|
711
|
+
type: "http.get";
|
|
636
712
|
in: {
|
|
637
|
-
|
|
713
|
+
url: string;
|
|
714
|
+
headers: string | null;
|
|
715
|
+
};
|
|
716
|
+
out: {
|
|
717
|
+
status: string;
|
|
718
|
+
data: string;
|
|
719
|
+
};
|
|
720
|
+
data: {
|
|
721
|
+
url: string | null;
|
|
722
|
+
headers: Record<string, string> | null;
|
|
638
723
|
};
|
|
639
|
-
out: Record<string, string>;
|
|
640
724
|
}
|
|
641
|
-
interface
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
out: Record<string, never>;
|
|
725
|
+
interface HttpGetBlockInputs {
|
|
726
|
+
url: string;
|
|
727
|
+
headers: Record<string, string>;
|
|
645
728
|
}
|
|
646
|
-
interface
|
|
647
|
-
type: "
|
|
648
|
-
in:
|
|
649
|
-
|
|
729
|
+
interface HttpPostBlock extends BaseBlock {
|
|
730
|
+
type: "http.post";
|
|
731
|
+
in: {
|
|
732
|
+
url: string;
|
|
733
|
+
body: string | null;
|
|
734
|
+
headers: string | null;
|
|
735
|
+
};
|
|
736
|
+
out: {
|
|
737
|
+
status: string;
|
|
738
|
+
data: string;
|
|
739
|
+
};
|
|
740
|
+
data: {
|
|
741
|
+
url: string | null;
|
|
742
|
+
body: Record<string, string | number | boolean> | null;
|
|
743
|
+
headers: Record<string, string> | null;
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
interface HttpPostBlockInputs {
|
|
747
|
+
url: string;
|
|
748
|
+
body: Record<string, string | number | boolean>;
|
|
749
|
+
headers: Record<string, string>;
|
|
650
750
|
}
|
|
651
|
-
interface
|
|
652
|
-
type: "
|
|
751
|
+
interface HttpDeleteBlock extends BaseBlock {
|
|
752
|
+
type: "http.delete";
|
|
653
753
|
in: {
|
|
654
754
|
url: string;
|
|
655
|
-
|
|
656
|
-
headers?: string;
|
|
755
|
+
headers: string | null;
|
|
657
756
|
};
|
|
658
757
|
out: {
|
|
659
758
|
status: string;
|
|
660
759
|
data: string;
|
|
661
760
|
};
|
|
761
|
+
data: {
|
|
762
|
+
url: string | null;
|
|
763
|
+
headers: Record<string, string> | null;
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
interface HttpDeleteBlockInputs {
|
|
767
|
+
url: string;
|
|
768
|
+
headers: Record<string, string>;
|
|
662
769
|
}
|
|
663
|
-
interface
|
|
664
|
-
type: "
|
|
665
|
-
in:
|
|
770
|
+
interface HttpPutBlock extends BaseBlock {
|
|
771
|
+
type: "http.put";
|
|
772
|
+
in: {
|
|
773
|
+
url: string;
|
|
774
|
+
body: string | null;
|
|
775
|
+
headers: string | null;
|
|
776
|
+
};
|
|
777
|
+
out: {
|
|
778
|
+
status: string;
|
|
779
|
+
data: string;
|
|
780
|
+
};
|
|
781
|
+
data: {
|
|
782
|
+
url: string | null;
|
|
783
|
+
body: Record<string, string | number | boolean> | null;
|
|
784
|
+
headers: Record<string, string> | null;
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
interface HttpPutBlockInputs {
|
|
788
|
+
url: string;
|
|
789
|
+
body: Record<string, string | number | boolean>;
|
|
790
|
+
headers: Record<string, string>;
|
|
791
|
+
}
|
|
792
|
+
interface MqttSendBlock extends BaseBlock {
|
|
793
|
+
type: "mqtt.send";
|
|
794
|
+
in: {
|
|
795
|
+
message: string;
|
|
796
|
+
topic: string;
|
|
797
|
+
username: string | null;
|
|
798
|
+
password: string | null;
|
|
799
|
+
connectUrl: string;
|
|
800
|
+
};
|
|
801
|
+
out: Record<string, never>;
|
|
802
|
+
data: {
|
|
803
|
+
message: string | null;
|
|
804
|
+
topic: string | null;
|
|
805
|
+
username: string | null;
|
|
806
|
+
password: string | null;
|
|
807
|
+
connectUrl: string | null;
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
interface MqttSendBlockInputs {
|
|
811
|
+
message: string;
|
|
812
|
+
topic: string;
|
|
813
|
+
username: string | null;
|
|
814
|
+
password: string | null;
|
|
815
|
+
connectUrl: string;
|
|
816
|
+
}
|
|
817
|
+
interface EndCustomBlock extends BaseBlock {
|
|
818
|
+
type: "end.custom";
|
|
819
|
+
in: Record<string, DataEdgeConnection>;
|
|
666
820
|
out: Record<string, never>;
|
|
667
|
-
|
|
821
|
+
data: {
|
|
822
|
+
outputParamDefintionArray: ParamDefinition[];
|
|
823
|
+
};
|
|
668
824
|
}
|
|
669
|
-
type FlowBlock =
|
|
670
|
-
type FlowBlockInput = MathAddBlockInputs | Record<string, unknown>;
|
|
825
|
+
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MapDestructureBlock | ParameterRetrieveBlock | ParameterUpdateBlock | IfBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | HttpPatchBlock | EndCustomBlock;
|
|
826
|
+
type FlowBlockInput = MathAddBlockInputs | ParameterRetrieveBlockInputs | ParameterUpdateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
|
|
671
827
|
interface FlowDataEdge {
|
|
672
828
|
id: string;
|
|
673
829
|
type: "data";
|
|
@@ -699,6 +855,18 @@ interface ParamDefinition {
|
|
|
699
855
|
required: boolean;
|
|
700
856
|
description: string | null;
|
|
701
857
|
}
|
|
858
|
+
type FlowLog = {
|
|
859
|
+
severity: "debug" | "info" | "warning" | "error";
|
|
860
|
+
message: string;
|
|
861
|
+
createdAt: Date;
|
|
862
|
+
};
|
|
863
|
+
type DataEdgeConnection = string | null;
|
|
864
|
+
type ControlEdgeConnection = string | null;
|
|
865
|
+
type QuickAction = {
|
|
866
|
+
icon: string | null;
|
|
867
|
+
name: LocaleString;
|
|
868
|
+
flowId: string;
|
|
869
|
+
};
|
|
702
870
|
|
|
703
871
|
declare class Service {
|
|
704
872
|
constructor(config: JUHUU.SetupConfig);
|
|
@@ -4175,4 +4343,4 @@ declare namespace JUHUU {
|
|
|
4175
4343
|
}
|
|
4176
4344
|
}
|
|
4177
4345
|
|
|
4178
|
-
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type
|
|
4346
|
+
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, type Offer, type OfferTime, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.d.ts
CHANGED
|
@@ -15,16 +15,6 @@ type Frontend = "dashboard" | "app";
|
|
|
15
15
|
type FlowExecutionEnvironment = "dashboard" | "app" | "backend";
|
|
16
16
|
type ApiKeyStatus = "enabled" | "disabled";
|
|
17
17
|
type FlowStatus = "error" | "ready";
|
|
18
|
-
type FlowLog = {
|
|
19
|
-
severity: "debug" | "info" | "warning" | "error";
|
|
20
|
-
message: string;
|
|
21
|
-
createdAt: Date;
|
|
22
|
-
};
|
|
23
|
-
type QuickAction = {
|
|
24
|
-
icon: string | null;
|
|
25
|
-
name: LocaleString;
|
|
26
|
-
flowId: string;
|
|
27
|
-
};
|
|
28
18
|
type License = {
|
|
29
19
|
type: "url";
|
|
30
20
|
validUntil: Date | null;
|
|
@@ -554,40 +544,92 @@ interface LocaleString {
|
|
|
554
544
|
interface BaseBlock {
|
|
555
545
|
id: string;
|
|
556
546
|
}
|
|
557
|
-
interface
|
|
558
|
-
type: "
|
|
547
|
+
interface StartCustomBlock extends BaseBlock {
|
|
548
|
+
type: "start.custom";
|
|
559
549
|
in: Record<string, never>;
|
|
560
|
-
out: Record<string,
|
|
550
|
+
out: Record<string, DataEdgeConnection>;
|
|
551
|
+
data: {
|
|
552
|
+
inputParamDefinitionArray: ParamDefinition[];
|
|
553
|
+
};
|
|
561
554
|
}
|
|
562
|
-
interface
|
|
563
|
-
type: "
|
|
555
|
+
interface StartQuickActionLocationBlock extends BaseBlock {
|
|
556
|
+
type: "start.quickAction.location";
|
|
564
557
|
in: Record<string, never>;
|
|
565
|
-
out:
|
|
566
|
-
|
|
558
|
+
out: {
|
|
559
|
+
locationId: DataEdgeConnection;
|
|
560
|
+
propertyId: DataEdgeConnection;
|
|
561
|
+
};
|
|
567
562
|
}
|
|
568
|
-
interface
|
|
569
|
-
type: "
|
|
563
|
+
interface StartSessionUpdateBlock extends BaseBlock {
|
|
564
|
+
type: "start.session.update";
|
|
570
565
|
in: Record<string, never>;
|
|
571
566
|
out: {
|
|
572
|
-
|
|
573
|
-
|
|
567
|
+
beforeSession: string;
|
|
568
|
+
afterSession: string;
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
interface StartParameterUpdateBlock extends BaseBlock {
|
|
572
|
+
type: "start.parameter.update";
|
|
573
|
+
in: Record<string, never>;
|
|
574
|
+
out: {
|
|
575
|
+
beforeParameter: string;
|
|
576
|
+
afterParameter: string;
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
interface ParameterRetrieveBlock extends BaseBlock {
|
|
580
|
+
type: "parameter.retrieve";
|
|
581
|
+
in: {
|
|
582
|
+
parameterId: DataEdgeConnection;
|
|
583
|
+
deviceId: DataEdgeConnection;
|
|
584
|
+
};
|
|
585
|
+
out: {
|
|
586
|
+
parameter: DataEdgeConnection;
|
|
587
|
+
};
|
|
588
|
+
data: {
|
|
589
|
+
parameterId: string | null;
|
|
590
|
+
deviceId: string | null;
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
interface ParameterRetrieveBlockInputs {
|
|
594
|
+
parameterId: string;
|
|
595
|
+
deviceId: string | null;
|
|
596
|
+
}
|
|
597
|
+
interface ParameterUpdateBlock extends BaseBlock {
|
|
598
|
+
type: "parameter.update";
|
|
599
|
+
in: {
|
|
600
|
+
parameterId: string;
|
|
601
|
+
deviceId: string | null;
|
|
602
|
+
currentValue: number | string | boolean;
|
|
603
|
+
};
|
|
604
|
+
out: {
|
|
605
|
+
parameter: string;
|
|
606
|
+
};
|
|
607
|
+
data: {
|
|
608
|
+
parameterId: string | null;
|
|
609
|
+
deviceId: string | null;
|
|
610
|
+
currentValue: number | string | boolean | null;
|
|
574
611
|
};
|
|
575
612
|
}
|
|
613
|
+
interface ParameterUpdateBlockInputs {
|
|
614
|
+
parameterId: string;
|
|
615
|
+
deviceId: string | null;
|
|
616
|
+
currentValue: number | string | boolean;
|
|
617
|
+
}
|
|
576
618
|
interface ConstNumberBlock extends BaseBlock {
|
|
577
619
|
type: "const.number";
|
|
578
620
|
in: Record<string, never>;
|
|
579
621
|
out: {
|
|
580
|
-
value:
|
|
622
|
+
value: DataEdgeConnection;
|
|
581
623
|
};
|
|
582
624
|
data: {
|
|
583
625
|
value: number;
|
|
584
626
|
};
|
|
585
627
|
}
|
|
586
|
-
interface
|
|
587
|
-
type: "const.
|
|
628
|
+
interface ConstTextBlock extends BaseBlock {
|
|
629
|
+
type: "const.text";
|
|
588
630
|
in: Record<string, never>;
|
|
589
631
|
out: {
|
|
590
|
-
value:
|
|
632
|
+
value: DataEdgeConnection;
|
|
591
633
|
};
|
|
592
634
|
data: {
|
|
593
635
|
value: string;
|
|
@@ -597,7 +639,7 @@ interface ConstBooleanBlock extends BaseBlock {
|
|
|
597
639
|
type: "const.boolean";
|
|
598
640
|
in: Record<string, never>;
|
|
599
641
|
out: {
|
|
600
|
-
value:
|
|
642
|
+
value: DataEdgeConnection;
|
|
601
643
|
};
|
|
602
644
|
data: {
|
|
603
645
|
value: boolean;
|
|
@@ -606,11 +648,11 @@ interface ConstBooleanBlock extends BaseBlock {
|
|
|
606
648
|
interface MathAddBlock extends BaseBlock {
|
|
607
649
|
type: "math.add";
|
|
608
650
|
in: {
|
|
609
|
-
a:
|
|
610
|
-
b:
|
|
651
|
+
a: DataEdgeConnection;
|
|
652
|
+
b: DataEdgeConnection;
|
|
611
653
|
};
|
|
612
654
|
out: {
|
|
613
|
-
result:
|
|
655
|
+
result: DataEdgeConnection;
|
|
614
656
|
};
|
|
615
657
|
data: {
|
|
616
658
|
a: number | null;
|
|
@@ -621,53 +663,167 @@ interface MathAddBlockInputs {
|
|
|
621
663
|
a: number;
|
|
622
664
|
b: number;
|
|
623
665
|
}
|
|
624
|
-
interface
|
|
625
|
-
type: "
|
|
666
|
+
interface MapDestructureBlock extends BaseBlock {
|
|
667
|
+
type: "map.destructure";
|
|
668
|
+
data: {
|
|
669
|
+
keys: string[];
|
|
670
|
+
};
|
|
626
671
|
in: {
|
|
627
|
-
|
|
672
|
+
map: DataEdgeConnection;
|
|
673
|
+
};
|
|
674
|
+
out: Record<string, DataEdgeConnection>;
|
|
675
|
+
}
|
|
676
|
+
interface MapDestructureBlockInputs {
|
|
677
|
+
map: Record<string, string | number | boolean>;
|
|
678
|
+
keys: string[];
|
|
679
|
+
}
|
|
680
|
+
interface IfBlock extends BaseBlock {
|
|
681
|
+
type: "control.if";
|
|
682
|
+
in: Record<string, never>;
|
|
683
|
+
out: Record<string, ControlEdgeConnection>;
|
|
684
|
+
data: {
|
|
685
|
+
condition: unknown;
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
interface HttpPatchBlock extends BaseBlock {
|
|
689
|
+
type: "http.patch";
|
|
690
|
+
in: {
|
|
691
|
+
url: DataEdgeConnection;
|
|
692
|
+
body: DataEdgeConnection;
|
|
693
|
+
headers: DataEdgeConnection;
|
|
694
|
+
};
|
|
695
|
+
data: {
|
|
696
|
+
url: string | null;
|
|
697
|
+
body: Record<string, string | number | boolean> | null;
|
|
698
|
+
headers: Record<string, string> | null;
|
|
628
699
|
};
|
|
629
700
|
out: {
|
|
630
|
-
|
|
631
|
-
|
|
701
|
+
status: string;
|
|
702
|
+
data: string;
|
|
632
703
|
};
|
|
633
704
|
}
|
|
634
|
-
interface
|
|
635
|
-
|
|
705
|
+
interface HttpsPatchBlockInputs {
|
|
706
|
+
url: string;
|
|
707
|
+
body: Record<string, string | number | boolean>;
|
|
708
|
+
headers: Record<string, string>;
|
|
709
|
+
}
|
|
710
|
+
interface HttpGetBlock extends BaseBlock {
|
|
711
|
+
type: "http.get";
|
|
636
712
|
in: {
|
|
637
|
-
|
|
713
|
+
url: string;
|
|
714
|
+
headers: string | null;
|
|
715
|
+
};
|
|
716
|
+
out: {
|
|
717
|
+
status: string;
|
|
718
|
+
data: string;
|
|
719
|
+
};
|
|
720
|
+
data: {
|
|
721
|
+
url: string | null;
|
|
722
|
+
headers: Record<string, string> | null;
|
|
638
723
|
};
|
|
639
|
-
out: Record<string, string>;
|
|
640
724
|
}
|
|
641
|
-
interface
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
out: Record<string, never>;
|
|
725
|
+
interface HttpGetBlockInputs {
|
|
726
|
+
url: string;
|
|
727
|
+
headers: Record<string, string>;
|
|
645
728
|
}
|
|
646
|
-
interface
|
|
647
|
-
type: "
|
|
648
|
-
in:
|
|
649
|
-
|
|
729
|
+
interface HttpPostBlock extends BaseBlock {
|
|
730
|
+
type: "http.post";
|
|
731
|
+
in: {
|
|
732
|
+
url: string;
|
|
733
|
+
body: string | null;
|
|
734
|
+
headers: string | null;
|
|
735
|
+
};
|
|
736
|
+
out: {
|
|
737
|
+
status: string;
|
|
738
|
+
data: string;
|
|
739
|
+
};
|
|
740
|
+
data: {
|
|
741
|
+
url: string | null;
|
|
742
|
+
body: Record<string, string | number | boolean> | null;
|
|
743
|
+
headers: Record<string, string> | null;
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
interface HttpPostBlockInputs {
|
|
747
|
+
url: string;
|
|
748
|
+
body: Record<string, string | number | boolean>;
|
|
749
|
+
headers: Record<string, string>;
|
|
650
750
|
}
|
|
651
|
-
interface
|
|
652
|
-
type: "
|
|
751
|
+
interface HttpDeleteBlock extends BaseBlock {
|
|
752
|
+
type: "http.delete";
|
|
653
753
|
in: {
|
|
654
754
|
url: string;
|
|
655
|
-
|
|
656
|
-
headers?: string;
|
|
755
|
+
headers: string | null;
|
|
657
756
|
};
|
|
658
757
|
out: {
|
|
659
758
|
status: string;
|
|
660
759
|
data: string;
|
|
661
760
|
};
|
|
761
|
+
data: {
|
|
762
|
+
url: string | null;
|
|
763
|
+
headers: Record<string, string> | null;
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
interface HttpDeleteBlockInputs {
|
|
767
|
+
url: string;
|
|
768
|
+
headers: Record<string, string>;
|
|
662
769
|
}
|
|
663
|
-
interface
|
|
664
|
-
type: "
|
|
665
|
-
in:
|
|
770
|
+
interface HttpPutBlock extends BaseBlock {
|
|
771
|
+
type: "http.put";
|
|
772
|
+
in: {
|
|
773
|
+
url: string;
|
|
774
|
+
body: string | null;
|
|
775
|
+
headers: string | null;
|
|
776
|
+
};
|
|
777
|
+
out: {
|
|
778
|
+
status: string;
|
|
779
|
+
data: string;
|
|
780
|
+
};
|
|
781
|
+
data: {
|
|
782
|
+
url: string | null;
|
|
783
|
+
body: Record<string, string | number | boolean> | null;
|
|
784
|
+
headers: Record<string, string> | null;
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
interface HttpPutBlockInputs {
|
|
788
|
+
url: string;
|
|
789
|
+
body: Record<string, string | number | boolean>;
|
|
790
|
+
headers: Record<string, string>;
|
|
791
|
+
}
|
|
792
|
+
interface MqttSendBlock extends BaseBlock {
|
|
793
|
+
type: "mqtt.send";
|
|
794
|
+
in: {
|
|
795
|
+
message: string;
|
|
796
|
+
topic: string;
|
|
797
|
+
username: string | null;
|
|
798
|
+
password: string | null;
|
|
799
|
+
connectUrl: string;
|
|
800
|
+
};
|
|
801
|
+
out: Record<string, never>;
|
|
802
|
+
data: {
|
|
803
|
+
message: string | null;
|
|
804
|
+
topic: string | null;
|
|
805
|
+
username: string | null;
|
|
806
|
+
password: string | null;
|
|
807
|
+
connectUrl: string | null;
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
interface MqttSendBlockInputs {
|
|
811
|
+
message: string;
|
|
812
|
+
topic: string;
|
|
813
|
+
username: string | null;
|
|
814
|
+
password: string | null;
|
|
815
|
+
connectUrl: string;
|
|
816
|
+
}
|
|
817
|
+
interface EndCustomBlock extends BaseBlock {
|
|
818
|
+
type: "end.custom";
|
|
819
|
+
in: Record<string, DataEdgeConnection>;
|
|
666
820
|
out: Record<string, never>;
|
|
667
|
-
|
|
821
|
+
data: {
|
|
822
|
+
outputParamDefintionArray: ParamDefinition[];
|
|
823
|
+
};
|
|
668
824
|
}
|
|
669
|
-
type FlowBlock =
|
|
670
|
-
type FlowBlockInput = MathAddBlockInputs | Record<string, unknown>;
|
|
825
|
+
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MapDestructureBlock | ParameterRetrieveBlock | ParameterUpdateBlock | IfBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | HttpPatchBlock | EndCustomBlock;
|
|
826
|
+
type FlowBlockInput = MathAddBlockInputs | ParameterRetrieveBlockInputs | ParameterUpdateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
|
|
671
827
|
interface FlowDataEdge {
|
|
672
828
|
id: string;
|
|
673
829
|
type: "data";
|
|
@@ -699,6 +855,18 @@ interface ParamDefinition {
|
|
|
699
855
|
required: boolean;
|
|
700
856
|
description: string | null;
|
|
701
857
|
}
|
|
858
|
+
type FlowLog = {
|
|
859
|
+
severity: "debug" | "info" | "warning" | "error";
|
|
860
|
+
message: string;
|
|
861
|
+
createdAt: Date;
|
|
862
|
+
};
|
|
863
|
+
type DataEdgeConnection = string | null;
|
|
864
|
+
type ControlEdgeConnection = string | null;
|
|
865
|
+
type QuickAction = {
|
|
866
|
+
icon: string | null;
|
|
867
|
+
name: LocaleString;
|
|
868
|
+
flowId: string;
|
|
869
|
+
};
|
|
702
870
|
|
|
703
871
|
declare class Service {
|
|
704
872
|
constructor(config: JUHUU.SetupConfig);
|
|
@@ -4175,4 +4343,4 @@ declare namespace JUHUU {
|
|
|
4175
4343
|
}
|
|
4176
4344
|
}
|
|
4177
4345
|
|
|
4178
|
-
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type
|
|
4346
|
+
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, type Offer, type OfferTime, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|