@happyvertical/smrt-products 0.61.2 → 0.61.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 (26) hide show
  1. package/dist/lib/chunks/{ProductAssetCollection-CDwWlUxj.js → ProductAssetCollection-DUALSyz8.js} +3 -3
  2. package/dist/lib/chunks/{ProductAssetCollection-CDwWlUxj.js.map → ProductAssetCollection-DUALSyz8.js.map} +1 -1
  3. package/dist/lib/chunks/{ProductCollection-bcMIqMpy.js → ProductCollection-CuBxPHR8.js} +2 -2
  4. package/dist/lib/chunks/{ProductCollection-bcMIqMpy.js.map → ProductCollection-CuBxPHR8.js.map} +1 -1
  5. package/dist/lib/chunks/{Sku-D9O8I6NV.js → Sku-tt-MO6g6.js} +14 -4
  6. package/dist/lib/chunks/{Sku-D9O8I6NV.js.map → Sku-tt-MO6g6.js.map} +1 -1
  7. package/dist/lib/chunks/__smrt-register__-CfmmXKms.js +6 -0
  8. package/dist/lib/chunks/__smrt-register__-CfmmXKms.js.map +1 -0
  9. package/dist/lib/chunks/{collections-D62cqQ4c.js → collections-BZbdOUkr.js} +5 -5
  10. package/dist/lib/chunks/{collections-D62cqQ4c.js.map → collections-BZbdOUkr.js.map} +1 -1
  11. package/dist/lib/chunks/{generated-XNCTuZN2.js → generated-C5ANYeye.js} +2 -2
  12. package/dist/lib/chunks/{generated-XNCTuZN2.js.map → generated-C5ANYeye.js.map} +1 -1
  13. package/dist/lib/chunks/models-CM4HN7Au.js +2 -0
  14. package/dist/lib/collections.js +3 -3
  15. package/dist/lib/generated.js +1 -1
  16. package/dist/lib/index.js +7 -7
  17. package/dist/lib/lib/models/ProductAsset.d.ts.map +1 -1
  18. package/dist/lib/lib/models/ProductVariant.d.ts.map +1 -1
  19. package/dist/lib/lib/models/Sku.d.ts.map +1 -1
  20. package/dist/lib/manifest.json +405 -120
  21. package/dist/lib/models.js +2 -2
  22. package/dist/lib/smrt-knowledge.json +3 -3
  23. package/package.json +14 -14
  24. package/dist/lib/chunks/__smrt-register__-DF87g2KT.js +0 -6
  25. package/dist/lib/chunks/__smrt-register__-DF87g2KT.js.map +0 -1
  26. package/dist/lib/chunks/models-DWKWFema.js +0 -2
@@ -2,14 +2,14 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-products",
5
- "packageVersion": "0.61.2",
5
+ "packageVersion": "0.61.4",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-products:CategoryCollection": {
8
8
  "name": "categorycollection",
9
9
  "className": "CategoryCollection",
10
10
  "qualifiedName": "@happyvertical/smrt-products:CategoryCollection",
11
11
  "collection": "categories",
12
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/collections/CategoryCollection.ts",
12
+ "filePath": "src/lib/collections/CategoryCollection.ts",
13
13
  "packageName": "@happyvertical/smrt-products",
14
14
  "fields": {},
