@internetderdinge/api 1.229.26 → 1.229.27

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/src/index.js CHANGED
@@ -23,7 +23,7 @@ export { default as devicesNotificationsRoute } from "./devicesNotifications/dev
23
23
  export { default as devicesNotificationsService } from "../src/devicesNotifications/devicesNotifications.service";
24
24
  export { default as iotDevicesService } from "../src/iotdevice/iotdevice.service";
25
25
  export { default as iotdeviceRoute } from "../src/iotdevice/iotdevice.route";
26
- export { SIMILARITY_THRESHOLD } from "../src/iotdevice/iotdevice.service";
26
+ export { SIMILARITY_THRESHOLD, alarmsDevice, getDeviceStatus, getDeviceStatusList, shadowAlarmGet, shadowAlarmUpdate, } from "../src/iotdevice/iotdevice.service";
27
27
  export { default as pdfRoute } from "../src/pdf/pdf.route";
28
28
  export { default as tokensRoute } from "../src/tokens/tokens.route";
29
29
  export * from "../src/tokens/tokens.service";
@@ -310,7 +310,7 @@ export const ledLightHint = async (deviceName, body) => {
310
310
  * @param {Object} userBody
311
311
  * @returns {Promise<Device>}
312
312
  */
313
- const shadowAlarmUpdate = async (deviceName, alarms, shadowName) => {
313
+ export const shadowAlarmUpdate = async (deviceName, alarms, shadowName) => {
314
314
  const data = alarms;
315
315
  if (!deviceName) {
316
316
  return { error: "no deviceId" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetderdinge/api",
3
- "version": "1.229.26",
3
+ "version": "1.229.27",
4
4
  "description": "Shared OpenIoT API modules",
5
5
  "main": "dist/src/index.js",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -28,7 +28,14 @@ export { default as devicesNotificationsRoute } from "./devicesNotifications/dev
28
28
  export { default as devicesNotificationsService } from "../src/devicesNotifications/devicesNotifications.service";
29
29
  export { default as iotDevicesService } from "../src/iotdevice/iotdevice.service";
30
30
  export { default as iotdeviceRoute } from "../src/iotdevice/iotdevice.route";
31
- export { SIMILARITY_THRESHOLD } from "../src/iotdevice/iotdevice.service";
31
+ export {
32
+ SIMILARITY_THRESHOLD,
33
+ alarmsDevice,
34
+ getDeviceStatus,
35
+ getDeviceStatusList,
36
+ shadowAlarmGet,
37
+ shadowAlarmUpdate,
38
+ } from "../src/iotdevice/iotdevice.service";
32
39
  export { default as pdfRoute } from "../src/pdf/pdf.route";
33
40
  export { default as tokensRoute } from "../src/tokens/tokens.route";
34
41
  export * from "../src/tokens/tokens.service";
@@ -378,7 +378,7 @@ export const ledLightHint = async (deviceName, body) => {
378
378
  * @param {Object} userBody
379
379
  * @returns {Promise<Device>}
380
380
  */
381
- const shadowAlarmUpdate = async (deviceName, alarms, shadowName) => {
381
+ export const shadowAlarmUpdate = async (deviceName, alarms, shadowName) => {
382
382
  const data = alarms;
383
383
 
384
384
  if (!deviceName) {