@happyvertical/smrt-manufacturing 0.44.0 → 0.45.0
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 +1 -1
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +219 -5
- package/package.json +5 -5
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\":0,\"packageName\":\"@happyvertical/smrt-manufacturing\",\"packageVersion\":\"0.44.0\",\"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_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true},{\"name\":\"manufacturing_boms_created_at_idx\",\"columns\":[\"created_at\"]}],\"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_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true},{\"name\":\"manufacturing_bom_lines_created_at_idx\",\"columns\":[\"created_at\"]}],\"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_product_id_version_idx\",\"columns\":[\"product_id\",\"version\",\"tenant_id\"],\"unique\":true},{\"name\":\"manufacturing_boms_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"manufacturing_boms_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]}],\"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_bom_id_component_sku_id_idx\",\"columns\":[\"bom_id\",\"component_sku_id\",\"tenant_id\"],\"unique\":true},{\"name\":\"manufacturing_bom_lines_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"manufacturing_bom_lines_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]}],\"version\":\"cfbae7e8\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\",\"@happyvertical/smrt-inventory\",\"@happyvertical/smrt-tenancy\"]}"));
|
|
7
|
+
ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-manufacturing\",\"packageVersion\":\"0.45.0\",\"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_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true},{\"name\":\"manufacturing_boms_created_at_idx\",\"columns\":[\"created_at\"]}],\"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_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true},{\"name\":\"manufacturing_bom_lines_created_at_idx\",\"columns\":[\"created_at\"]}],\"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_product_id_version_idx\",\"columns\":[\"product_id\",\"version\",\"tenant_id\"],\"unique\":true},{\"name\":\"manufacturing_boms_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"manufacturing_boms_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]}],\"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_bom_id_component_sku_id_idx\",\"columns\":[\"bom_id\",\"component_sku_id\",\"tenant_id\"],\"unique\":true},{\"name\":\"manufacturing_bom_lines_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"manufacturing_bom_lines_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]}],\"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;
|
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
5
|
-
"packageVersion": "0.
|
|
5
|
+
"packageVersion": "0.45.0",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-manufacturing:BillOfMaterialsCollection": {
|
|
8
8
|
"name": "billofmaterialscollection",
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
6
|
-
"packageVersion": "0.
|
|
6
|
+
"packageVersion": "0.45.0",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "53b7f81a8cf16218dbc6a8a5d3e434a08960cece3088f63365088a2d5a293dc2",
|
|
11
|
+
"packageJson": "24ffd9b524d1f02482262290c54169b8e18b7cfed9696c897c77d92bb2357881",
|
|
12
12
|
"agents": "94d10408c859743730368f932f77e5602ebefb8fe9a8ac3178fa4b211e95ad29"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -81,7 +81,68 @@
|
|
|
81
81
|
"returns": "Promise<BillOfMaterials[]>"
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
|
-
"surfaces": [
|
|
84
|
+
"surfaces": [
|
|
85
|
+
{
|
|
86
|
+
"kind": "api",
|
|
87
|
+
"name": "billofmaterialses.findByProduct",
|
|
88
|
+
"operation": "findByProduct",
|
|
89
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
|
|
90
|
+
"path": "/billofmaterialses/findByProduct",
|
|
91
|
+
"method": "POST"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"kind": "api",
|
|
95
|
+
"name": "billofmaterialses.findActiveForProduct",
|
|
96
|
+
"operation": "findActiveForProduct",
|
|
97
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
|
|
98
|
+
"path": "/billofmaterialses/findActiveForProduct",
|
|
99
|
+
"method": "POST"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"kind": "api",
|
|
103
|
+
"name": "billofmaterialses.findByStatus",
|
|
104
|
+
"operation": "findByStatus",
|
|
105
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
|
|
106
|
+
"path": "/billofmaterialses/findByStatus",
|
|
107
|
+
"method": "POST"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"kind": "cli",
|
|
111
|
+
"name": "billofmaterialscollection_findByProduct",
|
|
112
|
+
"operation": "findByProduct",
|
|
113
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"kind": "cli",
|
|
117
|
+
"name": "billofmaterialscollection_findActiveForProduct",
|
|
118
|
+
"operation": "findActiveForProduct",
|
|
119
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"kind": "cli",
|
|
123
|
+
"name": "billofmaterialscollection_findByStatus",
|
|
124
|
+
"operation": "findByStatus",
|
|
125
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"kind": "mcp",
|
|
129
|
+
"name": "billofmaterialscollection_findbyproduct",
|
|
130
|
+
"operation": "findByProduct",
|
|
131
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"kind": "mcp",
|
|
135
|
+
"name": "billofmaterialscollection_findactiveforproduct",
|
|
136
|
+
"operation": "findActiveForProduct",
|
|
137
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"kind": "mcp",
|
|
141
|
+
"name": "billofmaterialscollection_findbystatus",
|
|
142
|
+
"operation": "findByStatus",
|
|
143
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
85
146
|
"relationshipFeatures": [
|
|
86
147
|
"uuidColumns"
|
|
87
148
|
],
|
|
@@ -119,7 +180,48 @@
|
|
|
119
180
|
"returns": "Promise<BomLine[]>"
|
|
120
181
|
}
|
|
121
182
|
],
|
|
122
|
-
"surfaces": [
|
|
183
|
+
"surfaces": [
|
|
184
|
+
{
|
|
185
|
+
"kind": "api",
|
|
186
|
+
"name": "bomlines.findByBom",
|
|
187
|
+
"operation": "findByBom",
|
|
188
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection",
|
|
189
|
+
"path": "/bomlines/findByBom",
|
|
190
|
+
"method": "POST"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"kind": "api",
|
|
194
|
+
"name": "bomlines.findByComponent",
|
|
195
|
+
"operation": "findByComponent",
|
|
196
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection",
|
|
197
|
+
"path": "/bomlines/findByComponent",
|
|
198
|
+
"method": "POST"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"kind": "cli",
|
|
202
|
+
"name": "bomlinecollection_findByBom",
|
|
203
|
+
"operation": "findByBom",
|
|
204
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"kind": "cli",
|
|
208
|
+
"name": "bomlinecollection_findByComponent",
|
|
209
|
+
"operation": "findByComponent",
|
|
210
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"kind": "mcp",
|
|
214
|
+
"name": "bomlinecollection_findbybom",
|
|
215
|
+
"operation": "findByBom",
|
|
216
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"kind": "mcp",
|
|
220
|
+
"name": "bomlinecollection_findbycomponent",
|
|
221
|
+
"operation": "findByComponent",
|
|
222
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
123
225
|
"relationshipFeatures": [
|
|
124
226
|
"uuidColumns"
|
|
125
227
|
],
|
|
@@ -414,6 +516,12 @@
|
|
|
414
516
|
"operation": "delete",
|
|
415
517
|
"objectName": "@happyvertical/smrt-manufacturing:BomLine"
|
|
416
518
|
},
|
|
519
|
+
{
|
|
520
|
+
"kind": "cli",
|
|
521
|
+
"name": "bomline_effectiveQtyPerUnit",
|
|
522
|
+
"operation": "effectiveQtyPerUnit",
|
|
523
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLine"
|
|
524
|
+
},
|
|
417
525
|
{
|
|
418
526
|
"kind": "mcp",
|
|
419
527
|
"name": "bomline_list",
|
|
@@ -435,6 +543,106 @@
|
|
|
435
543
|
}
|
|
436
544
|
],
|
|
437
545
|
"surfaces": [
|
|
546
|
+
{
|
|
547
|
+
"kind": "api",
|
|
548
|
+
"name": "billofmaterialses.findByProduct",
|
|
549
|
+
"operation": "findByProduct",
|
|
550
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
|
|
551
|
+
"path": "/billofmaterialses/findByProduct",
|
|
552
|
+
"method": "POST"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"kind": "api",
|
|
556
|
+
"name": "billofmaterialses.findActiveForProduct",
|
|
557
|
+
"operation": "findActiveForProduct",
|
|
558
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
|
|
559
|
+
"path": "/billofmaterialses/findActiveForProduct",
|
|
560
|
+
"method": "POST"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"kind": "api",
|
|
564
|
+
"name": "billofmaterialses.findByStatus",
|
|
565
|
+
"operation": "findByStatus",
|
|
566
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
|
|
567
|
+
"path": "/billofmaterialses/findByStatus",
|
|
568
|
+
"method": "POST"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"kind": "cli",
|
|
572
|
+
"name": "billofmaterialscollection_findByProduct",
|
|
573
|
+
"operation": "findByProduct",
|
|
574
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"kind": "cli",
|
|
578
|
+
"name": "billofmaterialscollection_findActiveForProduct",
|
|
579
|
+
"operation": "findActiveForProduct",
|
|
580
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"kind": "cli",
|
|
584
|
+
"name": "billofmaterialscollection_findByStatus",
|
|
585
|
+
"operation": "findByStatus",
|
|
586
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"kind": "mcp",
|
|
590
|
+
"name": "billofmaterialscollection_findbyproduct",
|
|
591
|
+
"operation": "findByProduct",
|
|
592
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"kind": "mcp",
|
|
596
|
+
"name": "billofmaterialscollection_findactiveforproduct",
|
|
597
|
+
"operation": "findActiveForProduct",
|
|
598
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"kind": "mcp",
|
|
602
|
+
"name": "billofmaterialscollection_findbystatus",
|
|
603
|
+
"operation": "findByStatus",
|
|
604
|
+
"objectName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"kind": "api",
|
|
608
|
+
"name": "bomlines.findByBom",
|
|
609
|
+
"operation": "findByBom",
|
|
610
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection",
|
|
611
|
+
"path": "/bomlines/findByBom",
|
|
612
|
+
"method": "POST"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"kind": "api",
|
|
616
|
+
"name": "bomlines.findByComponent",
|
|
617
|
+
"operation": "findByComponent",
|
|
618
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection",
|
|
619
|
+
"path": "/bomlines/findByComponent",
|
|
620
|
+
"method": "POST"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"kind": "cli",
|
|
624
|
+
"name": "bomlinecollection_findByBom",
|
|
625
|
+
"operation": "findByBom",
|
|
626
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"kind": "cli",
|
|
630
|
+
"name": "bomlinecollection_findByComponent",
|
|
631
|
+
"operation": "findByComponent",
|
|
632
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"kind": "mcp",
|
|
636
|
+
"name": "bomlinecollection_findbybom",
|
|
637
|
+
"operation": "findByBom",
|
|
638
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"kind": "mcp",
|
|
642
|
+
"name": "bomlinecollection_findbycomponent",
|
|
643
|
+
"operation": "findByComponent",
|
|
644
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLineCollection"
|
|
645
|
+
},
|
|
438
646
|
{
|
|
439
647
|
"kind": "api",
|
|
440
648
|
"name": "billofmaterialses.list",
|
|
@@ -571,6 +779,12 @@
|
|
|
571
779
|
"operation": "delete",
|
|
572
780
|
"objectName": "@happyvertical/smrt-manufacturing:BomLine"
|
|
573
781
|
},
|
|
782
|
+
{
|
|
783
|
+
"kind": "cli",
|
|
784
|
+
"name": "bomline_effectiveQtyPerUnit",
|
|
785
|
+
"operation": "effectiveQtyPerUnit",
|
|
786
|
+
"objectName": "@happyvertical/smrt-manufacturing:BomLine"
|
|
787
|
+
},
|
|
574
788
|
{
|
|
575
789
|
"kind": "mcp",
|
|
576
790
|
"name": "bomline_list",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-manufacturing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
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.89.4",
|
|
23
23
|
"@happyvertical/sql": "^0.89.4",
|
|
24
|
-
"@happyvertical/smrt-core": "0.
|
|
25
|
-
"@happyvertical/smrt-inventory": "0.
|
|
26
|
-
"@happyvertical/smrt-tenancy": "0.
|
|
24
|
+
"@happyvertical/smrt-core": "0.45.0",
|
|
25
|
+
"@happyvertical/smrt-inventory": "0.45.0",
|
|
26
|
+
"@happyvertical/smrt-tenancy": "0.45.0"
|
|
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.
|
|
33
|
+
"@happyvertical/smrt-vitest": "0.45.0"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"smrt",
|