@coast/core-api-types 1.2.209 → 1.2.210
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/CreateAutomation.d.ts +3 -1
- package/dist/models/automations/CreateAutomationGraphQL.d.ts +2 -2
- package/dist/models/automations/action/AutomationAction.d.ts +2 -2
- package/dist/models/automations/action/CalculateValueAction.d.ts +2 -1
- package/dist/models/automations/action/CreateAutomationAction.d.ts +5 -5
- package/dist/models/automations/action/CreateAutomationActionGraphQL.d.ts +9 -0
- package/dist/models/automations/action/CreateAutomationActionGraphQL.js +3 -0
- package/dist/models/automations/action/CreateAutomationActionGraphQL.js.map +1 -0
- package/dist/models/automations/action/CurrentWorkflowEntityUpdateAction.d.ts +2 -1
- package/dist/models/automations/action/ExternalFormLinkCreateAction.d.ts +2 -1
- package/dist/models/automations/action/ReferencedInQuantitySumAction.d.ts +2 -1
- package/dist/models/automations/action/SendNotificationAction.d.ts +2 -1
- package/dist/models/automations/action/SendPushNotificationAction.d.ts +2 -1
- package/dist/models/automations/action/SendWebhookAction.d.ts +2 -1
- package/dist/models/automations/action/TriggerRelatedCardAutomationAction.d.ts +2 -1
- package/dist/models/automations/action/UpdateRelatedCardQuantityAction.d.ts +2 -1
- package/dist/models/automations/action/WorkflowEntityCreateAction.d.ts +2 -1
- package/dist/models/automations/action/WorkflowEntityUpdateAction.d.ts +2 -1
- package/dist/models/automations/action/settings/AutomationActionSettings.d.ts +2 -2
- package/dist/models/automations/action/settings/CalculateValueActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/CreateCurrentWorkflowEntityUpdateActionSettings.d.ts +3 -1
- package/dist/models/automations/action/settings/CurrentWorkflowEntityUpdateActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/ExternalFormLinkCreateActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/ReferencedInQuantitySumActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/SendEmailActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/SendNotificationActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/SendPushNotificationActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/SendWebhookActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/TriggerRelatedCardAutomationActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/UpdateRelatedCardQuantityActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/WorkflowEntityActionSettings.d.ts +4 -1
- package/dist/models/automations/action/settings/WorkflowEntityCreateActionSettings.d.ts +2 -1
- package/dist/models/automations/action/settings/WorkflowEntityUpdateActionSettings.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { CreateAutomationAction } from './action/CreateAutomationAction';
|
|
1
2
|
import { Automation } from './Automation';
|
|
2
|
-
export interface CreateAutomation extends Omit<Automation, 'id' | 'businessId' | 'enabled' | 'suppressAutomationChain' | 'createdAt' | 'updatedAt'> {
|
|
3
|
+
export interface CreateAutomation extends Omit<Automation, 'id' | 'businessId' | 'enabled' | 'suppressAutomationChain' | 'createdAt' | 'updatedAt' | 'actions'> {
|
|
3
4
|
enabled: boolean;
|
|
4
5
|
suppressAutomationChain: boolean;
|
|
6
|
+
actions: CreateAutomationAction[];
|
|
5
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateAutomationActionGraphQL } from './action/CreateAutomationActionGraphQL';
|
|
2
2
|
import { Automation } from './Automation';
|
|
3
3
|
import { CreateCondition } from './condition/CreateCondition';
|
|
4
4
|
export interface CreateAutomationGraphQL extends Omit<Automation, 'id' | 'businessId' | 'actions' | 'conditions' | 'enabled' | 'suppressAutomationChain' | 'createdAt' | 'updatedAt'> {
|
|
5
|
-
actions:
|
|
5
|
+
actions: CreateAutomationActionGraphQL[];
|
|
6
6
|
conditions?: CreateCondition[];
|
|
7
7
|
enabled?: boolean;
|
|
8
8
|
suppressAutomationChain?: boolean;
|
|
@@ -3,7 +3,7 @@ import { Condition } from '../condition/Condition';
|
|
|
3
3
|
import { AutomationActionId } from './AutomationActionId';
|
|
4
4
|
import { AutomationActionType } from './AutomationActionType';
|
|
5
5
|
import { AutomationActionSettingsRegistry } from './settings/AutomationActionSettingsRegistry';
|
|
6
|
-
export interface AutomationAction {
|
|
6
|
+
export interface AutomationAction<T extends AutomationActionType = AutomationActionType> {
|
|
7
7
|
automation?: Automation;
|
|
8
8
|
conditions?: Condition[];
|
|
9
9
|
deletedAt?: Date;
|
|
@@ -12,5 +12,5 @@ export interface AutomationAction {
|
|
|
12
12
|
parentId?: string;
|
|
13
13
|
settings?: AutomationActionSettingsRegistry.Any;
|
|
14
14
|
sortOrder?: number;
|
|
15
|
-
type:
|
|
15
|
+
type: T;
|
|
16
16
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { CalculateValueActionSettings } from './settings/CalculateValueActionSettings';
|
|
3
|
-
export interface CalculateValueAction extends Omit<AutomationAction
|
|
4
|
+
export interface CalculateValueAction extends Omit<AutomationAction<AutomationActionType.CALCULATE_VALUE>, 'settings'> {
|
|
4
5
|
settings?: CalculateValueActionSettings;
|
|
5
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CreateCondition } from '../condition/CreateCondition';
|
|
2
1
|
import { AutomationAction } from './AutomationAction';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
3
|
+
import { AutomationActionSettings } from './settings/AutomationActionSettings';
|
|
4
|
+
export interface CreateAutomationAction<T extends AutomationActionType = AutomationActionType> extends Omit<AutomationAction, 'id' | 'settings' | 'type'> {
|
|
5
|
+
type: T;
|
|
6
|
+
settings?: AutomationActionSettings<T>;
|
|
7
7
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateCondition } from '../condition/CreateCondition';
|
|
2
|
+
import { AutomationAction } from './AutomationAction';
|
|
3
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
4
|
+
import { AutomationActionSettingsOneOf } from './settings/AutomationActionSettingsOneOf';
|
|
5
|
+
export interface CreateAutomationActionGraphQL<T extends AutomationActionType = AutomationActionType> extends Omit<AutomationAction, 'id' | 'settings' | 'conditions' | 'type'> {
|
|
6
|
+
type: T;
|
|
7
|
+
conditions?: CreateCondition[];
|
|
8
|
+
settings?: AutomationActionSettingsOneOf;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateAutomationActionGraphQL.js","sourceRoot":"","sources":["../../../../src/models/automations/action/CreateAutomationActionGraphQL.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { CurrentWorkflowEntityUpdateActionSettings } from './settings/CurrentWorkflowEntityUpdateActionSettings';
|
|
3
|
-
export interface CurrentWorkflowEntityUpdateAction extends Omit<AutomationAction
|
|
4
|
+
export interface CurrentWorkflowEntityUpdateAction extends Omit<AutomationAction<AutomationActionType.UPDATE_CURRENT_WORKFLOW_ENTITY>, 'settings'> {
|
|
4
5
|
settings?: CurrentWorkflowEntityUpdateActionSettings;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { ExternalFormLinkCreateActionSettings } from './settings/ExternalFormLinkCreateActionSettings';
|
|
3
|
-
export interface ExternalFormLinkCreateAction extends Omit<AutomationAction
|
|
4
|
+
export interface ExternalFormLinkCreateAction extends Omit<AutomationAction<AutomationActionType.CREATE_EXTERNAL_FORM_LINK>, 'settings'> {
|
|
4
5
|
settings?: ExternalFormLinkCreateActionSettings;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { ReferencedInQuantitySumActionSettings } from './settings/ReferencedInQuantitySumActionSettings';
|
|
3
|
-
export interface ReferencedInQuantitySumAction extends Omit<AutomationAction
|
|
4
|
+
export interface ReferencedInQuantitySumAction extends Omit<AutomationAction<AutomationActionType.REFERENCED_IN_QUANTITY_SUM>, 'settings'> {
|
|
4
5
|
settings?: ReferencedInQuantitySumActionSettings;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { SendNotificationActionSettings } from './settings/SendNotificationActionSettings';
|
|
3
|
-
export interface SendNotificationAction extends Omit<AutomationAction
|
|
4
|
+
export interface SendNotificationAction extends Omit<AutomationAction<AutomationActionType.SEND_NOTIFICATION>, 'settings'> {
|
|
4
5
|
settings?: SendNotificationActionSettings;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { SendPushNotificationActionSettings } from './settings/SendPushNotificationActionSettings';
|
|
3
|
-
export interface SendPushNotificationAction extends Omit<AutomationAction
|
|
4
|
+
export interface SendPushNotificationAction extends Omit<AutomationAction<AutomationActionType.SEND_PUSH_NOTIFICATION>, 'settings'> {
|
|
4
5
|
settings?: SendPushNotificationActionSettings;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { SendWebhookActionSettings } from './settings/SendWebhookActionSettings';
|
|
3
|
-
export interface SendWebhookAction extends Omit<AutomationAction
|
|
4
|
+
export interface SendWebhookAction extends Omit<AutomationAction<AutomationActionType.SEND_WEBHOOK>, 'settings'> {
|
|
4
5
|
settings: SendWebhookActionSettings;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { TriggerRelatedCardAutomationActionSettings } from './settings/TriggerRelatedCardAutomationActionSettings';
|
|
3
|
-
export interface TriggerRelatedCardAutomationAction extends Omit<AutomationAction
|
|
4
|
+
export interface TriggerRelatedCardAutomationAction extends Omit<AutomationAction<AutomationActionType.TRIGGER_RELATED_CARD_AUTOMATION>, 'settings'> {
|
|
4
5
|
settings?: TriggerRelatedCardAutomationActionSettings;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { UpdateRelatedCardQuantityActionSettings } from './settings/UpdateRelatedCardQuantityActionSettings';
|
|
3
|
-
export interface UpdateRelatedCardQuantityAction extends Omit<AutomationAction
|
|
4
|
+
export interface UpdateRelatedCardQuantityAction extends Omit<AutomationAction<AutomationActionType.UPDATE_RELATED_CARD_QUANTITY>, 'settings'> {
|
|
4
5
|
settings?: UpdateRelatedCardQuantityActionSettings;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { WorkflowEntityCreateActionSettings } from './settings/WorkflowEntityCreateActionSettings';
|
|
3
|
-
export interface WorkflowEntityCreateAction extends Omit<AutomationAction
|
|
4
|
+
export interface WorkflowEntityCreateAction extends Omit<AutomationAction<AutomationActionType.CREATE_WORKFLOW_ENTITY>, 'settings'> {
|
|
4
5
|
settings?: WorkflowEntityCreateActionSettings;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationAction } from './AutomationAction';
|
|
2
|
+
import { AutomationActionType } from './AutomationActionType';
|
|
2
3
|
import { WorkflowEntityUpdateActionSettings } from './settings/WorkflowEntityUpdateActionSettings';
|
|
3
|
-
export interface WorkflowEntityUpdateAction extends Omit<AutomationAction
|
|
4
|
+
export interface WorkflowEntityUpdateAction extends Omit<AutomationAction<AutomationActionType.UPDATE_WORKFLOW_ENTITY>, 'settings'> {
|
|
4
5
|
settings?: WorkflowEntityUpdateActionSettings;
|
|
5
6
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { OperandRegistry } from '../../condition/OperandRegistry';
|
|
2
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
2
3
|
import { ArithmeticOperator } from './ArithmeticOperator';
|
|
3
4
|
import { AutomationActionSettings } from './AutomationActionSettings';
|
|
4
|
-
export interface CalculateValueActionSettings extends AutomationActionSettings {
|
|
5
|
+
export interface CalculateValueActionSettings extends AutomationActionSettings<AutomationActionType.CALCULATE_VALUE> {
|
|
5
6
|
leftOperand: OperandRegistry.AnyNumber;
|
|
6
7
|
operator: ArithmeticOperator;
|
|
7
8
|
rightOperand: OperandRegistry.AnyNumber;
|
package/dist/models/automations/action/settings/CreateCurrentWorkflowEntityUpdateActionSettings.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
1
2
|
import { CreateSettingsWorkflowEntityField } from './CreateSettingsWorkflowEntityField';
|
|
2
3
|
import { CurrentWorkflowEntityUpdateActionSettings } from './CurrentWorkflowEntityUpdateActionSettings';
|
|
3
|
-
export interface CreateCurrentWorkflowEntityUpdateActionSettings extends Omit<CurrentWorkflowEntityUpdateActionSettings, 'fields'> {
|
|
4
|
+
export interface CreateCurrentWorkflowEntityUpdateActionSettings extends Omit<CurrentWorkflowEntityUpdateActionSettings, 'fields' | 'type'> {
|
|
5
|
+
type: AutomationActionType.UPDATE_CURRENT_WORKFLOW_ENTITY;
|
|
4
6
|
fields: CreateSettingsWorkflowEntityField[];
|
|
5
7
|
}
|
package/dist/models/automations/action/settings/CurrentWorkflowEntityUpdateActionSettings.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
1
2
|
import { WorkflowEntityActionSettings } from './WorkflowEntityActionSettings';
|
|
2
|
-
export interface CurrentWorkflowEntityUpdateActionSettings extends WorkflowEntityActionSettings {
|
|
3
|
+
export interface CurrentWorkflowEntityUpdateActionSettings extends WorkflowEntityActionSettings<AutomationActionType.UPDATE_CURRENT_WORKFLOW_ENTITY> {
|
|
3
4
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ViewTemplateId } from '../../../view-template/ViewTemplateId';
|
|
2
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
2
3
|
import { WorkflowEntityActionSettings } from './WorkflowEntityActionSettings';
|
|
3
|
-
export interface ExternalFormLinkCreateActionSettings extends WorkflowEntityActionSettings {
|
|
4
|
+
export interface ExternalFormLinkCreateActionSettings extends WorkflowEntityActionSettings<AutomationActionType.CREATE_EXTERNAL_FORM_LINK> {
|
|
4
5
|
viewTemplateId: ViewTemplateId;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
1
2
|
import { AutomationActionSettings } from './AutomationActionSettings';
|
|
2
3
|
import { ReferencedInAggregate } from './ReferencedInAggregate';
|
|
3
|
-
export interface ReferencedInQuantitySumActionSettings extends AutomationActionSettings {
|
|
4
|
+
export interface ReferencedInQuantitySumActionSettings extends AutomationActionSettings<AutomationActionType.REFERENCED_IN_QUANTITY_SUM> {
|
|
4
5
|
summationAggregates: ReferencedInAggregate[];
|
|
5
6
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
2
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
2
3
|
import { AutomationActionSettings } from './AutomationActionSettings';
|
|
3
4
|
import { RelatedCardEmail } from './RelatedCardEmail';
|
|
4
|
-
export interface SendEmailActionSettings extends AutomationActionSettings {
|
|
5
|
+
export interface SendEmailActionSettings extends AutomationActionSettings<AutomationActionType.SEND_EMAIL> {
|
|
5
6
|
message: string;
|
|
6
7
|
recipientEmails?: string[];
|
|
7
8
|
recipientsFromEmailComponentIds?: string[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
2
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
2
3
|
import { AutomationActionSettings } from './AutomationActionSettings';
|
|
3
|
-
export interface SendNotificationActionSettings extends AutomationActionSettings {
|
|
4
|
+
export interface SendNotificationActionSettings extends AutomationActionSettings<AutomationActionType.SEND_NOTIFICATION> {
|
|
4
5
|
message: string;
|
|
5
6
|
recipientEmails?: string[];
|
|
6
7
|
recipientsFromEmailComponentIds?: string[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { UserId } from '../../../user/UserId';
|
|
2
2
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
3
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
3
4
|
import { AutomationActionSettings } from './AutomationActionSettings';
|
|
4
|
-
export interface SendPushNotificationActionSettings extends AutomationActionSettings {
|
|
5
|
+
export interface SendPushNotificationActionSettings extends AutomationActionSettings<AutomationActionType.SEND_PUSH_NOTIFICATION> {
|
|
5
6
|
message: string;
|
|
6
7
|
recipientsFromPersonComponentIds?: string[];
|
|
7
8
|
recipientUserIds?: UserId[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
1
2
|
import { AutomationActionSettings } from './AutomationActionSettings';
|
|
2
|
-
export interface SendWebhookActionSettings extends AutomationActionSettings {
|
|
3
|
+
export interface SendWebhookActionSettings extends AutomationActionSettings<AutomationActionType.SEND_WEBHOOK> {
|
|
3
4
|
destinationUrl: string;
|
|
4
5
|
secretKey: string;
|
|
5
6
|
}
|
package/dist/models/automations/action/settings/TriggerRelatedCardAutomationActionSettings.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
2
2
|
import { AutomationId } from '../../AutomationId';
|
|
3
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
3
4
|
import { AutomationActionSettings } from './AutomationActionSettings';
|
|
4
|
-
export interface TriggerRelatedCardAutomationActionSettings extends AutomationActionSettings {
|
|
5
|
+
export interface TriggerRelatedCardAutomationActionSettings extends AutomationActionSettings<AutomationActionType.TRIGGER_RELATED_CARD_AUTOMATION> {
|
|
5
6
|
automationId: AutomationId;
|
|
6
7
|
relatedCardComponentId: string;
|
|
7
8
|
workflowTemplateId: WorkflowTemplateId;
|
package/dist/models/automations/action/settings/UpdateRelatedCardQuantityActionSettings.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ComponentDataRegistry } from '../../../workflow-template/components/ComponentDataRegistry';
|
|
2
2
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
3
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
3
4
|
import { DynamicComponentDataRegistry } from '../component-data/DynamicComponentDataRegistry';
|
|
4
5
|
import { AutomationActionSettings } from './AutomationActionSettings';
|
|
5
|
-
export interface UpdateRelatedCardQuantityActionSettings extends AutomationActionSettings {
|
|
6
|
+
export interface UpdateRelatedCardQuantityActionSettings extends AutomationActionSettings<AutomationActionType.UPDATE_RELATED_CARD_QUANTITY> {
|
|
6
7
|
dynamicData?: DynamicComponentDataRegistry.AnyNumber;
|
|
7
8
|
relatedCardComponentId: string;
|
|
8
9
|
staticData?: ComponentDataRegistry.Any;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
2
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
2
3
|
import { AutomationActionSettings } from './AutomationActionSettings';
|
|
3
4
|
import { SettingsWorkflowEntityField } from './SettingsWorkflowEntityField';
|
|
4
|
-
|
|
5
|
+
type WorkflowEntityActionSettingsType = AutomationActionType.CREATE_EXTERNAL_FORM_LINK | AutomationActionType.CREATE_WORKFLOW_ENTITY | AutomationActionType.UPDATE_CURRENT_WORKFLOW_ENTITY | AutomationActionType.UPDATE_WORKFLOW_ENTITY;
|
|
6
|
+
export interface WorkflowEntityActionSettings<T extends WorkflowEntityActionSettingsType = WorkflowEntityActionSettingsType> extends AutomationActionSettings<T> {
|
|
5
7
|
fields: SettingsWorkflowEntityField[];
|
|
6
8
|
workflowTemplateId: WorkflowTemplateId;
|
|
7
9
|
}
|
|
10
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
1
2
|
import { WorkflowEntityActionSettings } from './WorkflowEntityActionSettings';
|
|
2
|
-
export interface WorkflowEntityCreateActionSettings extends WorkflowEntityActionSettings {
|
|
3
|
+
export interface WorkflowEntityCreateActionSettings extends WorkflowEntityActionSettings<AutomationActionType.CREATE_WORKFLOW_ENTITY> {
|
|
3
4
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { AutomationActionType } from '../AutomationActionType';
|
|
1
2
|
import { CurrentWorkflowEntityComponent } from '../component-data/CurrentWorkflowEntityComponent';
|
|
2
3
|
import { WorkflowEntityActionSettings } from './WorkflowEntityActionSettings';
|
|
3
|
-
export interface WorkflowEntityUpdateActionSettings extends WorkflowEntityActionSettings {
|
|
4
|
+
export interface WorkflowEntityUpdateActionSettings extends WorkflowEntityActionSettings<AutomationActionType.UPDATE_WORKFLOW_ENTITY> {
|
|
4
5
|
currentWorkflowEntityComponent: CurrentWorkflowEntityComponent;
|
|
5
6
|
}
|