@carrot-foundation/schemas 0.1.49 → 0.1.51

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/index.cjs +213 -229
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +176 -168
  4. package/dist/index.d.ts +176 -168
  5. package/dist/index.js +208 -228
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/schemas/ipfs/collection/collection.example.json +5 -5
  9. package/schemas/ipfs/collection/collection.schema.json +2 -2
  10. package/schemas/ipfs/credit/credit.example.json +5 -5
  11. package/schemas/ipfs/credit/credit.schema.json +2 -2
  12. package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +8 -8
  13. package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +6 -17
  14. package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +7 -7
  15. package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +5 -16
  16. package/schemas/ipfs/gas-id/gas-id.example.json +17 -15
  17. package/schemas/ipfs/gas-id/gas-id.schema.json +29 -17
  18. package/schemas/ipfs/mass-id/mass-id.example.json +13 -13
  19. package/schemas/ipfs/mass-id/mass-id.schema.json +31 -62
  20. package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +150 -150
  21. package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +2 -2
  22. package/schemas/ipfs/methodology/methodology.example.json +89 -89
  23. package/schemas/ipfs/methodology/methodology.schema.json +2 -2
  24. package/schemas/ipfs/recycled-id/recycled-id.example.json +17 -15
  25. package/schemas/ipfs/recycled-id/recycled-id.schema.json +24 -13
  26. package/schemas/schema-hashes.json +10 -10
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "title": "MassID NFT IPFS Record",
4
4
  "description": "Complete MassID NFT IPFS record including fixed attributes and detailed waste tracking data",
5
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.49/schemas/ipfs/mass-id/mass-id.schema.json",
6
- "version": "0.1.49",
5
+ "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.51/schemas/ipfs/mass-id/mass-id.schema.json",
6
+ "version": "0.1.51",
7
7
  "type": "object",
8
8
  "properties": {
9
9
  "$schema": {
@@ -256,8 +256,8 @@
256
256
  ],
257
257
  "additionalProperties": false
258
258
  },
259
- "net_weight": {
260
- "title": "Net Weight (kg)",
259
+ "net_weight_kg": {
260
+ "title": "Net Weight",
261
261
  "description": "Net weight of the waste batch in kilograms (kg)",
262
262
  "examples": [
263
263
  3000
@@ -269,7 +269,7 @@
269
269
  "required": [
270
270
  "type",
271
271
  "subtype",
272
- "net_weight"
272
+ "net_weight_kg"
273
273
  ],
274
274
  "additionalProperties": false
275
275
  },
@@ -517,8 +517,8 @@
517
517
  "Truck"
518
518
  ]
519
519
  },
