@coast/core-api-types 1.2.29 → 1.2.31

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 (54) hide show
  1. package/dist/models/automations/action/settings/ReferencedInAggregate.d.ts +2 -1
  2. package/dist/models/automations/action/settings/SendEmailActionSettings.d.ts +2 -1
  3. package/dist/models/automations/action/settings/SendNotificationActionSettings.d.ts +2 -1
  4. package/dist/models/automations/action/settings/SendPushNotificationActionSettings.d.ts +2 -1
  5. package/dist/models/automations/action/settings/TriggerRelatedCardAutomationActionSettings.d.ts +2 -1
  6. package/dist/models/automations/action/settings/UpdateRelatedCardQuantityActionSettings.d.ts +2 -1
  7. package/dist/models/automations/action/settings/WorkflowEntityActionSettings.d.ts +2 -1
  8. package/dist/models/automations/condition/WorkflowEntityRefComponentOperand.d.ts +2 -1
  9. package/dist/models/card/Card.d.ts +2 -1
  10. package/dist/models/card/CreateNonRecurringCard.d.ts +2 -1
  11. package/dist/models/card/list-cards/ListCards.d.ts +2 -1
  12. package/dist/models/card/summary-card/AbstractListSummaryCard.d.ts +2 -1
  13. package/dist/models/channel/Channel.d.ts +2 -1
  14. package/dist/models/channel/CreateChannel.d.ts +2 -1
  15. package/dist/models/channel/ListChannels.d.ts +5 -1
  16. package/dist/models/dashboard/EntityWidget.d.ts +2 -1
  17. package/dist/models/json-relations/workflow-template/WorkflowTemplateFieldLink.d.ts +3 -2
  18. package/dist/models/reporting/CreateReport.d.ts +2 -1
  19. package/dist/models/reporting/ListReports.d.ts +2 -1
  20. package/dist/models/reporting/Report.d.ts +2 -1
  21. package/dist/models/reporting/UpdateReport.d.ts +2 -1
  22. package/dist/models/workflow-automation/CreateWorkflowAutomationEvent.d.ts +2 -1
  23. package/dist/models/workflow-automation/CreateWorkflowTemplateAutomationAssociation.d.ts +2 -1
  24. package/dist/models/workflow-automation/ListWorkflowTemplateAutomations.d.ts +2 -1
  25. package/dist/models/workflow-automation/WorkflowAutomationsEvent.d.ts +2 -1
  26. package/dist/models/workflow-automation/WorkflowTemplateAutomationAssociation.d.ts +2 -1
  27. package/dist/models/workflow-entity/entity-mapping/EntityMapping.d.ts +2 -1
  28. package/dist/models/workflow-library/CreateWorkflowListItemAssociation.d.ts +2 -1
  29. package/dist/models/workflow-template/ListWorkflowTemplates.d.ts +2 -1
  30. package/dist/models/workflow-template/UpdateWorkflowTemplate.d.ts +2 -1
  31. package/dist/models/workflow-template/WorkflowTemplate.d.ts +3 -2
  32. package/dist/models/workflow-template/component-subscription/ComponentSubscription.d.ts +2 -1
  33. package/dist/models/workflow-template/component-subscription/ComponentSubscriptionEvents.d.ts +2 -1
  34. package/dist/models/workflow-template/components/referenced-in/ReferencedInComponent.d.ts +2 -1
  35. package/dist/models/workflow-template/components/related-card/RelatedCardComponent.d.ts +2 -1
  36. package/dist/models/workflow-template/components/related-card-lookup/RelatedCardLookupComponent.d.ts +2 -1
  37. package/dist/models/workflow-template/components/subform/SubformComponentDataValue.d.ts +2 -1
  38. package/dist/models/workflow-template/components/subform/SubformDefault.d.ts +2 -1
  39. package/dist/models/workflow-template/entities/AggregateRelatedCardQuantity.d.ts +2 -1
  40. package/dist/models/workflow-template/entities/CreateWorkflowEntities.d.ts +2 -1
  41. package/dist/models/workflow-template/entities/DeleteWorkflowEntities.d.ts +2 -1
  42. package/dist/models/workflow-template/entities/GetWorkflowEntities.d.ts +2 -1
  43. package/dist/models/workflow-template/entities/ListWorkflowEntities.d.ts +2 -1
  44. package/dist/models/workflow-template/entities/UpdateWorkflowEntities.d.ts +2 -1
  45. package/dist/models/workflow-template/entities/WorkflowEntity.d.ts +2 -1
  46. package/dist/models/workflow-template/entities/audit-trail/EntityAuditTrailEvent.d.ts +2 -1
  47. package/dist/models/workflow-template/entities/recurring/GetRecurringEntitiesSchedule.d.ts +2 -1
  48. package/dist/models/workflow-template/entities/recurring/RecurringEntitiesSchedule.d.ts +2 -1
  49. package/dist/models/workflow-template/entities/recurring/UpdateRecurringEntities.d.ts +2 -1
  50. package/dist/models/workflow-template/entities/scheduled-automation/EntityScheduledAutomationTrigger.d.ts +2 -1
  51. package/dist/models/workflow-template/view-template/UpdateViewTemplate.d.ts +2 -1
  52. package/dist/models/workflow-template/view-template/ViewTemplate.d.ts +2 -1
  53. package/dist/models/workflow-tier/CreateWorkflowTierAssociation.d.ts +2 -1
  54. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  import { FilterByComponent } from '../../../workflow-template/entities/filters/FilterByComponent';
