@coast/core-api-types 1.5.17 → 1.5.19

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.
Files changed (18) hide show
  1. package/dist/models/card/Card.d.ts +2 -0
  2. package/dist/models/card/ExternalCardEventPayload.d.ts +0 -2
  3. package/dist/models/workflow-entity/CreateWorkflowEntityGql.d.ts +1 -1
  4. package/dist/models/workflow-entity/UpdateWorkflowEntityGql.d.ts +1 -1
  5. package/dist/models/workflow-entity/WorkflowEntityGql.d.ts +2 -0
  6. package/package.json +2 -2
  7. package/dist/models/workflow-template/component-subscription/ComponentSubscription.d.ts +0 -23
  8. package/dist/models/workflow-template/component-subscription/ComponentSubscription.js +0 -3
  9. package/dist/models/workflow-template/component-subscription/ComponentSubscription.js.map +0 -1
  10. package/dist/models/workflow-template/component-subscription/ComponentSubscriptionEvent.d.ts +0 -6
  11. package/dist/models/workflow-template/component-subscription/ComponentSubscriptionEvent.js +0 -3
  12. package/dist/models/workflow-template/component-subscription/ComponentSubscriptionEvent.js.map +0 -1
  13. package/dist/models/workflow-template/component-subscription/ComponentSubscriptionEvents.d.ts +0 -9
  14. package/dist/models/workflow-template/component-subscription/ComponentSubscriptionEvents.js +0 -3
  15. package/dist/models/workflow-template/component-subscription/ComponentSubscriptionEvents.js.map +0 -1
  16. package/dist/models/workflow-template/component-subscription/CreateComponentSubscription.d.ts +0 -3
  17. package/dist/models/workflow-template/component-subscription/CreateComponentSubscription.js +0 -3
  18. package/dist/models/workflow-template/component-subscription/CreateComponentSubscription.js.map +0 -1
@@ -27,9 +27,11 @@ export interface Card extends DataEntity, Indexable, PlanLimitEntity, WorkflowEn
27
27
  impliedSortKeys?: ImpliedSortKeysGql;
28
28
  kanbanSortKey: string;
29
29
  name: string;
30
+ parentEntityId?: string;
30
31
  planLimitImposed: boolean;
31
32
  recurrenceDate?: Date;
32
33
  relatedCards?: RelatedCardSummary[];
34
+ rootEntityId?: string;
33
35
  sequenceNumber?: number;
34
36
  startDate?: Date;
35
37
  startDateOffset?: number;
@@ -5,7 +5,6 @@ import { NonEmptyArray } from '@coast/core-utils/NonEmptyArray';
5
5
  import { WorkflowAutomationsEvent } from '../workflow-automation/WorkflowAutomationsEvent';
6
6
  import { CreateEntityAuditTrailEventGql } from '../workflow-entity/audit-trail/CreateEntityAuditTrailEventGql';
7
7
  import { RecurringEntitiesAutoExtendEvent } from '../workflow-entity/recurring/RecurringEntitiesAutoExtendEvent';
8
- import { ComponentSubscriptionEvents } from '../workflow-template/component-subscription/ComponentSubscriptionEvents';
9
8
  import { Card } from './Card';
