@timeax/digital-service-engine 0.3.1 → 0.3.3

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.
@@ -811,28 +811,21 @@ declare function filterServicesForVisibleGroup(input: FilterServicesForVisibleGr
811
811
  type BuildOrderSnapshotSettings = {
812
812
  mode?: "prod" | "dev";
813
813
  hostDefaultQuantity?: number;
814
- /** Full fallback policy */
815
814
  fallback?: FallbackSettings;
816
815
  workspaceId?: string;
817
816
  builderCommit?: string;
818
817
  };
819
818
  type BuildOrderSelection = {
820
- /** Single active context (one tag) coming from Selection */
821
819
  activeTagId: string;
822
- /** Non-option inputs, keyed by fieldId (will be remapped to field.name in the payload) */
823
820
  formValuesByFieldId: Record<string, Scalar | Scalar[]>;
824
- /** Option selections, keyed by fieldId → optionId[] */
825
821
  optionSelectionsByFieldId: Record<string, string[]>;
826
822
  selectedKeys?: string[];
827
- /**
828
- * Selection visit order for options (optional, improves "first option wins primary" determinism).
829
- * If omitted, iteration order falls back to Object.entries(optionSelectionsByFieldId).
830
- */
831
823
  optionTraversalOrder?: Array<{
832
824
  fieldId: string;
833
825
  optionId: string;
834
826
  }>;
835
827
  };
828
+
836
829
  declare function buildOrderSnapshot(props: ServiceProps, builder: Builder, selection: BuildOrderSelection, services: DgpServiceMap, settings?: BuildOrderSnapshotSettings): OrderSnapshot;
837
830
 
838
831
  /**
@@ -811,28 +811,21 @@ declare function filterServicesForVisibleGroup(input: FilterServicesForVisibleGr
811
811
  type BuildOrderSnapshotSettings = {
812
812
  mode?: "prod" | "dev";
813
813
  hostDefaultQuantity?: number;
814
- /** Full fallback policy */
815
814
  fallback?: FallbackSettings;
816
815
  workspaceId?: string;
817
816
  builderCommit?: string;
818
817
  };
819
818
  type BuildOrderSelection = {
820
- /** Single active context (one tag) coming from Selection */
821
819
  activeTagId: string;
822
- /** Non-option inputs, keyed by fieldId (will be remapped to field.name in the payload) */
823
820
  formValuesByFieldId: Record<string, Scalar | Scalar[]>;
824
- /** Option selections, keyed by fieldId → optionId[] */
825
821
  optionSelectionsByFieldId: Record<string, string[]>;
826
822
  selectedKeys?: string[];
827
- /**
828
- * Selection visit order for options (optional, improves "first option wins primary" determinism).
829
- * If omitted, iteration order falls back to Object.entries(optionSelectionsByFieldId).
830
- */
831
823
  optionTraversalOrder?: Array<{
832
824
  fieldId: string;
833
825
  optionId: string;
834
826
  }>;
835
827
  };
828
+
836
829
  declare function buildOrderSnapshot(props: ServiceProps, builder: Builder, selection: BuildOrderSelection, services: DgpServiceMap, settings?: BuildOrderSnapshotSettings): OrderSnapshot;
837
830
 
838
831
  /**