@coast/core-api-types 1.2.191 → 1.2.192

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,6 +1,7 @@
1
1
  import { Audit } from '../application/Audit';
2
2
  import { BusinessId } from '../business/BusinessId';
3
3
  import { AutomationActionRegistry } from './action/AutomationActionRegistry';
4
+ import { AutomationId } from './AutomationId';
4
5
  import { AutomationTriggerType } from './AutomationTriggerType';
5
6
  import { Condition } from './condition/Condition';
6
7
  export interface Automation extends Audit {
@@ -9,9 +10,9 @@ export interface Automation extends Audit {
9
10
  conditions?: Condition[];
10
11
  deletedAt?: Date;
11
12
  enabled: boolean;
12
- id: string;
13
+ id: AutomationId;
13
14
  name: string;
14
- parentId?: string;
15
+ parentId?: AutomationId;
15
16
  suppressAutomationChain: boolean;
16
17
  trigger: AutomationTriggerType;
17
18
  }
@@ -1,2 +1,2 @@
1
1
  import { GetWorkflowEntityResult } from '../../workflow-template/entities/GetWorkflowEntityResult';
2
- export type AutomationActionOutput = GetWorkflowEntityResult | GetWorkflowEntityResult[] | number | void;
2
+ export type AutomationActionOutput = GetWorkflowEntityResult | GetWorkflowEntityResult[] | number | undefined;
@@ -1,7 +1,8 @@
1
1
  import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
2
+ import { AutomationId } from '../../AutomationId';
2
3
  import { AutomationActionSettings } from './AutomationActionSettings';
3
4
  export interface TriggerRelatedCardAutomationActionSettings extends AutomationActionSettings {
4
- automationId: string;
5
+ automationId: AutomationId;
5
6
  relatedCardComponentId: string;
6
7
  workflowTemplateId: WorkflowTemplateId;
7
8
  }
@@ -1,7 +1,8 @@
1
1
  import { AutomationEventContext } from '../automations/AutomationEventContext';
2
+ import { AutomationId } from '../automations/AutomationId';
2
3
  import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
3
4
  export interface CreateWorkflowAutomationEvent {
4
- automationId: string;
5
+ automationId: AutomationId;
5
6
  context?: AutomationEventContext;
6
7
  workflowEntityId: string;
7
8
  workflowTemplateId: WorkflowTemplateId;
@@ -1,7 +1,8 @@
1
+ import { AutomationId } from '../automations/AutomationId';
1
2
  import { DeepPartial } from '../utils/DeepPartial';
2
3
  import { WorkflowTemplateAutomationAssociation } from '../workflow-automation/WorkflowTemplateAutomationAssociation';
3
4
  import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
4
5
  export interface CreateWorkflowTemplateAutomationAssociation extends DeepPartial<WorkflowTemplateAutomationAssociation> {
5
- automationId: string;
6
+ automationId: AutomationId;
6
7
  workflowTemplateId: WorkflowTemplateId;
7
8
  }
@@ -1,5 +1,6 @@
1
+ import { AutomationId } from '../automations/AutomationId';
1
2
  import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
2
3
  export interface WorkflowTemplateAutomationAssociation {
3
- automationId: string;
4
+ automationId: AutomationId;
4
5
  workflowTemplateId: WorkflowTemplateId;
5
6
  }
@@ -1,9 +1,10 @@
1
+ import { AutomationId } from '../../../automations/AutomationId';
1
2
  import { ComponentType } from '../ComponentType';
2
3
  import { Defaultable } from '../Defaultable';
3
4
  import { InputComponent } from '../InputComponent';
4
5
  import { ScheduledAutomationDefault } from './ScheduledAutomationDefault';
5
6
  export interface ScheduledAutomationComponent extends Defaultable<ScheduledAutomationDefault>, InputComponent<ComponentType.SCHEDULED_AUTOMATION> {
6
- automationId: string;
7
+ automationId: AutomationId;
7
8
  dateComponentId: string;
8
9
  default?: ScheduledAutomationDefault;
9
10
  scheduleImmediatelyIfInPast?: boolean;
@@ -1,6 +1,7 @@
1
+ import { AutomationId } from '../../../automations/AutomationId';
1
2
  import { WorkflowTemplateId } from '../../WorkflowTemplateId';
2
3
  export interface EntityScheduledAutomationTrigger {
3
- automationId: string;
4
+ automationId: AutomationId;
4
5
  componentId: string;
5
6
  consumedAt?: Date;
6
7
  createdAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.191",
3
+ "version": "1.2.192",
4
4
  "description": "Facilitates the generation of core-api-types npm package",
5
5
  "exports": {
6
6
  "./*": {