@coast/core-types 0.0.55 → 0.0.57
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/automations/action/component-data/TCurrentWorkflowEntityComponent.d.ts +2 -1
- package/dist/automations/action/settings/TReferencedInAggregate.d.ts +2 -1
- package/dist/automations/action/settings/TSendEmailActionSettings.d.ts +3 -2
- package/dist/automations/action/settings/TSendNotificationActionSettings.d.ts +2 -1
- package/dist/automations/action/settings/TSendPushNotificationActionSettings.d.ts +2 -1
- package/dist/automations/action/settings/TSettingsWorkflowEntityField.d.ts +2 -1
- package/dist/automations/action/settings/TTriggerRelatedCardAutomationActionSettings.d.ts +2 -1
- package/dist/automations/action/settings/TUpdateRelatedCardQuantityActionSettings.d.ts +2 -1
- package/dist/automations/condition/operands/TComponentOperand.d.ts +2 -1
- package/dist/automations/condition/operands/TPreviousComponentOperand.d.ts +2 -1
- package/dist/automations/condition/operands/TWorkflowEntityRefComponentOperand.d.ts +3 -2
- package/dist/components/TComponent.d.ts +3 -2
- package/dist/components/button/TInputButtonComponent.d.ts +2 -1
- package/dist/components/date/TDateComponent.d.ts +2 -1
- package/dist/components/date-range/TDateRangeComponent.d.ts +3 -2
- package/dist/components/referenced-in/TReferencedInComponent.d.ts +2 -1
- package/dist/components/related-card-lookup/TRelatedCardLookupComponent.d.ts +3 -2
- package/dist/components/scheduled-automation/TScheduledAutomationComponent.d.ts +2 -1
- package/dist/components/tag/TCombinedTagsComponent.d.ts +2 -1
- package/dist/view-template/TComponentViewOptions.d.ts +2 -1
- package/dist/view-template/TViewTemplate.d.ts +4 -3
- package/dist/workflow-app/compensations/CompensationType.d.ts +9 -0
- package/dist/workflow-app/compensations/CompensationType.js +14 -0
- package/dist/workflow-app/compensations/CompensationType.js.map +1 -0
- package/dist/workflow-app/compensations/TAnyCompensation.d.ts +8 -0
- package/dist/workflow-app/compensations/TAnyCompensation.js +3 -0
- package/dist/workflow-app/compensations/TAnyCompensation.js.map +1 -0
- package/dist/workflow-app/compensations/TAutomationActionReference.d.ts +5 -0
- package/dist/workflow-app/compensations/TAutomationActionReference.js +3 -0
- package/dist/workflow-app/compensations/TAutomationActionReference.js.map +1 -0
- package/dist/workflow-app/compensations/TAutomationReference.d.ts +5 -0
- package/dist/workflow-app/compensations/TAutomationReference.js +3 -0
- package/dist/workflow-app/compensations/TAutomationReference.js.map +1 -0
- package/dist/workflow-app/compensations/TComponentReference.d.ts +9 -0
- package/dist/workflow-app/compensations/TComponentReference.js +3 -0
- package/dist/workflow-app/compensations/TComponentReference.js.map +1 -0
- package/dist/workflow-app/compensations/TWithCompensations.d.ts +5 -0
- package/dist/workflow-app/compensations/TWithCompensations.js +3 -0
- package/dist/workflow-app/compensations/TWithCompensations.js.map +1 -0
- package/dist/workflow-app/compensations/TWorkflowTemplateReference.d.ts +5 -0
- package/dist/workflow-app/compensations/TWorkflowTemplateReference.js +3 -0
- package/dist/workflow-app/compensations/TWorkflowTemplateReference.js.map +1 -0
- package/dist/workflow-app/compensations/automations/TAutomationCompensation.d.ts +7 -0
- package/dist/workflow-app/compensations/automations/TAutomationCompensation.js +3 -0
- package/dist/workflow-app/compensations/automations/TAutomationCompensation.js.map +1 -0
- package/dist/workflow-app/compensations/automations/TClearWorkflowTemplateReferenceAutomationActionCompensation.d.ts +7 -0
- package/dist/workflow-app/compensations/automations/TClearWorkflowTemplateReferenceAutomationActionCompensation.js +3 -0
- package/dist/workflow-app/compensations/automations/TClearWorkflowTemplateReferenceAutomationActionCompensation.js.map +1 -0
- package/dist/workflow-app/compensations/automations/TClearWorkflowTemplateReferenceAutomationConditionCompensation.d.ts +10 -0
- package/dist/workflow-app/compensations/automations/TClearWorkflowTemplateReferenceAutomationConditionCompensation.js +3 -0
- package/dist/workflow-app/compensations/automations/TClearWorkflowTemplateReferenceAutomationConditionCompensation.js.map +1 -0
- package/dist/workflow-app/compensations/automations/TDisableAutomationCompensation.d.ts +9 -0
- package/dist/workflow-app/compensations/automations/TDisableAutomationCompensation.js +3 -0
- package/dist/workflow-app/compensations/automations/TDisableAutomationCompensation.js.map +1 -0
- package/dist/workflow-app/compensations/components/TClearRelatedCardComponentReference.d.ts +8 -0
- package/dist/workflow-app/compensations/components/TClearRelatedCardComponentReference.js +3 -0
- package/dist/workflow-app/compensations/components/TClearRelatedCardComponentReference.js.map +1 -0
- package/dist/workflow-app/compensations/components/TComponentCompensation.d.ts +6 -0
- package/dist/workflow-app/compensations/components/TComponentCompensation.js +3 -0
- package/dist/workflow-app/compensations/components/TComponentCompensation.js.map +1 -0
- package/dist/workflow-app/compensations/components/TLimitSubformComponent.d.ts +6 -0
- package/dist/workflow-app/compensations/components/TLimitSubformComponent.js +3 -0
- package/dist/workflow-app/compensations/components/TLimitSubformComponent.js.map +1 -0
- package/dist/workflow-app/compensations/components/TOmitReferencedInComponent.d.ts +4 -0
- package/dist/workflow-app/compensations/components/TOmitReferencedInComponent.js +3 -0
- package/dist/workflow-app/compensations/components/TOmitReferencedInComponent.js.map +1 -0
- package/dist/workflow-app/compensations/components/TOmitRelatedCardLookupComponent.d.ts +6 -0
- package/dist/workflow-app/compensations/components/TOmitRelatedCardLookupComponent.js +3 -0
- package/dist/workflow-app/compensations/components/TOmitRelatedCardLookupComponent.js.map +1 -0
- package/dist/workflow-entity/filters/TContainsCurrentWorkflowTemplateComponentValue.d.ts +2 -1
- package/dist/workflow-entity/filters/TDynamicFilterByComponent.d.ts +2 -1
- package/dist/workflow-entity/filters/TFilterByComponent.d.ts +2 -1
- package/dist/workflow-entity/filters/TFilterOneOfByComponent.d.ts +2 -1
- package/dist/workflow-entity/recurring/TRecurringEntitiesAutoExtendDefault.d.ts +2 -1
- package/dist/workflow-entity/sort/TSortByComponent.d.ts +2 -1
- package/dist/workflow-entity-scan/WorkflowEntityScanStatus.d.ts +6 -0
- package/dist/workflow-entity-scan/WorkflowEntityScanStatus.js +11 -0
- package/dist/workflow-entity-scan/WorkflowEntityScanStatus.js.map +1 -0
- package/dist/workflow-template/TWorkflowTemplate.d.ts +2 -1
- package/dist/workflow-template/components/TEntityFields.d.ts +2 -1
- package/dist/workflow-template/components/server/ServerComponentId.d.ts +10 -9
- package/dist/workflow-template/components/server/ServerComponentId.js +10 -10
- package/dist/workflow-template/components/server/ServerComponentId.js.map +1 -1
- package/package.json +1 -1
- package/src/automations/action/component-data/TCurrentWorkflowEntityComponent.ts +2 -1
- package/src/automations/action/settings/TReferencedInAggregate.ts +2 -1
- package/src/automations/action/settings/TSendEmailActionSettings.ts +3 -2
- package/src/automations/action/settings/TSendNotificationActionSettings.ts +2 -1
- package/src/automations/action/settings/TSendPushNotificationActionSettings.ts +2 -1
- package/src/automations/action/settings/TSettingsWorkflowEntityField.ts +2 -1
- package/src/automations/action/settings/TTriggerRelatedCardAutomationActionSettings.ts +2 -1
- package/src/automations/action/settings/TUpdateRelatedCardQuantityActionSettings.ts +2 -1
- package/src/automations/condition/operands/TComponentOperand.ts +2 -1
- package/src/automations/condition/operands/TPreviousComponentOperand.ts +2 -1
- package/src/automations/condition/operands/TWorkflowEntityRefComponentOperand.ts +3 -2
- package/src/components/TComponent.ts +3 -2
- package/src/components/button/TInputButtonComponent.ts +2 -1
- package/src/components/date/TDateComponent.ts +2 -1
- package/src/components/date-range/TDateRangeComponent.ts +3 -2
- package/src/components/referenced-in/TReferencedInComponent.ts +2 -1
- package/src/components/related-card-lookup/TRelatedCardLookupComponent.ts +3 -2
- package/src/components/scheduled-automation/TScheduledAutomationComponent.ts +2 -1
- package/src/components/tag/TCombinedTagsComponent.ts +2 -1
- package/src/view-template/TComponentViewOptions.ts +2 -1
- package/src/view-template/TViewTemplate.ts +4 -3
- package/src/workflow-app/compensations/CompensationType.ts +9 -0
- package/src/workflow-app/compensations/TAnyCompensation.ts +16 -0
- package/src/workflow-app/compensations/TAutomationActionReference.ts +6 -0
- package/src/workflow-app/compensations/TAutomationReference.ts +6 -0
- package/src/workflow-app/compensations/TComponentReference.ts +10 -0
- package/src/workflow-app/compensations/TWithCompensations.ts +6 -0
- package/src/workflow-app/compensations/TWorkflowTemplateReference.ts +6 -0
- package/src/workflow-app/compensations/automations/TAutomationCompensation.ts +8 -0
- package/src/workflow-app/compensations/automations/TClearWorkflowTemplateReferenceAutomationActionCompensation.ts +8 -0
- package/src/workflow-app/compensations/automations/TClearWorkflowTemplateReferenceAutomationConditionCompensation.ts +11 -0
- package/src/workflow-app/compensations/automations/TDisableAutomationCompensation.ts +11 -0
- package/src/workflow-app/compensations/components/TClearRelatedCardComponentReference.ts +9 -0
- package/src/workflow-app/compensations/components/TComponentCompensation.ts +7 -0
- package/src/workflow-app/compensations/components/TLimitSubformComponent.ts +7 -0
- package/src/workflow-app/compensations/components/TOmitReferencedInComponent.ts +5 -0
- package/src/workflow-app/compensations/components/TOmitRelatedCardLookupComponent.ts +7 -0
- package/src/workflow-entity/filters/TContainsCurrentWorkflowTemplateComponentValue.ts +2 -1
- package/src/workflow-entity/filters/TDynamicFilterByComponent.ts +2 -1
- package/src/workflow-entity/filters/TFilterByComponent.ts +2 -1
- package/src/workflow-entity/filters/TFilterOneOfByComponent.ts +2 -1
- package/src/workflow-entity/recurring/TRecurringEntitiesAutoExtendDefault.ts +2 -1
- package/src/workflow-entity/sort/TSortByComponent.ts +2 -1
- package/src/workflow-entity-scan/WorkflowEntityScanStatus.ts +6 -0
- package/src/workflow-template/TWorkflowTemplate.ts +2 -1
- package/src/workflow-template/components/TEntityFields.ts +2 -1
- package/src/workflow-template/components/server/ServerComponentId.ts +11 -10
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
1
2
|
import { DynamicComponentDataType } from './DynamicComponentDataType';
|
|
2
3
|
import { TDynamicComponentData } from './TDynamicComponentData';
|
|
3
4
|
export interface TCurrentWorkflowEntityComponent extends TDynamicComponentData<DynamicComponentDataType.CURRENT_WORKFLOW_ENTITY_COMPONENT> {
|
|
4
|
-
componentId:
|
|
5
|
+
componentId: ComponentId;
|
|
5
6
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TFilterOneOfByComponent } from '../../../workflow-entity/filters/TFilterOneOfByComponent';
|
|
2
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
2
3
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
3
4
|
export interface TReferencedInAggregate {
|
|
4
|
-
componentId?:
|
|
5
|
+
componentId?: ComponentId;
|
|
5
6
|
inverted?: boolean;
|
|
6
7
|
workflowTemplateId?: WorkflowTemplateId;
|
|
7
8
|
filterByComponents?: TFilterOneOfByComponent[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
1
2
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
2
3
|
import { AutomationActionType } from '../AutomationActionType';
|
|
3
4
|
import { TAutomationActionSettings } from './TAutomationActionSettings';
|
|
@@ -6,10 +7,10 @@ export interface TSendEmailActionSettings extends TAutomationActionSettings<Auto
|
|
|
6
7
|
message: string;
|
|
7
8
|
subject: string;
|
|
8
9
|
recipientEmails?: string[];
|
|
9
|
-
recipientsFromEmailComponentIds?:
|
|
10
|
+
recipientsFromEmailComponentIds?: ComponentId[];
|
|
10
11
|
recipientsFromRelatedCardEmail?: TRelatedCardEmail;
|
|
11
12
|
replyTo?: string;
|
|
12
13
|
replyToRelatedCardEmail?: TRelatedCardEmail;
|
|
13
|
-
replyToCardComponentId?:
|
|
14
|
+
replyToCardComponentId?: ComponentId;
|
|
14
15
|
workflowTemplateId?: WorkflowTemplateId;
|
|
15
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
1
2
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
2
3
|
import { AutomationActionType } from '../AutomationActionType';
|
|
3
4
|
import { TAutomationActionSettings } from './TAutomationActionSettings';
|
|
@@ -5,7 +6,7 @@ export interface TSendNotificationActionSettings extends TAutomationActionSettin
|
|
|
5
6
|
message: string;
|
|
6
7
|
subject: string;
|
|
7
8
|
recipientEmails?: string[];
|
|
8
|
-
recipientsFromEmailComponentIds?:
|
|
9
|
+
recipientsFromEmailComponentIds?: ComponentId[];
|
|
9
10
|
replyTo?: string;
|
|
10
11
|
workflowTemplateId?: WorkflowTemplateId;
|
|
11
12
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { UserId } from '../../../user/UserId';
|
|
2
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
2
3
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
3
4
|
import { AutomationActionType } from '../AutomationActionType';
|
|
4
5
|
import { TAutomationActionSettings } from './TAutomationActionSettings';
|
|
5
6
|
export interface TSendPushNotificationActionSettings extends TAutomationActionSettings<AutomationActionType.SEND_PUSH_NOTIFICATION> {
|
|
6
7
|
message: string;
|
|
7
8
|
title: string;
|
|
8
|
-
recipientsFromPersonComponentIds?:
|
|
9
|
+
recipientsFromPersonComponentIds?: ComponentId[];
|
|
9
10
|
recipientUserIds?: UserId[];
|
|
10
11
|
workflowTemplateId?: WorkflowTemplateId;
|
|
11
12
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
1
2
|
import { TAnyComponentData } from '../../../workflow-template/components/TAnyComponentData';
|
|
2
3
|
import { TAnyDynamicComponentData } from '../component-data/TAnyDynamicComponentData';
|
|
3
4
|
import { ArrayValueOperation } from './ArrayValueOperation';
|
|
4
5
|
export interface TSettingsWorkflowEntityField {
|
|
5
|
-
componentId:
|
|
6
|
+
componentId: ComponentId;
|
|
6
7
|
arrayValueOperation?: ArrayValueOperation;
|
|
7
8
|
dynamicData?: TAnyDynamicComponentData;
|
|
8
9
|
staticData?: TAnyComponentData;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
1
2
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
2
3
|
import { AutomationId } from '../../AutomationId';
|
|
3
4
|
import { AutomationActionType } from '../AutomationActionType';
|
|
4
5
|
import { TAutomationActionSettings } from './TAutomationActionSettings';
|
|
5
6
|
export interface TTriggerRelatedCardAutomationActionSettings extends TAutomationActionSettings<AutomationActionType.TRIGGER_RELATED_CARD_AUTOMATION> {
|
|
6
|
-
relatedCardComponentId:
|
|
7
|
+
relatedCardComponentId: ComponentId;
|
|
7
8
|
automationId?: AutomationId;
|
|
8
9
|
workflowTemplateId?: WorkflowTemplateId;
|
|
9
10
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
1
2
|
import { TAnyComponentData } from '../../../workflow-template/components/TAnyComponentData';
|
|
2
3
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
3
4
|
import { AutomationActionType } from '../AutomationActionType';
|
|
4
5
|
import { TAnyDynamicNumberComponentData } from '../component-data/TAnyDynamicNumberComponentData';
|
|
5
6
|
import { TAutomationActionSettings } from './TAutomationActionSettings';
|
|
6
7
|
export interface TUpdateRelatedCardQuantityActionSettings extends TAutomationActionSettings<AutomationActionType.UPDATE_RELATED_CARD_QUANTITY> {
|
|
7
|
-
relatedCardComponentId:
|
|
8
|
+
relatedCardComponentId: ComponentId;
|
|
8
9
|
dynamicData?: TAnyDynamicNumberComponentData;
|
|
9
10
|
staticData?: TAnyComponentData;
|
|
10
11
|
workflowTemplateId?: WorkflowTemplateId;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
1
2
|
import { ScalarKey } from '../../../workflow-template/components/scalar/ScalarKey';
|
|
2
3
|
import { OperandType } from './OperandType';
|
|
3
4
|
import { TOperand } from './TOperand';
|
|
4
5
|
export interface TComponentOperand extends TOperand<OperandType.COMPONENT> {
|
|
5
|
-
componentId:
|
|
6
|
+
componentId: ComponentId;
|
|
6
7
|
scalarKey?: ScalarKey;
|
|
7
8
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
1
2
|
import { OperandType } from './OperandType';
|
|
2
3
|
import { TOperand } from './TOperand';
|
|
3
4
|
export interface TPreviousComponentOperand extends TOperand<OperandType.PREVIOUS_COMPONENT> {
|
|
4
|
-
componentId:
|
|
5
|
+
componentId: ComponentId;
|
|
5
6
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ComponentId } from '../../../workflow-template/components/ComponentId';
|
|
1
2
|
import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
|
|
2
3
|
import { OperandType } from './OperandType';
|
|
3
4
|
import { TOperand } from './TOperand';
|
|
4
5
|
export interface TWorkflowEntityRefComponentOperand extends TOperand<OperandType.WORKFLOW_ENTITY_REF_COMPONENT> {
|
|
5
|
-
componentId:
|
|
6
|
-
refComponentId:
|
|
6
|
+
componentId: ComponentId;
|
|
7
|
+
refComponentId: ComponentId;
|
|
7
8
|
refWorkflowTemplateId?: WorkflowTemplateId;
|
|
8
9
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { ComponentId } from '../workflow-template/components/ComponentId';
|
|
1
2
|
import { ComponentType } from '../workflow-template/components/ComponentType';
|
|
2
3
|
export interface TComponent<T extends ComponentType = ComponentType> {
|
|
3
|
-
id:
|
|
4
|
+
id: ComponentId;
|
|
4
5
|
type: T;
|
|
5
6
|
archivedAt?: Date;
|
|
6
7
|
isHidden?: boolean;
|
|
7
8
|
isServerManaged?: boolean;
|
|
8
9
|
locked?: boolean;
|
|
9
|
-
managedByComponentId?:
|
|
10
|
+
managedByComponentId?: ComponentId;
|
|
10
11
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ComponentId } from '../../workflow-template/components/ComponentId';
|
|
1
2
|
import { ComponentType } from '../../workflow-template/components/ComponentType';
|
|
2
3
|
import { TButtonComponent } from './TButtonComponent';
|
|
3
4
|
export interface TInputButtonComponent extends TButtonComponent<ComponentType.INPUT_BUTTON> {
|
|
4
|
-
inputComponentId:
|
|
5
|
+
inputComponentId: ComponentId;
|
|
5
6
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { TRecurringEntitiesAutoExtendDefault } from '../../workflow-entity/recurring/TRecurringEntitiesAutoExtendDefault';
|
|
2
|
+
import { ComponentId } from '../../workflow-template/components/ComponentId';
|
|
2
3
|
import { ComponentType } from '../../workflow-template/components/ComponentType';
|
|
3
4
|
import { TInputComponent } from '../TInputComponent';
|
|
4
5
|
import { TDateDefault } from './TDateDefault';
|
|
5
6
|
export interface TDateComponent extends TInputComponent<ComponentType.DATE> {
|
|
6
7
|
allowEntityBatchCreation?: boolean;
|
|
7
8
|
autoExtendDefault?: TRecurringEntitiesAutoExtendDefault;
|
|
8
|
-
autoExtendImpliedFilterComponentId?:
|
|
9
|
+
autoExtendImpliedFilterComponentId?: ComponentId;
|
|
9
10
|
default?: TDateDefault;
|
|
10
11
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ComponentId } from '../../workflow-template/components/ComponentId';
|
|
1
2
|
import { ComponentType } from '../../workflow-template/components/ComponentType';
|
|
2
3
|
import { TPresentationComponent } from '../TPresentationComponent';
|
|
3
4
|
export interface TDateRangeComponent extends TPresentationComponent<ComponentType.DATE_RANGE> {
|
|
4
|
-
startDateComponentId:
|
|
5
|
-
endDateComponentId:
|
|
5
|
+
startDateComponentId: ComponentId;
|
|
6
|
+
endDateComponentId: ComponentId;
|
|
6
7
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ViewTemplateId } from '../../view-template/ViewTemplateId';
|
|
2
|
+
import { ComponentId } from '../../workflow-template/components/ComponentId';
|
|
2
3
|
import { ComponentType } from '../../workflow-template/components/ComponentType';
|
|
3
4
|
import { WorkflowTemplateId } from '../../workflow-template/WorkflowTemplateId';
|
|
4
5
|
import { TComponent } from '../TComponent';
|
|
5
6
|
export interface TReferencedInComponent extends TComponent<ComponentType.REFERENCED_IN> {
|
|
6
7
|
referencedFromWorkflowTemplateId: WorkflowTemplateId;
|
|
7
|
-
relatedCardComponentId:
|
|
8
|
+
relatedCardComponentId: ComponentId;
|
|
8
9
|
label?: string;
|
|
9
10
|
referencingViewTemplateId?: ViewTemplateId;
|
|
10
11
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { Icon } from '@coast/schemas';
|
|
2
|
+
import { ComponentId } from '../../workflow-template/components/ComponentId';
|
|
2
3
|
import { ComponentType } from '../../workflow-template/components/ComponentType';
|
|
3
4
|
import { WorkflowTemplateId } from '../../workflow-template/WorkflowTemplateId';
|
|
4
5
|
import { TComponent } from '../TComponent';
|
|
5
6
|
export interface TRelatedCardLookupComponent extends TComponent<ComponentType.RELATED_CARD_LOOKUP> {
|
|
6
|
-
lookupComponentId:
|
|
7
|
+
lookupComponentId: ComponentId;
|
|
7
8
|
lookupWorkflowTemplateId: WorkflowTemplateId;
|
|
8
|
-
relatedCardComponentId:
|
|
9
|
+
relatedCardComponentId: ComponentId;
|
|
9
10
|
readonly?: boolean;
|
|
10
11
|
icon?: Icon;
|
|
11
12
|
isFilterable?: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { AutomationId } from '../../automations/AutomationId';
|
|
2
|
+
import { ComponentId } from '../../workflow-template/components/ComponentId';
|
|
2
3
|
import { ComponentType } from '../../workflow-template/components/ComponentType';
|
|
3
4
|
import { TInputComponent } from '../TInputComponent';
|
|
4
5
|
import { TScheduledAutomationDefault } from './TScheduledAutomationDefault';
|
|
5
6
|
export interface TScheduledAutomationComponent extends TInputComponent<ComponentType.SCHEDULED_AUTOMATION> {
|
|
6
|
-
dateComponentId:
|
|
7
|
+
dateComponentId: ComponentId;
|
|
7
8
|
automationId?: AutomationId;
|
|
8
9
|
default?: TScheduledAutomationDefault;
|
|
9
10
|
scheduleImmediatelyIfInPast?: boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Icon } from '@coast/schemas';
|
|
2
|
+
import { ComponentId } from '../../workflow-template/components/ComponentId';
|
|
2
3
|
import { ComponentType } from '../../workflow-template/components/ComponentType';
|
|
3
4
|
import { TComponent } from '../TComponent';
|
|
4
5
|
export interface TCombinedTagsComponent extends TComponent<ComponentType.COMBINED_TAGS> {
|
|
5
|
-
componentIds:
|
|
6
|
+
componentIds: ComponentId[];
|
|
6
7
|
icon?: Icon;
|
|
7
8
|
label?: string;
|
|
8
9
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TAnyComponentOverride } from '../components/TAnyComponentOverride';
|
|
2
|
+
import { ComponentId } from '../workflow-template/components/ComponentId';
|
|
2
3
|
export interface TComponentViewOptions {
|
|
3
|
-
componentId:
|
|
4
|
+
componentId: ComponentId;
|
|
4
5
|
isHidden?: boolean;
|
|
5
6
|
overrides?: TAnyComponentOverride;
|
|
6
7
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TAudit } from '../application/TAudit';
|
|
2
|
+
import { ComponentId } from '../workflow-template/components/ComponentId';
|
|
2
3
|
import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
|
|
3
4
|
import { TCollectionCriteria } from './TCollectionCriteria';
|
|
4
5
|
import { TComponentViewOptions } from './TComponentViewOptions';
|
|
@@ -15,7 +16,7 @@ export interface TViewTemplate extends TAudit {
|
|
|
15
16
|
sortOrder?: number;
|
|
16
17
|
isPublic?: boolean;
|
|
17
18
|
deletedAt?: Date;
|
|
18
|
-
calendarDateComponentId?:
|
|
19
|
+
calendarDateComponentId?: ComponentId;
|
|
19
20
|
calendarHideWeekends?: boolean;
|
|
20
21
|
collectionCriteria?: TCollectionCriteria;
|
|
21
22
|
componentsViewOptions?: TComponentViewOptions[];
|
|
@@ -23,11 +24,11 @@ export interface TViewTemplate extends TAudit {
|
|
|
23
24
|
defaultHiddenLabels?: boolean;
|
|
24
25
|
defaultReadonlyComponents?: boolean;
|
|
25
26
|
displayInCards?: boolean;
|
|
26
|
-
checklistTagComponentId?:
|
|
27
|
+
checklistTagComponentId?: ComponentId;
|
|
27
28
|
displayMessageThread?: boolean;
|
|
28
29
|
summarizeReadonlyTags?: boolean;
|
|
29
30
|
displayLegacyRecurrence?: boolean;
|
|
30
31
|
displayLegacyReminders?: boolean;
|
|
31
32
|
displayLegacyStatusButton?: boolean;
|
|
32
|
-
groupByComponentId?:
|
|
33
|
+
groupByComponentId?: ComponentId;
|
|
33
34
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum CompensationType {
|
|
2
|
+
CLEAR_AUTOMATION_ACTION_WORKFLOW_TEMPLATE_REFERENCE = "CLEAR_AUTOMATION_ACTION_WORKFLOW_TEMPLATE_REFERENCE",
|
|
3
|
+
CLEAR_AUTOMATION_CONDITION_WORKFLOW_TEMPLATE_REFERENCE = "CLEAR_AUTOMATION_CONDITION_WORKFLOW_TEMPLATE_REFERENCE",
|
|
4
|
+
CLEAR_RELATED_CARD_COMPONENT_REFERENCE = "CLEAR_RELATED_CARD_COMPONENT_REFERENCE",
|
|
5
|
+
DISABLE_AUTOMATION = "DISABLE_AUTOMATION",
|
|
6
|
+
LIMIT_SUBFORM_COMPONENT = "LIMIT_SUBFORM_COMPONENT",
|
|
7
|
+
OMIT_REFERENCED_IN_COMPONENT = "OMIT_REFERENCED_IN_COMPONENT",
|
|
8
|
+
OMIT_RELATED_CARD_LOOKUP_COMPONENT = "OMIT_RELATED_CARD_LOOKUP_COMPONENT"
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CompensationType = void 0;
|
|
4
|
+
var CompensationType;
|
|
5
|
+
(function (CompensationType) {
|
|
6
|
+
CompensationType["CLEAR_AUTOMATION_ACTION_WORKFLOW_TEMPLATE_REFERENCE"] = "CLEAR_AUTOMATION_ACTION_WORKFLOW_TEMPLATE_REFERENCE";
|
|
7
|
+
CompensationType["CLEAR_AUTOMATION_CONDITION_WORKFLOW_TEMPLATE_REFERENCE"] = "CLEAR_AUTOMATION_CONDITION_WORKFLOW_TEMPLATE_REFERENCE";
|
|
8
|
+
CompensationType["CLEAR_RELATED_CARD_COMPONENT_REFERENCE"] = "CLEAR_RELATED_CARD_COMPONENT_REFERENCE";
|
|
9
|
+
CompensationType["DISABLE_AUTOMATION"] = "DISABLE_AUTOMATION";
|
|
10
|
+
CompensationType["LIMIT_SUBFORM_COMPONENT"] = "LIMIT_SUBFORM_COMPONENT";
|
|
11
|
+
CompensationType["OMIT_REFERENCED_IN_COMPONENT"] = "OMIT_REFERENCED_IN_COMPONENT";
|
|
12
|
+
CompensationType["OMIT_RELATED_CARD_LOOKUP_COMPONENT"] = "OMIT_RELATED_CARD_LOOKUP_COMPONENT";
|
|
13
|
+
})(CompensationType || (exports.CompensationType = CompensationType = {}));
|
|
14
|
+
//# sourceMappingURL=CompensationType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompensationType.js","sourceRoot":"","sources":["../../../src/workflow-app/compensations/CompensationType.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAQX;AARD,WAAY,gBAAgB;IACxB,+HAA2G,CAAA;IAC3G,qIAAiH,CAAA;IACjH,qGAAiF,CAAA;IACjF,6DAAyC,CAAA;IACzC,uEAAmD,CAAA;IACnD,iFAA6D,CAAA;IAC7D,6FAAyE,CAAA;AAC7E,CAAC,EARW,gBAAgB,aAAhB,gBAAgB,GAAhB,gBAAgB,QAQ3B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TClearWorkflowTemplateReferenceAutomationActionCompensation } from './automations/TClearWorkflowTemplateReferenceAutomationActionCompensation';
|
|
2
|
+
import { TClearWorkflowTemplateReferenceAutomationConditionCompensation } from './automations/TClearWorkflowTemplateReferenceAutomationConditionCompensation';
|
|
3
|
+
import { TDisableAutomationCompensation } from './automations/TDisableAutomationCompensation';
|
|
4
|
+
import { TClearRelatedCardComponentReference } from './components/TClearRelatedCardComponentReference';
|
|
5
|
+
import { TLimitSubformComponent } from './components/TLimitSubformComponent';
|
|
6
|
+
import { TOmitReferencedInComponent } from './components/TOmitReferencedInComponent';
|
|
7
|
+
import { TOmitRelatedCardLookupComponent } from './components/TOmitRelatedCardLookupComponent';
|
|
8
|
+
export type TAnyCompensation = TClearRelatedCardComponentReference | TClearWorkflowTemplateReferenceAutomationActionCompensation | TClearWorkflowTemplateReferenceAutomationConditionCompensation | TDisableAutomationCompensation | TLimitSubformComponent | TOmitReferencedInComponent | TOmitRelatedCardLookupComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TAnyCompensation.js","sourceRoot":"","sources":["../../../src/workflow-app/compensations/TAnyCompensation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TAutomationActionReference.js","sourceRoot":"","sources":["../../../src/workflow-app/compensations/TAutomationActionReference.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TAutomationReference.js","sourceRoot":"","sources":["../../../src/workflow-app/compensations/TAutomationReference.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentId } from '../../workflow-template/components/ComponentId';
|
|
2
|
+
import { ComponentType } from '../../workflow-template/components/ComponentType';
|
|
3
|
+
import { TWorkflowTemplateReference } from './TWorkflowTemplateReference';
|
|
4
|
+
export interface TComponentReference {
|
|
5
|
+
workflowTemplate: TWorkflowTemplateReference;
|
|
6
|
+
id: ComponentId;
|
|
7
|
+
type: ComponentType;
|
|
8
|
+
label?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TComponentReference.js","sourceRoot":"","sources":["../../../src/workflow-app/compensations/TComponentReference.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TWithCompensations.js","sourceRoot":"","sources":["../../../src/workflow-app/compensations/TWithCompensations.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TWorkflowTemplateReference.js","sourceRoot":"","sources":["../../../src/workflow-app/compensations/TWorkflowTemplateReference.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { TAutomationReference } from '../TAutomationReference';
|
|
3
|
+
export interface TAutomationCompensation<T extends CompensationType = CompensationType> {
|
|
4
|
+
type: T;
|
|
5
|
+
sourceAutomation: TAutomationReference;
|
|
6
|
+
newAutomation: TAutomationReference;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TAutomationCompensation.js","sourceRoot":"","sources":["../../../../src/workflow-app/compensations/automations/TAutomationCompensation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { TAutomationActionReference } from '../TAutomationActionReference';
|
|
3
|
+
import { TAutomationCompensation } from './TAutomationCompensation';
|
|
4
|
+
export interface TClearWorkflowTemplateReferenceAutomationActionCompensation extends TAutomationCompensation<CompensationType.CLEAR_AUTOMATION_ACTION_WORKFLOW_TEMPLATE_REFERENCE> {
|
|
5
|
+
sourceAction: TAutomationActionReference;
|
|
6
|
+
newAction: TAutomationActionReference;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TClearWorkflowTemplateReferenceAutomationActionCompensation.js","sourceRoot":"","sources":["../../../../src/workflow-app/compensations/automations/TClearWorkflowTemplateReferenceAutomationActionCompensation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TCondition } from '../../../automations/condition/TCondition';
|
|
2
|
+
import { CompensationType } from '../CompensationType';
|
|
3
|
+
import { TAutomationActionReference } from '../TAutomationActionReference';
|
|
4
|
+
import { TAutomationCompensation } from './TAutomationCompensation';
|
|
5
|
+
export interface TClearWorkflowTemplateReferenceAutomationConditionCompensation extends TAutomationCompensation<CompensationType.CLEAR_AUTOMATION_CONDITION_WORKFLOW_TEMPLATE_REFERENCE> {
|
|
6
|
+
sourceConditionId: TCondition['id'];
|
|
7
|
+
newConditionId: TCondition['id'];
|
|
8
|
+
sourceParentAction?: TAutomationActionReference;
|
|
9
|
+
newParentAction?: TAutomationActionReference;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TClearWorkflowTemplateReferenceAutomationConditionCompensation.js","sourceRoot":"","sources":["../../../../src/workflow-app/compensations/automations/TClearWorkflowTemplateReferenceAutomationConditionCompensation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ErrorCode } from '../../../error/ErrorCode';
|
|
2
|
+
import { CompensationType } from '../CompensationType';
|
|
3
|
+
import { TAutomationReference } from '../TAutomationReference';
|
|
4
|
+
export interface TDisableAutomationCompensation {
|
|
5
|
+
type: CompensationType.DISABLE_AUTOMATION;
|
|
6
|
+
automation: TAutomationReference;
|
|
7
|
+
errorCode?: ErrorCode;
|
|
8
|
+
disabledReason?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TDisableAutomationCompensation.js","sourceRoot":"","sources":["../../../../src/workflow-app/compensations/automations/TDisableAutomationCompensation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { TComponentReference } from '../TComponentReference';
|
|
3
|
+
import { TWorkflowTemplateReference } from '../TWorkflowTemplateReference';
|
|
4
|
+
import { TComponentCompensation } from './TComponentCompensation';
|
|
5
|
+
export interface TClearRelatedCardComponentReference extends TComponentCompensation<CompensationType.CLEAR_RELATED_CARD_COMPONENT_REFERENCE> {
|
|
6
|
+
sourceReferencedWorkflowTemplate: TWorkflowTemplateReference;
|
|
7
|
+
newComponent: TComponentReference;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TClearRelatedCardComponentReference.js","sourceRoot":"","sources":["../../../../src/workflow-app/compensations/components/TClearRelatedCardComponentReference.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TComponentCompensation.js","sourceRoot":"","sources":["../../../../src/workflow-app/compensations/components/TComponentCompensation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { TComponentCompensation } from './TComponentCompensation';
|
|
3
|
+
export interface TLimitSubformComponent extends TComponentCompensation<CompensationType.LIMIT_SUBFORM_COMPONENT> {
|
|
4
|
+
omittedCount: number;
|
|
5
|
+
limit: number;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TLimitSubformComponent.js","sourceRoot":"","sources":["../../../../src/workflow-app/compensations/components/TLimitSubformComponent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TOmitReferencedInComponent.js","sourceRoot":"","sources":["../../../../src/workflow-app/compensations/components/TOmitReferencedInComponent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { TComponentReference } from '../TComponentReference';
|
|
3
|
+
import { TComponentCompensation } from './TComponentCompensation';
|
|
4
|
+
export interface TOmitRelatedCardLookupComponent extends TComponentCompensation<CompensationType.OMIT_RELATED_CARD_LOOKUP_COMPONENT> {
|
|
5
|
+
sourceRelatedCardComponent: TComponentReference;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TOmitRelatedCardLookupComponent.js","sourceRoot":"","sources":["../../../../src/workflow-app/compensations/components/TOmitRelatedCardLookupComponent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ComponentId } from '../../workflow-template/components/ComponentId';
|
|
1
2
|
import { TDynamicFilterOneOf } from './TDynamicFilterOneOf';
|
|
2
3
|
export interface TDynamicFilterByComponent {
|
|
3
|
-
componentId:
|
|
4
|
+
componentId: ComponentId;
|
|
4
5
|
value: TDynamicFilterOneOf;
|
|
5
6
|
}
|