@happyvertical/smrt-inventory 0.60.8 → 0.60.10
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/index.js.map +1 -1
- package/dist/manifest.json +129 -33
- package/dist/smrt-knowledge.json +3 -3
- package/dist/smrt-knowledge.okf.md +89 -0
- package/package.json +7 -7
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-inventory",
|
|
5
|
-
"packageVersion": "0.60.
|
|
5
|
+
"packageVersion": "0.60.10",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-inventory:InventoryLocationCollection": {
|
|
8
8
|
"name": "inventorylocationcollection",
|
|
@@ -98,8 +98,14 @@
|
|
|
98
98
|
],
|
|
99
99
|
"schema": {
|
|
100
100
|
"tableName": "inventory_locations",
|
|
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);",
|
|
101
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_locations\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
102
102
|
"columns": {
|
|
103
|
+
"_sync_origin_device_id": {
|
|
104
|
+
"type": "TEXT"
|
|
105
|
+
},
|
|
106
|
+
"_sync_revision": {
|
|
107
|
+
"type": "INTEGER"
|
|
108
|
+
},
|
|
103
109
|
"id": {
|
|
104
110
|
"type": "UUID",
|
|
105
111
|
"primaryKey": true,
|
|
@@ -187,7 +193,7 @@
|
|
|
187
193
|
]
|
|
188
194
|
}
|
|
189
195
|
],
|
|
190
|
-
"version": "
|
|
196
|
+
"version": "e8bce6a0"
|
|
191
197
|
},
|
|
192
198
|
"importPath": "@happyvertical/smrt-inventory"
|
|
193
199
|
},
|
|
@@ -256,8 +262,14 @@
|
|
|
256
262
|
],
|
|
257
263
|
"schema": {
|
|
258
264
|
"tableName": "inventory_lots",
|
|
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);",
|
|
265
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lots\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
260
266
|
"columns": {
|
|
267
|
+
"_sync_origin_device_id": {
|
|
268
|
+
"type": "TEXT"
|
|
269
|
+
},
|
|
270
|
+
"_sync_revision": {
|
|
271
|
+
"type": "INTEGER"
|
|
272
|
+
},
|
|
261
273
|
"id": {
|
|
262
274
|
"type": "UUID",
|
|
263
275
|
"primaryKey": true,
|
|
@@ -413,7 +425,7 @@
|
|
|
413
425
|
]
|
|
414
426
|
}
|
|
415
427
|
],
|
|
416
|
-
"version": "
|
|
428
|
+
"version": "245e4002"
|
|
417
429
|
},
|
|
418
430
|
"importPath": "@happyvertical/smrt-inventory"
|
|
419
431
|
},
|
|
@@ -459,8 +471,14 @@
|
|
|
459
471
|
],
|
|
460
472
|
"schema": {
|
|
461
473
|
"tableName": "inventory_lot_corrections",
|
|
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);",
|
|
474
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_corrections\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
463
475
|
"columns": {
|
|
476
|
+
"_sync_origin_device_id": {
|
|
477
|
+
"type": "TEXT"
|
|
478
|
+
},
|
|
479
|
+
"_sync_revision": {
|
|
480
|
+
"type": "INTEGER"
|
|
481
|
+
},
|
|
464
482
|
"id": {
|
|
465
483
|
"type": "UUID",
|
|
466
484
|
"primaryKey": true,
|
|
@@ -585,7 +603,7 @@
|
|
|
585
603
|
]
|
|
586
604
|
}
|
|
587
605
|
],
|
|
588
|
-
"version": "
|
|
606
|
+
"version": "bcf787a0"
|
|
589
607
|
},
|
|
590
608
|
"importPath": "@happyvertical/smrt-inventory"
|
|
591
609
|
},
|
|
@@ -631,8 +649,14 @@
|
|
|
631
649
|
],
|
|
632
650
|
"schema": {
|
|
633
651
|
"tableName": "inventory_lot_documents",
|
|
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);",
|
|
652
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_documents\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
635
653
|
"columns": {
|
|
654
|
+
"_sync_origin_device_id": {
|
|
655
|
+
"type": "TEXT"
|
|
656
|
+
},
|
|
657
|
+
"_sync_revision": {
|
|
658
|
+
"type": "INTEGER"
|
|
659
|
+
},
|
|
636
660
|
"id": {
|
|
637
661
|
"type": "UUID",
|
|
638
662
|
"primaryKey": true,
|
|
@@ -758,7 +782,7 @@
|
|
|
758
782
|
]
|
|
759
783
|
}
|
|
760
784
|
],
|
|
761
|
-
"version": "
|
|
785
|
+
"version": "deee5903"
|
|
762
786
|
},
|
|
763
787
|
"importPath": "@happyvertical/smrt-inventory"
|
|
764
788
|
},
|
|
@@ -849,8 +873,14 @@
|
|
|
849
873
|
],
|
|
850
874
|
"schema": {
|
|
851
875
|
"tableName": "inventory_lot_stock_levels",
|
|
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);",
|
|
876
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_stock_levels\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
853
877
|
"columns": {
|
|
878
|
+
"_sync_origin_device_id": {
|
|
879
|
+
"type": "TEXT"
|
|
880
|
+
},
|
|
881
|
+
"_sync_revision": {
|
|
882
|
+
"type": "INTEGER"
|
|
883
|
+
},
|
|
854
884
|
"id": {
|
|
855
885
|
"type": "UUID",
|
|
856
886
|
"primaryKey": true,
|
|
@@ -949,7 +979,7 @@
|
|
|
949
979
|
]
|
|
950
980
|
}
|
|
951
981
|
],
|
|
952
|
-
"version": "
|
|
982
|
+
"version": "d39d7b51"
|
|
953
983
|
},
|
|
954
984
|
"importPath": "@happyvertical/smrt-inventory"
|
|
955
985
|
},
|
|
@@ -1037,8 +1067,14 @@
|
|
|
1037
1067
|
],
|
|
1038
1068
|
"schema": {
|
|
1039
1069
|
"tableName": "inventory_lot_usages",
|
|
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);",
|
|
1070
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_usages\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
1041
1071
|
"columns": {
|
|
1072
|
+
"_sync_origin_device_id": {
|
|
1073
|
+
"type": "TEXT"
|
|
1074
|
+
},
|
|
1075
|
+
"_sync_revision": {
|
|
1076
|
+
"type": "INTEGER"
|
|
1077
|
+
},
|
|
1042
1078
|
"id": {
|
|
1043
1079
|
"type": "UUID",
|
|
1044
1080
|
"primaryKey": true,
|
|
@@ -1193,7 +1229,7 @@
|
|
|
1193
1229
|
]
|
|
1194
1230
|
}
|
|
1195
1231
|
],
|
|
1196
|
-
"version": "
|
|
1232
|
+
"version": "edce33e6"
|
|
1197
1233
|
},
|
|
1198
1234
|
"importPath": "@happyvertical/smrt-inventory"
|
|
1199
1235
|
},
|
|
@@ -1345,8 +1381,14 @@
|
|
|
1345
1381
|
],
|
|
1346
1382
|
"schema": {
|
|
1347
1383
|
"tableName": "inventory_stock_levels",
|
|
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);",
|
|
1384
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_stock_levels\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
1349
1385
|
"columns": {
|
|
1386
|
+
"_sync_origin_device_id": {
|
|
1387
|
+
"type": "TEXT"
|
|
1388
|
+
},
|
|
1389
|
+
"_sync_revision": {
|
|
1390
|
+
"type": "INTEGER"
|
|
1391
|
+
},
|
|
1350
1392
|
"id": {
|
|
1351
1393
|
"type": "UUID",
|
|
1352
1394
|
"primaryKey": true,
|
|
@@ -1439,7 +1481,7 @@
|
|
|
1439
1481
|
]
|
|
1440
1482
|
}
|
|
1441
1483
|
],
|
|
1442
|
-
"version": "
|
|
1484
|
+
"version": "b249d8e6"
|
|
1443
1485
|
},
|
|
1444
1486
|
"importPath": "@happyvertical/smrt-inventory"
|
|
1445
1487
|
},
|
|
@@ -1547,8 +1589,14 @@
|
|
|
1547
1589
|
],
|
|
1548
1590
|
"schema": {
|
|
1549
1591
|
"tableName": "inventory_stock_movements",
|
|
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);",
|
|
1592
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_stock_movements\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
1551
1593
|
"columns": {
|
|
1594
|
+
"_sync_origin_device_id": {
|
|
1595
|
+
"type": "TEXT"
|
|
1596
|
+
},
|
|
1597
|
+
"_sync_revision": {
|
|
1598
|
+
"type": "INTEGER"
|
|
1599
|
+
},
|
|
1552
1600
|
"id": {
|
|
1553
1601
|
"type": "UUID",
|
|
1554
1602
|
"primaryKey": true,
|
|
@@ -1676,7 +1724,7 @@
|
|
|
1676
1724
|
]
|
|
1677
1725
|
}
|
|
1678
1726
|
],
|
|
1679
|
-
"version": "
|
|
1727
|
+
"version": "c82313b7"
|
|
1680
1728
|
},
|
|
1681
1729
|
"importPath": "@happyvertical/smrt-inventory"
|
|
1682
1730
|
},
|
|
@@ -1784,8 +1832,14 @@
|
|
|
1784
1832
|
],
|
|
1785
1833
|
"schema": {
|
|
1786
1834
|
"tableName": "inventory_locations",
|
|
1787
|
-
"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);",
|
|
1835
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_locations\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
1788
1836
|
"columns": {
|
|
1837
|
+
"_sync_origin_device_id": {
|
|
1838
|
+
"type": "TEXT"
|
|
1839
|
+
},
|
|
1840
|
+
"_sync_revision": {
|
|
1841
|
+
"type": "INTEGER"
|
|
1842
|
+
},
|
|
1789
1843
|
"id": {
|
|
1790
1844
|
"type": "UUID",
|
|
1791
1845
|
"primaryKey": true,
|
|
@@ -1873,7 +1927,7 @@
|
|
|
1873
1927
|
]
|
|
1874
1928
|
}
|
|
1875
1929
|
],
|
|
1876
|
-
"version": "
|
|
1930
|
+
"version": "e8bce6a0"
|
|
1877
1931
|
},
|
|
1878
1932
|
"importPath": "@happyvertical/smrt-inventory"
|
|
1879
1933
|
},
|
|
@@ -2146,8 +2200,14 @@
|
|
|
2146
2200
|
],
|
|
2147
2201
|
"schema": {
|
|
2148
2202
|
"tableName": "inventory_lots",
|
|
2149
|
-
"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);",
|
|
2203
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lots\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
2150
2204
|
"columns": {
|
|
2205
|
+
"_sync_origin_device_id": {
|
|
2206
|
+
"type": "TEXT"
|
|
2207
|
+
},
|
|
2208
|
+
"_sync_revision": {
|
|
2209
|
+
"type": "INTEGER"
|
|
2210
|
+
},
|
|
2151
2211
|
"id": {
|
|
2152
2212
|
"type": "UUID",
|
|
2153
2213
|
"primaryKey": true,
|
|
@@ -2303,7 +2363,7 @@
|
|
|
2303
2363
|
]
|
|
2304
2364
|
}
|
|
2305
2365
|
],
|
|
2306
|
-
"version": "
|
|
2366
|
+
"version": "245e4002"
|
|
2307
2367
|
},
|
|
2308
2368
|
"importPath": "@happyvertical/smrt-inventory"
|
|
2309
2369
|
},
|
|
@@ -2494,8 +2554,14 @@
|
|
|
2494
2554
|
],
|
|
2495
2555
|
"schema": {
|
|
2496
2556
|
"tableName": "inventory_lot_corrections",
|
|
2497
|
-
"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);",
|
|
2557
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_corrections\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
2498
2558
|
"columns": {
|
|
2559
|
+
"_sync_origin_device_id": {
|
|
2560
|
+
"type": "TEXT"
|
|
2561
|
+
},
|
|
2562
|
+
"_sync_revision": {
|
|
2563
|
+
"type": "INTEGER"
|
|
2564
|
+
},
|
|
2499
2565
|
"id": {
|
|
2500
2566
|
"type": "UUID",
|
|
2501
2567
|
"primaryKey": true,
|
|
@@ -2620,7 +2686,7 @@
|
|
|
2620
2686
|
]
|
|
2621
2687
|
}
|
|
2622
2688
|
],
|
|
2623
|
-
"version": "
|
|
2689
|
+
"version": "bcf787a0"
|
|
2624
2690
|
},
|
|
2625
2691
|
"importPath": "@happyvertical/smrt-inventory"
|
|
2626
2692
|
},
|
|
@@ -2756,8 +2822,14 @@
|
|
|
2756
2822
|
],
|
|
2757
2823
|
"schema": {
|
|
2758
2824
|
"tableName": "inventory_lot_documents",
|
|
2759
|
-
"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);",
|
|
2825
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_documents\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
2760
2826
|
"columns": {
|
|
2827
|
+
"_sync_origin_device_id": {
|
|
2828
|
+
"type": "TEXT"
|
|
2829
|
+
},
|
|
2830
|
+
"_sync_revision": {
|
|
2831
|
+
"type": "INTEGER"
|
|
2832
|
+
},
|
|
2761
2833
|
"id": {
|
|
2762
2834
|
"type": "UUID",
|
|
2763
2835
|
"primaryKey": true,
|
|
@@ -2883,7 +2955,7 @@
|
|
|
2883
2955
|
]
|
|
2884
2956
|
}
|
|
2885
2957
|
],
|
|
2886
|
-
"version": "
|
|
2958
|
+
"version": "deee5903"
|
|
2887
2959
|
},
|
|
2888
2960
|
"importPath": "@happyvertical/smrt-inventory"
|
|
2889
2961
|
},
|
|
@@ -3027,8 +3099,14 @@
|
|
|
3027
3099
|
],
|
|
3028
3100
|
"schema": {
|
|
3029
3101
|
"tableName": "inventory_lot_stock_levels",
|
|
3030
|
-
"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);",
|
|
3102
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_stock_levels\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
3031
3103
|
"columns": {
|
|
3104
|
+
"_sync_origin_device_id": {
|
|
3105
|
+
"type": "TEXT"
|
|
3106
|
+
},
|
|
3107
|
+
"_sync_revision": {
|
|
3108
|
+
"type": "INTEGER"
|
|
3109
|
+
},
|
|
3032
3110
|
"id": {
|
|
3033
3111
|
"type": "UUID",
|
|
3034
3112
|
"primaryKey": true,
|
|
@@ -3127,7 +3205,7 @@
|
|
|
3127
3205
|
]
|
|
3128
3206
|
}
|
|
3129
3207
|
],
|
|
3130
|
-
"version": "
|
|
3208
|
+
"version": "d39d7b51"
|
|
3131
3209
|
},
|
|
3132
3210
|
"importPath": "@happyvertical/smrt-inventory"
|
|
3133
3211
|
},
|
|
@@ -3335,8 +3413,14 @@
|
|
|
3335
3413
|
],
|
|
3336
3414
|
"schema": {
|
|
3337
3415
|
"tableName": "inventory_lot_usages",
|
|
3338
|
-
"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);",
|
|
3416
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_lot_usages\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
3339
3417
|
"columns": {
|
|
3418
|
+
"_sync_origin_device_id": {
|
|
3419
|
+
"type": "TEXT"
|
|
3420
|
+
},
|
|
3421
|
+
"_sync_revision": {
|
|
3422
|
+
"type": "INTEGER"
|
|
3423
|
+
},
|
|
3340
3424
|
"id": {
|
|
3341
3425
|
"type": "UUID",
|
|
3342
3426
|
"primaryKey": true,
|
|
@@ -3491,7 +3575,7 @@
|
|
|
3491
3575
|
]
|
|
3492
3576
|
}
|
|
3493
3577
|
],
|
|
3494
|
-
"version": "
|
|
3578
|
+
"version": "edce33e6"
|
|
3495
3579
|
},
|
|
3496
3580
|
"importPath": "@happyvertical/smrt-inventory"
|
|
3497
3581
|
},
|
|
@@ -3634,8 +3718,14 @@
|
|
|
3634
3718
|
],
|
|
3635
3719
|
"schema": {
|
|
3636
3720
|
"tableName": "inventory_stock_levels",
|
|
3637
|
-
"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);",
|
|
3721
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_stock_levels\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
3638
3722
|
"columns": {
|
|
3723
|
+
"_sync_origin_device_id": {
|
|
3724
|
+
"type": "TEXT"
|
|
3725
|
+
},
|
|
3726
|
+
"_sync_revision": {
|
|
3727
|
+
"type": "INTEGER"
|
|
3728
|
+
},
|
|
3639
3729
|
"id": {
|
|
3640
3730
|
"type": "UUID",
|
|
3641
3731
|
"primaryKey": true,
|
|
@@ -3728,7 +3818,7 @@
|
|
|
3728
3818
|
]
|
|
3729
3819
|
}
|
|
3730
3820
|
],
|
|
3731
|
-
"version": "
|
|
3821
|
+
"version": "b249d8e6"
|
|
3732
3822
|
},
|
|
3733
3823
|
"importPath": "@happyvertical/smrt-inventory"
|
|
3734
3824
|
},
|
|
@@ -3926,8 +4016,14 @@
|
|
|
3926
4016
|
],
|
|
3927
4017
|
"schema": {
|
|
3928
4018
|
"tableName": "inventory_stock_movements",
|
|
3929
|
-
"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);",
|
|
4019
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"inventory_stock_movements\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\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);",
|
|
3930
4020
|
"columns": {
|
|
4021
|
+
"_sync_origin_device_id": {
|
|
4022
|
+
"type": "TEXT"
|
|
4023
|
+
},
|
|
4024
|
+
"_sync_revision": {
|
|
4025
|
+
"type": "INTEGER"
|
|
4026
|
+
},
|
|
3931
4027
|
"id": {
|
|
3932
4028
|
"type": "UUID",
|
|
3933
4029
|
"primaryKey": true,
|
|
@@ -4055,7 +4151,7 @@
|
|
|
4055
4151
|
]
|
|
4056
4152
|
}
|
|
4057
4153
|
],
|
|
4058
|
-
"version": "
|
|
4154
|
+
"version": "c82313b7"
|
|
4059
4155
|
},
|
|
4060
4156
|
"importPath": "@happyvertical/smrt-inventory"
|
|
4061
4157
|
}
|
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-inventory",
|
|
6
|
-
"packageVersion": "0.60.
|
|
6
|
+
"packageVersion": "0.60.10",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "5c092266f7d3344fd60d7d7edfcc6c752f6c1588241c8b28e5c0ff16125b003f",
|
|
11
|
+
"packageJson": "ac359bc4e50579c8e88c5540cf308e5973a75e210320584bd148f3778a1f2b8a",
|
|
12
12
|
"agents": "6129c749e8f78b68280151bbacd0d1a2577499de4c423c2ed1a97f02a79b81ea"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: "Component"
|
|
3
|
+
title: "@happyvertical/smrt-inventory"
|
|
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
|
+
status: "stable"
|
|
6
|
+
generated:
|
|
7
|
+
by: "smrt/scripts/generate-knowledge-okf.ts"
|
|
8
|
+
at: "2026-11-05T15:48:19Z"
|
|
9
|
+
audience: "internal"
|
|
10
|
+
evidence_level: "source-inspected"
|
|
11
|
+
source_revision: "sha256:8215be0deec6d9089a5554cc8588937dde2e061cb55f8f3f91e94440e785406d"
|
|
12
|
+
sources:
|
|
13
|
+
- id: "manifest"
|
|
14
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/inventory/package.json"
|
|
15
|
+
title: "@happyvertical/smrt-inventory package manifest"
|
|
16
|
+
- id: "agents"
|
|
17
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/inventory/AGENTS.md"
|
|
18
|
+
title: "@happyvertical/smrt-inventory packages/inventory/AGENTS.md"
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# @happyvertical/smrt-inventory
|
|
22
|
+
|
|
23
|
+
## Package
|
|
24
|
+
|
|
25
|
+
- Directory: `packages/inventory`
|
|
26
|
+
- Private: no
|
|
27
|
+
- Object source: `domain-artifact`
|
|
28
|
+
- Evidence level: `source-inspected`
|
|
29
|
+
|
|
30
|
+
## Documentation
|
|
31
|
+
|
|
32
|
+
- `packages/inventory/AGENTS.md`
|
|
33
|
+
|
|
34
|
+
## Framework dependencies
|
|
35
|
+
|
|
36
|
+
- [smrt-core](/components/smrt-core.md)
|
|
37
|
+
- [smrt-tenancy](/components/smrt-tenancy.md)
|
|
38
|
+
- [smrt-ui](/components/smrt-ui.md)
|
|
39
|
+
- [smrt-vitest](/components/smrt-vitest.md)
|
|
40
|
+
|
|
41
|
+
## SDK dependencies
|
|
42
|
+
|
|
43
|
+
- `@happyvertical/logger`
|
|
44
|
+
- `@happyvertical/sql`
|
|
45
|
+
|
|
46
|
+
## Exports
|
|
47
|
+
|
|
48
|
+
- `.`
|
|
49
|
+
- `./manifest`
|
|
50
|
+
- `./manifest.json`
|
|
51
|
+
- `./svelte`
|
|
52
|
+
|
|
53
|
+
## Models
|
|
54
|
+
|
|
55
|
+
- `InventoryLocation` (collection `inventorylocations`, extends `SmrtObject`)
|
|
56
|
+
- `InventoryLocationCollection` (collection `inventorylocations`, extends `SmrtCollection`)
|
|
57
|
+
- `Lot` (collection `lots`, extends `SmrtObject`)
|
|
58
|
+
- `LotCollection` (collection `lots`, extends `SmrtCollection`)
|
|
59
|
+
- `LotCorrection` (collection `lotcorrections`, extends `SmrtObject`)
|
|
60
|
+
- `LotCorrectionCollection` (collection `lotcorrections`, extends `SmrtCollection`)
|
|
61
|
+
- `LotDocument` (collection `lotdocuments`, extends `SmrtObject`)
|
|
62
|
+
- `LotDocumentCollection` (collection `lotdocuments`, extends `SmrtCollection`)
|
|
63
|
+
- `LotStockLevel` (collection `lotstocklevels`, extends `SmrtObject`)
|
|
64
|
+
- `LotStockLevelCollection` (collection `lotstocklevels`, extends `SmrtCollection`)
|
|
65
|
+
- `LotUsage` (collection `lotusages`, extends `SmrtObject`)
|
|
66
|
+
- `LotUsageCollection` (collection `lotusages`, extends `SmrtCollection`)
|
|
67
|
+
- `StockLevel` (collection `stocklevels`, extends `SmrtObject`)
|
|
68
|
+
- `StockLevelCollection` (collection `stocklevels`, extends `SmrtCollection`)
|
|
69
|
+
- `StockMovement` (collection `stockmovements`, extends `SmrtObject`)
|
|
70
|
+
- `StockMovementCollection` (collection `stockmovements`, extends `SmrtCollection`)
|
|
71
|
+
|
|
72
|
+
## MCP tools
|
|
73
|
+
|
|
74
|
+
- `inventorylocation_get`: get on `@happyvertical/smrt-inventory:InventoryLocation`
|
|
75
|
+
- `inventorylocation_list`: list on `@happyvertical/smrt-inventory:InventoryLocation`
|
|
76
|
+
- `lot_get`: get on `@happyvertical/smrt-inventory:Lot`
|
|
77
|
+
- `lot_list`: list on `@happyvertical/smrt-inventory:Lot`
|
|
78
|
+
- `lotcorrection_get`: get on `@happyvertical/smrt-inventory:LotCorrection`
|
|
79
|
+
- `lotcorrection_list`: list on `@happyvertical/smrt-inventory:LotCorrection`
|
|
80
|
+
- `lotdocument_get`: get on `@happyvertical/smrt-inventory:LotDocument`
|
|
81
|
+
- `lotdocument_list`: list on `@happyvertical/smrt-inventory:LotDocument`
|
|
82
|
+
- `lotstocklevel_get`: get on `@happyvertical/smrt-inventory:LotStockLevel`
|
|
83
|
+
- `lotstocklevel_list`: list on `@happyvertical/smrt-inventory:LotStockLevel`
|
|
84
|
+
- `lotusage_get`: get on `@happyvertical/smrt-inventory:LotUsage`
|
|
85
|
+
- `lotusage_list`: list on `@happyvertical/smrt-inventory:LotUsage`
|
|
86
|
+
- `stocklevel_get`: get on `@happyvertical/smrt-inventory:StockLevel`
|
|
87
|
+
- `stocklevel_list`: list on `@happyvertical/smrt-inventory:StockLevel`
|
|
88
|
+
- `stockmovement_get`: get on `@happyvertical/smrt-inventory:StockMovement`
|
|
89
|
+
- `stockmovement_list`: list on `@happyvertical/smrt-inventory:StockMovement`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-inventory",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.10",
|
|
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.
|
|
28
|
-
"@happyvertical/smrt-core": "0.60.
|
|
29
|
-
"@happyvertical/smrt-tenancy": "0.60.
|
|
30
|
-
"@happyvertical/sql": "^0.111.
|
|
31
|
-
"@happyvertical/smrt-ui": "0.60.
|
|
27
|
+
"@happyvertical/logger": "^0.111.5",
|
|
28
|
+
"@happyvertical/smrt-core": "0.60.10",
|
|
29
|
+
"@happyvertical/smrt-tenancy": "0.60.10",
|
|
30
|
+
"@happyvertical/sql": "^0.111.5",
|
|
31
|
+
"@happyvertical/smrt-ui": "0.60.10"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@happyvertical/smrt-vitest": "0.60.
|
|
34
|
+
"@happyvertical/smrt-vitest": "0.60.10",
|
|
35
35
|
"@types/node": "24.13.6",
|
|
36
36
|
"typescript": "6.0.3",
|
|
37
37
|
"vite": "8.1.6",
|