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
PropertyTypeDescription
idnumber | stringCloud unlock method record ID (from unlockBindingId; falls back to pwdId by default; used for locating during renaming)
pwdIdnumberPassword ID
snnumberPassword index on the lock
gmtCreatenumberCreation time
opModeTypenumberUnlock method type; for offline temporary passwords it is always 3
opModeSubTypenumberPassword subtype: 0 multiple-use / 1 one-time / 8 clear single / 9 clear all
pwdNamestringPassword name
mayExpiredbooleanWhether it has timed out without being used
gmtStartnumberEffective time (seconds)
gmtExpirednumberExpiry time (seconds)
devNameListstring[]List of unlockable lock names
Cycle details
revokedPwdNamestringRevoked password name (issued when clearing a single one)
revokedPwdEffectiveTimenumberRevoked password effective time (seconds)
revokedPwdInvalidTimenumberRevoked password expiry time (seconds)

Referenced Types

interfaceRawFitOpenModeScheduleItem
PropertyTypeDescription
allDayboolean
effectiveTimenumber
invalidTimenumber
timeZoneIdstring
workingDaynumber

Examples

import { getFitOfflinePasswordList } from '@ray-js/lock-sdk';
const offline = await getFitOfflinePasswordList();