@coast/core-types 0.0.54 → 0.0.56
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/billing/BillingSubscriptionStatus.d.ts +1 -0
- package/dist/billing/BillingSubscriptionStatus.js +1 -0
- package/dist/billing/BillingSubscriptionStatus.js.map +1 -1
- 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-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 +1 -1
- package/package.json +1 -1
- package/src/billing/BillingSubscriptionStatus.ts +1 -0
- 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-scan/WorkflowEntityScanStatus.ts +6 -0
- package/src/workflow-template/TWorkflowTemplate.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -8,6 +8,7 @@ var BillingSubscriptionStatus;
|
|
|
8
8
|
BillingSubscriptionStatus["incomplete"] = "incomplete";
|
|
9
9
|
BillingSubscriptionStatus["incomplete_expired"] = "incomplete_expired";
|
|
10
10
|
BillingSubscriptionStatus["past_due"] = "past_due";
|
|
11
|
+
BillingSubscriptionStatus["paused"] = "paused";
|
|
11
12
|
BillingSubscriptionStatus["trialing"] = "trialing";
|
|
12
13
|
BillingSubscriptionStatus["unpaid"] = "unpaid";
|
|
13
14
|
})(BillingSubscriptionStatus || (exports.BillingSubscriptionStatus = BillingSubscriptionStatus = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BillingSubscriptionStatus.js","sourceRoot":"","sources":["../../src/billing/BillingSubscriptionStatus.ts"],"names":[],"mappings":";;;AACA,IAAY,
|
|
1
|
+
{"version":3,"file":"BillingSubscriptionStatus.js","sourceRoot":"","sources":["../../src/billing/BillingSubscriptionStatus.ts"],"names":[],"mappings":";;;AACA,IAAY,yBASX;AATD,WAAY,yBAAyB;IACjC,8CAAiB,CAAA;IACjB,kDAAqB,CAAA;IACrB,sDAAyB,CAAA;IACzB,sEAAyC,CAAA;IACzC,kDAAqB,CAAA;IACrB,8CAAiB,CAAA;IACjB,kDAAqB,CAAA;IACrB,8CAAiB,CAAA;AACrB,CAAC,EATW,yBAAyB,aAAzB,yBAAyB,GAAzB,yBAAyB,QASpC"}
|
|
@@ -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":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowEntityScanStatus = void 0;
|
|
4
|
+
var WorkflowEntityScanStatus;
|
|
5
|
+
(function (WorkflowEntityScanStatus) {
|
|
6
|
+
WorkflowEntityScanStatus["COMPLETED"] = "COMPLETED";
|
|
7
|
+
WorkflowEntityScanStatus["FAILED"] = "FAILED";
|
|
8
|
+
WorkflowEntityScanStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
9
|
+
WorkflowEntityScanStatus["PAUSED"] = "PAUSED";
|
|
10
|
+
})(WorkflowEntityScanStatus || (exports.WorkflowEntityScanStatus = WorkflowEntityScanStatus = {}));
|
|
11
|
+
//# sourceMappingURL=WorkflowEntityScanStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowEntityScanStatus.js","sourceRoot":"","sources":["../../src/workflow-entity-scan/WorkflowEntityScanStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,6CAAiB,CAAA;IACjB,uDAA2B,CAAA;IAC3B,6CAAiB,CAAA;AACrB,CAAC,EALW,wBAAwB,aAAxB,wBAAwB,GAAxB,wBAAwB,QAKnC"}
|
|
@@ -24,5 +24,5 @@ export interface TWorkflowTemplate extends TAudit {
|
|
|
24
24
|
behavior?: TWorkflowTemplateBehavior;
|
|
25
25
|
viewTemplateDefaults?: TViewTemplateDefaults;
|
|
26
26
|
channelDefaultConfiguration?: TChannelDefaultConfiguration;
|
|
27
|
-
viewTemplates
|
|
27
|
+
viewTemplates: TViewTemplate[];
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export 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,16 @@
|
|
|
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
|
+
|
|
9
|
+
export type TAnyCompensation =
|
|
10
|
+
| TClearRelatedCardComponentReference
|
|
11
|
+
| TClearWorkflowTemplateReferenceAutomationActionCompensation
|
|
12
|
+
| TClearWorkflowTemplateReferenceAutomationConditionCompensation
|
|
13
|
+
| TDisableAutomationCompensation
|
|
14
|
+
| TLimitSubformComponent
|
|
15
|
+
| TOmitReferencedInComponent
|
|
16
|
+
| TOmitRelatedCardLookupComponent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentId } from '../../workflow-template/components/ComponentId';
|
|
2
|
+
import { ComponentType } from '../../workflow-template/components/ComponentType';
|
|
3
|
+
import { TWorkflowTemplateReference } from './TWorkflowTemplateReference';
|
|
4
|
+
|
|
5
|
+
export interface TComponentReference {
|
|
6
|
+
workflowTemplate: TWorkflowTemplateReference;
|
|
7
|
+
id: ComponentId;
|
|
8
|
+
type: ComponentType;
|
|
9
|
+
label?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { TAutomationReference } from '../TAutomationReference';
|
|
3
|
+
|
|
4
|
+
export interface TAutomationCompensation<T extends CompensationType = CompensationType> {
|
|
5
|
+
type: T;
|
|
6
|
+
sourceAutomation: TAutomationReference;
|
|
7
|
+
newAutomation: TAutomationReference;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { TAutomationActionReference } from '../TAutomationActionReference';
|
|
3
|
+
import { TAutomationCompensation } from './TAutomationCompensation';
|
|
4
|
+
|
|
5
|
+
export interface TClearWorkflowTemplateReferenceAutomationActionCompensation extends TAutomationCompensation<CompensationType.CLEAR_AUTOMATION_ACTION_WORKFLOW_TEMPLATE_REFERENCE> {
|
|
6
|
+
sourceAction: TAutomationActionReference;
|
|
7
|
+
newAction: TAutomationActionReference;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TCondition } from '../../../automations/condition/TCondition';
|
|
2
|
+
import { CompensationType } from '../CompensationType';
|
|
3
|
+
import { TAutomationActionReference } from '../TAutomationActionReference';
|
|
4
|
+
import { TAutomationCompensation } from './TAutomationCompensation';
|
|
5
|
+
|
|
6
|
+
export interface TClearWorkflowTemplateReferenceAutomationConditionCompensation extends TAutomationCompensation<CompensationType.CLEAR_AUTOMATION_CONDITION_WORKFLOW_TEMPLATE_REFERENCE> {
|
|
7
|
+
sourceConditionId: TCondition['id'];
|
|
8
|
+
newConditionId: TCondition['id'];
|
|
9
|
+
sourceParentAction?: TAutomationActionReference;
|
|
10
|
+
newParentAction?: TAutomationActionReference;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ErrorCode } from '../../../error/ErrorCode';
|
|
2
|
+
|
|
3
|
+
import { CompensationType } from '../CompensationType';
|
|
4
|
+
import { TAutomationReference } from '../TAutomationReference';
|
|
5
|
+
|
|
6
|
+
export interface TDisableAutomationCompensation {
|
|
7
|
+
type: CompensationType.DISABLE_AUTOMATION;
|
|
8
|
+
automation: TAutomationReference;
|
|
9
|
+
errorCode?: ErrorCode;
|
|
10
|
+
disabledReason?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { TComponentReference } from '../TComponentReference';
|
|
3
|
+
import { TWorkflowTemplateReference } from '../TWorkflowTemplateReference';
|
|
4
|
+
import { TComponentCompensation } from './TComponentCompensation';
|
|
5
|
+
|
|
6
|
+
export interface TClearRelatedCardComponentReference extends TComponentCompensation<CompensationType.CLEAR_RELATED_CARD_COMPONENT_REFERENCE> {
|
|
7
|
+
sourceReferencedWorkflowTemplate: TWorkflowTemplateReference;
|
|
8
|
+
newComponent: TComponentReference;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { TComponentCompensation } from './TComponentCompensation';
|
|
3
|
+
|
|
4
|
+
export interface TLimitSubformComponent extends TComponentCompensation<CompensationType.LIMIT_SUBFORM_COMPONENT> {
|
|
5
|
+
omittedCount: number;
|
|
6
|
+
limit: number;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { TComponentReference } from '../TComponentReference';
|
|
3
|
+
import { TComponentCompensation } from './TComponentCompensation';
|
|
4
|
+
|
|
5
|
+
export interface TOmitRelatedCardLookupComponent extends TComponentCompensation<CompensationType.OMIT_RELATED_CARD_LOOKUP_COMPONENT> {
|
|
6
|
+
sourceRelatedCardComponent: TComponentReference;
|
|
7
|
+
}
|
|
@@ -28,5 +28,5 @@ export interface TWorkflowTemplate extends TAudit {
|
|
|
28
28
|
behavior?: TWorkflowTemplateBehavior;
|
|
29
29
|
viewTemplateDefaults?: TViewTemplateDefaults;
|
|
30
30
|
channelDefaultConfiguration?: TChannelDefaultConfiguration;
|
|
31
|
-
viewTemplates
|
|
31
|
+
viewTemplates: TViewTemplate[];
|
|
32
32
|
}
|