@happyvertical/smrt-inventory 0.57.46 → 0.57.47

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-inventory",
5
- "packageVersion": "0.57.46",
5
+ "packageVersion": "0.57.47",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-inventory:InventoryLocationCollection": {
8
8
  "name": "inventorylocationcollection",
@@ -91,6 +91,11 @@
91
91
  "extendsTypeArg": "InventoryLocation",
92
92
  "exportName": "InventoryLocationCollection",
93
93
  "collectionExportName": "InventoryLocationCollectionCollection",
94
+ "collectionOf": "@happyvertical/smrt-inventory:InventoryLocation",
95
+ "inheritedExposure": [
96
+ "api",
97
+ "mcp"
98
+ ],
94
99
  "schema": {
95
100
  "tableName": "inventory_locations",
96
101
  "ddl": "CREATE TABLE IF NOT EXISTS \"inventory_locations\" (\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 \"code\" TEXT NOT NULL DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"kind\" TEXT DEFAULT 'warehouse',\n \"place_id\" TEXT DEFAULT '',\n \"active\" BOOLEAN DEFAULT TRUE\n);",
@@ -243,6 +248,12 @@
243
248
  "extendsTypeArg": "Lot",
244
249
  "exportName": "LotCollection",
245
250
  "collectionExportName": "LotCollectionCollection",
251
+ "collectionOf": "@happyvertical/smrt-inventory:Lot",
252
+ "inheritedExposure": [
253
+ "api",
254
+ "mcp",
255
+ "cli"
256
+ ],
246
257
  "schema": {
247
258
  "tableName": "inventory_lots",
248
259
  "ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lots\" (\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 \"sku_id\" TEXT,\n \"kind\" TEXT DEFAULT 'lot',\n \"lot_number\" TEXT NOT NULL DEFAULT '',\n \"search_key\" TEXT DEFAULT '',\n \"identity_key\" TEXT NOT NULL DEFAULT '',\n \"unique_number\" BOOLEAN DEFAULT FALSE,\n \"received_qty\" REAL,\n \"unit\" TEXT DEFAULT '',\n \"source_type\" TEXT DEFAULT '',\n \"source_id\" TEXT DEFAULT '',\n \"attributes\" TEXT,\n \"status\" TEXT DEFAULT 'active',\n \"received_at\" TIMESTAMP,\n \"received_by_profile_id\" UUID,\n \"last_used_at\" TIMESTAMP\n);",
@@ -440,6 +451,12 @@
440
451
  "extendsTypeArg": "LotCorrection",
441
452
  "exportName": "LotCorrectionCollection",
442
453
  "collectionExportName": "LotCorrectionCollectionCollection",
454
+ "collectionOf": "@happyvertical/smrt-inventory:LotCorrection",
455
+ "inheritedExposure": [
456
+ "api",
457
+ "mcp",
458
+ "cli"
459
+ ],
443
460
  "schema": {
444
461
  "tableName": "inventory_lot_corrections",
445
462
  "ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_corrections\" (\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 \"lot_id\" UUID NOT NULL,\n \"kind\" TEXT NOT NULL DEFAULT 'attribute',\n \"field\" TEXT DEFAULT '',\n \"old_value\" TEXT,\n \"new_value\" TEXT,\n \"reason\" TEXT NOT NULL,\n \"usage_id\" TEXT,\n \"document_id\" TEXT,\n \"actor_profile_id\" UUID,\n \"corrected_at\" TIMESTAMP\n);",
@@ -606,6 +623,12 @@
606
623
  "extendsTypeArg": "LotDocument",
607
624
  "exportName": "LotDocumentCollection",
608
625
  "collectionExportName": "LotDocumentCollectionCollection",
626
+ "collectionOf": "@happyvertical/smrt-inventory:LotDocument",
627
+ "inheritedExposure": [
628
+ "api",
629
+ "mcp",
630
+ "cli"
631
+ ],
609
632
  "schema": {
610
633
  "tableName": "inventory_lot_documents",
611
634
  "ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_documents\" (\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 \"lot_id\" UUID NOT NULL,\n \"asset_id\" UUID,\n \"role\" TEXT DEFAULT 'certificate',\n \"attached_at\" TIMESTAMP,\n \"attached_by_profile_id\" UUID,\n \"detached_at\" TIMESTAMP,\n \"detached_by_profile_id\" UUID\n);",
@@ -818,6 +841,12 @@
818
841
  "extendsTypeArg": "LotStockLevel",
819
842
  "exportName": "LotStockLevelCollection",
820
843
  "collectionExportName": "LotStockLevelCollectionCollection",
844
+ "collectionOf": "@happyvertical/smrt-inventory:LotStockLevel",
845
+ "inheritedExposure": [
846
+ "api",
847
+ "mcp",
848
+ "cli"
849
+ ],
821
850
  "schema": {
822
851
  "tableName": "inventory_lot_stock_levels",
823
852
  "ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_stock_levels\" (\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 \"lot_id\" UUID NOT NULL,\n \"sku_id\" TEXT DEFAULT '',\n \"location_id\" TEXT NOT NULL DEFAULT '',\n \"state\" TEXT NOT NULL DEFAULT 'available',\n \"qty\" REAL\n);",
@@ -1000,6 +1029,12 @@
1000
1029
  "extendsTypeArg": "LotUsage",
1001
1030
  "exportName": "LotUsageCollection",
1002
1031
  "collectionExportName": "LotUsageCollectionCollection",
1032
+ "collectionOf": "@happyvertical/smrt-inventory:LotUsage",
1033
+ "inheritedExposure": [
1034
+ "api",
1035
+ "mcp",
1036
+ "cli"
1037
+ ],
1003
1038
  "schema": {
1004
1039
  "tableName": "inventory_lot_usages",
1005
1040
  "ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_usages\" (\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 \"lot_id\" UUID NOT NULL,\n \"consumer_type\" TEXT NOT NULL DEFAULT '',\n \"consumer_id\" TEXT NOT NULL DEFAULT '',\n \"qty\" REAL,\n \"unit\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'active',\n \"linked_at\" TIMESTAMP,\n \"linked_by_profile_id\" UUID,\n \"unlinked_at\" TIMESTAMP,\n \"unlinked_by_profile_id\" UUID,\n \"unlink_reason\" TEXT,\n \"movement_id\" TEXT\n);",
@@ -1302,6 +1337,12 @@
1302
1337
  "extendsTypeArg": "StockLevel",
1303
1338
  "exportName": "StockLevelCollection",
1304
1339
  "collectionExportName": "StockLevelCollectionCollection",
1340
+ "collectionOf": "@happyvertical/smrt-inventory:StockLevel",
1341
+ "inheritedExposure": [
1342
+ "api",
1343
+ "mcp",
1344
+ "cli"
1345
+ ],
1305
1346
  "schema": {
1306
1347
  "tableName": "inventory_stock_levels",
1307
1348
  "ddl": "CREATE TABLE IF NOT EXISTS \"inventory_stock_levels\" (\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 \"sku_id\" TEXT NOT NULL DEFAULT '',\n \"location_id\" TEXT NOT NULL DEFAULT '',\n \"state\" TEXT NOT NULL DEFAULT 'available',\n \"qty\" REAL,\n \"reorder_point\" REAL,\n \"reorder_quantity\" REAL\n);",
@@ -1498,6 +1539,12 @@
1498
1539
  "extendsTypeArg": "StockMovement",
1499
1540
  "exportName": "StockMovementCollection",
1500
1541
  "collectionExportName": "StockMovementCollectionCollection",
1542
+ "collectionOf": "@happyvertical/smrt-inventory:StockMovement",
1543
+ "inheritedExposure": [
1544
+ "api",
1545
+ "mcp",
1546
+ "cli"
1547
+ ],
1501
1548
  "schema": {
1502
1549
  "tableName": "inventory_stock_movements",
1503
1550
  "ddl": "CREATE TABLE IF NOT EXISTS \"inventory_stock_movements\" (\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 \"sku_id\" TEXT NOT NULL DEFAULT '',\n \"location_id\" TEXT NOT NULL DEFAULT '',\n \"lot_id\" TEXT,\n \"from_state\" TEXT,\n \"to_state\" TEXT,\n \"qty\" REAL,\n \"reason_code\" TEXT NOT NULL DEFAULT 'adjustment',\n \"source_type\" TEXT DEFAULT '',\n \"source_id\" TEXT DEFAULT '',\n \"actor_profile_id\" UUID,\n \"note\" TEXT DEFAULT '',\n \"occurred_at\" TIMESTAMP\n);",
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-inventory",
6
- "packageVersion": "0.57.46",
6
+ "packageVersion": "0.57.47",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "b4b3379cdc351db78a27f517025a180b2655e891f22cfd7bb8d2e650ff4e5b44",
11
- "packageJson": "7f21244f8090836374a76dc62c36b4756143bde813bb06c27d95a1e3aa5d94a5",
10
+ "manifest": "33e91789d8766bc998d84c5289d9417ab57d05e7f100d339fe4df1b0fb837215",
11
+ "packageJson": "34c96caaece75619d8b28dd3580e05608a8db92b4eb7f3e68898a9453616293a",
12
12
  "agents": "6129c749e8f78b68280151bbacd0d1a2577499de4c423c2ed1a97f02a79b81ea"
13
13
  },
14
14
  "exports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-inventory",
3
- "version": "0.57.46",
3
+ "version": "0.57.47",
4
4
  "description": "Multi-location stock tracking for the SMRT framework — Sku, InventoryLocation, StockLevel, StockMovement, lot and serial tracking, and stock-mutation and lot services",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,14 +24,14 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@happyvertical/logger": "^0.111.0",
28
- "@happyvertical/smrt-core": "0.57.46",
29
- "@happyvertical/smrt-tenancy": "0.57.46",
30
- "@happyvertical/sql": "^0.111.0",
31
- "@happyvertical/smrt-ui": "0.57.46"
27
+ "@happyvertical/logger": "^0.111.3",
28
+ "@happyvertical/smrt-core": "0.57.47",
29
+ "@happyvertical/smrt-tenancy": "0.57.47",
30
+ "@happyvertical/sql": "^0.111.3",
31
+ "@happyvertical/smrt-ui": "0.57.47"
32
32
  },
33
33
  "devDependencies": {
34
- "@happyvertical/smrt-vitest": "0.57.46",
34
+ "@happyvertical/smrt-vitest": "0.57.47",
35
35
  "@types/node": "24.13.6",
36
36
  "typescript": "6.0.3",
37
37
  "vite": "8.1.6",