15
15
  "methods": {
@@ -171,7 +171,7 @@
171
171
  "className": "MaterialCollection",
172
172
  "qualifiedName": "@happyvertical/smrt-products:MaterialCollection",
173
173
  "collection": "products",
174
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/collections/MaterialCollection.ts",
174
+ "filePath": "src/lib/collections/MaterialCollection.ts",
175
175
  "packageName": "@happyvertical/smrt-products",
176
176
  "fields": {},
177
177
  "methods": {
@@ -460,7 +460,7 @@
460
460
  "className": "ProductAssetCollection",
461
461
  "qualifiedName": "@happyvertical/smrt-products:ProductAssetCollection",
462
462
  "collection": "productassets",
463
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/collections/ProductAssetCollection.ts",
463
+ "filePath": "src/lib/collections/ProductAssetCollection.ts",
464
464
  "packageName": "@happyvertical/smrt-products",
465
465
  "fields": {},
466
466
  "methods": {
@@ -774,7 +774,7 @@
774
774
  "className": "ProductCollection",
775
775
  "qualifiedName": "@happyvertical/smrt-products:ProductCollection",
776
776
  "collection": "products",
777
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/collections/ProductCollection.ts",
777
+ "filePath": "src/lib/collections/ProductCollection.ts",
778
778
  "packageName": "@happyvertical/smrt-products",
779
779
  "fields": {},
780
780
  "methods": {
@@ -1049,7 +1049,7 @@
1049
1049
  "className": "ProductVariantCollection",
1050
1050
  "qualifiedName": "@happyvertical/smrt-products:ProductVariantCollection",
1051
1051
  "collection": "productvariants",
1052
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/collections/ProductVariantCollection.ts",
1052
+ "filePath": "src/lib/collections/ProductVariantCollection.ts",
1053
1053
  "packageName": "@happyvertical/smrt-products",
1054
1054
  "fields": {},
1055
1055
  "methods": {
@@ -1220,7 +1220,7 @@
1220
1220
  "className": "SkuCollection",
1221
1221
  "qualifiedName": "@happyvertical/smrt-products:SkuCollection",
1222
1222
  "collection": "skus",
1223
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/collections/SkuCollection.ts",
1223
+ "filePath": "src/lib/collections/SkuCollection.ts",
1224
1224
  "packageName": "@happyvertical/smrt-products",
1225
1225
  "fields": {},
1226
1226
  "methods": {
@@ -1445,23 +1445,26 @@
1445
1445
  "qualifiedName": "@happyvertical/smrt-products:Category",
1446
1446
  "collection": "categories",
1447
1447
  "description": "Product knowledge base category for organizing product information.",
1448
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/models/Category.ts",
1448
+ "filePath": "src/lib/models/Category.ts",
1449
1449
  "packageName": "@happyvertical/smrt-products",
1450
1450
  "fields": {
1451
1451
  "created_at": {
1452
1452
  "type": "datetime",
1453
+ "_meta": {
1454
+ "__statedOptions": []
1455
+ },
1453
1456
  "required": false
1454
1457
  },
1455
1458
  "updated_at": {
1456
1459
  "type": "datetime",
1460
+ "_meta": {
1461
+ "__statedOptions": []
1462
+ },
1457
1463
  "required": false
1458
1464
  },
1459
1465
  "tenantId": {
1460
1466
  "type": "text",
1461
- "required": false,
1462
1467
  "_meta": {
1463
- "sqlType": "UUID",
1464
- "nullable": true,
1465
1468
  "__tenancy": {
1466
1469
  "isTenantIdField": true,
1467
1470
  "autoFilter": true,
@@ -1471,34 +1474,70 @@
1471
1474
  "mode": "optional",
1472
1475
  "field": "tenantId",
1473
1476
  "allowSuperAdminBypass": false
1474
- }
1475
- }
1477
+ },
1478
+ "__statedOptions": [
1479
+ "sqlType",
1480
+ "nullable",
1481
+ "__tenancy",
1482
+ "required"
1483
+ ],
1484
+ "sqlType": "UUID",
1485
+ "nullable": true,
1486
+ "required": false
1487
+ },
1488
+ "required": false
1476
1489
  },
1477
1490
  "name": {
1478
1491
  "type": "text",
1492
+ "_meta": {
1493
+ "__statedOptions": []
1494
+ },
1479
1495
  "required": false
1480
1496
  },
1481
1497
  "description": {
1482
1498
  "type": "text",
1499
+ "_meta": {
1500
+ "__statedOptions": []
1501
+ },
1483
1502
  "required": false
1484
1503
  },
1485
1504
  "parentId": {
1486
1505
  "type": "foreignKey",
1506
+ "_meta": {
1507
+ "__statedOptions": [
1508
+ "related"
1509
+ ]
1510
+ },
1487
1511
  "required": false,
1488
1512
  "related": "Category"
1489
1513
  },
1490
1514
  "level": {
1491
1515
  "type": "integer",
1516
+ "_meta": {
1517
+ "__statedOptions": [
1518
+ "default"
1519
+ ]
1520
+ },
1492
1521
  "required": true,
1493
1522
  "default": 0
1494
1523
  },
1495
1524
  "productCount": {
1496
1525
  "type": "integer",
1526
+ "_meta": {
1527
+ "__statedOptions": [
1528
+ "default"
1529
+ ]
1530
+ },
1497
1531
  "required": true,
1498
1532
  "default": 0
1499
1533
  },
1500
1534
  "active": {
1501
1535
  "type": "boolean",
1536
+ "_meta": {
1537
+ "__statedOptions": [
1538
+ "default"
1539
+ ]
1540
+ },
1502
1541
  "required": true,
1503
1542
  "default": true
1504
1543
  }
@@ -1676,23 +1715,26 @@
1676
1715
  "className": "Material",
1677
1716
  "qualifiedName": "@happyvertical/smrt-products:Material",
1678
1717
  "collection": "products",
1679
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/models/Material.ts",
1718
+ "filePath": "src/lib/models/Material.ts",
1680
1719
  "packageName": "@happyvertical/smrt-products",
1681
1720
  "fields": {
1682
1721
  "created_at": {
1683
1722
  "type": "datetime",
1723
+ "_meta": {
1724
+ "__statedOptions": []
1725
+ },
1684
1726
  "required": false
1685
1727
  },
1686
1728
  "updated_at": {
1687
1729
  "type": "datetime",
1730
+ "_meta": {
1731
+ "__statedOptions": []
1732
+ },
1688
1733
  "required": false
1689
1734
  },
1690
1735
  "tenantId": {
1691
1736
  "type": "text",
1692
- "required": false,
1693
1737
  "_meta": {
1694
- "sqlType": "UUID",
1695
- "nullable": true,
1696
1738
  "__tenancy": {
1697
1739
  "isTenantIdField": true,
1698
1740
  "autoFilter": true,
@@ -1702,11 +1744,26 @@
1702
1744
  "mode": "optional",
1703
1745
  "field": "tenantId",
1704
1746
  "allowSuperAdminBypass": false
1705
- }
1706
- }
1747
+ },
1748
+ "__statedOptions": [
1749
+ "sqlType",
1750
+ "nullable",
1751
+ "__tenancy",
1752
+ "required"
1753
+ ],
1754
+ "required": false,
1755
+ "sqlType": "UUID",
1756
+ "nullable": true
1757
+ },
1758
+ "required": false
1707
1759
  },
1708
1760
  "productType": {
1709
1761
  "type": "text",
1762
+ "_meta": {
1763
+ "__statedOptions": [
1764
+ "enum"
1765
+ ]
1766
+ },
1710
1767
  "required": false,
1711
1768
  "enum": [
1712
1769
  "product",
@@ -1716,95 +1773,148 @@
1716
1773
  },
1717
1774
  "name": {
1718
1775
  "type": "text",
1719
- "required": false,
1720
- "description": "The product name, as customers see it.",
1721
1776
  "_meta": {
1777
+ "__statedOptions": [
1778
+ "description"
1779
+ ],
1722
1780
  "description": "The product name, as customers see it."
1723
- }
1781
+ },
1782
+ "required": false,
1783
+ "description": "The product name, as customers see it."
1724
1784
  },
1725
1785
  "description": {
1726
1786
  "type": "text",
1727
- "required": false,
1728
- "description": "A few words on what the product is and who it is for.",
1729
1787
  "_meta": {
1788
+ "__statedOptions": [
1789
+ "description"
1790
+ ],
1730
1791
  "description": "A few words on what the product is and who it is for."
1731
- }
1792
+ },
1793
+ "required": false,
1794
+ "description": "A few words on what the product is and who it is for."
1732
1795
  },
1733
1796
  "category": {
1734
1797
  "type": "text",
1798
+ "_meta": {
1799
+ "__statedOptions": []
1800
+ },
1735
1801
  "required": false
1736
1802
  },
1737
1803
  "manufacturer": {
1738
1804
  "type": "text",
1805
+ "_meta": {
1806
+ "__statedOptions": []
1807
+ },
1739
1808
  "required": false
1740
1809
  },
1741
1810
  "model": {
1742
1811
  "type": "text",
1812
+ "_meta": {
1813
+ "__statedOptions": []
1814
+ },
1743
1815
  "required": false
1744
1816
  },
1745
1817
  "price": {
1746
1818
  "type": "integer",
1747
- "required": true,
1748
- "default": 0,
1749
- "description": "The price in minor units (cents), for example 1999 for 19.99.",
1750
1819
  "_meta": {
1820
+ "__statedOptions": [
1821
+ "description",
1822
+ "default"
1823
+ ],
1751
1824
  "description": "The price in minor units (cents), for example 1999 for 19.99."
1752
- }
1825
+ },
1826
+ "required": true,
1827
+ "default": 0,
1828
+ "description": "The price in minor units (cents), for example 1999 for 19.99."
1753
1829
  },
1754
1830
  "defaultSalesTaxCodeId": {
1755
1831
  "type": "crossPackageRef",
1756
- "required": false,
1757
- "related": "@happyvertical/smrt-commerce:TaxCode",
1758
1832
  "_meta": {
1833
+ "__statedOptions": [
1834
+ "description",
1835
+ "related"
1836
+ ],
1759
1837
  "description": "The tax code normally used when this product is sold."
1760
- }
1838
+ },
1839
+ "required": false,
1840
+ "related": "@happyvertical/smrt-commerce:TaxCode",
1841
+ "description": "The tax code normally used when this product is sold."
1761
1842
  },
1762
1843
  "defaultPurchaseTaxCodeId": {
1763
1844
  "type": "crossPackageRef",
1764
- "required": false,
1765
- "related": "@happyvertical/smrt-commerce:TaxCode",
1766
1845
  "_meta": {
1846
+ "__statedOptions": [
1847
+ "description",
1848
+ "related"
1849
+ ],
1767
1850
  "description": "The tax code normally used when this product is purchased."
1768
- }
1851
+ },
1852
+ "required": false,
1853
+ "related": "@happyvertical/smrt-commerce:TaxCode",
1854
+ "description": "The tax code normally used when this product is purchased."
1769
1855
  },
