@timeax/digital-service-engine 0.2.7 → 0.2.8

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.
@@ -634,7 +634,19 @@ type SharedDiagnostic = {
634
634
  message: string;
635
635
  simulationAnchor?: SimulationAnchor;
636
636
  invalidFieldIds: string[];
637
+ affectedIds: string[];
638
+ affectedServiceIds?: string[];
637
639
  };
640
+ type TriggerEffects = {
641
+ includes: Set<string>;
642
+ excludes: Set<string>;
643
+ };
644
+ type TriggerEffectMap = Map<string, TriggerEffects>;
645
+ declare function buildTriggerEffectMap(props: ServiceProps): TriggerEffectMap;
646
+ declare function isRefExcludedBySelectedKeys(ref: {
647
+ fieldId?: string;
648
+ nodeId: string;
649
+ }, selectedKeys: readonly string[], effectMap: TriggerEffectMap): boolean;
638
650
  type RateCoherenceDiagnostic = (SharedDiagnostic & {
639
651
  kind: "contextual";
640
652
  primary: {
@@ -850,4 +862,4 @@ interface FallbackEditor {
850
862
  }
851
863
  declare function createFallbackEditor(options?: FallbackEditorOptions): FallbackEditor;
852
864
 
853
- export { type AncestryHit, type AnyNode, type Builder, type BuilderOptions, type FailedFallbackContext, type FallbackEditor, type FieldNode, type FilterServicesForVisibleGroupInput, type FilterServicesForVisibleGroupResult, type NodeIndex, type NodeKind, type NormaliseOptions, type OptionNode, type RateCoherenceDiagnostic, type RelKind, type ServiceCheck, type TagNode, type UnknownNode, type WithAncestry, buildOrderSnapshot, collectFailedFallbacks, createBuilder, createFallbackEditor, createNodeIndex, filterServicesForVisibleGroup, getAssignedServiceIds, getEligibleFallbacks, getFallbackRegistrationInfo, normalise, normalizeFieldValidation, resolveServiceFallback, validate, validateAsync, validateRateCoherenceDeep };
865
+ export { type AncestryHit, type AnyNode, type Builder, type BuilderOptions, type FailedFallbackContext, type FallbackEditor, type FieldNode, type FilterServicesForVisibleGroupInput, type FilterServicesForVisibleGroupResult, type NodeIndex, type NodeKind, type NormaliseOptions, type OptionNode, type RateCoherenceDiagnostic, type RelKind, type ServiceCheck, type TagNode, type TriggerEffectMap, type TriggerEffects, type UnknownNode, type WithAncestry, buildOrderSnapshot, buildTriggerEffectMap, collectFailedFallbacks, createBuilder, createFallbackEditor, createNodeIndex, filterServicesForVisibleGroup, getAssignedServiceIds, getEligibleFallbacks, getFallbackRegistrationInfo, isRefExcludedBySelectedKeys, normalise, normalizeFieldValidation, resolveServiceFallback, validate, validateAsync, validateRateCoherenceDeep };
@@ -634,7 +634,19 @@ type SharedDiagnostic = {
634
634
  message: string;
635
635
  simulationAnchor?: SimulationAnchor;
636
636
  invalidFieldIds: string[];
637
+ affectedIds: string[];
638
+ affectedServiceIds?: string[];
637
639
  };
640
+ type TriggerEffects = {
641
+ includes: Set<string>;
642
+ excludes: Set<string>;
643
+ };
644
+ type TriggerEffectMap = Map<string, TriggerEffects>;
645
+ declare function buildTriggerEffectMap(props: ServiceProps): TriggerEffectMap;
646
+ declare function isRefExcludedBySelectedKeys(ref: {
647
+ fieldId?: string;
648
+ nodeId: string;
649
+ }, selectedKeys: readonly string[], effectMap: TriggerEffectMap): boolean;
638
650
  type RateCoherenceDiagnostic = (SharedDiagnostic & {
639
651
  kind: "contextual";
640
652
  primary: {
@@ -850,4 +862,4 @@ interface FallbackEditor {
850
862
  }
851
863
  declare function createFallbackEditor(options?: FallbackEditorOptions): FallbackEditor;
852
864
 
853
- export { type AncestryHit, type AnyNode, type Builder, type BuilderOptions, type FailedFallbackContext, type FallbackEditor, type FieldNode, type FilterServicesForVisibleGroupInput, type FilterServicesForVisibleGroupResult, type NodeIndex, type NodeKind, type NormaliseOptions, type OptionNode, type RateCoherenceDiagnostic, type RelKind, type ServiceCheck, type TagNode, type UnknownNode, type WithAncestry, buildOrderSnapshot, collectFailedFallbacks, createBuilder, createFallbackEditor, createNodeIndex, filterServicesForVisibleGroup, getAssignedServiceIds, getEligibleFallbacks, getFallbackRegistrationInfo, normalise, normalizeFieldValidation, resolveServiceFallback, validate, validateAsync, validateRateCoherenceDeep };
865
+ export { type AncestryHit, type AnyNode, type Builder, type BuilderOptions, type FailedFallbackContext, type FallbackEditor, type FieldNode, type FilterServicesForVisibleGroupInput, type FilterServicesForVisibleGroupResult, type NodeIndex, type NodeKind, type NormaliseOptions, type OptionNode, type RateCoherenceDiagnostic, type RelKind, type ServiceCheck, type TagNode, type TriggerEffectMap, type TriggerEffects, type UnknownNode, type WithAncestry, buildOrderSnapshot, buildTriggerEffectMap, collectFailedFallbacks, createBuilder, createFallbackEditor, createNodeIndex, filterServicesForVisibleGroup, getAssignedServiceIds, getEligibleFallbacks, getFallbackRegistrationInfo, isRefExcludedBySelectedKeys, normalise, normalizeFieldValidation, resolveServiceFallback, validate, validateAsync, validateRateCoherenceDeep };