@happyvertical/smrt-products 0.54.2 → 0.54.4

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.
Files changed (63) hide show
  1. package/dist/lib/chunks/{ProductAssetCollection-DZseO7Rl.js → ProductAssetCollection-BZBV2HDk.js} +4 -3
  2. package/dist/lib/chunks/ProductAssetCollection-BZBV2HDk.js.map +1 -0
  3. package/dist/lib/chunks/{ProductCollection-vyp7nj8s.js → ProductCollection-BvRm14q5.js} +2 -2
  4. package/dist/lib/chunks/{ProductCollection-vyp7nj8s.js.map → ProductCollection-BvRm14q5.js.map} +1 -1
  5. package/dist/lib/chunks/{Sku-DGnzvBJQ.js → Sku-BN7ydk5h.js} +8 -2
  6. package/dist/lib/chunks/Sku-BN7ydk5h.js.map +1 -0
  7. package/dist/lib/chunks/{__smrt-register__-DeIXlMrd.js → __smrt-register__-BxWQs3A1.js} +2 -2
  8. package/dist/lib/chunks/{__smrt-register__-DeIXlMrd.js.map → __smrt-register__-BxWQs3A1.js.map} +1 -1
  9. package/dist/lib/chunks/{collections-DuLQOUCW.js → collections-DyIh7WrT.js} +5 -5
  10. package/dist/lib/chunks/{collections-DuLQOUCW.js.map → collections-DyIh7WrT.js.map} +1 -1
  11. package/dist/lib/chunks/{generated-BBPrKVrQ.js → generated-D5V4zoDT.js} +2 -2
  12. package/dist/lib/chunks/{generated-BBPrKVrQ.js.map → generated-D5V4zoDT.js.map} +1 -1
  13. package/dist/lib/chunks/models-J8qVk56_.js +2 -0
  14. package/dist/lib/collections.d.ts +1 -1
  15. package/dist/lib/collections.d.ts.map +1 -1
  16. package/dist/lib/collections.js +3 -3
  17. package/dist/lib/components.d.ts +1 -1
  18. package/dist/lib/components.d.ts.map +1 -1
  19. package/dist/lib/generated.d.ts +1 -1
  20. package/dist/lib/generated.d.ts.map +1 -1
  21. package/dist/lib/generated.js +1 -1
  22. package/dist/lib/index.d.ts +4 -4
  23. package/dist/lib/index.d.ts.map +1 -1
  24. package/dist/lib/index.js +7 -7
  25. package/dist/lib/lib/collections/CategoryCollection.d.ts +1 -1
  26. package/dist/lib/lib/collections/CategoryCollection.d.ts.map +1 -1
  27. package/dist/lib/lib/collections/MaterialCollection.d.ts +3 -3
  28. package/dist/lib/lib/collections/MaterialCollection.d.ts.map +1 -1
  29. package/dist/lib/lib/collections/ProductAssetCollection.d.ts +1 -1
  30. package/dist/lib/lib/collections/ProductAssetCollection.d.ts.map +1 -1
  31. package/dist/lib/lib/collections/ProductCollection.d.ts +1 -1
  32. package/dist/lib/lib/collections/ProductCollection.d.ts.map +1 -1
  33. package/dist/lib/lib/collections/ProductVariantCollection.d.ts +1 -1
  34. package/dist/lib/lib/collections/ProductVariantCollection.d.ts.map +1 -1
  35. package/dist/lib/lib/collections/SkuCollection.d.ts +1 -1
  36. package/dist/lib/lib/collections/SkuCollection.d.ts.map +1 -1
  37. package/dist/lib/lib/collections/index.d.ts +6 -6
  38. package/dist/lib/lib/collections/index.d.ts.map +1 -1
  39. package/dist/lib/lib/federation-entry.d.ts +1 -1
  40. package/dist/lib/lib/federation-entry.d.ts.map +1 -1
  41. package/dist/lib/lib/index.d.ts +6 -6
  42. package/dist/lib/lib/index.d.ts.map +1 -1
  43. package/dist/lib/lib/mock-smrt-client.d.ts +2 -2
  44. package/dist/lib/lib/mock-smrt-client.d.ts.map +1 -1
  45. package/dist/lib/lib/models/Material.d.ts +2 -2
  46. package/dist/lib/lib/models/Material.d.ts.map +1 -1
  47. package/dist/lib/lib/models/Product.d.ts +1 -1
  48. package/dist/lib/lib/models/Product.d.ts.map +1 -1
  49. package/dist/lib/lib/models/index.d.ts +14 -14
  50. package/dist/lib/lib/models/index.d.ts.map +1 -1
  51. package/dist/lib/manifest.json +9 -8
  52. package/dist/lib/models.d.ts +1 -1
  53. package/dist/lib/models.d.ts.map +1 -1
  54. package/dist/lib/models.js +2 -2
  55. package/dist/lib/smrt-knowledge.json +3 -3
  56. package/dist/lib/stores.d.ts +1 -1
  57. package/dist/lib/stores.d.ts.map +1 -1
  58. package/dist/lib/utils.d.ts +1 -1
  59. package/dist/lib/utils.d.ts.map +1 -1
  60. package/package.json +14 -14
  61. package/dist/lib/chunks/ProductAssetCollection-DZseO7Rl.js.map +0 -1
  62. package/dist/lib/chunks/Sku-DGnzvBJQ.js.map +0 -1
  63. package/dist/lib/chunks/models-1au-LJxU.js +0 -2
@@ -1,2 +1,2 @@
1
- import { t as autoGeneratedComponents } from "./chunks/generated-BBPrKVrQ.js";
1
+ import { t as autoGeneratedComponents } from "./chunks/generated-D5V4zoDT.js";
2
2
  export { autoGeneratedComponents };
@@ -16,10 +16,10 @@
16
16
  * import { ProductStoreClass } from '@happyvertical/core-template/stores';
17
17
  */
18
18
  import './__smrt-register__.js';
19
- export { demonstrateClient } from './client';
20
- export * from './lib/index';
21
- export { generateMCPServer } from './mcp';
22
- export { startServer } from './server';
19
+ export { demonstrateClient } from "./client.js";
20
+ export * from "./lib/index.js";
21
+ export { generateMCPServer } from "./mcp.js";
22
+ export { startServer } from "./server.js";
23
23
  /**
24
24
  * Start all services for demonstration (legacy function)
25
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC;;GAEG;AACH,wBAAsB,QAAQ;;;;;GA4B7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAU,CAAC;AAE7C,cAAc,gBAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAO,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAU,CAAC;AAEvC;;GAEG;AACH,wBAAsB,QAAQ;;;;;GA4B7B"}
package/dist/lib/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./chunks/rolldown-runtime-D7D4PA-g.js";
2
- import "./chunks/__smrt-register__-DeIXlMrd.js";
3
- import { a as Product, i as Material, n as ProductVariant, o as ProductType, r as ProductAsset, s as Category, t as Sku } from "./chunks/Sku-DGnzvBJQ.js";
4
- import { i as CategoryCollection, n as ProductVariantCollection, r as MaterialCollection, t as SkuCollection } from "./chunks/collections-DuLQOUCW.js";
5
- import { t as ProductCollection } from "./chunks/ProductCollection-vyp7nj8s.js";
6
- import { t as ProductAssetCollection } from "./chunks/ProductAssetCollection-DZseO7Rl.js";
2
+ import "./chunks/__smrt-register__-BxWQs3A1.js";
3
+ import { a as Product, i as Material, n as ProductVariant, o as ProductType, r as ProductAsset, s as Category, t as Sku } from "./chunks/Sku-BN7ydk5h.js";
4
+ import { i as CategoryCollection, n as ProductVariantCollection, r as MaterialCollection, t as SkuCollection } from "./chunks/collections-DyIh7WrT.js";
5
+ import { t as ProductCollection } from "./chunks/ProductCollection-BvRm14q5.js";
6
+ import { t as ProductAssetCollection } from "./chunks/ProductAssetCollection-BZBV2HDk.js";
7
7
  import { n as ProductCard, t as ProductForm } from "./chunks/components-DoiQjCUj.js";
8
- import { t as autoGeneratedComponents } from "./chunks/generated-BBPrKVrQ.js";
9
- import "./chunks/models-1au-LJxU.js";
8
+ import { t as autoGeneratedComponents } from "./chunks/generated-D5V4zoDT.js";
9
+ import "./chunks/models-J8qVk56_.js";
10
10
  import { n as productStore, t as ProductStoreClass } from "./chunks/stores-CB0SI1c5.js";
11
11
  import { i as slugify, n as formatPrice, r as generateId, t as formatDate } from "./chunks/utils-BgTqlQoH.js";
12
12
  import { startRestServer } from "@happyvertical/smrt-core";
@@ -2,7 +2,7 @@
2
2
  * CategoryCollection — Collection manager for {@link Category} objects.
3
3
  */
