@happyvertical/smrt-manufacturing 0.40.37 → 0.40.38

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.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { TenantScoped, tenantId } from "@happyvertical/smrt-tenancy";
4
4
  import { createStockService } from "@happyvertical/smrt-inventory";
5
5
  import { createLogger } from "@happyvertical/logger";
6
6
  //#region src/__smrt-register__.ts
7
- ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":1785430810611,\"packageName\":\"@happyvertical/smrt-manufacturing\",\"packageVersion\":\"0.40.37\",\"objects\":{\"@happyvertical/smrt-manufacturing:BillOfMaterials\":{\"name\":\"billofmaterials\",\"className\":\"BillOfMaterials\",\"qualifiedName\":\"@happyvertical/smrt-manufacturing:BillOfMaterials\",\"collection\":\"billofmaterialses\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/manufacturing/src/models/BillOfMaterials.ts\",\"packageName\":\"@happyvertical/smrt-manufacturing\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"productId\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"version\":{\"type\":\"integer\",\"required\":true,\"default\":1,\"_meta\":{\"required\":true}},\"effectiveDate\":{\"type\":\"datetime\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":true,\"default\":\"draft\",\"_meta\":{\"required\":true}},\"notes\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"currency\":{\"type\":\"text\",\"required\":false,\"default\":\"USD\"}},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"manufacturing_boms\",\"conflictColumns\":[\"product_id\",\"version\",\"tenant_id\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"mcp\":{\"include\":[\"list\",\"get\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"BillOfMaterials\",\"collectionExportName\":\"BillOfMaterialsCollection\",\"validationRules\":[{\"field\":\"productId\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"version\",\"rule\":\"required\",\"fieldType\":\"integer\"},{\"field\":\"status\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"manufacturing_boms\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"manufacturing_boms\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"product_id\\\" TEXT NOT NULL DEFAULT '',\\n \\\"version\\\" INTEGER NOT NULL DEFAULT 1,\\n \\\"effective_date\\\" TIMESTAMP,\\n \\\"status\\\" TEXT NOT NULL DEFAULT 'draft',\\n \\\"notes\\\" TEXT DEFAULT '',\\n \\\"currency\\\" TEXT DEFAULT 'USD'\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"product_id\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"\"},\"version\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":1},\"effective_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"draft\"},\"notes\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"currency\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"USD\"}},\"indexes\":[{\"name\":\"manufacturing_boms_id_idx\",\"columns\":[\"id\"]},{\"name\":\"manufacturing_boms_product_id_version_idx\",\"columns\":[\"product_id\",\"version\",\"tenant_id\"],\"unique\":true}],\"version\":\"b2691adc\"}},\"@happyvertical/smrt-manufacturing:BomLine\":{\"name\":\"bomline\",\"className\":\"BomLine\",\"qualifiedName\":\"@happyvertical/smrt-manufacturing:BomLine\",\"collection\":\"bomlines\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/manufacturing/src/models/BomLine.ts\",\"packageName\":\"@happyvertical/smrt-manufacturing\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"bomId\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"componentSkuId\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"qtyPerUnit\":{\"type\":\"decimal\",\"required\":false,\"_meta\":{}},\"uom\":{\"type\":\"text\",\"required\":false,\"default\":\"each\"},\"wastePercent\":{\"type\":\"decimal\",\"required\":false,\"_meta\":{}},\"notes\":{\"type\":\"text\",\"required\":false,\"default\":\"\"}},\"methods\":{\"effectiveQtyPerUnit\":{\"name\":\"effectiveQtyPerUnit\",\"async\":false,\"parameters\":[],\"returnType\":\"number\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"manufacturing_bom_lines\",\"conflictColumns\":[\"bom_id\",\"component_sku_id\",\"tenant_id\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"mcp\":{\"include\":[\"list\",\"get\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"BomLine\",\"collectionExportName\":\"BomLineCollection\",\"validationRules\":[{\"field\":\"bomId\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"componentSkuId\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"manufacturing_bom_lines\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"manufacturing_bom_lines\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"bom_id\\\" TEXT NOT NULL DEFAULT '',\\n \\\"component_sku_id\\\" TEXT NOT NULL DEFAULT '',\\n \\\"qty_per_unit\\\" REAL,\\n \\\"uom\\\" TEXT DEFAULT 'each',\\n \\\"waste_percent\\\" REAL,\\n \\\"notes\\\" TEXT DEFAULT ''\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"bom_id\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"\"},\"component_sku_id\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"\"},\"qty_per_unit\":{\"type\":\"REAL\",\"notNull\":false,\"unique\":false},\"uom\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"each\"},\"waste_percent\":{\"type\":\"REAL\",\"notNull\":false,\"unique\":false},\"notes\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"}},\"indexes\":[{\"name\":\"manufacturing_bom_lines_id_idx\",\"columns\":[\"id\"]},{\"name\":\"manufacturing_bom_lines_bom_id_component_sku_id_idx\",\"columns\":[\"bom_id\",\"component_sku_id\",\"tenant_id\"],\"unique\":true}],\"version\":\"cfbae7e8\"}},\"@happyvertical/smrt-manufacturing:BillOfMaterialsCollection\":{\"name\":\"billofmaterialscollection\",\"className\":\"BillOfMaterialsCollection\",\"qualifiedName\":\"@happyvertical/smrt-manufacturing:BillOfMaterialsCollection\",\"collection\":\"billofmaterialses\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/manufacturing/src/collections/BillOfMaterialsCollection.ts\",\"packageName\":\"@happyvertical/smrt-manufacturing\",\"fields\":{},\"methods\":{\"findByProduct\":{\"name\":\"findByProduct\",\"async\":true,\"parameters\":[{\"name\":\"productId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<BillOfMaterials[]>\",\"isStatic\":false,\"isPublic\":true},\"findActiveForProduct\":{\"name\":\"findActiveForProduct\",\"async\":true,\"parameters\":[{\"name\":\"productId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<BillOfMaterials | null>\",\"isStatic\":false,\"isPublic\":true},\"findByStatus\":{\"name\":\"findByStatus\",\"async\":true,\"parameters\":[{\"name\":\"status\",\"type\":\"BomStatus\",\"optional\":false}],\"returnType\":\"Promise<BillOfMaterials[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"manufacturing_boms\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"BillOfMaterials\",\"exportName\":\"BillOfMaterialsCollection\",\"collectionExportName\":\"BillOfMaterialsCollectionCollection\",\"schema\":{\"tableName\":\"manufacturing_boms\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"manufacturing_boms\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"manufacturing_boms_id_idx\",\"columns\":[\"id\"]},{\"name\":\"manufacturing_boms_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"ac053b14\"}},\"@happyvertical/smrt-manufacturing:BomLineCollection\":{\"name\":\"bomlinecollection\",\"className\":\"BomLineCollection\",\"qualifiedName\":\"@happyvertical/smrt-manufacturing:BomLineCollection\",\"collection\":\"bomlines\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/manufacturing/src/collections/BomLineCollection.ts\",\"packageName\":\"@happyvertical/smrt-manufacturing\",\"fields\":{},\"methods\":{\"findByBom\":{\"name\":\"findByBom\",\"async\":true,\"parameters\":[{\"name\":\"bomId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<BomLine[]>\",\"isStatic\":false,\"isPublic\":true},\"findByComponent\":{\"name\":\"findByComponent\",\"async\":true,\"parameters\":[{\"name\":\"componentSkuId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<BomLine[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"manufacturing_bom_lines\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"BomLine\",\"exportName\":\"BomLineCollection\",\"collectionExportName\":\"BomLineCollectionCollection\",\"schema\":{\"tableName\":\"manufacturing_bom_lines\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"manufacturing_bom_lines\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"manufacturing_bom_lines_id_idx\",\"columns\":[\"id\"]},{\"name\":\"manufacturing_bom_lines_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"9b18ab50\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\",\"@happyvertical/smrt-inventory\",\"@happyvertical/smrt-tenancy\"]}"));
7
+ ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":1785455280670,\"packageName\":\"@happyvertical/smrt-manufacturing\",\"packageVersion\":\"0.40.38\",\"objects\":{\"@happyvertical/smrt-manufacturing:BillOfMaterialsCollection\":{\"name\":\"billofmaterialscollection\",\"className\":\"BillOfMaterialsCollection\",\"qualifiedName\":\"@happyvertical/smrt-manufacturing:BillOfMaterialsCollection\",\"collection\":\"billofmaterialses\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/manufacturing/src/collections/BillOfMaterialsCollection.ts\",\"packageName\":\"@happyvertical/smrt-manufacturing\",\"fields\":{},\"methods\":{\"findByProduct\":{\"name\":\"findByProduct\",\"async\":true,\"parameters\":[{\"name\":\"productId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<BillOfMaterials[]>\",\"isStatic\":false,\"isPublic\":true},\"findActiveForProduct\":{\"name\":\"findActiveForProduct\",\"async\":true,\"parameters\":[{\"name\":\"productId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<BillOfMaterials | null>\",\"isStatic\":false,\"isPublic\":true},\"findByStatus\":{\"name\":\"findByStatus\",\"async\":true,\"parameters\":[{\"name\":\"status\",\"type\":\"BomStatus\",\"optional\":false}],\"returnType\":\"Promise<BillOfMaterials[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"manufacturing_boms\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"BillOfMaterials\",\"exportName\":\"BillOfMaterialsCollection\",\"collectionExportName\":\"BillOfMaterialsCollectionCollection\",\"schema\":{\"tableName\":\"manufacturing_boms\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"manufacturing_boms\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"manufacturing_boms_id_idx\",\"columns\":[\"id\"]},{\"name\":\"manufacturing_boms_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"ac053b14\"}},\"@happyvertical/smrt-manufacturing:BomLineCollection\":{\"name\":\"bomlinecollection\",\"className\":\"BomLineCollection\",\"qualifiedName\":\"@happyvertical/smrt-manufacturing:BomLineCollection\",\"collection\":\"bomlines\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/manufacturing/src/collections/BomLineCollection.ts\",\"packageName\":\"@happyvertical/smrt-manufacturing\",\"fields\":{},\"methods\":{\"findByBom\":{\"name\":\"findByBom\",\"async\":true,\"parameters\":[{\"name\":\"bomId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<BomLine[]>\",\"isStatic\":false,\"isPublic\":true},\"findByComponent\":{\"name\":\"findByComponent\",\"async\":true,\"parameters\":[{\"name\":\"componentSkuId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<BomLine[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"manufacturing_bom_lines\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"BomLine\",\"exportName\":\"BomLineCollection\",\"collectionExportName\":\"BomLineCollectionCollection\",\"schema\":{\"tableName\":\"manufacturing_bom_lines\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"manufacturing_bom_lines\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"manufacturing_bom_lines_id_idx\",\"columns\":[\"id\"]},{\"name\":\"manufacturing_bom_lines_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"9b18ab50\"}},\"@happyvertical/smrt-manufacturing:BillOfMaterials\":{\"name\":\"billofmaterials\",\"className\":\"BillOfMaterials\",\"qualifiedName\":\"@happyvertical/smrt-manufacturing:BillOfMaterials\",\"collection\":\"billofmaterialses\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/manufacturing/src/models/BillOfMaterials.ts\",\"packageName\":\"@happyvertical/smrt-manufacturing\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"productId\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"version\":{\"type\":\"integer\",\"required\":true,\"default\":1,\"_meta\":{\"required\":true}},\"effectiveDate\":{\"type\":\"datetime\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":true,\"default\":\"draft\",\"_meta\":{\"required\":true}},\"notes\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"currency\":{\"type\":\"text\",\"required\":false,\"default\":\"USD\"}},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"manufacturing_boms\",\"conflictColumns\":[\"product_id\",\"version\",\"tenant_id\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"mcp\":{\"include\":[\"list\",\"get\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"BillOfMaterials\",\"collectionExportName\":\"BillOfMaterialsCollection\",\"validationRules\":[{\"field\":\"productId\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"version\",\"rule\":\"required\",\"fieldType\":\"integer\"},{\"field\":\"status\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"manufacturing_boms\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"manufacturing_boms\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"product_id\\\" TEXT NOT NULL DEFAULT '',\\n \\\"version\\\" INTEGER NOT NULL DEFAULT 1,\\n \\\"effective_date\\\" TIMESTAMP,\\n \\\"status\\\" TEXT NOT NULL DEFAULT 'draft',\\n \\\"notes\\\" TEXT DEFAULT '',\\n \\\"currency\\\" TEXT DEFAULT 'USD'\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"product_id\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"\"},\"version\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":1},\"effective_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false,\"unique\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"draft\"},\"notes\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"currency\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"USD\"}},\"indexes\":[{\"name\":\"manufacturing_boms_id_idx\",\"columns\":[\"id\"]},{\"name\":\"manufacturing_boms_product_id_version_idx\",\"columns\":[\"product_id\",\"version\",\"tenant_id\"],\"unique\":true}],\"version\":\"b2691adc\"}},\"@happyvertical/smrt-manufacturing:BomLine\":{\"name\":\"bomline\",\"className\":\"BomLine\",\"qualifiedName\":\"@happyvertical/smrt-manufacturing:BomLine\",\"collection\":\"bomlines\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/manufacturing/src/models/BomLine.ts\",\"packageName\":\"@happyvertical/smrt-manufacturing\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"bomId\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"componentSkuId\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"qtyPerUnit\":{\"type\":\"decimal\",\"required\":false,\"_meta\":{}},\"uom\":{\"type\":\"text\",\"required\":false,\"default\":\"each\"},\"wastePercent\":{\"type\":\"decimal\",\"required\":false,\"_meta\":{}},\"notes\":{\"type\":\"text\",\"required\":false,\"default\":\"\"}},\"methods\":{\"effectiveQtyPerUnit\":{\"name\":\"effectiveQtyPerUnit\",\"async\":false,\"parameters\":[],\"returnType\":\"number\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"manufacturing_bom_lines\",\"conflictColumns\":[\"bom_id\",\"component_sku_id\",\"tenant_id\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"mcp\":{\"include\":[\"list\",\"get\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"BomLine\",\"collectionExportName\":\"BomLineCollection\",\"validationRules\":[{\"field\":\"bomId\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"componentSkuId\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"manufacturing_bom_lines\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"manufacturing_bom_lines\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"bom_id\\\" TEXT NOT NULL DEFAULT '',\\n \\\"component_sku_id\\\" TEXT NOT NULL DEFAULT '',\\n \\\"qty_per_unit\\\" REAL,\\n \\\"uom\\\" TEXT DEFAULT 'each',\\n \\\"waste_percent\\\" REAL,\\n \\\"notes\\\" TEXT DEFAULT ''\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"bom_id\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"\"},\"component_sku_id\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"\"},\"qty_per_unit\":{\"type\":\"REAL\",\"notNull\":false,\"unique\":false},\"uom\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"each\"},\"waste_percent\":{\"type\":\"REAL\",\"notNull\":false,\"unique\":false},\"notes\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"}},\"indexes\":[{\"name\":\"manufacturing_bom_lines_id_idx\",\"columns\":[\"id\"]},{\"name\":\"manufacturing_bom_lines_bom_id_component_sku_id_idx\",\"columns\":[\"bom_id\",\"component_sku_id\",\"tenant_id\"],\"unique\":true}],\"version\":\"cfbae7e8\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\",\"@happyvertical/smrt-inventory\",\"@happyvertical/smrt-tenancy\"]}"));
8
8
  //#endregion
