@coast/core-api-types 1.2.3 → 1.2.5

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 { Audit } from '../application/Audit';
2
+ import { BusinessId } from './BusinessId';
2
3
  export interface Business extends Audit {
3
- id: number;
4
+ id: BusinessId;
4
5
  name: string;
5
6
  slug: string;
6
7
  email?: string;
@@ -1,4 +1,5 @@
1
+ import { BusinessId } from './BusinessId';
1
2
  export interface UpdateBusinessV2 {
2
- id: number;
3
+ id: BusinessId;
3
4
  password?: string;
4
5
  }
@@ -1,9 +1,9 @@
1
1
  import { Card } from '../card/Card';
2
2
  import { ClientEventType } from '../card/client-event/ClientEventType';
3
3
  import { EntityEventType } from '../card/EntityEventType';
4
- import { Channel } from '../channel/Channel';
5
4
  import { ThreadMessage } from '../messaging/ThreadMessage';
6
5
  import { User } from '../user/User';
6
+ import { Channel } from './Channel';
7
7
  export interface ChannelAccountingUpdated {
8
8
  channel: Channel;
9
9
  user: User;
@@ -0,0 +1,2 @@
1
+ import { Channel } from './Channel';
2
+ export type ChannelWithoutRelations = Omit<Channel, 'channelMemberships' | 'cardDefinitions' | 'relatedChannelAssociations'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { UserGroup } from './UserGroup';
2
+ export interface CreateUserGroup extends Omit<UserGroup, 'id' | 'businessId' | 'createdAt' | 'updatedAt' | 'deletedAt'> {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { UserGroup } from './UserGroup';
2
+ export interface UpdateUserGroup extends Omit<UserGroup, 'businessId' | 'updatedAt' | 'createdAt' | 'deletedAt'> {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { Audit } from '../../application/Audit';
2
+ import { BusinessId } from '../../business/BusinessId';
3
+ import { UserGroupId } from './UserGroupId';
4
+ export interface UserGroup extends Audit {
5
+ id: UserGroupId;
6
+ name: string;
7
+ businessId: BusinessId;
8
+ deletedAt?: Date | null;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type UserGroupId = Brand<string, 'UserGroupId'>;
@@ -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.3",
3
+ "version": "1.2.5",
4
4
  "description": "core-api types package",
5
5
  "main": "./models",
6
6
  "types": "./models",