1770
1856
  "inStock": {
1771
1857
  "type": "boolean",
1858
+ "_meta": {
1859
+ "__statedOptions": [
1860
+ "default"
1861
+ ]
1862
+ },
1772
1863
  "required": true,
1773
1864
  "default": true
1774
1865
  },
1775
1866
  "specifications": {
1776
1867
  "type": "json",
1868
+ "_meta": {
1869
+ "__statedOptions": [
1870
+ "default"
1871
+ ]
1872
+ },
1777
1873
  "required": false,
1778
1874
  "default": {}
1779
1875
  },
1780
1876
  "tags": {
1781
1877
  "type": "json",
1878
+ "_meta": {
1879
+ "__statedOptions": [
1880
+ "default"
1881
+ ]
1882
+ },
1782
1883
  "required": false,
1783
1884
  "default": []
1784
1885
  },
1785
1886
  "materialKind": {
1786
1887
  "type": "meta",
1787
- "required": false,
1788
- "default": "component",
1789
1888
  "_meta": {
1889
+ "__statedOptions": [
1890
+ "default"
1891
+ ],
1790
1892
  "underlyingType": "text"
1791
- }
1893
+ },
1894
+ "required": false,
1895
+ "default": "component"
1792
1896
  },
1793
1897
  "uom": {
1794
1898
  "type": "meta",
1795
- "required": false,
1796
- "default": "each",
1797
1899
  "_meta": {
1900
+ "__statedOptions": [
1901
+ "default"
1902
+ ],
1798
1903
  "underlyingType": "text"
1799
- }
1904
+ },
1905
+ "required": false,
1906
+ "default": "each"
1800
1907
  },
