@coast/core-api-types 1.5.40 → 1.5.42

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.
@@ -1,6 +1,7 @@
1
1
  import { AccessLevelType } from '@coast/core-types/auth/AccessLevelType';
2
2
  import { ChannelMembershipEntity } from '@coast/core-types/auth/ChannelMembershipEntity';
3
3
  import { ConfigAccessLevel } from '@coast/core-types/auth/ConfigAccessLevel';
4
+ import { PrincipalId } from '@coast/core-types/auth/PrincipalId';
4
5
  import { NotificationsPreference } from '@coast/core-types/user/NotificationsPreference';
5
6
  import { Audit } from '../application/Audit';
6
7
  import { DataEntity } from '../application/DataEntity';
@@ -16,6 +17,7 @@ export interface ChannelMembership extends DataEntity, Audit {
16
17
  entityType: ChannelMembershipEntity;
17
18
  id: number;
18
19
  notificationsPreference?: NotificationsPreference;
20
+ principalId?: PrincipalId | null;
19
21
  readCardCount: number;
20
22
  snoozeUntil?: Date;
21
23
  user: User;
@@ -1,3 +1,3 @@
1
1
  import { UserGroup } from './UserGroup';
2
- export interface CreateUserGroup extends Omit<UserGroup, 'id' | 'businessId' | 'createdAt' | 'updatedAt' | 'deletedAt'> {
2
+ export interface CreateUserGroup extends Omit<UserGroup, 'id' | 'businessId' | 'createdAt' | 'updatedAt' | 'deletedAt' | 'principalId'> {
3
3
  }
@@ -1,3 +1,3 @@
1
1
  import { UserGroup } from './UserGroup';
2
- export interface UpdateUserGroup extends Omit<UserGroup, 'businessId' | 'updatedAt' | 'createdAt' | 'deletedAt'> {
2
+ export interface UpdateUserGroup extends Omit<UserGroup, 'businessId' | 'updatedAt' | 'createdAt' | 'deletedAt' | 'principalId'> {
3
3
  }
@@ -1,3 +1,4 @@
1
+ import { PrincipalId } from '@coast/core-types/auth/PrincipalId';
1
2
  import { BusinessId } from '@coast/core-types/business/BusinessId';
2
3
  import { UserGroupId } from '@coast/core-types/user/group/UserGroupId';
3
4
  import { Audit } from '../../application/Audit';
@@ -7,4 +8,5 @@ export interface UserGroup extends Audit {
7
8
  handle: string;
8
9
  id: UserGroupId;
9
10
  name: string;
11
+ principalId: PrincipalId;
10
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.5.40",
3
+ "version": "1.5.42",
4
4
  "description": "Facilitates the generation of core-api-types npm package",
5
5
  "exports": {
6
6
  "./*": {
@@ -23,8 +23,8 @@
23
23
  "author": "Coast Engineering",
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@coast/core-types": "0.0.161",
27
- "@coast/core-utils": "0.0.32",
26
+ "@coast/core-types": "0.0.162",
27
+ "@coast/core-utils": "0.0.33",
28
28
  "@coast/schemas": "^4.0.2",
29
29
  "@coast/service-common": "^2.0.91",
30
30
  "@paradoxical-io/types": "^2.1.0",