# @theorchard/suite-identity

## 3.5.1

### Patch Changes

-   Add lodash-es to lodash jest module mapping for ESM compatibility

## 3.5.0

### Minor Changes

-   Add optional `permissions` property to Identity.
-   Add `usePermissionTenants` hook for retrieving valid tenants for a given resource type/action pair.

## 3.4.0

### Minor Changes

-   new Identity.loginCountryCode prop

## 3.3.0

### Minor Changes

-   dateFormat support

## 3.2.1

### Patch Changes

-   Added exports field to package.json

## 3.2.0

### Minor Changes

-   Add `identityUserHash` to Identity type

## 3.1.0

### Minor Changes

-   Adds back the Identity.resources property.

## 3.0.0

### Major Changes

-   Removed GraphQL queries for identity and vendor information.
-   Removed several fields on the `Identity` interface (see below).

### Breaking Changes

-   Removed the following exported functions / constants:
    -   getIdentityById
    -   exitDemoMode
    -   getVendorByVendorId
    -   useAllFeatures
    -   SUITE_FEATURE_FILTER_PREFIX
-   Removed the following fields on the `Identity` interface:
    -   profiles
    -   resources
    -   userAccounts
    -   hasUserManagementAccess
    -   hasVendorStarAccess
    -   isDemoMode
    -   identityId (use the "id" field)
    -   brand (use the "defaultBrand" field)
-   Removed the following fields on the `Application` interface:
    -   roles
-   Removed the following fields on the `Profile` interface:
    -   profileName
    -   resources
    -   brand
-   Changed the type on the `Profile.profileId` field from `string` to `number`.
-   The `AccountVendor` interface is renamed to `Vendor`.
-   The `Vendor` interface removes the following fields:
    -   vendorId (replaced by "id")
    -   companyName (replaced by "companyBrand")

## 2.11.0

### Minor Changes

-   Added "primaryVendor" property to the Identity interface.

## 2.10.0

### Minor Changes

-   Deprecate identity.name in favor of .firstName + .lastName

## 2.9.0

### Minor Changes

-   Added "authId" to the Identity interface. It was already part of the identity object from the getIdentityById call, but not exposed through the types.

## 2.8.0

### Minor Changes

-   new useFeatureFlag hook

## 2.7.2

### Patch Changes

-   Fix demo mode

## 2.7.1

### Patch Changes

-   Demo mode exit fix

## 2.7.0

### Minor Changes

-   Added demo mode alert and demo mode exit handler

## 2.6.1

### Patch Changes

-   Export the constant "SUITE_FEATURE_FILTER_PREFIX".

## 2.6.0

### Minor Changes

-   Add country field to vendor object

## 2.5.0

### Minor Changes

-   extend identity by profiles

## 2.4.0

### Minor Changes

-   add isGDAUser property to Identity

## 2.3.0

### Minor Changes

-   Added `useAllFeatures` query to get all available feature flags.

## 2.2.0

### Minor Changes

-   Add getVendorByVendorId query.

## 2.1.7

### Patch Changes

-   Use roles from auth user.

## 2.1.6

### Patch Changes

-   Add missing fields to identity.

## 2.1.5

### Patch Changes

-   Add `isEmployee` field to identity

## 2.1.4

### Patch Changes

-   Filter identity profile by uuid.
-   Added name to the Identity type.
-   Remove apollo and queries folder.

## 2.1.3

### Patch Changes

-   Added tests
-   Removed unused logic

## 2.1.2

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@1.0.2

## 2.1.1

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@1.0.1

## 2.1.0

### Minor Changes

-   Removed unused provider
-   Cleaned up Identity type
-   Updated dependencies []
    -   @theorchard/suite-auth@1.0.1

## 2.0.14

### Patch Changes

-   Fix dependencies
-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.16

## 2.0.13

### Patch Changes

-   Added grass endpoint to send active access token to ows-grass on logout
-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.15

## 2.0.12

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@0.9.14

## 2.0.11

### Patch Changes

-   Adds `profile` to the `Identity` interface.

## 2.0.10

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.13

## 2.0.9

### Patch Changes

-   Remove dependency on suite-components
-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.12

## 2.0.8

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-components@1.0.9
    -   @theorchard/suite-auth@0.9.11

## 2.0.7

### Patch Changes

-   Make fetching `userAccounts` optional

## 2.0.6

### Patch Changes

-   Memoize identity
-   Ensures "includeResourceAccess" is defaulted to false
-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.10

## 2.0.5

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.9

## 2.0.4

### Patch Changes

-   @theorchard/suite-components@1.0.8
-   @theorchard/suite-auth@0.9.8

## 2.0.3

### Patch Changes

-   bugfixing providers to properly work all together + fix getFeatureFilter
-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.7

## 2.0.2

### Patch Changes

-   Expose getIdentity query

## 2.0.1

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.6

## 2.0.0

### Major Changes

-   New version with simplified user object returned from auth0 + types + checks
