---
name: "getTempOfflineInvalidList"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "getTempOfflineInvalidList - Get the list of invalid offline passwords, applicable to WiFi Photo Lock devices."
summary: "Get the list of invalid offline passwords, applicable to WiFi Photo Lock devices. Returns the corresponding invalid password list based on password type."
---

## getTempOfflineInvalidList

> [VERSION] @ray-js/lock-sdk >= 1.0.0

> 💡 This API is for WiFi Pro locks only; do not use it with other locks.

### Description

Get the list of expired offline passwords

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `pwdTypeCode` | `"once" \| "multiple" \| "clear_one" \| "clear_all"` | Yes | Offline password type |

### Return Value

Type: `Promise<EffectivePasswrodItem[]>`

List

##### EffectivePasswrodItem

| Property | Type | Description |
| --- | --- | --- |
| `effective` | `number` |  |
| `unlockBindingId` | `string` |  |
| `effectiveTime` | `number` |  |
| `failReason` | `number` |  |
| `invalidTime` | `number` |  |
| `name` | `string` |  |
| `phase` | `number` |  |
| `scheduleDetails` | `Object[]` |  |
| `opModeType` | `number` |  |
| `opModeSubType` | `number` |  |
| `sn` | `number` |  |
| `opModeInfo` | `Object` |  |
| `availTime` | `number` |  |
| `timeSetType` | `number` |  |
| `shareInfo` | `Object` |  |

##### EffectivePasswrodItem.scheduleDetails[] properties

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `allDay` | `boolean` | Yes | - |  |
| `effectiveTime` | `number` | Yes | - |  |
| `invalidTime` | `number` | Yes | - |  |
| `timeZoneId` | `string` | Yes | - |  |
| `workingDay` | `number` | Yes | - |  |


##### EffectivePasswrodItem.opModeInfo properties

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `hasClearPwd` | `boolean` | No | - |  |
| `revokedPwdName` | `string` | No | - |  |
| `revokedPwdEffectiveTime` | `number` | No | - |  |
| `revokedPwdInvalidTime` | `number` | No | - |  |


##### EffectivePasswrodItem.shareInfo properties

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `account` | `string` | Yes | - |  |
| `countryCode` | `string` | Yes | - |  |
| `lockUserId` | `number` | Yes | - |  |
| `offlineUnlock` | `boolean` | Yes | - |  |
| `phoneKeyUnlock` | `boolean` | Yes | - |  |
| `userExist` | `boolean` | No | - | Whether the invited account has registered in the App; some APIs may not return this field, infer from userName |
| `userName` | `string` | Yes | - |  |


### Examples

#### Example

```ts
import { getTempOfflineInvalidList } from '@ray-js/lock-sdk';
const list = getTempOfflineInvalidList('once');
```