520
- "weight": {
521
- "title": "Pick-up Waste Weight (kg)",
520
+ "weight_kg": {
521
+ "title": "Pick-up Waste Weight",
522
522
  "description": "Weight of the waste picked up at the origin location in kilograms (kg)",
523
523
  "examples": [
524
524
  500.35,
@@ -668,9 +668,9 @@
668
668
  "Truck"
669
669
  ]
670
670
  },
671
- "container_capacity": {
672
- "title": "Container Capacity (kg)",
673
- "description": "Maximum container capacity in kilograms",
671
+ "container_capacity_kg": {
672
+ "title": "Container Capacity",
673
+ "description": "Maximum container capacity in kilograms (kg)",
674
674
  "examples": [
675
675
  500.35,
676
676
  3000
@@ -678,9 +678,9 @@
678
678
  "type": "number",
679
679
  "minimum": 0
680
680
  },
681
- "gross_weight": {
682
- "title": "Gross Weight (kg)",
683
- "description": "Total weight including vehicle/container before tare",
681
+ "gross_weight_kg": {
682
+ "title": "Gross Weight",
683
+ "description": "Total weight including vehicle/container before tare in kilograms (kg)",
684
684
  "examples": [
685
685
  500.35,
686
686
  3000
@@ -688,9 +688,9 @@
688
688
  "type": "number",
689
689
  "minimum": 0
690
690
  },
691
- "tare": {
692
- "title": "Tare Weight (kg)",
693
- "description": "Weight of the empty vehicle or container",
691
+ "tare_kg": {
692
+ "title": "Tare Weight",
693
+ "description": "Weight of the empty vehicle or container in kilograms (kg)",
694
694
  "examples": [
695
695
  500.35,
696
696
  3000
@@ -828,9 +828,9 @@
828
828
  "description": "Weights associated with sorting, including initial and deducted amounts",
829
829
  "type": "object",
830
830
  "properties": {
831
- "initial_weight": {
832
- "title": "Initial Weight (kg)",
833
- "description": "Weight of the material entering the sorting process in kilograms",
831
+ "initial_weight_kg": {
832
+ "title": "Initial Weight",
833
+ "description": "Weight of the material entering the sorting process in kilograms (kg)",
834
834
  "examples": [
835
835
  500.35,
836
836
  3000
@@ -838,9 +838,9 @@
838
838
  "type": "number",
839
839
  "minimum": 0
840
840
  },
841
- "deducted_weight": {
842
- "title": "Deducted Weight (kg)",
843
- "description": "Weight removed during sorting (e.g., contaminants or moisture) in kilograms",
841
+ "deducted_weight_kg": {
842
+ "title": "Deducted Weight",
843
+ "description": "Weight removed during sorting (e.g., contaminants or moisture) in kilograms (kg)",
844
844
  "examples": [
845
845
  500.35,
846
846
  3000
@@ -1284,8 +1284,8 @@
1284
1284
  "additionalProperties": false
1285
1285
  },
1286
1286
  {
1287
- "title": "Weight Attribute (kg)",
1288
- "description": "Net batch weight in kilograms (kg) for this MassID",
1287
+ "title": "Weight Attribute",
1288
+ "description": "Net batch weight in kilograms (kg) for this MassID attribute with numeric display",
1289
1289
  "type": "object",
1290
1290
  "properties": {
1291
1291
  "trait_type": {
@@ -1293,8 +1293,8 @@
1293
1293
  "const": "Weight (kg)"
1294
1294
  },
1295
1295
  "value": {
1296
- "title": "Weight (kg)",
1297
- "description": "Weight measurement in kilograms",
1296
+ "title": "Weight",
1297
+ "description": "Net batch weight in kilograms (kg) for this MassID",
1298
1298
  "examples": [
1299
1299
  500.35,
1300
1300
  3000
@@ -1326,6 +1326,8 @@
1326
1326
  "additionalProperties": false
1327
1327
  },
1328
1328
  {
1329
+ "title": "Origin City Attribute",
1330
+ "description": "Origin municipality attribute",
1329
1331
  "type": "object",
1330
1332
  "properties": {
1331
1333
  "trait_type": {
@@ -1740,7 +1742,7 @@
1740
1742
  },
1741
1743
  {
1742
1744
  "title": "Pick-up Date Attribute",
1743
- "description": "Pick-up date attribute with Unix timestamp",
1745
+ "description": "Unix timestamp in milliseconds when the waste was picked up from the source attribute",
1744
1746
  "type": "object",
1745
1747
  "properties": {
1746
1748
  "trait_type": {
@@ -1760,17 +1762,6 @@
1760
1762
  "display_type": {
1761
1763
  "type": "string",
1762
1764
  "const": "date"
1763
- },
1764
- "max_value": {
1765
- "title": "Max Value",
1766
- "description": "Maximum possible value for numeric traits",
1767
- "examples": [
1768
- 0,
1769
- 45.2,
1770
- 72.5
1771
- ],
1772
- "type": "number",
1773
- "minimum": 0
1774
1765
  }
1775
1766
  },
1776
1767
  "required": [
@@ -1782,7 +1773,7 @@
1782
1773
  },
1783
1774
  {
1784
1775
  "title": "Drop-off Date Attribute",
1785
- "description": "Drop-off date attribute with Unix timestamp",
1776
+ "description": "Unix timestamp in milliseconds when the waste was dropped off at the destination attribute",
1786
1777
  "type": "object",
1787
1778
  "properties": {
1788
1779
  "trait_type": {
@@ -1802,17 +1793,6 @@
1802
1793
  "display_type": {
1803
1794
  "type": "string",
1804
1795
  "const": "date"
1805
- },
1806
- "max_value": {
1807
- "title": "Max Value",
1808
- "description": "Maximum possible value for numeric traits",
1809
- "examples": [
1810
- 0,
1811
- 45.2,
1812
- 72.5
1813
- ],
1814
- "type": "number",
1815
- "minimum": 0
1816
1796
  }
1817
1797
  },
1818
1798
  "required": [
@@ -1824,7 +1804,7 @@
1824
1804
  },
1825
1805
  {
1826
1806
  "title": "Recycling Date Attribute",
1827
- "description": "Recycling date attribute with Unix timestamp",
1807
+ "description": "Unix timestamp in milliseconds when the waste was recycled/processed attribute",
1828
1808
  "type": "object",
1829
1809
  "properties": {
1830
1810
  "trait_type": {
@@ -1844,17 +1824,6 @@
1844
1824
  "display_type": {
1845
1825
  "type": "string",
1846
1826
  "const": "date"
1847
- },
1848
- "max_value": {
1849
- "title": "Max Value",
1850
- "description": "Maximum possible value for numeric traits",
1851
- "examples": [
1852
- 0,
1853
- 45.2,
1854
- 72.5
1855
- ],
1856
- "type": "number",
1857
- "minimum": 0
1858
1827
  }
1859
1828
  },
1860
1829
  "required": [