1801
1908
  "costPerUnit": {
1802
1909
  "type": "meta",
1803
- "required": false,
1804
- "default": 0,
1805
1910
  "_meta": {
1911
+ "__statedOptions": [
1912
+ "default"
1913
+ ],
1806
1914
  "underlyingType": "decimal"
1807
- }
1915
+ },
1916
+ "required": false,
1917
+ "default": 0
1808
1918
  }
1809
1919
  },
1810
1920
  "methods": {
@@ -2091,23 +2201,26 @@
2091
2201
  "qualifiedName": "@happyvertical/smrt-products:Product",
2092
2202
  "collection": "products",
2093
2203
  "description": "Product information for knowledge base queries.",
2094
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/models/Product.ts",
2204
+ "filePath": "src/lib/models/Product.ts",
2095
2205
  "packageName": "@happyvertical/smrt-products",
2096
2206
  "fields": {
2097
2207
  "created_at": {
2098
2208
  "type": "datetime",
2209
+ "_meta": {
2210
+ "__statedOptions": []
2211
+ },
2099
2212
  "required": false
2100
2213
  },
2101
2214
  "updated_at": {
2102
2215
  "type": "datetime",
2216
+ "_meta": {
2217
+ "__statedOptions": []
2218
+ },
2103
2219
  "required": false
2104
2220
  },
2105
2221
  "tenantId": {
2106
2222
  "type": "text",
2107
- "required": false,
2108
2223
  "_meta": {
2109
- "sqlType": "UUID",
2110
- "nullable": true,
2111
2224
  "__tenancy": {
2112
2225
  "isTenantIdField": true,
2113
2226
  "autoFilter": true,
@@ -2117,11 +2230,26 @@
2117
2230
  "mode": "optional",
2118
2231
  "field": "tenantId",
2119
2232
  "allowSuperAdminBypass": false
2120
- }
2121
- }
2233
+ },
2234
+ "__statedOptions": [
2235
+ "sqlType",
2236
+ "nullable",
2237
+ "__tenancy",
2238
+ "required"
2239
+ ],
2240
+ "sqlType": "UUID",
2241
+ "nullable": true,
2242
+ "required": false
2243
+ },
2244
+ "required": false
2122
2245
  },
