@coast/core-api-types 1.2.281 → 1.2.283
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/component-data/DynamicComponentDataOneOf.d.ts +7 -8
- package/dist/models/pdf-subforms/PdfSubformResult.d.ts +2 -3
- package/dist/models/view-template-layout/ViewTemplateLayoutOneOf.d.ts +2 -3
- package/dist/models/view-template-layout/registry/ViewTemplateLayoutItemOneOfInput.d.ts +2 -3
- package/dist/models/workflow-app/compensations/AnyCompensation.d.ts +2 -1
- package/dist/models/workflow-app/compensations/CompensationType.d.ts +1 -0
- package/dist/models/workflow-app/compensations/CompensationType.js +1 -0
- package/dist/models/workflow-app/compensations/CompensationType.js.map +1 -1
- package/dist/models/workflow-app/compensations/components/LimitSubformComponent.d.ts +7 -0
- package/dist/models/workflow-app/compensations/components/LimitSubformComponent.js +3 -0
- package/dist/models/workflow-app/compensations/components/LimitSubformComponent.js.map +1 -0
- package/dist/models/workflow-entity/CreateWorkflowEntities.d.ts +2 -0
- package/dist/models/workflow-entity/CreateWorkflowEntity.d.ts +2 -0
- package/dist/models/workflow-entity/UpdateWorkflowEntities.d.ts +2 -0
- package/dist/models/workflow-entity/UpdateWorkflowEntity.d.ts +2 -0
- package/dist/models/workflow-template/components/ComponentDataOneOf.d.ts +16 -17
- package/package.json +3 -3
- package/dist/models/utils/Optional.d.ts +0 -1
- package/dist/models/utils/Optional.js +0 -18
- package/dist/models/utils/Optional.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DynamicComponentDataType } from '@coast/core-types/automations/action/component-data/DynamicComponentDataType';
|
|
2
2
|
import { CamelCase } from '@coast/core-utils/CamelCase';
|
|
3
|
-
import { Optional } from '@coast/core-utils/Optional';
|
|
4
3
|
import { ActionResultNumber } from './ActionResultNumber';
|
|
5
4
|
import { CurrentWorkflowEntity } from './CurrentWorkflowEntity';
|
|
6
5
|
import { CurrentWorkflowEntityComponent } from './CurrentWorkflowEntityComponent';
|
|
@@ -10,14 +9,14 @@ import { RelatedWorkflowEntityComponent } from './RelatedWorkflowEntityComponent
|
|
|
10
9
|
import { TimeTrackerDataAction } from './TimeTrackerDataAction';
|
|
11
10
|
type Fields = `${CamelCase<DynamicComponentDataType>}`;
|
|
12
11
|
type DynamicComponentDataOneOfs = {
|
|
13
|
-
[key in Fields]:
|
|
12
|
+
[key in Fields]: DynamicComponentData | undefined;
|
|
14
13
|
};
|
|
15
14
|
export interface DynamicComponentDataOneOf extends DynamicComponentDataOneOfs {
|
|
16
|
-
actionResultNumber:
|
|
17
|
-
currentWorkflowEntity:
|
|
18
|
-
currentWorkflowEntityComponent:
|
|
19
|
-
relatedWorkflowEntityComponent:
|
|
20
|
-
timeTrackerDataAction:
|
|
21
|
-
originUser:
|
|
15
|
+
actionResultNumber: ActionResultNumber | undefined;
|
|
16
|
+
currentWorkflowEntity: CurrentWorkflowEntity | undefined;
|
|
17
|
+
currentWorkflowEntityComponent: CurrentWorkflowEntityComponent | undefined;
|
|
18
|
+
relatedWorkflowEntityComponent: RelatedWorkflowEntityComponent | undefined;
|
|
19
|
+
timeTrackerDataAction: TimeTrackerDataAction | undefined;
|
|
20
|
+
originUser: OriginUser | undefined;
|
|
22
21
|
}
|
|
23
22
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Optional } from '@coast/core-utils/Optional';
|
|
2
1
|
import { SubformComponentOneOf } from '../workflow-template/components/SubformComponentOneOf';
|
|
3
2
|
export interface PdfSubformResult {
|
|
4
|
-
subformComponents?:
|
|
5
|
-
errorMessage?:
|
|
3
|
+
subformComponents?: SubformComponentOneOf[] | undefined;
|
|
4
|
+
errorMessage?: string | undefined;
|
|
6
5
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Optional } from '@coast/core-utils/Optional';
|
|
2
1
|
import { ViewTemplateLayoutComponent } from './items/ViewTemplateLayoutComponent';
|
|
3
2
|
import { ViewTemplateLayoutSection } from './items/ViewTemplateLayoutSection';
|
|
4
3
|
import { ViewTemplateLayoutItemOneOfInput } from './registry/ViewTemplateLayoutItemOneOfInput';
|
|
5
4
|
export interface ViewTemplateLayoutOneOf extends ViewTemplateLayoutItemOneOfInput {
|
|
6
|
-
single_component:
|
|
7
|
-
section:
|
|
5
|
+
single_component: ViewTemplateLayoutComponent | undefined;
|
|
6
|
+
section: ViewTemplateLayoutSection | undefined;
|
|
8
7
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Optional } from '@coast/core-utils/Optional';
|
|
2
1
|
import { ViewTemplateLayoutComponent } from '../items/ViewTemplateLayoutComponent';
|
|
3
2
|
import { ViewTemplateLayoutSection } from '../items/ViewTemplateLayoutSection';
|
|
4
3
|
export type ViewTemplateLayoutItemOneOfInput = {
|
|
5
|
-
section:
|
|
6
|
-
single_component:
|
|
4
|
+
section: ViewTemplateLayoutSection | undefined;
|
|
5
|
+
single_component: ViewTemplateLayoutComponent | undefined;
|
|
7
6
|
};
|
|
@@ -2,6 +2,7 @@ import { ClearWorkflowTemplateReferenceAutomationActionCompensation } from './au
|
|
|
2
2
|
import { ClearWorkflowTemplateReferenceAutomationConditionCompensation } from './automations/ClearWorkflowTemplateReferenceAutomationConditionCompensation';
|
|
3
3
|
import { DisableAutomationCompensation } from './automations/DisableAutomationCompensation';
|
|
4
4
|
import { ClearRelatedCardComponentReference } from './components/ClearRelatedCardComponentReference';
|
|
5
|
+
import { LimitSubformComponent } from './components/LimitSubformComponent';
|
|
5
6
|
import { OmitReferencedInComponent } from './components/OmitReferencedInComponent';
|
|
6
7
|
import { OmitRelatedCardLookupComponent } from './components/OmitRelatedCardLookupComponent';
|
|
7
|
-
export type AnyCompensation = ClearRelatedCardComponentReference | ClearWorkflowTemplateReferenceAutomationActionCompensation | ClearWorkflowTemplateReferenceAutomationConditionCompensation | DisableAutomationCompensation | OmitReferencedInComponent | OmitRelatedCardLookupComponent;
|
|
8
|
+
export type AnyCompensation = ClearRelatedCardComponentReference | ClearWorkflowTemplateReferenceAutomationActionCompensation | ClearWorkflowTemplateReferenceAutomationConditionCompensation | DisableAutomationCompensation | LimitSubformComponent | OmitReferencedInComponent | OmitRelatedCardLookupComponent;
|
|
@@ -3,6 +3,7 @@ export declare enum CompensationType {
|
|
|
3
3
|
CLEAR_AUTOMATION_CONDITION_WORKFLOW_TEMPLATE_REFERENCE = "CLEAR_AUTOMATION_CONDITION_WORKFLOW_TEMPLATE_REFERENCE",
|
|
4
4
|
CLEAR_RELATED_CARD_COMPONENT_REFERENCE = "CLEAR_RELATED_CARD_COMPONENT_REFERENCE",
|
|
5
5
|
DISABLE_AUTOMATION = "DISABLE_AUTOMATION",
|
|
6
|
+
LIMIT_SUBFORM_COMPONENT = "LIMIT_SUBFORM_COMPONENT",
|
|
6
7
|
OMIT_REFERENCED_IN_COMPONENT = "OMIT_REFERENCED_IN_COMPONENT",
|
|
7
8
|
OMIT_RELATED_CARD_LOOKUP_COMPONENT = "OMIT_RELATED_CARD_LOOKUP_COMPONENT"
|
|
8
9
|
}
|
|
@@ -7,6 +7,7 @@ var CompensationType;
|
|
|
7
7
|
CompensationType["CLEAR_AUTOMATION_CONDITION_WORKFLOW_TEMPLATE_REFERENCE"] = "CLEAR_AUTOMATION_CONDITION_WORKFLOW_TEMPLATE_REFERENCE";
|
|
8
8
|
CompensationType["CLEAR_RELATED_CARD_COMPONENT_REFERENCE"] = "CLEAR_RELATED_CARD_COMPONENT_REFERENCE";
|
|
9
9
|
CompensationType["DISABLE_AUTOMATION"] = "DISABLE_AUTOMATION";
|
|
10
|
+
CompensationType["LIMIT_SUBFORM_COMPONENT"] = "LIMIT_SUBFORM_COMPONENT";
|
|
10
11
|
CompensationType["OMIT_REFERENCED_IN_COMPONENT"] = "OMIT_REFERENCED_IN_COMPONENT";
|
|
11
12
|
CompensationType["OMIT_RELATED_CARD_LOOKUP_COMPONENT"] = "OMIT_RELATED_CARD_LOOKUP_COMPONENT";
|
|
12
13
|
})(CompensationType || (exports.CompensationType = CompensationType = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompensationType.js","sourceRoot":"","sources":["../../../../src/models/workflow-app/compensations/CompensationType.ts"],"names":[],"mappings":";;;AACA,IAAY,
|
|
1
|
+
{"version":3,"file":"CompensationType.js","sourceRoot":"","sources":["../../../../src/models/workflow-app/compensations/CompensationType.ts"],"names":[],"mappings":";;;AACA,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,gCAAhB,gBAAgB,QAQ3B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CompensationType } from '../CompensationType';
|
|
2
|
+
import { ComponentCompensation } from './ComponentCompensation';
|
|
3
|
+
export interface LimitSubformComponent extends ComponentCompensation {
|
|
4
|
+
type: CompensationType.LIMIT_SUBFORM_COMPONENT;
|
|
5
|
+
omittedCount: number;
|
|
6
|
+
limit: number;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LimitSubformComponent.js","sourceRoot":"","sources":["../../../../../src/models/workflow-app/compensations/components/LimitSubformComponent.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ViewTemplateId } from '@coast/core-types/view-template/ViewTemplateId';
|
|
1
2
|
import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
|
|
2
3
|
import { CreateWorkflowEntity } from './CreateWorkflowEntity';
|
|
3
4
|
export interface CreateWorkflowEntities {
|
|
4
5
|
entities: CreateWorkflowEntity[];
|
|
6
|
+
viewTemplateId?: ViewTemplateId;
|
|
5
7
|
workflowTemplateId: WorkflowTemplateId;
|
|
6
8
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { UserId } from '@coast/core-types/user/UserId';
|
|
2
|
+
import { ViewTemplateId } from '@coast/core-types/view-template/ViewTemplateId';
|
|
2
3
|
import { WorkflowEntity } from './WorkflowEntity';
|
|
3
4
|
export interface CreateWorkflowEntity extends Omit<WorkflowEntity, 'id' | 'createdAt' | 'updatedAt' | 'channelId' | 'threadId'> {
|
|
4
5
|
channelId?: number;
|
|
6
|
+
viewTemplateId?: ViewTemplateId;
|
|
5
7
|
kanbanSortKey?: string;
|
|
6
8
|
name?: string;
|
|
7
9
|
sequenceNumber?: number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ViewTemplateId } from '@coast/core-types/view-template/ViewTemplateId';
|
|
1
2
|
import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
|
|
2
3
|
import { UpdateWorkflowEntity } from './UpdateWorkflowEntity';
|
|
3
4
|
export interface UpdateWorkflowEntities {
|
|
4
5
|
entities: UpdateWorkflowEntity[];
|
|
6
|
+
viewTemplateId?: ViewTemplateId;
|
|
5
7
|
workflowTemplateId: WorkflowTemplateId;
|
|
6
8
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ViewTemplateId } from '@coast/core-types/view-template/ViewTemplateId';
|
|
1
2
|
import { WorkflowEntity } from './WorkflowEntity';
|
|
2
3
|
export interface UpdateWorkflowEntity extends Omit<WorkflowEntity, 'createdAt' | 'updatedAt' | 'channelId' | 'workflowTemplateId' | 'impliedSortKeys' | 'threadId'> {
|
|
4
|
+
viewTemplateId?: ViewTemplateId;
|
|
3
5
|
name?: string;
|
|
4
6
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CamelCase } from '@coast/core-utils/CamelCase';
|
|
2
|
-
import { Optional } from '@coast/core-utils/Optional';
|
|
3
2
|
import { AddressComponentData } from './address/AddressComponentData';
|
|
4
3
|
import { ComponentData } from './ComponentData';
|
|
5
4
|
import { DateComponentData } from './date/DateComponentData';
|
|
@@ -19,23 +18,23 @@ import { TodoComponentData } from './todo/TodoComponentData';
|
|
|
19
18
|
import { UrlComponentData } from './url/UrlComponentData';
|
|
20
19
|
type Fields = `${CamelCase<AutomationEnabledInputComponentType>}ComponentData`;
|
|
21
20
|
type ComponentDataOneOfs = {
|
|
22
|
-
[key in Fields]:
|
|
21
|
+
[key in Fields]: ComponentData | undefined;
|
|
23
22
|
};
|
|
24
23
|
export interface ComponentDataOneOf extends ComponentDataOneOfs {
|
|
25
|
-
addressComponentData:
|
|
26
|
-
dateComponentData:
|
|
27
|
-
emailComponentData:
|
|
28
|
-
fileComponentData:
|
|
29
|
-
geolocationComponentData:
|
|
30
|
-
numberComponentData:
|
|
31
|
-
personComponentData:
|
|
32
|
-
relatedCardComponentData:
|
|
33
|
-
signatureComponentData:
|
|
34
|
-
subformComponentData:
|
|
35
|
-
tagComponentData:
|
|
36
|
-
textComponentData:
|
|
37
|
-
timeTrackerComponentData:
|
|
38
|
-
todoComponentData:
|
|
39
|
-
urlComponentData:
|
|
24
|
+
addressComponentData: AddressComponentData | undefined;
|
|
25
|
+
dateComponentData: DateComponentData | undefined;
|
|
26
|
+
emailComponentData: EmailComponentData | undefined;
|
|
27
|
+
fileComponentData: FileComponentData | undefined;
|
|
28
|
+
geolocationComponentData: GeolocationComponentData | undefined;
|
|
29
|
+
numberComponentData: NumberComponentData | undefined;
|
|
30
|
+
personComponentData: PersonComponentData | undefined;
|
|
31
|
+
relatedCardComponentData: RelatedCardComponentData | undefined;
|
|
32
|
+
signatureComponentData: SignatureComponentData | undefined;
|
|
33
|
+
subformComponentData: SubformComponentData | undefined;
|
|
34
|
+
tagComponentData: TagComponentData | undefined;
|
|
35
|
+
textComponentData: TextComponentData | undefined;
|
|
36
|
+
timeTrackerComponentData: TimeTrackerComponentData | undefined;
|
|
37
|
+
todoComponentData: TodoComponentData | undefined;
|
|
38
|
+
urlComponentData: UrlComponentData | undefined;
|
|
40
39
|
}
|
|
41
40
|
export {};
|
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.283",
|
|
4
4
|
"description": "Facilitates the generation of core-api-types npm package",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"author": "Coast Engineering",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@coast/core-types": "0.0.
|
|
27
|
-
"@coast/core-utils": "0.0.
|
|
26
|
+
"@coast/core-types": "0.0.28",
|
|
27
|
+
"@coast/core-utils": "0.0.12",
|
|
28
28
|
"@coast/schemas": "^4.0.0",
|
|
29
29
|
"@coast/service-common": "^2.0.69",
|
|
30
30
|
"@paradoxical-io/types": "^2.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@coast/core-utils/Optional';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("@coast/core-utils/Optional"), exports);
|
|
18
|
-
//# sourceMappingURL=Optional.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Optional.js","sourceRoot":"","sources":["../../../src/models/utils/Optional.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,6DAA2C"}
|