@coast/core-api-types 1.2.192 → 1.2.194

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,5 +1,6 @@
1
+ import { Id } from './Id';
1
2
  export interface DataEntity {
2
- id: number | string;
3
+ id: Id;
3
4
  channelId?: number;
4
5
  channel?: {
5
6
  id: number;
@@ -0,0 +1,2 @@
1
+ import { Brand } from '@paradoxical-io/types';
2
+ export type Id = Brand<number | string, unknown> | number | string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Id.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Id.js","sourceRoot":"","sources":["../../../src/models/application/Id.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
+ import { Id } from '../application/Id';
1
2
  import { UserId } from '../user/UserId';
2
3
  type IndexableField = keyof Indexable;
3
4
  export interface Indexable {
@@ -9,7 +10,7 @@ export interface Indexable {
9
10
  content?: string;
10
11
  createdAt: Date;
11
12
  editedAt?: Date;
12
- id: number | string;
13
+ id: Id;
13
14
  name?: string;
14
15
  testField?: any;
15
16
  threadId?: string;
@@ -1,8 +1,9 @@
1
1
  import { Audit } from '../../application/Audit';
2
+ import { DataEntity } from '../../application/DataEntity';
2
3
  import { WorkflowTemplateId } from '../WorkflowTemplateId';
3
4
  import { EntityFields } from './EntityFields';
4
5
  import { ImpliedSortKeys } from './sort/ImpliedSortKeys';
5
- export interface WorkflowEntity extends Audit {
6
+ export interface WorkflowEntity extends DataEntity, Audit {
6
7
  id: string;
7
8
  channelId: number;
8
9
  workflowTemplateId?: WorkflowTemplateId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.192",
3
+ "version": "1.2.194",
4
4
  "description": "Facilitates the generation of core-api-types npm package",
5
5
  "exports": {
6
6
  "./*": {