2123
2246
  "productType": {
2124
2247
  "type": "text",
2248
+ "_meta": {
2249
+ "__statedOptions": [
2250
+ "enum"
2251
+ ]
2252
+ },
2125
2253
  "required": false,
2126
2254
  "enum": [
2127
2255
  "product",
@@ -2131,69 +2259,113 @@
2131
2259
  },
2132
2260
  "name": {
2133
2261
  "type": "text",
2134
- "required": false,
2135
- "description": "The product name, as customers see it.",
2136
2262
  "_meta": {
2263
+ "__statedOptions": [
2264
+ "description"
2265
+ ],
2137
2266
  "description": "The product name, as customers see it."
2138
- }
2267
+ },
2268
+ "required": false,
2269
+ "description": "The product name, as customers see it."
2139
2270
  },
2140
2271
  "description": {
2141
2272
  "type": "text",
2142
- "required": false,
2143
- "description": "A few words on what the product is and who it is for.",
2144
2273
  "_meta": {
2274
+ "__statedOptions": [
2275
+ "description"
2276
+ ],
2145
2277
  "description": "A few words on what the product is and who it is for."
2146
- }
2278
+ },
2279
+ "required": false,
2280
+ "description": "A few words on what the product is and who it is for."
2147
2281
  },
2148
2282
  "category": {
2149
2283
  "type": "text",
2284
+ "_meta": {
2285
+ "__statedOptions": []
2286
+ },
2150
2287
  "required": false
2151
2288
  },
2152
2289
  "manufacturer": {
2153
2290
  "type": "text",
2291
+ "_meta": {
2292
+ "__statedOptions": []
2293
+ },
2154
2294
  "required": false
2155
2295
  },
2156
2296
  "model": {
2157
2297
  "type": "text",
2298
+ "_meta": {
2299
+ "__statedOptions": []
2300
+ },
2158
2301
  "required": false
2159
2302
  },
2160
2303
  "price": {
2161
2304
  "type": "integer",
2162
- "required": true,
2163
- "default": 0,
2164
- "description": "The price in minor units (cents), for example 1999 for 19.99.",
2165
2305
  "_meta": {
2306
+ "__statedOptions": [
2307
+ "description",
2308
+ "default"
2309
+ ],
2166
2310
  "description": "The price in minor units (cents), for example 1999 for 19.99."
2167
- }
2311
+ },
2312
+ "required": true,
2313
+ "default": 0,
2314
+ "description": "The price in minor units (cents), for example 1999 for 19.99."
2168
2315
  },
2169
2316
  "defaultSalesTaxCodeId": {
2170
2317
  "type": "crossPackageRef",
2171
- "required": false,
2172
- "related": "@happyvertical/smrt-commerce:TaxCode",
2173
2318
  "_meta": {
2319
+ "__statedOptions": [
2320
+ "description",
2321
+ "related"
2322
+ ],
2174
2323
  "description": "The tax code normally used when this product is sold."
2175
- }
2324
+ },
2325
+ "required": false,
2326
+ "related": "@happyvertical/smrt-commerce:TaxCode",
2327
+ "description": "The tax code normally used when this product is sold."
2176
2328
  },
2177
2329
  "defaultPurchaseTaxCodeId": {
2178
2330
  "type": "crossPackageRef",
2179
- "required": false,
2180
- "related": "@happyvertical/smrt-commerce:TaxCode",
2181
2331
  "_meta": {
2332
+ "__statedOptions": [
2333
+ "description",
2334
+ "related"
2335
+ ],
2182
2336
  "description": "The tax code normally used when this product is purchased."
2183
- }
2337
+ },
2338
+ "required": false,
2339
+ "related": "@happyvertical/smrt-commerce:TaxCode",
2340
+ "description": "The tax code normally used when this product is purchased."
2184
2341
  },
