@coast/core-api-types 1.2.315 → 1.2.317

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.
@@ -8,10 +8,11 @@ export interface CreateThreadMessage extends Partial<ThreadMessage> {
8
8
  content: string;
9
9
  createdAt?: Date;
10
10
  fromSms?: boolean;
11
+ threadId?: string;
12
+ channelId?: number;
11
13
  isImportant: boolean;
12
14
  meta?: ThreadMessageMetaInput;
13
15
  senderId?: UserId;
14
16
  subType?: CardReminderEventType | EntityEventType;
15
- threadId: string;
16
17
  type: ThreadMessageType;
17
18
  }
@@ -0,0 +1,12 @@
1
+ import { BusinessId } from '@coast/core-types/business/BusinessId';
2
+ import { MentionEntityType } from '@coast/core-types/messaging/MentionEntityType';
3
+ import { UserId } from '@coast/core-types/user/UserId';
4
+ import { Audit } from '../application/Audit';
5
+ export interface Mention extends Audit {
6
+ id: number;
7
+ userId: UserId;
8
+ entityType: MentionEntityType;
9
+ entityId: number;
10
+ channelId: number;
11
+ businessId: BusinessId;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Mention.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Mention.js","sourceRoot":"","sources":["../../../src/models/messaging/Mention.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { MentionTokenType } from '@coast/core-types/messaging/MentionTokenType';
2
+ import { UserId } from '@coast/core-types/user/UserId';
3
+ export interface ThreadMessageMentionTokenInput {
4
+ type: MentionTokenType;
5
+ start: number;
6
+ end: number;
7
+ userId: UserId;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ThreadMessageMentionTokenInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadMessageMentionTokenInput.js","sourceRoot":"","sources":["../../../src/models/messaging/ThreadMessageMentionTokenInput.ts"],"names":[],"mappings":""}
@@ -1,11 +1,13 @@
1
1
  import { UserId } from '@coast/core-types/user/UserId';
2
2
  import { ThreadMessageAttachment } from './ThreadMessageAttachment';
3
+ import { ThreadMessageMentionTokenInput } from './ThreadMessageMentionTokenInput';
3
4
  import { ThreadMessageReaction } from './ThreadMessageReaction';
4
5
  import { Token } from './Token';
5
6
  export interface ThreadMessageMetaInput {
6
7
  attachments?: ThreadMessageAttachment[];
7
8
  cardId?: string;
8
9
  channelName?: string;
10
+ mentions?: ThreadMessageMentionTokenInput[];
9
11
  reactions?: ThreadMessageReaction[];
10
12
  tokens?: Token[];
11
13
  userIds?: UserId[];
@@ -1,7 +1,7 @@
1
1
  import { CreateChannelDefaultConfiguration } from './channel-default-configuration/CreateChannelDefaultConfiguration';
2
2
  import { ComponentOneOf } from './components/ComponentOneOf';
3
3
  import { WorkflowTemplate } from './WorkflowTemplate';
4
- export interface CreateWorkflowTemplate extends Omit<WorkflowTemplate, 'id' | 'userId' | 'parentId' | 'businessId' | 'cardDefinition' | 'channelDefaultConfiguration' | 'components' | 'archivedComponents' | 'requiresName' | 'isSubform' | 'createdAt' | 'updatedAt' | 'deletedAt'> {
4
+ export interface CreateWorkflowTemplate extends Omit<WorkflowTemplate, 'id' | 'userId' | 'parentId' | 'businessId' | 'viewTemplateDefaults' | 'cardDefinition' | 'channelDefaultConfiguration' | 'components' | 'archivedComponents' | 'requiresName' | 'isSubform' | 'createdAt' | 'updatedAt' | 'deletedAt'> {
5
5
  archivedComponents?: ComponentOneOf[];
6
6
  channelDefaultConfiguration?: CreateChannelDefaultConfiguration;
7
7
  components: ComponentOneOf[];
@@ -1,7 +1,9 @@
1
1
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
2
2
  import { UpdateChannelDefaultConfiguration } from './channel-default-configuration/UpdateChannelDefaultConfiguration';
3
3
  import { CreateWorkflowTemplate } from './CreateWorkflowTemplate';
4
+ import { ViewTemplateDefaults } from './ViewTemplateDefaults';
4
5
  export interface UpdateWorkflowTemplate extends Partial<Omit<CreateWorkflowTemplate, 'isSubform' | 'isPublic'>> {
5
6
  channelDefaultConfiguration?: UpdateChannelDefaultConfiguration;
6
7
  id: WorkflowTemplateId;
8
+ viewTemplateDefaults?: ViewTemplateDefaults;
7
9
  }
@@ -0,0 +1,5 @@
1
+ import { ViewTemplateId } from '@coast/core-types/view-template/ViewTemplateId';
2
+ export interface ViewTemplateDefaults {
3
+ create?: ViewTemplateId;
4
+ update?: ViewTemplateId;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ViewTemplateDefaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewTemplateDefaults.js","sourceRoot":"","sources":["../../../src/models/workflow-template/ViewTemplateDefaults.ts"],"names":[],"mappings":""}
@@ -8,9 +8,11 @@ import { ViewTemplate } from '../view-template/ViewTemplate';
8
8
  import { WorkflowTemplateBehavior } from './behaviors/WorkflowTemplateBehavior';
9
9
  import { ChannelDefaultConfiguration } from './channel-default-configuration/ChannelDefaultConfiguration';
10
10
  import { Component } from './components/Component';
11
+ import { ViewTemplateDefaults } from './ViewTemplateDefaults';
11
12
  export interface WorkflowTemplate extends DataEntity, Audit {
12
13
  archivedComponents?: Component[];
13
14
  behavior?: WorkflowTemplateBehavior;
15
+ viewTemplateDefaults?: ViewTemplateDefaults;
14
16
  businessId: BusinessId;
15
17
  cardDefinition?: CardDefinition;
16
18
  channelDefaultConfiguration?: ChannelDefaultConfiguration;
@@ -1,8 +1,7 @@
1
1
  import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
2
- import { ClassType } from '@coast/core-utils/ClassType';
3
2
  import { Component } from './Component';
4
3
  type NonInheritableComponentProperties = 'archivedAt' | 'id' | 'isServerManaged' | 'locked' | 'managedByComponentId' | 'type';
5
- export type ComponentOverrideType<T extends Component, K extends keyof T = never> = ClassType<Partial<Omit<T, K | NonInheritableComponentProperties>> & {
4
+ export type ComponentOverrideType<T extends Component, K extends keyof T = never> = Partial<Omit<T, K | NonInheritableComponentProperties>> & {
6
5
  type: ComponentType;
7
- }>;
6
+ };
8
7
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.315",
3
+ "version": "1.2.317",
4
4
  "description": "Facilitates the generation of core-api-types npm package",
5
5
  "exports": {
6
6
  "./*": {
@@ -23,7 +23,7 @@
23
23
  "author": "Coast Engineering",
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@coast/core-types": "0.0.43",
26
+ "@coast/core-types": "0.0.44",
27
27
  "@coast/core-utils": "0.0.16",
28
28
  "@coast/schemas": "^4.0.2",
29
29
  "@coast/service-common": "^2.0.70",