@ray-js/lock-sdk 1.1.3 → 1.2.0-beta.1
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/lib/api/ble.d.ts +57 -0
- package/lib/api/ble.js +46 -0
- package/lib/api/fit.d.ts +203 -0
- package/lib/api/fit.js +158 -0
- package/lib/api/index.d.ts +1 -1
- package/lib/api/index.js +10 -0
- package/lib/api/linkage.js +6 -0
- package/lib/api/lock.d.ts +4 -2
- package/lib/api/lock.js +24 -0
- package/lib/api/log.d.ts +49 -22
- package/lib/api/log.js +21 -0
- package/lib/api/request.d.ts +5 -2
- package/lib/api/request.js +34 -2
- package/lib/api/screen.d.ts +110 -0
- package/lib/api/screen.js +52 -0
- package/lib/api/setting.js +2 -0
- package/lib/api/temp.d.ts +24 -3
- package/lib/api/temp.js +27 -0
- package/lib/api/user.d.ts +35 -1
- package/lib/api/user.js +24 -0
- package/lib/api/video.d.ts +27 -0
- package/lib/api/video.js +21 -0
- package/lib/api/voice-file.d.ts +14 -0
- package/lib/api/voice-file.js +18 -0
- package/lib/bootstrap/bootstrap-lock-instance.d.ts +7 -0
- package/lib/bootstrap/bootstrap-lock-instance.js +16 -0
- package/lib/bootstrap/bootstrap.d.ts +4 -0
- package/lib/bootstrap/bootstrap.js +53 -0
- package/lib/bootstrap/lock-instance-runtime-ref.d.ts +3 -0
- package/lib/bootstrap/lock-instance-runtime-ref.js +7 -0
- package/lib/bootstrap/primary-instance.d.ts +6 -0
- package/lib/bootstrap/primary-instance.js +24 -0
- package/lib/bootstrap/resolve-runtime-from-export-this.d.ts +5 -0
- package/lib/bootstrap/resolve-runtime-from-export-this.js +29 -0
- package/lib/bootstrap/top-level-runtime.d.ts +2 -0
- package/lib/bootstrap/top-level-runtime.js +9 -0
- package/lib/config/dp-code/index.d.ts +100 -67
- package/lib/config/dp-code/index.js +33 -1
- package/lib/config/dp-map/ble-check-code.d.ts +41 -0
- package/lib/config/dp-map/ble-check-code.js +55 -0
- package/lib/config/dp-map/ble-key-fit.d.ts +328 -0
- package/lib/config/dp-map/ble-key-fit.js +33 -0
- package/lib/config/dp-map/ble-sync.d.ts +2 -2
- package/lib/config/dp-map/ble-sync.js +2 -2
- package/lib/config/dp-map/ble-unlock-check.d.ts +42 -0
- package/lib/config/dp-map/ble-unlock-check.js +59 -0
- package/lib/config/dp-map/ble-voice-data.d.ts +16 -0
- package/lib/config/dp-map/ble-voice-data.js +7 -0
- package/lib/config/dp-map/bluetooth-unlock.d.ts +10 -0
- package/lib/config/dp-map/bluetooth-unlock.js +16 -0
- package/lib/config/dp-map/registry.d.ts +1137 -0
- package/lib/config/dp-map/registry.js +110 -0
- package/lib/config/dp-map/sync-method-fit.d.ts +3 -0
- package/lib/config/dp-map/sync-method-fit.js +36 -0
- package/lib/config/dp-map/temp-pwd-fit.d.ts +441 -0
- package/lib/config/dp-map/temp-pwd-fit.js +73 -0
- package/lib/config/dp-map/unlock-method-fit.d.ts +302 -0
- package/lib/config/dp-map/unlock-method-fit.js +62 -0
- package/lib/config/dp-map/unlock-method.d.ts +345 -1
- package/lib/config/dp-map/unlock-method.js +37 -1
- package/lib/constant.d.ts +5 -0
- package/lib/constant.js +6 -0
- package/lib/entries/ble/bootstrap/bootstrap-lock-instance.d.ts +7 -0
- package/lib/entries/ble/bootstrap/bootstrap-lock-instance.js +12 -0
- package/lib/entries/ble/bootstrap/bootstrap.d.ts +4 -0
- package/lib/entries/ble/bootstrap/bootstrap.js +53 -0
- package/lib/entries/ble/bootstrap/lock-instance-runtime-ref.d.ts +3 -0
- package/lib/entries/ble/bootstrap/lock-instance-runtime-ref.js +7 -0
- package/lib/entries/ble/bootstrap/primary-instance.d.ts +6 -0
- package/lib/entries/ble/bootstrap/primary-instance.js +24 -0
- package/lib/entries/ble/bootstrap/resolve-runtime-from-export-this.d.ts +5 -0
- package/lib/entries/ble/bootstrap/resolve-runtime-from-export-this.js +29 -0
- package/lib/entries/ble/bootstrap/top-level-runtime.d.ts +2 -0
- package/lib/entries/ble/bootstrap/top-level-runtime.js +9 -0
- package/lib/entries/ble/build-instance.d.ts +9 -0
- package/lib/entries/ble/build-instance.js +50 -0
- package/lib/entries/ble/exports/capability.d.ts +6 -0
- package/lib/entries/ble/exports/capability.js +17 -0
- package/lib/entries/ble/exports/config.d.ts +3 -0
- package/lib/entries/ble/exports/config.js +5 -0
- package/lib/entries/ble/exports/dp.d.ts +9 -0
- package/lib/entries/ble/exports/dp.js +13 -0
- package/lib/entries/ble/exports/index.d.ts +16 -0
- package/lib/entries/ble/exports/index.js +16 -0
- package/lib/entries/ble/exports/linkage.d.ts +5 -0
- package/lib/entries/ble/exports/linkage.js +15 -0
- package/lib/entries/ble/exports/log.d.ts +9 -0
- package/lib/entries/ble/exports/log.js +21 -0
- package/lib/entries/ble/exports/media.d.ts +4 -0
- package/lib/entries/ble/exports/media.js +12 -0
- package/lib/entries/ble/exports/misc.d.ts +19 -0
- package/lib/entries/ble/exports/misc.js +30 -0
- package/lib/entries/ble/exports/offline-dps.d.ts +8 -0
- package/lib/entries/ble/exports/offline-dps.js +24 -0
- package/lib/entries/ble/exports/open/do-open-close-action.d.ts +2 -0
- package/lib/entries/ble/exports/open/do-open-close-action.js +36 -0
- package/lib/entries/ble/exports/open/index.d.ts +18 -0
- package/lib/entries/ble/exports/open/index.js +45 -0
- package/lib/entries/ble/exports/signal.d.ts +6 -0
- package/lib/entries/ble/exports/signal.js +14 -0
- package/lib/entries/ble/exports/sleep.d.ts +13 -0
- package/lib/entries/ble/exports/sleep.js +31 -0
- package/lib/entries/ble/exports/state.d.ts +6 -0
- package/lib/entries/ble/exports/state.js +19 -0
- package/lib/entries/ble/exports/temporary.d.ts +31 -0
- package/lib/entries/ble/exports/temporary.js +91 -0
- package/lib/entries/ble/exports/unlock/sync.d.ts +1 -0
- package/lib/entries/ble/exports/unlock/sync.js +5 -0
- package/lib/entries/ble/exports/unlock-method.d.ts +19 -0
- package/lib/entries/ble/exports/unlock-method.js +58 -0
- package/lib/entries/ble/exports/user/index.d.ts +23 -0
- package/lib/entries/ble/exports/user/index.js +22 -0
- package/lib/entries/ble/exports/user/sync.d.ts +1 -0
- package/lib/entries/ble/exports/user/sync.js +5 -0
- package/lib/entries/ble/index.d.ts +8 -0
- package/lib/entries/ble/index.js +39 -0
- package/lib/entries/fit/bootstrap/bootstrap-lock-instance.d.ts +7 -0
- package/lib/entries/fit/bootstrap/bootstrap-lock-instance.js +12 -0
- package/lib/entries/fit/bootstrap/bootstrap.d.ts +4 -0
- package/lib/entries/fit/bootstrap/bootstrap.js +69 -0
- package/lib/entries/fit/bootstrap/lock-instance-runtime-ref.d.ts +3 -0
- package/lib/entries/fit/bootstrap/lock-instance-runtime-ref.js +7 -0
- package/lib/entries/fit/bootstrap/primary-instance.d.ts +6 -0
- package/lib/entries/fit/bootstrap/primary-instance.js +24 -0
- package/lib/entries/fit/bootstrap/resolve-runtime-from-export-this.d.ts +5 -0
- package/lib/entries/fit/bootstrap/resolve-runtime-from-export-this.js +29 -0
- package/lib/entries/fit/bootstrap/top-level-runtime.d.ts +2 -0
- package/lib/entries/fit/bootstrap/top-level-runtime.js +9 -0
- package/lib/entries/fit/build-instance.d.ts +9 -0
- package/lib/entries/fit/build-instance.js +57 -0
- package/lib/entries/fit/exports/binding.d.ts +8 -0
- package/lib/entries/fit/exports/binding.js +15 -0
- package/lib/entries/fit/exports/device.d.ts +26 -0
- package/lib/entries/fit/exports/device.js +64 -0
- package/lib/entries/fit/exports/index.d.ts +3 -0
- package/lib/entries/fit/exports/index.js +3 -0
- package/lib/entries/fit/exports/temp.d.ts +19 -0
- package/lib/entries/fit/exports/temp.js +18 -0
- package/lib/entries/fit/index.d.ts +8 -0
- package/lib/entries/fit/index.js +36 -0
- package/lib/entries/main/bootstrap/bootstrap-lock-instance.d.ts +7 -0
- package/lib/entries/main/bootstrap/bootstrap-lock-instance.js +12 -0
- package/lib/entries/main/bootstrap/bootstrap.d.ts +4 -0
- package/lib/entries/main/bootstrap/bootstrap.js +69 -0
- package/lib/entries/main/bootstrap/lock-instance-runtime-ref.d.ts +3 -0
- package/lib/entries/main/bootstrap/lock-instance-runtime-ref.js +7 -0
- package/lib/entries/main/bootstrap/primary-instance.d.ts +6 -0
- package/lib/entries/main/bootstrap/primary-instance.js +24 -0
- package/lib/entries/main/bootstrap/resolve-runtime-from-export-this.d.ts +5 -0
- package/lib/entries/main/bootstrap/resolve-runtime-from-export-this.js +29 -0
- package/lib/entries/main/bootstrap/top-level-runtime.d.ts +2 -0
- package/lib/entries/main/bootstrap/top-level-runtime.js +9 -0
- package/lib/entries/main/build-instance.d.ts +7 -0
- package/lib/entries/main/build-instance.js +49 -0
- package/lib/entries/main/exports/accessory-binding.d.ts +1 -0
- package/lib/entries/main/exports/accessory-binding.js +1 -0
- package/lib/entries/main/exports/capability.d.ts +6 -0
- package/lib/entries/main/exports/capability.js +17 -0
- package/lib/entries/main/exports/config.d.ts +3 -0
- package/lib/entries/main/exports/config.js +5 -0
- package/lib/entries/main/exports/dp.d.ts +11 -0
- package/lib/entries/main/exports/dp.js +13 -0
- package/lib/entries/main/exports/fit.d.ts +8 -0
- package/lib/entries/main/exports/fit.js +14 -0
- package/lib/entries/main/exports/index.d.ts +20 -0
- package/lib/entries/main/exports/index.js +20 -0
- package/lib/entries/main/exports/linkage.d.ts +5 -0
- package/lib/entries/main/exports/linkage.js +15 -0
- package/lib/entries/main/exports/log.d.ts +10 -0
- package/lib/entries/main/exports/log.js +24 -0
- package/lib/entries/main/exports/media.d.ts +6 -0
- package/lib/entries/main/exports/media.js +18 -0
- package/lib/entries/main/exports/misc.d.ts +18 -0
- package/lib/entries/main/exports/misc.js +30 -0
- package/lib/entries/main/exports/offline-dps.d.ts +8 -0
- package/lib/entries/main/exports/offline-dps.js +28 -0
- package/lib/entries/main/exports/open/do-open-close-action.d.ts +2 -0
- package/lib/entries/main/exports/open/do-open-close-action.js +68 -0
- package/lib/entries/main/exports/open/index.d.ts +16 -0
- package/lib/entries/main/exports/open/index.js +44 -0
- package/lib/entries/main/exports/open.d.ts +16 -0
- package/lib/entries/main/exports/open.js +44 -0
- package/lib/entries/main/exports/screen/bind.d.ts +4 -0
- package/lib/entries/main/exports/screen/bind.js +8 -0
- package/lib/entries/main/exports/screen/list.d.ts +5 -0
- package/lib/entries/main/exports/screen/list.js +13 -0
- package/lib/entries/main/exports/signal.d.ts +6 -0
- package/lib/entries/main/exports/signal.js +14 -0
- package/lib/entries/main/exports/sleep.d.ts +15 -0
- package/lib/entries/main/exports/sleep.js +31 -0
- package/lib/entries/main/exports/state.d.ts +6 -0
- package/lib/entries/main/exports/state.js +19 -0
- package/lib/entries/main/exports/temporary.d.ts +32 -0
- package/lib/entries/main/exports/temporary.js +86 -0
- package/lib/entries/main/exports/unlock/sync.d.ts +1 -0
- package/lib/entries/main/exports/unlock/sync.js +5 -0
- package/lib/entries/main/exports/unlock-method.d.ts +19 -0
- package/lib/entries/main/exports/unlock-method.js +58 -0
- package/lib/entries/main/exports/user/index.d.ts +33 -0
- package/lib/entries/main/exports/user/index.js +35 -0
- package/lib/entries/main/exports/user/sync.d.ts +1 -0
- package/lib/entries/main/exports/user/sync.js +5 -0
- package/lib/entries/main/exports/voice-file.d.ts +7 -0
- package/lib/entries/main/exports/voice-file.js +17 -0
- package/lib/entries/main/exports/yu-channel.d.ts +5 -0
- package/lib/entries/main/exports/yu-channel.js +17 -0
- package/lib/entries/main/index.d.ts +8 -0
- package/lib/entries/main/index.js +36 -0
- package/lib/entries/screen/bootstrap/bootstrap-lock-instance.d.ts +7 -0
- package/lib/entries/screen/bootstrap/bootstrap-lock-instance.js +12 -0
- package/lib/entries/screen/bootstrap/bootstrap.d.ts +4 -0
- package/lib/entries/screen/bootstrap/bootstrap.js +69 -0
- package/lib/entries/screen/bootstrap/lock-instance-runtime-ref.d.ts +3 -0
- package/lib/entries/screen/bootstrap/lock-instance-runtime-ref.js +7 -0
- package/lib/entries/screen/bootstrap/primary-instance.d.ts +6 -0
- package/lib/entries/screen/bootstrap/primary-instance.js +24 -0
- package/lib/entries/screen/bootstrap/resolve-runtime-from-export-this.d.ts +5 -0
- package/lib/entries/screen/bootstrap/resolve-runtime-from-export-this.js +29 -0
- package/lib/entries/screen/bootstrap/top-level-runtime.d.ts +2 -0
- package/lib/entries/screen/bootstrap/top-level-runtime.js +9 -0
- package/lib/entries/screen/build-instance.d.ts +9 -0
- package/lib/entries/screen/build-instance.js +57 -0
- package/lib/entries/screen/exports/binding.d.ts +6 -0
- package/lib/entries/screen/exports/binding.js +15 -0
- package/lib/entries/screen/exports/device.d.ts +16 -0
- package/lib/entries/screen/exports/device.js +41 -0
- package/lib/entries/screen/exports/event.d.ts +3 -0
- package/lib/entries/screen/exports/event.js +5 -0
- package/lib/entries/screen/exports/index.d.ts +4 -0
- package/lib/entries/screen/exports/index.js +4 -0
- package/lib/entries/screen/exports/user.d.ts +2 -0
- package/lib/entries/screen/exports/user.js +8 -0
- package/lib/entries/screen/index.d.ts +8 -0
- package/lib/entries/screen/index.js +36 -0
- package/lib/feature/dp/get-dp-value.d.ts +3 -0
- package/lib/feature/dp/get-dp-value.js +3 -0
- package/lib/feature/dp/has-dp.d.ts +2 -0
- package/lib/feature/dp/has-dp.js +1 -0
- package/lib/feature/dp/publish-dps.d.ts +7 -0
- package/lib/feature/dp/publish-dps.js +155 -0
- package/lib/feature/fit/bind-fit-to-lock.d.ts +6 -0
- package/lib/feature/fit/bind-fit-to-lock.js +222 -0
- package/lib/feature/fit/bind-lock-to-fit.d.ts +4 -0
- package/lib/feature/fit/bind-lock-to-fit.js +167 -0
- package/lib/feature/fit/ble-key.d.ts +16 -0
- package/lib/feature/fit/ble-key.js +99 -0
- package/lib/feature/fit/list.d.ts +3 -0
- package/lib/feature/fit/list.js +28 -0
- package/lib/feature/fit/method/add-flow.d.ts +7 -0
- package/lib/feature/fit/method/add-flow.js +380 -0
- package/lib/feature/fit/method/add-method-events.d.ts +5 -0
- package/lib/feature/fit/method/add-method-events.js +11 -0
- package/lib/feature/fit/method/add-password.d.ts +3 -0
- package/lib/feature/fit/method/add-password.js +99 -0
- package/lib/feature/fit/method/internal/base.d.ts +19 -0
- package/lib/feature/fit/method/internal/base.js +134 -0
- package/lib/feature/fit/method/list.d.ts +3 -0
- package/lib/feature/fit/method/list.js +64 -0
- package/lib/feature/fit/method/types.d.ts +68 -0
- package/lib/feature/fit/method/types.js +1 -0
- package/lib/feature/fit/method/update-remove.d.ts +4 -0
- package/lib/feature/fit/method/update-remove.js +159 -0
- package/lib/feature/fit/password-list.d.ts +24 -0
- package/lib/feature/fit/password-list.js +31 -0
- package/lib/feature/fit/resolve-slave-id.d.ts +2 -0
- package/lib/feature/fit/resolve-slave-id.js +38 -0
- package/lib/feature/fit/setting.d.ts +2 -0
- package/lib/feature/fit/setting.js +27 -0
- package/lib/feature/fit/shared.d.ts +27 -0
- package/lib/feature/fit/shared.js +118 -0
- package/lib/feature/fit/sync.d.ts +4 -0
- package/lib/feature/fit/sync.js +85 -0
- package/lib/feature/fit/temp-password.d.ts +27 -0
- package/lib/feature/fit/temp-password.js +428 -0
- package/lib/feature/fit/users.d.ts +12 -0
- package/lib/feature/fit/users.js +25 -0
- package/lib/feature/linkage/linkage.d.ts +10 -0
- package/lib/{linkage.js → feature/linkage/linkage.js} +30 -30
- package/lib/feature/log/log.d.ts +63 -0
- package/lib/feature/log/log.js +438 -0
- package/lib/feature/media/media.d.ts +31 -0
- package/lib/feature/media/media.js +66 -0
- package/lib/feature/media/rotate.d.ts +6 -0
- package/lib/feature/media/rotate.js +6 -0
- package/lib/feature/misc/ble-control.d.ts +2 -0
- package/lib/feature/misc/ble-control.js +38 -0
- package/lib/feature/misc/capability.d.ts +8 -0
- package/lib/{capability.js → feature/misc/capability.js} +39 -29
- package/lib/feature/misc/connect-device.d.ts +2 -0
- package/lib/feature/misc/connect-device.js +206 -0
- package/lib/feature/misc/dp-period.d.ts +18 -0
- package/lib/feature/misc/dp-period.js +75 -0
- package/lib/feature/misc/is-use-near-channel-for-runtime.d.ts +2 -0
- package/lib/feature/misc/is-use-near-channel-for-runtime.js +17 -0
- package/lib/feature/misc/open-scene.d.ts +3 -0
- package/lib/feature/misc/open-scene.js +63 -0
- package/lib/feature/misc/signal.d.ts +12 -0
- package/lib/feature/misc/signal.js +36 -0
- package/lib/feature/misc/sleep.d.ts +14 -0
- package/lib/feature/misc/sleep.js +66 -0
- package/lib/feature/misc/types.d.ts +7 -0
- package/lib/feature/misc/types.js +1 -0
- package/lib/feature/misc/update-config.d.ts +4 -0
- package/lib/feature/misc/update-config.js +9 -0
- package/lib/feature/misc/validate-pwd.d.ts +2 -0
- package/lib/feature/misc/validate-pwd.js +10 -0
- package/lib/feature/misc/yu-channel.d.ts +6 -0
- package/lib/feature/misc/yu-channel.js +26 -0
- package/lib/feature/offline-dps/index.d.ts +10 -0
- package/lib/feature/offline-dps/index.js +133 -0
- package/lib/feature/password/ble-temp-payload.d.ts +3 -0
- package/lib/{sync → feature/password}/ble-temp-payload.js +10 -10
- package/lib/feature/password/sync-temp.d.ts +4 -0
- package/lib/feature/password/sync-temp.js +91 -0
- package/lib/feature/password/temporary/custom-dp-ble.d.ts +6 -0
- package/lib/feature/password/temporary/custom-dp-ble.js +263 -0
- package/lib/feature/password/temporary/custom-dp-create-shared.d.ts +34 -0
- package/lib/feature/password/temporary/custom-dp-create-shared.js +64 -0
- package/lib/feature/password/temporary/custom-dp.d.ts +6 -0
- package/lib/feature/password/temporary/custom-dp.js +241 -0
- package/lib/feature/password/temporary/freeze-ble-key.d.ts +4 -0
- package/lib/feature/password/temporary/freeze-ble-key.js +7 -0
- package/lib/feature/password/temporary/freeze-rename.d.ts +5 -0
- package/lib/feature/password/temporary/freeze-rename.js +72 -0
- package/lib/feature/password/temporary/internal/change-password-phase.d.ts +2 -0
- package/lib/feature/password/temporary/internal/change-password-phase.js +48 -0
- package/lib/feature/password/temporary/internal/constants.d.ts +12 -0
- package/lib/feature/password/temporary/internal/constants.js +21 -0
- package/lib/feature/password/temporary/internal/password-helpers.d.ts +4 -0
- package/lib/feature/password/temporary/internal/password-helpers.js +18 -0
- package/lib/feature/password/temporary/internal/password-type-map.d.ts +2 -0
- package/lib/feature/password/temporary/internal/password-type-map.js +7 -0
- package/lib/feature/password/temporary/lists.d.ts +16 -0
- package/lib/feature/password/temporary/lists.js +157 -0
- package/lib/feature/password/temporary/offline-create.d.ts +7 -0
- package/lib/feature/password/temporary/offline-create.js +192 -0
- package/lib/feature/password/temporary/types.d.ts +107 -0
- package/lib/feature/password/temporary/types.js +1 -0
- package/lib/feature/password/temporary/wifi-offline.d.ts +5 -0
- package/lib/feature/password/temporary/wifi-offline.js +85 -0
- package/lib/feature/password/temporary/wifi-online.d.ts +28 -0
- package/lib/feature/password/temporary/wifi-online.js +153 -0
- package/lib/feature/screen/bind.d.ts +4 -0
- package/lib/feature/screen/bind.js +181 -0
- package/lib/feature/screen/error.d.ts +1 -0
- package/lib/feature/screen/error.js +34 -0
- package/lib/feature/screen/event.d.ts +3 -0
- package/lib/feature/screen/event.js +19 -0
- package/lib/feature/screen/list.d.ts +13 -0
- package/lib/feature/screen/list.js +56 -0
- package/lib/feature/service/goto-service.d.ts +5 -0
- package/lib/feature/service/goto-service.js +16 -0
- package/lib/feature/state/clear.d.ts +2 -0
- package/lib/feature/state/clear.js +17 -0
- package/lib/feature/state/device-status-events.d.ts +5 -0
- package/lib/feature/state/device-status-events.js +11 -0
- package/lib/feature/state/device-status.d.ts +5 -0
- package/lib/feature/state/device-status.js +130 -0
- package/lib/feature/state/dp-change.d.ts +3 -0
- package/lib/feature/state/dp-change.js +44 -0
- package/lib/feature/state/init-state.d.ts +2 -0
- package/lib/feature/state/init-state.js +167 -0
- package/lib/feature/state/internal/read-is-sleep.d.ts +2 -0
- package/lib/feature/state/internal/read-is-sleep.js +9 -0
- package/lib/feature/state/internal/share-thread-local.d.ts +2 -0
- package/lib/feature/state/internal/share-thread-local.js +4 -0
- package/lib/feature/state/platform-routing.d.ts +3 -0
- package/lib/feature/state/platform-routing.js +155 -0
- package/lib/feature/state/remote-permissions.d.ts +4 -0
- package/lib/feature/state/remote-permissions.js +30 -0
- package/lib/feature/state/sync/offline-dps.d.ts +2 -0
- package/lib/feature/state/sync/offline-dps.js +71 -0
- package/lib/feature/state/sync/remote-serect-key.d.ts +3 -0
- package/lib/feature/state/sync/remote-serect-key.js +74 -0
- package/lib/feature/state/sync/t0.d.ts +3 -0
- package/lib/feature/state/sync/t0.js +64 -0
- package/lib/feature/unlock/door/check-remote.d.ts +2 -0
- package/lib/feature/unlock/door/check-remote.js +40 -0
- package/lib/feature/unlock/door/check-user-valid.d.ts +2 -0
- package/lib/feature/unlock/door/check-user-valid.js +21 -0
- package/lib/feature/unlock/door/door-action.d.ts +2 -0
- package/lib/feature/unlock/door/door-action.js +32 -0
- package/lib/feature/unlock/door/door-ble-only.d.ts +2 -0
- package/lib/feature/unlock/door/door-ble-only.js +102 -0
- package/lib/feature/unlock/door/door-matter-lan.d.ts +2 -0
- package/lib/feature/unlock/door/door-matter-lan.js +15 -0
- package/lib/feature/unlock/door/door-near-dual-mode.d.ts +2 -0
- package/lib/feature/unlock/door/door-near-dual-mode.js +39 -0
- package/lib/feature/unlock/door/door-remote-cloud.d.ts +2 -0
- package/lib/feature/unlock/door/door-remote-cloud.js +69 -0
- package/lib/feature/unlock/door/door-report.d.ts +11 -0
- package/lib/feature/unlock/door/door-report.js +96 -0
- package/lib/feature/unlock/door/internal/report-error.d.ts +2 -0
- package/lib/feature/unlock/door/internal/report-error.js +46 -0
- package/lib/feature/unlock/door/open-close-path.d.ts +3 -0
- package/lib/feature/unlock/door/open-close-path.js +30 -0
- package/lib/feature/unlock/door/remote-permission.d.ts +5 -0
- package/lib/feature/unlock/door/remote-permission.js +67 -0
- package/lib/feature/unlock/door/remove-share-user-once.d.ts +2 -0
- package/lib/feature/unlock/door/remove-share-user-once.js +21 -0
- package/lib/feature/unlock/door/types.d.ts +4 -0
- package/lib/feature/unlock/door/types.js +1 -0
- package/lib/feature/unlock/door/voice-unlock-pwd.d.ts +4 -0
- package/lib/feature/unlock/door/voice-unlock-pwd.js +25 -0
- package/lib/feature/unlock/door/wifi-pro-confirm.d.ts +2 -0
- package/lib/feature/unlock/door/wifi-pro-confirm.js +69 -0
- package/lib/feature/unlock/method/add-flow.d.ts +7 -0
- package/lib/feature/unlock/method/add-flow.js +403 -0
- package/lib/feature/unlock/method/add-method-events.d.ts +5 -0
- package/lib/feature/unlock/method/add-method-events.js +11 -0
- package/lib/feature/unlock/method/add-password.d.ts +3 -0
- package/lib/feature/unlock/method/add-password.js +99 -0
- package/lib/feature/unlock/method/bind-unbind.d.ts +8 -0
- package/lib/feature/unlock/method/bind-unbind.js +113 -0
- package/lib/feature/unlock/method/detail.d.ts +3 -0
- package/lib/feature/unlock/method/detail.js +35 -0
- package/lib/feature/unlock/method/guide.d.ts +3 -0
- package/lib/feature/unlock/method/guide.js +48 -0
- package/lib/feature/unlock/method/internal/base.d.ts +109 -0
- package/lib/feature/unlock/method/internal/base.js +89 -0
- package/lib/feature/unlock/method/internal/errors.d.ts +5 -0
- package/lib/feature/unlock/method/internal/errors.js +13 -0
- package/lib/feature/unlock/method/internal/special-check.d.ts +13 -0
- package/lib/feature/unlock/method/internal/special-check.js +38 -0
- package/lib/feature/unlock/method/types.d.ts +70 -0
- package/lib/feature/unlock/method/types.js +1 -0
- package/lib/feature/unlock/method/update-remove.d.ts +4 -0
- package/lib/feature/unlock/method/update-remove.js +138 -0
- package/lib/feature/unlock/method/verify-code.d.ts +3 -0
- package/lib/feature/unlock/method/verify-code.js +7 -0
- package/lib/feature/unlock/sync/unlock-method.d.ts +3 -0
- package/lib/feature/unlock/sync/unlock-method.js +79 -0
- package/lib/feature/user/current-user.d.ts +3 -0
- package/lib/feature/user/current-user.js +33 -0
- package/lib/feature/user/delete-user-dp.d.ts +3 -0
- package/lib/{utils/user.js → feature/user/delete-user-dp.js} +13 -13
- package/lib/feature/user/share-user.d.ts +29 -0
- package/lib/feature/user/share-user.js +228 -0
- package/lib/feature/user/sync-user.d.ts +2 -0
- package/lib/feature/user/sync-user.js +151 -0
- package/lib/feature/user/user.d.ts +37 -0
- package/lib/feature/user/user.js +484 -0
- package/lib/feature/utils/index.d.ts +12 -0
- package/lib/feature/utils/index.js +165 -0
- package/lib/feature/voice-file/voice-file.d.ts +27 -0
- package/lib/feature/voice-file/voice-file.js +203 -0
- package/lib/fit.d.ts +4 -0
- package/lib/fit.js +3 -0
- package/lib/index.d.ts +2 -21
- package/lib/index.js +1 -74
- package/lib/interface.d.ts +50 -3
- package/lib/{utils → platform}/device.d.ts +48 -0
- package/lib/{utils → platform}/device.js +153 -2
- package/lib/platform/index.d.ts +2 -0
- package/lib/platform/index.js +2 -0
- package/lib/{utils → platform}/ipc.d.ts +3 -0
- package/lib/{utils → platform}/ipc.js +11 -0
- package/lib/platform/transport/index.d.ts +1 -0
- package/lib/platform/transport/index.js +1 -0
- package/lib/runtime/LockDeviceRuntime.d.ts +12 -0
- package/lib/runtime/LockDeviceRuntime.js +34 -0
- package/lib/runtime/device-status/compute-device-status.d.ts +25 -0
- package/lib/runtime/device-status/compute-device-status.js +94 -0
- package/lib/runtime/index.d.ts +5 -0
- package/lib/runtime/index.js +3 -0
- package/lib/runtime/lock-config.d.ts +28 -0
- package/lib/runtime/lock-config.js +37 -0
- package/lib/runtime/registry.d.ts +7 -0
- package/lib/runtime/registry.js +28 -0
- package/lib/runtime/runtime-state-types.d.ts +20 -0
- package/lib/runtime/runtime-state-types.js +1 -0
- package/lib/screen.d.ts +4 -0
- package/lib/screen.js +3 -0
- package/lib/utils/constant.d.ts +3 -0
- package/lib/utils/constant.js +3 -0
- package/lib/utils/errors.js +39 -4
- package/lib/utils/event.js +2 -1
- package/lib/utils/index.d.ts +22 -13
- package/lib/utils/index.js +39 -118
- package/lib/utils/sdk-log.d.ts +28 -0
- package/lib/utils/sdk-log.js +128 -0
- package/package.json +26 -7
- package/lib/capability.d.ts +0 -4
- package/lib/config/index.d.ts +0 -28
- package/lib/config/index.js +0 -41
- package/lib/event.d.ts +0 -2
- package/lib/event.js +0 -2
- package/lib/linkage.d.ts +0 -8
- package/lib/log.d.ts +0 -41
- package/lib/log.js +0 -311
- package/lib/media.d.ts +0 -14
- package/lib/media.js +0 -27
- package/lib/offline-dps.d.ts +0 -9
- package/lib/offline-dps.js +0 -76
- package/lib/open/ble-dedicated-dp.d.ts +0 -4
- package/lib/open/ble-dedicated-dp.js +0 -148
- package/lib/open/ble-remote-no-dp-key.d.ts +0 -4
- package/lib/open/ble-remote-no-dp-key.js +0 -69
- package/lib/open/report-status.d.ts +0 -1
- package/lib/open/report-status.js +0 -23
- package/lib/open.d.ts +0 -22
- package/lib/open.js +0 -262
- package/lib/other.d.ts +0 -31
- package/lib/other.js +0 -291
- package/lib/signal.d.ts +0 -14
- package/lib/signal.js +0 -31
- package/lib/sleep.d.ts +0 -19
- package/lib/sleep.js +0 -79
- package/lib/state.d.ts +0 -16
- package/lib/state.js +0 -351
- package/lib/sync/ble-temp-payload.d.ts +0 -2
- package/lib/sync/offline-dps.d.ts +0 -1
- package/lib/sync/offline-dps.js +0 -29
- package/lib/sync/remote-serect-key.d.ts +0 -2
- package/lib/sync/remote-serect-key.js +0 -43
- package/lib/sync/t0.d.ts +0 -2
- package/lib/sync/t0.js +0 -26
- package/lib/sync/temp.d.ts +0 -3
- package/lib/sync/temp.js +0 -70
- package/lib/sync/unlock-method.d.ts +0 -2
- package/lib/sync/unlock-method.js +0 -42
- package/lib/sync/user.d.ts +0 -2
- package/lib/sync/user.js +0 -68
- package/lib/temporary.d.ts +0 -171
- package/lib/temporary.js +0 -698
- package/lib/unlock-method.d.ts +0 -90
- package/lib/unlock-method.js +0 -701
- package/lib/user.d.ts +0 -30
- package/lib/user.js +0 -298
- package/lib/utils/publishDps.d.ts +0 -6
- package/lib/utils/publishDps.js +0 -78
- package/lib/utils/user.d.ts +0 -2
- /package/lib/{parse/index.d.ts → utils/parse.d.ts} +0 -0
- /package/lib/{parse/index.js → utils/parse.js} +0 -0
|
@@ -0,0 +1,1137 @@
|
|
|
1
|
+
import type { DpMap } from "@ray-js/tuya-dp-transform";
|
|
2
|
+
export interface DpBinaryProtocolMaps {
|
|
3
|
+
publish: DpMap;
|
|
4
|
+
report: DpMap;
|
|
5
|
+
publishMemberRole?: DpMap;
|
|
6
|
+
}
|
|
7
|
+
export declare const DP_BINARY_PROTOCOL_REGISTRY: {
|
|
8
|
+
readonly remote_no_dp_key: {
|
|
9
|
+
readonly publish: DpMap;
|
|
10
|
+
readonly report: DpMap;
|
|
11
|
+
};
|
|
12
|
+
readonly remote_no_pd_setkey: {
|
|
13
|
+
readonly publish: DpMap;
|
|
14
|
+
readonly report: DpMap;
|
|
15
|
+
};
|
|
16
|
+
readonly ble_unlock_check: {
|
|
17
|
+
readonly publish: readonly [{
|
|
18
|
+
readonly name: "masterId";
|
|
19
|
+
readonly bytes: 2;
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "slaveId";
|
|
22
|
+
readonly bytes: 2;
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "masterRandom";
|
|
25
|
+
readonly bytes: 1;
|
|
26
|
+
readonly loop: true;
|
|
27
|
+
readonly limit: 8;
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "operation";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "timestamp";
|
|
32
|
+
readonly bytes: 4;
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "method";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "memberId";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "adminFlag";
|
|
39
|
+
}];
|
|
40
|
+
readonly report: readonly [{
|
|
41
|
+
readonly name: "slaveId";
|
|
42
|
+
readonly bytes: 2;
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "masterId";
|
|
45
|
+
readonly bytes: 2;
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "masterRandom";
|
|
48
|
+
readonly bytes: 8;
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "operation";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "timestamp";
|
|
53
|
+
readonly bytes: 4;
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "method";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "returnStatus";
|
|
58
|
+
}];
|
|
59
|
+
};
|
|
60
|
+
readonly check_code_set: {
|
|
61
|
+
readonly publish: readonly [{
|
|
62
|
+
readonly name: "masterId";
|
|
63
|
+
readonly bytes: 2;
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "slaveId";
|
|
66
|
+
readonly bytes: 2;
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "masterRandom";
|
|
69
|
+
readonly bytes: 1;
|
|
70
|
+
readonly loop: true;
|
|
71
|
+
readonly limit: 8;
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "operation";
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "targetMasterId";
|
|
76
|
+
readonly bytes: 2;
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "targetMasterRandom";
|
|
79
|
+
readonly bytes: 1;
|
|
80
|
+
readonly loop: true;
|
|
81
|
+
readonly limit: 8;
|
|
82
|
+
}];
|
|
83
|
+
readonly report: readonly [{
|
|
84
|
+
readonly name: "slaveId";
|
|
85
|
+
readonly bytes: 2;
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "masterId";
|
|
88
|
+
readonly bytes: 2;
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "masterRandom";
|
|
91
|
+
readonly bytes: 1;
|
|
92
|
+
readonly loop: true;
|
|
93
|
+
readonly limit: 8;
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "operation";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "targetMasterId";
|
|
98
|
+
readonly bytes: 2;
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "returnStatus";
|
|
101
|
+
}];
|
|
102
|
+
};
|
|
103
|
+
readonly bluetooth_unlock: {
|
|
104
|
+
readonly publish: readonly [{
|
|
105
|
+
readonly name: "function";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "memberId";
|
|
108
|
+
}];
|
|
109
|
+
readonly report: readonly [{
|
|
110
|
+
readonly name: "returnStatus";
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "memberId";
|
|
113
|
+
}];
|
|
114
|
+
};
|
|
115
|
+
readonly unlock_method_create: {
|
|
116
|
+
readonly publish: readonly [{
|
|
117
|
+
readonly name: "type";
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "stage";
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "admin";
|
|
122
|
+
readonly type: "boolean";
|
|
123
|
+
readonly defaultValue: false;
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "memberId";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "unlockId";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "validConfig";
|
|
130
|
+
readonly type: "child";
|
|
131
|
+
readonly bytes: 17;
|
|
132
|
+
readonly childMap: readonly [{
|
|
133
|
+
readonly name: "startTime";
|
|
134
|
+
readonly bytes: 4;
|
|
135
|
+
}, {
|
|
136
|
+
readonly name: "endTime";
|
|
137
|
+
readonly bytes: 4;
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "loop";
|
|
140
|
+
}, {
|
|
141
|
+
readonly name: "loopConfig";
|
|
142
|
+
readonly condition: {
|
|
143
|
+
readonly type: "and";
|
|
144
|
+
readonly conditions: readonly [{
|
|
145
|
+
readonly prop: "validConfig.loop";
|
|
146
|
+
readonly value: 2;
|
|
147
|
+
readonly operation: "neq";
|
|
148
|
+
}, {
|
|
149
|
+
readonly prop: "loop";
|
|
150
|
+
readonly value: 3;
|
|
151
|
+
readonly operation: "neq";
|
|
152
|
+
}];
|
|
153
|
+
};
|
|
154
|
+
readonly bytes: 4;
|
|
155
|
+
readonly defaultValue: 0;
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "weeks";
|
|
158
|
+
readonly condition: {
|
|
159
|
+
readonly prop: "validConfig.loop";
|
|
160
|
+
readonly value: 2;
|
|
161
|
+
};
|
|
162
|
+
readonly type: "custom";
|
|
163
|
+
readonly bytes: 4;
|
|
164
|
+
readonly parse: (value: number) => number[];
|
|
165
|
+
readonly format: (value: number[]) => string;
|
|
166
|
+
readonly defaultValue: readonly [0, 0, 0, 0, 0, 0, 0];
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "days";
|
|
169
|
+
readonly condition: {
|
|
170
|
+
readonly prop: "validConfig.loop";
|
|
171
|
+
readonly value: 3;
|
|
172
|
+
};
|
|
173
|
+
readonly type: "bits";
|
|
174
|
+
readonly bytes: 4;
|
|
175
|
+
readonly defaultValue: 0;
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "startHour";
|
|
178
|
+
readonly type: "number";
|
|
179
|
+
readonly bytes: 1;
|
|
180
|
+
readonly defaultValue: 0;
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "startMinute";
|
|
183
|
+
readonly type: "number";
|
|
184
|
+
readonly bytes: 1;
|
|
185
|
+
readonly defaultValue: 0;
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "endHour";
|
|
188
|
+
readonly type: "number";
|
|
189
|
+
readonly bytes: 1;
|
|
190
|
+
readonly defaultValue: 0;
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "endMinute";
|
|
193
|
+
readonly type: "number";
|
|
194
|
+
readonly bytes: 1;
|
|
195
|
+
readonly defaultValue: 0;
|
|
196
|
+
}];
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "validNum";
|
|
199
|
+
}, {
|
|
200
|
+
readonly name: "pwdLength";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "pwd";
|
|
203
|
+
readonly type: "number";
|
|
204
|
+
readonly limit: "pwdLength";
|
|
205
|
+
readonly loop: true;
|
|
206
|
+
readonly defaultValue: readonly [];
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "sn";
|
|
209
|
+
readonly bytes: 2;
|
|
210
|
+
}];
|
|
211
|
+
readonly report: readonly [{
|
|
212
|
+
readonly name: "type";
|
|
213
|
+
}, {
|
|
214
|
+
readonly name: "stage";
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "admin";
|
|
217
|
+
readonly type: "boolean";
|
|
218
|
+
readonly defaultValue: false;
|
|
219
|
+
}, {
|
|
220
|
+
readonly name: "memberId";
|
|
221
|
+
}, {
|
|
222
|
+
readonly name: "unlockId";
|
|
223
|
+
}, {
|
|
224
|
+
readonly name: "total";
|
|
225
|
+
readonly condition: {
|
|
226
|
+
readonly prop: "stage";
|
|
227
|
+
readonly value: 0;
|
|
228
|
+
};
|
|
229
|
+
}, {
|
|
230
|
+
readonly name: "step";
|
|
231
|
+
readonly condition: {
|
|
232
|
+
readonly prop: "stage";
|
|
233
|
+
readonly value: 252;
|
|
234
|
+
};
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "stageFail";
|
|
237
|
+
readonly condition: {
|
|
238
|
+
readonly prop: "stage";
|
|
239
|
+
readonly value: 253;
|
|
240
|
+
};
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "none";
|
|
243
|
+
readonly condition: {
|
|
244
|
+
readonly type: "and";
|
|
245
|
+
readonly conditions: readonly [{
|
|
246
|
+
readonly prop: "stage";
|
|
247
|
+
readonly value: 0;
|
|
248
|
+
readonly operation: "neq";
|
|
249
|
+
}, {
|
|
250
|
+
readonly prop: "stage";
|
|
251
|
+
readonly value: 252;
|
|
252
|
+
readonly operation: "neq";
|
|
253
|
+
}, {
|
|
254
|
+
readonly prop: "stage";
|
|
255
|
+
readonly value: 253;
|
|
256
|
+
readonly operation: "neq";
|
|
257
|
+
}];
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "status";
|
|
261
|
+
}, {
|
|
262
|
+
readonly name: "sn";
|
|
263
|
+
readonly bytes: 2;
|
|
264
|
+
}];
|
|
265
|
+
};
|
|
266
|
+
readonly unlock_method_create_w: {
|
|
267
|
+
readonly publish: ({
|
|
268
|
+
readonly name: "validConfig";
|
|
269
|
+
readonly type: "child";
|
|
270
|
+
readonly bytes: 17;
|
|
271
|
+
readonly childMap: readonly [{
|
|
272
|
+
readonly name: "startTime";
|
|
273
|
+
readonly bytes: 4;
|
|
274
|
+
}, {
|
|
275
|
+
readonly name: "endTime";
|
|
276
|
+
readonly bytes: 4;
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "loop";
|
|
279
|
+
}, {
|
|
280
|
+
readonly name: "loopConfig";
|
|
281
|
+
readonly condition: {
|
|
282
|
+
readonly type: "and";
|
|
283
|
+
readonly conditions: readonly [{
|
|
284
|
+
readonly prop: "validConfig.loop";
|
|
285
|
+
readonly value: 2;
|
|
286
|
+
readonly operation: "neq";
|
|
287
|
+
}, {
|
|
288
|
+
readonly prop: "loop";
|
|
289
|
+
readonly value: 3;
|
|
290
|
+
readonly operation: "neq";
|
|
291
|
+
}];
|
|
292
|
+
};
|
|
293
|
+
readonly bytes: 4;
|
|
294
|
+
readonly defaultValue: 0;
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "weeks";
|
|
297
|
+
readonly condition: {
|
|
298
|
+
readonly prop: "validConfig.loop";
|
|
299
|
+
readonly value: 2;
|
|
300
|
+
};
|
|
301
|
+
readonly type: "custom";
|
|
302
|
+
readonly bytes: 4;
|
|
303
|
+
readonly parse: (value: number) => number[];
|
|
304
|
+
readonly format: (value: number[]) => string;
|
|
305
|
+
readonly defaultValue: readonly [0, 0, 0, 0, 0, 0, 0];
|
|
306
|
+
}, {
|
|
307
|
+
readonly name: "days";
|
|
308
|
+
readonly condition: {
|
|
309
|
+
readonly prop: "validConfig.loop";
|
|
310
|
+
readonly value: 3;
|
|
311
|
+
};
|
|
312
|
+
readonly type: "bits";
|
|
313
|
+
readonly bytes: 4;
|
|
314
|
+
readonly defaultValue: 0;
|
|
315
|
+
}, {
|
|
316
|
+
readonly name: "startHour";
|
|
317
|
+
readonly type: "number";
|
|
318
|
+
readonly bytes: 1;
|
|
319
|
+
readonly defaultValue: 0;
|
|
320
|
+
}, {
|
|
321
|
+
readonly name: "startMinute";
|
|
322
|
+
readonly type: "number";
|
|
323
|
+
readonly bytes: 1;
|
|
324
|
+
readonly defaultValue: 0;
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "endHour";
|
|
327
|
+
readonly type: "number";
|
|
328
|
+
readonly bytes: 1;
|
|
329
|
+
readonly defaultValue: 0;
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "endMinute";
|
|
332
|
+
readonly type: "number";
|
|
333
|
+
readonly bytes: 1;
|
|
334
|
+
readonly defaultValue: 0;
|
|
335
|
+
}];
|
|
336
|
+
} | {
|
|
337
|
+
readonly name: "pwdLength";
|
|
338
|
+
} | {
|
|
339
|
+
readonly name: "pwd";
|
|
340
|
+
readonly type: "number";
|
|
341
|
+
readonly limit: "pwdLength";
|
|
342
|
+
readonly loop: true;
|
|
343
|
+
readonly defaultValue: readonly [];
|
|
344
|
+
} | {
|
|
345
|
+
name: string;
|
|
346
|
+
type?: undefined;
|
|
347
|
+
defaultValue?: undefined;
|
|
348
|
+
bytes?: undefined;
|
|
349
|
+
} | {
|
|
350
|
+
name: string;
|
|
351
|
+
type: string;
|
|
352
|
+
defaultValue: boolean;
|
|
353
|
+
bytes?: undefined;
|
|
354
|
+
} | {
|
|
355
|
+
name: string;
|
|
356
|
+
bytes: number;
|
|
357
|
+
type?: undefined;
|
|
358
|
+
defaultValue?: undefined;
|
|
359
|
+
})[];
|
|
360
|
+
readonly report: ({
|
|
361
|
+
name: string;
|
|
362
|
+
type?: undefined;
|
|
363
|
+
defaultValue?: undefined;
|
|
364
|
+
bytes?: undefined;
|
|
365
|
+
} | {
|
|
366
|
+
name: string;
|
|
367
|
+
type: string;
|
|
368
|
+
defaultValue: boolean;
|
|
369
|
+
bytes?: undefined;
|
|
370
|
+
} | {
|
|
371
|
+
name: string;
|
|
372
|
+
bytes: number;
|
|
373
|
+
type?: undefined;
|
|
374
|
+
defaultValue?: undefined;
|
|
375
|
+
} | {
|
|
376
|
+
name: string;
|
|
377
|
+
condition: {
|
|
378
|
+
prop: string;
|
|
379
|
+
value: number;
|
|
380
|
+
type?: undefined;
|
|
381
|
+
conditions?: undefined;
|
|
382
|
+
};
|
|
383
|
+
} | {
|
|
384
|
+
name: string;
|
|
385
|
+
condition: {
|
|
386
|
+
type: string;
|
|
387
|
+
conditions: {
|
|
388
|
+
prop: string;
|
|
389
|
+
value: number;
|
|
390
|
+
operation: string;
|
|
391
|
+
}[];
|
|
392
|
+
prop?: undefined;
|
|
393
|
+
value?: undefined;
|
|
394
|
+
};
|
|
395
|
+
})[];
|
|
396
|
+
};
|
|
397
|
+
readonly unlock_method_delete: {
|
|
398
|
+
readonly publish: readonly [{
|
|
399
|
+
readonly name: "type";
|
|
400
|
+
}, {
|
|
401
|
+
readonly name: "stage";
|
|
402
|
+
}, {
|
|
403
|
+
readonly name: "admin";
|
|
404
|
+
readonly type: "boolean";
|
|
405
|
+
readonly defaultValue: false;
|
|
406
|
+
}, {
|
|
407
|
+
readonly name: "memberId";
|
|
408
|
+
}, {
|
|
409
|
+
readonly name: "unlockId";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "operation";
|
|
412
|
+
}];
|
|
413
|
+
readonly report: ({
|
|
414
|
+
readonly name: "type";
|
|
415
|
+
} | {
|
|
416
|
+
readonly name: "stage";
|
|
417
|
+
} | {
|
|
418
|
+
readonly name: "admin";
|
|
419
|
+
readonly type: "boolean";
|
|
420
|
+
readonly defaultValue: false;
|
|
421
|
+
} | {
|
|
422
|
+
readonly name: "memberId";
|
|
423
|
+
} | {
|
|
424
|
+
readonly name: "unlockId";
|
|
425
|
+
} | {
|
|
426
|
+
readonly name: "operation";
|
|
427
|
+
} | {
|
|
428
|
+
name: string;
|
|
429
|
+
})[];
|
|
430
|
+
};
|
|
431
|
+
readonly unlock_method_delete_w: {
|
|
432
|
+
readonly publish: ({
|
|
433
|
+
name: string;
|
|
434
|
+
type?: undefined;
|
|
435
|
+
defaultValue?: undefined;
|
|
436
|
+
bytes?: undefined;
|
|
437
|
+
} | {
|
|
438
|
+
name: string;
|
|
439
|
+
type: string;
|
|
440
|
+
defaultValue: boolean;
|
|
441
|
+
bytes?: undefined;
|
|
442
|
+
} | {
|
|
443
|
+
name: string;
|
|
444
|
+
bytes: number;
|
|
445
|
+
type?: undefined;
|
|
446
|
+
defaultValue?: undefined;
|
|
447
|
+
})[];
|
|
448
|
+
readonly report: ({
|
|
449
|
+
name: string;
|
|
450
|
+
type?: undefined;
|
|
451
|
+
defaultValue?: undefined;
|
|
452
|
+
bytes?: undefined;
|
|
453
|
+
} | {
|
|
454
|
+
name: string;
|
|
455
|
+
type: string;
|
|
456
|
+
defaultValue: boolean;
|
|
457
|
+
bytes?: undefined;
|
|
458
|
+
} | {
|
|
459
|
+
name: string;
|
|
460
|
+
bytes: number;
|
|
461
|
+
type?: undefined;
|
|
462
|
+
defaultValue?: undefined;
|
|
463
|
+
})[];
|
|
464
|
+
};
|
|
465
|
+
readonly unlock_method_modify: {
|
|
466
|
+
readonly publish: readonly [{
|
|
467
|
+
readonly name: "type";
|
|
468
|
+
}, {
|
|
469
|
+
readonly name: "stage";
|
|
470
|
+
}, {
|
|
471
|
+
readonly name: "admin";
|
|
472
|
+
readonly type: "boolean";
|
|
473
|
+
readonly defaultValue: false;
|
|
474
|
+
}, {
|
|
475
|
+
readonly name: "memberId";
|
|
476
|
+
}, {
|
|
477
|
+
readonly name: "unlockId";
|
|
478
|
+
}, {
|
|
479
|
+
readonly name: "validConfig";
|
|
480
|
+
readonly type: "child";
|
|
481
|
+
readonly bytes: 17;
|
|
482
|
+
readonly childMap: readonly [{
|
|
483
|
+
readonly name: "startTime";
|
|
484
|
+
readonly bytes: 4;
|
|
485
|
+
}, {
|
|
486
|
+
readonly name: "endTime";
|
|
487
|
+
readonly bytes: 4;
|
|
488
|
+
}, {
|
|
489
|
+
readonly name: "loop";
|
|
490
|
+
}, {
|
|
491
|
+
readonly name: "loopConfig";
|
|
492
|
+
readonly condition: {
|
|
493
|
+
readonly type: "and";
|
|
494
|
+
readonly conditions: readonly [{
|
|
495
|
+
readonly prop: "validConfig.loop";
|
|
496
|
+
readonly value: 2;
|
|
497
|
+
readonly operation: "neq";
|
|
498
|
+
}, {
|
|
499
|
+
readonly prop: "loop";
|
|
500
|
+
readonly value: 3;
|
|
501
|
+
readonly operation: "neq";
|
|
502
|
+
}];
|
|
503
|
+
};
|
|
504
|
+
readonly bytes: 4;
|
|
505
|
+
readonly defaultValue: 0;
|
|
506
|
+
}, {
|
|
507
|
+
readonly name: "weeks";
|
|
508
|
+
readonly condition: {
|
|
509
|
+
readonly prop: "validConfig.loop";
|
|
510
|
+
readonly value: 2;
|
|
511
|
+
};
|
|
512
|
+
readonly type: "custom";
|
|
513
|
+
readonly bytes: 4;
|
|
514
|
+
readonly parse: (value: number) => number[];
|
|
515
|
+
readonly format: (value: number[]) => string;
|
|
516
|
+
readonly defaultValue: readonly [0, 0, 0, 0, 0, 0, 0];
|
|
517
|
+
}, {
|
|
518
|
+
readonly name: "days";
|
|
519
|
+
readonly condition: {
|
|
520
|
+
readonly prop: "validConfig.loop";
|
|
521
|
+
readonly value: 3;
|
|
522
|
+
};
|
|
523
|
+
readonly type: "bits";
|
|
524
|
+
readonly bytes: 4;
|
|
525
|
+
readonly defaultValue: 0;
|
|
526
|
+
}, {
|
|
527
|
+
readonly name: "startHour";
|
|
528
|
+
readonly type: "number";
|
|
529
|
+
readonly bytes: 1;
|
|
530
|
+
readonly defaultValue: 0;
|
|
531
|
+
}, {
|
|
532
|
+
readonly name: "startMinute";
|
|
533
|
+
readonly type: "number";
|
|
534
|
+
readonly bytes: 1;
|
|
535
|
+
readonly defaultValue: 0;
|
|
536
|
+
}, {
|
|
537
|
+
readonly name: "endHour";
|
|
538
|
+
readonly type: "number";
|
|
539
|
+
readonly bytes: 1;
|
|
540
|
+
readonly defaultValue: 0;
|
|
541
|
+
}, {
|
|
542
|
+
readonly name: "endMinute";
|
|
543
|
+
readonly type: "number";
|
|
544
|
+
readonly bytes: 1;
|
|
545
|
+
readonly defaultValue: 0;
|
|
546
|
+
}];
|
|
547
|
+
}, {
|
|
548
|
+
readonly name: "validNum";
|
|
549
|
+
}, {
|
|
550
|
+
readonly name: "pwdLength";
|
|
551
|
+
}, {
|
|
552
|
+
readonly name: "pwd";
|
|
553
|
+
readonly type: "number";
|
|
554
|
+
readonly limit: "pwdLength";
|
|
555
|
+
readonly loop: true;
|
|
556
|
+
readonly defaultValue: readonly [];
|
|
557
|
+
}];
|
|
558
|
+
readonly report: readonly [{
|
|
559
|
+
readonly name: "type";
|
|
560
|
+
}, {
|
|
561
|
+
readonly name: "stage";
|
|
562
|
+
}, {
|
|
563
|
+
readonly name: "admin";
|
|
564
|
+
readonly type: "boolean";
|
|
565
|
+
readonly defaultValue: false;
|
|
566
|
+
}, {
|
|
567
|
+
readonly name: "memberId";
|
|
568
|
+
}, {
|
|
569
|
+
readonly name: "unlockId";
|
|
570
|
+
}, {
|
|
571
|
+
readonly name: "validNum";
|
|
572
|
+
}, {
|
|
573
|
+
readonly name: "status";
|
|
574
|
+
}];
|
|
575
|
+
readonly publishMemberRole: readonly [{
|
|
576
|
+
readonly name: "type";
|
|
577
|
+
}, {
|
|
578
|
+
readonly name: "stage";
|
|
579
|
+
}, {
|
|
580
|
+
readonly name: "admin";
|
|
581
|
+
readonly type: "boolean";
|
|
582
|
+
readonly defaultValue: false;
|
|
583
|
+
}, {
|
|
584
|
+
readonly name: "memberId";
|
|
585
|
+
}, {
|
|
586
|
+
readonly name: "unlockId";
|
|
587
|
+
}];
|
|
588
|
+
};
|
|
589
|
+
readonly unlock_method_modify_w: {
|
|
590
|
+
readonly publish: ({
|
|
591
|
+
readonly name: "validConfig";
|
|
592
|
+
readonly type: "child";
|
|
593
|
+
readonly bytes: 17;
|
|
594
|
+
readonly childMap: readonly [{
|
|
595
|
+
readonly name: "startTime";
|
|
596
|
+
readonly bytes: 4;
|
|
597
|
+
}, {
|
|
598
|
+
readonly name: "endTime";
|
|
599
|
+
readonly bytes: 4;
|
|
600
|
+
}, {
|
|
601
|
+
readonly name: "loop";
|
|
602
|
+
}, {
|
|
603
|
+
readonly name: "loopConfig";
|
|
604
|
+
readonly condition: {
|
|
605
|
+
readonly type: "and";
|
|
606
|
+
readonly conditions: readonly [{
|
|
607
|
+
readonly prop: "validConfig.loop";
|
|
608
|
+
readonly value: 2;
|
|
609
|
+
readonly operation: "neq";
|
|
610
|
+
}, {
|
|
611
|
+
readonly prop: "loop";
|
|
612
|
+
readonly value: 3;
|
|
613
|
+
readonly operation: "neq";
|
|
614
|
+
}];
|
|
615
|
+
};
|
|
616
|
+
readonly bytes: 4;
|
|
617
|
+
readonly defaultValue: 0;
|
|
618
|
+
}, {
|
|
619
|
+
readonly name: "weeks";
|
|
620
|
+
readonly condition: {
|
|
621
|
+
readonly prop: "validConfig.loop";
|
|
622
|
+
readonly value: 2;
|
|
623
|
+
};
|
|
624
|
+
readonly type: "custom";
|
|
625
|
+
readonly bytes: 4;
|
|
626
|
+
readonly parse: (value: number) => number[];
|
|
627
|
+
readonly format: (value: number[]) => string;
|
|
628
|
+
readonly defaultValue: readonly [0, 0, 0, 0, 0, 0, 0];
|
|
629
|
+
}, {
|
|
630
|
+
readonly name: "days";
|
|
631
|
+
readonly condition: {
|
|
632
|
+
readonly prop: "validConfig.loop";
|
|
633
|
+
readonly value: 3;
|
|
634
|
+
};
|
|
635
|
+
readonly type: "bits";
|
|
636
|
+
readonly bytes: 4;
|
|
637
|
+
readonly defaultValue: 0;
|
|
638
|
+
}, {
|
|
639
|
+
readonly name: "startHour";
|
|
640
|
+
readonly type: "number";
|
|
641
|
+
readonly bytes: 1;
|
|
642
|
+
readonly defaultValue: 0;
|
|
643
|
+
}, {
|
|
644
|
+
readonly name: "startMinute";
|
|
645
|
+
readonly type: "number";
|
|
646
|
+
readonly bytes: 1;
|
|
647
|
+
readonly defaultValue: 0;
|
|
648
|
+
}, {
|
|
649
|
+
readonly name: "endHour";
|
|
650
|
+
readonly type: "number";
|
|
651
|
+
readonly bytes: 1;
|
|
652
|
+
readonly defaultValue: 0;
|
|
653
|
+
}, {
|
|
654
|
+
readonly name: "endMinute";
|
|
655
|
+
readonly type: "number";
|
|
656
|
+
readonly bytes: 1;
|
|
657
|
+
readonly defaultValue: 0;
|
|
658
|
+
}];
|
|
659
|
+
} | {
|
|
660
|
+
readonly name: "pwdLength";
|
|
661
|
+
} | {
|
|
662
|
+
readonly name: "pwd";
|
|
663
|
+
readonly type: "number";
|
|
664
|
+
readonly limit: "pwdLength";
|
|
665
|
+
readonly loop: true;
|
|
666
|
+
readonly defaultValue: readonly [];
|
|
667
|
+
} | {
|
|
668
|
+
name: string;
|
|
669
|
+
type?: undefined;
|
|
670
|
+
defaultValue?: undefined;
|
|
671
|
+
bytes?: undefined;
|
|
672
|
+
} | {
|
|
673
|
+
name: string;
|
|
674
|
+
type: string;
|
|
675
|
+
defaultValue: boolean;
|
|
676
|
+
bytes?: undefined;
|
|
677
|
+
} | {
|
|
678
|
+
name: string;
|
|
679
|
+
bytes: number;
|
|
680
|
+
type?: undefined;
|
|
681
|
+
defaultValue?: undefined;
|
|
682
|
+
})[];
|
|
683
|
+
readonly report: ({
|
|
684
|
+
name: string;
|
|
685
|
+
type?: undefined;
|
|
686
|
+
defaultValue?: undefined;
|
|
687
|
+
bytes?: undefined;
|
|
688
|
+
} | {
|
|
689
|
+
name: string;
|
|
690
|
+
type: string;
|
|
691
|
+
defaultValue: boolean;
|
|
692
|
+
bytes?: undefined;
|
|
693
|
+
} | {
|
|
694
|
+
name: string;
|
|
695
|
+
bytes: number;
|
|
696
|
+
type?: undefined;
|
|
697
|
+
defaultValue?: undefined;
|
|
698
|
+
})[];
|
|
699
|
+
readonly publishMemberRole: ({
|
|
700
|
+
name: string;
|
|
701
|
+
type?: undefined;
|
|
702
|
+
defaultValue?: undefined;
|
|
703
|
+
bytes?: undefined;
|
|
704
|
+
} | {
|
|
705
|
+
name: string;
|
|
706
|
+
type: string;
|
|
707
|
+
defaultValue: boolean;
|
|
708
|
+
bytes?: undefined;
|
|
709
|
+
} | {
|
|
710
|
+
name: string;
|
|
711
|
+
bytes: number;
|
|
712
|
+
type?: undefined;
|
|
713
|
+
defaultValue?: undefined;
|
|
714
|
+
})[];
|
|
715
|
+
};
|
|
716
|
+
readonly temporary_password_creat: {
|
|
717
|
+
readonly publish: readonly [{
|
|
718
|
+
readonly name: "cloudNo";
|
|
719
|
+
readonly bytes: 2;
|
|
720
|
+
}, {
|
|
721
|
+
readonly name: "valid";
|
|
722
|
+
readonly type: "boolean";
|
|
723
|
+
}, {
|
|
724
|
+
readonly name: "validConfig";
|
|
725
|
+
readonly type: "child";
|
|
726
|
+
readonly bytes: 17;
|
|
727
|
+
readonly childMap: readonly [{
|
|
728
|
+
readonly name: "startTime";
|
|
729
|
+
readonly bytes: 4;
|
|
730
|
+
}, {
|
|
731
|
+
readonly name: "endTime";
|
|
732
|
+
readonly bytes: 4;
|
|
733
|
+
}, {
|
|
734
|
+
readonly name: "loop";
|
|
735
|
+
}, {
|
|
736
|
+
readonly name: "loopConfig";
|
|
737
|
+
readonly condition: {
|
|
738
|
+
readonly type: "and";
|
|
739
|
+
readonly conditions: readonly [{
|
|
740
|
+
readonly prop: "validConfig.loop";
|
|
741
|
+
readonly value: 2;
|
|
742
|
+
readonly operation: "neq";
|
|
743
|
+
}, {
|
|
744
|
+
readonly prop: "loop";
|
|
745
|
+
readonly value: 3;
|
|
746
|
+
readonly operation: "neq";
|
|
747
|
+
}];
|
|
748
|
+
};
|
|
749
|
+
readonly bytes: 4;
|
|
750
|
+
readonly defaultValue: 0;
|
|
751
|
+
}, {
|
|
752
|
+
readonly name: "weeks";
|
|
753
|
+
readonly condition: {
|
|
754
|
+
readonly prop: "validConfig.loop";
|
|
755
|
+
readonly value: 2;
|
|
756
|
+
};
|
|
757
|
+
readonly type: "custom";
|
|
758
|
+
readonly bytes: 4;
|
|
759
|
+
readonly parse: (value: number) => number[];
|
|
760
|
+
readonly format: (value: number[]) => string;
|
|
761
|
+
readonly defaultValue: readonly [0, 0, 0, 0, 0, 0, 0];
|
|
762
|
+
}, {
|
|
763
|
+
readonly name: "days";
|
|
764
|
+
readonly condition: {
|
|
765
|
+
readonly prop: "validConfig.loop";
|
|
766
|
+
readonly value: 3;
|
|
767
|
+
};
|
|
768
|
+
readonly type: "bits";
|
|
769
|
+
readonly bytes: 4;
|
|
770
|
+
readonly defaultValue: 0;
|
|
771
|
+
}, {
|
|
772
|
+
readonly name: "startHour";
|
|
773
|
+
readonly type: "number";
|
|
774
|
+
readonly bytes: 1;
|
|
775
|
+
readonly defaultValue: 0;
|
|
776
|
+
}, {
|
|
777
|
+
readonly name: "startMinute";
|
|
778
|
+
readonly type: "number";
|
|
779
|
+
readonly bytes: 1;
|
|
780
|
+
readonly defaultValue: 0;
|
|
781
|
+
}, {
|
|
782
|
+
readonly name: "endHour";
|
|
783
|
+
readonly type: "number";
|
|
784
|
+
readonly bytes: 1;
|
|
785
|
+
readonly defaultValue: 0;
|
|
786
|
+
}, {
|
|
787
|
+
readonly name: "endMinute";
|
|
788
|
+
readonly type: "number";
|
|
789
|
+
readonly bytes: 1;
|
|
790
|
+
readonly defaultValue: 0;
|
|
791
|
+
}];
|
|
792
|
+
}, {
|
|
793
|
+
readonly name: "validNum";
|
|
794
|
+
}, {
|
|
795
|
+
readonly name: "pwdLength";
|
|
796
|
+
}, {
|
|
797
|
+
readonly name: "pwd";
|
|
798
|
+
readonly type: "number";
|
|
799
|
+
readonly limit: "pwdLength";
|
|
800
|
+
readonly loop: true;
|
|
801
|
+
readonly defaultValue: readonly [];
|
|
802
|
+
}];
|
|
803
|
+
readonly report: readonly [{
|
|
804
|
+
readonly name: "cloudNo";
|
|
805
|
+
readonly bytes: 2;
|
|
806
|
+
}, {
|
|
807
|
+
readonly name: "unlockId";
|
|
808
|
+
}, {
|
|
809
|
+
readonly name: "status";
|
|
810
|
+
}];
|
|
811
|
+
};
|
|
812
|
+
readonly temporary_password_create_w: {
|
|
813
|
+
readonly publish: ({
|
|
814
|
+
readonly name: "validConfig";
|
|
815
|
+
readonly type: "child";
|
|
816
|
+
readonly bytes: 17;
|
|
817
|
+
readonly childMap: readonly [{
|
|
818
|
+
readonly name: "startTime";
|
|
819
|
+
readonly bytes: 4;
|
|
820
|
+
}, {
|
|
821
|
+
readonly name: "endTime";
|
|
822
|
+
readonly bytes: 4;
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "loop";
|
|
825
|
+
}, {
|
|
826
|
+
readonly name: "loopConfig";
|
|
827
|
+
readonly condition: {
|
|
828
|
+
readonly type: "and";
|
|
829
|
+
readonly conditions: readonly [{
|
|
830
|
+
readonly prop: "validConfig.loop";
|
|
831
|
+
readonly value: 2;
|
|
832
|
+
readonly operation: "neq";
|
|
833
|
+
}, {
|
|
834
|
+
readonly prop: "loop";
|
|
835
|
+
readonly value: 3;
|
|
836
|
+
readonly operation: "neq";
|
|
837
|
+
}];
|
|
838
|
+
};
|
|
839
|
+
readonly bytes: 4;
|
|
840
|
+
readonly defaultValue: 0;
|
|
841
|
+
}, {
|
|
842
|
+
readonly name: "weeks";
|
|
843
|
+
readonly condition: {
|
|
844
|
+
readonly prop: "validConfig.loop";
|
|
845
|
+
readonly value: 2;
|
|
846
|
+
};
|
|
847
|
+
readonly type: "custom";
|
|
848
|
+
readonly bytes: 4;
|
|
849
|
+
readonly parse: (value: number) => number[];
|
|
850
|
+
readonly format: (value: number[]) => string;
|
|
851
|
+
readonly defaultValue: readonly [0, 0, 0, 0, 0, 0, 0];
|
|
852
|
+
}, {
|
|
853
|
+
readonly name: "days";
|
|
854
|
+
readonly condition: {
|
|
855
|
+
readonly prop: "validConfig.loop";
|
|
856
|
+
readonly value: 3;
|
|
857
|
+
};
|
|
858
|
+
readonly type: "bits";
|
|
859
|
+
readonly bytes: 4;
|
|
860
|
+
readonly defaultValue: 0;
|
|
861
|
+
}, {
|
|
862
|
+
readonly name: "startHour";
|
|
863
|
+
readonly type: "number";
|
|
864
|
+
readonly bytes: 1;
|
|
865
|
+
readonly defaultValue: 0;
|
|
866
|
+
}, {
|
|
867
|
+
readonly name: "startMinute";
|
|
868
|
+
readonly type: "number";
|
|
869
|
+
readonly bytes: 1;
|
|
870
|
+
readonly defaultValue: 0;
|
|
871
|
+
}, {
|
|
872
|
+
readonly name: "endHour";
|
|
873
|
+
readonly type: "number";
|
|
874
|
+
readonly bytes: 1;
|
|
875
|
+
readonly defaultValue: 0;
|
|
876
|
+
}, {
|
|
877
|
+
readonly name: "endMinute";
|
|
878
|
+
readonly type: "number";
|
|
879
|
+
readonly bytes: 1;
|
|
880
|
+
readonly defaultValue: 0;
|
|
881
|
+
}];
|
|
882
|
+
} | {
|
|
883
|
+
readonly name: "pwdLength";
|
|
884
|
+
} | {
|
|
885
|
+
readonly name: "pwd";
|
|
886
|
+
readonly type: "number";
|
|
887
|
+
readonly limit: "pwdLength";
|
|
888
|
+
readonly loop: true;
|
|
889
|
+
readonly defaultValue: readonly [];
|
|
890
|
+
} | {
|
|
891
|
+
name: string;
|
|
892
|
+
bytes: number;
|
|
893
|
+
type?: undefined;
|
|
894
|
+
} | {
|
|
895
|
+
name: string;
|
|
896
|
+
type: string;
|
|
897
|
+
bytes?: undefined;
|
|
898
|
+
} | {
|
|
899
|
+
name: string;
|
|
900
|
+
bytes?: undefined;
|
|
901
|
+
type?: undefined;
|
|
902
|
+
})[];
|
|
903
|
+
readonly report: ({
|
|
904
|
+
name: string;
|
|
905
|
+
bytes: number;
|
|
906
|
+
} | {
|
|
907
|
+
name: string;
|
|
908
|
+
bytes?: undefined;
|
|
909
|
+
})[];
|
|
910
|
+
};
|
|
911
|
+
readonly temporary_password_delete: {
|
|
912
|
+
readonly publish: DpMap;
|
|
913
|
+
readonly report: DpMap;
|
|
914
|
+
};
|
|
915
|
+
readonly temporary_password_delete_w: {
|
|
916
|
+
readonly publish: readonly [{
|
|
917
|
+
readonly name: "unlockId";
|
|
918
|
+
readonly bytes: 2;
|
|
919
|
+
}];
|
|
920
|
+
readonly report: readonly [{
|
|
921
|
+
readonly name: "unlockId";
|
|
922
|
+
readonly bytes: 2;
|
|
923
|
+
}, {
|
|
924
|
+
readonly name: "status";
|
|
925
|
+
}];
|
|
926
|
+
};
|
|
927
|
+
readonly temporary_password_modify: {
|
|
928
|
+
readonly publish: ({
|
|
929
|
+
readonly name: "validConfig";
|
|
930
|
+
readonly type: "child";
|
|
931
|
+
readonly bytes: 17;
|
|
932
|
+
readonly childMap: readonly [{
|
|
933
|
+
readonly name: "startTime";
|
|
934
|
+
readonly bytes: 4;
|
|
935
|
+
}, {
|
|
936
|
+
readonly name: "endTime";
|
|
937
|
+
readonly bytes: 4;
|
|
938
|
+
}, {
|
|
939
|
+
readonly name: "loop";
|
|
940
|
+
}, {
|
|
941
|
+
readonly name: "loopConfig";
|
|
942
|
+
readonly condition: {
|
|
943
|
+
readonly type: "and";
|
|
944
|
+
readonly conditions: readonly [{
|
|
945
|
+
readonly prop: "validConfig.loop";
|
|
946
|
+
readonly value: 2;
|
|
947
|
+
readonly operation: "neq";
|
|
948
|
+
}, {
|
|
949
|
+
readonly prop: "loop";
|
|
950
|
+
readonly value: 3;
|
|
951
|
+
readonly operation: "neq";
|
|
952
|
+
}];
|
|
953
|
+
};
|
|
954
|
+
readonly bytes: 4;
|
|
955
|
+
readonly defaultValue: 0;
|
|
956
|
+
}, {
|
|
957
|
+
readonly name: "weeks";
|
|
958
|
+
readonly condition: {
|
|
959
|
+
readonly prop: "validConfig.loop";
|
|
960
|
+
readonly value: 2;
|
|
961
|
+
};
|
|
962
|
+
readonly type: "custom";
|
|
963
|
+
readonly bytes: 4;
|
|
964
|
+
readonly parse: (value: number) => number[];
|
|
965
|
+
readonly format: (value: number[]) => string;
|
|
966
|
+
readonly defaultValue: readonly [0, 0, 0, 0, 0, 0, 0];
|
|
967
|
+
}, {
|
|
968
|
+
readonly name: "days";
|
|
969
|
+
readonly condition: {
|
|
970
|
+
readonly prop: "validConfig.loop";
|
|
971
|
+
readonly value: 3;
|
|
972
|
+
};
|
|
973
|
+
readonly type: "bits";
|
|
974
|
+
readonly bytes: 4;
|
|
975
|
+
readonly defaultValue: 0;
|
|
976
|
+
}, {
|
|
977
|
+
readonly name: "startHour";
|
|
978
|
+
readonly type: "number";
|
|
979
|
+
readonly bytes: 1;
|
|
980
|
+
readonly defaultValue: 0;
|
|
981
|
+
}, {
|
|
982
|
+
readonly name: "startMinute";
|
|
983
|
+
readonly type: "number";
|
|
984
|
+
readonly bytes: 1;
|
|
985
|
+
readonly defaultValue: 0;
|
|
986
|
+
}, {
|
|
987
|
+
readonly name: "endHour";
|
|
988
|
+
readonly type: "number";
|
|
989
|
+
readonly bytes: 1;
|
|
990
|
+
readonly defaultValue: 0;
|
|
991
|
+
}, {
|
|
992
|
+
readonly name: "endMinute";
|
|
993
|
+
readonly type: "number";
|
|
994
|
+
readonly bytes: 1;
|
|
995
|
+
readonly defaultValue: 0;
|
|
996
|
+
}];
|
|
997
|
+
} | {
|
|
998
|
+
readonly name: "pwdLength";
|
|
999
|
+
} | {
|
|
1000
|
+
readonly name: "pwd";
|
|
1001
|
+
readonly type: "number";
|
|
1002
|
+
readonly limit: "pwdLength";
|
|
1003
|
+
readonly loop: true;
|
|
1004
|
+
readonly defaultValue: readonly [];
|
|
1005
|
+
} | {
|
|
1006
|
+
name: string;
|
|
1007
|
+
type?: undefined;
|
|
1008
|
+
} | {
|
|
1009
|
+
name: string;
|
|
1010
|
+
type: string;
|
|
1011
|
+
})[];
|
|
1012
|
+
readonly report: DpMap;
|
|
1013
|
+
};
|
|
1014
|
+
readonly temporary_password_modify_w: {
|
|
1015
|
+
readonly publish: ({
|
|
1016
|
+
readonly name: "validConfig";
|
|
1017
|
+
readonly type: "child";
|
|
1018
|
+
readonly bytes: 17;
|
|
1019
|
+
readonly childMap: readonly [{
|
|
1020
|
+
readonly name: "startTime";
|
|
1021
|
+
readonly bytes: 4;
|
|
1022
|
+
}, {
|
|
1023
|
+
readonly name: "endTime";
|
|
1024
|
+
readonly bytes: 4;
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly name: "loop";
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly name: "loopConfig";
|
|
1029
|
+
readonly condition: {
|
|
1030
|
+
readonly type: "and";
|
|
1031
|
+
readonly conditions: readonly [{
|
|
1032
|
+
readonly prop: "validConfig.loop";
|
|
1033
|
+
readonly value: 2;
|
|
1034
|
+
readonly operation: "neq";
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly prop: "loop";
|
|
1037
|
+
readonly value: 3;
|
|
1038
|
+
readonly operation: "neq";
|
|
1039
|
+
}];
|
|
1040
|
+
};
|
|
1041
|
+
readonly bytes: 4;
|
|
1042
|
+
readonly defaultValue: 0;
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly name: "weeks";
|
|
1045
|
+
readonly condition: {
|
|
1046
|
+
readonly prop: "validConfig.loop";
|
|
1047
|
+
readonly value: 2;
|
|
1048
|
+
};
|
|
1049
|
+
readonly type: "custom";
|
|
1050
|
+
readonly bytes: 4;
|
|
1051
|
+
readonly parse: (value: number) => number[];
|
|
1052
|
+
readonly format: (value: number[]) => string;
|
|
1053
|
+
readonly defaultValue: readonly [0, 0, 0, 0, 0, 0, 0];
|
|
1054
|
+
}, {
|
|
1055
|
+
readonly name: "days";
|
|
1056
|
+
readonly condition: {
|
|
1057
|
+
readonly prop: "validConfig.loop";
|
|
1058
|
+
readonly value: 3;
|
|
1059
|
+
};
|
|
1060
|
+
readonly type: "bits";
|
|
1061
|
+
readonly bytes: 4;
|
|
1062
|
+
readonly defaultValue: 0;
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly name: "startHour";
|
|
1065
|
+
readonly type: "number";
|
|
1066
|
+
readonly bytes: 1;
|
|
1067
|
+
readonly defaultValue: 0;
|
|
1068
|
+
}, {
|
|
1069
|
+
readonly name: "startMinute";
|
|
1070
|
+
readonly type: "number";
|
|
1071
|
+
readonly bytes: 1;
|
|
1072
|
+
readonly defaultValue: 0;
|
|
1073
|
+
}, {
|
|
1074
|
+
readonly name: "endHour";
|
|
1075
|
+
readonly type: "number";
|
|
1076
|
+
readonly bytes: 1;
|
|
1077
|
+
readonly defaultValue: 0;
|
|
1078
|
+
}, {
|
|
1079
|
+
readonly name: "endMinute";
|
|
1080
|
+
readonly type: "number";
|
|
1081
|
+
readonly bytes: 1;
|
|
1082
|
+
readonly defaultValue: 0;
|
|
1083
|
+
}];
|
|
1084
|
+
} | {
|
|
1085
|
+
readonly name: "pwdLength";
|
|
1086
|
+
} | {
|
|
1087
|
+
readonly name: "pwd";
|
|
1088
|
+
readonly type: "number";
|
|
1089
|
+
readonly limit: "pwdLength";
|
|
1090
|
+
readonly loop: true;
|
|
1091
|
+
readonly defaultValue: readonly [];
|
|
1092
|
+
} | {
|
|
1093
|
+
name: string;
|
|
1094
|
+
bytes: number;
|
|
1095
|
+
type?: undefined;
|
|
1096
|
+
} | {
|
|
1097
|
+
name: string;
|
|
1098
|
+
type: string;
|
|
1099
|
+
bytes?: undefined;
|
|
1100
|
+
} | {
|
|
1101
|
+
name: string;
|
|
1102
|
+
bytes?: undefined;
|
|
1103
|
+
type?: undefined;
|
|
1104
|
+
})[];
|
|
1105
|
+
readonly report: ({
|
|
1106
|
+
name: string;
|
|
1107
|
+
bytes: number;
|
|
1108
|
+
} | {
|
|
1109
|
+
name: string;
|
|
1110
|
+
bytes?: undefined;
|
|
1111
|
+
})[];
|
|
1112
|
+
};
|
|
1113
|
+
readonly ble_sync_request: {
|
|
1114
|
+
readonly publish: DpMap;
|
|
1115
|
+
readonly report: DpMap;
|
|
1116
|
+
};
|
|
1117
|
+
readonly synch_method: {
|
|
1118
|
+
readonly publish: DpMap;
|
|
1119
|
+
readonly report: DpMap;
|
|
1120
|
+
};
|
|
1121
|
+
readonly synch_method_w: {
|
|
1122
|
+
readonly publish: DpMap;
|
|
1123
|
+
readonly report: DpMap;
|
|
1124
|
+
};
|
|
1125
|
+
readonly device_info: {
|
|
1126
|
+
readonly publish: DpMap;
|
|
1127
|
+
readonly report: DpMap;
|
|
1128
|
+
};
|
|
1129
|
+
readonly mute_mode_period: {
|
|
1130
|
+
readonly publish: DpMap;
|
|
1131
|
+
readonly report: DpMap;
|
|
1132
|
+
};
|
|
1133
|
+
};
|
|
1134
|
+
export type DpMapKey = keyof typeof DP_BINARY_PROTOCOL_REGISTRY;
|
|
1135
|
+
export type DPMap = typeof DP_BINARY_PROTOCOL_REGISTRY;
|
|
1136
|
+
export declare function getDpBinaryProtocolMaps<T extends DpMapKey>(dpCode: T): DPMap[T] | undefined;
|
|
1137
|
+
export declare function hasDpBinaryProtocolMaps(dpCode: string): boolean;
|