2185
2342
  "inStock": {
2186
2343
  "type": "boolean",
2344
+ "_meta": {
2345
+ "__statedOptions": [
2346
+ "default"
2347
+ ]
2348
+ },
2187
2349
  "required": true,
2188
2350
  "default": true
2189
2351
  },
2190
2352
  "specifications": {
2191
2353
  "type": "json",
2354
+ "_meta": {
2355
+ "__statedOptions": [
2356
+ "default"
2357
+ ]
2358
+ },
2192
2359
  "required": false,
2193
2360
  "default": {}
2194
2361
  },
2195
2362
  "tags": {
2196
2363
  "type": "json",
2364
+ "_meta": {
2365
+ "__statedOptions": [
2366
+ "default"
2367
+ ]
2368
+ },
2197
2369
  "required": false,
2198
2370
  "default": []
2199
2371
  }
@@ -2486,15 +2658,12 @@
2486
2658
  "className": "ProductAsset",
2487
2659
  "qualifiedName": "@happyvertical/smrt-products:ProductAsset",
2488
2660
  "collection": "productassets",
2489
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/models/ProductAsset.ts",
2661
+ "filePath": "src/lib/models/ProductAsset.ts",
2490
2662
  "packageName": "@happyvertical/smrt-products",
2491
2663
  "fields": {
2492
2664
  "tenantId": {
2493
2665
  "type": "text",
2494
- "required": false,
2495
2666
  "_meta": {
2496
- "sqlType": "UUID",
2497
- "nullable": true,
2498
2667
  "__tenancy": {
2499
2668
  "isTenantIdField": true,
2500
2669
  "autoFilter": true,
@@ -2504,31 +2673,64 @@
2504
2673
  "mode": "optional",
2505
2674
  "field": "tenantId",
2506
2675
  "allowSuperAdminBypass": false
2507
- }
2508
- }
2676
+ },
2677
+ "__statedOptions": [
2678
+ "sqlType",
2679
+ "nullable",
2680
+ "__tenancy",
2681
+ "required"
2682
+ ],
2683
+ "sqlType": "UUID",
2684
+ "nullable": true,
2685
+ "required": false
2686
+ },
2687
+ "required": false
2509
2688
  },
2510
2689
  "productId": {
2511
2690
  "type": "foreignKey",
2512
- "required": true,
2513
- "related": "Product",
2514
2691
  "_meta": {
2515
- "required": true
2516
- }
2692
+ "__statedOptions": [
2693
+ "required",
2694
+ "requiredFor",
2695
+ "related"
2696
+ ],
2697
+ "required": true,
2698
+ "requiredFor": "identity"
2699
+ },
2700
+ "required": true,
2701
+ "related": "Product"
2517
2702
  },
2518
2703
  "assetId": {
2519
2704
  "type": "crossPackageRef",
2705
+ "_meta": {
2706
+ "__statedOptions": [
2707
+ "required",
2708
+ "requiredFor",
2709
+ "related"
2710
+ ],
2711
+ "required": true,
2712
+ "requiredFor": "identity"
2713
+ },
2520
2714
  "required": true,
2521
2715
  "related": "@happyvertical/smrt-assets:Asset"
2522
2716
  },
2523
2717
  "relationship": {
2524
2718
  "type": "text",
2525
- "required": true,
2526
2719
  "_meta": {
2720
+ "__statedOptions": [
2721
+ "required"
2722
+ ],
2527
2723
  "required": true
2528
- }
2724
+ },
2725
+ "required": true
2529
2726
  },
2530
2727
  "sortOrder": {
2531
2728
  "type": "integer",
2729
+ "_meta": {
2730
+ "__statedOptions": [
2731
+ "default"
2732
+ ]
2733
+ },
2532
2734
  "required": true,
2533
2735
  "default": 0
2534
2736
  }
@@ -2687,15 +2889,12 @@
2687
2889
  "className": "ProductVariant",
2688
2890
  "qualifiedName": "@happyvertical/smrt-products:ProductVariant",
2689
2891
  "collection": "productvariants",
2690
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/models/ProductVariant.ts",
2892
+ "filePath": "src/lib/models/ProductVariant.ts",
2691
2893
  "packageName": "@happyvertical/smrt-products",
