@coast/core-api-types 1.2.348 → 1.2.350

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 (38) hide show
  1. package/dist/models/automations/action/component-data/CurrentWorkflowEntityComponent.d.ts +2 -1
  2. package/dist/models/automations/action/settings/CreateSettingsWorkflowEntityField.d.ts +2 -1
  3. package/dist/models/automations/action/settings/ReferencedInAggregate.d.ts +2 -1
  4. package/dist/models/automations/action/settings/SendEmailActionSettings.d.ts +3 -2
  5. package/dist/models/automations/action/settings/SendNotificationActionSettings.d.ts +2 -1
  6. package/dist/models/automations/action/settings/SendPushNotificationActionSettings.d.ts +2 -1
  7. package/dist/models/automations/action/settings/SettingsWorkflowEntityField.d.ts +2 -1
  8. package/dist/models/automations/action/settings/TriggerRelatedCardAutomationActionSettings.d.ts +2 -1
  9. package/dist/models/automations/action/settings/UpdateRelatedCardQuantityActionSettings.d.ts +2 -1
  10. package/dist/models/automations/condition/operands/ComponentOperand.d.ts +2 -1
  11. package/dist/models/automations/condition/operands/PreviousComponentOperand.d.ts +2 -1
  12. package/dist/models/automations/condition/operands/WorkflowEntityRefComponentOperand.d.ts +3 -2
  13. package/dist/models/business/ListBusinessMemberships.d.ts +2 -0
  14. package/dist/models/json-relations/workflow-template/WorkflowTemplateFieldLink.d.ts +2 -1
  15. package/dist/models/view-template/ViewTemplate.d.ts +4 -3
  16. package/dist/models/workflow-entity/AggregateRelatedCardQuantityInput.d.ts +2 -1
  17. package/dist/models/workflow-entity/WorkflowEntityField.d.ts +2 -1
  18. package/dist/models/workflow-entity/audit-trail/ComponentDataChange.d.ts +2 -1
  19. package/dist/models/workflow-entity/audit-trail/EntityAuditTrailEntry.d.ts +2 -1
  20. package/dist/models/workflow-entity/filters/ContainsCurrentWorkflowTemplateComponentValue.d.ts +2 -1
  21. package/dist/models/workflow-entity/filters/DynamicFilterByComponent.d.ts +2 -1
  22. package/dist/models/workflow-entity/filters/FilterOneOfByComponent.d.ts +2 -1
  23. package/dist/models/workflow-entity/recurring/RecurringEntitiesAutoExtendDefault.d.ts +2 -1
  24. package/dist/models/workflow-entity/recurring/RecurringEntitiesSchedule.d.ts +2 -1
  25. package/dist/models/workflow-entity/scheduled-automation/EntityScheduledAutomationTrigger.d.ts +2 -1
  26. package/dist/models/workflow-entity/sort/SortByComponent.d.ts +2 -1
  27. package/dist/models/workflow-template/WorkflowTemplate.d.ts +2 -1
  28. package/dist/models/workflow-template/component-subscription/ComponentSubscription.d.ts +8 -7
  29. package/dist/models/workflow-template/components/Component.d.ts +3 -2
  30. package/dist/models/workflow-template/components/ComponentViewOptions.d.ts +2 -1
  31. package/dist/models/workflow-template/components/button/InputButtonComponent.d.ts +2 -1
  32. package/dist/models/workflow-template/components/date/DateComponent.d.ts +2 -1
  33. package/dist/models/workflow-template/components/date-range/DateRangeComponent.d.ts +3 -2
  34. package/dist/models/workflow-template/components/referenced-in/ReferencedInComponent.d.ts +2 -1
  35. package/dist/models/workflow-template/components/related-card-lookup/RelatedCardLookupComponent.d.ts +3 -2
  36. package/dist/models/workflow-template/components/scheduled-automation/ScheduledAutomationComponent.d.ts +2 -1
  37. package/dist/models/workflow-template/components/tag/CombinedTagsComponent.d.ts +2 -1
  38. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
1
  import { DynamicComponentDataType } from '@coast/core-types/automations/action/component-data/DynamicComponentDataType';
2
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
3
  import { DynamicComponentData } from './DynamicComponentData';
3
4
  export interface CurrentWorkflowEntityComponent extends DynamicComponentData<DynamicComponentDataType.CURRENT_WORKFLOW_ENTITY_COMPONENT> {
4
- componentId: string;
5
+ componentId: ComponentId;
5
6
  }
