@happyvertical/smrt-manufacturing 0.51.32 → 0.51.34
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/__smrt-register__.d.ts +2 -0
- package/dist/__smrt-register__.d.ts.map +1 -0
- package/dist/collections/BillOfMaterialsCollection.d.ts +30 -0
- package/dist/collections/BillOfMaterialsCollection.d.ts.map +1 -0
- package/dist/collections/BomLineCollection.d.ts +23 -0
- package/dist/collections/BomLineCollection.d.ts.map +1 -0
- package/dist/collections/index.d.ts +14 -0
- package/dist/collections/index.d.ts.map +1 -0
- package/dist/index.d.ts +34 -846
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/manifest.json +1 -1
- package/dist/models/BillOfMaterials.d.ts +78 -0
- package/dist/models/BillOfMaterials.d.ts.map +1 -0
- package/dist/models/BomLine.d.ts +88 -0
- package/dist/models/BomLine.d.ts.map +1 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/services/BomService.d.ts +157 -0
- package/dist/services/BomService.d.ts.map +1 -0
- package/dist/services/ProductionService.d.ts +322 -0
- package/dist/services/ProductionService.d.ts.map +1 -0
- package/dist/services/dispatch-handlers.d.ts +159 -0
- package/dist/services/dispatch-handlers.d.ts.map +1 -0
- package/dist/services/index.d.ts +9 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +4 -4
- package/dist/types.d.ts +129 -138
- package/dist/types.d.ts.map +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__smrt-register__.d.ts","sourceRoot":"","sources":["../src/__smrt-register__.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BillOfMaterialsCollection — query helpers for {@link BillOfMaterials} rows.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
7
|
+
import { BillOfMaterials } from '../models/BillOfMaterials.js';
|
|
8
|
+
import type { BomStatus } from '../types.js';
|
|
9
|
+
export declare class BillOfMaterialsCollection extends SmrtCollection<BillOfMaterials> {
|
|
10
|
+
static readonly _itemClass: typeof BillOfMaterials;
|
|
11
|
+
/**
|
|
12
|
+
* Return every BOM for the given upstream product id, newest version
|
|
13
|
+
* first. Useful for "show me all revisions of this product's recipe"
|
|
14
|
+
* admin screens.
|
|
15
|
+
*/
|
|
16
|
+
findByProduct(productId: string): Promise<BillOfMaterials[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Return the currently `active` BOM for the given product, or `null` if
|
|
19
|
+
* none has been activated yet. When multiple `active` rows exist (which
|
|
20
|
+
* should not happen but can arise during partial migrations), the
|
|
21
|
+
* highest-version row wins.
|
|
22
|
+
*/
|
|
23
|
+
findActiveForProduct(productId: string): Promise<BillOfMaterials | null>;
|
|
24
|
+
/**
|
|
25
|
+
* Return every BOM with the given lifecycle status across all products.
|
|
26
|
+
* Mostly useful for admin dashboards (e.g. "show every draft BOM").
|
|
27
|
+
*/
|
|
28
|
+
findByStatus(status: BomStatus): Promise<BillOfMaterials[]>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=BillOfMaterialsCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BillOfMaterialsCollection.d.ts","sourceRoot":"","sources":["../../src/collections/BillOfMaterialsCollection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,qBAAa,yBAA0B,SAAQ,cAAc,CAAC,eAAe,CAAC;IAC5E,MAAM,CAAC,QAAQ,CAAC,UAAU,yBAAmB;IAE7C;;;;OAIG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAIlE;;;;;OAKG;IACG,oBAAoB,CACxB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IASlC;;;OAGG;IACG,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;CAGlE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BomLineCollection — query helpers for {@link BomLine} rows.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
7
|
+
import { BomLine } from '../models/BomLine.js';
|
|
8
|
+
export declare class BomLineCollection extends SmrtCollection<BomLine> {
|
|
9
|
+
static readonly _itemClass: typeof BomLine;
|
|
10
|
+
/**
|
|
11
|
+
* Return every line that belongs to the given BOM. Caller-stable order
|
|
12
|
+
* helps make cost rollups and requirements explosions deterministic.
|
|
13
|
+
*/
|
|
14
|
+
findByBom(bomId: string): Promise<BomLine[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Return every line that references the given component SKU across all
|
|
17
|
+
* BOMs. Useful for "where is this material used?" admin screens and for
|
|
18
|
+
* cost-change impact analysis (a price hike on a raw material affects
|
|
19
|
+
* every BOM in the result).
|
|
20
|
+
*/
|
|
21
|
+
findByComponent(componentSkuId: string): Promise<BomLine[]>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=BomLineCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BomLineCollection.d.ts","sourceRoot":"","sources":["../../src/collections/BomLineCollection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,OAAO,CAAC;IAC5D,MAAM,CAAC,QAAQ,CAAC,UAAU,iBAAW;IAErC;;;OAGG;IACG,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAIlD;;;;;OAKG;IACG,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAGlE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collection exports for `@happyvertical/smrt-manufacturing`.
|
|
3
|
+
*
|
|
4
|
+
* Importing this barrel triggers `__smrt-register__.ts` first so the
|
|
5
|
+
* package's build-time manifest is published before any class module
|
|
6
|
+
* (transitively) imported by a collection touches the registry. See
|
|
7
|
+
* `__smrt-register__.ts` and issue #1132 for the full background.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
import '../__smrt-register__.js';
|
|
12
|
+
export { BillOfMaterialsCollection } from './BillOfMaterialsCollection.js';
|
|
13
|
+
export { BomLineCollection } from './BomLineCollection.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collections/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|