2692
2894
  "fields": {
2693
2895
  "tenantId": {
2694
2896
  "type": "text",
2695
- "required": false,
2696
2897
  "_meta": {
2697
- "sqlType": "UUID",
2698
- "nullable": true,
2699
2898
  "__tenancy": {
2700
2899
  "isTenantIdField": true,
2701
2900
  "autoFilter": true,
@@ -2705,45 +2904,83 @@
2705
2904
  "mode": "optional",
2706
2905
  "field": "tenantId",
2707
2906
  "allowSuperAdminBypass": false
2708
- }
2709
- }
2907
+ },
2908
+ "__statedOptions": [
2909
+ "sqlType",
2910
+ "nullable",
2911
+ "__tenancy",
2912
+ "required"
2913
+ ],
2914
+ "sqlType": "UUID",
2915
+ "nullable": true,
2916
+ "required": false
2917
+ },
2918
+ "required": false
2710
2919
  },
2711
2920
  "productId": {
2712
2921
  "type": "text",
2713
- "required": true,
2714
- "default": "",
2715
- "description": "The product this choice belongs to.",
2716
2922
  "_meta": {
2923
+ "__statedOptions": [
2924
+ "required",
2925
+ "requiredFor",
2926
+ "description",
2927
+ "default"
2928
+ ],
2717
2929
  "required": true,
2718
- "description": "The product this choice belongs to."
2719
- }
2930
+ "description": "The product this choice belongs to.",
2931
+ "requiredFor": "identity"
2932
+ },
2933
+ "required": true,
2934
+ "default": "",
2935
+ "description": "The product this choice belongs to."
2720
2936
  },
2721
2937
  "axisName": {
2722
2938
  "type": "text",
2723
- "required": true,
2724
- "default": "",
2725
- "description": "What the product varies by, for example size or color.",
2726
2939
  "_meta": {
2940
+ "__statedOptions": [
2941
+ "required",
2942
+ "requiredFor",
2943
+ "description",
2944
+ "default"
2945
+ ],
2727
2946
  "required": true,
2728
- "description": "What the product varies by, for example size or color."
2729
- }
2947
+ "description": "What the product varies by, for example size or color.",
2948
+ "requiredFor": "identity"
2949
+ },
2950
+ "required": true,
2951
+ "default": "",
2952
+ "description": "What the product varies by, for example size or color."
2730
2953
  },
2731
2954
  "label": {
2732
2955
  "type": "text",
2956
+ "_meta": {
2957
+ "__statedOptions": [
2958
+ "default"
2959
+ ]
2960
+ },
2733
2961
  "required": false,
2734
2962
  "default": ""
2735
2963
  },
2736
2964
  "allowedValues": {
2737
2965
  "type": "text",
2738
- "required": false,
2739
- "default": "[]",
2740
- "description": "The values on offer, for example S, M and L, stored as a JSON list.",
2741
2966
  "_meta": {
2967
+ "__statedOptions": [
2968
+ "description",
2969
+ "default"
2970
+ ],
2742
2971
  "description": "The values on offer, for example S, M and L, stored as a JSON list."
2743
- }
2972
+ },
2973
+ "required": false,
2974
+ "default": "[]",
2975
+ "description": "The values on offer, for example S, M and L, stored as a JSON list."
2744
2976
  },
2745
2977
  "sortOrder": {
2746
2978
  "type": "integer",
2979
+ "_meta": {
2980
+ "__statedOptions": [
2981
+ "default"
2982
+ ]
2983
+ },
2747
2984
  "required": false,
2748
2985
  "default": 0
2749
2986
  }
@@ -2931,15 +3168,12 @@
2931
3168
  "className": "Sku",
2932
3169
  "qualifiedName": "@happyvertical/smrt-products:Sku",
2933
3170
  "collection": "skus",
2934
- "filePath": "/home/runner/work/smrt/smrt/packages/products/src/lib/models/Sku.ts",
3171
+ "filePath": "src/lib/models/Sku.ts",
2935
3172
  "packageName": "@happyvertical/smrt-products",
