@coast/core-api-types 1.2.380 → 1.2.382

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.
@@ -21,5 +21,5 @@ export interface AutomationContext {
21
21
  automationRevisionId: AutomationRevisionId | undefined;
22
22
  originUserId: OriginUserId | undefined;
23
23
  trigger: AutomationTriggerType;
24
- eventId: WorkflowEntityEventId;
24
+ eventId: WorkflowEntityEventId | undefined;
25
25
  }
@@ -1,6 +1,7 @@
1
1
  import { AutomationActionAuditId } from '@coast/core-types/automations/action/audit/AutomationActionAuditId';
2
2
  import { AutomationActionStatus } from '@coast/core-types/automations/action/audit/AutomationActionStatus';
3
3
  import { AutomationActionId } from '@coast/core-types/automations/action/AutomationActionId';
4
+ import { AutomationRunAuditId } from '@coast/core-types/automations/audit/AutomationRunAuditId';
4
5
  import { AutomationId } from '@coast/core-types/automations/AutomationId';
5
6
  import { AutomationRevisionId } from '@coast/core-types/automations/revision/AutomationRevisionId';
6
7
  import { WorkflowEntityEventId } from '@coast/core-types/workflow-entity/WorkflowEntityEventId';
@@ -12,6 +13,7 @@ export interface AutomationActionAudit extends Audit {
12
13
  automationId: AutomationId;
13
14
  actionId: AutomationActionId;
14
15
  workflowEntityEventId?: WorkflowEntityEventId;
16
+ automationRunAuditId?: AutomationRunAuditId;
15
17
  automationRevisionId?: AutomationRevisionId;
16
18
  status: AutomationActionStatus;
17
19
  result?: AnyAutomationActionAuditResult;
@@ -9,7 +9,7 @@ export interface AutomationRunAudit extends Audit {
9
9
  id: AutomationRunAuditId;
10
10
  automationId: AutomationId;
11
11
  automationRevisionId?: AutomationRevisionId;
12
- workflowEntityEventId: WorkflowEntityEventId;
12
+ workflowEntityEventId?: WorkflowEntityEventId;
13
13
  workflowEntityId: string;
14
14
  status: AutomationRunStatus;
15
15
  detail?: AutomationAuditDetail;
@@ -17,7 +17,7 @@ export interface ExternalCardEventPayload {
17
17
  entityAuditTrailEvent?: CreateEntityAuditTrailEvent;
18
18
  targetEntity: boolean;
19
19
  userId: UserId;
20
- eventId: WorkflowEntityEventId;
20
+ eventId?: WorkflowEntityEventId;
21
21
  recurringEntitiesAutoExtendEvents?: NonEmptyArray<RecurringEntitiesAutoExtendEvent>;
22
22
  isReorderOnly?: boolean;
23
23
  }
@@ -2,7 +2,7 @@ import { OriginUserId } from '@coast/core-types/user/UserId';
2
2
  import { WebhookType } from '@coast/core-types/webhook/WebhookType';
3
3
  import { WorkflowEntity } from '../workflow-entity/WorkflowEntity';
4
4
  export interface WorkflowEntityWebhookPayload {
5
- id: string;
5
+ id?: string;
6
6
  type: WebhookType.WORKFLOW_ENTITY_CREATED | WebhookType.WORKFLOW_ENTITY_UPDATED;
7
7
  entity: WorkflowEntity;
8
8
  previousEntity?: WorkflowEntity;
@@ -26,6 +26,7 @@ export interface WorkflowTemplate extends DataEntity, Audit {
26
26
  name: string;
27
27
  originalId?: WorkflowTemplateId;
28
28
  parentId?: WorkflowTemplateId;
29
+ referencingTitleComponentId?: ComponentId;
29
30
  requiresName: boolean;
30
31
  userId: UserId;
31
32
  viewTemplates?: ViewTemplate[];
@@ -1,7 +1,6 @@
1
- import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
2
1
  import { Component } from './Component';
3
2
  type NonInheritableComponentProperties = 'archivedAt' | 'id' | 'isServerManaged' | 'locked' | 'managedByComponentId' | 'type';
4
3
  export type ComponentOverrideType<T extends Component, K extends keyof T = never> = Partial<Omit<T, K | NonInheritableComponentProperties>> & {
5
- type: ComponentType;
4
+ type: T['type'];
6
5
  };
7
6
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.380",
3
+ "version": "1.2.382",
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.99",
26
+ "@coast/core-types": "0.0.104",
27
27
  "@coast/core-utils": "0.0.25",
28
28
  "@coast/schemas": "^4.0.2",
29
29
  "@coast/service-common": "^2.0.81",
@@ -35,12 +35,10 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@coast/service-common-scripts": "^1.0.50",
38
- "@typescript/native-preview": "^7.0.0-dev.20260327.2",
39
38
  "glob": "^10.5.0",
40
39
  "ts-morph": "^24.0.0",
41
40
  "ts-node": "^10.9.2",
42
- "tsx": "^4",
43
- "typescript": "^6.0.3"
41
+ "tsx": "^4"
44
42
  },
45
43
  "scripts": {
46
44
  "clean": "yarn clean:dist",
@@ -48,7 +46,7 @@
48
46
  "clean:dist": "rm -rf dist tsconfig.tsbuildinfo",
49
47
  "generate": "tsx src/scripts/generateTypes.ts",
50
48
  "regenerate": "yarn clean:sources && yarn generate",
51
- "build": "yarn clean:dist && tsgo"
49
+ "build": "yarn clean:dist && yarn run -T tsc"
52
50
  },
53
51
  "publishConfig": {
54
52
  "access": "public"