@coast/core-api-types 1.2.190 → 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.
- package/dist/models/automations/Automation.d.ts +3 -2
- package/dist/models/automations/action/AutomationActionOutput.d.ts +1 -1
- package/dist/models/automations/action/settings/TriggerRelatedCardAutomationActionSettings.d.ts +2 -1
- package/dist/models/workflow-automation/CreateWorkflowAutomationEvent.d.ts +2 -1
- package/dist/models/workflow-automation/CreateWorkflowTemplateAutomationAssociation.d.ts +2 -1
- package/dist/models/workflow-automation/WorkflowTemplateAutomationAssociation.d.ts +2 -1
- package/dist/models/workflow-template/components/AnyComponentAuditData.d.ts +2 -1
- package/dist/models/workflow-template/components/AnyComponentDataChange.d.ts +2 -1
- package/dist/models/workflow-template/components/related-card/RelatedCardComponentAuditData.d.ts +6 -0
- package/dist/models/workflow-template/components/related-card/RelatedCardComponentAuditData.js +3 -0
- package/dist/models/workflow-template/components/related-card/RelatedCardComponentAuditData.js.map +1 -0
- package/dist/models/workflow-template/components/related-card/RelatedCardComponentDataChange.d.ts +4 -0
- package/dist/models/workflow-template/components/related-card/RelatedCardComponentDataChange.js +3 -0
- package/dist/models/workflow-template/components/related-card/RelatedCardComponentDataChange.js.map +1 -0
- package/dist/models/workflow-template/components/scheduled-automation/ScheduledAutomationComponent.d.ts +2 -1
- package/dist/models/workflow-template/entities/audit-trail/ComponentDataChange.d.ts +2 -0
- package/dist/models/workflow-template/entities/audit-trail/EntityAuditTrailEntry.d.ts +1 -1
- package/dist/models/workflow-template/entities/scheduled-automation/EntityScheduledAutomationTrigger.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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:
|
|
13
|
+
id: AutomationId;
|
|
13
14
|
name: string;
|
|
14
|
-
parentId?:
|
|
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 |
|
|
2
|
+
export type AutomationActionOutput = GetWorkflowEntityResult | GetWorkflowEntityResult[] | number | undefined;
|
package/dist/models/automations/action/settings/TriggerRelatedCardAutomationActionSettings.d.ts
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
4
|
+
automationId: AutomationId;
|
|
4
5
|
workflowTemplateId: WorkflowTemplateId;
|
|
5
6
|
}
|
|
@@ -9,6 +9,7 @@ import { FileComponentAuditData } from './file/FileComponentAuditData';
|
|
|
9
9
|
import { GeolocationComponentAuditData } from './geo-location/GeolocationComponentAuditData';
|
|
10
10
|
import { NumberComponentAuditData } from './number/NumberComponentAuditData';
|
|
11
11
|
import { PersonComponentAuditData } from './person/PersonComponentAuditData';
|
|
12
|
+
import { RelatedCardComponentAuditData } from './related-card/RelatedCardComponentAuditData';
|
|
12
13
|
import { ScheduledAutomationComponentAuditData } from './scheduled-automation/ScheduledAutomationComponentAuditData';
|
|
13
14
|
import { SignatureComponentAuditData } from './signature/SignatureComponentAuditData';
|
|
14
15
|
import { SubformComponentAuditData } from './subform/SubformComponentAuditData';
|
|
@@ -17,7 +18,7 @@ import { TextComponentAuditData } from './text/TextComponentAuditData';
|
|
|
17
18
|
import { TimeTrackerComponentAuditData } from './time-tracker/TimeTrackerComponentAuditData';
|
|
18
19
|
import { TodoComponentAuditData } from './todo/TodoComponentAuditData';
|
|
19
20
|
import { UrlComponentAuditData } from './url/UrlComponentAuditData';
|
|
20
|
-
export type AnyComponentAuditData = AddressComponentAuditData | AuditCheckboxComponentAuditData | AuditTagAuditData | AuditTextComponentAuditData | DateComponentAuditData | EmailComponentAuditData | FileComponentAuditData | GeolocationComponentAuditData | NumberComponentAuditData | PersonComponentAuditData | ScheduledAutomationComponentAuditData | SignatureComponentAuditData | SubformComponentAuditData | TagComponentAuditData | TextComponentAuditData | TimeTrackerComponentAuditData | TodoComponentAuditData | UrlComponentAuditData;
|
|
21
|
+
export type AnyComponentAuditData = AddressComponentAuditData | AuditCheckboxComponentAuditData | AuditTagAuditData | AuditTextComponentAuditData | DateComponentAuditData | EmailComponentAuditData | FileComponentAuditData | GeolocationComponentAuditData | NumberComponentAuditData | PersonComponentAuditData | RelatedCardComponentAuditData | ScheduledAutomationComponentAuditData | SignatureComponentAuditData | SubformComponentAuditData | TagComponentAuditData | TextComponentAuditData | TimeTrackerComponentAuditData | TodoComponentAuditData | UrlComponentAuditData;
|
|
21
22
|
export type ComponentAuditDataOf<T extends ComponentType> = Extract<AnyComponentAuditData, {
|
|
22
23
|
type: T;
|
|
23
24
|
}>;
|
|
@@ -9,6 +9,7 @@ import { FileComponentDataChange } from './file/FileComponentDataChange';
|
|
|
9
9
|
import { GeolocationComponentDataChange } from './geo-location/GeolocationComponentDataChange';
|
|
10
10
|
import { NumberComponentDataChange } from './number/NumberComponentDataChange';
|
|
11
11
|
import { PersonComponentDataChange } from './person/PersonComponentDataChange';
|
|
12
|
+
import { RelatedCardComponentDataChange } from './related-card/RelatedCardComponentDataChange';
|
|
12
13
|
import { ScheduledAutomationComponentDataChange } from './scheduled-automation/ScheduledAutomationComponentDataChange';
|
|
13
14
|
import { SignatureComponentDataChange } from './signature/SignatureComponentDataChange';
|
|
14
15
|
import { SubformComponentDataChange } from './subform/SubformComponentDataChange';
|
|
@@ -17,7 +18,7 @@ import { TextComponentDataChange } from './text/TextComponentDataChange';
|
|
|
17
18
|
import { TimeTrackerComponentDataChange } from './time-tracker/TimeTrackerComponentDataChange';
|
|
18
19
|
import { TodoComponentDataChange } from './todo/TodoComponentDataChange';
|
|
19
20
|
import { UrlComponentDataChange } from './url/UrlComponentDataChange';
|
|
20
|
-
export type AnyComponentDataChange = AddressComponentDataChange | AuditCheckboxComponentDataChange | AuditTagComponentDataChange | AuditTextComponentDataChange | DateComponentDataChange | EmailComponentDataChange | FileComponentDataChange | GeolocationComponentDataChange | NumberComponentDataChange | PersonComponentDataChange | ScheduledAutomationComponentDataChange | SignatureComponentDataChange | SubformComponentDataChange | TagComponentDataChange | TextComponentDataChange | TimeTrackerComponentDataChange | TodoComponentDataChange | UrlComponentDataChange;
|
|
21
|
+
export type AnyComponentDataChange = AddressComponentDataChange | AuditCheckboxComponentDataChange | AuditTagComponentDataChange | AuditTextComponentDataChange | DateComponentDataChange | EmailComponentDataChange | FileComponentDataChange | GeolocationComponentDataChange | NumberComponentDataChange | PersonComponentDataChange | RelatedCardComponentDataChange | ScheduledAutomationComponentDataChange | SignatureComponentDataChange | SubformComponentDataChange | TagComponentDataChange | TextComponentDataChange | TimeTrackerComponentDataChange | TodoComponentDataChange | UrlComponentDataChange;
|
|
21
22
|
export type ComponentDataChangeOf<T extends ComponentType> = Extract<AnyComponentDataChange, {
|
|
22
23
|
componentType: T;
|
|
23
24
|
}>;
|
package/dist/models/workflow-template/components/related-card/RelatedCardComponentAuditData.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelatedCardComponentAuditData.js","sourceRoot":"","sources":["../../../../../src/models/workflow-template/components/related-card/RelatedCardComponentAuditData.ts"],"names":[],"mappings":""}
|
package/dist/models/workflow-template/components/related-card/RelatedCardComponentDataChange.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentDataChange } from '../../entities/audit-trail/ComponentDataChange';
|
|
2
|
+
import { ComponentType } from '../ComponentType';
|
|
3
|
+
import { RelatedCardComponentAuditData } from './RelatedCardComponentAuditData';
|
|
4
|
+
export type RelatedCardComponentDataChange = ComponentDataChange<ComponentType.RELATED_CARD, RelatedCardComponentAuditData>;
|
package/dist/models/workflow-template/components/related-card/RelatedCardComponentDataChange.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelatedCardComponentDataChange.js","sourceRoot":"","sources":["../../../../../src/models/workflow-template/components/related-card/RelatedCardComponentDataChange.ts"],"names":[],"mappings":""}
|
|
@@ -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:
|
|
7
|
+
automationId: AutomationId;
|
|
7
8
|
dateComponentId: string;
|
|
8
9
|
default?: ScheduledAutomationDefault;
|
|
9
10
|
scheduleImmediatelyIfInPast?: boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ComponentType } from '../../components/ComponentType';
|
|
2
|
+
import { WorkflowTemplateId } from '../../WorkflowTemplateId';
|
|
2
3
|
type AuditData<T extends ComponentType> = {
|
|
3
4
|
type: T;
|
|
4
5
|
};
|
|
5
6
|
export type ComponentDataChange<T extends ComponentType, TAuditData extends AuditData<T>> = {
|
|
7
|
+
workflowTemplateId: WorkflowTemplateId;
|
|
6
8
|
componentId: string;
|
|
7
9
|
componentType: T;
|
|
8
10
|
newAuditData: TAuditData;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { AutomationId } from '../../../automations/AutomationId';
|
|
1
2
|
import { WorkflowTemplateId } from '../../WorkflowTemplateId';
|
|
2
3
|
export interface EntityScheduledAutomationTrigger {
|
|
3
|
-
automationId:
|
|
4
|
+
automationId: AutomationId;
|
|
4
5
|
componentId: string;
|
|
5
6
|
consumedAt?: Date;
|
|
6
7
|
createdAt: Date;
|