@intellegens/cornerstone-client 0.0.23 → 0.0.25

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,7 +6,7 @@ export declare class ReadSelectedFilteringDefinition {
6
6
  /**
7
7
  * Array of filtering property definitions to be applied.
8
8
  */
9
- Filters: ReadSelectedFilteringPropertyDefinition[];
9
+ filters: ReadSelectedFilteringPropertyDefinition[];
10
10
  /**
11
11
  * Logical operator to be used when applying the filters.
12
12
  */
@@ -5,7 +5,7 @@ export class ReadSelectedFilteringDefinition {
5
5
  /**
6
6
  * Array of filtering property definitions to be applied.
7
7
  */
8
- Filters = [];
8
+ filters = [];
9
9
  /**
10
10
  * Logical operator to be used when applying the filters.
11
11
  */
@@ -5,9 +5,9 @@ export declare class ReadSelectedPaginationDefinition {
5
5
  /**
6
6
  * Pagination offset
7
7
  */
8
- Skip?: number;
8
+ skip?: number;
9
9
  /**
10
10
  * Pagination limit
11
11
  */
12
- Limit?: number;
12
+ limit?: number;
13
13
  }
@@ -5,9 +5,9 @@ export class ReadSelectedPaginationDefinition {
5
5
  /**
6
6
  * Pagination offset
7
7
  */
8
- Skip = 0;
8
+ skip = 0;
9
9
  /**
10
10
  * Pagination limit
11
11
  */
12
- Limit = undefined;
12
+ limit = undefined;
13
13
  }
@@ -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,11 @@
1
+ /**
2
+ * Interface for entities that can, but don't have to have an Id property.
3
+ * If present, will be used as a primary key in the database, and if not it signifies an entity that was not yet
4
+ * stored.
5
+ */
6
+ export interface IOptionallyIdentifiable<TKey> {
7
+ /**
8
+ * Gets or sets the Id of the entity.
9
+ */
10
+ id?: TKey;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,3 @@
1
1
  export * from './IIdentifiable';
2
+ export * from './IOptionallyIdentifiable';
2
3
  export * from './IIdentifiableByGuid';
@@ -1,2 +1,3 @@
1
1
  export * from './IIdentifiable';
2
+ export * from './IOptionallyIdentifiable';
2
3
  export * from './IIdentifiableByGuid';
@@ -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.25",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {