@intellegens/cornerstone-client 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,5 +6,5 @@ export interface IIdentifiable<TKey> {
6
6
  /**
7
7
  * Gets or sets the Id of the entity.
8
8
  */
9
- Id: TKey;
9
+ id: TKey;
10
10
  }
@@ -5,5 +5,5 @@ export interface IIdentifiableByGuid {
5
5
  /**
6
6
  * Gets or sets the Guid of the entity.
7
7
  */
8
- Guid: string;
8
+ guid: string;
9
9
  }
@@ -0,0 +1,4 @@
1
+ export interface Claim {
2
+ type: string;
3
+ value: string;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,8 +1,5 @@
1
+ import { Claim } from '../..';
1
2
  export interface Role {
2
3
  name: string;
3
4
  claims: Claim[];
4
5
  }
5
- export interface Claim {
6
- name: string;
7
- value: string;
8
- }
@@ -1,4 +1,4 @@
1
- import { Claim } from '../../../data';
1
+ import { Claim } from '../..';
2
2
  import { IIdentifiable } from '../..';
3
3
  /**
4
4
  * Represents a user with an identifier and email address.
@@ -7,9 +7,11 @@ import { IIdentifiable } from '../..';
7
7
  *
8
8
  * @param {TKey} id The unique identifier for the user.
9
9
  * @param {string} email The email address associated with the user.
10
+ * @param {string[]} roles The roles associated with the user.
10
11
  * @param {Claim[]} claims The claims associated with the user.
11
12
  */
12
13
  export type User<TKey> = IIdentifiable<TKey> & {
13
14
  email: string;
15
+ roles: string[];
14
16
  claims: Claim[];
15
17
  };
@@ -1,3 +1,4 @@
1
+ export * from './Claim';
2
+ export * from './Role';
1
3
  export * from './User';
2
4
  export * from './UserInfo';
3
- export * from './Role';
@@ -1,3 +1,4 @@
1
+ export * from './Claim';
2
+ export * from './Role';
1
3
  export * from './User';
2
4
  export * from './UserInfo';
3
- export * from './Role';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intellegens/cornerstone-client",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {