@coast/core-api-types 1.2.271 → 1.2.273

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.
Files changed (26) hide show
  1. package/dist/models/automations/action/settings/SendWebhookActionSettings.d.ts +1 -1
  2. package/dist/models/workflow-app/DuplicateInput.d.ts +5 -0
  3. package/dist/models/workflow-app/DuplicateInput.js +3 -0
  4. package/dist/models/workflow-app/DuplicateInput.js.map +1 -0
  5. package/dist/models/workflow-app/DuplicateWorkspace.d.ts +6 -0
  6. package/dist/models/workflow-app/DuplicateWorkspace.js.map +1 -0
  7. package/dist/models/workflow-app/DuplicateWorkspaceSection.d.ts +6 -0
  8. package/dist/models/workflow-app/DuplicateWorkspaceSection.js.map +1 -0
  9. package/dist/models/workflow-app/InstallBundle.d.ts +2 -3
  10. package/dist/models/workflow-app/bundle/Bundle.d.ts +1 -0
  11. package/dist/models/workflow-app/bundle/UpdateBundleInput.d.ts +1 -0
  12. package/dist/models/workflow-app/bundle/public-bundle/PublicBundle.d.ts +1 -0
  13. package/dist/models/workflow-template/components/InputComponentType.d.ts +1 -1
  14. package/dist/models/workflow-template/components/InputComponentTypes.d.ts +1 -1
  15. package/dist/models/workflow-template/components/InputComponentTypes.js +0 -1
  16. package/dist/models/workflow-template/components/InputComponentTypes.js.map +1 -1
  17. package/dist/models/workflow-template/components/registry/InputComponentDataValueMap.d.ts +47 -0
  18. package/dist/models/workflow-template/components/registry/InputComponentDataValueMap.js +4 -0
  19. package/dist/models/workflow-template/components/registry/InputComponentDataValueMap.js.map +1 -0
  20. package/package.json +4 -3
  21. package/dist/models/channel/DuplicateWorkspace.d.ts +0 -7
  22. package/dist/models/channel/DuplicateWorkspace.js.map +0 -1
  23. package/dist/models/workspace-section/DuplicateWorkspaceSection.d.ts +0 -7
  24. package/dist/models/workspace-section/DuplicateWorkspaceSection.js.map +0 -1
  25. /package/dist/models/{channel → workflow-app}/DuplicateWorkspace.js +0 -0
  26. /package/dist/models/{workspace-section → workflow-app}/DuplicateWorkspaceSection.js +0 -0
@@ -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;
@@ -0,0 +1,5 @@
1
+ import { CreateChannelChannelMembership } from '../channel/CreateChannelChannelMembership';
2
+ export interface DuplicateInput {
3
+ includeCardData?: boolean;
4
+ channelMemberships?: CreateChannelChannelMembership[];
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DuplicateInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DuplicateInput.js","sourceRoot":"","sources":["../../../src/models/workflow-app/DuplicateInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { WorkspaceId } from '@coast/core-types/channel/WorkspaceId';
2
+ import { DuplicateInput } from './DuplicateInput';
3
+ export interface DuplicateWorkspace extends DuplicateInput {
4
+ id: WorkspaceId;
5
+ name?: string;
6
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DuplicateWorkspace.js","sourceRoot":"","sources":["../../../src/models/workflow-app/DuplicateWorkspace.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { WorkspaceSectionId } from '@coast/core-types/workspace-section/WorkspaceSectionId';
2
+ import { DuplicateInput } from './DuplicateInput';
3
+ export interface DuplicateWorkspaceSection extends DuplicateInput {
4
+ id: WorkspaceSectionId;
5
+ title?: string;
6
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DuplicateWorkspaceSection.js","sourceRoot":"","sources":["../../../src/models/workflow-app/DuplicateWorkspaceSection.ts"],"names":[],"mappings":""}
@@ -1,7 +1,6 @@
1
1
  import { BundleId } from '@coast/core-types/workflow-app/bundle/BundleId';
2
- import { CreateChannelChannelMembership } from '../channel/CreateChannelChannelMembership';
3
- export interface InstallBundle {
2
+ import { DuplicateInput } from './DuplicateInput';
3
+ export interface InstallBundle extends DuplicateInput {
4
4
  bundleId: BundleId;
5
5
  name?: string;
6
- channelMemberships?: CreateChannelChannelMembership[];
7
6
  }
@@ -5,4 +5,5 @@ export interface Bundle extends Audit {
5
5
  id: BundleId;
6
6
  businessId: BusinessId;
7
7
  enabled: boolean;
8
+ includeCardData: boolean;
8
9
  }
@@ -1,3 +1,4 @@
1
1
  export interface UpdateBundleInput {
2
2
  enabled: boolean;
3
+ includeCardData?: boolean;
3
4
  }
@@ -4,6 +4,7 @@ export interface PublicBundle {
4
4
  type: BundleType;
5
5
  id: BundleId;
6
6
  enabled: boolean;
7
+ includeCardData: boolean;
7
8
  name: string;
8
9
  description?: string;
9
10
  }
@@ -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,47 @@
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 { DateRangeComponentData } from '../date-range/DateRangeComponentData';
8
+ import { DateComponentData } from '../date/DateComponentData';
9
+ import { EmailComponentData } from '../email/EmailComponentData';
10
+ import { EntityBatchComponentData } from '../enitty-batch/EntityBatchComponentData';
11
+ import { FileComponentData } from '../file/FileComponentData';
12
+ import { GeolocationComponentData } from '../geo-location/GeolocationComponentData';
13
+ import { InputComponentType } from '../InputComponentType';
14
+ import { NumberComponentData } from '../number/NumberComponentData';
15
+ import { PersonComponentData } from '../person/PersonComponentData';
16
+ import { RelatedCardComponentData } from '../related-card/RelatedCardComponentData';
17
+ import { ScheduledAutomationComponentData } from '../scheduled-automation/ScheduledAutomationComponentData';
18
+ import { SignatureComponentData } from '../signature/SignatureComponentData';
19
+ import { SubformComponentData } from '../subform/SubformComponentData';
20
+ import { TagComponentData } from '../tag/TagComponentData';
21
+ import { TextComponentData } from '../text/TextComponentData';
22
+ import { TimeTrackerComponentData } from '../time-tracker/TimeTrackerComponentData';
23
+ import { TodoComponentData } from '../todo/TodoComponentData';
24
+ import { UrlComponentData } from '../url/UrlComponentData';
25
+ export type InputComponentDataValueMap = Record<InputComponentType, AnyComponentDataValue> & {
26
+ [ComponentType.ADDRESS]: AddressComponentData['addressComponentDataValue'];
27
+ [ComponentType.AUDIT_CHECKBOX]: AuditCheckboxComponentData['auditCheckboxComponentDataValue'];
28
+ [ComponentType.AUDIT_TAG]: AuditTagComponentData['auditTagComponentDataValue'];
29
+ [ComponentType.AUDIT_TEXT]: AuditTextComponentData['auditTextComponentDataValue'];
30
+ [ComponentType.DATE]: DateComponentData['dateComponentDataValue'];
31
+ [ComponentType.DATE_RANGE]: DateRangeComponentData['startDate'];
32
+ [ComponentType.EMAIL]: EmailComponentData['emailComponentDataValue'];
33
+ [ComponentType.ENTITY_BATCH]: EntityBatchComponentData['entityBatchId'];
34
+ [ComponentType.FILE]: FileComponentData['fileComponentDataValue'];
35
+ [ComponentType.GEOLOCATION]: GeolocationComponentData['geolocationComponentDataValue'];
36
+ [ComponentType.NUMBER]: NumberComponentData['numberComponentDataValue'];
37
+ [ComponentType.PERSON]: PersonComponentData['personComponentDataValue'];
38
+ [ComponentType.RELATED_CARD]: RelatedCardComponentData['relatedCardComponentDataValue'];
39
+ [ComponentType.SCHEDULED_AUTOMATION]: ScheduledAutomationComponentData['scheduledAutomationComponentDataValue'];
40
+ [ComponentType.SIGNATURE]: SignatureComponentData['signatureComponentDataValue'];
41
+ [ComponentType.SUBFORM]: SubformComponentData['subformComponentDataValue'];
42
+ [ComponentType.TAG]: TagComponentData['tagComponentDataValue'];
43
+ [ComponentType.TEXT]: TextComponentData['textComponentDataValue'];
44
+ [ComponentType.TIME_TRACKER]: TimeTrackerComponentData['timeTrackerComponentDataValue'];
45
+ [ComponentType.TODO]: TodoComponentData['todoComponentDataValue'];
46
+ [ComponentType.URL]: UrlComponentData['urlComponentDataValue'];
47
+ };
@@ -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.271",
3
+ "version": "1.2.273",
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.17",
27
- "@coast/core-utils": "0.0.6",
26
+ "@coast/core-types": "0.0.22",
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",
@@ -1,7 +0,0 @@
1
- import { WorkspaceId } from '@coast/core-types/channel/WorkspaceId';
2
- import { CreateChannelChannelMembership } from './CreateChannelChannelMembership';
3
- export interface DuplicateWorkspace {
4
- id: WorkspaceId;
5
- name?: string;
6
- channelMemberships?: CreateChannelChannelMembership[];
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"DuplicateWorkspace.js","sourceRoot":"","sources":["../../../src/models/channel/DuplicateWorkspace.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { WorkspaceSectionId } from '@coast/core-types/workspace-section/WorkspaceSectionId';
2
- import { CreateChannelChannelMembership } from '../channel/CreateChannelChannelMembership';
3
- export interface DuplicateWorkspaceSection {
4
- id: WorkspaceSectionId;
5
- title?: string;
6
- channelMemberships?: CreateChannelChannelMembership[];
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"DuplicateWorkspaceSection.js","sourceRoot":"","sources":["../../../src/models/workspace-section/DuplicateWorkspaceSection.ts"],"names":[],"mappings":""}