@@ -1,8 +1,9 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { ComponentDataOneOf } from '../../../workflow-template/components/ComponentDataOneOf';
2
3
  import { DynamicComponentDataOneOf } from '../component-data/DynamicComponentDataOneOf';
3
4
  import { SettingsWorkflowEntityField } from './SettingsWorkflowEntityField';
4
5
  export interface CreateSettingsWorkflowEntityField extends Omit<SettingsWorkflowEntityField, 'dynamicData' | 'staticData'> {
5
- componentId: string;
6
+ componentId: ComponentId;
6
7
  dynamicData?: DynamicComponentDataOneOf;
7
8
  staticData?: ComponentDataOneOf;
8
9
  }
@@ -1,7 +1,8 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
2
3
  import { FilterOneOfByComponent } from '../../../workflow-entity/filters/FilterOneOfByComponent';
3
4
  export interface ReferencedInAggregate {
4
- componentId?: string;
5
+ componentId?: ComponentId;
5
6
  filterByComponents?: FilterOneOfByComponent[];
6
7
  inverted?: boolean;
7
8
  workflowTemplateId?: WorkflowTemplateId;
@@ -1,15 +1,16 @@
1
1
  import { AutomationActionType } from '@coast/core-types/automations/action/AutomationActionType';
2
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
3
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
3
4
  import { AutomationActionSettings } from './AutomationActionSettings';
4
5
  import { RelatedCardEmail } from './RelatedCardEmail';
5
6
  export interface SendEmailActionSettings extends AutomationActionSettings<AutomationActionType.SEND_EMAIL> {
6
7
  message: string;
7
8
  recipientEmails?: string[];
8
- recipientsFromEmailComponentIds?: string[];
9
+ recipientsFromEmailComponentIds?: ComponentId[];
9
10
  replyTo?: string;
10
11
  replyToRelatedCardEmail?: RelatedCardEmail;
11
12
  recipientsFromRelatedCardEmail?: RelatedCardEmail;
12
- replyToCardComponentId?: string;
13
+ replyToCardComponentId?: ComponentId;
13
14
  subject: string;
14
15
  workflowTemplateId?: WorkflowTemplateId;
15
16
  }
@@ -1,10 +1,11 @@
1
1
  import { AutomationActionType } from '@coast/core-types/automations/action/AutomationActionType';
2
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
3
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
3
4
  import { AutomationActionSettings } from './AutomationActionSettings';
4
5
  export interface SendNotificationActionSettings extends AutomationActionSettings<AutomationActionType.SEND_NOTIFICATION> {
5
6
  message: string;
6
7
  recipientEmails?: string[];
7
- recipientsFromEmailComponentIds?: string[];
8
+ recipientsFromEmailComponentIds?: ComponentId[];
8
9
  replyTo?: string;
9
10
  subject: string;
10
11
  workflowTemplateId?: WorkflowTemplateId;
@@ -1,10 +1,11 @@
1
1
  import { AutomationActionType } from '@coast/core-types/automations/action/AutomationActionType';
2
2
  import { UserId } from '@coast/core-types/user/UserId';
3
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
3
4
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
4
5
  import { AutomationActionSettings } from './AutomationActionSettings';
5
6
  export interface SendPushNotificationActionSettings extends AutomationActionSettings<AutomationActionType.SEND_PUSH_NOTIFICATION> {
6
7
  message: string;
7
- recipientsFromPersonComponentIds?: string[];
8
+ recipientsFromPersonComponentIds?: ComponentId[];
8
9
  recipientUserIds?: UserId[];
9
10
  title: string;
10
11
  workflowTemplateId?: WorkflowTemplateId;
@@ -1,9 +1,10 @@
1
1
  import { ArrayValueOperation } from '@coast/core-types/automations/action/settings/ArrayValueOperation';
2
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
3
  import type { AnyComponentData } from '../../../workflow-template/components/data-registry/AnyComponentData';
3
4
  import type { AnyDynamicComponentData } from '../component-data/registry/AnyDynamicComponentData';
4
5
  export interface SettingsWorkflowEntityField {
5
6
  arrayValueOperation?: ArrayValueOperation;
6
- componentId: string;
7
+ componentId: ComponentId;
7
8
  dynamicData?: AnyDynamicComponentData;
8
9
  staticData?: AnyComponentData;
9
10
  }
@@ -1,9 +1,10 @@
1
1
  import { AutomationActionType } from '@coast/core-types/automations/action/AutomationActionType';
2
2
  import { AutomationId } from '@coast/core-types/automations/AutomationId';
3
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
3
4
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
4
5
  import { AutomationActionSettings } from './AutomationActionSettings';
5
6
  export interface TriggerRelatedCardAutomationActionSettings extends AutomationActionSettings<AutomationActionType.TRIGGER_RELATED_CARD_AUTOMATION> {
6
7
  automationId?: AutomationId;
7
- relatedCardComponentId: string;
8
+ relatedCardComponentId: ComponentId;
8
9
  workflowTemplateId?: WorkflowTemplateId;
9
10
  }
@@ -1,11 +1,12 @@
1
1
  import { AutomationActionType } from '@coast/core-types/automations/action/AutomationActionType';
2
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
3
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
3
4
  import type { AnyComponentData } from '../../../workflow-template/components/data-registry/AnyComponentData';
4
5
  import type { AnyDynamicNumberComponentData } from '../component-data/registry/AnyDynamicNumberComponentData';
5
6
  import { AutomationActionSettings } from './AutomationActionSettings';
6
7
  export interface UpdateRelatedCardQuantityActionSettings extends AutomationActionSettings<AutomationActionType.UPDATE_RELATED_CARD_QUANTITY> {
7
8
  dynamicData?: AnyDynamicNumberComponentData;
8
- relatedCardComponentId: string;
9
+ relatedCardComponentId: ComponentId;
9
10
  staticData?: AnyComponentData;
10
11
  workflowTemplateId?: WorkflowTemplateId;
11
12
  }
@@ -1,7 +1,8 @@
1
1
  import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
2
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
3
  import { ScalarKey } from '@coast/core-types/workflow-template/components/scalar/ScalarKey';
3
4
  import { Operand } from './Operand';
4
5
  export interface ComponentOperand extends Operand<OperandType.COMPONENT> {
5
- componentId: string;
6
+ componentId: ComponentId;
6
7
  scalarKey?: ScalarKey;
7
8
  }
@@ -1,5 +1,6 @@
1
1
  import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
2
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
3
  import { Operand } from './Operand';
3
4
  export interface PreviousComponentOperand extends Operand<OperandType.PREVIOUS_COMPONENT> {
4
- componentId: string;
5
+ componentId: ComponentId;
5
6
  }
@@ -1,8 +1,9 @@
1
1
  import { OperandType } from '@coast/core-types/automations/condition/operands/OperandType';
2
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
3
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
3
4
  import { Operand } from './Operand';
4
5
  export interface WorkflowEntityRefComponentOperand extends Operand<OperandType.WORKFLOW_ENTITY_REF_COMPONENT> {
5
- componentId: string;
6
- refComponentId: string;
6
+ componentId: ComponentId;
7
+ refComponentId: ComponentId;
7
8
  refWorkflowTemplateId?: WorkflowTemplateId;
8
9
  }
@@ -1,5 +1,7 @@
1
1
  import { BusinessMembershipRole } from '@coast/core-types/business/BusinessMembershipRole';
2
+ import { UserId } from '@coast/core-types/user/UserId';
2
3
  import { OffsetPaginatedRequest } from '../pagination/OffsetPaginatedRequest';
3
4
  export interface ListBusinessMemberships extends OffsetPaginatedRequest {
4
5
  role?: BusinessMembershipRole;
6
+ userIds?: UserId[];
5
7
  }
@@ -1,8 +1,9 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
2
3
  import type { LinkComponentType } from './LinkComponentType';
3
4
  import { Audit } from '../../application/Audit';
4
5
  export interface WorkflowTemplateFieldLink extends Audit {
5
- componentId: string;
6
+ componentId: ComponentId;
6
7
  componentType: LinkComponentType;
7
8
  linkedWorkflowTemplateId: WorkflowTemplateId;
8
9
  workflowTemplateId: WorkflowTemplateId;
@@ -1,12 +1,13 @@
1
1
  import { ViewSubtype } from '@coast/core-types/view-template/ViewSubtype';
2
2
  import { ViewTemplateId } from '@coast/core-types/view-template/ViewTemplateId';
3
3
  import { ViewType } from '@coast/core-types/view-template/ViewType';
4
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
4
5
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
5
6
  import { Audit } from '../application/Audit';
6
7
  import { ComponentViewOptions } from '../workflow-template/components/ComponentViewOptions';
7
8
  import { CollectionCriteria } from './CollectionCriteria';
8
9
  export interface ViewTemplate extends Audit {
9
- calendarDateComponentId?: string;
10
+ calendarDateComponentId?: ComponentId;
10
11
  calendarHideWeekends?: boolean;
11
12
  collectionCriteria?: CollectionCriteria;
12
13
  componentsViewOptions?: ComponentViewOptions[];
@@ -16,12 +17,12 @@ export interface ViewTemplate extends Audit {
16
17
  defaultReadonlyComponents?: boolean;
17
18
  deletedAt?: Date;
18
19
  displayInCards?: boolean;
19
- checklistTagComponentId?: string;
20
+ checklistTagComponentId?: ComponentId;
20
21
  displayLegacyRecurrence?: boolean;
21
22
  displayLegacyReminders?: boolean;
22
23
  displayLegacyStatusButton?: boolean;
23
24
  displayMessageThread?: boolean;
24
- groupByComponentId?: string;
25
+ groupByComponentId?: ComponentId;
25
26
  id: ViewTemplateId;
26
27
  isPublic?: boolean;
27
28
  name: string;
@@ -1,8 +1,9 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
2
3
  import { FilterOneOfByComponent } from './filters/FilterOneOfByComponent';
3
4
  export interface AggregateRelatedCardQuantityInput {
4
5
  filterByComponents?: FilterOneOfByComponent[];
5
- relatedCardComponentId: string;
6
+ relatedCardComponentId: ComponentId;
6
7
  relatedCardIds: string[];
7
8
  workflowTemplateId: WorkflowTemplateId;
8
9
  }
@@ -1,5 +1,6 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import type { AnyComponentData } from '../workflow-template/components/data-registry/AnyComponentData';
2
3
  export interface WorkflowEntityField {
3
- componentId: string;
4
+ componentId: ComponentId;
4
5
  data: AnyComponentData;
5
6
  }
@@ -1,10 +1,11 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
2
3
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
3
4
  import { ComponentAuditData } from './ComponentAuditData';
4
5
  export interface ComponentDataChange {
5
6
  componentType: ComponentType;
6
7
  workflowTemplateId: WorkflowTemplateId;
7
- componentId: string;
8
+ componentId: ComponentId;
8
9
  newAuditData: ComponentAuditData;
9
10
  originalAuditData: ComponentAuditData;
10
11
  }
@@ -1,9 +1,10 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
2
3
  import type { AnyComponentDataChange } from '../../workflow-template/components/AnyComponentDataChange';
3
4
  import type { TrailData } from './TrailData';
4
5
  import { EntityAuditTrailEvent } from './EntityAuditTrailEvent';
5
6
  export interface EntityAuditTrailEntry {
6
- componentId: string;
7
+ componentId: ComponentId;
7
8
  componentType: ComponentType;
8
9
  event?: EntityAuditTrailEvent;
9
10
  id: string;
@@ -1,3 +1,4 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  export interface ContainsCurrentWorkflowTemplateComponentValue {
2
- componentId: string;
3
+ componentId: ComponentId;
3
4
  }
@@ -1,5 +1,6 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { DynamicFilterOneOf } from './DynamicFilterOneOf';
2
3
  export interface DynamicFilterByComponent {
3
- componentId: string;
4
+ componentId: ComponentId;
4
5
  value: DynamicFilterOneOf;
5
6
  }
@@ -1,5 +1,6 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { FilterOneOf } from './FilterOneOf';
2
3
  export interface FilterOneOfByComponent {
3
- componentId: string;
4
+ componentId: ComponentId;
4
5
  value: FilterOneOf;
5
6
  }
@@ -1,6 +1,7 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { FilterOneOfByComponent } from '../filters/FilterOneOfByComponent';
2
3
  export interface RecurringEntitiesAutoExtendDefault {
3
4
  minimumInSeries: number;
4
- impliedFilterComponentId?: string;
5
+ impliedFilterComponentId?: ComponentId;
5
6
  seriesFilter?: FilterOneOfByComponent[];
6
7
  }
@@ -1,12 +1,13 @@
1
1
  import { RRuleString } from '@coast/core-types/common/RRuleString';
2
2
  import { RecurrenceType } from '@coast/core-types/workflow-entity/recurring/RecurrenceType';
3
3
  import { RecurringEntitiesScheduleId } from '@coast/core-types/workflow-entity/recurring/RecurringEntitiesScheduleId';
4
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
4
5
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
5
6
  import { Audit } from '../../application/Audit';
6
7
  import { RecurrenceOffset } from './RecurrenceOffset';
7
8
  import { RecurringEntitiesExtend } from './RecurringEntitiesExtend';
8
9
  export interface RecurringEntitiesSchedule extends Audit {
9
- dateComponentId: string;
10
+ dateComponentId: ComponentId;
10
11
  id: RecurringEntitiesScheduleId;
11
12
  name: string;
12
13
  rrule?: RRuleString;
@@ -1,8 +1,9 @@
1
1
  import { AutomationId } from '@coast/core-types/automations/AutomationId';
2
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
3
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
3
4
  export interface EntityScheduledAutomationTrigger {
4
5
  automationId: AutomationId;
5
- componentId: string;
6
+ componentId: ComponentId;
6
7
  consumedAt?: Date;
7
8
  createdAt: Date;
8
9
  entityId: string;
@@ -1,5 +1,6 @@
1
1
  import { SortDirection } from '@coast/core-types/common/SortDirection';
2
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
2
3
  export interface SortByComponent {
3
- componentId: string;
4
+ componentId: ComponentId;
4
5
  direction: SortDirection;
5
6
  }
@@ -1,5 +1,6 @@
1
1
  import { BusinessId } from '@coast/core-types/business/BusinessId';
2
2
  import { UserId } from '@coast/core-types/user/UserId';
3
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
3
4
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
4
5
  import { Audit } from '../application/Audit';
5
6
  import { DataEntity } from '../application/DataEntity';
@@ -17,7 +18,7 @@ export interface WorkflowTemplate extends DataEntity, Audit {
17
18
  cardDefinition?: CardDefinition;
18
19
  channelDefaultConfiguration?: ChannelDefaultConfiguration;
19
20
  components: Component[];
20
- defaultSortComponentId?: string;
21
+ defaultSortComponentId?: ComponentId;
21
22
  deletedAt?: Date;
22
23
  id: WorkflowTemplateId;
23
24
  isPublic?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { ObserverAction } from '@coast/core-types/workflow-template/component-subscription/ObserverAction';
2
2
  import { SubscriptionType } from '@coast/core-types/workflow-template/component-subscription/SubscriptionType';
3
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
3
4
  import { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
4
5
  import { Audit } from '../../application/Audit';
5
6
  export interface ComponentSubscription extends Audit {
@@ -7,15 +8,15 @@ export interface ComponentSubscription extends Audit {
7
8
  id: string;
8
9
  observer2Action?: ObserverAction;
9
10
  observerAction: ObserverAction;
10
- observerBaselineComponentId?: string;
11
+ observerBaselineComponentId?: ComponentId;
11
12
  observerComponent2Id?: string;
12
- observerComponentId: string;
13
- observerEmailComponentId?: string;
14
- observerTagConditionalComponentId?: string;
13
+ observerComponentId: ComponentId;
14
+ observerEmailComponentId?: ComponentId;
15
+ observerTagConditionalComponentId?: ComponentId;
15
16
  observerTagConditionalValue?: string;
16
- observerThresholdComponentId?: string;
17
- subjectDedicatedQuantityComponentId?: string;
18
- subjectRelatedCardComponentId?: string;
17
+ observerThresholdComponentId?: ComponentId;
18
+ subjectDedicatedQuantityComponentId?: ComponentId;
19
+ subjectRelatedCardComponentId?: ComponentId;
19
20
  subjectRelatedCardQuantitySubpath?: string;
20
21
  subjectWorkflowTemplateId: WorkflowTemplateId;
21
22
  type: SubscriptionType;
@@ -1,10 +1,11 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
2
3
  export interface Component<T extends ComponentType = ComponentType> {
3
4
  archivedAt?: Date;
4
- id: string;
5
+ id: ComponentId;
5
6
  isHidden?: boolean;
6
7
  isServerManaged?: boolean;
7
8
  locked?: boolean;
8
- managedByComponentId?: string;
9
+ managedByComponentId?: ComponentId;
9
10
  type: T;
10
11
  }
@@ -1,6 +1,7 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import type { AnyComponentOverride } from './overrides-registry/AnyComponentOverride';
2
3
  export interface ComponentViewOptions {
3
- componentId: string;
4
+ componentId: ComponentId;
4
5
  isHidden?: boolean;
5
6
  overrides?: AnyComponentOverride;
6
7
  }
@@ -1,5 +1,6 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
2
3
  import { ButtonComponent } from './ButtonComponent';
3
4
  export interface InputButtonComponent extends ButtonComponent<ComponentType.INPUT_BUTTON> {
4
- inputComponentId: string;
5
+ inputComponentId: ComponentId;
5
6
  }
@@ -1,3 +1,4 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
2
3
  import { RecurringEntitiesAutoExtendDefault } from '../../../workflow-entity/recurring/RecurringEntitiesAutoExtendDefault';
3
4
  import { Defaultable } from '../Defaultable';
@@ -6,6 +7,6 @@ import { DateDefault } from './DateDefault';
6
7
  export interface DateComponent extends Defaultable<DateDefault>, InputComponent<ComponentType.DATE> {
7
8
  allowEntityBatchCreation?: boolean;
8
9
  autoExtendDefault?: RecurringEntitiesAutoExtendDefault;
9
- autoExtendImpliedFilterComponentId?: string;
10
+ autoExtendImpliedFilterComponentId?: ComponentId;
10
11
  default?: DateDefault;
11
12
  }
@@ -1,6 +1,7 @@
1
+ import { ComponentId } from '@coast/core-types/workflow-template/components/ComponentId';
1
2
  import { ComponentType } from '@coast/core-types/workflow-template/components/ComponentType';
2
3
  import { PresentationComponent } from '../PresentationComponent';
3
4
  export interface DateRangeComponent extends PresentationComponent<ComponentType.DATE_RANGE> {
4
- startDateComponentId: string;
5
- endDateComponentId: string;
5
+ startDateComponentId: ComponentId;
6
+ endDateComponentId: ComponentId;
6
7
  }
@@ -1,4 +1,5 @@
1
1
  import { ViewTemplateId } from '@coast/core-types/view-template/ViewTemplateId';
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 { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
4
5
  import { Component } from '../Component';
@@ -6,5 +7,5 @@ export interface ReferencedInComponent extends Component<ComponentType.REFERENCE
6
7
  label?: string;
7
8
  referencedFromWorkflowTemplateId: WorkflowTemplateId;
8
9
  referencingViewTemplateId?: ViewTemplateId;
9
- relatedCardComponentId: string;
10
+ relatedCardComponentId: ComponentId;
10
11
  }
@@ -1,12 +1,13 @@
1
1
  import type { Icon } from '@coast/schemas';
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 { WorkflowTemplateId } from '@coast/core-types/workflow-template/WorkflowTemplateId';
4
5
  import { Component } from '../Component';
5
6
  export interface RelatedCardLookupComponent extends Component<ComponentType.RELATED_CARD_LOOKUP> {
6
- lookupComponentId: string;
7
+ lookupComponentId: ComponentId;
7
8
  lookupWorkflowTemplateId: WorkflowTemplateId;
8
9
  readonly?: boolean;
9
- relatedCardComponentId: string;
10
+ relatedCardComponentId: ComponentId;
10
11
  icon?: Icon;
11
12
  isFilterable?: boolean;
12
13
  isSortable?: boolean;
@@ -1,11 +1,12 @@
1
1
  import { AutomationId } from '@coast/core-types/automations/AutomationId';
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 { Defaultable } from '../Defaultable';
4
5
  import { InputComponent } from '../InputComponent';
5
6
  import { ScheduledAutomationDefault } from './ScheduledAutomationDefault';
6
7
  export interface ScheduledAutomationComponent extends Defaultable<ScheduledAutomationDefault>, InputComponent<ComponentType.SCHEDULED_AUTOMATION> {
7
8
  automationId?: AutomationId;
8
- dateComponentId: string;
9
+ dateComponentId: ComponentId;
9
10
  default?: ScheduledAutomationDefault;
10
11
  scheduleImmediatelyIfInPast?: boolean;
11
12
  }
@@ -1,8 +1,9 @@
1
1
  import type { Icon } from '@coast/schemas';
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 { Component } from '../Component';
4
5
  export interface CombinedTagsComponent extends Component<ComponentType.COMBINED_TAGS> {
5
- componentIds: string[];
6
+ componentIds: ComponentId[];
6
7
  icon?: Icon;
7
8
  label?: string;
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.348",
3
+ "version": "1.2.350",
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.56",
26
+ "@coast/core-types": "0.0.57",
27
27
  "@coast/core-utils": "0.0.22",
28
28
  "@coast/schemas": "^4.0.2",
29
29
  "@coast/service-common": "^2.0.79",