10
9
  export interface ExternalCardEventPayload {
11
10
  automationsEvent?: WorkflowAutomationsEvent;
@@ -13,7 +12,6 @@ export interface ExternalCardEventPayload {
13
12
  businessId: BusinessId;
14
13
  card: Partial<Card>;
15
14
  channelId: number;
16
- componentSubscriptionEvents?: ComponentSubscriptionEvents;
17
15
  entityAuditTrailEvent?: CreateEntityAuditTrailEventGql;
18
16
  targetEntity: boolean;
19
17
  userId: UserId;
@@ -1,7 +1,7 @@
1
1
  import { UserId } from '@coast/core-types/user/UserId';
2
2
  import { ViewTemplateId } from '@coast/core-types/view-template/ViewTemplateId';
3
3
  import { WorkflowEntityGql } from './WorkflowEntityGql';
4
- export interface CreateWorkflowEntityGql extends Omit<WorkflowEntityGql, 'id' | 'createdAt' | 'updatedAt' | 'channelId' | 'threadId'> {
4
+ export interface CreateWorkflowEntityGql extends Omit<WorkflowEntityGql, 'id' | 'createdAt' | 'updatedAt' | 'channelId' | 'threadId' | 'parentEntityId' | 'rootEntityId'> {
5
5
  channelId?: number | null;
6
6
  viewTemplateId?: ViewTemplateId | null;
7
7
  kanbanSortKey?: string | null;
@@ -1,6 +1,6 @@
1
1
  import { ViewTemplateId } from '@coast/core-types/view-template/ViewTemplateId';
2
2
  import { WorkflowEntityGql } from './WorkflowEntityGql';
3
- export interface UpdateWorkflowEntityGql extends Omit<WorkflowEntityGql, 'createdAt' | 'updatedAt' | 'channelId' | 'workflowTemplateId' | 'impliedSortKeys' | 'threadId'> {
3
+ export interface UpdateWorkflowEntityGql extends Omit<WorkflowEntityGql, 'createdAt' | 'updatedAt' | 'channelId' | 'workflowTemplateId' | 'impliedSortKeys' | 'threadId' | 'parentEntityId' | 'rootEntityId'> {
4
4
  viewTemplateId?: ViewTemplateId | null;
5
5
  name?: string | null;
6
6
  }
@@ -10,5 +10,7 @@ export interface WorkflowEntityGql extends DataEntity, Audit {
10
10
  deletedAt?: Date | null;
11
11
  fields?: EntityFieldsGql | null;
12
12
  impliedSortKeys?: ImpliedSortKeysGql | null;
13
+ parentEntityId?: string | null;
14
+ rootEntityId?: string | null;
13
15
  threadId: string;
14
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.5.17",
3
+ "version": "1.5.19",
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.129",
26
+ "@coast/core-types": "0.0.133",
27
27
  "@coast/core-utils": "0.0.28",
28
28
  "@coast/schemas": "^4.0.2",
29
29
  "@coast/service-common": "^2.0.81",
@@ -1,23 +0,0 @@
1
- import { ObserverAction } from '@coast/core-types/workflow-template/component-subscription/ObserverAction';
2
- import { SubscriptionType } from '@coast/core-types/workflow-template/component-subscription/SubscriptionType';
3
- import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
4
- import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
5
- import { Audit } from '../../application/Audit';
6
- export interface ComponentSubscription extends Audit {
7
- deletedAt?: Date;
8
- id: string;
9
- observer2Action?: ObserverAction;
10
- observerAction: ObserverAction;
11
- observerBaselineComponentId?: ComponentId;
12
- observerComponent2Id?: string;
13
- observerComponentId: ComponentId;
14
- observerEmailComponentId?: ComponentId;
15
- observerTagConditionalComponentId?: ComponentId;
16
- observerTagConditionalValue?: string;
17
- observerThresholdComponentId?: ComponentId;
18
- subjectDedicatedQuantityComponentId?: ComponentId;
19
- subjectRelatedCardComponentId?: ComponentId;
20
- subjectRelatedCardQuantitySubpath?: string;
21
- subjectWorkflowTemplateId: WorkflowTemplateId;
22
- type: SubscriptionType;
23
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ComponentSubscription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ComponentSubscription.js","sourceRoot":"","sources":["../../../../src/models/workflow-template/component-subscription/ComponentSubscription.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { Operation } from 'rfc6902';
2
- import { ComponentSubscription } from './ComponentSubscription';
3
- export interface ComponentSubscriptionEvent {
4
- subscription: ComponentSubscription;
5
- subjectOperations: Operation[];
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ComponentSubscriptionEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ComponentSubscriptionEvent.js","sourceRoot":"","sources":["../../../../src/models/workflow-template/component-subscription/ComponentSubscriptionEvent.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
2
- import { ComponentSubscriptionEvent } from './ComponentSubscriptionEvent';
3
- export interface ComponentSubscriptionEvents {
4
- context: {
5
- workflowTemplateId: WorkflowTemplateId;
6
- originalData: Record<string, unknown>;
7
- };
8
- events: ComponentSubscriptionEvent[];
9
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ComponentSubscriptionEvents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ComponentSubscriptionEvents.js","sourceRoot":"","sources":["../../../../src/models/workflow-template/component-subscription/ComponentSubscriptionEvents.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { ComponentSubscription } from './ComponentSubscription';
2
- export interface CreateComponentSubscription extends Omit<ComponentSubscription, 'id' | 'createdAt' | 'updatedAt' | 'deletedAt'> {
3
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=CreateComponentSubscription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateComponentSubscription.js","sourceRoot":"","sources":["../../../../src/models/workflow-template/component-subscription/CreateComponentSubscription.ts"],"names":[],"mappings":""}