2
+ import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
2
3
  export interface ReferencedInAggregate {
3
4
  componentId: string;
4
5
  filterByComponents?: FilterByComponent[];
5
6
  inverted?: boolean;
6
- workflowTemplateId: string;
7
+ workflowTemplateId: WorkflowTemplateId;
7
8
  }
@@ -1,3 +1,4 @@
1
+ import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
1
2
  import { AutomationActionSettings } from './AutomationActionSettings';
2
3
  export interface SendEmailActionSettings extends AutomationActionSettings {
3
4
  message: string;
@@ -5,5 +6,5 @@ export interface SendEmailActionSettings extends AutomationActionSettings {
5
6
  recipientsFromEmailComponentIds?: string[];
6
7
  replyTo?: string;
7
8
  subject: string;
8
- workflowTemplateId: string;
9
+ workflowTemplateId: WorkflowTemplateId;
9
10
  }
@@ -1,3 +1,4 @@
1
+ import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
1
2
  import { AutomationActionSettings } from './AutomationActionSettings';
2
3
  export interface SendNotificationActionSettings extends AutomationActionSettings {
3
4
  message: string;
@@ -5,5 +6,5 @@ export interface SendNotificationActionSettings extends AutomationActionSettings
5
6
  recipientsFromEmailComponentIds?: string[];
6
7
  replyTo?: string;
7
8
  subject: string;
8
- workflowTemplateId: string;
9
+ workflowTemplateId: WorkflowTemplateId;
9
10
  }
@@ -1,9 +1,10 @@
1
1
  import { UserId } from '../../../user/UserId';
2
+ import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
2
3
  import { AutomationActionSettings } from './AutomationActionSettings';
3
4
  export interface SendPushNotificationActionSettings extends AutomationActionSettings {
4
5
  message: string;
5
6
  recipientsFromPersonComponentIds?: string[];
6
7
  recipientUserIds?: UserId[];
7
8
  title: string;
8
- workflowTemplateId: string;
9
+ workflowTemplateId: WorkflowTemplateId;
9
10
  }
@@ -1,6 +1,7 @@
1
+ import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
1
2
  import { AutomationActionSettings } from './AutomationActionSettings';
2
3
  export interface TriggerRelatedCardAutomationActionSettings extends AutomationActionSettings {
3
4
  automationId: string;
4
5
  relatedCardComponentId: string;
5
- workflowTemplateId: string;
6
+ workflowTemplateId: WorkflowTemplateId;
6
7
  }
@@ -1,9 +1,10 @@
1
1
  import { ComponentDataRegistry } from '../../../workflow-template/components/ComponentDataRegistry';
2
+ import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
2
3
  import { DynamicComponentDataRegistry } from '../component-data/DynamicComponentDataRegistry';
3
4
  import { AutomationActionSettings } from './AutomationActionSettings';
4
5
  export interface UpdateRelatedCardQuantityActionSettings extends AutomationActionSettings {
5
6
  dynamicData?: DynamicComponentDataRegistry.AnyNumber;
6
7
  relatedCardComponentId: string;
7
8
  staticData?: ComponentDataRegistry.Any;
8
- workflowTemplateId: string;
9
+ workflowTemplateId: WorkflowTemplateId;
9
10
  }
@@ -1,6 +1,7 @@
1
+ import { WorkflowTemplateId } from '../../../workflow-template/WorkflowTemplateId';
1
2
  import { AutomationActionSettings } from './AutomationActionSettings';
2
3
  import { SettingsWorkflowEntityField } from './SettingsWorkflowEntityField';
3
4
  export interface WorkflowEntityActionSettings extends AutomationActionSettings {
4
5
  fields: SettingsWorkflowEntityField[];
5
- workflowTemplateId: string;
6
+ workflowTemplateId: WorkflowTemplateId;
6
7
  }
@@ -1,6 +1,7 @@
1
+ import { WorkflowTemplateId } from '../../workflow-template/WorkflowTemplateId';
1
2
  import { Operand } from './Operand';
2
3
  export interface WorkflowEntityRefComponentOperand extends Operand {
3
4
  componentId: string;
4
5
  refComponentId: string;
5
- refWorkflowTemplateId: string;
6
+ refWorkflowTemplateId: WorkflowTemplateId;
6
7
  }
@@ -6,6 +6,7 @@ import { User } from '../user/User';
6
6
  import { UserId } from '../user/UserId';
7
7
  import { ImpliedSortKeys } from '../workflow-template/entities/sort/ImpliedSortKeys';
8
8
  import { WorkflowEntity } from '../workflow-template/entities/WorkflowEntity';
9
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
9
10
  import { CardFieldStringTag } from './card-field-string-tag/CardFieldStringTag';
10
11
  import { CardReminder } from './card-reminder/CardReminder';
11
12
  import { CardFields } from './CardFields';
@@ -38,5 +39,5 @@ export interface Card extends DataEntity, Indexable, PlanLimitEntity, WorkflowEn
38
39
  timezone?: string;
39
40
  urgent: boolean;
40
41
  userId: UserId;
41
- workflowTemplateId?: string;
42
+ workflowTemplateId?: WorkflowTemplateId;
42
43
  }