9
9
  //#region src/models/BillOfMaterials.ts
10
10
  var __defProp$1 = Object.defineProperty;
@@ -1,9 +1,211 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "timestamp": 1785430810611,
3
+ "timestamp": 1785455280670,
4
4
  "packageName": "@happyvertical/smrt-manufacturing",
5
- "packageVersion": "0.40.37",
5
+ "packageVersion": "0.40.38",
6
6
  "objects": {
7
+ "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection": {
8
+ "name": "billofmaterialscollection",
9
+ "className": "BillOfMaterialsCollection",
10
+ "qualifiedName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
11
+ "collection": "billofmaterialses",
12
+ "filePath": "/home/runner/_work/smrt/smrt/packages/manufacturing/src/collections/BillOfMaterialsCollection.ts",
13
+ "packageName": "@happyvertical/smrt-manufacturing",
14
+ "fields": {},
15
+ "methods": {
16
+ "findByProduct": {
17
+ "name": "findByProduct",
18
+ "async": true,
19
+ "parameters": [
20
+ {
21
+ "name": "productId",
22
+ "type": "string",
23
+ "optional": false
24
+ }
25
+ ],
26
+ "returnType": "Promise<BillOfMaterials[]>",
27
+ "isStatic": false,
28
+ "isPublic": true
29
+ },
30
+ "findActiveForProduct": {
31
+ "name": "findActiveForProduct",
32
+ "async": true,
33
+ "parameters": [
34
+ {
35
+ "name": "productId",
36
+ "type": "string",
37
+ "optional": false
38
+ }
39
+ ],
40
+ "returnType": "Promise<BillOfMaterials | null>",
41
+ "isStatic": false,
42
+ "isPublic": true
43
+ },
44
+ "findByStatus": {
45
+ "name": "findByStatus",
46
+ "async": true,
47
+ "parameters": [
48
+ {
49
+ "name": "status",
50
+ "type": "BomStatus",
51
+ "optional": false
52
+ }
53
+ ],
54
+ "returnType": "Promise<BillOfMaterials[]>",
55
+ "isStatic": false,
56
+ "isPublic": true
57
+ }
58
+ },
59
+ "decoratorConfig": {
60
+ "tableName": "manufacturing_boms"
61
+ },
62
+ "extends": "SmrtCollection",
63
+ "extendsTypeArg": "BillOfMaterials",
64
+ "exportName": "BillOfMaterialsCollection",
65
+ "collectionExportName": "BillOfMaterialsCollectionCollection",
66
+ "schema": {
67
+ "tableName": "manufacturing_boms",
68
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_boms\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
69
+ "columns": {
70
+ "id": {
71
+ "type": "UUID",
72
+ "primaryKey": true,
73
+ "referenceKind": "id",
74
+ "notNull": true
75
+ },
76
+ "slug": {
77
+ "type": "TEXT",
78
+ "notNull": true
79
+ },
80
+ "context": {
81
+ "type": "TEXT",
82
+ "notNull": true,
83
+ "default": ""
84
+ },
85
+ "created_at": {
86
+ "type": "TIMESTAMP",
87
+ "notNull": true,
88
+ "default": "current_timestamp"
89
+ },
90
+ "updated_at": {
91
+ "type": "TIMESTAMP",
92
+ "notNull": true,
93
+ "default": "current_timestamp"
94
+ }
95
+ },
96
+ "indexes": [
97
+ {
98
+ "name": "manufacturing_boms_id_idx",
99
+ "columns": [
100
+ "id"
101
+ ]
102
+ },
103
+ {
104
+ "name": "manufacturing_boms_slug_context_idx",
105
+ "columns": [
106
+ "slug",
107
+ "context"
108
+ ],
109
+ "unique": true
110
+ }
111
+ ],
112
+ "version": "ac053b14"
113
+ }
114
+ },
115
+ "@happyvertical/smrt-manufacturing:BomLineCollection": {
116
+ "name": "bomlinecollection",
117
+ "className": "BomLineCollection",
118
+ "qualifiedName": "@happyvertical/smrt-manufacturing:BomLineCollection",
119
+ "collection": "bomlines",
120
+ "filePath": "/home/runner/_work/smrt/smrt/packages/manufacturing/src/collections/BomLineCollection.ts",
121
+ "packageName": "@happyvertical/smrt-manufacturing",
122
+ "fields": {},
123
+ "methods": {
124
+ "findByBom": {
125
+ "name": "findByBom",
126
+ "async": true,
127
+ "parameters": [
128
+ {
129
+ "name": "bomId",
130
+ "type": "string",
131
+ "optional": false
132
+ }
133
+ ],
134
+ "returnType": "Promise<BomLine[]>",
135
+ "isStatic": false,
136
+ "isPublic": true
137
+ },
138
+ "findByComponent": {
139
+ "name": "findByComponent",
140
+ "async": true,
141
+ "parameters": [
142
+ {
143
+ "name": "componentSkuId",
144
+ "type": "string",
145
+ "optional": false
146
+ }
147
+ ],
148
+ "returnType": "Promise<BomLine[]>",
149
+ "isStatic": false,
150
+ "isPublic": true
151
+ }
152
+ },
153
+ "decoratorConfig": {
154
+ "tableName": "manufacturing_bom_lines"
155
+ },
156
+ "extends": "SmrtCollection",
157
+ "extendsTypeArg": "BomLine",
158
+ "exportName": "BomLineCollection",
159
+ "collectionExportName": "BomLineCollectionCollection",
160
+ "schema": {
161
+ "tableName": "manufacturing_bom_lines",
162
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_bom_lines\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
163
+ "columns": {
164
+ "id": {
165
+ "type": "UUID",
166
+ "primaryKey": true,
167
+ "referenceKind": "id",
168
+ "notNull": true
169
+ },
170
+ "slug": {
171
+ "type": "TEXT",
172
+ "notNull": true
173
+ },
174
+ "context": {
175
+ "type": "TEXT",
176
+ "notNull": true,
177
+ "default": ""
178
+ },
179
+ "created_at": {
180
+ "type": "TIMESTAMP",
181
+ "notNull": true,
182
+ "default": "current_timestamp"
183
+ },
184
+ "updated_at": {
185
+ "type": "TIMESTAMP",
186
+ "notNull": true,
187
+ "default": "current_timestamp"
188
+ }
189
+ },
190
+ "indexes": [
191
+ {
192
+ "name": "manufacturing_bom_lines_id_idx",
193
+ "columns": [
194
+ "id"
195
+ ]
196
+ },
197
+ {
198
+ "name": "manufacturing_bom_lines_slug_context_idx",
199
+ "columns": [
200
+ "slug",
201
+ "context"
202
+ ],
203
+ "unique": true
204
+ }
205
+ ],
206
+ "version": "9b18ab50"
207
+ }
208
+ },
7
209
  "@happyvertical/smrt-manufacturing:BillOfMaterials": {
8
210
  "name": "billofmaterials",
9
211
  "className": "BillOfMaterials",
@@ -410,208 +612,6 @@
410
612
  ],
411
613
  "version": "cfbae7e8"
412
614
  }
