@coast/core-api-types 1.2.345 → 1.2.347
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/action/SendEmailAction.d.ts +2 -1
- package/dist/models/automations/condition/operands/ActionResultNumberOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/ComponentOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/DateOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/DateTokenOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/EmptyOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/NumberArrayOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/NumberOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/Operand.d.ts +2 -2
- package/dist/models/automations/condition/operands/PreviousComponentOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/StringArrayOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/StringOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/SubformComponentRefOperand.d.ts +2 -1
- package/dist/models/automations/condition/operands/WorkflowEntityRefComponentOperand.d.ts +2 -1
- package/dist/models/view-template-layout/ViewTemplateLayoutItem.d.ts +2 -2
- package/dist/models/view-template-layout/items/ViewTemplateLayoutComponent.d.ts +2 -1
- package/dist/models/view-template-layout/items/ViewTemplateLayoutSection.d.ts +2 -1
- package/dist/models/workflow-template/components/date-range/DateRangeComponentDataValue.d.ts +2 -1
- package/dist/scripts/generateTypes.js +1 -1
- package/dist/scripts/generateTypes.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { AutomationActionType } from '@coast/core-types/automations/action/AutomationActionType';
|
|
1
2
|
import { AutomationAction } from './AutomationAction';
|
|
2
3
|
import { SendEmailActionSettings } from './settings/SendEmailActionSettings';
|
|
3
|
-
export interface SendEmailAction extends Omit<AutomationAction
|
|
4
|
+
export interface SendEmailAction extends Omit<AutomationAction<AutomationActionType.SEND_EMAIL>, 'settings'> {
|
|
4
5
|
settings?: SendEmailActionSettings;
|
|
5
6
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
|
|
1
2
|
import { Operand } from './Operand';
|
|
2
|
-
export interface ActionResultNumberOperand extends Operand {
|
|
3
|
+
export interface ActionResultNumberOperand extends Operand<OperandType.ACTION_RESULT_NUMBER> {
|
|
3
4
|
actionId: string;
|
|
4
5
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
|
|
1
2
|
import { ScalarKey } from '@coast/core-types/workflow-template/components/scalar/ScalarKey';
|
|
2
3
|
import { Operand } from './Operand';
|
|
3
|
-
export interface ComponentOperand extends Operand {
|
|
4
|
+
export interface ComponentOperand extends Operand<OperandType.COMPONENT> {
|
|
4
5
|
componentId: string;
|
|
5
6
|
scalarKey?: ScalarKey;
|
|
6
7
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AutomationDateToken } from '@coast/core-types/automations/AutomationDateToken';
|
|
2
|
+
import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
|
|
2
3
|
import { Operand } from './Operand';
|
|
3
|
-
export interface DateTokenOperand extends Operand {
|
|
4
|
+
export interface DateTokenOperand extends Operand<OperandType.DATE_TOKEN> {
|
|
4
5
|
dateToken: AutomationDateToken;
|
|
5
6
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
|
|
1
2
|
import { Operand } from './Operand';
|
|
2
|
-
export interface NumberArrayOperand extends Operand {
|
|
3
|
+
export interface NumberArrayOperand extends Operand<OperandType.NUMBER_ARRAY> {
|
|
3
4
|
numberValues: number[];
|
|
4
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
|
|
1
2
|
import { Operand } from './Operand';
|
|
2
|
-
export interface NumberOperand extends Operand {
|
|
3
|
+
export interface NumberOperand extends Operand<OperandType.NUMBER> {
|
|
3
4
|
numberValue: number;
|
|
4
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
|
|
1
2
|
import { Operand } from './Operand';
|
|
2
|
-
export interface PreviousComponentOperand extends Operand {
|
|
3
|
+
export interface PreviousComponentOperand extends Operand<OperandType.PREVIOUS_COMPONENT> {
|
|
3
4
|
componentId: string;
|
|
4
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
|
|
1
2
|
import { Operand } from './Operand';
|
|
2
|
-
export interface StringArrayOperand extends Operand {
|
|
3
|
+
export interface StringArrayOperand extends Operand<OperandType.STRING_ARRAY> {
|
|
3
4
|
stringValues: string[];
|
|
4
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
|
|
1
2
|
import { Operand } from './Operand';
|
|
2
|
-
export interface StringOperand extends Operand {
|
|
3
|
+
export interface StringOperand extends Operand<OperandType.STRING> {
|
|
3
4
|
stringValue: string;
|
|
4
5
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
|
|
1
2
|
import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
|
|
2
3
|
import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
|
|
3
4
|
import { Operand } from './Operand';
|
|
4
5
|
import { WorkflowTemplateComponentCase } from './WorkflowTemplateComponentCase';
|
|
5
|
-
export interface SubformComponentRefOperand extends Operand {
|
|
6
|
+
export interface SubformComponentRefOperand extends Operand<OperandType.SUBFORM_COMPONENT_REF> {
|
|
6
7
|
subformComponentId: ComponentId;
|
|
7
8
|
refComponentType: ComponentType;
|
|
8
9
|
cases: WorkflowTemplateComponentCase[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
|
|
1
2
|
import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
|
|
2
3
|
import { Operand } from './Operand';
|
|
3
|
-
export interface WorkflowEntityRefComponentOperand extends Operand {
|
|
4
|
+
export interface WorkflowEntityRefComponentOperand extends Operand<OperandType.WORKFLOW_ENTITY_REF_COMPONENT> {
|
|
4
5
|
componentId: string;
|
|
5
6
|
refComponentId: string;
|
|
6
7
|
refWorkflowTemplateId?: WorkflowTemplateId;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ViewTemplateLayoutItemId } from '@coast/core-types/view-template-layout/ViewTemplateLayoutItemId';
|
|
2
2
|
import { ViewTemplateLayoutItemType } from '@coast/core-types/view-template-layout/ViewTemplateLayoutItemType';
|
|
3
3
|
import type { ViewTemplateLayout } from './ViewTemplateLayout';
|
|
4
|
-
export interface ViewTemplateLayoutItem {
|
|
4
|
+
export interface ViewTemplateLayoutItem<T extends ViewTemplateLayoutItemType = ViewTemplateLayoutItemType> {
|
|
5
5
|
id?: ViewTemplateLayoutItemId;
|
|
6
6
|
viewTemplateLayout?: ViewTemplateLayout;
|
|
7
7
|
displayOrder?: number;
|
|
8
|
-
type:
|
|
8
|
+
type: T;
|
|
9
9
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ViewTemplateLayoutItemType } from '@coast/core-types/view-template-layout/ViewTemplateLayoutItemType';
|
|
1
2
|
import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
|
|
2
3
|
import { ViewTemplateLayoutItem } from '../ViewTemplateLayoutItem';
|
|
3
|
-
export interface ViewTemplateLayoutComponent extends ViewTemplateLayoutItem {
|
|
4
|
+
export interface ViewTemplateLayoutComponent extends ViewTemplateLayoutItem<ViewTemplateLayoutItemType.SINGLE_COMPONENT> {
|
|
4
5
|
componentId?: ComponentId;
|
|
5
6
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ViewTemplateLayoutItemType } from '@coast/core-types/view-template-layout/ViewTemplateLayoutItemType';
|
|
1
2
|
import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
|
|
2
3
|
import { ViewTemplateLayoutItem } from '../ViewTemplateLayoutItem';
|
|
3
|
-
export interface ViewTemplateLayoutSection extends ViewTemplateLayoutItem {
|
|
4
|
+
export interface ViewTemplateLayoutSection extends ViewTemplateLayoutItem<ViewTemplateLayoutItemType.SECTION> {
|
|
4
5
|
title?: string;
|
|
5
6
|
isCollapsed?: boolean;
|
|
6
7
|
columnCount?: number;
|
package/dist/models/workflow-template/components/date-range/DateRangeComponentDataValue.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { TDateRangeComponentDataValue } from '@coast/core-types/workflow-template/components/date-range/TDateRangeComponentDataValue';
|
|
2
|
+
export interface DateRangeComponentDataValue extends TDateRangeComponentDataValue {
|
|
2
3
|
startDate?: Date;
|
|
3
4
|
endDate?: Date;
|
|
4
5
|
}
|
|
@@ -39,7 +39,7 @@ const dependencies = Object.keys(require(path.resolve(__dirname, '../../../../pa
|
|
|
39
39
|
(0, generateTypes_1.generateTypes)({
|
|
40
40
|
sourceDir: path.resolve(__dirname, '../../../core-models/src'),
|
|
41
41
|
destDir: path.resolve(__dirname, '../models'),
|
|
42
|
-
ignoreSourceDirectories: ['validation', 'access-management', 'test'],
|
|
42
|
+
ignoreSourceDirectories: ['validation', 'access-management', 'test', 'mappers'],
|
|
43
43
|
ignoreDestinationDirectoryFilePatterns: [
|
|
44
44
|
'scripts',
|
|
45
45
|
'Intersection.ts',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateTypes.js","sourceRoot":"","sources":["../../src/scripts/generateTypes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,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AC,GAAG,CAAC,2BAA2B,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;IAC7G,wBAAwB,EACpB,iHAAiH;IACrH,iBAAiB,EAAE;QACf,gBAAgB;QAKhB,kBAAkB;QAClB,0BAA0B;QAC1B,sBAAsB;QACtB,cAAc;QACd,mCAAmC;QACnC,sBAAsB;QACtB,2BAA2B;QAC3B,2CAA2C;QAC3C,YAAY;QACZ,iBAAiB;QACjB,0BAA0B;QAC1B,eAAe;QACf,oBAAoB;QACpB,WAAW;QACX,gBAAgB;QAChB,qBAAqB;QACrB,0BAA0B;QAC1B,0BAA0B;QAC1B,6BAA6B;QAC7B,kCAAkC;QAClC,iCAAiC;QACjC,wBAAwB;QACxB,6BAA6B;QAC7B,mBAAmB;QACnB,kBAAkB;QAClB,uBAAuB;QACvB,2BAA2B;QAC3B,gCAAgC;QAChC,gCAAgC;QAChC,yBAAyB;QACzB,+BAA+B;QAC/B,8BAA8B;QAC9B,oCAAoC;QACpC,iBAAiB;QACjB,sBAAsB;QACtB,sBAAsB;QACtB,2BAA2B;QAC3B,iBAAiB;QACjB,sBAAsB;QACtB,uBAAuB;KAC1B;IACD,uBAAuB,EAAE,YAAY;IACrC,uBAAuB,EAAE,CAAC,8BAA8B,EAAE,YAAY,CAAC;IACvE,IAAI,EAAE,IAAI;CACb,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coast/core-api-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.347",
|
|
4
4
|
"description": "Facilitates the generation of core-api-types npm package",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"author": "Coast Engineering",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@coast/core-types": "0.0.
|
|
26
|
+
"@coast/core-types": "0.0.54",
|
|
27
27
|
"@coast/core-utils": "0.0.22",
|
|
28
28
|
"@coast/schemas": "^4.0.2",
|
|
29
29
|
"@coast/service-common": "^2.0.79",
|