sku builder first test

This commit is contained in:
2026-03-15 22:17:58 -05:00
parent f2b820746a
commit 2718e8b4b1
15 changed files with 1463 additions and 74 deletions

View File

@@ -10,6 +10,85 @@ export type InventoryUnitOfMeasure = (typeof inventoryUnitsOfMeasure)[number];
export type InventoryTransactionType = (typeof inventoryTransactionTypes)[number];
export type InventoryReservationStatus = (typeof inventoryReservationStatuses)[number];
export interface InventorySkuFamilyDto {
id: string;
code: string;
sequenceCode: string;
name: string;
description: string;
nextSequenceNumber: number;
isActive: boolean;
childNodeCount: number;
itemCount: number;
}
export interface InventorySkuFamilyInput {
code: string;
sequenceCode: string;
name: string;
description: string;
isActive: boolean;
}
export interface InventorySkuNodeDto {
id: string;
familyId: string;
parentNodeId: string | null;
code: string;
label: string;
description: string;
path: string;
level: number;
sortOrder: number;
isActive: boolean;
childCount: number;
}
export interface InventorySkuNodeInput {
familyId: string;
parentNodeId: string | null;
code: string;
label: string;
description: string;
sortOrder: number;
isActive: boolean;
}
export interface InventorySkuCatalogTreeDto {
families: InventorySkuFamilyDto[];
nodes: InventorySkuNodeDto[];
}
export interface InventorySkuBuilderInput {
familyId: string;
nodeId: string | null;
}
export interface InventorySkuNodePathEntryDto {
id: string;
code: string;
label: string;
level: number;
}
export interface InventorySkuBuilderSelectionDto {
familyId: string;
familyCode: string;
familyName: string;
sequenceCode: string;
nodeId: string | null;
nodePath: InventorySkuNodePathEntryDto[];
sequenceNumber: number | null;
generatedSku: string;
segments: string[];
}
export interface InventorySkuBuilderPreviewDto extends InventorySkuBuilderSelectionDto {
nextSequenceNumber: number;
availableLevels: number;
hasChildren: boolean;
}
export interface InventoryBomLineDto {
id: string;
componentItemId: string;
@@ -217,6 +296,7 @@ export interface InventoryItemDetailDto extends InventoryItemSummaryDto {
defaultPrice: number | null;
preferredVendorId: string | null;
preferredVendorName: string | null;
skuBuilder: InventorySkuBuilderSelectionDto | null;
notes: string;
createdAt: string;
bomLines: InventoryBomLineDto[];
@@ -232,6 +312,7 @@ export interface InventoryItemDetailDto extends InventoryItemSummaryDto {
export interface InventoryItemInput {
sku: string;
skuBuilder: InventorySkuBuilderInput | null;
name: string;
description: string;
type: InventoryItemType;