@coast/core-api-types 1.2.272 → 1.2.276

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,5 @@
1
1
  import { AutomationActionType } from '@coast/core-types/automations/action/AutomationActionType';
2
- import { HmacSecretKey } from '@coast/core-types/common/HmacSecretKey';
2
+ import { HmacSecretKey } from '@coast/service-common/crypto/HmacSecretKey';
3
3
  import { AutomationActionSettings } from './AutomationActionSettings';
4
4
  export interface SendWebhookActionSettings extends AutomationActionSettings<AutomationActionType.SEND_WEBHOOK> {
5
5
  destinationUrl: string;
@@ -2,6 +2,7 @@ import { BusinessId } from '@coast/core-types/business/BusinessId';
2
2
  import { ChannelType } from '@coast/core-types/channel/ChannelType';
3
3
  import { UserId } from '@coast/core-types/user/UserId';
4
4
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
5
+ import { ListChannelsOrder } from './ListChannelsOrder';
5
6
  export interface ListChannels {
6
7
  autoAddUsers?: boolean;
7
8
  businessId?: BusinessId;
@@ -11,4 +12,5 @@ export interface ListChannels {
11
12
  isDeleted?: boolean;
12
13
  type?: ChannelType;
13
14
  workflowTemplateId?: WorkflowTemplateId;
15
+ order?: ListChannelsOrder[];
14
16
  }
@@ -0,0 +1,6 @@
1
+ import { OrderDirection } from '@coast/core-types/application/query/OrderDirection';
2
+ import { ListChannelsOrderBy } from './ListChannelsOrderBy';
3
+ export interface ListChannelsOrder {
4
+ orderBy?: ListChannelsOrderBy;
5
+ orderDirection?: OrderDirection;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ListChannelsOrder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListChannelsOrder.js","sourceRoot":"","sources":["../../../src/models/channel/ListChannelsOrder.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export declare enum ListChannelsOrderBy {
2
+ createdAt = "createdAt",
3
+ deletedAt = "deletedAt",
4
+ name = "name"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListChannelsOrderBy = void 0;
4
+ var ListChannelsOrderBy;
5
+ (function (ListChannelsOrderBy) {
6
+ ListChannelsOrderBy["createdAt"] = "createdAt";
7
+ ListChannelsOrderBy["deletedAt"] = "deletedAt";
8
+ ListChannelsOrderBy["name"] = "name";
9
+ })(ListChannelsOrderBy || (exports.ListChannelsOrderBy = ListChannelsOrderBy = {}));
10
+ //# sourceMappingURL=ListChannelsOrderBy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListChannelsOrderBy.js","sourceRoot":"","sources":["../../../src/models/channel/ListChannelsOrderBy.ts"],"names":[],"mappings":";;;AAEA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;IACvB,8CAAuB,CAAA;IACvB,oCAAa,CAAA;AACjB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
@@ -1,4 +1,5 @@
1
1
  export interface ExecutionDirectives {
2
2
  suppressNotifications?: boolean;
3
3
  suppressSystemMessages?: boolean;
4
+ suppressAutomationChain?: boolean;
4
5
  }
@@ -1,7 +1,9 @@
1
1
  import { Channel } from '../channel/Channel';
2
2
  import { WorkspaceSection } from '../workspace-section/WorkspaceSection';
3
+ import { AnyCompensation } from './compensations/AnyCompensation';
3
4
  export interface WorkflowApp {
4
5
  workflowListItemId: string;
5
6
  workspaces?: Channel[];
6
7
  workspaceSection?: WorkspaceSection;
8
+ compensations: AnyCompensation[];
7
9
  }
@@ -2,4 +2,4 @@ import { ComponentType } from '@coast/core-types/workflow-template/components/Co
2
2
  import { Extends } from '@paradoxical-io/types';
3
3
  import { InputComponentTypes } from './InputComponentTypes';
4
4
  export type InputComponentType = Extends<ComponentType, (typeof InputComponentTypes)[number]>;
5
- export type AutomationEnabledInputComponentType = Exclude<InputComponentType, ComponentType.AUDIT_CHECKBOX | ComponentType.AUDIT_TAG | ComponentType.AUDIT_TEXT | ComponentType.COMBINED_TAGS | ComponentType.DATE_RANGE | ComponentType.ENTITY_BATCH | ComponentType.SCHEDULED_AUTOMATION>;
5
+ export type AutomationEnabledInputComponentType = Exclude<InputComponentType, ComponentType.AUDIT_CHECKBOX | ComponentType.AUDIT_TAG | ComponentType.AUDIT_TEXT | ComponentType.COMBINED_TAGS | ComponentType.ENTITY_BATCH | ComponentType.SCHEDULED_AUTOMATION>;
@@ -1,2 +1,2 @@
1
1
  import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
2
- export declare const InputComponentTypes: [ComponentType.ADDRESS, ComponentType.AUDIT_CHECKBOX, ComponentType.AUDIT_TAG, ComponentType.AUDIT_TEXT, ComponentType.DATE, ComponentType.DATE_RANGE, ComponentType.EMAIL, ComponentType.ENTITY_BATCH, ComponentType.FILE, ComponentType.GEOLOCATION, ComponentType.NUMBER, ComponentType.PERSON, ComponentType.RELATED_CARD, ComponentType.SCHEDULED_AUTOMATION, ComponentType.SIGNATURE, ComponentType.SUBFORM, ComponentType.TAG, ComponentType.TEXT, ComponentType.TIME_TRACKER, ComponentType.TODO, ComponentType.URL];
2
+ export declare const InputComponentTypes: [ComponentType.ADDRESS, ComponentType.AUDIT_CHECKBOX, ComponentType.AUDIT_TAG, ComponentType.AUDIT_TEXT, ComponentType.DATE, ComponentType.EMAIL, ComponentType.ENTITY_BATCH, ComponentType.FILE, ComponentType.GEOLOCATION, ComponentType.NUMBER, ComponentType.PERSON, ComponentType.RELATED_CARD, ComponentType.SCHEDULED_AUTOMATION, ComponentType.SIGNATURE, ComponentType.SUBFORM, ComponentType.TAG, ComponentType.TEXT, ComponentType.TIME_TRACKER, ComponentType.TODO, ComponentType.URL];
@@ -8,7 +8,6 @@ exports.InputComponentTypes = [
8
8
  ComponentType_1.ComponentType.AUDIT_TAG,
9
9
  ComponentType_1.ComponentType.AUDIT_TEXT,
10
10
  ComponentType_1.ComponentType.DATE,
11
- ComponentType_1.ComponentType.DATE_RANGE,
12
11
  ComponentType_1.ComponentType.EMAIL,
13
12
  ComponentType_1.ComponentType.ENTITY_BATCH,
14
13
  ComponentType_1.ComponentType.FILE,
@@ -1 +1 @@
1
- {"version":3,"file":"InputComponentTypes.js","sourceRoot":"","sources":["../../../../src/models/workflow-template/components/InputComponentTypes.ts"],"names":[],"mappings":";;;AAAA,gGAA6F;AAEhF,QAAA,mBAAmB,GAAG;IAC/B,6BAAa,CAAC,OAAO;IACrB,6BAAa,CAAC,cAAc;IAC5B,6BAAa,CAAC,SAAS;IACvB,6BAAa,CAAC,UAAU;IACxB,6BAAa,CAAC,IAAI;IAClB,6BAAa,CAAC,UAAU;IACxB,6BAAa,CAAC,KAAK;IACnB,6BAAa,CAAC,YAAY;IAC1B,6BAAa,CAAC,IAAI;IAClB,6BAAa,CAAC,WAAW;IACzB,6BAAa,CAAC,MAAM;IACpB,6BAAa,CAAC,MAAM;IACpB,6BAAa,CAAC,YAAY;IAC1B,6BAAa,CAAC,oBAAoB;IAClC,6BAAa,CAAC,SAAS;IACvB,6BAAa,CAAC,OAAO;IACrB,6BAAa,CAAC,GAAG;IACjB,6BAAa,CAAC,IAAI;IAClB,6BAAa,CAAC,YAAY;IAC1B,6BAAa,CAAC,IAAI;IAClB,6BAAa,CAAC,GAAG;CACe,CAAC"}
1
+ {"version":3,"file":"InputComponentTypes.js","sourceRoot":"","sources":["../../../../src/models/workflow-template/components/InputComponentTypes.ts"],"names":[],"mappings":";;;AAAA,gGAA6F;AAEhF,QAAA,mBAAmB,GAAG;IAC/B,6BAAa,CAAC,OAAO;IACrB,6BAAa,CAAC,cAAc;IAC5B,6BAAa,CAAC,SAAS;IACvB,6BAAa,CAAC,UAAU;IACxB,6BAAa,CAAC,IAAI;IAClB,6BAAa,CAAC,KAAK;IACnB,6BAAa,CAAC,YAAY;IAC1B,6BAAa,CAAC,IAAI;IAClB,6BAAa,CAAC,WAAW;IACzB,6BAAa,CAAC,MAAM;IACpB,6BAAa,CAAC,MAAM;IACpB,6BAAa,CAAC,YAAY;IAC1B,6BAAa,CAAC,oBAAoB;IAClC,6BAAa,CAAC,SAAS;IACvB,6BAAa,CAAC,OAAO;IACrB,6BAAa,CAAC,GAAG;IACjB,6BAAa,CAAC,IAAI;IAClB,6BAAa,CAAC,YAAY;IAC1B,6BAAa,CAAC,IAAI;IAClB,6BAAa,CAAC,GAAG;CACe,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
2
+ import { AddressComponentData } from '../address/AddressComponentData';
3
+ import { AnyComponentDataValue } from '../AnyComponentDataValue';
4
+ import { AuditCheckboxComponentData } from '../audit-checkbox/AuditCheckboxComponentData';
5
+ import { AuditTagComponentData } from '../audit-tag/AuditTagComponentData';
6
+ import { AuditTextComponentData } from '../audit-text/AuditTextComponentData';
7
+ import { DateComponentData } from '../date/DateComponentData';
8
+ import { EmailComponentData } from '../email/EmailComponentData';
9
+ import { EntityBatchComponentData } from '../enitty-batch/EntityBatchComponentData';
10
+ import { FileComponentData } from '../file/FileComponentData';
11
+ import { GeolocationComponentData } from '../geo-location/GeolocationComponentData';
12
+ import { InputComponentType } from '../InputComponentType';
13
+ import { NumberComponentData } from '../number/NumberComponentData';
14
+ import { PersonComponentData } from '../person/PersonComponentData';
15
+ import { RelatedCardComponentData } from '../related-card/RelatedCardComponentData';
16
+ import { ScheduledAutomationComponentData } from '../scheduled-automation/ScheduledAutomationComponentData';
17
+ import { SignatureComponentData } from '../signature/SignatureComponentData';
18
+ import { SubformComponentData } from '../subform/SubformComponentData';
19
+ import { TagComponentData } from '../tag/TagComponentData';
20
+ import { TextComponentData } from '../text/TextComponentData';
21
+ import { TimeTrackerComponentData } from '../time-tracker/TimeTrackerComponentData';
22
+ import { TodoComponentData } from '../todo/TodoComponentData';
23
+ import { UrlComponentData } from '../url/UrlComponentData';
24
+ export type InputComponentDataValueMap = Record<InputComponentType, AnyComponentDataValue> & {
25
+ [ComponentType.ADDRESS]: AddressComponentData['addressComponentDataValue'];
26
+ [ComponentType.AUDIT_CHECKBOX]: AuditCheckboxComponentData['auditCheckboxComponentDataValue'];
27
+ [ComponentType.AUDIT_TAG]: AuditTagComponentData['auditTagComponentDataValue'];
28
+ [ComponentType.AUDIT_TEXT]: AuditTextComponentData['auditTextComponentDataValue'];
29
+ [ComponentType.DATE]: DateComponentData['dateComponentDataValue'];
30
+ [ComponentType.EMAIL]: EmailComponentData['emailComponentDataValue'];
31
+ [ComponentType.ENTITY_BATCH]: EntityBatchComponentData['entityBatchId'];
32
+ [ComponentType.FILE]: FileComponentData['fileComponentDataValue'];
33
+ [ComponentType.GEOLOCATION]: GeolocationComponentData['geolocationComponentDataValue'];
34
+ [ComponentType.NUMBER]: NumberComponentData['numberComponentDataValue'];
35
+ [ComponentType.PERSON]: PersonComponentData['personComponentDataValue'];
36
+ [ComponentType.RELATED_CARD]: RelatedCardComponentData['relatedCardComponentDataValue'];
37
+ [ComponentType.SCHEDULED_AUTOMATION]: ScheduledAutomationComponentData['scheduledAutomationComponentDataValue'];
38
+ [ComponentType.SIGNATURE]: SignatureComponentData['signatureComponentDataValue'];
39
+ [ComponentType.SUBFORM]: SubformComponentData['subformComponentDataValue'];
40
+ [ComponentType.TAG]: TagComponentData['tagComponentDataValue'];
41
+ [ComponentType.TEXT]: TextComponentData['textComponentDataValue'];
42
+ [ComponentType.TIME_TRACKER]: TimeTrackerComponentData['timeTrackerComponentDataValue'];
43
+ [ComponentType.TODO]: TodoComponentData['todoComponentDataValue'];
44
+ [ComponentType.URL]: UrlComponentData['urlComponentDataValue'];
45
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const ComponentType_1 = require("@coast/core-types/workflow-template/components/ComponentType");
4
+ //# sourceMappingURL=InputComponentDataValueMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputComponentDataValueMap.js","sourceRoot":"","sources":["../../../../../src/models/workflow-template/components/registry/InputComponentDataValueMap.ts"],"names":[],"mappings":";;AACA,gGAA6F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.272",
3
+ "version": "1.2.276",
4
4
  "description": "Facilitates the generation of core-api-types npm package",
5
5
  "exports": {
6
6
  "./*": {
@@ -23,9 +23,10 @@
23
23
  "author": "Coast Engineering",
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@coast/core-types": "0.0.19",
27
- "@coast/core-utils": "0.0.6",
26
+ "@coast/core-types": "0.0.23",
27
+ "@coast/core-utils": "0.0.8",
28
28
  "@coast/schemas": "^4.0.0",
29
+ "@coast/service-common": "^2.0.69",
29
30
  "@paradoxical-io/types": "^2.1.0",
30
31
  "@types/json-schema": "^7.0.15",
31
32
  "json-schema": "^0.4.0",