2936
3173
  "fields": {
2937
3174
  "tenantId": {
2938
3175
  "type": "text",
2939
- "required": false,
2940
3176
  "_meta": {
2941
- "sqlType": "UUID",
2942
- "nullable": true,
2943
3177
  "__tenancy": {
2944
3178
  "isTenantIdField": true,
2945
3179
  "autoFilter": true,
@@ -2949,60 +3183,110 @@
2949
3183
  "mode": "optional",
2950
3184
  "field": "tenantId",
2951
3185
  "allowSuperAdminBypass": false
2952
- }
2953
- }
3186
+ },
3187
+ "__statedOptions": [
3188
+ "sqlType",
3189
+ "nullable",
3190
+ "__tenancy",
3191
+ "required"
3192
+ ],
3193
+ "sqlType": "UUID",
3194
+ "nullable": true,
3195
+ "required": false
3196
+ },
3197
+ "required": false
2954
3198
  },
2955
3199
  "productId": {
2956
3200
  "type": "text",
2957
- "required": true,
2958
- "default": "",
2959
- "description": "The product this item is a version of.",
2960
3201
  "_meta": {
3202
+ "__statedOptions": [
3203
+ "required",
3204
+ "requiredFor",
3205
+ "description",
3206
+ "default"
3207
+ ],
2961
3208
  "required": true,
2962
- "description": "The product this item is a version of."
2963
- }
3209
+ "description": "The product this item is a version of.",
3210
+ "requiredFor": "identity"
3211
+ },
3212
+ "required": true,
3213
+ "default": "",
3214
+ "description": "The product this item is a version of."
2964
3215
  },
2965
3216
  "code": {
2966
3217
  "type": "text",
2967
- "required": true,
2968
- "default": "",
2969
- "description": "The short code that identifies this exact item, such as a UPC or part number.",
2970
3218
  "_meta": {
3219
+ "__statedOptions": [
3220
+ "required",
3221
+ "requiredFor",
3222
+ "description",
3223
+ "default"
3224
+ ],
2971
3225
  "required": true,
2972
- "description": "The short code that identifies this exact item, such as a UPC or part number."
2973
- }
3226
+ "description": "The short code that identifies this exact item, such as a UPC or part number.",
3227
+ "requiredFor": "identity"
3228
+ },
3229
+ "required": true,
3230
+ "default": "",
3231
+ "description": "The short code that identifies this exact item, such as a UPC or part number."
2974
3232
  },
2975
3233
  "barcode": {
2976
3234
  "type": "text",
3235
+ "_meta": {
3236
+ "__statedOptions": [
3237
+ "default"
3238
+ ]
3239
+ },
2977
3240
  "required": false,
2978
3241
  "default": ""
2979
3242
  },
2980
3243
  "name": {
2981
3244
  "type": "text",
3245
+ "_meta": {
3246
+ "__statedOptions": [
3247
+ "default"
3248
+ ]
3249
+ },
2982
3250
  "required": false,
2983
3251
  "default": ""
2984
3252
  },
2985
3253
  "attributes": {
2986
3254
  "type": "text",
2987
- "required": false,
2988
- "default": "{}",
2989
- "description": "Which attribute values, such as size and color, this item has, stored as JSON.",
2990
3255
  "_meta": {
3256
+ "__statedOptions": [
3257
+ "description",
3258
+ "default"
3259
+ ],
2991
3260
  "description": "Which attribute values, such as size and color, this item has, stored as JSON."
2992
- }
3261
+ },
3262
+ "required": false,
3263
+ "default": "{}",
3264
+ "description": "Which attribute values, such as size and color, this item has, stored as JSON."
2993
3265
  },
2994
3266
  "weightGrams": {
2995
3267
  "type": "decimal",
2996
- "required": false,
2997
- "_meta": {}
3268
+ "_meta": {
3269
+ "__statedOptions": []
3270
+ },
3271
+ "required": false
2998
3272
  },
2999
3273
  "parentSkuId": {
3000
3274
  "type": "text",
3275
+ "_meta": {
3276
+ "__statedOptions": [
3277
+ "default"
3278
+ ]
3279
+ },
3001
3280
  "required": false,
3002
3281
  "default": ""
3003
3282
  },
3004
3283
  "active": {
3005
3284
  "type": "boolean",
3285
+ "_meta": {
3286
+ "__statedOptions": [
3287
+ "default"
3288
+ ]
3289
+ },
3006
3290
  "required": false,
3007
3291
  "default": true
3008
3292
  }
@@ -3489,5 +3773,6 @@
3489
3773
  "@happyvertical/smrt-tenancy"
3490
3774
  ]
3491
3775
  },
3776
+ "schemaFingerprint": "e89b3a2c8bb00ea530b9055913dc514165cd52b8c4c04fff829955a66ebe3061",
3492
3777
  "stampsConstructors": true
3493
3778
  }