@juhuu/sdk-ts 1.2.285 → 1.2.287
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 +27 -5
- package/dist/index.d.ts +27 -5
- package/dist/index.js +29 -8
- package/dist/index.mjs +29 -8
- 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 {
|
|
@@ -1305,7 +1308,7 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
1305
1308
|
outputParamDefinitionArray: ParamDefinition[];
|
|
1306
1309
|
};
|
|
1307
1310
|
}
|
|
1308
|
-
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 |
|
|
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;
|
|
1309
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>;
|
|
1310
1313
|
interface FlowDataEdge {
|
|
1311
1314
|
id: string;
|
|
@@ -4180,6 +4183,7 @@ declare namespace JUHUU {
|
|
|
4180
4183
|
proximityStrategyArray: ProximityStrategy[];
|
|
4181
4184
|
adminQuickViewArray: QuickView[];
|
|
4182
4185
|
simIdArray: string[];
|
|
4186
|
+
panelId: string | null;
|
|
4183
4187
|
};
|
|
4184
4188
|
namespace Create {
|
|
4185
4189
|
type Params = {
|
|
@@ -4187,6 +4191,7 @@ declare namespace JUHUU {
|
|
|
4187
4191
|
acceptTerms: boolean;
|
|
4188
4192
|
name?: string;
|
|
4189
4193
|
deviceTemplateId: string;
|
|
4194
|
+
panelId?: string;
|
|
4190
4195
|
};
|
|
4191
4196
|
type Options = JUHUU.RequestOptions;
|
|
4192
4197
|
type Response = {
|
|
@@ -4237,6 +4242,7 @@ declare namespace JUHUU {
|
|
|
4237
4242
|
simIdArray?: string[];
|
|
4238
4243
|
permissionArray?: DevicePermission[];
|
|
4239
4244
|
parameterIdArray?: string[];
|
|
4245
|
+
panelId?: string | null;
|
|
4240
4246
|
};
|
|
4241
4247
|
type Options = JUHUU.RequestOptions;
|
|
4242
4248
|
type Response = {
|
|
@@ -6308,6 +6314,8 @@ declare namespace JUHUU {
|
|
|
6308
6314
|
highlightLayoutBlockArray: LayoutBlock[];
|
|
6309
6315
|
variables: Record<string, any>;
|
|
6310
6316
|
display: PanelDisplay;
|
|
6317
|
+
permissionArray: DevicePermission[];
|
|
6318
|
+
proximityStrategyArray: ProximityStrategy[];
|
|
6311
6319
|
};
|
|
6312
6320
|
namespace Create {
|
|
6313
6321
|
type Params = {
|
|
@@ -6317,6 +6325,8 @@ declare namespace JUHUU {
|
|
|
6317
6325
|
highlightLayoutBlockArray?: LayoutBlock[];
|
|
6318
6326
|
variables?: Record<string, any>;
|
|
6319
6327
|
display?: PanelDisplay;
|
|
6328
|
+
permissionArray?: DevicePermission[];
|
|
6329
|
+
proximityStrategyArray?: ProximityStrategy[];
|
|
6320
6330
|
};
|
|
6321
6331
|
type Options = JUHUU.RequestOptions;
|
|
6322
6332
|
type Response = {
|
|
@@ -6355,6 +6365,8 @@ declare namespace JUHUU {
|
|
|
6355
6365
|
highlightLayoutBlockArray?: LayoutBlock[];
|
|
6356
6366
|
variables?: Record<string, any>;
|
|
6357
6367
|
display?: PanelDisplay;
|
|
6368
|
+
permissionArray?: DevicePermission[];
|
|
6369
|
+
proximityStrategyArray?: ProximityStrategy[];
|
|
6358
6370
|
};
|
|
6359
6371
|
type Options = JUHUU.RequestOptions;
|
|
6360
6372
|
type Response = {
|
|
@@ -6538,13 +6550,15 @@ declare namespace JUHUU {
|
|
|
6538
6550
|
type Params = {};
|
|
6539
6551
|
type Options = JUHUU.RequestOptions;
|
|
6540
6552
|
type Response = {
|
|
6541
|
-
subscribe: (locationIdArray?: string[], parameterIdArray?: string[]) => void;
|
|
6553
|
+
subscribe: (locationIdArray?: string[], parameterIdArray?: string[], sessionIdArray?: string[]) => void;
|
|
6542
6554
|
unsubscribeFromLocations: (locationIdArray: string[]) => void;
|
|
6543
6555
|
unsubscribeFromParameters: (parameterIdArray: string[]) => void;
|
|
6544
|
-
|
|
6556
|
+
unsubscribeFromSessions: (sessionIdArray: string[]) => void;
|
|
6557
|
+
unsubscribe: (locationIdArray?: string[], parameterIdArray?: string[], sessionIdArray?: string[]) => void;
|
|
6545
6558
|
ping: (data?: any) => void;
|
|
6546
6559
|
onLocationUpdate: (callback: (message: JUHUU.Websocket.LocationUpdate) => void) => void;
|
|
6547
6560
|
onParameterUpdate: (callback: (message: JUHUU.Websocket.ParameterUpdate) => void) => void;
|
|
6561
|
+
onSessionUpdate: (callback: (message: JUHUU.Websocket.SessionUpdate) => void) => void;
|
|
6548
6562
|
onPong: (callback: (message: any) => void) => void;
|
|
6549
6563
|
close: () => void;
|
|
6550
6564
|
};
|
|
@@ -6562,11 +6576,18 @@ declare namespace JUHUU {
|
|
|
6562
6576
|
changedFields: string[];
|
|
6563
6577
|
initiatedAt?: Date;
|
|
6564
6578
|
};
|
|
6579
|
+
type SessionUpdate = {
|
|
6580
|
+
sessionId: string;
|
|
6581
|
+
before: JUHUU.Session.Object;
|
|
6582
|
+
after: JUHUU.Session.Object;
|
|
6583
|
+
changedFields: string[];
|
|
6584
|
+
};
|
|
6565
6585
|
type SubscriptionSuccess = {
|
|
6566
6586
|
locationIdArray: string[];
|
|
6567
6587
|
parameterIdArray: string[];
|
|
6588
|
+
sessionIdArray: string[];
|
|
6568
6589
|
subscriptionResultArray: Array<{
|
|
6569
|
-
type: "location" | "parameter";
|
|
6590
|
+
type: "location" | "parameter" | "session";
|
|
6570
6591
|
id: string;
|
|
6571
6592
|
roomName: string;
|
|
6572
6593
|
success: boolean;
|
|
@@ -6576,8 +6597,9 @@ declare namespace JUHUU {
|
|
|
6576
6597
|
type UnsubscriptionSuccess = {
|
|
6577
6598
|
locationIdArray: string[];
|
|
6578
6599
|
parameterIdArray: string[];
|
|
6600
|
+
sessionIdArray: string[];
|
|
6579
6601
|
unsubscriptionResultArray: Array<{
|
|
6580
|
-
type: "location" | "parameter";
|
|
6602
|
+
type: "location" | "parameter" | "session";
|
|
6581
6603
|
id: string;
|
|
6582
6604
|
roomName: string;
|
|
6583
6605
|
success: boolean;
|
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 {
|
|
@@ -1305,7 +1308,7 @@ interface EndCustomBlock extends BaseBlock {
|
|
|
1305
1308
|
outputParamDefinitionArray: ParamDefinition[];
|
|
1306
1309
|
};
|
|
1307
1310
|
}
|
|
1308
|
-
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 |
|
|
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;
|
|
1309
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>;
|
|
1310
1313
|
interface FlowDataEdge {
|
|
1311
1314
|
id: string;
|
|
@@ -4180,6 +4183,7 @@ declare namespace JUHUU {
|
|
|
4180
4183
|
proximityStrategyArray: ProximityStrategy[];
|
|
4181
4184
|
adminQuickViewArray: QuickView[];
|
|
4182
4185
|
simIdArray: string[];
|
|
4186
|
+
panelId: string | null;
|
|
4183
4187
|
};
|
|
4184
4188
|
namespace Create {
|
|
4185
4189
|
type Params = {
|
|
@@ -4187,6 +4191,7 @@ declare namespace JUHUU {
|
|
|
4187
4191
|
acceptTerms: boolean;
|
|
4188
4192
|
name?: string;
|
|
4189
4193
|
deviceTemplateId: string;
|
|
4194
|
+
panelId?: string;
|
|
4190
4195
|
};
|
|
4191
4196
|
type Options = JUHUU.RequestOptions;
|
|
4192
4197
|
type Response = {
|
|
@@ -4237,6 +4242,7 @@ declare namespace JUHUU {
|
|
|
4237
4242
|
simIdArray?: string[];
|
|
4238
4243
|
permissionArray?: DevicePermission[];
|
|
4239
4244
|
parameterIdArray?: string[];
|
|
4245
|
+
panelId?: string | null;
|
|
4240
4246
|
};
|
|
4241
4247
|
type Options = JUHUU.RequestOptions;
|
|
4242
4248
|
type Response = {
|
|
@@ -6308,6 +6314,8 @@ declare namespace JUHUU {
|
|
|
6308
6314
|
highlightLayoutBlockArray: LayoutBlock[];
|
|
6309
6315
|
variables: Record<string, any>;
|
|
6310
6316
|
display: PanelDisplay;
|
|
6317
|
+
permissionArray: DevicePermission[];
|
|
6318
|
+
proximityStrategyArray: ProximityStrategy[];
|
|
6311
6319
|
};
|
|
6312
6320
|
namespace Create {
|
|
6313
6321
|
type Params = {
|
|
@@ -6317,6 +6325,8 @@ declare namespace JUHUU {
|
|
|
6317
6325
|
highlightLayoutBlockArray?: LayoutBlock[];
|
|
6318
6326
|
variables?: Record<string, any>;
|
|
6319
6327
|
display?: PanelDisplay;
|
|
6328
|
+
permissionArray?: DevicePermission[];
|
|
6329
|
+
proximityStrategyArray?: ProximityStrategy[];
|
|
6320
6330
|
};
|
|
6321
6331
|
type Options = JUHUU.RequestOptions;
|
|
6322
6332
|
type Response = {
|
|
@@ -6355,6 +6365,8 @@ declare namespace JUHUU {
|
|
|
6355
6365
|
highlightLayoutBlockArray?: LayoutBlock[];
|
|
6356
6366
|
variables?: Record<string, any>;
|
|
6357
6367
|
display?: PanelDisplay;
|
|
6368
|
+
permissionArray?: DevicePermission[];
|
|
6369
|
+
proximityStrategyArray?: ProximityStrategy[];
|
|
6358
6370
|
};
|
|
6359
6371
|
type Options = JUHUU.RequestOptions;
|
|
6360
6372
|
type Response = {
|
|
@@ -6538,13 +6550,15 @@ declare namespace JUHUU {
|
|
|
6538
6550
|
type Params = {};
|
|
6539
6551
|
type Options = JUHUU.RequestOptions;
|
|
6540
6552
|
type Response = {
|
|
6541
|
-
subscribe: (locationIdArray?: string[], parameterIdArray?: string[]) => void;
|
|
6553
|
+
subscribe: (locationIdArray?: string[], parameterIdArray?: string[], sessionIdArray?: string[]) => void;
|
|
6542
6554
|
unsubscribeFromLocations: (locationIdArray: string[]) => void;
|
|
6543
6555
|
unsubscribeFromParameters: (parameterIdArray: string[]) => void;
|
|
6544
|
-
|
|
6556
|
+
unsubscribeFromSessions: (sessionIdArray: string[]) => void;
|
|
6557
|
+
unsubscribe: (locationIdArray?: string[], parameterIdArray?: string[], sessionIdArray?: string[]) => void;
|
|
6545
6558
|
ping: (data?: any) => void;
|
|
6546
6559
|
onLocationUpdate: (callback: (message: JUHUU.Websocket.LocationUpdate) => void) => void;
|
|
6547
6560
|
onParameterUpdate: (callback: (message: JUHUU.Websocket.ParameterUpdate) => void) => void;
|
|
6561
|
+
onSessionUpdate: (callback: (message: JUHUU.Websocket.SessionUpdate) => void) => void;
|
|
6548
6562
|
onPong: (callback: (message: any) => void) => void;
|
|
6549
6563
|
close: () => void;
|
|
6550
6564
|
};
|
|
@@ -6562,11 +6576,18 @@ declare namespace JUHUU {
|
|
|
6562
6576
|
changedFields: string[];
|
|
6563
6577
|
initiatedAt?: Date;
|
|
6564
6578
|
};
|
|
6579
|
+
type SessionUpdate = {
|
|
6580
|
+
sessionId: string;
|
|
6581
|
+
before: JUHUU.Session.Object;
|
|
6582
|
+
after: JUHUU.Session.Object;
|
|
6583
|
+
changedFields: string[];
|
|
6584
|
+
};
|
|
6565
6585
|
type SubscriptionSuccess = {
|
|
6566
6586
|
locationIdArray: string[];
|
|
6567
6587
|
parameterIdArray: string[];
|
|
6588
|
+
sessionIdArray: string[];
|
|
6568
6589
|
subscriptionResultArray: Array<{
|
|
6569
|
-
type: "location" | "parameter";
|
|
6590
|
+
type: "location" | "parameter" | "session";
|
|
6570
6591
|
id: string;
|
|
6571
6592
|
roomName: string;
|
|
6572
6593
|
success: boolean;
|
|
@@ -6576,8 +6597,9 @@ declare namespace JUHUU {
|
|
|
6576
6597
|
type UnsubscriptionSuccess = {
|
|
6577
6598
|
locationIdArray: string[];
|
|
6578
6599
|
parameterIdArray: string[];
|
|
6600
|
+
sessionIdArray: string[];
|
|
6579
6601
|
unsubscriptionResultArray: Array<{
|
|
6580
|
-
type: "location" | "parameter";
|
|
6602
|
+
type: "location" | "parameter" | "session";
|
|
6581
6603
|
id: string;
|
|
6582
6604
|
roomName: string;
|
|
6583
6605
|
success: boolean;
|
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
|
},
|
|
@@ -2039,11 +2041,20 @@ var WebsocketsService = class extends Service {
|
|
|
2039
2041
|
}
|
|
2040
2042
|
);
|
|
2041
2043
|
};
|
|
2044
|
+
const onSessionUpdate = (callback) => {
|
|
2045
|
+
socket.on(
|
|
2046
|
+
"session_update",
|
|
2047
|
+
(message) => {
|
|
2048
|
+
callback(message);
|
|
2049
|
+
}
|
|
2050
|
+
);
|
|
2051
|
+
};
|
|
2042
2052
|
return {
|
|
2043
|
-
subscribe: (locationIdArray, parameterIdArray) => {
|
|
2053
|
+
subscribe: (locationIdArray, parameterIdArray, sessionIdArray) => {
|
|
2044
2054
|
socket.emit("subscribe", {
|
|
2045
2055
|
locationIdArray: locationIdArray || [],
|
|
2046
|
-
parameterIdArray: parameterIdArray || []
|
|
2056
|
+
parameterIdArray: parameterIdArray || [],
|
|
2057
|
+
sessionIdArray: sessionIdArray || []
|
|
2047
2058
|
});
|
|
2048
2059
|
},
|
|
2049
2060
|
unsubscribeFromLocations: (locationIdArray) => {
|
|
@@ -2052,10 +2063,14 @@ var WebsocketsService = class extends Service {
|
|
|
2052
2063
|
unsubscribeFromParameters: (parameterIdArray) => {
|
|
2053
2064
|
socket.emit("unsubscribe", { parameterIdArray });
|
|
2054
2065
|
},
|
|
2055
|
-
|
|
2066
|
+
unsubscribeFromSessions: (sessionIdArray) => {
|
|
2067
|
+
socket.emit("unsubscribe", { sessionIdArray });
|
|
2068
|
+
},
|
|
2069
|
+
unsubscribe: (locationIdArray, parameterIdArray, sessionIdArray) => {
|
|
2056
2070
|
socket.emit("unsubscribe", {
|
|
2057
2071
|
locationIdArray: locationIdArray || [],
|
|
2058
|
-
parameterIdArray: parameterIdArray || []
|
|
2072
|
+
parameterIdArray: parameterIdArray || [],
|
|
2073
|
+
sessionIdArray: sessionIdArray || []
|
|
2059
2074
|
});
|
|
2060
2075
|
},
|
|
2061
2076
|
ping: (data) => {
|
|
@@ -2063,6 +2078,7 @@ var WebsocketsService = class extends Service {
|
|
|
2063
2078
|
},
|
|
2064
2079
|
onLocationUpdate,
|
|
2065
2080
|
onParameterUpdate,
|
|
2081
|
+
onSessionUpdate,
|
|
2066
2082
|
onPong: (callback) => {
|
|
2067
2083
|
socket.on("pong", callback);
|
|
2068
2084
|
},
|
|
@@ -5125,7 +5141,10 @@ var PanelsService = class extends Service {
|
|
|
5125
5141
|
name: params.name,
|
|
5126
5142
|
layoutBlockArray: params.layoutBlockArray,
|
|
5127
5143
|
highlightLayoutBlockArray: params.highlightLayoutBlockArray,
|
|
5128
|
-
variables: params.variables
|
|
5144
|
+
variables: params.variables,
|
|
5145
|
+
display: params.display,
|
|
5146
|
+
permissionArray: params.permissionArray,
|
|
5147
|
+
proximityStrategyArray: params.proximityStrategyArray
|
|
5129
5148
|
},
|
|
5130
5149
|
authenticationNotOptional: true
|
|
5131
5150
|
},
|
|
@@ -5178,7 +5197,9 @@ var PanelsService = class extends Service {
|
|
|
5178
5197
|
layoutBlockArray: params.layoutBlockArray,
|
|
5179
5198
|
highlightLayoutBlockArray: params.highlightLayoutBlockArray,
|
|
5180
5199
|
variables: params.variables,
|
|
5181
|
-
display: params.display
|
|
5200
|
+
display: params.display,
|
|
5201
|
+
permissionArray: params.permissionArray,
|
|
5202
|
+
proximityStrategyArray: params.proximityStrategyArray
|
|
5182
5203
|
},
|
|
5183
5204
|
authenticationNotOptional: true
|
|
5184
5205
|
},
|
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
|
},
|
|
@@ -1995,11 +1997,20 @@ var WebsocketsService = class extends Service {
|
|
|
1995
1997
|
}
|
|
1996
1998
|
);
|
|
1997
1999
|
};
|
|
2000
|
+
const onSessionUpdate = (callback) => {
|
|
2001
|
+
socket.on(
|
|
2002
|
+
"session_update",
|
|
2003
|
+
(message) => {
|
|
2004
|
+
callback(message);
|
|
2005
|
+
}
|
|
2006
|
+
);
|
|
2007
|
+
};
|
|
1998
2008
|
return {
|
|
1999
|
-
subscribe: (locationIdArray, parameterIdArray) => {
|
|
2009
|
+
subscribe: (locationIdArray, parameterIdArray, sessionIdArray) => {
|
|
2000
2010
|
socket.emit("subscribe", {
|
|
2001
2011
|
locationIdArray: locationIdArray || [],
|
|
2002
|
-
parameterIdArray: parameterIdArray || []
|
|
2012
|
+
parameterIdArray: parameterIdArray || [],
|
|
2013
|
+
sessionIdArray: sessionIdArray || []
|
|
2003
2014
|
});
|
|
2004
2015
|
},
|
|
2005
2016
|
unsubscribeFromLocations: (locationIdArray) => {
|
|
@@ -2008,10 +2019,14 @@ var WebsocketsService = class extends Service {
|
|
|
2008
2019
|
unsubscribeFromParameters: (parameterIdArray) => {
|
|
2009
2020
|
socket.emit("unsubscribe", { parameterIdArray });
|
|
2010
2021
|
},
|
|
2011
|
-
|
|
2022
|
+
unsubscribeFromSessions: (sessionIdArray) => {
|
|
2023
|
+
socket.emit("unsubscribe", { sessionIdArray });
|
|
2024
|
+
},
|
|
2025
|
+
unsubscribe: (locationIdArray, parameterIdArray, sessionIdArray) => {
|
|
2012
2026
|
socket.emit("unsubscribe", {
|
|
2013
2027
|
locationIdArray: locationIdArray || [],
|
|
2014
|
-
parameterIdArray: parameterIdArray || []
|
|
2028
|
+
parameterIdArray: parameterIdArray || [],
|
|
2029
|
+
sessionIdArray: sessionIdArray || []
|
|
2015
2030
|
});
|
|
2016
2031
|
},
|
|
2017
2032
|
ping: (data) => {
|
|
@@ -2019,6 +2034,7 @@ var WebsocketsService = class extends Service {
|
|
|
2019
2034
|
},
|
|
2020
2035
|
onLocationUpdate,
|
|
2021
2036
|
onParameterUpdate,
|
|
2037
|
+
onSessionUpdate,
|
|
2022
2038
|
onPong: (callback) => {
|
|
2023
2039
|
socket.on("pong", callback);
|
|
2024
2040
|
},
|
|
@@ -5081,7 +5097,10 @@ var PanelsService = class extends Service {
|
|
|
5081
5097
|
name: params.name,
|
|
5082
5098
|
layoutBlockArray: params.layoutBlockArray,
|
|
5083
5099
|
highlightLayoutBlockArray: params.highlightLayoutBlockArray,
|
|
5084
|
-
variables: params.variables
|
|
5100
|
+
variables: params.variables,
|
|
5101
|
+
display: params.display,
|
|
5102
|
+
permissionArray: params.permissionArray,
|
|
5103
|
+
proximityStrategyArray: params.proximityStrategyArray
|
|
5085
5104
|
},
|
|
5086
5105
|
authenticationNotOptional: true
|
|
5087
5106
|
},
|
|
@@ -5134,7 +5153,9 @@ var PanelsService = class extends Service {
|
|
|
5134
5153
|
layoutBlockArray: params.layoutBlockArray,
|
|
5135
5154
|
highlightLayoutBlockArray: params.highlightLayoutBlockArray,
|
|
5136
5155
|
variables: params.variables,
|
|
5137
|
-
display: params.display
|
|
5156
|
+
display: params.display,
|
|
5157
|
+
permissionArray: params.permissionArray,
|
|
5158
|
+
proximityStrategyArray: params.proximityStrategyArray
|
|
5138
5159
|
},
|
|
5139
5160
|
authenticationNotOptional: true
|
|
5140
5161
|
},
|