@juhuu/sdk-ts 1.2.298 → 1.2.300
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 +45 -4
- package/dist/index.d.ts +45 -4
- package/dist/index.js +36 -2
- package/dist/index.mjs +36 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -188,7 +188,7 @@ type PaymentRefundReason = "requestedByUser" | "expiredUncapturedCharge" | "frau
|
|
|
188
188
|
type SessionStatus = "waitingForPayment" | "ready" | "completed";
|
|
189
189
|
type AutoRenewMode = "off" | "optIn" | "optOut" | "on";
|
|
190
190
|
type RefundStatus = "inTransitToUser" | "succeeded";
|
|
191
|
-
type SessionTerminatedByType = "user" | "system" | "propertyAdmin" | "nodeArray";
|
|
191
|
+
type SessionTerminatedByType = "user" | "system" | "propertyAdmin" | "nodeArray" | "flow" | "apiKey";
|
|
192
192
|
type PermissionTypes = "UserManagement" | "PropertyManagement" | "PayoutManagement" | "InvoiceManagement" | "TarifManagement" | "SessionManagement" | "PaymentManagement" | "LocationManagement" | "LinkManagement" | "TermsManagement" | "LicenseManagement";
|
|
193
193
|
interface CustomClaims {
|
|
194
194
|
UserManagement: boolean;
|
|
@@ -795,6 +795,47 @@ interface BenefitCardListBlockInputs {
|
|
|
795
795
|
limit?: number;
|
|
796
796
|
skip?: number;
|
|
797
797
|
}
|
|
798
|
+
interface BenefitCardCopyBlock extends BaseBlock {
|
|
799
|
+
type: "benefitCard.copy";
|
|
800
|
+
in: {
|
|
801
|
+
benefitCardId: DataEdgeConnection;
|
|
802
|
+
};
|
|
803
|
+
out: {
|
|
804
|
+
benefitCard: DataEdgeConnection;
|
|
805
|
+
};
|
|
806
|
+
data: {
|
|
807
|
+
benefitCardId?: string;
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
interface BenefitCardCopyBlockInputs {
|
|
811
|
+
benefitCardId: string;
|
|
812
|
+
}
|
|
813
|
+
interface BenefitCardUpdateBlock extends BaseBlock {
|
|
814
|
+
type: "benefitCard.update";
|
|
815
|
+
in: {
|
|
816
|
+
benefitCardId: DataEdgeConnection;
|
|
817
|
+
name: DataEdgeConnection;
|
|
818
|
+
userId: DataEdgeConnection;
|
|
819
|
+
reference: DataEdgeConnection;
|
|
820
|
+
};
|
|
821
|
+
out: {
|
|
822
|
+
beforeBenefitCard: DataEdgeConnection;
|
|
823
|
+
afterBenefitCard: DataEdgeConnection;
|
|
824
|
+
changedFields: DataEdgeConnection;
|
|
825
|
+
};
|
|
826
|
+
data: {
|
|
827
|
+
benefitCardId?: string;
|
|
828
|
+
name?: LocaleString;
|
|
829
|
+
userId?: string | null;
|
|
830
|
+
reference?: string | null;
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
interface BenefitCardUpdateBlockInputs {
|
|
834
|
+
benefitCardId: string;
|
|
835
|
+
name?: LocaleString;
|
|
836
|
+
userId?: string | null;
|
|
837
|
+
reference?: string | null;
|
|
838
|
+
}
|
|
798
839
|
interface ParameterUpdateBlock extends BaseBlock {
|
|
799
840
|
type: "parameter.update";
|
|
800
841
|
in: {
|
|
@@ -1370,8 +1411,8 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
1370
1411
|
outputParamDefinitionArray: ParamDefinition[];
|
|
1371
1412
|
};
|
|
1372
1413
|
}
|
|
1373
|
-
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | MapConstructBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | UserCreateBlock | IncidentRetrieveBlock | BenefitCardRetrieveBlock | BenefitCardListBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | SystemLogBlock | UiNavigateScreenBlock | IncidentCreateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | VariableSetBlock | VariableGetBlock | EndCustomBlock;
|
|
1374
|
-
type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | UserCreateBlockInputs | IncidentRetrieveBlockInputs | BenefitCardRetrieveBlockInputs | BenefitCardListBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | SystemLogBlockInputs | UiNavigateScreenBlockInputs | IncidentCreateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | MapConstructBlockInputs | VariableSetBlockInputs | VariableGetBlockInputs | Record<string, unknown>;
|
|
1414
|
+
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | MapConstructBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | UserCreateBlock | IncidentRetrieveBlock | BenefitCardRetrieveBlock | BenefitCardListBlock | BenefitCardCopyBlock | BenefitCardUpdateBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | SystemLogBlock | UiNavigateScreenBlock | IncidentCreateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | VariableSetBlock | VariableGetBlock | EndCustomBlock;
|
|
1415
|
+
type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | UserCreateBlockInputs | IncidentRetrieveBlockInputs | BenefitCardRetrieveBlockInputs | BenefitCardListBlockInputs | BenefitCardCopyBlockInputs | BenefitCardUpdateBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | SystemLogBlockInputs | UiNavigateScreenBlockInputs | IncidentCreateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | MapConstructBlockInputs | VariableSetBlockInputs | VariableGetBlockInputs | Record<string, unknown>;
|
|
1375
1416
|
interface FlowDataEdge {
|
|
1376
1417
|
id: string;
|
|
1377
1418
|
type: "data";
|
|
@@ -6610,4 +6651,4 @@ declare namespace JUHUU {
|
|
|
6610
6651
|
}
|
|
6611
6652
|
}
|
|
6612
6653
|
|
|
6613
|
-
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BenefitCardListBlock, type BenefitCardListBlockInputs, type BenefitCardRetrieveBlock, type BenefitCardRetrieveBlockInputs, type BlockExecutor, 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 FlowExecuteBlock, type FlowExecuteBlockInputs, 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, type IncidentCreateBlock, type IncidentCreateBlockInputs, type IncidentRetrieveBlock, type IncidentRetrieveBlockInputs, JUHUU, type JsonLogic, Juhuu, type KitStatus, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapConstructBlock, type MapConstructBlockInputs, 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, Offer, type OfferTime, type PanelDisplay, 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 ProximityStrategy, type Purpose, type PushToken, type QuickAction, type QuickView, 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 SwitchBlock, type SystemLogBlock, type SystemLogBlockInputs, type TarifType, type TaxCode, type TimeZone, type UiNavigateScreenBlock, type UiNavigateScreenBlockInputs, type Unit, type UserCreateBlock, type UserCreateBlockInputs, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VariableGetBlock, type VariableGetBlockInputs, type VariableSetBlock, type VariableSetBlockInputs, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
|
6654
|
+
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BenefitCardCopyBlock, type BenefitCardCopyBlockInputs, type BenefitCardListBlock, type BenefitCardListBlockInputs, type BenefitCardRetrieveBlock, type BenefitCardRetrieveBlockInputs, type BenefitCardUpdateBlock, type BenefitCardUpdateBlockInputs, type BlockExecutor, 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 FlowExecuteBlock, type FlowExecuteBlockInputs, 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, type IncidentCreateBlock, type IncidentCreateBlockInputs, type IncidentRetrieveBlock, type IncidentRetrieveBlockInputs, JUHUU, type JsonLogic, Juhuu, type KitStatus, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapConstructBlock, type MapConstructBlockInputs, 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, Offer, type OfferTime, type PanelDisplay, 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 ProximityStrategy, type Purpose, type PushToken, type QuickAction, type QuickView, 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 SwitchBlock, type SystemLogBlock, type SystemLogBlockInputs, type TarifType, type TaxCode, type TimeZone, type UiNavigateScreenBlock, type UiNavigateScreenBlockInputs, type Unit, type UserCreateBlock, type UserCreateBlockInputs, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VariableGetBlock, type VariableGetBlockInputs, type VariableSetBlock, type VariableSetBlockInputs, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.d.ts
CHANGED
|
@@ -188,7 +188,7 @@ type PaymentRefundReason = "requestedByUser" | "expiredUncapturedCharge" | "frau
|
|
|
188
188
|
type SessionStatus = "waitingForPayment" | "ready" | "completed";
|
|
189
189
|
type AutoRenewMode = "off" | "optIn" | "optOut" | "on";
|
|
190
190
|
type RefundStatus = "inTransitToUser" | "succeeded";
|
|
191
|
-
type SessionTerminatedByType = "user" | "system" | "propertyAdmin" | "nodeArray";
|
|
191
|
+
type SessionTerminatedByType = "user" | "system" | "propertyAdmin" | "nodeArray" | "flow" | "apiKey";
|
|
192
192
|
type PermissionTypes = "UserManagement" | "PropertyManagement" | "PayoutManagement" | "InvoiceManagement" | "TarifManagement" | "SessionManagement" | "PaymentManagement" | "LocationManagement" | "LinkManagement" | "TermsManagement" | "LicenseManagement";
|
|
193
193
|
interface CustomClaims {
|
|
194
194
|
UserManagement: boolean;
|
|
@@ -795,6 +795,47 @@ interface BenefitCardListBlockInputs {
|
|
|
795
795
|
limit?: number;
|
|
796
796
|
skip?: number;
|
|
797
797
|
}
|
|
798
|
+
interface BenefitCardCopyBlock extends BaseBlock {
|
|
799
|
+
type: "benefitCard.copy";
|
|
800
|
+
in: {
|
|
801
|
+
benefitCardId: DataEdgeConnection;
|
|
802
|
+
};
|
|
803
|
+
out: {
|
|
804
|
+
benefitCard: DataEdgeConnection;
|
|
805
|
+
};
|
|
806
|
+
data: {
|
|
807
|
+
benefitCardId?: string;
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
interface BenefitCardCopyBlockInputs {
|
|
811
|
+
benefitCardId: string;
|
|
812
|
+
}
|
|
813
|
+
interface BenefitCardUpdateBlock extends BaseBlock {
|
|
814
|
+
type: "benefitCard.update";
|
|
815
|
+
in: {
|
|
816
|
+
benefitCardId: DataEdgeConnection;
|
|
817
|
+
name: DataEdgeConnection;
|
|
818
|
+
userId: DataEdgeConnection;
|
|
819
|
+
reference: DataEdgeConnection;
|
|
820
|
+
};
|
|
821
|
+
out: {
|
|
822
|
+
beforeBenefitCard: DataEdgeConnection;
|
|
823
|
+
afterBenefitCard: DataEdgeConnection;
|
|
824
|
+
changedFields: DataEdgeConnection;
|
|
825
|
+
};
|
|
826
|
+
data: {
|
|
827
|
+
benefitCardId?: string;
|
|
828
|
+
name?: LocaleString;
|
|
829
|
+
userId?: string | null;
|
|
830
|
+
reference?: string | null;
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
interface BenefitCardUpdateBlockInputs {
|
|
834
|
+
benefitCardId: string;
|
|
835
|
+
name?: LocaleString;
|
|
836
|
+
userId?: string | null;
|
|
837
|
+
reference?: string | null;
|
|
838
|
+
}
|
|
798
839
|
interface ParameterUpdateBlock extends BaseBlock {
|
|
799
840
|
type: "parameter.update";
|
|
800
841
|
in: {
|
|
@@ -1370,8 +1411,8 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
1370
1411
|
outputParamDefinitionArray: ParamDefinition[];
|
|
1371
1412
|
};
|
|
1372
1413
|
}
|
|
1373
|
-
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | MapConstructBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | UserCreateBlock | IncidentRetrieveBlock | BenefitCardRetrieveBlock | BenefitCardListBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | SystemLogBlock | UiNavigateScreenBlock | IncidentCreateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | VariableSetBlock | VariableGetBlock | EndCustomBlock;
|
|
1374
|
-
type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | UserCreateBlockInputs | IncidentRetrieveBlockInputs | BenefitCardRetrieveBlockInputs | BenefitCardListBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | SystemLogBlockInputs | UiNavigateScreenBlockInputs | IncidentCreateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | MapConstructBlockInputs | VariableSetBlockInputs | VariableGetBlockInputs | Record<string, unknown>;
|
|
1414
|
+
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | MapConstructBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | UserCreateBlock | IncidentRetrieveBlock | BenefitCardRetrieveBlock | BenefitCardListBlock | BenefitCardCopyBlock | BenefitCardUpdateBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | SystemLogBlock | UiNavigateScreenBlock | IncidentCreateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | VariableSetBlock | VariableGetBlock | EndCustomBlock;
|
|
1415
|
+
type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | UserCreateBlockInputs | IncidentRetrieveBlockInputs | BenefitCardRetrieveBlockInputs | BenefitCardListBlockInputs | BenefitCardCopyBlockInputs | BenefitCardUpdateBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | SystemLogBlockInputs | UiNavigateScreenBlockInputs | IncidentCreateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | MapConstructBlockInputs | VariableSetBlockInputs | VariableGetBlockInputs | Record<string, unknown>;
|
|
1375
1416
|
interface FlowDataEdge {
|
|
1376
1417
|
id: string;
|
|
1377
1418
|
type: "data";
|
|
@@ -6610,4 +6651,4 @@ declare namespace JUHUU {
|
|
|
6610
6651
|
}
|
|
6611
6652
|
}
|
|
6612
6653
|
|
|
6613
|
-
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BenefitCardListBlock, type BenefitCardListBlockInputs, type BenefitCardRetrieveBlock, type BenefitCardRetrieveBlockInputs, type BlockExecutor, 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 FlowExecuteBlock, type FlowExecuteBlockInputs, 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, type IncidentCreateBlock, type IncidentCreateBlockInputs, type IncidentRetrieveBlock, type IncidentRetrieveBlockInputs, JUHUU, type JsonLogic, Juhuu, type KitStatus, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapConstructBlock, type MapConstructBlockInputs, 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, Offer, type OfferTime, type PanelDisplay, 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 ProximityStrategy, type Purpose, type PushToken, type QuickAction, type QuickView, 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 SwitchBlock, type SystemLogBlock, type SystemLogBlockInputs, type TarifType, type TaxCode, type TimeZone, type UiNavigateScreenBlock, type UiNavigateScreenBlockInputs, type Unit, type UserCreateBlock, type UserCreateBlockInputs, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VariableGetBlock, type VariableGetBlockInputs, type VariableSetBlock, type VariableSetBlockInputs, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
|
6654
|
+
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BenefitCardCopyBlock, type BenefitCardCopyBlockInputs, type BenefitCardListBlock, type BenefitCardListBlockInputs, type BenefitCardRetrieveBlock, type BenefitCardRetrieveBlockInputs, type BenefitCardUpdateBlock, type BenefitCardUpdateBlockInputs, type BlockExecutor, 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 FlowExecuteBlock, type FlowExecuteBlockInputs, 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, type IncidentCreateBlock, type IncidentCreateBlockInputs, type IncidentRetrieveBlock, type IncidentRetrieveBlockInputs, JUHUU, type JsonLogic, Juhuu, type KitStatus, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapConstructBlock, type MapConstructBlockInputs, 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, Offer, type OfferTime, type PanelDisplay, 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 ProximityStrategy, type Purpose, type PushToken, type QuickAction, type QuickView, 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 SwitchBlock, type SystemLogBlock, type SystemLogBlockInputs, type TarifType, type TaxCode, type TimeZone, type UiNavigateScreenBlock, type UiNavigateScreenBlockInputs, type Unit, type UserCreateBlock, type UserCreateBlockInputs, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VariableGetBlock, type VariableGetBlockInputs, type VariableSetBlock, type VariableSetBlockInputs, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.js
CHANGED
|
@@ -3902,7 +3902,27 @@ var FlowsService = class extends Service {
|
|
|
3902
3902
|
if (!context.variables) {
|
|
3903
3903
|
context.variables = /* @__PURE__ */ new Map();
|
|
3904
3904
|
}
|
|
3905
|
-
|
|
3905
|
+
if (finalKey.includes(".")) {
|
|
3906
|
+
const keys = finalKey.split(".");
|
|
3907
|
+
const rootKey = keys[0];
|
|
3908
|
+
let rootValue = context.variables.get(rootKey);
|
|
3909
|
+
if (rootValue === void 0 || rootValue === null) {
|
|
3910
|
+
rootValue = {};
|
|
3911
|
+
context.variables.set(rootKey, rootValue);
|
|
3912
|
+
}
|
|
3913
|
+
const finalPropertyKey = keys[keys.length - 1];
|
|
3914
|
+
const parentKeys = keys.slice(1, -1);
|
|
3915
|
+
let current = rootValue;
|
|
3916
|
+
for (const key2 of parentKeys) {
|
|
3917
|
+
if (current[key2] === void 0 || current[key2] === null) {
|
|
3918
|
+
current[key2] = {};
|
|
3919
|
+
}
|
|
3920
|
+
current = current[key2];
|
|
3921
|
+
}
|
|
3922
|
+
current[finalPropertyKey] = finalValue;
|
|
3923
|
+
} else {
|
|
3924
|
+
context.variables.set(finalKey, finalValue);
|
|
3925
|
+
}
|
|
3906
3926
|
return { output: { success: true } };
|
|
3907
3927
|
},
|
|
3908
3928
|
"variable.get": async (inputs, block, context) => {
|
|
@@ -3915,7 +3935,21 @@ var FlowsService = class extends Service {
|
|
|
3915
3935
|
if (!context.variables) {
|
|
3916
3936
|
context.variables = /* @__PURE__ */ new Map();
|
|
3917
3937
|
}
|
|
3918
|
-
|
|
3938
|
+
let retrievedValue;
|
|
3939
|
+
if (finalKey.includes(".")) {
|
|
3940
|
+
const keys = finalKey.split(".");
|
|
3941
|
+
const rootKey = keys[0];
|
|
3942
|
+
const rootValue = context.variables.get(rootKey);
|
|
3943
|
+
if (rootValue !== void 0 && rootValue !== null) {
|
|
3944
|
+
retrievedValue = keys.slice(1).reduce((obj, key2) => {
|
|
3945
|
+
return obj && obj[key2];
|
|
3946
|
+
}, rootValue);
|
|
3947
|
+
} else {
|
|
3948
|
+
retrievedValue = void 0;
|
|
3949
|
+
}
|
|
3950
|
+
} else {
|
|
3951
|
+
retrievedValue = context.variables.get(finalKey);
|
|
3952
|
+
}
|
|
3919
3953
|
return { output: { value: retrievedValue } };
|
|
3920
3954
|
}
|
|
3921
3955
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -3858,7 +3858,27 @@ var FlowsService = class extends Service {
|
|
|
3858
3858
|
if (!context.variables) {
|
|
3859
3859
|
context.variables = /* @__PURE__ */ new Map();
|
|
3860
3860
|
}
|
|
3861
|
-
|
|
3861
|
+
if (finalKey.includes(".")) {
|
|
3862
|
+
const keys = finalKey.split(".");
|
|
3863
|
+
const rootKey = keys[0];
|
|
3864
|
+
let rootValue = context.variables.get(rootKey);
|
|
3865
|
+
if (rootValue === void 0 || rootValue === null) {
|
|
3866
|
+
rootValue = {};
|
|
3867
|
+
context.variables.set(rootKey, rootValue);
|
|
3868
|
+
}
|
|
3869
|
+
const finalPropertyKey = keys[keys.length - 1];
|
|
3870
|
+
const parentKeys = keys.slice(1, -1);
|
|
3871
|
+
let current = rootValue;
|
|
3872
|
+
for (const key2 of parentKeys) {
|
|
3873
|
+
if (current[key2] === void 0 || current[key2] === null) {
|
|
3874
|
+
current[key2] = {};
|
|
3875
|
+
}
|
|
3876
|
+
current = current[key2];
|
|
3877
|
+
}
|
|
3878
|
+
current[finalPropertyKey] = finalValue;
|
|
3879
|
+
} else {
|
|
3880
|
+
context.variables.set(finalKey, finalValue);
|
|
3881
|
+
}
|
|
3862
3882
|
return { output: { success: true } };
|
|
3863
3883
|
},
|
|
3864
3884
|
"variable.get": async (inputs, block, context) => {
|
|
@@ -3871,7 +3891,21 @@ var FlowsService = class extends Service {
|
|
|
3871
3891
|
if (!context.variables) {
|
|
3872
3892
|
context.variables = /* @__PURE__ */ new Map();
|
|
3873
3893
|
}
|
|
3874
|
-
|
|
3894
|
+
let retrievedValue;
|
|
3895
|
+
if (finalKey.includes(".")) {
|
|
3896
|
+
const keys = finalKey.split(".");
|
|
3897
|
+
const rootKey = keys[0];
|
|
3898
|
+
const rootValue = context.variables.get(rootKey);
|
|
3899
|
+
if (rootValue !== void 0 && rootValue !== null) {
|
|
3900
|
+
retrievedValue = keys.slice(1).reduce((obj, key2) => {
|
|
3901
|
+
return obj && obj[key2];
|
|
3902
|
+
}, rootValue);
|
|
3903
|
+
} else {
|
|
3904
|
+
retrievedValue = void 0;
|
|
3905
|
+
}
|
|
3906
|
+
} else {
|
|
3907
|
+
retrievedValue = context.variables.get(finalKey);
|
|
3908
|
+
}
|
|
3875
3909
|
return { output: { value: retrievedValue } };
|
|
3876
3910
|
}
|
|
3877
3911
|
};
|