413
- },
414
- "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection": {
415
- "name": "billofmaterialscollection",
416
- "className": "BillOfMaterialsCollection",
417
- "qualifiedName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
418
- "collection": "billofmaterialses",
419
- "filePath": "/home/runner/_work/smrt/smrt/packages/manufacturing/src/collections/BillOfMaterialsCollection.ts",
420
- "packageName": "@happyvertical/smrt-manufacturing",
421
- "fields": {},
422
- "methods": {
423
- "findByProduct": {
424
- "name": "findByProduct",
425
- "async": true,
426
- "parameters": [
427
- {
428
- "name": "productId",
429
- "type": "string",
430
- "optional": false
431
- }
432
- ],
433
- "returnType": "Promise<BillOfMaterials[]>",
434
- "isStatic": false,
435
- "isPublic": true
436
- },
437
- "findActiveForProduct": {
438
- "name": "findActiveForProduct",
439
- "async": true,
440
- "parameters": [
441
- {
442
- "name": "productId",
443
- "type": "string",
444
- "optional": false
445
- }
446
- ],
447
- "returnType": "Promise<BillOfMaterials | null>",
448
- "isStatic": false,
449
- "isPublic": true
450
- },
451
- "findByStatus": {
452
- "name": "findByStatus",
453
- "async": true,
454
- "parameters": [
455
- {
456
- "name": "status",
457
- "type": "BomStatus",
458
- "optional": false
459
- }
460
- ],
461
- "returnType": "Promise<BillOfMaterials[]>",
462
- "isStatic": false,
463
- "isPublic": true
464
- }
465
- },
466
- "decoratorConfig": {
467
- "tableName": "manufacturing_boms"
468
- },
469
- "extends": "SmrtCollection",
470
- "extendsTypeArg": "BillOfMaterials",
471
- "exportName": "BillOfMaterialsCollection",
472
- "collectionExportName": "BillOfMaterialsCollectionCollection",
473
- "schema": {
474
- "tableName": "manufacturing_boms",
475
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_boms\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
476
- "columns": {
477
- "id": {
478
- "type": "UUID",
479
- "primaryKey": true,
480
- "referenceKind": "id",
481
- "notNull": true
482
- },
483
- "slug": {
484
- "type": "TEXT",
485
- "notNull": true
486
- },
487
- "context": {
488
- "type": "TEXT",
489
- "notNull": true,
490
- "default": ""
491
- },
492
- "created_at": {
493
- "type": "TIMESTAMP",
494
- "notNull": true,
495
- "default": "current_timestamp"
496
- },
497
- "updated_at": {
498
- "type": "TIMESTAMP",
499
- "notNull": true,
500
- "default": "current_timestamp"
501
- }
502
- },
503
- "indexes": [
504
- {
505
- "name": "manufacturing_boms_id_idx",
506
- "columns": [
507
- "id"
508
- ]
509
- },
510
- {
511
- "name": "manufacturing_boms_slug_context_idx",
512
- "columns": [
513
- "slug",
514
- "context"
515
- ],
516
- "unique": true
517
- }
518
- ],
519
- "version": "ac053b14"
520
- }
521
- },
522
- "@happyvertical/smrt-manufacturing:BomLineCollection": {
523
- "name": "bomlinecollection",
524
- "className": "BomLineCollection",
525
- "qualifiedName": "@happyvertical/smrt-manufacturing:BomLineCollection",
526
- "collection": "bomlines",
527
- "filePath": "/home/runner/_work/smrt/smrt/packages/manufacturing/src/collections/BomLineCollection.ts",
528
- "packageName": "@happyvertical/smrt-manufacturing",
529
- "fields": {},
530
- "methods": {
531
- "findByBom": {
532
- "name": "findByBom",
533
- "async": true,
534
- "parameters": [
535
- {
536
- "name": "bomId",
537
- "type": "string",
538
- "optional": false
539
- }
540
- ],
541
- "returnType": "Promise<BomLine[]>",
542
- "isStatic": false,
543
- "isPublic": true
544
- },
545
- "findByComponent": {
546
- "name": "findByComponent",
547
- "async": true,
548
- "parameters": [
549
- {
550
- "name": "componentSkuId",
551
- "type": "string",
552
- "optional": false
553
- }
554
- ],
555
- "returnType": "Promise<BomLine[]>",
556
- "isStatic": false,
557
- "isPublic": true
558
- }
559
- },
560
- "decoratorConfig": {
561
- "tableName": "manufacturing_bom_lines"
562
- },
563
- "extends": "SmrtCollection",
564
- "extendsTypeArg": "BomLine",
565
- "exportName": "BomLineCollection",
566
- "collectionExportName": "BomLineCollectionCollection",
567
- "schema": {
568
- "tableName": "manufacturing_bom_lines",
569
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_bom_lines\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
570
- "columns": {
571
- "id": {
572
- "type": "UUID",
573
- "primaryKey": true,
574
- "referenceKind": "id",
575
- "notNull": true
576
- },
577
- "slug": {
578
- "type": "TEXT",
579
- "notNull": true
580
- },
581
- "context": {
582
- "type": "TEXT",
583
- "notNull": true,
584
- "default": ""
585
- },
586
- "created_at": {
587
- "type": "TIMESTAMP",
588
- "notNull": true,
589
- "default": "current_timestamp"
590
- },
591
- "updated_at": {
592
- "type": "TIMESTAMP",
593
- "notNull": true,
594
- "default": "current_timestamp"
595
- }
596
- },
597
- "indexes": [
598
- {
599
- "name": "manufacturing_bom_lines_id_idx",
600
- "columns": [
601
- "id"
602
- ]
603
- },
604
- {
605
- "name": "manufacturing_bom_lines_slug_context_idx",
606
- "columns": [
607
- "slug",
608
- "context"
609
- ],
610
- "unique": true
611
- }
612
- ],
613
- "version": "9b18ab50"
614
- }
615
615
  }
