@coast/core-api-types 1.2.364 → 1.2.366

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.
@@ -1,5 +1,6 @@
1
1
  import { ActivityFeedEventType } from '@coast/core-types/activity-feed/ActivityFeedEventType';
2
2
  import { UserId } from '@coast/core-types/user/UserId';
3
+ import { WorkflowEntityEventId } from '@coast/core-types/workflow-entity/WorkflowEntityEventId';
3
4
  import { Card } from '../card/Card';
4
5
  import { User } from '../user/User';
5
6
  export interface ActivityFeedItem {
@@ -13,4 +14,5 @@ export interface ActivityFeedItem {
13
14
  user: Partial<User>;
14
15
  cardId: string;
15
16
  card?: Partial<Card>;
17
+ workflowEntityEventId?: WorkflowEntityEventId;
16
18
  }
@@ -1,5 +1,6 @@
1
1
  import { ActivityFeedEventType } from '@coast/core-types/activity-feed/ActivityFeedEventType';
2
2
  import { UserId } from '@coast/core-types/user/UserId';
3
+ import { WorkflowEntityEventId } from '@coast/core-types/workflow-entity/WorkflowEntityEventId';
3
4
  import { ActivityFeedItem } from './ActivityFeedItem';
4
5
  import { CreateCardRelation } from './CreateCardRelation';
5
6
  import { CreateUserRelation } from './CreateUserRelation';
@@ -10,4 +11,5 @@ export interface CreateActivityFeedItem extends Partial<ActivityFeedItem> {
10
11
  eventType: ActivityFeedEventType;
11
12
  user: CreateUserRelation;
12
13
  originUserId?: UserId;
14
+ workflowEntityEventId?: WorkflowEntityEventId;
13
15
  }
@@ -9,7 +9,7 @@ export interface AutomationActionAudit extends Audit {
9
9
  id: AutomationActionAuditId;
10
10
  automationId: AutomationId;
11
11
  actionId: AutomationActionId;
12
- automationEventId: WorkflowEntityEventId;
12
+ workflowEntityEventId?: WorkflowEntityEventId;
13
13
  status: AutomationActionStatus;
14
14
  result?: AnyAutomationActionAuditResult;
15
15
  }
@@ -0,0 +1,4 @@
1
+ export type AutomationAuditDetail = {
2
+ unmetConditionIds?: string[];
3
+ error?: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AutomationAuditDetail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationAuditDetail.js","sourceRoot":"","sources":["../../../../src/models/automations/audit/AutomationAuditDetail.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { AutomationRunAuditId } from '@coast/core-types/automations/audit/AutomationRunAuditId';
2
+ import { AutomationRunStatus } from '@coast/core-types/automations/audit/AutomationRunStatus';
3
+ import { AutomationId } from '@coast/core-types/automations/AutomationId';
4
+ import { WorkflowEntityEventId } from '@coast/core-types/workflow-entity/WorkflowEntityEventId';
5
+ import type { AutomationAuditDetail } from './AutomationAuditDetail';
6
+ import { Audit } from '../../application/Audit';
7
+ export interface AutomationRunAudit extends Audit {
8
+ id: AutomationRunAuditId;
9
+ automationId: AutomationId;
10
+ workflowEntityEventId: WorkflowEntityEventId;
11
+ workflowEntityId: string;
12
+ status: AutomationRunStatus;
13
+ detail?: AutomationAuditDetail;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AutomationRunAudit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationRunAudit.js","sourceRoot":"","sources":["../../../../src/models/automations/audit/AutomationRunAudit.ts"],"names":[],"mappings":""}
@@ -1,5 +1,6 @@
1
1
  import { UserId } from '@coast/core-types/user/UserId';
2
2
  import { ViewTemplateId } from '@coast/core-types/view-template/ViewTemplateId';
3
+ import { WorkflowEntityEventId } from '@coast/core-types/workflow-entity/WorkflowEntityEventId';
3
4
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
4
5
  import { EntityAuditTrailEntry } from './EntityAuditTrailEntry';
5
6
  export interface EntityAuditTrailEvent {
@@ -11,4 +12,5 @@ export interface EntityAuditTrailEvent {
11
12
  originUserId?: UserId;
12
13
  workflowTemplateId: WorkflowTemplateId;
13
14
  viewTemplateId?: ViewTemplateId;
15
+ workflowEntityEventId?: WorkflowEntityEventId;
14
16
  }
@@ -1,3 +1,4 @@
1
+ import { BooleanIs } from './BooleanIs';
1
2
  import { ContainsCurrentUser } from './ContainsCurrentUser';
2
3
  import { ContainsNestedString } from './ContainsNestedString';
3
4
  import { ContainsNumber } from './ContainsNumber';
@@ -12,4 +13,4 @@ import { MultiMatchNumber } from './MultiMatchNumber';
12
13
  import { MultiMatchString } from './MultiMatchString';
13
14
  import { NumberIs } from './NumberIs';
14
15
  import { StringWildcard } from './StringWildcard';
15
- export type AnyComponentFilter = ContainsCurrentUser | ContainsNestedString | ContainsNumber | ContainsString | DateIs | DateRange | DateTokenIs | IsEmpty | IsNestedEmpty | MatchesScript | MultiMatchNumber | MultiMatchString | NumberIs | StringWildcard;
16
+ export type AnyComponentFilter = BooleanIs | ContainsCurrentUser | ContainsNestedString | ContainsNumber | ContainsString | DateIs | DateRange | DateTokenIs | IsEmpty | IsNestedEmpty | MatchesScript | MultiMatchNumber | MultiMatchString | NumberIs | StringWildcard;
@@ -1,3 +1,4 @@
1
+ import { BooleanIs } from './BooleanIs';
1
2
  import { ContainsCurrentUser } from './ContainsCurrentUser';
2
3
  import { ContainsNestedString } from './ContainsNestedString';
3
4
  import { ContainsNumber } from './ContainsNumber';
@@ -9,4 +10,4 @@ import { IsEmpty } from './IsEmpty';
9
10
  import { IsNestedEmpty } from './IsNestedEmpty';
10
11
  import { NumberIs } from './NumberIs';
11
12
  import { StringWildcard } from './StringWildcard';
12
- export type AnySingleComponentFilter = ContainsCurrentUser | ContainsNestedString | ContainsNumber | ContainsString | DateIs | DateRange | DateTokenIs | IsEmpty | IsNestedEmpty | NumberIs | StringWildcard;
13
+ export type AnySingleComponentFilter = BooleanIs | ContainsCurrentUser | ContainsNestedString | ContainsNumber | ContainsString | DateIs | DateRange | DateTokenIs | IsEmpty | IsNestedEmpty | NumberIs | StringWildcard;
@@ -0,0 +1,8 @@
1
+ import { ComparisonOperator } from '@coast/core-types/workflow-entity/filters/ComparisonOperator';
2
+ import { FilterType } from '@coast/core-types/workflow-entity/filters/FilterType';
3
+ import { FilterBase } from './FilterBase';
4
+ export interface BooleanIs extends FilterBase<FilterType.BOOLEAN_IS> {
5
+ operator: ComparisonOperator.EQ;
6
+ value: boolean;
7
+ type: FilterType.BOOLEAN_IS;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BooleanIs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BooleanIs.js","sourceRoot":"","sources":["../../../../src/models/workflow-entity/filters/BooleanIs.ts"],"names":[],"mappings":""}
@@ -1,6 +1,8 @@
1
1
  import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
+ import { ScalarKey } from '@coast/core-types/workflow-template/components/scalar/ScalarKey';
2
3
  import { DynamicFilterOneOf } from './DynamicFilterOneOf';
3
4
  export interface DynamicFilterByComponent {
4
5
  componentId: ComponentId;
6
+ scalarKey?: ScalarKey;
5
7
  value: DynamicFilterOneOf;
6
8
  }
@@ -1,3 +1,4 @@
1
+ import { BooleanIs } from './BooleanIs';
1
2
  import { ContainsCurrentUser } from './ContainsCurrentUser';
2
3
  import { ContainsNumber } from './ContainsNumber';
3
4
  import { ContainsString } from './ContainsString';
@@ -9,6 +10,7 @@ import { MatchesRelatedEntity } from './MatchesRelatedEntity';
9
10
  import { NumberIs } from './NumberIs';
10
11
  import { StringWildcard } from './StringWildcard';
11
12
  export interface FilterOneOf {
13
+ booleanIs?: BooleanIs;
12
14
  containsCurrentUser?: ContainsCurrentUser;
13
15
  containsNumber?: ContainsNumber;
14
16
  containsString?: ContainsString;
@@ -1,6 +1,8 @@
1
1
  import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
+ import { ScalarKey } from '@coast/core-types/workflow-template/components/scalar/ScalarKey';
2
3
  import { FilterOneOf } from './FilterOneOf';
3
4
  export interface FilterOneOfByComponent {
4
5
  componentId: ComponentId;
6
+ scalarKey?: ScalarKey;
5
7
  value: FilterOneOf;
6
8
  }
@@ -1,3 +1,4 @@
1
+ import { BooleanIs } from '../BooleanIs';
1
2
  import { ContainsCurrentUser } from '../ContainsCurrentUser';
2
3
  import { ContainsNumber } from '../ContainsNumber';
3
4
  import { ContainsString } from '../ContainsString';
@@ -8,4 +9,4 @@ import { IsEmpty } from '../IsEmpty';
8
9
  import { MatchesRelatedEntity } from '../MatchesRelatedEntity';
9
10
  import { NumberIs } from '../NumberIs';
10
11
  import { StringWildcard } from '../StringWildcard';
11
- export type AnyFilter = ContainsCurrentUser | ContainsNumber | ContainsString | DateIs | DateRange | DateTokenIs | IsEmpty | MatchesRelatedEntity | NumberIs | StringWildcard;
12
+ export type AnyFilter = BooleanIs | ContainsCurrentUser | ContainsNumber | ContainsString | DateIs | DateRange | DateTokenIs | IsEmpty | MatchesRelatedEntity | NumberIs | StringWildcard;
@@ -1,4 +1,5 @@
1
1
  import { AnySingleComponentFilter } from '../filters/AnySingleComponentFilter';
2
+ import { BooleanIs } from '../filters/BooleanIs';
2
3
  import { ContainsNestedString } from '../filters/ContainsNestedString';
3
4
  import { ContainsNumber } from '../filters/ContainsNumber';
4
5
  import { ContainsString } from '../filters/ContainsString';
@@ -13,4 +14,4 @@ export interface SingleKeySearchFilterBase<T extends AnySingleComponentFilter> {
13
14
  type: T['type'];
14
15
  filter: T;
15
16
  }
16
- export type SingleKeySearchFilter = SingleKeySearchFilterBase<ContainsNestedString> | SingleKeySearchFilterBase<ContainsNumber> | SingleKeySearchFilterBase<ContainsString> | SingleKeySearchFilterBase<DateIs> | SingleKeySearchFilterBase<DateRange> | SingleKeySearchFilterBase<IsEmpty> | SingleKeySearchFilterBase<IsNestedEmpty> | SingleKeySearchFilterBase<NumberIs> | SingleKeySearchFilterBase<StringWildcard>;
17
+ export type SingleKeySearchFilter = SingleKeySearchFilterBase<BooleanIs> | SingleKeySearchFilterBase<ContainsNestedString> | SingleKeySearchFilterBase<ContainsNumber> | SingleKeySearchFilterBase<ContainsString> | SingleKeySearchFilterBase<DateIs> | SingleKeySearchFilterBase<DateRange> | SingleKeySearchFilterBase<IsEmpty> | SingleKeySearchFilterBase<IsNestedEmpty> | SingleKeySearchFilterBase<NumberIs> | SingleKeySearchFilterBase<StringWildcard>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.364",
3
+ "version": "1.2.366",
4
4
  "description": "Facilitates the generation of core-api-types npm package",
5
5
  "exports": {
6
6
  "./*": {
@@ -23,10 +23,10 @@
23
23
  "author": "Coast Engineering",
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@coast/core-types": "0.0.78",
27
- "@coast/core-utils": "0.0.24",
26
+ "@coast/core-types": "0.0.84",
27
+ "@coast/core-utils": "0.0.25",
28
28
  "@coast/schemas": "^4.0.2",
29
- "@coast/service-common": "^2.0.79",
29
+ "@coast/service-common": "^2.0.81",
30
30
  "@paradoxical-io/types": "^2.1.0",
31
31
  "@types/json-schema": "^7.0.15",
32
32
  "json-schema": "^0.4.0",