@juhuu/sdk-ts 1.2.234 → 1.2.236
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 +222 -8
- package/dist/index.d.ts +222 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -541,6 +541,7 @@ interface LocaleString {
|
|
|
541
541
|
cs?: string;
|
|
542
542
|
et?: string;
|
|
543
543
|
}
|
|
544
|
+
type JsonLogic = Record<string, unknown>;
|
|
544
545
|
interface BaseBlock {
|
|
545
546
|
id: string;
|
|
546
547
|
}
|
|
@@ -564,8 +565,16 @@ interface StartSessionUpdateBlock extends BaseBlock {
|
|
|
564
565
|
type: "start.session.update";
|
|
565
566
|
in: Record<string, never>;
|
|
566
567
|
out: {
|
|
567
|
-
|
|
568
|
-
|
|
568
|
+
before: DataEdgeConnection;
|
|
569
|
+
after: DataEdgeConnection;
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
interface StartLocationUpdateBlock extends BaseBlock {
|
|
573
|
+
type: "start.location.update";
|
|
574
|
+
in: Record<string, never>;
|
|
575
|
+
out: {
|
|
576
|
+
before: DataEdgeConnection;
|
|
577
|
+
after: DataEdgeConnection;
|
|
569
578
|
};
|
|
570
579
|
}
|
|
571
580
|
interface StartParameterUpdateBlock extends BaseBlock {
|
|
@@ -594,6 +603,81 @@ interface ParameterRetrieveBlockInputs {
|
|
|
594
603
|
parameterId: string;
|
|
595
604
|
deviceId: string | null;
|
|
596
605
|
}
|
|
606
|
+
interface PropertyRetrieveBlock extends BaseBlock {
|
|
607
|
+
type: "property.retrieve";
|
|
608
|
+
in: {
|
|
609
|
+
propertyId: DataEdgeConnection;
|
|
610
|
+
};
|
|
611
|
+
out: {
|
|
612
|
+
property: DataEdgeConnection;
|
|
613
|
+
};
|
|
614
|
+
data: {
|
|
615
|
+
propertyId?: string;
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
interface PropertyRetrieveBlockInputs {
|
|
619
|
+
propertyId: string;
|
|
620
|
+
}
|
|
621
|
+
interface LocationRetrieveBlock extends BaseBlock {
|
|
622
|
+
type: "location.retrieve";
|
|
623
|
+
in: {
|
|
624
|
+
locationId: DataEdgeConnection;
|
|
625
|
+
};
|
|
626
|
+
out: {
|
|
627
|
+
location: DataEdgeConnection;
|
|
628
|
+
};
|
|
629
|
+
data: {
|
|
630
|
+
locationId?: string;
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
interface LocationRetrieveBlockInputs {
|
|
634
|
+
locationId: string;
|
|
635
|
+
}
|
|
636
|
+
interface SessionRetrieveBlock extends BaseBlock {
|
|
637
|
+
type: "session.retrieve";
|
|
638
|
+
in: {
|
|
639
|
+
sessionId: DataEdgeConnection;
|
|
640
|
+
};
|
|
641
|
+
out: {
|
|
642
|
+
session: DataEdgeConnection;
|
|
643
|
+
};
|
|
644
|
+
data: {
|
|
645
|
+
sessionId?: string;
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
interface SessionRetrieveBlockInputs {
|
|
649
|
+
sessionId: string;
|
|
650
|
+
}
|
|
651
|
+
interface DeviceRetrieveBlock extends BaseBlock {
|
|
652
|
+
type: "device.retrieve";
|
|
653
|
+
in: {
|
|
654
|
+
deviceId: DataEdgeConnection;
|
|
655
|
+
};
|
|
656
|
+
out: {
|
|
657
|
+
device: DataEdgeConnection;
|
|
658
|
+
};
|
|
659
|
+
data: {
|
|
660
|
+
deviceId?: string;
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
interface DeviceRetrieveBlockInputs {
|
|
664
|
+
deviceId: string;
|
|
665
|
+
}
|
|
666
|
+
interface UserRetrieveBlock extends BaseBlock {
|
|
667
|
+
type: "user.retrieve";
|
|
668
|
+
in: {
|
|
669
|
+
userId: DataEdgeConnection;
|
|
670
|
+
};
|
|
671
|
+
out: {
|
|
672
|
+
user: DataEdgeConnection;
|
|
673
|
+
};
|
|
674
|
+
data: {
|
|
675
|
+
userId?: string;
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
interface UserRetrieveBlockInputs {
|
|
679
|
+
userId: string;
|
|
680
|
+
}
|
|
597
681
|
interface ParameterUpdateBlock extends BaseBlock {
|
|
598
682
|
type: "parameter.update";
|
|
599
683
|
in: {
|
|
@@ -630,6 +714,82 @@ interface ParameterUpdateBlockInputs {
|
|
|
630
714
|
name: string | null;
|
|
631
715
|
reference: string | null;
|
|
632
716
|
}
|
|
717
|
+
interface DeviceUpdateBlock extends BaseBlock {
|
|
718
|
+
type: "device.update";
|
|
719
|
+
in: {
|
|
720
|
+
deviceId: DataEdgeConnection;
|
|
721
|
+
data: DataEdgeConnection;
|
|
722
|
+
};
|
|
723
|
+
out: {
|
|
724
|
+
device: DataEdgeConnection;
|
|
725
|
+
};
|
|
726
|
+
data: {
|
|
727
|
+
deviceId?: string;
|
|
728
|
+
data?: Record<string, any>;
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
interface DeviceUpdateBlockInputs {
|
|
732
|
+
deviceId: string;
|
|
733
|
+
data: Record<string, any>;
|
|
734
|
+
}
|
|
735
|
+
interface LocationUpdateBlock extends BaseBlock {
|
|
736
|
+
type: "location.update";
|
|
737
|
+
in: {
|
|
738
|
+
locationId: DataEdgeConnection;
|
|
739
|
+
data: DataEdgeConnection;
|
|
740
|
+
};
|
|
741
|
+
out: {
|
|
742
|
+
location: DataEdgeConnection;
|
|
743
|
+
};
|
|
744
|
+
data: {
|
|
745
|
+
locationId?: string;
|
|
746
|
+
data?: Record<string, any>;
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
interface LocationUpdateBlockInputs {
|
|
750
|
+
locationId: string;
|
|
751
|
+
data: Record<string, any>;
|
|
752
|
+
}
|
|
753
|
+
interface PropertyUpdateBlock extends BaseBlock {
|
|
754
|
+
type: "property.update";
|
|
755
|
+
in: {
|
|
756
|
+
propertyId: DataEdgeConnection;
|
|
757
|
+
data: DataEdgeConnection;
|
|
758
|
+
};
|
|
759
|
+
out: {
|
|
760
|
+
property: DataEdgeConnection;
|
|
761
|
+
};
|
|
762
|
+
data: {
|
|
763
|
+
propertyId?: string;
|
|
764
|
+
data?: Record<string, any>;
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
interface PropertyUpdateBlockInputs {
|
|
768
|
+
propertyId: string;
|
|
769
|
+
data: Record<string, any>;
|
|
770
|
+
}
|
|
771
|
+
interface SessionTerminateBlock extends BaseBlock {
|
|
772
|
+
type: "session.terminate";
|
|
773
|
+
in: {
|
|
774
|
+
sessionId: DataEdgeConnection;
|
|
775
|
+
ignoreFlowErrors: DataEdgeConnection;
|
|
776
|
+
shouldRetry: DataEdgeConnection;
|
|
777
|
+
autoRenewIfAvailable: DataEdgeConnection;
|
|
778
|
+
};
|
|
779
|
+
out: Record<string, never>;
|
|
780
|
+
data: {
|
|
781
|
+
sessionId?: string;
|
|
782
|
+
ignoreFlowErrors?: boolean;
|
|
783
|
+
shouldRetry?: boolean;
|
|
784
|
+
autoRenewIfAvailable?: boolean;
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
interface SessionTerminateBlockInputs {
|
|
788
|
+
sessionId: string;
|
|
789
|
+
ignoreFlowErrors: boolean;
|
|
790
|
+
shouldRetry: boolean;
|
|
791
|
+
autoRenewIfAvailable: boolean;
|
|
792
|
+
}
|
|
633
793
|
interface ConstNumberBlock extends BaseBlock {
|
|
634
794
|
type: "const.number";
|
|
635
795
|
in: Record<string, never>;
|
|
@@ -678,6 +838,60 @@ interface MathAddBlockInputs {
|
|
|
678
838
|
a: number;
|
|
679
839
|
b: number;
|
|
680
840
|
}
|
|
841
|
+
interface MathSubtractBlock extends BaseBlock {
|
|
842
|
+
type: "math.subtract";
|
|
843
|
+
in: {
|
|
844
|
+
a: DataEdgeConnection;
|
|
845
|
+
b: DataEdgeConnection;
|
|
846
|
+
};
|
|
847
|
+
out: {
|
|
848
|
+
result: DataEdgeConnection;
|
|
849
|
+
};
|
|
850
|
+
data: {
|
|
851
|
+
a?: number;
|
|
852
|
+
b?: number;
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
interface MathSubtractBlockInputs {
|
|
856
|
+
a: number;
|
|
857
|
+
b: number;
|
|
858
|
+
}
|
|
859
|
+
interface MathMultiplyBlock extends BaseBlock {
|
|
860
|
+
type: "math.multiply";
|
|
861
|
+
in: {
|
|
862
|
+
a: DataEdgeConnection;
|
|
863
|
+
b: DataEdgeConnection;
|
|
864
|
+
};
|
|
865
|
+
out: {
|
|
866
|
+
result: DataEdgeConnection;
|
|
867
|
+
};
|
|
868
|
+
data: {
|
|
869
|
+
a?: number;
|
|
870
|
+
b?: number;
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
interface MathMultiplyBlockInputs {
|
|
874
|
+
a: number;
|
|
875
|
+
b: number;
|
|
876
|
+
}
|
|
877
|
+
interface MathDivideBlock extends BaseBlock {
|
|
878
|
+
type: "math.divide";
|
|
879
|
+
in: {
|
|
880
|
+
a: DataEdgeConnection;
|
|
881
|
+
b: DataEdgeConnection;
|
|
882
|
+
};
|
|
883
|
+
out: {
|
|
884
|
+
result: DataEdgeConnection;
|
|
885
|
+
};
|
|
886
|
+
data: {
|
|
887
|
+
a?: number;
|
|
888
|
+
b?: number;
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
interface MathDivideBlockInputs {
|
|
892
|
+
a: number;
|
|
893
|
+
b: number;
|
|
894
|
+
}
|
|
681
895
|
interface MapDestructureBlock extends BaseBlock {
|
|
682
896
|
type: "map.destructure";
|
|
683
897
|
data: {
|
|
@@ -697,7 +911,7 @@ interface IfBlock extends BaseBlock {
|
|
|
697
911
|
in: Record<string, never>;
|
|
698
912
|
out: Record<string, ControlEdgeConnection>;
|
|
699
913
|
data: {
|
|
700
|
-
condition
|
|
914
|
+
condition: JsonLogic;
|
|
701
915
|
};
|
|
702
916
|
}
|
|
703
917
|
interface HttpPatchBlock extends BaseBlock {
|
|
@@ -834,11 +1048,11 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
834
1048
|
in: Record<string, DataEdgeConnection>;
|
|
835
1049
|
out: Record<string, never>;
|
|
836
1050
|
data: {
|
|
837
|
-
|
|
1051
|
+
outputParamDefintionArray: ParamDefinition[];
|
|
838
1052
|
};
|
|
839
1053
|
}
|
|
840
|
-
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MapDestructureBlock | ParameterRetrieveBlock | ParameterUpdateBlock | IfBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | HttpPatchBlock | EndCustomBlock;
|
|
841
|
-
type FlowBlockInput = MathAddBlockInputs | ParameterRetrieveBlockInputs | ParameterUpdateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
|
|
1054
|
+
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | IfBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | HttpPatchBlock | EndCustomBlock;
|
|
1055
|
+
type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
|
|
842
1056
|
interface FlowDataEdge {
|
|
843
1057
|
id: string;
|
|
844
1058
|
type: "data";
|
|
@@ -3744,7 +3958,7 @@ declare namespace JUHUU {
|
|
|
3744
3958
|
deviceId?: string;
|
|
3745
3959
|
};
|
|
3746
3960
|
type Options = {
|
|
3747
|
-
expand
|
|
3961
|
+
expand?: Array<"property">;
|
|
3748
3962
|
} & JUHUU.RequestOptions;
|
|
3749
3963
|
type Response = {
|
|
3750
3964
|
parameter: JUHUU.Parameter.Object;
|
|
@@ -4361,4 +4575,4 @@ declare namespace JUHUU {
|
|
|
4361
4575
|
}
|
|
4362
4576
|
}
|
|
4363
4577
|
|
|
4364
|
-
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 };
|
|
4578
|
+
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 DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, 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, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, 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 PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionRetrieveBlock, type SessionRetrieveBlockInputs, type SessionSettings, type SessionStatus, type SessionTerminateBlock, type SessionTerminateBlockInputs, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartLocationUpdateBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.d.ts
CHANGED
|
@@ -541,6 +541,7 @@ interface LocaleString {
|
|
|
541
541
|
cs?: string;
|
|
542
542
|
et?: string;
|
|
543
543
|
}
|
|
544
|
+
type JsonLogic = Record<string, unknown>;
|
|
544
545
|
interface BaseBlock {
|
|
545
546
|
id: string;
|
|
546
547
|
}
|
|
@@ -564,8 +565,16 @@ interface StartSessionUpdateBlock extends BaseBlock {
|
|
|
564
565
|
type: "start.session.update";
|
|
565
566
|
in: Record<string, never>;
|
|
566
567
|
out: {
|
|
567
|
-
|
|
568
|
-
|
|
568
|
+
before: DataEdgeConnection;
|
|
569
|
+
after: DataEdgeConnection;
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
interface StartLocationUpdateBlock extends BaseBlock {
|
|
573
|
+
type: "start.location.update";
|
|
574
|
+
in: Record<string, never>;
|
|
575
|
+
out: {
|
|
576
|
+
before: DataEdgeConnection;
|
|
577
|
+
after: DataEdgeConnection;
|
|
569
578
|
};
|
|
570
579
|
}
|
|
571
580
|
interface StartParameterUpdateBlock extends BaseBlock {
|
|
@@ -594,6 +603,81 @@ interface ParameterRetrieveBlockInputs {
|
|
|
594
603
|
parameterId: string;
|
|
595
604
|
deviceId: string | null;
|
|
596
605
|
}
|
|
606
|
+
interface PropertyRetrieveBlock extends BaseBlock {
|
|
607
|
+
type: "property.retrieve";
|
|
608
|
+
in: {
|
|
609
|
+
propertyId: DataEdgeConnection;
|
|
610
|
+
};
|
|
611
|
+
out: {
|
|
612
|
+
property: DataEdgeConnection;
|
|
613
|
+
};
|
|
614
|
+
data: {
|
|
615
|
+
propertyId?: string;
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
interface PropertyRetrieveBlockInputs {
|
|
619
|
+
propertyId: string;
|
|
620
|
+
}
|
|
621
|
+
interface LocationRetrieveBlock extends BaseBlock {
|
|
622
|
+
type: "location.retrieve";
|
|
623
|
+
in: {
|
|
624
|
+
locationId: DataEdgeConnection;
|
|
625
|
+
};
|
|
626
|
+
out: {
|
|
627
|
+
location: DataEdgeConnection;
|
|
628
|
+
};
|
|
629
|
+
data: {
|
|
630
|
+
locationId?: string;
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
interface LocationRetrieveBlockInputs {
|
|
634
|
+
locationId: string;
|
|
635
|
+
}
|
|
636
|
+
interface SessionRetrieveBlock extends BaseBlock {
|
|
637
|
+
type: "session.retrieve";
|
|
638
|
+
in: {
|
|
639
|
+
sessionId: DataEdgeConnection;
|
|
640
|
+
};
|
|
641
|
+
out: {
|
|
642
|
+
session: DataEdgeConnection;
|
|
643
|
+
};
|
|
644
|
+
data: {
|
|
645
|
+
sessionId?: string;
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
interface SessionRetrieveBlockInputs {
|
|
649
|
+
sessionId: string;
|
|
650
|
+
}
|
|
651
|
+
interface DeviceRetrieveBlock extends BaseBlock {
|
|
652
|
+
type: "device.retrieve";
|
|
653
|
+
in: {
|
|
654
|
+
deviceId: DataEdgeConnection;
|
|
655
|
+
};
|
|
656
|
+
out: {
|
|
657
|
+
device: DataEdgeConnection;
|
|
658
|
+
};
|
|
659
|
+
data: {
|
|
660
|
+
deviceId?: string;
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
interface DeviceRetrieveBlockInputs {
|
|
664
|
+
deviceId: string;
|
|
665
|
+
}
|
|
666
|
+
interface UserRetrieveBlock extends BaseBlock {
|
|
667
|
+
type: "user.retrieve";
|
|
668
|
+
in: {
|
|
669
|
+
userId: DataEdgeConnection;
|
|
670
|
+
};
|
|
671
|
+
out: {
|
|
672
|
+
user: DataEdgeConnection;
|
|
673
|
+
};
|
|
674
|
+
data: {
|
|
675
|
+
userId?: string;
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
interface UserRetrieveBlockInputs {
|
|
679
|
+
userId: string;
|
|
680
|
+
}
|
|
597
681
|
interface ParameterUpdateBlock extends BaseBlock {
|
|
598
682
|
type: "parameter.update";
|
|
599
683
|
in: {
|
|
@@ -630,6 +714,82 @@ interface ParameterUpdateBlockInputs {
|
|
|
630
714
|
name: string | null;
|
|
631
715
|
reference: string | null;
|
|
632
716
|
}
|
|
717
|
+
interface DeviceUpdateBlock extends BaseBlock {
|
|
718
|
+
type: "device.update";
|
|
719
|
+
in: {
|
|
720
|
+
deviceId: DataEdgeConnection;
|
|
721
|
+
data: DataEdgeConnection;
|
|
722
|
+
};
|
|
723
|
+
out: {
|
|
724
|
+
device: DataEdgeConnection;
|
|
725
|
+
};
|
|
726
|
+
data: {
|
|
727
|
+
deviceId?: string;
|
|
728
|
+
data?: Record<string, any>;
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
interface DeviceUpdateBlockInputs {
|
|
732
|
+
deviceId: string;
|
|
733
|
+
data: Record<string, any>;
|
|
734
|
+
}
|
|
735
|
+
interface LocationUpdateBlock extends BaseBlock {
|
|
736
|
+
type: "location.update";
|
|
737
|
+
in: {
|
|
738
|
+
locationId: DataEdgeConnection;
|
|
739
|
+
data: DataEdgeConnection;
|
|
740
|
+
};
|
|
741
|
+
out: {
|
|
742
|
+
location: DataEdgeConnection;
|
|
743
|
+
};
|
|
744
|
+
data: {
|
|
745
|
+
locationId?: string;
|
|
746
|
+
data?: Record<string, any>;
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
interface LocationUpdateBlockInputs {
|
|
750
|
+
locationId: string;
|
|
751
|
+
data: Record<string, any>;
|
|
752
|
+
}
|
|
753
|
+
interface PropertyUpdateBlock extends BaseBlock {
|
|
754
|
+
type: "property.update";
|
|
755
|
+
in: {
|
|
756
|
+
propertyId: DataEdgeConnection;
|
|
757
|
+
data: DataEdgeConnection;
|
|
758
|
+
};
|
|
759
|
+
out: {
|
|
760
|
+
property: DataEdgeConnection;
|
|
761
|
+
};
|
|
762
|
+
data: {
|
|
763
|
+
propertyId?: string;
|
|
764
|
+
data?: Record<string, any>;
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
interface PropertyUpdateBlockInputs {
|
|
768
|
+
propertyId: string;
|
|
769
|
+
data: Record<string, any>;
|
|
770
|
+
}
|
|
771
|
+
interface SessionTerminateBlock extends BaseBlock {
|
|
772
|
+
type: "session.terminate";
|
|
773
|
+
in: {
|
|
774
|
+
sessionId: DataEdgeConnection;
|
|
775
|
+
ignoreFlowErrors: DataEdgeConnection;
|
|
776
|
+
shouldRetry: DataEdgeConnection;
|
|
777
|
+
autoRenewIfAvailable: DataEdgeConnection;
|
|
778
|
+
};
|
|
779
|
+
out: Record<string, never>;
|
|
780
|
+
data: {
|
|
781
|
+
sessionId?: string;
|
|
782
|
+
ignoreFlowErrors?: boolean;
|
|
783
|
+
shouldRetry?: boolean;
|
|
784
|
+
autoRenewIfAvailable?: boolean;
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
interface SessionTerminateBlockInputs {
|
|
788
|
+
sessionId: string;
|
|
789
|
+
ignoreFlowErrors: boolean;
|
|
790
|
+
shouldRetry: boolean;
|
|
791
|
+
autoRenewIfAvailable: boolean;
|
|
792
|
+
}
|
|
633
793
|
interface ConstNumberBlock extends BaseBlock {
|
|
634
794
|
type: "const.number";
|
|
635
795
|
in: Record<string, never>;
|
|
@@ -678,6 +838,60 @@ interface MathAddBlockInputs {
|
|
|
678
838
|
a: number;
|
|
679
839
|
b: number;
|
|
680
840
|
}
|
|
841
|
+
interface MathSubtractBlock extends BaseBlock {
|
|
842
|
+
type: "math.subtract";
|
|
843
|
+
in: {
|
|
844
|
+
a: DataEdgeConnection;
|
|
845
|
+
b: DataEdgeConnection;
|
|
846
|
+
};
|
|
847
|
+
out: {
|
|
848
|
+
result: DataEdgeConnection;
|
|
849
|
+
};
|
|
850
|
+
data: {
|
|
851
|
+
a?: number;
|
|
852
|
+
b?: number;
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
interface MathSubtractBlockInputs {
|
|
856
|
+
a: number;
|
|
857
|
+
b: number;
|
|
858
|
+
}
|
|
859
|
+
interface MathMultiplyBlock extends BaseBlock {
|
|
860
|
+
type: "math.multiply";
|
|
861
|
+
in: {
|
|
862
|
+
a: DataEdgeConnection;
|
|
863
|
+
b: DataEdgeConnection;
|
|
864
|
+
};
|
|
865
|
+
out: {
|
|
866
|
+
result: DataEdgeConnection;
|
|
867
|
+
};
|
|
868
|
+
data: {
|
|
869
|
+
a?: number;
|
|
870
|
+
b?: number;
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
interface MathMultiplyBlockInputs {
|
|
874
|
+
a: number;
|
|
875
|
+
b: number;
|
|
876
|
+
}
|
|
877
|
+
interface MathDivideBlock extends BaseBlock {
|
|
878
|
+
type: "math.divide";
|
|
879
|
+
in: {
|
|
880
|
+
a: DataEdgeConnection;
|
|
881
|
+
b: DataEdgeConnection;
|
|
882
|
+
};
|
|
883
|
+
out: {
|
|
884
|
+
result: DataEdgeConnection;
|
|
885
|
+
};
|
|
886
|
+
data: {
|
|
887
|
+
a?: number;
|
|
888
|
+
b?: number;
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
interface MathDivideBlockInputs {
|
|
892
|
+
a: number;
|
|
893
|
+
b: number;
|
|
894
|
+
}
|
|
681
895
|
interface MapDestructureBlock extends BaseBlock {
|
|
682
896
|
type: "map.destructure";
|
|
683
897
|
data: {
|
|
@@ -697,7 +911,7 @@ interface IfBlock extends BaseBlock {
|
|
|
697
911
|
in: Record<string, never>;
|
|
698
912
|
out: Record<string, ControlEdgeConnection>;
|
|
699
913
|
data: {
|
|
700
|
-
condition
|
|
914
|
+
condition: JsonLogic;
|
|
701
915
|
};
|
|
702
916
|
}
|
|
703
917
|
interface HttpPatchBlock extends BaseBlock {
|
|
@@ -834,11 +1048,11 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
834
1048
|
in: Record<string, DataEdgeConnection>;
|
|
835
1049
|
out: Record<string, never>;
|
|
836
1050
|
data: {
|
|
837
|
-
|
|
1051
|
+
outputParamDefintionArray: ParamDefinition[];
|
|
838
1052
|
};
|
|
839
1053
|
}
|
|
840
|
-
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MapDestructureBlock | ParameterRetrieveBlock | ParameterUpdateBlock | IfBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | HttpPatchBlock | EndCustomBlock;
|
|
841
|
-
type FlowBlockInput = MathAddBlockInputs | ParameterRetrieveBlockInputs | ParameterUpdateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
|
|
1054
|
+
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | IfBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | HttpPatchBlock | EndCustomBlock;
|
|
1055
|
+
type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
|
|
842
1056
|
interface FlowDataEdge {
|
|
843
1057
|
id: string;
|
|
844
1058
|
type: "data";
|
|
@@ -3744,7 +3958,7 @@ declare namespace JUHUU {
|
|
|
3744
3958
|
deviceId?: string;
|
|
3745
3959
|
};
|
|
3746
3960
|
type Options = {
|
|
3747
|
-
expand
|
|
3961
|
+
expand?: Array<"property">;
|
|
3748
3962
|
} & JUHUU.RequestOptions;
|
|
3749
3963
|
type Response = {
|
|
3750
3964
|
parameter: JUHUU.Parameter.Object;
|
|
@@ -4361,4 +4575,4 @@ declare namespace JUHUU {
|
|
|
4361
4575
|
}
|
|
4362
4576
|
}
|
|
4363
4577
|
|
|
4364
|
-
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 };
|
|
4578
|
+
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 DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, 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, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, 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 PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionRetrieveBlock, type SessionRetrieveBlockInputs, type SessionSettings, type SessionStatus, type SessionTerminateBlock, type SessionTerminateBlockInputs, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartLocationUpdateBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|