@@ -1,6 +1,7 @@
1
1
  import { UserId } from '../user/UserId';
2
2
  import { DeepPartial } from '../utils/DeepPartial';
3
3
  import { ImpliedSortKeys } from '../workflow-template/entities/sort/ImpliedSortKeys';
4
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
4
5
  import { Card } from './Card';
5
6
  import { CreateCardReminder } from './card-reminder/CreateCardReminder';
6
7
  import { CardFields } from './CardFields';
@@ -19,5 +20,5 @@ export interface CreateNonRecurringCard extends DeepPartial<Card> {
19
20
  timezone?: string;
20
21
  urgent: boolean;
21
22
  userId?: UserId;
22
- workflowTemplateId?: string;
23
+ workflowTemplateId?: WorkflowTemplateId;
23
24
  }
@@ -1,5 +1,6 @@
1
1
  import { OffsetPaginatedRequest } from '../../pagination/OffsetPaginatedRequest';
2
2
  import { UserId } from '../../user/UserId';
3
+ import { WorkflowTemplateId } from '../../workflow-template/WorkflowTemplateId';
3
4
  import { CardStatus } from '../CardStatus';
4
5
  import { CardRelationFilter } from './CardRelationFilter';
5
6
  import { CardTagFilter } from './CardTagFilter';
@@ -18,5 +19,5 @@ export interface ListCards extends OffsetPaginatedRequest {
18
19
  startDateBefore?: Date;
19
20
  statuses?: CardStatus[];
20
21
  tagFilters?: CardTagFilter[];
21
- workflowTemplateId?: string;
22
+ workflowTemplateId?: WorkflowTemplateId;
22
23
  }
@@ -1,6 +1,7 @@
1
1
  import { OffsetPaginatedRequest } from '../../pagination/OffsetPaginatedRequest';
2
+ import { WorkflowTemplateId } from '../../workflow-template/WorkflowTemplateId';
2
3
  export interface AbstractListSummaryCards extends OffsetPaginatedRequest {
3
4
  channelId?: number;
4
5
  nameQuery?: string;
5
- workflowTemplateId?: string;
6
+ workflowTemplateId?: WorkflowTemplateId;
6
7
  }
@@ -3,6 +3,7 @@ import { ChannelMembership } from '../auth/ChannelMembership';
3
3
  import { BusinessId } from '../business/BusinessId';
4
4
  import { CardDefinition } from '../card/card-definition/CardDefinition';
5
5
  import { WorkspaceFocus } from '../card/WorkspaceFocus';
6
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
6
7
  import { ChannelType } from './ChannelType';
7
8
  import { RelatedChannelAssociation } from './RelatedChannelAssociation';
