@juhuu/sdk-ts 1.2.279 → 1.2.281

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 CHANGED
@@ -342,7 +342,7 @@ declare namespace Layout {
342
342
  }
343
343
  export interface General extends FormBlock {
344
344
  type: "form";
345
- columnArray: Array<Column.One>;
345
+ columnArray: Array<AnyColumn>;
346
346
  }
347
347
  export type AnyColumn = Column.One | Column.Two;
348
348
  export namespace Column {
@@ -1251,6 +1251,39 @@ interface FlowExecuteBlockInputs {
1251
1251
  flowId: string;
1252
1252
  [key: string]: any;
1253
1253
  }
1254
+ interface VariableSetBlock extends BaseBlock {
1255
+ type: "variable.set";
1256
+ in: {
1257
+ key: DataEdgeConnection;
1258
+ value: DataEdgeConnection;
1259
+ };
1260
+ out: {
1261
+ success: DataEdgeConnection;
1262
+ };
1263
+ data: {
1264
+ key?: string;
1265
+ value?: any;
1266
+ };
1267
+ }
1268
+ interface VariableSetBlockInputs {
1269
+ key: string;
1270
+ value: any;
1271
+ }
1272
+ interface VariableGetBlock extends BaseBlock {
1273
+ type: "variable.get";
1274
+ in: {
1275
+ key: DataEdgeConnection;
1276
+ };
1277
+ out: {
1278
+ value: DataEdgeConnection;
1279
+ };
1280
+ data: {
1281
+ key?: string;
1282
+ };
1283
+ }
1284
+ interface VariableGetBlockInputs {
1285
+ key: string;
1286
+ }
1254
1287
  interface EndCustomBlock extends BaseBlock {
1255
1288
  type: "end.custom";
1256
1289
  in: Record<string, DataEdgeConnection>;
@@ -1259,8 +1292,8 @@ interface EndCustomBlock extends BaseBlock {
1259
1292
  outputParamDefinitionArray: ParamDefinition[];
1260
1293
  };
1261
1294
  }
1262
- type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | UserCreateBlock | IncidentRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | SystemLogBlock | UiNavigateScreenBlock | IncidentCreateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | HttpPatchBlock | EndCustomBlock;
1263
- type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | UserCreateBlockInputs | IncidentRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | SystemLogBlockInputs | UiNavigateScreenBlockInputs | IncidentCreateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
1295
+ type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | UserCreateBlock | IncidentRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | SystemLogBlock | UiNavigateScreenBlock | IncidentCreateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | HttpPatchBlock | VariableSetBlock | VariableGetBlock | EndCustomBlock;
1296
+ type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | UserCreateBlockInputs | IncidentRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | SystemLogBlockInputs | UiNavigateScreenBlockInputs | IncidentCreateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | VariableSetBlockInputs | VariableGetBlockInputs | Record<string, unknown>;
1264
1297
  interface FlowDataEdge {
1265
1298
  id: string;
1266
1299
  type: "data";
@@ -1316,12 +1349,6 @@ type QuickView = {
1316
1349
  icon: string | null;
1317
1350
  visibleCondition: Condition | null;
1318
1351
  };
1319
- type LocalParameter = {
1320
- id: string;
1321
- name: string;
1322
- value: any;
1323
- type: string;
1324
- };
1325
1352
  type PanelDisplay = "modal" | "dialog" | "screen";
1326
1353
 
1327
1354
  declare class Service {
@@ -6259,7 +6286,7 @@ declare namespace JUHUU {
6259
6286
  propertyId: string;
6260
6287
  layoutBlockArray: LayoutBlock[];
6261
6288
  highlightLayoutBlockArray: LayoutBlock[];
6262
- localParameterArray: LocalParameter[];
6289
+ variables: Record<string, any>;
6263
6290
  display: PanelDisplay;
6264
6291
  };
6265
6292
  namespace Create {
@@ -6268,7 +6295,7 @@ declare namespace JUHUU {
6268
6295
  name?: string;
6269
6296
  layoutBlockArray?: LayoutBlock[];
6270
6297
  highlightLayoutBlockArray?: LayoutBlock[];
6271
- localParameterArray?: LocalParameter[];
6298
+ variables?: Record<string, any>;
6272
6299
  display?: PanelDisplay;
6273
6300
  };
6274
6301
  type Options = JUHUU.RequestOptions;
@@ -6306,7 +6333,7 @@ declare namespace JUHUU {
6306
6333
  name?: string;
6307
6334
  layoutBlockArray?: LayoutBlock[];
6308
6335
  highlightLayoutBlockArray?: LayoutBlock[];
6309
- localParameterArray?: LocalParameter[];
6336
+ variables?: Record<string, any>;
6310
6337
  display?: PanelDisplay;
6311
6338
  };
6312
6339
  type Options = JUHUU.RequestOptions;
@@ -6518,4 +6545,4 @@ declare namespace JUHUU {
6518
6545
  }
6519
6546
  }
6520
6547
 
6521
- export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, 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 LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocalParameter, 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, 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 VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
6548
+ export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, 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 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, 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
@@ -342,7 +342,7 @@ declare namespace Layout {
342
342
  }
343
343
  export interface General extends FormBlock {
344
344
  type: "form";
345
- columnArray: Array<Column.One>;
345
+ columnArray: Array<AnyColumn>;
346
346
  }
347
347
  export type AnyColumn = Column.One | Column.Two;
348
348
  export namespace Column {
@@ -1251,6 +1251,39 @@ interface FlowExecuteBlockInputs {
1251
1251
  flowId: string;
1252
1252
  [key: string]: any;
1253
1253
  }
1254
+ interface VariableSetBlock extends BaseBlock {
1255
+ type: "variable.set";
1256
+ in: {
1257
+ key: DataEdgeConnection;
1258
+ value: DataEdgeConnection;
1259
+ };
1260
+ out: {
1261
+ success: DataEdgeConnection;
1262
+ };
1263
+ data: {
1264
+ key?: string;
1265
+ value?: any;
1266
+ };
1267
+ }
1268
+ interface VariableSetBlockInputs {
1269
+ key: string;
1270
+ value: any;
1271
+ }
1272
+ interface VariableGetBlock extends BaseBlock {
1273
+ type: "variable.get";
1274
+ in: {
1275
+ key: DataEdgeConnection;
1276
+ };
1277
+ out: {
1278
+ value: DataEdgeConnection;
1279
+ };
1280
+ data: {
1281
+ key?: string;
1282
+ };
1283
+ }
1284
+ interface VariableGetBlockInputs {
1285
+ key: string;
1286
+ }
1254
1287
  interface EndCustomBlock extends BaseBlock {
1255
1288
  type: "end.custom";
1256
1289
  in: Record<string, DataEdgeConnection>;
@@ -1259,8 +1292,8 @@ interface EndCustomBlock extends BaseBlock {
1259
1292
  outputParamDefinitionArray: ParamDefinition[];
1260
1293
  };
1261
1294
  }
1262
- type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | UserCreateBlock | IncidentRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | SystemLogBlock | UiNavigateScreenBlock | IncidentCreateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | HttpPatchBlock | EndCustomBlock;
1263
- type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | UserCreateBlockInputs | IncidentRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | SystemLogBlockInputs | UiNavigateScreenBlockInputs | IncidentCreateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | Record<string, unknown>;
1295
+ type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | ParameterRetrieveBlock | PropertyRetrieveBlock | LocationRetrieveBlock | SessionRetrieveBlock | DeviceRetrieveBlock | UserRetrieveBlock | UserCreateBlock | IncidentRetrieveBlock | ParameterUpdateBlock | DeviceUpdateBlock | LocationUpdateBlock | PropertyUpdateBlock | SessionTerminateBlock | SystemLogBlock | UiNavigateScreenBlock | IncidentCreateBlock | IfBlock | SwitchBlock | HttpPatchBlock | HttpGetBlock | HttpPostBlock | HttpDeleteBlock | HttpPutBlock | MqttSendBlock | FlowExecuteBlock | HttpPatchBlock | VariableSetBlock | VariableGetBlock | EndCustomBlock;
1296
+ type FlowBlockInput = MathAddBlockInputs | MathSubtractBlockInputs | MathMultiplyBlockInputs | MathDivideBlockInputs | ParameterRetrieveBlockInputs | PropertyRetrieveBlockInputs | LocationRetrieveBlockInputs | SessionRetrieveBlockInputs | DeviceRetrieveBlockInputs | UserRetrieveBlockInputs | UserCreateBlockInputs | IncidentRetrieveBlockInputs | ParameterUpdateBlockInputs | DeviceUpdateBlockInputs | LocationUpdateBlockInputs | PropertyUpdateBlockInputs | SessionTerminateBlockInputs | SystemLogBlockInputs | UiNavigateScreenBlockInputs | IncidentCreateBlockInputs | HttpsPatchBlockInputs | HttpGetBlockInputs | HttpPostBlockInputs | HttpDeleteBlockInputs | HttpPutBlockInputs | MqttSendBlockInputs | FlowExecuteBlockInputs | MapDestructureBlockInputs | VariableSetBlockInputs | VariableGetBlockInputs | Record<string, unknown>;
1264
1297
  interface FlowDataEdge {
1265
1298
  id: string;
1266
1299
  type: "data";
@@ -1316,12 +1349,6 @@ type QuickView = {
1316
1349
  icon: string | null;
1317
1350
  visibleCondition: Condition | null;
1318
1351
  };
1319
- type LocalParameter = {
1320
- id: string;
1321
- name: string;
1322
- value: any;
1323
- type: string;
1324
- };
1325
1352
  type PanelDisplay = "modal" | "dialog" | "screen";
1326
1353
 
1327
1354
  declare class Service {
@@ -6259,7 +6286,7 @@ declare namespace JUHUU {
6259
6286
  propertyId: string;
6260
6287
  layoutBlockArray: LayoutBlock[];
6261
6288
  highlightLayoutBlockArray: LayoutBlock[];
6262
- localParameterArray: LocalParameter[];
6289
+ variables: Record<string, any>;
6263
6290
  display: PanelDisplay;
6264
6291
  };
6265
6292
  namespace Create {
@@ -6268,7 +6295,7 @@ declare namespace JUHUU {
6268
6295
  name?: string;
6269
6296
  layoutBlockArray?: LayoutBlock[];
6270
6297
  highlightLayoutBlockArray?: LayoutBlock[];
6271
- localParameterArray?: LocalParameter[];
6298
+ variables?: Record<string, any>;
6272
6299
  display?: PanelDisplay;
6273
6300
  };
6274
6301
  type Options = JUHUU.RequestOptions;
@@ -6306,7 +6333,7 @@ declare namespace JUHUU {
6306
6333
  name?: string;
6307
6334
  layoutBlockArray?: LayoutBlock[];
6308
6335
  highlightLayoutBlockArray?: LayoutBlock[];
6309
- localParameterArray?: LocalParameter[];
6336
+ variables?: Record<string, any>;
6310
6337
  display?: PanelDisplay;
6311
6338
  };
6312
6339
  type Options = JUHUU.RequestOptions;
@@ -6518,4 +6545,4 @@ declare namespace JUHUU {
6518
6545
  }
6519
6546
  }
6520
6547
 
6521
- export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, 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 LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocalParameter, 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, 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 VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
6548
+ export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, 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 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, 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
@@ -3796,6 +3796,33 @@ var FlowsService = class extends Service {
3796
3796
  "const.boolean": async (_inputs, block) => {
3797
3797
  const { data } = block;
3798
3798
  return { output: { value: data?.value } };
3799
+ },
3800
+ "variable.set": async (inputs, block, context) => {
3801
+ const { key, value } = inputs;
3802
+ const typedBlock = block;
3803
+ const finalKey = this.isInputConnected(typedBlock, "key") ? key : typedBlock.data?.key;
3804
+ const finalValue = this.isInputConnected(typedBlock, "value") ? value : typedBlock.data?.value;
3805
+ if (finalKey === void 0 || finalKey === null) {
3806
+ throw new Error("Variable key is required");
3807
+ }
3808
+ if (!context.variables) {
3809
+ context.variables = /* @__PURE__ */ new Map();
3810
+ }
3811
+ context.variables.set(finalKey, finalValue);
3812
+ return { output: { success: true } };
3813
+ },
3814
+ "variable.get": async (inputs, block, context) => {
3815
+ const { key } = inputs;
3816
+ const typedBlock = block;
3817
+ const finalKey = this.isInputConnected(typedBlock, "key") ? key : typedBlock.data?.key;
3818
+ if (finalKey === void 0 || finalKey === null) {
3819
+ throw new Error("Variable key is required");
3820
+ }
3821
+ if (!context.variables) {
3822
+ context.variables = /* @__PURE__ */ new Map();
3823
+ }
3824
+ const retrievedValue = context.variables.get(finalKey);
3825
+ return { output: { value: retrievedValue } };
3799
3826
  }
3800
3827
  };
3801
3828
  async executeLocally(FlowExecuteLocallyParams, FlowExecuteLocallyOptions) {
@@ -5020,7 +5047,7 @@ var PanelsService = class extends Service {
5020
5047
  name: params.name,
5021
5048
  layoutBlockArray: params.layoutBlockArray,
5022
5049
  highlightLayoutBlockArray: params.highlightLayoutBlockArray,
5023
- localParameterArray: params.localParameterArray
5050
+ variables: params.variables
5024
5051
  },
5025
5052
  authenticationNotOptional: true
5026
5053
  },
@@ -5072,7 +5099,7 @@ var PanelsService = class extends Service {
5072
5099
  name: params.name,
5073
5100
  layoutBlockArray: params.layoutBlockArray,
5074
5101
  highlightLayoutBlockArray: params.highlightLayoutBlockArray,
5075
- localParameterArray: params.localParameterArray,
5102
+ variables: params.variables,
5076
5103
  display: params.display
5077
5104
  },
5078
5105
  authenticationNotOptional: true
package/dist/index.mjs CHANGED
@@ -3752,6 +3752,33 @@ var FlowsService = class extends Service {
3752
3752
  "const.boolean": async (_inputs, block) => {
3753
3753
  const { data } = block;
3754
3754
  return { output: { value: data?.value } };
3755
+ },
3756
+ "variable.set": async (inputs, block, context) => {
3757
+ const { key, value } = inputs;
3758
+ const typedBlock = block;
3759
+ const finalKey = this.isInputConnected(typedBlock, "key") ? key : typedBlock.data?.key;
3760
+ const finalValue = this.isInputConnected(typedBlock, "value") ? value : typedBlock.data?.value;
3761
+ if (finalKey === void 0 || finalKey === null) {
3762
+ throw new Error("Variable key is required");
3763
+ }
3764
+ if (!context.variables) {
3765
+ context.variables = /* @__PURE__ */ new Map();
3766
+ }
3767
+ context.variables.set(finalKey, finalValue);
3768
+ return { output: { success: true } };
3769
+ },
3770
+ "variable.get": async (inputs, block, context) => {
3771
+ const { key } = inputs;
3772
+ const typedBlock = block;
3773
+ const finalKey = this.isInputConnected(typedBlock, "key") ? key : typedBlock.data?.key;
3774
+ if (finalKey === void 0 || finalKey === null) {
3775
+ throw new Error("Variable key is required");
3776
+ }
3777
+ if (!context.variables) {
3778
+ context.variables = /* @__PURE__ */ new Map();
3779
+ }
3780
+ const retrievedValue = context.variables.get(finalKey);
3781
+ return { output: { value: retrievedValue } };
3755
3782
  }
3756
3783
  };
3757
3784
  async executeLocally(FlowExecuteLocallyParams, FlowExecuteLocallyOptions) {
@@ -4976,7 +5003,7 @@ var PanelsService = class extends Service {
4976
5003
  name: params.name,
4977
5004
  layoutBlockArray: params.layoutBlockArray,
4978
5005
  highlightLayoutBlockArray: params.highlightLayoutBlockArray,
4979
- localParameterArray: params.localParameterArray
5006
+ variables: params.variables
4980
5007
  },
4981
5008
  authenticationNotOptional: true
4982
5009
  },
@@ -5028,7 +5055,7 @@ var PanelsService = class extends Service {
5028
5055
  name: params.name,
5029
5056
  layoutBlockArray: params.layoutBlockArray,
5030
5057
  highlightLayoutBlockArray: params.highlightLayoutBlockArray,
5031
- localParameterArray: params.localParameterArray,
5058
+ variables: params.variables,
5032
5059
  display: params.display
5033
5060
  },
5034
5061
  authenticationNotOptional: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.279",
3
+ "version": "1.2.281",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",