4
4
  import { SmrtCollection } from '@happyvertical/smrt-core';
5
- import { Category } from '../models/Category';
5
+ import { Category } from "../models/Category.js";
6
6
  export declare class CategoryCollection extends SmrtCollection<Category> {
7
7
  static readonly _itemClass: typeof Category;
8
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"CategoryCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/CategoryCollection.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC9D,MAAM,CAAC,QAAQ,CAAC,UAAU,kBAAY;IAEtC;;;;;;;;;;;;OAYG;IACG,iBAAiB,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;CAoB/C"}
1
+ {"version":3,"file":"CategoryCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/CategoryCollection.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAoB,CAAC;AAE9C,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC9D,MAAM,CAAC,QAAQ,CAAC,UAAU,kBAAY;IAEtC;;;;;;;;;;;;OAYG;IACG,iBAAiB,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;CAoB/C"}
@@ -4,9 +4,9 @@
4
4
  * STI framework auto-filters by `_meta_type` to return only Material rows
5
5
  * from the shared `products` table.
6
6
  */
7
- import { Material } from '../models/Material';
8
- import type { MaterialKind } from '../models/types';
9
- import { ProductCollection } from './ProductCollection';
7
+ import { Material } from "../models/Material.js";
8
+ import type { MaterialKind } from "../models/types.js";
9
+ import { ProductCollection } from "./ProductCollection.js";
10
10
  export declare class MaterialCollection extends ProductCollection {
11
11
  static readonly _itemClass: typeof Material;
12
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"MaterialCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/MaterialCollection.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,kBAAmB,SAAQ,iBAAiB;IACvD,gBAAyB,UAAU,kBAAY;IAE/C;;;;;;;;;;;OAWG;IACG,UAAU,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CAIlE"}
1
+ {"version":3,"file":"MaterialCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/MaterialCollection.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAoB,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAiB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAqB,CAAC;AAExD,qBAAa,kBAAmB,SAAQ,iBAAiB;IACvD,gBAAyB,UAAU,kBAAY;IAE/C;;;;;;;;;;;OAWG;IACG,UAAU,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CAIlE"}
@@ -1,7 +1,7 @@
1
1
  import type { Asset } from '@happyvertical/smrt-assets';
2
2
  import type { SmrtCollectionOptions } from '@happyvertical/smrt-core';
3
3
  import { SmrtJunction } from '@happyvertical/smrt-core';
4
- import { ProductAsset } from '../models/ProductAsset';
4
+ import { ProductAsset } from "../models/ProductAsset.js";
5
5
  export interface ProductAssetCollectionOptions extends SmrtCollectionOptions {
6
6
  }