8
9
  export interface Channel extends Audit {
@@ -32,5 +33,5 @@ export interface Channel extends Audit {
32
33
  updatedBy: number;
33
34
  urlLink: string;
34
35
  visible?: boolean;
35
- workflowTemplateId?: string;
36
+ workflowTemplateId?: WorkflowTemplateId;
36
37
  }
@@ -1,5 +1,6 @@
1
1
  import { BusinessId } from '../business/BusinessId';
2
2
  import { WorkspaceFocus } from '../card/WorkspaceFocus';
3
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
3
4
  import { Channel } from './Channel';
4
5
  import { ChannelType } from './ChannelType';
5
6
  import { CreateChannelChannelMembership } from './CreateChannelChannelMembership';
@@ -16,5 +17,5 @@ export interface CreateChannel extends Partial<Omit<Channel, 'channelMemberships
16
17
  slug?: string;
17
18
  type: ChannelType;
18
19
  visible?: boolean;
19
- workflowTemplateId?: string;
20
+ workflowTemplateId?: WorkflowTemplateId;
20
21
  }
@@ -1,9 +1,13 @@
1
1
  import { BusinessId } from '../business/BusinessId';
2
+ import { UserId } from '../user/UserId';
3
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
2
4
  import { ChannelType } from './ChannelType';
3
5
  export interface ListChannels {
4
6
  autoAddUsers?: boolean;
5
7
  businessId?: BusinessId;
6
8
  ids?: number[];
9
+ memberIds?: UserId[];
10
+ strictMemberIds?: boolean;
7
11
  type?: ChannelType;
8
- workflowTemplateId?: string;
12
+ workflowTemplateId?: WorkflowTemplateId;
9
13
  }
@@ -1,3 +1,4 @@
1
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
1
2
  import { Dashboard } from './Dashboard';
