@coast/core-api-types 1.2.8 → 1.2.10

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.
@@ -0,0 +1,5 @@
1
+ import { UserId } from '../user/UserId';
2
+ export interface DeleteChannelMembership {
3
+ channelId: number;
4
+ userId: UserId;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,6 +21,7 @@ export declare enum EventKey {
21
21
  CHANNEL_SOFT_REMOVED = "afterSoftRemove_Channel",
22
22
  CHANNEL_ACCOUNTING_UPDATED = "channelAccountingUpdated",
23
23
  CHANNEL_MEMBERSHIP_INSERTED = "afterInsert_ChannelMembership",
24
+ CHANNEL_MEMBERSHIP_REMOVED_BATCH = "afterRemove_ChannelMembership_batch",
24
25
  CLIENT_EVENT_CREATED = "afterInsert_ClientEvent",
25
26
  ENTITY_RECURRENCE_INSERTED = "afterInsert_EntityRecurrence",
26
27
  INTEGRATION_UPDATED = "afterUpdate_Integration",
@@ -25,6 +25,7 @@ var EventKey;
25
25
  EventKey["CHANNEL_SOFT_REMOVED"] = "afterSoftRemove_Channel";
26
26
  EventKey["CHANNEL_ACCOUNTING_UPDATED"] = "channelAccountingUpdated";
27
27
  EventKey["CHANNEL_MEMBERSHIP_INSERTED"] = "afterInsert_ChannelMembership";
28
+ EventKey["CHANNEL_MEMBERSHIP_REMOVED_BATCH"] = "afterRemove_ChannelMembership_batch";
28
29
  EventKey["CLIENT_EVENT_CREATED"] = "afterInsert_ClientEvent";
29
30
  EventKey["ENTITY_RECURRENCE_INSERTED"] = "afterInsert_EntityRecurrence";
30
31
  EventKey["INTEGRATION_UPDATED"] = "afterUpdate_Integration";
@@ -0,0 +1,3 @@
1
+ import { UserGroupAssociation } from './UserGroupAssociation';
2
+ export interface CreateUserGroupAssociation extends Pick<UserGroupAssociation, 'userGroupId' | 'userId'> {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { UserGroupAssociation } from './UserGroupAssociation';
2
+ export interface DeleteUserGroupAssociation extends Pick<UserGroupAssociation, 'userGroupId' | 'userId'> {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,4 +2,5 @@ import { Intersection } from 'src/utils/Intersection';
2
2
  import { OffsetPaginatedRequest } from '../../pagination/OffsetPaginatedRequest';
3
3
  import { UserGroupAssociation } from './UserGroupAssociation';
4
4
  export interface ListUserGroupAssociations extends Intersection<Omit<UserGroupAssociation, 'userId'>, OffsetPaginatedRequest> {
5
+ userFirstOrLastName?: string;
5
6
  }
@@ -1,6 +1,7 @@
1
1
  import { UserId } from '../UserId';
2
+ import { UserGroupAssociationEntity } from './db/UserGroupAssociationEntity';
2
3
  import { UserGroupId } from './UserGroupId';
3
- export interface UserGroupAssociation {
4
+ export interface UserGroupAssociation extends Partial<UserGroupAssociationEntity> {
4
5
  userId: UserId;
5
6
  userGroupId: UserGroupId;
6
7
  }
@@ -0,0 +1,10 @@
1
+ import { User } from '../../User';
2
+ import { UserId } from '../../UserId';
3
+ import { UserGroup } from '../UserGroup';
4
+ import { UserGroupId } from '../UserGroupId';
5
+ export interface UserGroupAssociationEntity {
6
+ userId: UserId;
7
+ userGroupId: UserGroupId;
8
+ userGroup: UserGroup;
9
+ user: User;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "description": "core-api types package",
5
5
  "main": "./models",
6
6
  "types": "./models",