616
616
  },
617
617
  "moduleType": "smrt",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-07-30T17:00:47.919Z",
3
+ "generatedAt": "2026-07-30T23:48:54.735Z",
4
4
  "packageName": "@happyvertical/smrt-manufacturing",
5
- "packageVersion": "0.40.37",
5
+ "packageVersion": "0.40.38",
6
6
  "sourceManifestPath": "dist/manifest.json",
7
7
  "agentDocPath": "AGENTS.md",
8
8
  "sourceHashes": {
9
- "manifest": "27dddefcdc5961e60e82cdcfec70fb39a3592dce2002041964169cc55d69b593",
10
- "packageJson": "c6e94b6a62aae934e515c3c5e59a40d06b637a042e7a9b69e2cdab621023b716",
9
+ "manifest": "3a388adc94c641551600146f5964200937269ef5724de0a2ec97343ec4440438",
10
+ "packageJson": "dadb8697367643f2c4d84307de4dd43707d7fe909a15597b7fb4096209bbfaa2",
11
11
  "agents": "94d10408c859743730368f932f77e5602ebefb8fe9a8ac3178fa4b211e95ad29"
12
12
  },
13
13
  "exports": [
@@ -40,6 +40,47 @@
40
40
  "tags": [],
41
41
  "risks": [],
42
42
  "objects": [
43
+ {
44
+ "name": "BillOfMaterialsCollection",
45
+ "qualifiedName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
46
+ "collection": "billofmaterialses",
47
+ "tableName": "manufacturing_boms",
48
+ "packageName": "@happyvertical/smrt-manufacturing",
49
+ "extends": "SmrtCollection",
50
+ "fields": [],
51
+ "relationships": [],
52
+ "methods": [
53
+ "findActiveForProduct",
54
+ "findByProduct",
55
+ "findByStatus"
56
+ ],
57
+ "surfaces": [],
58
+ "relationshipFeatures": [
59
+ "uuidColumns"
60
+ ],
61
+ "tags": [],
62
+ "risks": []
63
+ },
64
+ {
65
+ "name": "BomLineCollection",
66
+ "qualifiedName": "@happyvertical/smrt-manufacturing:BomLineCollection",
67
+ "collection": "bomlines",
68
+ "tableName": "manufacturing_bom_lines",
69
+ "packageName": "@happyvertical/smrt-manufacturing",
70
+ "extends": "SmrtCollection",
71
+ "fields": [],
72
+ "relationships": [],
73
+ "methods": [
74
+ "findByBom",
75
+ "findByComponent"
76
+ ],
77
+ "surfaces": [],
78
+ "relationshipFeatures": [
79
+ "uuidColumns"
80
+ ],
81
+ "tags": [],
82
+ "risks": []
83
+ },
43
84
  {
44
85
  "name": "BillOfMaterials",
45
86
  "qualifiedName": "@happyvertical/smrt-manufacturing:BillOfMaterials",
@@ -311,47 +352,6 @@
311
352
  ],
312
353
  "tags": [],
313
354
  "risks": []
314
- },
315
- {
316
- "name": "BillOfMaterialsCollection",
317
- "qualifiedName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
318
- "collection": "billofmaterialses",
319
- "tableName": "manufacturing_boms",
320
- "packageName": "@happyvertical/smrt-manufacturing",
321
- "extends": "SmrtCollection",
322
- "fields": [],
323
- "relationships": [],
324
- "methods": [
325
- "findActiveForProduct",
326
- "findByProduct",
327
- "findByStatus"
328
- ],
329
- "surfaces": [],
330
- "relationshipFeatures": [
331
- "uuidColumns"
332
- ],
333
- "tags": [],
334
- "risks": []
335
- },
336
- {
337
- "name": "BomLineCollection",
338
- "qualifiedName": "@happyvertical/smrt-manufacturing:BomLineCollection",
339
- "collection": "bomlines",
340
- "tableName": "manufacturing_bom_lines",
341
- "packageName": "@happyvertical/smrt-manufacturing",
342
- "extends": "SmrtCollection",
343
- "fields": [],
344
- "relationships": [],
345
- "methods": [
346
- "findByBom",
347
- "findByComponent"
348
- ],
349
- "surfaces": [],
350
- "relationshipFeatures": [
351
- "uuidColumns"
352
- ],
353
- "tags": [],
354
- "risks": []
355
355
  }
356
356
  ],
357
357
  "surfaces": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-manufacturing",
3
- "version": "0.40.37",
3
+ "version": "0.40.38",
4
4
  "description": "Bills of materials, cost rollup, and production-order operations for the SMRT framework — strictly industry-neutral",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,16 +21,16 @@
21
21
  "dependencies": {
22
22
  "@happyvertical/logger": "^0.84.0",
23
23
  "@happyvertical/sql": "^0.84.0",
24
- "@happyvertical/smrt-core": "0.40.37",
25
- "@happyvertical/smrt-inventory": "0.40.37",
26
- "@happyvertical/smrt-tenancy": "0.40.37"
24
+ "@happyvertical/smrt-core": "0.40.38",
25
+ "@happyvertical/smrt-inventory": "0.40.38",
26
+ "@happyvertical/smrt-tenancy": "0.40.38"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "24.13.2",
30
30
  "typescript": "5.9.3",
31
31
  "vite": "8.1.4",
32
32
  "vitest": "4.1.10",
33
- "@happyvertical/smrt-vitest": "0.40.37"
33
+ "@happyvertical/smrt-vitest": "0.40.38"
34
34
  },
35
35
  "keywords": [
36
36
  "smrt",