2
3
  export interface EntityWidget {
3
4
  channelId: number;
@@ -6,5 +7,5 @@ export interface EntityWidget {
6
7
  name: string;
7
8
  sortOrder?: number;
8
9
  viewTemplateId: string;
9
- workflowTemplateId: string;
10
+ workflowTemplateId: WorkflowTemplateId;
10
11
  }
@@ -1,8 +1,9 @@
1
1
  import { Audit } from '../../application/Audit';
2
+ import { WorkflowTemplateId } from '../../workflow-template/WorkflowTemplateId';
2
3
  import { LinkComponentType } from './LinkComponentType';
3
4
  export interface WorkflowTemplateFieldLink extends Audit {
4
5
  componentId: string;
5
6
  componentType: LinkComponentType;
6
- linkedWorkflowTemplateId: string;
7
- workflowTemplateId: string;
7
+ linkedWorkflowTemplateId: WorkflowTemplateId;
8
+ workflowTemplateId: WorkflowTemplateId;
8
9
  }
@@ -1,7 +1,8 @@
1
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
1
2
  import { Report } from './Report';
2
3
  export interface CreateReport extends Partial<Report> {
3
4
  cardDefinitionId?: string;
4
5
  metabaseEmbedPath: string;
5
6
  name: string;
6
- workflowTemplateId?: string;
7
+ workflowTemplateId?: WorkflowTemplateId;
7
8
  }
@@ -1,4 +1,5 @@
1
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
1
2
  export interface ListReports {
2
3
  cardDefinitionId?: string;
3
- workflowTemplateId?: string;
4
+ workflowTemplateId?: WorkflowTemplateId;
4
5
  }
@@ -1,9 +1,10 @@
1
1
  import { Audit } from '../application/Audit';
2
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
2
3
  export interface Report extends Audit {
3
4
  EMBED_PATH_FORMAT: RegExp;
4
5
  cardDefinitionId?: string;
5
6
  id: string;
6
7
  metabaseEmbedPath: string;
7
8
  name: string;
8
- workflowTemplateId?: string;
9
+ workflowTemplateId?: WorkflowTemplateId;
9
10
  }
@@ -1,8 +1,9 @@
1
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
1
2
  import { Report } from './Report';
2
3
  export interface UpdateReport extends Partial<Report> {
3
4
  cardDefinitionId?: string;
4
5
  id: string;
5
6
  metabaseEmbedPath?: string;
6
7
  name?: string;
7
- workflowTemplateId?: string;
8
+ workflowTemplateId?: WorkflowTemplateId;
8
9
  }
@@ -1,7 +1,8 @@
1
1
  import { AutomationEventContext } from '../automations/AutomationEventContext';
2
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
2
3
  export interface CreateWorkflowAutomationEvent {
3
4
  automationId: string;
4
5
  context?: AutomationEventContext;
5
6
  workflowEntityId: string;
6
- workflowTemplateId: string;
7
+ workflowTemplateId: WorkflowTemplateId;
7
8
  }
@@ -1,6 +1,7 @@
1
1
  import { DeepPartial } from '../utils/DeepPartial';
2
2
  import { WorkflowTemplateAutomationAssociation } from '../workflow-automation/WorkflowTemplateAutomationAssociation';
3
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
3
4
  export interface CreateWorkflowTemplateAutomationAssociation extends DeepPartial<WorkflowTemplateAutomationAssociation> {
4
5
  automationId: string;
5
- workflowTemplateId: string;
6
+ workflowTemplateId: WorkflowTemplateId;
6
7
  }
@@ -1,7 +1,8 @@
1
1
  import { AutomationTriggerType } from '../automations/AutomationTriggerType';
2
2
  import { OffsetPaginatedRequest } from '../pagination/OffsetPaginatedRequest';
3
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
3
4
  export interface ListWorkflowTemplateAutomations extends OffsetPaginatedRequest {
4
5
  name?: string;
5
6
  trigger?: AutomationTriggerType;
6
- workflowTemplateId: string;
7
+ workflowTemplateId: WorkflowTemplateId;
7
8
  }
@@ -1,8 +1,9 @@
1
1
  import { Automation } from '../automations/Automation';
2
2
  import { AutomationEventContext } from '../automations/AutomationEventContext';
3
3
  import { WorkflowEntity } from '../workflow-template/entities/WorkflowEntity';
4
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
4
5
  export interface WorkflowAutomationsEvent {
5
- workflowTemplateId: string;
6
+ workflowTemplateId: WorkflowTemplateId;
6
7
  automations: Automation[];
7
8
  eventContext: AutomationEventContext;
8
9
  previousWorkflowEntity?: Partial<WorkflowEntity>;
@@ -1,4 +1,5 @@
1
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
1
2
  export interface WorkflowTemplateAutomationAssociation {
2
3
  automationId: string;
3
- workflowTemplateId: string;
4
+ workflowTemplateId: WorkflowTemplateId;
4
5
  }
@@ -1,6 +1,7 @@
1
1
  import { Audit } from '../../application/Audit';
2
+ import { WorkflowTemplateId } from '../../workflow-template/WorkflowTemplateId';
2
3
  export interface EntityMapping extends Audit {
3
4
  definition: Record<string, string>;
4
5
  id: string;
5
- workflowTemplateId: string;
6
+ workflowTemplateId: WorkflowTemplateId;
6
7
  }
@@ -1,5 +1,6 @@
1
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
1
2
  import { WorkflowListItemAssociation } from './WorkflowListItemAssociation';
2
3
  export interface CreateWorkflowListItemAssociation extends Pick<WorkflowListItemAssociation, 'sortOrder'> {
3
4
  cardDefinitionId?: string;
4
- workflowTemplateId?: string;
5
+ workflowTemplateId?: WorkflowTemplateId;
5
6
  }
@@ -1,12 +1,13 @@
1
1
  import { BusinessId } from '../business/BusinessId';
2
2
  import { OffsetPaginatedRequest } from '../pagination/OffsetPaginatedRequest';
3
3
  import { ListWorkflowTemplateSort } from './ListWorkflowTemplateSort';
4
+ import { WorkflowTemplateId } from './WorkflowTemplateId';
4
5
  export interface ListWorkflowTemplates extends OffsetPaginatedRequest {
5
6
  businessId?: BusinessId;
6
7
  ids?: string[];
7
8
  isPublic: boolean;
8
9
  isSubform?: boolean;
9
10
  name?: string;
10
- relatesToWorkflowTemplateId?: string;
11
+ relatesToWorkflowTemplateId?: WorkflowTemplateId;
11
12
  sort?: ListWorkflowTemplateSort;
12
13
  }
@@ -1,6 +1,7 @@
1
1
  import { UpdateChannelDefaultConfiguration } from './channel-default-configuration/UpdateChannelDefaultConfiguration';
2
2
  import { CreateWorkflowTemplate } from './CreateWorkflowTemplate';
3
+ import { WorkflowTemplateId } from './WorkflowTemplateId';
3
4
  export interface UpdateWorkflowTemplate extends Partial<Omit<CreateWorkflowTemplate, 'isSubform' | 'isPublic'>> {
4
5
  channelDefaultConfiguration?: UpdateChannelDefaultConfiguration;
5
- id: string;
6
+ id: WorkflowTemplateId;
6
7
  }
@@ -7,6 +7,7 @@ import { WorkflowTemplateBehavior } from './behaviors/WorkflowTemplateBehavior';
7
7
  import { ChannelDefaultConfiguration } from './channel-default-configuration/ChannelDefaultConfiguration';
8
8
  import { ComponentRegistry } from './components/ComponentRegistry';
9
9
  import { ViewTemplate } from './view-template/ViewTemplate';
10
+ import { WorkflowTemplateId } from './WorkflowTemplateId';
10
11
  import { WorkflowTemplateInstallState } from './WorkflowTemplateInstallState';
11
12
  export interface WorkflowTemplate extends DataEntity, Audit {
12
13
  archivedComponents?: ComponentRegistry.Any[];
@@ -17,13 +18,13 @@ export interface WorkflowTemplate extends DataEntity, Audit {
17
18
  components: ComponentRegistry.Any[];
18
19
  defaultSortComponentId?: string;
19
20
  deletedAt?: Date;
20
- id: string;
21
+ id: WorkflowTemplateId;
21
22
  installState?: WorkflowTemplateInstallState;
22
23
  isAuditTrailEnabled?: boolean;
23
24
  isPublic?: boolean;
24
25
  isSubform: boolean;
25
26
  name: string;
26
- parentId?: string;
27
+ parentId?: WorkflowTemplateId;
27
28
  requiresName: boolean;
28
29
  userId: UserId;
29
30
  viewTemplates?: ViewTemplate[];
@@ -1,4 +1,5 @@
1
1
  import { Audit } from '../../application/Audit';
2
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
2
3
  import { ObserverAction } from './ObserverAction';
3
4
  import { SubscriptionType } from './SubscriptionType';
4
5
  export interface ComponentSubscription extends Audit {
@@ -16,6 +17,6 @@ export interface ComponentSubscription extends Audit {
16
17
  subjectDedicatedQuantityComponentId?: string;
17
18
  subjectRelatedCardComponentId?: string;
18
19
  subjectRelatedCardQuantitySubpath?: string;
19
- subjectWorkflowTemplateId: string;
20
+ subjectWorkflowTemplateId: WorkflowTemplateId;
20
21
  type: SubscriptionType;
21
22
  }
@@ -1,7 +1,8 @@
1
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
1
2
  import { ComponentSubscriptionEvent } from './ComponentSubscriptionEvent';
2
3
  export interface ComponentSubscriptionEvents {
3
4
  context: {
4
- workflowTemplateId: string;
5
+ workflowTemplateId: WorkflowTemplateId;
5
6
  originalData: Record<string, unknown>;
6
7
  };
7
8
  events: ComponentSubscriptionEvent[];
@@ -1,8 +1,9 @@
1
1
  import { ViewTemplateId } from '../../../workflow-template/view-template/ViewTemplateId';
2
+ import { WorkflowTemplateId } from '../../WorkflowTemplateId';
2
3
  import { Component } from '../Component';
3
4
  export interface ReferencedInComponent extends Component {
4
5
  label?: string;
5
- referencedFromWorkflowTemplateId: string;
6
+ referencedFromWorkflowTemplateId: WorkflowTemplateId;
6
7
  referencingViewTemplateId?: ViewTemplateId;
7
8
  relatedCardComponentId: string;
8
9
  }
@@ -1,3 +1,4 @@
1
+ import { WorkflowTemplateId } from '../../WorkflowTemplateId';
1
2
  import { Defaultable } from '../Defaultable';
2
3
  import { InputComponent } from '../InputComponent';
3
4
  import { ListWorkflowEntitiesDefault } from './ListWorkflowEntitiesDefault';
@@ -7,5 +8,5 @@ export interface RelatedCardComponent extends Defaultable<RelatedCardDefault>, I
7
8
  hasQuantity?: boolean;
8
9
  limit?: number;
9
10
  listDefault?: ListWorkflowEntitiesDefault;
10
- workflowTemplateId?: string;
11
+ workflowTemplateId?: WorkflowTemplateId;
11
12
  }
@@ -1,7 +1,8 @@
1
+ import { WorkflowTemplateId } from '../../WorkflowTemplateId';
1
2
  import { InputComponent } from '../InputComponent';
2
3
  export interface RelatedCardLookupComponent extends InputComponent {
3
4
  lookupComponentId: string;
4
- lookupWorkflowTemplateId: string;
5
+ lookupWorkflowTemplateId: WorkflowTemplateId;
5
6
  readonly?: boolean;
6
7
  relatedCardComponentId: string;
7
8
  }
@@ -1,4 +1,5 @@
1
+ import { WorkflowTemplateId } from '../../WorkflowTemplateId';
1
2
  export interface SubformComponentDataValue {
2
3
  data?: Record<string, unknown>;
3
- workflowTemplateId: string;
4
+ workflowTemplateId: WorkflowTemplateId;
4
5
  }
@@ -1,3 +1,4 @@
1
+ import { WorkflowTemplateId } from '../../WorkflowTemplateId';
1
2
  export interface SubformDefault {
2
- workflowTemplateId: string;
3
+ workflowTemplateId: WorkflowTemplateId;
3
4
  }
@@ -1,7 +1,8 @@
1
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
1
2
  import { FilterByComponent } from './filters/FilterByComponent';
2
3
  export interface AggregateRelatedCardQuantity {
3
4
  filterByComponents?: FilterByComponent[];
4
5
  relatedCardComponentId: string;
5
6
  relatedCardIds: string[];
6
- workflowTemplateId: string;
7
+ workflowTemplateId: WorkflowTemplateId;
7
8
  }
@@ -1,5 +1,6 @@
1
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
1
2
  import { CreateWorkflowEntity } from './CreateWorkflowEntity';
2
3
  export interface CreateWorkflowEntities {
3
4
  entities: CreateWorkflowEntity[];
4
- workflowTemplateId: string;
5
+ workflowTemplateId: WorkflowTemplateId;
5
6
  }
@@ -1,4 +1,5 @@
1
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
1
2
  export interface DeleteWorkflowEntities {
2
3
  ids: string[];
3
- workflowTemplateId: string;
4
+ workflowTemplateId: WorkflowTemplateId;
4
5
  }
@@ -1,4 +1,5 @@
1
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
1
2
  export interface GetWorkflowEntities {
2
3
  ids: string[];
3
- workflowTemplateId: string;
4
+ workflowTemplateId: WorkflowTemplateId;
4
5
  }
@@ -1,6 +1,7 @@
1
1
  import { ViewTemplateId } from '../view-template/ViewTemplateId';
2
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
2
3
  import { AbstractListWorkflowEntities } from './AbstractListWorkflowEntities';
3
4
  export interface ListWorkflowEntities extends AbstractListWorkflowEntities {
4
5
  viewTemplateId?: ViewTemplateId;
5
- workflowTemplateId: string;
6
+ workflowTemplateId: WorkflowTemplateId;
6
7
  }
@@ -1,5 +1,6 @@
1
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
1
2
  import { UpdateWorkflowEntity } from './UpdateWorkflowEntity';
2
3
  export interface UpdateWorkflowEntities {
3
4
  entities: UpdateWorkflowEntity[];
4
- workflowTemplateId: string;
5
+ workflowTemplateId: WorkflowTemplateId;
5
6
  }
@@ -1,4 +1,5 @@
1
1
  import { Audit } from '../../application/Audit';
2
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
2
3
  import { EntityFields } from './EntityFields';
3
4
  import { ImpliedSortKeys } from './sort/ImpliedSortKeys';
4
5
  export interface WorkflowEntity extends Audit {
@@ -8,5 +9,5 @@ export interface WorkflowEntity extends Audit {
8
9
  id: string;
9
10
  impliedSortKeys?: ImpliedSortKeys;
10
11
  threadId: string;
11
- workflowTemplateId?: string;
12
+ workflowTemplateId?: WorkflowTemplateId;
12
13
  }
@@ -1,4 +1,5 @@
1
1
  import { UserId } from '../../../user/UserId';
2
+ import { WorkflowTemplateId } from '../../WorkflowTemplateId';
2
3
  import { EntityAuditTrailEntry } from './EntityAuditTrailEntry';
3
4
  export interface EntityAuditTrailEvent {
4
5
  cardId: string;
@@ -6,5 +7,5 @@ export interface EntityAuditTrailEvent {
6
7
  id: string;
7
8
  timestamp: Date;
8
9
  userId: UserId;
9
- workflowTemplateId: string;
10
+ workflowTemplateId: WorkflowTemplateId;
10
11
  }
@@ -1,5 +1,6 @@
1
+ import { WorkflowTemplateId } from '../../WorkflowTemplateId';
1
2
  import { RecurringEntitiesScheduleId } from './RecurringEntitiesScheduleId';
2
3
  export interface GetRecurringEntitiesSchedule {
3
4
  id: RecurringEntitiesScheduleId;
4
- workflowTemplateId: string;
5
+ workflowTemplateId: WorkflowTemplateId;
5
6
  }
@@ -1,9 +1,10 @@
1
1
  import { Audit } from '../../../application/Audit';
2
+ import { WorkflowTemplateId } from '../../WorkflowTemplateId';
2
3
  import { RecurringEntitiesScheduleId } from './RecurringEntitiesScheduleId';
3
4
  export interface RecurringEntitiesSchedule extends Audit {
4
5
  dateComponentId: string;
5
6
  id: RecurringEntitiesScheduleId;
6
7
  name: string;
7
8
  rrule: string;
8
- workflowTemplateId: string;
9
+ workflowTemplateId: WorkflowTemplateId;
9
10
  }
@@ -1,8 +1,9 @@
1
+ import { WorkflowTemplateId } from '../../WorkflowTemplateId';
1
2
  import { EntityFields } from '../EntityFields';
2
3
  import { RecurringEntitiesScheduleId } from './RecurringEntitiesScheduleId';
3
4
  export interface UpdateRecurringEntities {
4
5
  entityFields: EntityFields;
5
6
  fromDate?: Date;
6
7
  recurringEntitiesScheduleId: RecurringEntitiesScheduleId;
7
- workflowTemplateId: string;
8
+ workflowTemplateId: WorkflowTemplateId;
8
9
  }
@@ -1,3 +1,4 @@
1
+ import { WorkflowTemplateId } from '../../WorkflowTemplateId';
1
2
  export interface EntityScheduledAutomationTrigger {
2
3
  automationId: string;
3
4
  componentId: string;
@@ -7,5 +8,5 @@ export interface EntityScheduledAutomationTrigger {
7
8
  id: string;
8
9
  mqMessageId: string;
9
10
  scheduledAt: Date;
10
- workflowTemplateId: string;
11
+ workflowTemplateId: WorkflowTemplateId;
11
12
  }
@@ -1,9 +1,10 @@
1
1
  import { CreateComponentViewOptions } from '../components/CreateComponentViewOptions';
2
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
2
3
  import { ViewTemplate } from './ViewTemplate';
3
4
  import { ViewTemplateId } from './ViewTemplateId';
4
5
  export interface UpdateViewTemplate extends Partial<Omit<ViewTemplate, 'id' | 'workflowTemplateId' | 'componentsViewOptions' | 'createdAt' | 'updatedAt' | 'customSortingEnabled'>> {
5
6
  componentsViewOptions?: CreateComponentViewOptions[];
6
7
  customSortingEnabled?: boolean;
7
8
  id: ViewTemplateId;
8
- workflowTemplateId: string;
9
+ workflowTemplateId: WorkflowTemplateId;
9
10
  }
@@ -1,5 +1,6 @@
1
1
  import { Audit } from '../../application/Audit';
2
2
  import { ComponentViewOptions } from '../components/ComponentViewOptions';
3
+ import { WorkflowTemplateId } from '../WorkflowTemplateId';
3
4
  import { CollectionCriteria } from './CollectionCriteria';
4
5
  import { ViewSubtype } from './ViewSubtype';
5
6
  import { ViewTemplateId } from './ViewTemplateId';
@@ -26,5 +27,5 @@ export interface ViewTemplate extends Audit {
26
27
  subtype?: ViewSubtype;
27
28
  summarizeReadonlyTags?: boolean;
28
29
  type: ViewType;
29
- workflowTemplateId: string;
30
+ workflowTemplateId: WorkflowTemplateId;
30
31
  }
@@ -1,4 +1,5 @@
1
+ import { WorkflowTemplateId } from '../workflow-template/WorkflowTemplateId';
1
2
  export interface CreateWorkflowTierAssociation {
2
3
  cardDefinitionId?: string;
3
- workflowTemplateId?: string;
4
+ workflowTemplateId?: WorkflowTemplateId;
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-api-types",
3
- "version": "1.2.29",
3
+ "version": "1.2.31",
4
4
  "description": "core-api types package",
5
5
  "main": "./models",
6
6
  "types": "./models",