()
| 187 | // if it has expired. Callers that only care about active entitlements |
| 188 | // should use `getEntitlements` / `getValidOfflineLicense` instead. |
| 189 | export const getOfflineLicenseMetadata = (): OfflineLicenseMetadata | null => { |
| 190 | const license = getDecodedOfflineLicense(); |
| 191 | if (!license) { |
| 192 | return null; |
| 193 | } |
| 194 | |
| 195 | return { |
| 196 | id: license.id, |
| 197 | seats: license.seats, |
| 198 | anonymousAccess: license.anonymousAccess, |
| 199 | expiryDate: license.expiryDate, |
| 200 | }; |
| 201 | } |
| 202 | |
| 203 | export const getSeatCap = (): number | undefined => { |
| 204 | const offlineLicense = getValidOfflineLicense(); |
no test coverage detected