7
7
  export declare class ProductAssetCollection extends SmrtJunction<ProductAsset> {
@@ -1 +1 @@
1
- {"version":3,"file":"ProductAssetCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/ProductAssetCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAMxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAQ,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;CAAG;AAE/E,qBAKa,sBAAuB,SAAQ,YAAY,CAAC,YAAY,CAAC;IACpE,MAAM,CAAC,QAAQ,CAAC,UAAU,sBAAgB;IAC1C,SAAS,CAAC,SAAS,SAAe;IAClC,SAAS,CAAC,UAAU,SAAa;IAEjC,OAAO,CAAC,wBAAwB,CAA2C;YAE7D,oBAAoB;IAS5B,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAQrE,QAAQ,CACZ,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,KAAK,EACZ,YAAY,SAAe,EAC3B,SAAS,SAAI,GACZ,OAAO,CAAC,IAAI,CAAC;IAWV,WAAW,CACf,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC;CASjB"}
1
+ {"version":3,"file":"ProductAssetCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/ProductAssetCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAMxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAQ,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAAwB,CAAC;AAGtD,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;CAAG;AAE/E,qBAKa,sBAAuB,SAAQ,YAAY,CAAC,YAAY,CAAC;IACpE,MAAM,CAAC,QAAQ,CAAC,UAAU,sBAAgB;IAC1C,SAAS,CAAC,SAAS,SAAe;IAClC,SAAS,CAAC,UAAU,SAAa;IAEjC,OAAO,CAAC,wBAAwB,CAA2C;YAE7D,oBAAoB;IAS5B,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAQrE,QAAQ,CACZ,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,KAAK,EACZ,YAAY,SAAe,EAC3B,SAAS,SAAI,GACZ,OAAO,CAAC,IAAI,CAAC;IAWV,WAAW,CACf,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC;CASjB"}
@@ -1,6 +1,6 @@
1
1
  import type { Asset } from '@happyvertical/smrt-assets';
2
2
  import { SmrtCollection } from '@happyvertical/smrt-core';
3
- import { Product } from '../models/Product';
3
+ import { Product } from "../models/Product.js";
4
4
  export declare class ProductCollection extends SmrtCollection<Product> {
5
5
  static readonly _itemClass: typeof Product;
6
6
  findByManufacturer(manufacturer: string): Promise<Product[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/ProductCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAMxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAA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,EACZ,YAAY,SAAe,EAC3B,SAAS,SAAI,GACZ,OAAO,CAAC,IAAI,CAAC;IAWV,WAAW,CACf,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC;CASjB"}
@@ -7,7 +7,7 @@
7
7
  * product vary along?" and "tell me about the size axis specifically."
8
8
  */
9
9
  import { SmrtCollection } from '@happyvertical/smrt-core';
10
- import { ProductVariant } from '../models/ProductVariant';
10
+ import { ProductVariant } from "../models/ProductVariant.js";
11
11
  export declare class ProductVariantCollection extends SmrtCollection<ProductVariant> {
12
12
  static readonly _itemClass: typeof ProductVariant;
13
13
  /** Every axis declaration for a given product, in display order. */
@@ -1 +1 @@
1
- {"version":3,"file":"ProductVariantCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/ProductVariantCollection.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBAAa,wBAAyB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC1E,MAAM,CAAC,QAAQ,CAAC,UAAU,wBAAkB;IAE5C,oEAAoE;IAC9D,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAOlE,wEAAwE;IAClE,QAAQ,CACZ,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;CAOlC"}
1
+ {"version":3,"file":"ProductVariantCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/ProductVariantCollection.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA0B,CAAC;AAE1D,qBAAa,wBAAyB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC1E,MAAM,CAAC,QAAQ,CAAC,UAAU,wBAAkB;IAE5C,oEAAoE;IAC9D,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAOlE,wEAAwE;IAClE,QAAQ,CACZ,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;CAOlC"}
@@ -4,7 +4,7 @@
4
4
  * @packageDocumentation
5
5
  */
6
6
  import { SmrtCollection } from '@happyvertical/smrt-core';
7
- import { Sku } from '../models/Sku';
7
+ import { Sku } from "../models/Sku.js";
8
8
  export declare class SkuCollection extends SmrtCollection<Sku> {
9
9
  static readonly _itemClass: typeof Sku;
10
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"SkuCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/SkuCollection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpC,qBAAa,aAAc,SAAQ,cAAc,CAAC,GAAG,CAAC;IACpD,MAAM,CAAC,QAAQ,CAAC,UAAU,aAAO;IAEjC;;;OAGG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC;IAKnD;;;OAGG;IACG,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC;IAMzD;;;;;OAKG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAItD;;;;OAIG;IACG,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAIvD,uEAAuE;IACjE,UAAU,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;CAKrD"}
1
+ {"version":3,"file":"SkuCollection.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/SkuCollection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAe,CAAC;AAEpC,qBAAa,aAAc,SAAQ,cAAc,CAAC,GAAG,CAAC;IACpD,MAAM,CAAC,QAAQ,CAAC,UAAU,aAAO;IAEjC;;;OAGG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC;IAKnD;;;OAGG;IACG,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC;IAMzD;;;;;OAKG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAItD;;;;OAIG;IACG,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAIvD,uEAAuE;IACjE,UAAU,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;CAKrD"}
@@ -1,8 +1,8 @@
1
1
  import '../../__smrt-register__.js';
2
- export { CategoryCollection } from './CategoryCollection';
3
- export { MaterialCollection } from './MaterialCollection';
4
- export { ProductAssetCollection } from './ProductAssetCollection';
5
- export { ProductCollection } from './ProductCollection';
6
- export { ProductVariantCollection } from './ProductVariantCollection';
7
- export { SkuCollection } from './SkuCollection';
2
+ export { CategoryCollection } from "./CategoryCollection.js";
3
+ export { MaterialCollection } from "./MaterialCollection.js";
4
+ export { ProductAssetCollection } from "./ProductAssetCollection.js";
5
+ export { ProductCollection } from "./ProductCollection.js";
6
+ export { ProductVariantCollection } from "./ProductVariantCollection.js";
7
+ export { SkuCollection } from "./SkuCollection.js";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/index.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAC;AAEpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/collections/index.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAC;AAEpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAsB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA4B,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAiB,CAAC"}
@@ -7,5 +7,5 @@
7
7
  export { default as ProductCard } from './components/ProductCard.svelte';
8
8
  export { default as ProductForm } from './components/ProductForm.svelte';
9
9
  export { default as CategoryManager } from './features/CategoryManager.svelte';
10
- export type { CategoryData, ProductData } from './types';
10
+ export type { CategoryData, ProductData } from "./types.js";
11
11
  //# sourceMappingURL=federation-entry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"federation-entry.d.ts","sourceRoot":"","sources":["../../../src/lib/federation-entry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAG/E,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"federation-entry.d.ts","sourceRoot":"","sources":["../../../src/lib/federation-entry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAG/E,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAS,CAAC"}
@@ -11,10 +11,10 @@ export { manifest } from '@smrt/manifest';
11
11
  export { default as createMCPServer } from '@smrt/mcp';
12
12
  export { default as setupRoutes } from '@smrt/routes';
13
13
  export type * from '@smrt/types';
14
- export * from './collections/index';
15
- export * from './components/index';
16
- export * from './generated/index';
17
- export * from './models/index';
18
- export * from './stores/index';
19
- export * from './utils/index';
14
+ export * from "./collections/index.js";
15
+ export * from "./components/index.js";
16
+ export * from "./generated/index.js";
17
+ export * from "./models/index.js";
18
+ export * from "./stores/index.js";
19
+ export * from "./utils/index.js";
20
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACtD,mBAAmB,aAAa,CAAC;AACjC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,mBAAmB,CAAC;AAElC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACtD,mBAAmB,aAAa,CAAC;AACjC,cAAc,wBAAqB,CAAC;AAEpC,cAAc,uBAAoB,CAAC;AAEnC,cAAc,sBAAmB,CAAC;AAElC,cAAc,mBAAgB,CAAC;AAE/B,cAAc,mBAAgB,CAAC;AAE/B,cAAc,kBAAe,CAAC"}
@@ -4,8 +4,8 @@
4
4
  * This replaces the missing @smrt/client virtual module with a working implementation
5
5
  * that demonstrates the intended functionality.
6
6
  */
7
- import type { ProductData } from './types';
8
- export type { ProductData } from './types';
7
+ import type { ProductData } from "./types.js";
8
+ export type { ProductData } from "./types.js";
9
9
  export interface ApiResponse<T> {
10
10
  data: T;
11
11
  success: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"mock-smrt-client.d.ts","sourceRoot":"","sources":["../../../src/lib/mock-smrt-client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,YAAY,EAAE,WAAW,EAAE,MAAM,S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AW,CAAC,GAChC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;mBA4B9B,MAAM,WACD,OAAO,CAAC,WAAW,CAAC,GAC5B,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;mBAuBnB,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;MAgBpD;IAEF,UAAU;gBACM,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;MAiB5C;CACH;AAED,wBAAgB,YAAY,CAAC,OAAO,SAAY,GAAG,aAAa,CAE/D;AAED,eAAe,YAAY,CAAC"}
@@ -10,8 +10,8 @@
10
10
  * @packageDocumentation
11
11
  */
12
12
  import { type Meta } from '@happyvertical/smrt-core';
13
- import { Product, type ProductOptions } from './Product';
14
- import { type MaterialKind, ProductType } from './types';
13
+ import { Product, type ProductOptions } from "./Product.js";
14
+ import { type MaterialKind, ProductType } from "./types.js";
15
15
  export interface MaterialOptions extends ProductOptions {
16
16
  materialKind?: MaterialKind;
17
17
  uom?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Material.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/Material.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,IAAI,EAAQ,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEzD,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAQD,qBAuBa,QAAS,SAAQ,OAAO;IAC1B,WAAW,EAAE,WAAW,CAAwB;IAUzD,8EAA8E;IAC9E,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,CAAe;IAE/C,mEAAmE;IACnE,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAU;IAE3B;;;OAGG;IACH,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,CAAO;gBAEpB,OAAO,GAAE,eAAoB;CAQ1C"}
1
+ {"version":3,"file":"Material.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/Material.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,IAAI,EAAQ,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAW,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,MAAM,YAAS,CAAC;AAEzD,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAQD,qBAuBa,QAAS,SAAQ,OAAO;IAC1B,WAAW,EAAE,WAAW,CAAwB;IAUzD,8EAA8E;IAC9E,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,CAAe;IAE/C,mEAAmE;IACnE,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAU;IAE3B;;;OAGG;IACH,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,CAAO;gBAEpB,OAAO,GAAE,eAAoB;CAQ1C"}
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { Asset } from '@happyvertical/smrt-assets';
7
7
  import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
8
- import { ProductType } from './types';
8
+ import { ProductType } from "./types.js";
9
9
  /**
10
10
  * Options for Product initialization
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/Product.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE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E,WAAW,CAAuB;IAE/C,IAAI,SAAM;IACV,WAAW,SAAM;IACjB,QAAQ,SAAM;IACd,YAAY,SAAM;IAClB,KAAK,SAAM;IACX;;;;;;;;;;OAUG;IACH,KAAK,SAAK;IACV,OAAO,UAAQ;IACf,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IAC7C,IAAI,EAAE,MAAM,EAAE,CAAM;gBAER,OAAO,GAAE,cAAmB;IAwBlC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI/C,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;YAIvD,yBAAyB;IAMjC,SAAS,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAuClD,QAAQ,CACZ,KAAK,EAAE,KAAK,EACZ,YAAY,SAAe,EAC3B,SAAS,SAAI,GACZ,OAAO,CAAC,IAAI,CAAC;IAoBV,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAiBzE"}
@@ -9,18 +9,18 @@
9
9
  * - UI components
10
10
  */
11
11
  import '../../__smrt-register__.js';
12
- export type { CategoryOptions } from './Category';
13
- export { Category } from './Category';
14
- export type { MaterialOptions } from './Material';
15
- export { Material } from './Material';
16
- export type { ProductOptions } from './Product';
17
- export { Product } from './Product';
18
- export type { ProductAssetOptions } from './ProductAsset';
19
- export { ProductAsset } from './ProductAsset';
20
- export type { ProductVariantOptions } from './ProductVariant';
21
- export { ProductVariant } from './ProductVariant';
22
- export type { SkuOptions } from './Sku';
23
- export { Sku } from './Sku';
24
- export type { MaterialKind } from './types';
25
- export { ProductType } from './types';
12
+ export type { CategoryOptions } from "./Category.js";
13
+ export { Category } from "./Category.js";
14
+ export type { MaterialOptions } from "./Material.js";
15
+ export { Material } from "./Material.js";
16
+ export type { ProductOptions } from "./Product.js";
17
+ export { Product } from "./Product.js";
18
+ export type { ProductAssetOptions } from "./ProductAsset.js";
19
+ export { ProductAsset } from "./ProductAsset.js";
20
+ export type { ProductVariantOptions } from "./ProductVariant.js";
21
+ export { ProductVariant } from "./ProductVariant.js";
22
+ export type { SkuOptions } from "./Sku.js";
23
+ export { Sku } from "./Sku.js";
24
+ export type { MaterialKind } from "./types.js";
25
+ export { ProductType } from "./types.js";
26
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,4BAA4B,CAAC;AAEpC,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,4BAA4B,CAAC;AAEpC,YAAY,EAAE,eAAe,EAAE,MAAM,eAAY,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAY,CAAC;AACtC,YAAY,EAAE,eAAe,EAAE,MAAM,eAAY,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAY,CAAC;AACtC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAW,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAW,CAAC;AACpC,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAgB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAgB,CAAC;AAC9C,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAkB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAkB,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,UAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAO,CAAC;AAC5B,YAAY,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAS,CAAC"}
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-products",
5
- "packageVersion": "0.54.2",
5
+ "packageVersion": "0.54.4",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-products:CategoryCollection": {
8
8
  "name": "categorycollection",
@@ -391,12 +391,12 @@
391
391
  "packageName": "@happyvertical/smrt-products",
392
392
  "fields": {},
393
393
  "methods": {
394
- "byLeft": {
395
- "name": "byLeft",
394
+ "byRight": {
395
+ "name": "byRight",
396
396
  "async": true,
397
397
  "parameters": [
398
398
  {
399
- "name": "leftId",
399
+ "name": "rightId",
400
400
  "type": "string",
401
401
  "optional": false
402
402
  },
@@ -410,12 +410,12 @@
410
410
  "isStatic": false,
411
411
  "isPublic": true
412
412
  },
413
- "byRight": {
414
- "name": "byRight",
413
+ "byLeft": {
414
+ "name": "byLeft",
415
415
  "async": true,
416
416
  "parameters": [
417
417
  {
418
- "name": "rightId",
418
+ "name": "leftId",
419
419
  "type": "string",
420
420
  "optional": false
421
421
  },
@@ -2857,5 +2857,6 @@
2857
2857
  "@happyvertical/smrt-assets",
2858
2858
  "@happyvertical/smrt-core",
2859
2859
  "@happyvertical/smrt-tenancy"
2860
- ]
2860
+ ],
2861
+ "stampsConstructors": true
2861
2862
  }
@@ -1,2 +1,2 @@
1
- export * from './lib/models/index';
1
+ export * from "./lib/models/index.js";
2
2
  //# sourceMappingURL=models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAoB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { a as Product, i as Material, n as ProductVariant, o as ProductType, r as ProductAsset, s as Category, t as Sku } from "./chunks/Sku-DGnzvBJQ.js";
2
- import "./chunks/models-1au-LJxU.js";
1
+ import { a as Product, i as Material, n as ProductVariant, o as ProductType, r as ProductAsset, s as Category, t as Sku } from "./chunks/Sku-BN7ydk5h.js";
2
+ import "./chunks/models-J8qVk56_.js";
3
3
  export { Category, Material, Product, ProductAsset, ProductType, ProductVariant, Sku };
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-products",
6
- "packageVersion": "0.54.2",
6
+ "packageVersion": "0.54.4",
7
7
  "sourceManifestPath": "dist/lib/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "5daf4a56ad0e2d6850b79852d409b2e9bbe6309dabd6af2d7e84a73bcf2be126",
11
- "packageJson": "1e89e1c3fa781b8d338f9746f1d06604eba5dc60dcc0a775e8d0bf370c1ccaf9",
10
+ "manifest": "73c1db53285adb4d6507d044b2078d53048c4b59206de5cf7fdcbd517fe3c6fe",
11
+ "packageJson": "4dc619ff865d3f5a948a6ea80030f57f085d12687fbccceafec75b7a32bf685b",
12
12
  "agents": "b5aa86a9c02bb81be5621ae3397ff2dedcef972a520c2ba2f56ee7abf5613b8c"
13
13
  },
14
14
  "exports": [
@@ -1,2 +1,2 @@
1
- export * from './lib/stores/index';
1
+ export * from "./lib/stores/index.js";
2
2
  //# sourceMappingURL=stores.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../src/stores.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../src/stores.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAoB,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from './lib/utils/index';
1
+ export * from "./lib/utils/index.js";
2
2
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-products",
3
- "version": "0.54.2",
3
+ "version": "0.54.4",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "SMRT products module: triple-purpose microservice template for standalone apps, federated modules, and NPM libraries",
6
6
  "author": "HappyVertical",
@@ -54,18 +54,18 @@
54
54
  "./manifest.json": "./dist/lib/manifest.json"
55
55
  },
56
56
  "dependencies": {
57
- "@happyvertical/ai": "^0.100.3",
58
- "@happyvertical/files": "^0.100.3",
59
- "@happyvertical/logger": "^0.100.3",
60
- "@happyvertical/smrt-assets": "0.54.2",
61
- "@happyvertical/smrt-core": "0.54.2",
62
- "@happyvertical/smrt-scanner": "0.54.2",
63
- "@happyvertical/smrt-svelte": "0.54.2",
64
- "@happyvertical/smrt-tenancy": "0.54.2",
65
- "@happyvertical/smrt-ui": "0.54.2",
66
- "@happyvertical/smrt-web": "0.54.2",
67
- "@happyvertical/sql": "^0.100.3",
68
- "@happyvertical/utils": "^0.100.3",
57
+ "@happyvertical/ai": "^0.102.1",
58
+ "@happyvertical/files": "^0.102.1",
59
+ "@happyvertical/logger": "^0.102.1",
60
+ "@happyvertical/smrt-assets": "0.54.4",
61
+ "@happyvertical/smrt-core": "0.54.4",
62
+ "@happyvertical/smrt-scanner": "0.54.4",
63
+ "@happyvertical/smrt-svelte": "0.54.4",
64
+ "@happyvertical/smrt-tenancy": "0.54.4",
65
+ "@happyvertical/smrt-ui": "0.54.4",
66
+ "@happyvertical/smrt-web": "0.54.4",
67
+ "@happyvertical/sql": "^0.102.1",
68
+ "@happyvertical/utils": "^0.102.1",
69
69
  "cors": "^2.8.6",
70
70
  "express": "^5.2.1"
71
71
  },
@@ -84,7 +84,7 @@
84
84
  "@types/cors": "2.8.19",
85
85
  "@types/express": "^5.0.6",
86
86
  "@types/node": "24.13.6",
87
- "@happyvertical/smrt-vitest": "0.54.2",
87
+ "@happyvertical/smrt-vitest": "0.54.4",
88
88
  "concurrently": "^10.0.5",
89
89
  "svelte": "^5.57.1",
90
90
  "svelte-check": "^4.7.6",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductAssetCollection-DZseO7Rl.js","names":[],"sources":["../../../src/lib/collections/ProductAssetCollection.ts"],"sourcesContent":["import type { Asset } from '@happyvertical/smrt-assets';\nimport {\n addOwnedAssetFromCollection,\n getOwnedAssetsFromCollection,\n removeOwnedAssetFromCollection,\n} from '@happyvertical/smrt-assets';\nimport type { SmrtCollectionOptions } from '@happyvertical/smrt-core';\nimport { SmrtJunction, smrt } from '@happyvertical/smrt-core';\nimport { ProductAsset } from '../models/ProductAsset';\nimport type { ProductCollection } from './ProductCollection';\n\nexport interface ProductAssetCollectionOptions extends SmrtCollectionOptions {}\n\n@smrt({\n api: false,\n mcp: false,\n cli: false,\n})\nexport class ProductAssetCollection extends SmrtJunction<ProductAsset> {\n static readonly _itemClass = ProductAsset;\n protected leftField = 'productId';\n protected rightField = 'assetId';\n\n private productCollectionPromise: Promise<ProductCollection> | null = null;\n\n private async getProductCollection(): Promise<ProductCollection> {\n if (!this.productCollectionPromise) {\n const { ProductCollection } = await import('./ProductCollection');\n this.productCollectionPromise = ProductCollection.create({ db: this.db });\n }\n\n return this.productCollectionPromise;\n }\n\n async getAssets(productId: string, relationship?: string): Promise<Asset[]> {\n return getOwnedAssetsFromCollection(\n await this.getProductCollection(),\n productId,\n relationship,\n );\n }\n\n async addAsset(\n productId: string,\n asset: Asset,\n relationship = 'attachment',\n sortOrder = 0,\n ): Promise<void> {\n await addOwnedAssetFromCollection(\n await this.getProductCollection(),\n 'Product',\n productId,\n asset,\n relationship,\n sortOrder,\n );\n }\n\n async removeAsset(\n productId: string,\n assetId: string,\n relationship?: string,\n ): Promise<void> {\n await removeOwnedAssetFromCollection(\n await this.getProductCollection(),\n 'Product',\n productId,\n assetId,\n relationship,\n );\n }\n}\n"],"mappings":";;;;;;;AAkBO,IAAA,yBAAA,MAAM,+BAA+B,aAA2B;CACrE,OAAgB,aAAa;CAC7B,YAAsB;CACtB,aAAuB;CAEvB,2BAAsE;CAEtE,MAAc,uBAAmD;EAC/D,IAAI,CAAC,KAAK,0BAA0B;GAClC,MAAM,EAAE,sBAAsB,MAAM,OAAO,kCAAA,CAAA,MAAA,MAAA,EAAA,CAAA;GAC3C,KAAK,2BAA2B,kBAAkB,OAAO,EAAE,IAAI,KAAK,GAAG,CAAC;EAC1E;EAEA,OAAO,KAAK;CACd;CAEA,MAAM,UAAU,WAAmB,cAAyC;EAC1E,OAAO,6BACL,MAAM,KAAK,qBAAqB,GAChC,WACA,YACF;CACF;CAEA,MAAM,SACJ,WACA,OACA,eAAe,cACf,YAAY,GACG;EACf,MAAM,4BACJ,MAAM,KAAK,qBAAqB,GAChC,WACA,WACA,OACA,cACA,SACF;CACF;CAEA,MAAM,YACJ,WACA,SACA,cACe;EACf,MAAM,+BACJ,MAAM,KAAK,qBAAqB,GAChC,WACA,WACA,SACA,YACF;CACF;AACF;qCA1DC,KAAK;CACJ,KAAK;CACL,KAAK;CACL,KAAK;AACP,CAAC,CAAA,GAAA,sBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Sku-DGnzvBJQ.js","names":[],"sources":["../../../src/lib/models/Category.ts","../../../src/lib/models/types.ts","../../../src/lib/models/Product.ts","../../../src/lib/models/Material.ts","../../../src/lib/models/ProductAsset.ts","../../../src/lib/models/ProductVariant.ts","../../../src/lib/models/Sku.ts"],"sourcesContent":["/**\n * Product knowledge base category model\n *\n * SMRT auto-generates REST APIs, MCP tools, and TypeScript clients from this class.\n */\n\nimport {\n foreignKey,\n SmrtObject,\n type SmrtObjectOptions,\n smrt,\n} from '@happyvertical/smrt-core';\nimport { TenantScoped, tenantId } from '@happyvertical/smrt-tenancy';\n\n/**\n * Options for Category initialization\n */\nexport interface CategoryOptions extends SmrtObjectOptions {\n tenantId?: string | null;\n name?: string;\n description?: string;\n parentId?: string;\n level?: number;\n productCount?: number;\n active?: boolean;\n}\n\n/**\n * Product knowledge base category for organizing product information.\n *\n * Optional tenancy — categories may be shared globally (tenantId=null) or\n * scoped to a tenant. Hierarchical via parentId.\n */\n@TenantScoped({ mode: 'optional' })\n@smrt({\n tableStrategy: 'sti',\n // See the matching note on `Product`: the tenant-aware default key\n // (smrt#2360) lets two tenants share a category slug.\n api: {\n include: ['list', 'get', 'create', 'update'], // Standard CRUD except delete\n },\n mcp: {\n include: ['list', 'get'], // AI tools for category discovery\n },\n cli: true, // Enable CLI commands for admin\n})\nexport class Category extends SmrtObject {\n /**\n * Tenant ID for multi-tenant isolation.\n * Nullable to support both tenant-scoped and global categories.\n */\n @tenantId({ nullable: true })\n tenantId: string | null = null;\n\n name = '';\n description = '';\n @foreignKey('Category')\n parentId?: string; // For hierarchical categories\n level = 0; // Category depth in hierarchy\n productCount = 0; // Number of products in this category\n active = true;\n\n constructor(options: CategoryOptions = {}) {\n super(options);\n if (options.tenantId !== undefined) this.tenantId = options.tenantId;\n this.name = options.name || '';\n this.description = options.description || '';\n this.parentId = options.parentId;\n this.level = options.level || 0;\n this.productCount = options.productCount || 0;\n this.active = options.active !== undefined ? options.active : true;\n }\n}\n","/**\n * Shared types for the products package.\n *\n * @packageDocumentation\n */\n\n/**\n * Discriminator for Product STI subtypes.\n *\n * Industry-vertical templates extend `Product` with their own STI subtypes\n * (apparel uses `Style`/`Makeup`; furniture might use `Design`/`Finish`;\n * automotive `Model`/`Trim`) — the upstream package only ships the truly\n * generic primitives:\n *\n * - {@link ProductType.PRODUCT} — plain catalog item (base)\n * - {@link ProductType.MATERIAL} — raw input consumed by manufacturing\n * - {@link ProductType.ASSEMBLY} — an item that is made from a bill of\n * materials; the `Assembly` subtype itself lives in\n * `@happyvertical/smrt-manufacturing`\n *\n * The axis-declaration concept (\"this product varies along `size` with\n * values `[XS, S, M, L, XL]`\") is NOT a Product STI subtype — it lives in\n * its own model, {@link ProductVariant}, with a separate table. Per-SKU\n * value pins live on `Sku.attributes` (also in this package — `Sku` was\n * relocated from `@happyvertical/smrt-inventory` to here in Phase 1 so\n * every catalog primitive lives under one roof; inventory only holds\n * stock levels and movements now).\n */\nexport enum ProductType {\n /** Generic catalog item (default). */\n PRODUCT = 'product',\n /** A raw input — fabric, trim, packaging, etc. — consumed by manufacturing. */\n MATERIAL = 'material',\n /**\n * An item that is made: the `Assembly` subtype in\n * `@happyvertical/smrt-manufacturing`, built from its bill of materials.\n */\n ASSEMBLY = 'assembly',\n}\n\n/**\n * High-level classification of a {@link ProductType.MATERIAL} item.\n *\n * Open string so consumers can extend with vertical-specific kinds without\n * an enum change. The `(string & {})` branch preserves the literal-string\n * autocomplete suggestions in IDEs — a bare `| string` would collapse the\n * whole union to `string` and erase the named hints (same pattern as\n * `StockMovementReason` in `@happyvertical/smrt-inventory`).\n */\nexport type MaterialKind =\n | 'fabric'\n | 'trim'\n | 'thread'\n | 'label'\n | 'packaging'\n | 'component'\n | (string & {});\n","/**\n * Product knowledge base model\n *\n * SMRT auto-generates REST APIs, MCP tools, and TypeScript clients from this class.\n */\n\nimport type { Asset } from '@happyvertical/smrt-assets';\nimport {\n assertValidOwnedAssetRelationship,\n assertValidOwnedAssetSortOrder,\n resolveOwnedAssetsById,\n} from '@happyvertical/smrt-assets';\nimport {\n SmrtObject,\n type SmrtObjectOptions,\n smrt,\n} from '@happyvertical/smrt-core';\nimport {\n getCurrentTenant,\n TenantScoped,\n tenantId,\n} from '@happyvertical/smrt-tenancy';\nimport { ProductType } from './types';\n\n/**\n * Options for Product initialization\n */\nexport interface ProductOptions extends SmrtObjectOptions {\n tenantId?: string | null;\n productType?: ProductType;\n name?: string;\n description?: string;\n category?: string;\n manufacturer?: string;\n model?: string;\n price?: number;\n inStock?: boolean;\n specifications?: Record<string, unknown>;\n tags?: string[];\n}\n\n/**\n * Product information for knowledge base queries.\n *\n * STI base — subclasses (e.g. `Material` upstream, `Style`/`Makeup` in the\n * apparel template) share this table via the `_meta_type` discriminator\n * and `productType` field. Optional tenancy lets the same package serve\n * shared global catalogs OR per-merchant catalogs.\n */\n@TenantScoped({ mode: 'optional' })\n@smrt({\n tableStrategy: 'sti',\n // No `conflictColumns` override: since smrt#2360 a tenant-scoped STI base\n // keys on `(tenant_id, slug, context, _meta_type)` by default — schema\n // index and runtime upsert alike — so two tenants can each own the same\n // slug + type, and a re-save within one tenant still updates in place.\n api: {\n include: ['list', 'get', 'create', 'update'], // Standard CRUD except delete\n },\n mcp: {\n include: ['list', 'get'], // AI tools for product discovery\n },\n cli: { skipApiCheck: true }, // Enable CLI commands for admin\n})\nexport class Product extends SmrtObject {\n /**\n * Tenant ID for multi-tenant isolation.\n * Nullable to support both tenant-scoped and global catalogs.\n */\n @tenantId({ nullable: true })\n tenantId: string | null = null;\n\n /**\n * STI discriminator. Subclasses override this with their type.\n */\n productType: ProductType = ProductType.PRODUCT;\n\n name = '';\n description = '';\n category = ''; // Reference to category\n manufacturer = '';\n model = '';\n /**\n * Catalog price in **integer minor units** (cents, satoshis).\n *\n * Money is exact, so it is stored as minor units and never as a float —\n * `$19.99` is `1999`. An integer literal is what maps this to an INTEGER\n * column; writing `19.99` here is the bug, and PostgreSQL rejects it with\n * `22P02` while SQLite's affinity silently stores it (#2361).\n *\n * `Material.costPerUnit` is a `Meta<number>` decimal in `_meta_data` rather\n * than a column, so it is unaffected by this rule.\n */\n price = 0;\n inStock = true;\n specifications: Record<string, unknown> = {};\n tags: string[] = [];\n\n constructor(options: ProductOptions = {}) {\n super(options);\n if (options.tenantId !== undefined) this.tenantId = options.tenantId;\n // Treat `null` like `undefined`: existing product rows written\n // before the `product_type` column existed hydrate with the field\n // as SQL `NULL`, and without this guard the SmrtObject loader would\n // overwrite the `ProductType.PRODUCT` initializer with `null`. The\n // STI discriminator `_meta_type` still identifies the row's\n // subtype; `productType` is the secondary human-readable label and\n // should fall back to the base default for legacy rows.\n if (options.productType !== undefined && options.productType !== null) {\n this.productType = options.productType;\n }\n this.name = options.name || '';\n this.description = options.description || '';\n this.category = options.category || '';\n this.manufacturer = options.manufacturer || '';\n this.model = options.model || '';\n this.price = options.price || 0;\n this.inStock = options.inStock !== undefined ? options.inStock : true;\n this.specifications = options.specifications || {};\n this.tags = options.tags || [];\n }\n\n async getSpecification(key: string): Promise<unknown> {\n return this.specifications[key];\n }\n\n async updateSpecification(key: string, value: unknown): Promise<void> {\n this.specifications[key] = value;\n }\n\n private async getProductAssetCollection() {\n const { ProductAssetCollection } = await import(\n '../collections/ProductAssetCollection'\n );\n return ProductAssetCollection.create({ db: this.db });\n }\n async getAssets(relationship?: string): Promise<Asset[]> {\n if (!this.id) {\n return [];\n }\n\n const productAssets = await this.getProductAssetCollection();\n // Don't pass `this.tenantId` here. ProductAsset is @TenantScoped, so the\n // tenancy interceptor auto-filters the underlying list() by the active\n // context. Passing `this.tenantId` would apply a second explicit filter on\n // TOP of the interceptor's — and when this Product is a global/shared row\n // (`tenantId === null`), that second filter would drop every per-tenant\n // link to it. The interceptor is the right boundary: in a tenant scope it\n // returns that tenant's links; outside any scope it returns everything. See\n // the `ProductAsset` model comment about cross-tenant linking.\n const linkedAssets = await productAssets.byLeft(\n this.id,\n relationship ? { relationship } : {},\n );\n\n // Use the ACTIVE tenant context's tenantId, not `this.tenantId`,\n // when resolving the underlying assets. `resolveOwnedAssetsById`\n // treats its `tenantId` arg as the caller's identity: when set, it\n // enters `withSystemContext` to bypass the interceptor and then\n // includes both that-tenant-owned AND global (tenantId === null)\n // assets in the visible set. Passing `this.tenantId` would force\n // a global Product (`tenantId === null`) running inside a tenant\n // request into the \"no caller tenant\" branch — the interceptor\n // would then filter to only the tenant's own assets and drop\n // every global asset linked to the shared product. Reading the\n // active context fixes both directions: tenant requests see\n // tenant + global assets; system requests see everything.\n const ctxTenantId = getCurrentTenant()?.tenantId ?? null;\n return resolveOwnedAssetsById(\n this.db,\n linkedAssets.map((link) => link.assetId),\n ctxTenantId,\n );\n }\n\n async addAsset(\n asset: Asset,\n relationship = 'attachment',\n sortOrder = 0,\n ): Promise<void> {\n if (!this.id || !asset.id) {\n throw new Error('Cannot associate unsaved product or asset');\n }\n\n assertValidOwnedAssetRelationship(relationship);\n assertValidOwnedAssetSortOrder(sortOrder);\n\n const productAssets = await this.getProductAssetCollection();\n // Same rationale as `getAssets` — the interceptor's auto-populate sets the\n // new row's `tenantId` from the active context, so we don't hard-wire\n // `this.tenantId`. When this Product is global (`tenantId === null`) but a\n // tenant is linking it, the link should land under that tenant, not under\n // the global namespace.\n await productAssets.attach(this.id, asset.id, {\n relationship,\n sortOrder,\n });\n }\n\n async removeAsset(assetId: string, relationship?: string): Promise<void> {\n if (!this.id) {\n return;\n }\n\n const productAssets = await this.getProductAssetCollection();\n // Tenant-scoped delete: pass only the relationship filter and let the\n // interceptor scope the underlying list() to the active tenant, rather\n // than constraining to `this.tenantId` (which on a global product would\n // never match a tenant-owned link). System-style callers without a tenant\n // context sweep every matching row — the existing `detach` semantics.\n await productAssets.detach(\n this.id,\n assetId,\n relationship ? { relationship } : {},\n );\n }\n}\n","/**\n * Material — STI subtype of Product representing a raw input consumed by\n * manufacturing: fabric, thread, trim, labels, packaging, components.\n *\n * Materials are first-class products in the catalog (the SAP/NetSuite pattern):\n * they have a name, description, vendor, unit cost, and live in inventory just\n * like finished goods. Bills of materials in `@happyvertical/smrt-manufacturing`\n * reference Materials by id.\n *\n * @packageDocumentation\n */\n\nimport { type Meta, smrt } from '@happyvertical/smrt-core';\nimport { TenantScoped } from '@happyvertical/smrt-tenancy';\nimport { Product, type ProductOptions } from './Product';\nimport { type MaterialKind, ProductType } from './types';\n\nexport interface MaterialOptions extends ProductOptions {\n materialKind?: MaterialKind;\n uom?: string;\n costPerUnit?: number;\n}\n\n// @TenantScoped is registered per concrete class, so inheriting from\n// Product is NOT enough — `MaterialCollection.list()` passes 'Material'\n// (not 'Product') to the interceptor, which then fails its\n// `isTenantScopedClass(className)` lookup and skips tenant auto-filter\n// + auto-populate. Repeat the decorator here so material rows\n// participate in the same tenant isolation as their Product parent.\n@TenantScoped({ mode: 'optional' })\n// SECURITY (S5 #1406): @smrt() generation config is ALSO registered per\n// concrete class and is NOT inherited from the STI parent. An empty\n// `@smrt()` here would resolve `getConfig('Material').api/.mcp` to\n// `undefined`, which the REST + MCP generators treat as \"expose\n// EVERYTHING\" — including `delete`, `create`, and `update` MCP tools —\n// even though the `Product` base deliberately restricts itself to CRUD\n// (no delete) over REST and read-only (`list`/`get`) over MCP. The\n// products `mcp.ts` generator enumerates the whole registry, so a\n// silently-wide-open Material surface ships the moment the package's own\n// server is generated. Re-declare the parent's restricted posture so the\n// STI child matches its base — and so consumers copying this canonical\n// subtype example (apparel `Style`/`Makeup`, automotive `Model`/`Trim`,\n// …) inherit the secure pattern instead of an accidental open surface.\n@smrt({\n api: {\n include: ['list', 'get', 'create', 'update'], // no delete, matches Product\n },\n mcp: {\n include: ['list', 'get'], // read-only AI tools, matches Product\n },\n cli: { skipApiCheck: true },\n})\nexport class Material extends Product {\n override productType: ProductType = ProductType.MATERIAL;\n\n // STI child-specific fields use the `Meta<T>` type wrapper rather than\n // the runtime `@meta()` decorator. The scanner detects the wrapper at\n // build time (via the type annotation) and emits the field with\n // `type: 'meta'` in the manifest, which routes it through `_meta_data`\n // JSON storage at schema-generation time. The runtime decorator path\n // doesn't reach the manifest, so STI children that only use `@meta()`\n // get materialized as ordinary columns on the parent's table.\n\n /** Classification — fabric, trim, thread, label, packaging, component, ... */\n materialKind: Meta<MaterialKind> = 'component';\n\n /** Unit of measure — \"yards\", \"meters\", \"each\", \"grams\", \"lbs\". */\n uom: Meta<string> = 'each';\n\n /**\n * Latest known cost per UOM. For sophisticated cost rollup, manufacturing\n * may pull from purchase-order history instead of this denormalised value.\n */\n costPerUnit: Meta<number> = 0.0;\n\n constructor(options: MaterialOptions = {}) {\n super(options);\n if (options.materialKind !== undefined)\n this.materialKind = options.materialKind;\n if (options.uom !== undefined) this.uom = options.uom;\n if (options.costPerUnit !== undefined)\n this.costPerUnit = options.costPerUnit;\n }\n}\n","import type { SmrtObjectOptions } from '@happyvertical/smrt-core';\nimport {\n crossPackageRef,\n field,\n foreignKey,\n SmrtObject,\n smrt,\n} from '@happyvertical/smrt-core';\nimport { TenantScoped, tenantId } from '@happyvertical/smrt-tenancy';\n\nexport interface ProductAssetOptions extends SmrtObjectOptions {\n tenantId?: string | null;\n productId?: string;\n assetId?: string;\n relationship?: string;\n sortOrder?: number;\n}\n\n@TenantScoped({ mode: 'optional' })\n@smrt({\n tableName: 'product_assets',\n // tenant_id is included so two tenants can independently link the same\n // shared product/asset under the same relationship without their rows\n // colliding (or worse, one tenant silently overwriting another's link\n // via UPSERT).\n conflictColumns: ['product_id', 'asset_id', 'relationship', 'tenant_id'],\n api: false,\n mcp: false,\n cli: false,\n})\nexport class ProductAsset extends SmrtObject {\n @tenantId({ nullable: true })\n tenantId: string | null = null;\n\n @foreignKey('Product', { required: true })\n productId = '';\n\n @crossPackageRef('@happyvertical/smrt-assets:Asset', { required: true })\n assetId = '';\n\n @field({ required: true })\n relationship = 'attachment';\n\n @field()\n sortOrder = 0;\n\n constructor(options: ProductAssetOptions = {}) {\n super(options);\n if (options.tenantId !== undefined) this.tenantId = options.tenantId;\n if (options.productId) this.productId = options.productId;\n if (options.assetId) this.assetId = options.assetId;\n if (options.relationship) this.relationship = options.relationship;\n if (options.sortOrder !== undefined) this.sortOrder = options.sortOrder;\n }\n}\n","/**\n * ProductVariant — declarative description of one axis along which a\n * product's SKUs differ.\n *\n * A `ProductVariant` row says \"for product X, axis Y has the following\n * allowed values\". The actual per-SKU value lives on `Sku.attributes`\n * (also in this package — `Sku` was relocated to `@happyvertical/smrt-products`\n * in Phase 1; inventory only holds stock motion now), keyed by `axisName`.\n * This split keeps the axis catalog (form choices, UI grouping, ordering)\n * separate from the per-unit instances.\n *\n * Deliberately generic. `axisName` is free-form — apparel teams might\n * use `'size'` and `'color'`, automotive teams `'trim'` and `'engine'`,\n * CPG teams `'packSize'` and `'flavor'`. The framework never inspects\n * the axis name.\n *\n * NOT a Product STI subtype — it's its own model with its own table,\n * because the shape (axis declaration) doesn't fit the Product schema\n * (no name, no price, no category — it's metadata about a Product, not\n * a Product itself).\n *\n * @packageDocumentation\n */\n\nimport {\n field,\n SmrtObject,\n type SmrtObjectOptions,\n smrt,\n} from '@happyvertical/smrt-core';\nimport { TenantScoped, tenantId } from '@happyvertical/smrt-tenancy';\n\n/**\n * Options accepted by the {@link ProductVariant} constructor.\n */\nexport interface ProductVariantOptions extends SmrtObjectOptions {\n tenantId?: string | null;\n productId?: string;\n axisName?: string;\n label?: string;\n allowedValues?: string[] | string;\n sortOrder?: number;\n}\n\n@TenantScoped({ mode: 'optional' })\n@smrt({\n tableName: 'product_variants',\n conflictColumns: ['product_id', 'axis_name', 'tenant_id'],\n api: { include: ['list', 'get', 'create', 'update'] },\n mcp: { include: ['list', 'get'] },\n cli: { skipApiCheck: true },\n})\nexport class ProductVariant extends SmrtObject {\n /** Tenant scope. `null` means the variant axis is global. */\n @tenantId({ nullable: true })\n tenantId: string | null = null;\n\n /**\n * Plain string reference to the {@link Product} this axis belongs to\n * (or any Product STI subtype — `Material`, or vertical subtypes\n * defined in templates such as the apparel `Style` / `Makeup`).\n */\n @field({ required: true })\n productId: string = '';\n\n /**\n * The name of the axis (`'size'`, `'color'`, `'finish'`, `'voltage'`,\n * `'packSize'`, …). Free-form — the framework treats this as opaque.\n */\n @field({ required: true })\n axisName: string = '';\n\n /** Optional human-friendly label for forms / UIs (defaults to `axisName`). */\n label: string = '';\n\n /**\n * Allowed values for this axis, stored as a JSON string. Named\n * `allowedValues` (rather than `values`) because the unprefixed name\n * collides with the SQL `VALUES` keyword on several engines. Use\n * {@link getValues} / {@link setValues} to round-trip the array form.\n */\n allowedValues: string = '[]';\n\n /** Sort order for displaying multiple axes in a consistent column order. */\n sortOrder: number = 0;\n\n constructor(options: ProductVariantOptions = {}) {\n super(options);\n if (options.tenantId !== undefined) this.tenantId = options.tenantId;\n if (options.productId !== undefined) this.productId = options.productId;\n if (options.axisName !== undefined) this.axisName = options.axisName;\n if (options.label !== undefined) this.label = options.label;\n if (options.allowedValues !== undefined)\n this.setValues(options.allowedValues);\n if (options.sortOrder !== undefined) this.sortOrder = options.sortOrder;\n\n // Default the label to axisName when no explicit label was supplied.\n // The field docstring promises this behavior and admin UIs render\n // `variant.label` directly; without this fallback an axis declared\n // as `{ axisName: 'size' }` would render with a blank label.\n if (!this.label && this.axisName) {\n this.label = this.axisName;\n }\n }\n\n /**\n * Parse and return the {@link allowedValues} JSON array. Returns an\n * empty array if the stored value cannot be parsed as an array.\n */\n getValues(): string[] {\n if (!this.allowedValues) return [];\n try {\n const parsed = JSON.parse(this.allowedValues);\n return Array.isArray(parsed) ? parsed.map((value) => String(value)) : [];\n } catch {\n return [];\n }\n }\n\n /**\n * Serialize the allowed values back into the stored\n * {@link allowedValues} string. Accepts either an array or a\n * pre-serialized JSON string.\n */\n setValues(value: string[] | string): void {\n if (typeof value === 'string') {\n this.allowedValues = value;\n return;\n }\n this.allowedValues = JSON.stringify(Array.isArray(value) ? value : []);\n }\n}\n","/**\n * Sku — smallest sellable and countable unit.\n *\n * A SKU is the concrete catalog row that downstream inventory counts.\n * It references a higher-level concept in this same package (a\n * {@link Product} or any of its STI subtypes) via the plain string\n * `productId` field. The same pattern serves apparel (one SKU per\n * size/color), furniture (one SKU per finish), automotive parts,\n * grocery (one SKU per pack size), or any other vertical that needs\n * to count discrete units.\n *\n * Axis values such as `{ size: 'M', color: 'navy' }`, `{ finish: 'walnut' }`,\n * or `{ packSize: '12oz' }` are stored as opaque JSON in `attributes`;\n * the declarative axis catalog lives in {@link ProductVariant} in this\n * same package.\n *\n * Stock balance and movement history for a SKU live in\n * `@happyvertical/smrt-inventory` as `StockLevel` and `StockMovement`.\n *\n * @packageDocumentation\n */\n\nimport {\n field,\n SmrtObject,\n type SmrtObjectOptions,\n smrt,\n} from '@happyvertical/smrt-core';\nimport { TenantScoped, tenantId } from '@happyvertical/smrt-tenancy';\n\n/**\n * Options accepted by the {@link Sku} constructor.\n */\nexport interface SkuOptions extends SmrtObjectOptions {\n tenantId?: string | null;\n productId?: string;\n code?: string;\n barcode?: string;\n name?: string;\n attributes?: Record<string, unknown> | string;\n weightGrams?: number;\n parentSkuId?: string;\n active?: boolean;\n}\n\n@TenantScoped({ mode: 'optional' })\n@smrt({\n tableName: 'product_skus',\n conflictColumns: ['code', 'tenant_id'],\n api: { include: ['list', 'get', 'create', 'update'] },\n mcp: { include: ['list', 'get'] },\n cli: { skipApiCheck: true },\n})\nexport class Sku extends SmrtObject {\n /** Tenant scope. `null` means the SKU is a global record. */\n @tenantId({ nullable: true })\n tenantId: string | null = null;\n\n /**\n * Plain string reference to a row in this package — typically a\n * `Product` id (or any of its STI subtypes, such as `Material`\n * upstream or `Style` / `Makeup` in the apparel template).\n *\n * Marked required so the framework rejects a save with `productId`\n * empty or unset. Without this, downstream consumers (inventory\n * stock motion, manufacturing BOM resolution) would have to filter\n * out orphan SKU rows that point at no product — a sharp footgun\n * the moment one slips through. The `@field({ required: true })`\n * decorator also surfaces the constraint in generated REST/MCP\n * schemas.\n */\n @field({ required: true })\n productId: string = '';\n\n /**\n * Stable, human-meaningful identifier such as a UPC, internal SKU\n * code, or part number. Together with `tenantId` this is the natural\n * key (`conflictColumns: ['code', 'tenant_id']`), so re-saving an\n * identical row is an upsert rather than a UNIQUE violation.\n */\n @field({ required: true })\n code: string = '';\n\n /** Optional scannable barcode (EAN/UPC/Code-128/etc.). */\n barcode: string = '';\n\n /** Display name for UIs. Optional — `code` is enough for machines. */\n name: string = '';\n\n /**\n * Axis values for this SKU expressed as JSON, e.g. `{ size: 'M' }`,\n * `{ finish: 'walnut' }`, or `{ voltage: '230V' }`.\n *\n * The persisted column type is text; use {@link getAttributes} and\n * {@link setAttributes} to round-trip parsed values without worrying\n * about parse errors.\n */\n attributes: string = '{}';\n\n /** Optional physical weight in grams for shipping / cost calculations. */\n @field({ type: 'decimal' })\n weightGrams: number = 0.0;\n\n /**\n * Optional self-reference for bundles / kits — set to the id of the\n * \"parent\" SKU that this SKU is a component of.\n */\n parentSkuId: string = '';\n\n /**\n * Soft-active flag. Inactive SKUs stay queryable for history but\n * should not be offered for sale or production planning.\n */\n active: boolean = true;\n\n constructor(options: SkuOptions = {}) {\n super(options);\n if (options.tenantId !== undefined) this.tenantId = options.tenantId;\n if (options.productId !== undefined) this.productId = options.productId;\n if (options.code !== undefined) this.code = options.code;\n if (options.barcode !== undefined) this.barcode = options.barcode;\n if (options.name !== undefined) this.name = options.name;\n if (options.attributes !== undefined)\n this.setAttributes(options.attributes);\n if (options.weightGrams !== undefined)\n this.weightGrams = options.weightGrams;\n if (options.parentSkuId !== undefined)\n this.parentSkuId = options.parentSkuId;\n if (options.active !== undefined) this.active = options.active;\n }\n\n /**\n * Parse and return the {@link attributes} JSON. Returns an empty\n * object if the stored value is invalid JSON so callers don't have\n * to wrap every read in a try/catch.\n */\n getAttributes(): Record<string, unknown> {\n if (!this.attributes) return {};\n try {\n const parsed = JSON.parse(this.attributes);\n return parsed && typeof parsed === 'object' && !Array.isArray(parsed)\n ? (parsed as Record<string, unknown>)\n : {};\n } catch {\n return {};\n }\n }\n\n /**\n * Serialize axis values back into the stored {@link attributes}\n * string. Accepts either an object (will be `JSON.stringify`'d) or a\n * raw JSON string that the caller has already serialized.\n */\n setAttributes(value: Record<string, unknown> | string): void {\n if (typeof value === 'string') {\n this.attributes = value;\n return;\n }\n this.attributes = JSON.stringify(value ?? {});\n }\n}\n"],"mappings":";;;;;;;;;;AA8CO,IAAA,WAAA,MAAM,iBAAiB,WAAW;;;;;CAKvC,WAC0B;CAE1B,OAAO;CACP,cAAc;CACd;CAEA,QAAQ;CACR,eAAe;CACf,SAAS;CAET,YAAY,UAA2B,CAAC,GAAG;EACzC,MAAM,OAAO;EACb,IAAI,QAAQ,aAAa,KAAA,GAAW,KAAK,WAAW,QAAQ;EAC5D,KAAK,OAAO,QAAQ,QAAQ;EAC5B,KAAK,cAAc,QAAQ,eAAe;EAC1C,KAAK,WAAW,QAAQ;EACxB,KAAK,QAAQ,QAAQ,SAAS;EAC9B,KAAK,eAAe,QAAQ,gBAAgB;EAC5C,KAAK,SAAS,QAAQ,WAAW,KAAA,IAAY,QAAQ,SAAS;CAChE;AACF;YArBG,SAAS,EAAE,UAAU,KAAK,CAAC,CAAA,GAAA,SAAA,WAAA,YAAA,KAAA,CAAA;YAK3B,WAAW,UAAU,CAAA,GAAA,SAAA,WAAA,YAAA,KAAA,CAAA;uBAvBvB,aAAa,EAAE,MAAM,WAAW,CAAC,GACjC,KAAK;CACJ,eAAe;CAGf,KAAK,EACH,SAAS;EAAC;E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