@coast/core-api-types 1.2.12 → 1.2.14

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.
@@ -4,6 +4,7 @@ import { PlanLimitEntity } from '../plan-limits/PlanLimitEntity';
4
4
  import { Indexable } from '../search/Indexable';
5
5
  import { User } from '../user/User';
6
6
  import { UserId } from '../user/UserId';
7
+ import { ImpliedSortKeys } from '../workflow-template/entities/sort/ImpliedSortKeys';
7
8
  import { WorkflowEntity } from '../workflow-template/entities/WorkflowEntity';
8
9
  import { CardFieldStringTag } from './card-field-string-tag/CardFieldStringTag';
9
10
  import { CardReminder } from './card-reminder/CardReminder';
@@ -34,6 +35,7 @@ export interface Card extends DataEntity, Indexable, PlanLimitEntity, WorkflowEn
34
35
  fields?: CardFields;
35
36
  deletedAt?: Date;
36
37
  kanbanSortKey: string;
38
+ impliedSortKeys?: ImpliedSortKeys;
37
39
  status: CardStatus;
38
40
  planLimitImposed: boolean;
39
41
  relatedCards?: RelatedCardSummary[];
@@ -1,8 +1,9 @@
1
+ import { ViewTemplateId } from '../workflow-template/view-template/ViewTemplateId';
1
2
  import { SharedCardLink } from './SharedCardLink';
2
3
  import { SharedCardLinkType } from './SharedCardLinkType';
3
4
  export interface CreateSharedCardLink extends Partial<SharedCardLink> {
4
5
  channelId: number;
5
6
  type: SharedCardLinkType;
6
7
  cardId?: string;
7
- viewTemplateId?: string;
8
+ viewTemplateId?: ViewTemplateId;
8
9
  }
@@ -1,7 +1,8 @@
1
+ import { ViewTemplateId } from '../../../workflow-template/view-template/ViewTemplateId';
1
2
  import { Component } from '../Component';
2
3
  export interface ReferencedInComponent extends Component {
3
4
  referencedFromWorkflowTemplateId: string;
4
5
  relatedCardComponentId: string;
5
- referencingViewTemplateId?: string;
6
+ referencingViewTemplateId?: ViewTemplateId;
6
7
  label?: string;
7
8
  }
@@ -1,4 +1,6 @@
1
+ import { ViewTemplateId } from '../view-template/ViewTemplateId';
1
2
  import { AbstractListWorkflowEntities } from './AbstractListWorkflowEntities';
2
3
  export interface ListWorkflowEntities extends AbstractListWorkflowEntities {
3
4
  workflowTemplateId: string;
5
+ viewTemplateId?: ViewTemplateId;
4
6
  }
@@ -1,9 +1,11 @@
1
1
  import { Audit } from '../../application/Audit';
2
2
  import { EntityFields } from './EntityFields';
3
+ import { ImpliedSortKeys } from './sort/ImpliedSortKeys';
3
4
  export interface WorkflowEntity extends Audit {
4
5
  id: string;
5
6
  workflowTemplateId?: string;
6
7
  channelId: number;
7
8
  fields?: EntityFields;
9
+ impliedSortKeys?: ImpliedSortKeys;
8
10
  deletedAt?: Date;
9
11
  }
@@ -0,0 +1,2 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ImpliedSortKey = Brand<string, 'ImpliedSortKey'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { ViewTemplateId } from '../../../workflow-template/view-template/ViewTemplateId';
2
+ import { ImpliedSortKey } from './ImpliedSortKey';
3
+ export interface ImpliedSortKeys {
4
+ defaultKey: ImpliedSortKey;
5
+ viewTemplateKeys: Record<ViewTemplateId, ImpliedSortKey>;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  import { ViewTemplate } from './ViewTemplate';
2
+ import { ViewTemplateId } from './ViewTemplateId';
2
3
  export interface DuplicateViewTemplate extends Pick<ViewTemplate, 'workflowTemplateId' | 'name'> {
3
- viewTemplateId: string;
4
+ viewTemplateId: ViewTemplateId;
4
5
  }
@@ -1,7 +1,8 @@
1
1
  import { CreateComponentViewOptions } from '../components/CreateComponentViewOptions';
2
2
  import { ViewTemplate } from './ViewTemplate';
3
+ import { ViewTemplateId } from './ViewTemplateId';
3
4
  export interface UpdateViewTemplate extends Partial<Omit<ViewTemplate, 'id' | 'workflowTemplateId' | 'componentsViewOptions' | 'createdAt' | 'updatedAt'>> {
4
- id: string;
5
+ id: ViewTemplateId;
5
6
  workflowTemplateId: string;
6
7
  componentsViewOptions?: CreateComponentViewOptions[];
7
8
  }
@@ -2,9 +2,10 @@ import { Audit } from '../../application/Audit';
2
2
  import { ComponentViewOptions } from '../components/ComponentViewOptions';
3
3
  import { CollectionCriteria } from './CollectionCriteria';
4
4
  import { ViewSubtype } from './ViewSubtype';
5
+ import { ViewTemplateId } from './ViewTemplateId';
5
6
  import { ViewType } from './ViewType';
6
7
  export interface ViewTemplate extends Audit {
7
- id: string;
8
+ id: ViewTemplateId;
8
9
  workflowTemplateId: string;
9
10
  name: string;
10
11
  type: ViewType;
@@ -1,4 +1,5 @@
1
+ import { ViewTemplateId } from './ViewTemplateId';
1
2
  export interface ViewTemplateCopyMapping {
2
- originalViewTemplateId: string;
3
- newViewTemplateId: string;
3
+ originalViewTemplateId: ViewTemplateId;
4
+ newViewTemplateId: ViewTemplateId;
4
5
  }
@@ -0,0 +1,2 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type ViewTemplateId = Brand<string, 'ViewTemplateId'>;
@@ -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.12",
3
+ "version": "1.2.14",
4
4
  "description": "core-api types package",
5
5
  "main": "./models",
6
6
  "types": "./models",