@juhuu/sdk-ts 1.2.284 → 1.2.286
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 +36 -4
- package/dist/index.d.ts +36 -4
- package/dist/index.js +83 -4
- package/dist/index.mjs +83 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -583,6 +583,7 @@ interface StartSessionUpdateBlock extends BaseBlock {
|
|
|
583
583
|
out: {
|
|
584
584
|
before: DataEdgeConnection;
|
|
585
585
|
after: DataEdgeConnection;
|
|
586
|
+
changedFields: DataEdgeConnection;
|
|
586
587
|
};
|
|
587
588
|
}
|
|
588
589
|
interface StartLocationUpdateBlock extends BaseBlock {
|
|
@@ -591,6 +592,7 @@ interface StartLocationUpdateBlock extends BaseBlock {
|
|
|
591
592
|
out: {
|
|
592
593
|
before: DataEdgeConnection;
|
|
593
594
|
after: DataEdgeConnection;
|
|
595
|
+
changedFields: DataEdgeConnection;
|
|
594
596
|
};
|
|
595
597
|
}
|
|
596
598
|
interface StartParameterUpdateBlock extends BaseBlock {
|
|
@@ -599,6 +601,7 @@ interface StartParameterUpdateBlock extends BaseBlock {
|
|
|
599
601
|
out: {
|
|
600
602
|
beforeParameter: DataEdgeConnection;
|
|
601
603
|
afterParameter: DataEdgeConnection;
|
|
604
|
+
changedFields: DataEdgeConnection;
|
|
602
605
|
};
|
|
603
606
|
}
|
|
604
607
|
interface ParameterRetrieveBlock extends BaseBlock {
|
|
@@ -1091,6 +1094,19 @@ interface MapDestructureBlockInputs {
|
|
|
1091
1094
|
map: Record<string, string | number | boolean>;
|
|
1092
1095
|
keys: string[];
|
|
1093
1096
|
}
|
|
1097
|
+
interface MapConstructBlock extends BaseBlock {
|
|
1098
|
+
type: "map.construct";
|
|
1099
|
+
data: {
|
|
1100
|
+
keys?: string[];
|
|
1101
|
+
};
|
|
1102
|
+
in: Record<string, DataEdgeConnection>;
|
|
1103
|
+
out: {
|
|
1104
|
+
map: DataEdgeConnection;
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
interface MapConstructBlockInputs {
|
|
1108
|
+
[key: string]: any;
|
|
1109
|
+
}
|
|
1094
1110
|
interface IfBlock extends BaseBlock {
|
|
1095
1111
|
type: "control.if";
|
|
1096
1112
|
in: Record<string, DataEdgeConnection>;
|
|
@@ -1292,8 +1308,8 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
1292
1308
|
outputParamDefinitionArray: ParamDefinition[];
|
|
1293
1309
|
};
|
|
1294
1310
|
}
|
|
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 |
|
|
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>;
|
|
1311
|
+
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | MapConstructBlock | 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 | VariableSetBlock | VariableGetBlock | EndCustomBlock;
|
|
1312
|
+
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 | MapConstructBlockInputs | VariableSetBlockInputs | VariableGetBlockInputs | Record<string, unknown>;
|
|
1297
1313
|
interface FlowDataEdge {
|
|
1298
1314
|
id: string;
|
|
1299
1315
|
type: "data";
|
|
@@ -4167,6 +4183,7 @@ declare namespace JUHUU {
|
|
|
4167
4183
|
proximityStrategyArray: ProximityStrategy[];
|
|
4168
4184
|
adminQuickViewArray: QuickView[];
|
|
4169
4185
|
simIdArray: string[];
|
|
4186
|
+
panelId: string | null;
|
|
4170
4187
|
};
|
|
4171
4188
|
namespace Create {
|
|
4172
4189
|
type Params = {
|
|
@@ -4174,6 +4191,7 @@ declare namespace JUHUU {
|
|
|
4174
4191
|
acceptTerms: boolean;
|
|
4175
4192
|
name?: string;
|
|
4176
4193
|
deviceTemplateId: string;
|
|
4194
|
+
panelId?: string;
|
|
4177
4195
|
};
|
|
4178
4196
|
type Options = JUHUU.RequestOptions;
|
|
4179
4197
|
type Response = {
|
|
@@ -4224,6 +4242,7 @@ declare namespace JUHUU {
|
|
|
4224
4242
|
simIdArray?: string[];
|
|
4225
4243
|
permissionArray?: DevicePermission[];
|
|
4226
4244
|
parameterIdArray?: string[];
|
|
4245
|
+
panelId?: string | null;
|
|
4227
4246
|
};
|
|
4228
4247
|
type Options = JUHUU.RequestOptions;
|
|
4229
4248
|
type Response = {
|
|
@@ -4335,7 +4354,11 @@ declare namespace JUHUU {
|
|
|
4335
4354
|
type: "parameterAnomalyGroup";
|
|
4336
4355
|
parameterAnomalyGroupId: string;
|
|
4337
4356
|
}
|
|
4338
|
-
export
|
|
4357
|
+
export interface Sim extends Base {
|
|
4358
|
+
type: "sim";
|
|
4359
|
+
simId: string;
|
|
4360
|
+
}
|
|
4361
|
+
export type Object = Location | Device | ParameterAnomalyGroup | Sim;
|
|
4339
4362
|
export namespace Create {
|
|
4340
4363
|
type Params = {
|
|
4341
4364
|
propertyId: string;
|
|
@@ -4343,6 +4366,8 @@ declare namespace JUHUU {
|
|
|
4343
4366
|
severity?: JUHUU.Incident.Object["severity"];
|
|
4344
4367
|
deviceId?: string;
|
|
4345
4368
|
locationId?: string;
|
|
4369
|
+
parameterAnomalyGroupId?: string;
|
|
4370
|
+
simId?: string;
|
|
4346
4371
|
incidentTemplateId?: string;
|
|
4347
4372
|
title?: JUHUU.Incident.Object["title"];
|
|
4348
4373
|
type: JUHUU.Incident.Object["type"];
|
|
@@ -5002,6 +5027,7 @@ declare namespace JUHUU {
|
|
|
5002
5027
|
dataQuotaThresholdPercentage: number | null;
|
|
5003
5028
|
providerUsername: string | null;
|
|
5004
5029
|
providerPassword: string | null;
|
|
5030
|
+
lastProviderUpdateAt: Date | null;
|
|
5005
5031
|
};
|
|
5006
5032
|
namespace Create {
|
|
5007
5033
|
type Params = {
|
|
@@ -6288,6 +6314,8 @@ declare namespace JUHUU {
|
|
|
6288
6314
|
highlightLayoutBlockArray: LayoutBlock[];
|
|
6289
6315
|
variables: Record<string, any>;
|
|
6290
6316
|
display: PanelDisplay;
|
|
6317
|
+
permissionArray: DevicePermission[];
|
|
6318
|
+
proximityStrategyArray: ProximityStrategy[];
|
|
6291
6319
|
};
|
|
6292
6320
|
namespace Create {
|
|
6293
6321
|
type Params = {
|
|
@@ -6297,6 +6325,8 @@ declare namespace JUHUU {
|
|
|
6297
6325
|
highlightLayoutBlockArray?: LayoutBlock[];
|
|
6298
6326
|
variables?: Record<string, any>;
|
|
6299
6327
|
display?: PanelDisplay;
|
|
6328
|
+
permissionArray?: DevicePermission[];
|
|
6329
|
+
proximityStrategyArray?: ProximityStrategy[];
|
|
6300
6330
|
};
|
|
6301
6331
|
type Options = JUHUU.RequestOptions;
|
|
6302
6332
|
type Response = {
|
|
@@ -6335,6 +6365,8 @@ declare namespace JUHUU {
|
|
|
6335
6365
|
highlightLayoutBlockArray?: LayoutBlock[];
|
|
6336
6366
|
variables?: Record<string, any>;
|
|
6337
6367
|
display?: PanelDisplay;
|
|
6368
|
+
permissionArray?: DevicePermission[];
|
|
6369
|
+
proximityStrategyArray?: ProximityStrategy[];
|
|
6338
6370
|
};
|
|
6339
6371
|
type Options = JUHUU.RequestOptions;
|
|
6340
6372
|
type Response = {
|
|
@@ -6567,4 +6599,4 @@ declare namespace JUHUU {
|
|
|
6567
6599
|
}
|
|
6568
6600
|
}
|
|
6569
6601
|
|
|
6570
|
-
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 };
|
|
6602
|
+
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 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
|
@@ -583,6 +583,7 @@ interface StartSessionUpdateBlock extends BaseBlock {
|
|
|
583
583
|
out: {
|
|
584
584
|
before: DataEdgeConnection;
|
|
585
585
|
after: DataEdgeConnection;
|
|
586
|
+
changedFields: DataEdgeConnection;
|
|
586
587
|
};
|
|
587
588
|
}
|
|
588
589
|
interface StartLocationUpdateBlock extends BaseBlock {
|
|
@@ -591,6 +592,7 @@ interface StartLocationUpdateBlock extends BaseBlock {
|
|
|
591
592
|
out: {
|
|
592
593
|
before: DataEdgeConnection;
|
|
593
594
|
after: DataEdgeConnection;
|
|
595
|
+
changedFields: DataEdgeConnection;
|
|
594
596
|
};
|
|
595
597
|
}
|
|
596
598
|
interface StartParameterUpdateBlock extends BaseBlock {
|
|
@@ -599,6 +601,7 @@ interface StartParameterUpdateBlock extends BaseBlock {
|
|
|
599
601
|
out: {
|
|
600
602
|
beforeParameter: DataEdgeConnection;
|
|
601
603
|
afterParameter: DataEdgeConnection;
|
|
604
|
+
changedFields: DataEdgeConnection;
|
|
602
605
|
};
|
|
603
606
|
}
|
|
604
607
|
interface ParameterRetrieveBlock extends BaseBlock {
|
|
@@ -1091,6 +1094,19 @@ interface MapDestructureBlockInputs {
|
|
|
1091
1094
|
map: Record<string, string | number | boolean>;
|
|
1092
1095
|
keys: string[];
|
|
1093
1096
|
}
|
|
1097
|
+
interface MapConstructBlock extends BaseBlock {
|
|
1098
|
+
type: "map.construct";
|
|
1099
|
+
data: {
|
|
1100
|
+
keys?: string[];
|
|
1101
|
+
};
|
|
1102
|
+
in: Record<string, DataEdgeConnection>;
|
|
1103
|
+
out: {
|
|
1104
|
+
map: DataEdgeConnection;
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
interface MapConstructBlockInputs {
|
|
1108
|
+
[key: string]: any;
|
|
1109
|
+
}
|
|
1094
1110
|
interface IfBlock extends BaseBlock {
|
|
1095
1111
|
type: "control.if";
|
|
1096
1112
|
in: Record<string, DataEdgeConnection>;
|
|
@@ -1292,8 +1308,8 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
1292
1308
|
outputParamDefinitionArray: ParamDefinition[];
|
|
1293
1309
|
};
|
|
1294
1310
|
}
|
|
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 |
|
|
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>;
|
|
1311
|
+
type FlowBlock = StartCustomBlock | StartQuickActionLocationBlock | StartSessionUpdateBlock | StartLocationUpdateBlock | StartParameterUpdateBlock | ConstNumberBlock | ConstTextBlock | ConstBooleanBlock | MathAddBlock | MathSubtractBlock | MathMultiplyBlock | MathDivideBlock | MapDestructureBlock | MapConstructBlock | 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 | VariableSetBlock | VariableGetBlock | EndCustomBlock;
|
|
1312
|
+
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 | MapConstructBlockInputs | VariableSetBlockInputs | VariableGetBlockInputs | Record<string, unknown>;
|
|
1297
1313
|
interface FlowDataEdge {
|
|
1298
1314
|
id: string;
|
|
1299
1315
|
type: "data";
|
|
@@ -4167,6 +4183,7 @@ declare namespace JUHUU {
|
|
|
4167
4183
|
proximityStrategyArray: ProximityStrategy[];
|
|
4168
4184
|
adminQuickViewArray: QuickView[];
|
|
4169
4185
|
simIdArray: string[];
|
|
4186
|
+
panelId: string | null;
|
|
4170
4187
|
};
|
|
4171
4188
|
namespace Create {
|
|
4172
4189
|
type Params = {
|
|
@@ -4174,6 +4191,7 @@ declare namespace JUHUU {
|
|
|
4174
4191
|
acceptTerms: boolean;
|
|
4175
4192
|
name?: string;
|
|
4176
4193
|
deviceTemplateId: string;
|
|
4194
|
+
panelId?: string;
|
|
4177
4195
|
};
|
|
4178
4196
|
type Options = JUHUU.RequestOptions;
|
|
4179
4197
|
type Response = {
|
|
@@ -4224,6 +4242,7 @@ declare namespace JUHUU {
|
|
|
4224
4242
|
simIdArray?: string[];
|
|
4225
4243
|
permissionArray?: DevicePermission[];
|
|
4226
4244
|
parameterIdArray?: string[];
|
|
4245
|
+
panelId?: string | null;
|
|
4227
4246
|
};
|
|
4228
4247
|
type Options = JUHUU.RequestOptions;
|
|
4229
4248
|
type Response = {
|
|
@@ -4335,7 +4354,11 @@ declare namespace JUHUU {
|
|
|
4335
4354
|
type: "parameterAnomalyGroup";
|
|
4336
4355
|
parameterAnomalyGroupId: string;
|
|
4337
4356
|
}
|
|
4338
|
-
export
|
|
4357
|
+
export interface Sim extends Base {
|
|
4358
|
+
type: "sim";
|
|
4359
|
+
simId: string;
|
|
4360
|
+
}
|
|
4361
|
+
export type Object = Location | Device | ParameterAnomalyGroup | Sim;
|
|
4339
4362
|
export namespace Create {
|
|
4340
4363
|
type Params = {
|
|
4341
4364
|
propertyId: string;
|
|
@@ -4343,6 +4366,8 @@ declare namespace JUHUU {
|
|
|
4343
4366
|
severity?: JUHUU.Incident.Object["severity"];
|
|
4344
4367
|
deviceId?: string;
|
|
4345
4368
|
locationId?: string;
|
|
4369
|
+
parameterAnomalyGroupId?: string;
|
|
4370
|
+
simId?: string;
|
|
4346
4371
|
incidentTemplateId?: string;
|
|
4347
4372
|
title?: JUHUU.Incident.Object["title"];
|
|
4348
4373
|
type: JUHUU.Incident.Object["type"];
|
|
@@ -5002,6 +5027,7 @@ declare namespace JUHUU {
|
|
|
5002
5027
|
dataQuotaThresholdPercentage: number | null;
|
|
5003
5028
|
providerUsername: string | null;
|
|
5004
5029
|
providerPassword: string | null;
|
|
5030
|
+
lastProviderUpdateAt: Date | null;
|
|
5005
5031
|
};
|
|
5006
5032
|
namespace Create {
|
|
5007
5033
|
type Params = {
|
|
@@ -6288,6 +6314,8 @@ declare namespace JUHUU {
|
|
|
6288
6314
|
highlightLayoutBlockArray: LayoutBlock[];
|
|
6289
6315
|
variables: Record<string, any>;
|
|
6290
6316
|
display: PanelDisplay;
|
|
6317
|
+
permissionArray: DevicePermission[];
|
|
6318
|
+
proximityStrategyArray: ProximityStrategy[];
|
|
6291
6319
|
};
|
|
6292
6320
|
namespace Create {
|
|
6293
6321
|
type Params = {
|
|
@@ -6297,6 +6325,8 @@ declare namespace JUHUU {
|
|
|
6297
6325
|
highlightLayoutBlockArray?: LayoutBlock[];
|
|
6298
6326
|
variables?: Record<string, any>;
|
|
6299
6327
|
display?: PanelDisplay;
|
|
6328
|
+
permissionArray?: DevicePermission[];
|
|
6329
|
+
proximityStrategyArray?: ProximityStrategy[];
|
|
6300
6330
|
};
|
|
6301
6331
|
type Options = JUHUU.RequestOptions;
|
|
6302
6332
|
type Response = {
|
|
@@ -6335,6 +6365,8 @@ declare namespace JUHUU {
|
|
|
6335
6365
|
highlightLayoutBlockArray?: LayoutBlock[];
|
|
6336
6366
|
variables?: Record<string, any>;
|
|
6337
6367
|
display?: PanelDisplay;
|
|
6368
|
+
permissionArray?: DevicePermission[];
|
|
6369
|
+
proximityStrategyArray?: ProximityStrategy[];
|
|
6338
6370
|
};
|
|
6339
6371
|
type Options = JUHUU.RequestOptions;
|
|
6340
6372
|
type Response = {
|
|
@@ -6567,4 +6599,4 @@ declare namespace JUHUU {
|
|
|
6567
6599
|
}
|
|
6568
6600
|
}
|
|
6569
6601
|
|
|
6570
|
-
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 };
|
|
6602
|
+
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 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
|
@@ -1366,7 +1366,8 @@ var DevicesService = class extends Service {
|
|
|
1366
1366
|
propertyId: DeviceCreateParams.propertyId,
|
|
1367
1367
|
deviceTemplateId: DeviceCreateParams.deviceTemplateId,
|
|
1368
1368
|
name: DeviceCreateParams.name,
|
|
1369
|
-
acceptTerms: DeviceCreateParams.acceptTerms
|
|
1369
|
+
acceptTerms: DeviceCreateParams.acceptTerms,
|
|
1370
|
+
panelId: DeviceCreateParams.panelId
|
|
1370
1371
|
},
|
|
1371
1372
|
authenticationNotOptional: true
|
|
1372
1373
|
},
|
|
@@ -1434,7 +1435,8 @@ var DevicesService = class extends Service {
|
|
|
1434
1435
|
parameterIdArray: DeviceUpdateParams.parameterIdArray,
|
|
1435
1436
|
permissionArray: DeviceUpdateParams.permissionArray,
|
|
1436
1437
|
proximityStrategyArray: DeviceUpdateParams.proximityStrategyArray,
|
|
1437
|
-
simIdArray: DeviceUpdateParams.simIdArray
|
|
1438
|
+
simIdArray: DeviceUpdateParams.simIdArray,
|
|
1439
|
+
panelId: DeviceUpdateParams.panelId
|
|
1438
1440
|
},
|
|
1439
1441
|
authenticationNotOptional: true
|
|
1440
1442
|
},
|
|
@@ -3314,6 +3316,8 @@ var IncidentsService = class extends Service {
|
|
|
3314
3316
|
type: IncidentCreateParams.type,
|
|
3315
3317
|
deviceId: IncidentCreateParams.deviceId,
|
|
3316
3318
|
locationId: IncidentCreateParams.locationId,
|
|
3319
|
+
parameterAnomalyGroupId: IncidentCreateParams.parameterAnomalyGroupId,
|
|
3320
|
+
simId: IncidentCreateParams.simId,
|
|
3317
3321
|
incidentTemplateId: IncidentCreateParams.incidentTemplateId,
|
|
3318
3322
|
severity: IncidentCreateParams.severity
|
|
3319
3323
|
},
|
|
@@ -3803,6 +3807,76 @@ var FlowsService = class extends Service {
|
|
|
3803
3807
|
const { data } = block;
|
|
3804
3808
|
return { output: { value: data?.value } };
|
|
3805
3809
|
},
|
|
3810
|
+
"math.add": async (inputs, block) => {
|
|
3811
|
+
const mb = block;
|
|
3812
|
+
const inA = inputs.a;
|
|
3813
|
+
const inB = inputs.b;
|
|
3814
|
+
const defaultA = mb.data.a ?? 0;
|
|
3815
|
+
const defaultB = mb.data.b ?? 0;
|
|
3816
|
+
const a = inA !== void 0 ? inA : defaultA;
|
|
3817
|
+
const b = inB !== void 0 ? inB : defaultB;
|
|
3818
|
+
return { output: { result: a + b } };
|
|
3819
|
+
},
|
|
3820
|
+
"math.subtract": async (inputs, block) => {
|
|
3821
|
+
const mb = block;
|
|
3822
|
+
const inA = inputs.a;
|
|
3823
|
+
const inB = inputs.b;
|
|
3824
|
+
const defaultA = mb.data.a ?? 0;
|
|
3825
|
+
const defaultB = mb.data.b ?? 0;
|
|
3826
|
+
const a = inA !== void 0 ? inA : defaultA;
|
|
3827
|
+
const b = inB !== void 0 ? inB : defaultB;
|
|
3828
|
+
return { output: { result: a - b } };
|
|
3829
|
+
},
|
|
3830
|
+
"math.multiply": async (inputs, block) => {
|
|
3831
|
+
const mb = block;
|
|
3832
|
+
const inA = inputs.a;
|
|
3833
|
+
const inB = inputs.b;
|
|
3834
|
+
const defaultA = mb.data.a ?? 0;
|
|
3835
|
+
const defaultB = mb.data.b ?? 0;
|
|
3836
|
+
const a = inA !== void 0 ? inA : defaultA;
|
|
3837
|
+
const b = inB !== void 0 ? inB : defaultB;
|
|
3838
|
+
return { output: { result: a * b } };
|
|
3839
|
+
},
|
|
3840
|
+
"math.divide": async (inputs, block) => {
|
|
3841
|
+
const mb = block;
|
|
3842
|
+
const inA = inputs.a;
|
|
3843
|
+
const inB = inputs.b;
|
|
3844
|
+
const defaultA = mb.data.a ?? 0;
|
|
3845
|
+
const defaultB = mb.data.b ?? 1;
|
|
3846
|
+
const a = inA !== void 0 ? inA : defaultA;
|
|
3847
|
+
const b = inB !== void 0 ? inB : defaultB;
|
|
3848
|
+
return { output: { result: a / b } };
|
|
3849
|
+
},
|
|
3850
|
+
"map.destructure": async (inputs, block) => {
|
|
3851
|
+
if (block.type !== "map.destructure") {
|
|
3852
|
+
throw new Error(
|
|
3853
|
+
`Expected block type 'map.destructure', got '${block.type}'`
|
|
3854
|
+
);
|
|
3855
|
+
}
|
|
3856
|
+
const source = inputs.map;
|
|
3857
|
+
const mb = block;
|
|
3858
|
+
const outputs = {};
|
|
3859
|
+
const keys = mb.data.keys ?? [];
|
|
3860
|
+
for (const key of keys) {
|
|
3861
|
+
outputs[key] = source[key];
|
|
3862
|
+
}
|
|
3863
|
+
return { output: outputs };
|
|
3864
|
+
},
|
|
3865
|
+
"map.construct": async (inputs, block) => {
|
|
3866
|
+
if (block.type !== "map.construct") {
|
|
3867
|
+
throw new Error(
|
|
3868
|
+
`Expected block type 'map.construct', got '${block.type}'`
|
|
3869
|
+
);
|
|
3870
|
+
}
|
|
3871
|
+
const mb = block;
|
|
3872
|
+
const constructedMap = {};
|
|
3873
|
+
const keys = mb.data.keys ?? [];
|
|
3874
|
+
const inputValues = inputs;
|
|
3875
|
+
for (const key of keys) {
|
|
3876
|
+
constructedMap[key] = inputValues[key];
|
|
3877
|
+
}
|
|
3878
|
+
return { output: { map: constructedMap } };
|
|
3879
|
+
},
|
|
3806
3880
|
"variable.set": async (inputs, block, context) => {
|
|
3807
3881
|
const { key, value } = inputs;
|
|
3808
3882
|
const typedBlock = block;
|
|
@@ -5053,7 +5127,10 @@ var PanelsService = class extends Service {
|
|
|
5053
5127
|
name: params.name,
|
|
5054
5128
|
layoutBlockArray: params.layoutBlockArray,
|
|
5055
5129
|
highlightLayoutBlockArray: params.highlightLayoutBlockArray,
|
|
5056
|
-
variables: params.variables
|
|
5130
|
+
variables: params.variables,
|
|
5131
|
+
display: params.display,
|
|
5132
|
+
permissionArray: params.permissionArray,
|
|
5133
|
+
proximityStrategyArray: params.proximityStrategyArray
|
|
5057
5134
|
},
|
|
5058
5135
|
authenticationNotOptional: true
|
|
5059
5136
|
},
|
|
@@ -5106,7 +5183,9 @@ var PanelsService = class extends Service {
|
|
|
5106
5183
|
layoutBlockArray: params.layoutBlockArray,
|
|
5107
5184
|
highlightLayoutBlockArray: params.highlightLayoutBlockArray,
|
|
5108
5185
|
variables: params.variables,
|
|
5109
|
-
display: params.display
|
|
5186
|
+
display: params.display,
|
|
5187
|
+
permissionArray: params.permissionArray,
|
|
5188
|
+
proximityStrategyArray: params.proximityStrategyArray
|
|
5110
5189
|
},
|
|
5111
5190
|
authenticationNotOptional: true
|
|
5112
5191
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -1322,7 +1322,8 @@ var DevicesService = class extends Service {
|
|
|
1322
1322
|
propertyId: DeviceCreateParams.propertyId,
|
|
1323
1323
|
deviceTemplateId: DeviceCreateParams.deviceTemplateId,
|
|
1324
1324
|
name: DeviceCreateParams.name,
|
|
1325
|
-
acceptTerms: DeviceCreateParams.acceptTerms
|
|
1325
|
+
acceptTerms: DeviceCreateParams.acceptTerms,
|
|
1326
|
+
panelId: DeviceCreateParams.panelId
|
|
1326
1327
|
},
|
|
1327
1328
|
authenticationNotOptional: true
|
|
1328
1329
|
},
|
|
@@ -1390,7 +1391,8 @@ var DevicesService = class extends Service {
|
|
|
1390
1391
|
parameterIdArray: DeviceUpdateParams.parameterIdArray,
|
|
1391
1392
|
permissionArray: DeviceUpdateParams.permissionArray,
|
|
1392
1393
|
proximityStrategyArray: DeviceUpdateParams.proximityStrategyArray,
|
|
1393
|
-
simIdArray: DeviceUpdateParams.simIdArray
|
|
1394
|
+
simIdArray: DeviceUpdateParams.simIdArray,
|
|
1395
|
+
panelId: DeviceUpdateParams.panelId
|
|
1394
1396
|
},
|
|
1395
1397
|
authenticationNotOptional: true
|
|
1396
1398
|
},
|
|
@@ -3270,6 +3272,8 @@ var IncidentsService = class extends Service {
|
|
|
3270
3272
|
type: IncidentCreateParams.type,
|
|
3271
3273
|
deviceId: IncidentCreateParams.deviceId,
|
|
3272
3274
|
locationId: IncidentCreateParams.locationId,
|
|
3275
|
+
parameterAnomalyGroupId: IncidentCreateParams.parameterAnomalyGroupId,
|
|
3276
|
+
simId: IncidentCreateParams.simId,
|
|
3273
3277
|
incidentTemplateId: IncidentCreateParams.incidentTemplateId,
|
|
3274
3278
|
severity: IncidentCreateParams.severity
|
|
3275
3279
|
},
|
|
@@ -3759,6 +3763,76 @@ var FlowsService = class extends Service {
|
|
|
3759
3763
|
const { data } = block;
|
|
3760
3764
|
return { output: { value: data?.value } };
|
|
3761
3765
|
},
|
|
3766
|
+
"math.add": async (inputs, block) => {
|
|
3767
|
+
const mb = block;
|
|
3768
|
+
const inA = inputs.a;
|
|
3769
|
+
const inB = inputs.b;
|
|
3770
|
+
const defaultA = mb.data.a ?? 0;
|
|
3771
|
+
const defaultB = mb.data.b ?? 0;
|
|
3772
|
+
const a = inA !== void 0 ? inA : defaultA;
|
|
3773
|
+
const b = inB !== void 0 ? inB : defaultB;
|
|
3774
|
+
return { output: { result: a + b } };
|
|
3775
|
+
},
|
|
3776
|
+
"math.subtract": async (inputs, block) => {
|
|
3777
|
+
const mb = block;
|
|
3778
|
+
const inA = inputs.a;
|
|
3779
|
+
const inB = inputs.b;
|
|
3780
|
+
const defaultA = mb.data.a ?? 0;
|
|
3781
|
+
const defaultB = mb.data.b ?? 0;
|
|
3782
|
+
const a = inA !== void 0 ? inA : defaultA;
|
|
3783
|
+
const b = inB !== void 0 ? inB : defaultB;
|
|
3784
|
+
return { output: { result: a - b } };
|
|
3785
|
+
},
|
|
3786
|
+
"math.multiply": async (inputs, block) => {
|
|
3787
|
+
const mb = block;
|
|
3788
|
+
const inA = inputs.a;
|
|
3789
|
+
const inB = inputs.b;
|
|
3790
|
+
const defaultA = mb.data.a ?? 0;
|
|
3791
|
+
const defaultB = mb.data.b ?? 0;
|
|
3792
|
+
const a = inA !== void 0 ? inA : defaultA;
|
|
3793
|
+
const b = inB !== void 0 ? inB : defaultB;
|
|
3794
|
+
return { output: { result: a * b } };
|
|
3795
|
+
},
|
|
3796
|
+
"math.divide": async (inputs, block) => {
|
|
3797
|
+
const mb = block;
|
|
3798
|
+
const inA = inputs.a;
|
|
3799
|
+
const inB = inputs.b;
|
|
3800
|
+
const defaultA = mb.data.a ?? 0;
|
|
3801
|
+
const defaultB = mb.data.b ?? 1;
|
|
3802
|
+
const a = inA !== void 0 ? inA : defaultA;
|
|
3803
|
+
const b = inB !== void 0 ? inB : defaultB;
|
|
3804
|
+
return { output: { result: a / b } };
|
|
3805
|
+
},
|
|
3806
|
+
"map.destructure": async (inputs, block) => {
|
|
3807
|
+
if (block.type !== "map.destructure") {
|
|
3808
|
+
throw new Error(
|
|
3809
|
+
`Expected block type 'map.destructure', got '${block.type}'`
|
|
3810
|
+
);
|
|
3811
|
+
}
|
|
3812
|
+
const source = inputs.map;
|
|
3813
|
+
const mb = block;
|
|
3814
|
+
const outputs = {};
|
|
3815
|
+
const keys = mb.data.keys ?? [];
|
|
3816
|
+
for (const key of keys) {
|
|
3817
|
+
outputs[key] = source[key];
|
|
3818
|
+
}
|
|
3819
|
+
return { output: outputs };
|
|
3820
|
+
},
|
|
3821
|
+
"map.construct": async (inputs, block) => {
|
|
3822
|
+
if (block.type !== "map.construct") {
|
|
3823
|
+
throw new Error(
|
|
3824
|
+
`Expected block type 'map.construct', got '${block.type}'`
|
|
3825
|
+
);
|
|
3826
|
+
}
|
|
3827
|
+
const mb = block;
|
|
3828
|
+
const constructedMap = {};
|
|
3829
|
+
const keys = mb.data.keys ?? [];
|
|
3830
|
+
const inputValues = inputs;
|
|
3831
|
+
for (const key of keys) {
|
|
3832
|
+
constructedMap[key] = inputValues[key];
|
|
3833
|
+
}
|
|
3834
|
+
return { output: { map: constructedMap } };
|
|
3835
|
+
},
|
|
3762
3836
|
"variable.set": async (inputs, block, context) => {
|
|
3763
3837
|
const { key, value } = inputs;
|
|
3764
3838
|
const typedBlock = block;
|
|
@@ -5009,7 +5083,10 @@ var PanelsService = class extends Service {
|
|
|
5009
5083
|
name: params.name,
|
|
5010
5084
|
layoutBlockArray: params.layoutBlockArray,
|
|
5011
5085
|
highlightLayoutBlockArray: params.highlightLayoutBlockArray,
|
|
5012
|
-
variables: params.variables
|
|
5086
|
+
variables: params.variables,
|
|
5087
|
+
display: params.display,
|
|
5088
|
+
permissionArray: params.permissionArray,
|
|
5089
|
+
proximityStrategyArray: params.proximityStrategyArray
|
|
5013
5090
|
},
|
|
5014
5091
|
authenticationNotOptional: true
|
|
5015
5092
|
},
|
|
@@ -5062,7 +5139,9 @@ var PanelsService = class extends Service {
|
|
|
5062
5139
|
layoutBlockArray: params.layoutBlockArray,
|
|
5063
5140
|
highlightLayoutBlockArray: params.highlightLayoutBlockArray,
|
|
5064
5141
|
variables: params.variables,
|
|
5065
|
-
display: params.display
|
|
5142
|
+
display: params.display,
|
|
5143
|
+
permissionArray: params.permissionArray,
|
|
5144
|
+
proximityStrategyArray: params.proximityStrategyArray
|
|
5066
5145
|
},
|
|
5067
5146
|
authenticationNotOptional: true
|
|
5068
5147
|
},
|