getFitOfflinePasswordList()
Requires:
@ray-js/lock-sdk≥1.2.0
Description
Get the list of valid offline temporary passwords for the current accessory.
Parameters
None
Return Value
Type: Promise<FitOfflinePasswordItem[]>
Offline temporary password detail array
FitOfflinePasswordItem
| Property | Type | Description |
|---|---|---|
id | number | string | Cloud unlock method record ID (from unlockBindingId; falls back to pwdId by default; used for locating during renaming) |
pwdId | number | Password ID |
sn | number | Password index on the lock |
gmtCreate | number | Creation time |
opModeType | number | Unlock method type; for offline temporary passwords it is always 3 |
opModeSubType | number | Password subtype: 0 multiple-use / 1 one-time / 8 clear single / 9 clear all |
pwdName | string | Password name |
mayExpired | boolean | Whether it has timed out without being used |
gmtStart | number | Effective time (seconds) |
gmtExpired | number | Expiry time (seconds) |
devNameList | string[] | List of unlockable lock names |
| Cycle details | ||
revokedPwdName | string | Revoked password name (issued when clearing a single one) |
revokedPwdEffectiveTime | number | Revoked password effective time (seconds) |
revokedPwdInvalidTime | number | Revoked password expiry time (seconds) |
Referenced Types
interface
RawFitOpenModeScheduleItem| Property | Type | Description |
|---|---|---|
allDay | boolean | |
effectiveTime | number | |
invalidTime | number | |
timeZoneId | string | |
workingDay | number |