@carrot-foundation/schemas 0.1.26 → 0.1.28

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.d.cts CHANGED
@@ -362,13 +362,6 @@ declare const MassIDMeasurementUnitSchema: z.ZodEnum<{
362
362
  ton: "ton";
363
363
  }>;
364
364
  type MassIDMeasurementUnit = z.infer<typeof MassIDMeasurementUnitSchema>;
365
- declare const ContaminationLevelSchema: z.ZodEnum<{
366
- None: "None";
367
- Low: "Low";
368
- Medium: "Medium";
369
- High: "High";
370
- }>;
371
- type ContaminationLevel = z.infer<typeof ContaminationLevelSchema>;
372
365
  declare const MassIDWastePropertiesSchema: z.ZodObject<{
373
366
  type: z.ZodString;
374
367
  subtype: z.ZodString;
@@ -384,12 +377,6 @@ declare const MassIDWastePropertiesSchema: z.ZodObject<{
384
377
  ton: "ton";
385
378
  }>;
386
379
  net_weight: z.ZodNumber;
387
- contamination_level: z.ZodOptional<z.ZodEnum<{
388
- None: "None";
389
- Low: "Low";
390
- Medium: "Medium";
391
- High: "High";
392
- }>>;
393
380
  }, z.core.$strict>;
394
381
  type MassIDWasteProperties = z.infer<typeof MassIDWastePropertiesSchema>;
395
382
  declare const EventAttributeFormatSchema: z.ZodEnum<{
@@ -417,7 +404,7 @@ declare const EventAttachmentSchema: z.ZodObject<{
417
404
  type: z.ZodString;
418
405
  document_number: z.ZodOptional<z.ZodString>;
419
406
  reference: z.ZodString;
420
- issue_date: z.ZodOptional<z.ZodISODate>;
407
+ issue_timestamp: z.ZodOptional<z.ZodNumber>;
421
408
  issuer: z.ZodOptional<z.ZodString>;
422
409
  }, z.core.$strict>;
423
410
  type EventAttachment = z.infer<typeof EventAttachmentSchema>;
@@ -425,7 +412,7 @@ declare const MassIDChainOfCustodyEventSchema: z.ZodObject<{
425
412
  event_id: z.ZodUUID;
426
413
  event_name: z.ZodString;
427
414
  description: z.ZodOptional<z.ZodString>;
428
- timestamp: z.ZodISODateTime;
415
+ timestamp: z.ZodNumber;
429
416
  participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
430
417
  location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
431
418
  weight: z.ZodOptional<z.ZodNumber>;
@@ -445,7 +432,7 @@ declare const MassIDChainOfCustodyEventSchema: z.ZodObject<{
445
432
  type: z.ZodString;
446
433
  document_number: z.ZodOptional<z.ZodString>;
447
434
  reference: z.ZodString;
448
- issue_date: z.ZodOptional<z.ZodISODate>;
435
+ issue_timestamp: z.ZodOptional<z.ZodNumber>;
449
436
  issuer: z.ZodOptional<z.ZodString>;
450
437
  }, z.core.$strict>>>;
451
438
  }, z.core.$strict>;
@@ -455,7 +442,7 @@ declare const MassIDChainOfCustodySchema: z.ZodObject<{
455
442
  event_id: z.ZodUUID;
456
443
  event_name: z.ZodString;
457
444
  description: z.ZodOptional<z.ZodString>;
458
- timestamp: z.ZodISODateTime;
445
+ timestamp: z.ZodNumber;
459
446
  participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
460
447
  location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
461
448
  weight: z.ZodOptional<z.ZodNumber>;
@@ -475,18 +462,18 @@ declare const MassIDChainOfCustodySchema: z.ZodObject<{
475
462
  type: z.ZodString;
476
463
  document_number: z.ZodOptional<z.ZodString>;
477
464
  reference: z.ZodString;
478
- issue_date: z.ZodOptional<z.ZodISODate>;
465
+ issue_timestamp: z.ZodOptional<z.ZodNumber>;
479
466
  issuer: z.ZodOptional<z.ZodString>;
480
467
  }, z.core.$strict>>>;
481
468
  }, z.core.$strict>>;
482
- total_duration_hours: z.ZodNumber;
469
+ total_duration_minutes: z.ZodNumber;
483
470
  }, z.core.$strict>;
484
471
  type MassIDChainOfCustody = z.infer<typeof MassIDChainOfCustodySchema>;
485
472
  declare const MassIDGeographicDataSchema: z.ZodObject<{
486
473
  from_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
487
474
  to_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
488
- first_reported_timestamp: z.ZodISODateTime;
489
- last_reported_timestamp: z.ZodISODateTime;
475
+ first_reported_timestamp: z.ZodNumber;
476
+ last_reported_timestamp: z.ZodNumber;
490
477
  }, z.core.$strict>;
491
478
  type MassIDGeographicData = z.infer<typeof MassIDGeographicDataSchema>;
492
479
  declare const MassIDDataSchema: z.ZodObject<{
@@ -505,12 +492,6 @@ declare const MassIDDataSchema: z.ZodObject<{
505
492
  ton: "ton";
506
493
  }>;
507
494
  net_weight: z.ZodNumber;
508
- contamination_level: z.ZodOptional<z.ZodEnum<{
509
- None: "None";
510
- Low: "Low";
511
- Medium: "Medium";
512
- High: "High";
513
- }>>;
514
495
  }, z.core.$strict>;
515
496
  locations: z.ZodArray<z.ZodObject<{
516
497
  id_hash: z.ZodCustomStringFormat<"sha256_hex">;
@@ -548,7 +529,7 @@ declare const MassIDDataSchema: z.ZodObject<{
548
529
  event_id: z.ZodUUID;
549
530
  event_name: z.ZodString;
550
531
  description: z.ZodOptional<z.ZodString>;
551
- timestamp: z.ZodISODateTime;
532
+ timestamp: z.ZodNumber;
552
533
  participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
553
534
  location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
554
535
  weight: z.ZodOptional<z.ZodNumber>;
@@ -568,17 +549,17 @@ declare const MassIDDataSchema: z.ZodObject<{
568
549
  type: z.ZodString;
569
550
  document_number: z.ZodOptional<z.ZodString>;
570
551
  reference: z.ZodString;
571
- issue_date: z.ZodOptional<z.ZodISODate>;
552
+ issue_timestamp: z.ZodOptional<z.ZodNumber>;
572
553
  issuer: z.ZodOptional<z.ZodString>;
573
554
  }, z.core.$strict>>>;
574
555
  }, z.core.$strict>>;
575
- total_duration_hours: z.ZodNumber;
556
+ total_duration_minutes: z.ZodNumber;
576
557
  }, z.core.$strict>;
577
558
  geographic_data: z.ZodObject<{
578
559
  from_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
579
560
  to_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
580
- first_reported_timestamp: z.ZodISODateTime;
581
- last_reported_timestamp: z.ZodISODateTime;
561
+ first_reported_timestamp: z.ZodNumber;
562
+ last_reported_timestamp: z.ZodNumber;
582
563
  }, z.core.$strict>;
583
564
  }, z.core.$strict>;
584
565
  type MassIDData = z.infer<typeof MassIDDataSchema>;
@@ -824,12 +805,6 @@ declare const MassIDIpfsSchema: z.ZodObject<{
824
805
  ton: "ton";
825
806
  }>;
826
807
  net_weight: z.ZodNumber;
827
- contamination_level: z.ZodOptional<z.ZodEnum<{
828
- None: "None";
829
- Low: "Low";
830
- Medium: "Medium";
831
- High: "High";
832
- }>>;
833
808
  }, z.core.$strict>;
834
809
  locations: z.ZodArray<z.ZodObject<{
835
810
  id_hash: z.ZodCustomStringFormat<"sha256_hex">;
@@ -867,7 +842,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
867
842
  event_id: z.ZodUUID;
868
843
  event_name: z.ZodString;
869
844
  description: z.ZodOptional<z.ZodString>;
870
- timestamp: z.ZodISODateTime;
845
+ timestamp: z.ZodNumber;
871
846
  participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
872
847
  location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
873
848
  weight: z.ZodOptional<z.ZodNumber>;
@@ -887,20 +862,20 @@ declare const MassIDIpfsSchema: z.ZodObject<{
887
862
  type: z.ZodString;
888
863
  document_number: z.ZodOptional<z.ZodString>;
889
864
  reference: z.ZodString;
890
- issue_date: z.ZodOptional<z.ZodISODate>;
865
+ issue_timestamp: z.ZodOptional<z.ZodNumber>;
891
866
  issuer: z.ZodOptional<z.ZodString>;
892
867
  }, z.core.$strict>>>;
893
868
  }, z.core.$strict>>;
894
- total_duration_hours: z.ZodNumber;
869
+ total_duration_minutes: z.ZodNumber;
895
870
  }, z.core.$strict>;
896
871
  geographic_data: z.ZodObject<{
897
872
  from_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
898
873
  to_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
899
- first_reported_timestamp: z.ZodISODateTime;
900
- last_reported_timestamp: z.ZodISODateTime;
874
+ first_reported_timestamp: z.ZodNumber;
875
+ last_reported_timestamp: z.ZodNumber;
901
876
  }, z.core.$strict>;
902
877
  }, z.core.$strict>;
903
878
  }, z.core.$strict>;
904
879
  type MassIDIpfs = z.infer<typeof MassIDIpfsSchema>;
905
880
 
906
- export { type ContaminationLevel, type EventAttachment, type EventAttribute, type EventAttributeFormat, type MassIDAttributeContainerType, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCountry, type MassIDAttributeOriginDivision, type MassIDAttributeOriginMunicipality, type MassIDAttributePickUpDate, type MassIDAttributeProcessingTime, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeVehicleType, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDChainOfCustody, type MassIDChainOfCustodyEvent, type MassIDData, MassIDDataSchema, type MassIDGeographicData, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, type MassIDMeasurementUnit, type MassIDWasteProperties };
881
+ export { type EventAttachment, type EventAttribute, type EventAttributeFormat, type MassIDAttributeContainerType, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCountry, type MassIDAttributeOriginDivision, type MassIDAttributeOriginMunicipality, type MassIDAttributePickUpDate, type MassIDAttributeProcessingTime, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeVehicleType, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDChainOfCustody, type MassIDChainOfCustodyEvent, type MassIDData, MassIDDataSchema, type MassIDGeographicData, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, type MassIDMeasurementUnit, type MassIDWasteProperties };
package/dist/index.d.ts CHANGED
@@ -362,13 +362,6 @@ declare const MassIDMeasurementUnitSchema: z.ZodEnum<{
362
362
  ton: "ton";
363
363
  }>;
364
364
  type MassIDMeasurementUnit = z.infer<typeof MassIDMeasurementUnitSchema>;
365
- declare const ContaminationLevelSchema: z.ZodEnum<{
366
- None: "None";
367
- Low: "Low";
368
- Medium: "Medium";
369
- High: "High";
370
- }>;
371
- type ContaminationLevel = z.infer<typeof ContaminationLevelSchema>;
372
365
  declare const MassIDWastePropertiesSchema: z.ZodObject<{
373
366
  type: z.ZodString;
374
367
  subtype: z.ZodString;
@@ -384,12 +377,6 @@ declare const MassIDWastePropertiesSchema: z.ZodObject<{
384
377
  ton: "ton";
385
378
  }>;
386
379
  net_weight: z.ZodNumber;
387
- contamination_level: z.ZodOptional<z.ZodEnum<{
388
- None: "None";
389
- Low: "Low";
390
- Medium: "Medium";
391
- High: "High";
392
- }>>;
393
380
  }, z.core.$strict>;
394
381
  type MassIDWasteProperties = z.infer<typeof MassIDWastePropertiesSchema>;
395
382
  declare const EventAttributeFormatSchema: z.ZodEnum<{
@@ -417,7 +404,7 @@ declare const EventAttachmentSchema: z.ZodObject<{
417
404
  type: z.ZodString;
418
405
  document_number: z.ZodOptional<z.ZodString>;
419
406
  reference: z.ZodString;
420
- issue_date: z.ZodOptional<z.ZodISODate>;
407
+ issue_timestamp: z.ZodOptional<z.ZodNumber>;
421
408
  issuer: z.ZodOptional<z.ZodString>;
422
409
  }, z.core.$strict>;
423
410
  type EventAttachment = z.infer<typeof EventAttachmentSchema>;
@@ -425,7 +412,7 @@ declare const MassIDChainOfCustodyEventSchema: z.ZodObject<{
425
412
  event_id: z.ZodUUID;
426
413
  event_name: z.ZodString;
427
414
  description: z.ZodOptional<z.ZodString>;
428
- timestamp: z.ZodISODateTime;
415
+ timestamp: z.ZodNumber;
429
416
  participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
430
417
  location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
431
418
  weight: z.ZodOptional<z.ZodNumber>;
@@ -445,7 +432,7 @@ declare const MassIDChainOfCustodyEventSchema: z.ZodObject<{
445
432
  type: z.ZodString;
446
433
  document_number: z.ZodOptional<z.ZodString>;
447
434
  reference: z.ZodString;
448
- issue_date: z.ZodOptional<z.ZodISODate>;
435
+ issue_timestamp: z.ZodOptional<z.ZodNumber>;
449
436
  issuer: z.ZodOptional<z.ZodString>;
450
437
  }, z.core.$strict>>>;
451
438
  }, z.core.$strict>;
@@ -455,7 +442,7 @@ declare const MassIDChainOfCustodySchema: z.ZodObject<{
455
442
  event_id: z.ZodUUID;
456
443
  event_name: z.ZodString;
457
444
  description: z.ZodOptional<z.ZodString>;
458
- timestamp: z.ZodISODateTime;
445
+ timestamp: z.ZodNumber;
459
446
  participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
460
447
  location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
461
448
  weight: z.ZodOptional<z.ZodNumber>;
@@ -475,18 +462,18 @@ declare const MassIDChainOfCustodySchema: z.ZodObject<{
475
462
  type: z.ZodString;
476
463
  document_number: z.ZodOptional<z.ZodString>;
477
464
  reference: z.ZodString;
478
- issue_date: z.ZodOptional<z.ZodISODate>;
465
+ issue_timestamp: z.ZodOptional<z.ZodNumber>;
479
466
  issuer: z.ZodOptional<z.ZodString>;
480
467
  }, z.core.$strict>>>;
481
468
  }, z.core.$strict>>;
482
- total_duration_hours: z.ZodNumber;
469
+ total_duration_minutes: z.ZodNumber;
483
470
  }, z.core.$strict>;
484
471
  type MassIDChainOfCustody = z.infer<typeof MassIDChainOfCustodySchema>;
485
472
  declare const MassIDGeographicDataSchema: z.ZodObject<{
486
473
  from_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
487
474
  to_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
488
- first_reported_timestamp: z.ZodISODateTime;
489
- last_reported_timestamp: z.ZodISODateTime;
475
+ first_reported_timestamp: z.ZodNumber;
476
+ last_reported_timestamp: z.ZodNumber;
490
477
  }, z.core.$strict>;
491
478
  type MassIDGeographicData = z.infer<typeof MassIDGeographicDataSchema>;
492
479
  declare const MassIDDataSchema: z.ZodObject<{
@@ -505,12 +492,6 @@ declare const MassIDDataSchema: z.ZodObject<{
505
492
  ton: "ton";
506
493
  }>;
507
494
  net_weight: z.ZodNumber;
508
- contamination_level: z.ZodOptional<z.ZodEnum<{
509
- None: "None";
510
- Low: "Low";
511
- Medium: "Medium";
512
- High: "High";
513
- }>>;
514
495
  }, z.core.$strict>;
515
496
  locations: z.ZodArray<z.ZodObject<{
516
497
  id_hash: z.ZodCustomStringFormat<"sha256_hex">;
@@ -548,7 +529,7 @@ declare const MassIDDataSchema: z.ZodObject<{
548
529
  event_id: z.ZodUUID;
549
530
  event_name: z.ZodString;
550
531
  description: z.ZodOptional<z.ZodString>;
551
- timestamp: z.ZodISODateTime;
532
+ timestamp: z.ZodNumber;
552
533
  participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
553
534
  location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
554
535
  weight: z.ZodOptional<z.ZodNumber>;
@@ -568,17 +549,17 @@ declare const MassIDDataSchema: z.ZodObject<{
568
549
  type: z.ZodString;
569
550
  document_number: z.ZodOptional<z.ZodString>;
570
551
  reference: z.ZodString;
571
- issue_date: z.ZodOptional<z.ZodISODate>;
552
+ issue_timestamp: z.ZodOptional<z.ZodNumber>;
572
553
  issuer: z.ZodOptional<z.ZodString>;
573
554
  }, z.core.$strict>>>;
574
555
  }, z.core.$strict>>;
575
- total_duration_hours: z.ZodNumber;
556
+ total_duration_minutes: z.ZodNumber;
576
557
  }, z.core.$strict>;
577
558
  geographic_data: z.ZodObject<{
578
559
  from_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
579
560
  to_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
580
- first_reported_timestamp: z.ZodISODateTime;
581
- last_reported_timestamp: z.ZodISODateTime;
561
+ first_reported_timestamp: z.ZodNumber;
562
+ last_reported_timestamp: z.ZodNumber;
582
563
  }, z.core.$strict>;
583
564
  }, z.core.$strict>;
584
565
  type MassIDData = z.infer<typeof MassIDDataSchema>;
@@ -824,12 +805,6 @@ declare const MassIDIpfsSchema: z.ZodObject<{
824
805
  ton: "ton";
825
806
  }>;
826
807
  net_weight: z.ZodNumber;
827
- contamination_level: z.ZodOptional<z.ZodEnum<{
828
- None: "None";
829
- Low: "Low";
830
- Medium: "Medium";
831
- High: "High";
832
- }>>;
833
808
  }, z.core.$strict>;
834
809
  locations: z.ZodArray<z.ZodObject<{
835
810
  id_hash: z.ZodCustomStringFormat<"sha256_hex">;
@@ -867,7 +842,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
867
842
  event_id: z.ZodUUID;
868
843
  event_name: z.ZodString;
869
844
  description: z.ZodOptional<z.ZodString>;
870
- timestamp: z.ZodISODateTime;
845
+ timestamp: z.ZodNumber;
871
846
  participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
872
847
  location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
873
848
  weight: z.ZodOptional<z.ZodNumber>;
@@ -887,20 +862,20 @@ declare const MassIDIpfsSchema: z.ZodObject<{
887
862
  type: z.ZodString;
888
863
  document_number: z.ZodOptional<z.ZodString>;
889
864
  reference: z.ZodString;
890
- issue_date: z.ZodOptional<z.ZodISODate>;
865
+ issue_timestamp: z.ZodOptional<z.ZodNumber>;
891
866
  issuer: z.ZodOptional<z.ZodString>;
892
867
  }, z.core.$strict>>>;
893
868
  }, z.core.$strict>>;
894
- total_duration_hours: z.ZodNumber;
869
+ total_duration_minutes: z.ZodNumber;
895
870
  }, z.core.$strict>;
896
871
  geographic_data: z.ZodObject<{
897
872
  from_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
898
873
  to_location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
899
- first_reported_timestamp: z.ZodISODateTime;
900
- last_reported_timestamp: z.ZodISODateTime;
874
+ first_reported_timestamp: z.ZodNumber;
875
+ last_reported_timestamp: z.ZodNumber;
901
876
  }, z.core.$strict>;
902
877
  }, z.core.$strict>;
903
878
  }, z.core.$strict>;
904
879
  type MassIDIpfs = z.infer<typeof MassIDIpfsSchema>;
905
880
 
906
- export { type ContaminationLevel, type EventAttachment, type EventAttribute, type EventAttributeFormat, type MassIDAttributeContainerType, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCountry, type MassIDAttributeOriginDivision, type MassIDAttributeOriginMunicipality, type MassIDAttributePickUpDate, type MassIDAttributeProcessingTime, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeVehicleType, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDChainOfCustody, type MassIDChainOfCustodyEvent, type MassIDData, MassIDDataSchema, type MassIDGeographicData, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, type MassIDMeasurementUnit, type MassIDWasteProperties };
881
+ export { type EventAttachment, type EventAttribute, type EventAttributeFormat, type MassIDAttributeContainerType, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCountry, type MassIDAttributeOriginDivision, type MassIDAttributeOriginMunicipality, type MassIDAttributePickUpDate, type MassIDAttributeProcessingTime, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeVehicleType, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDChainOfCustody, type MassIDChainOfCustodyEvent, type MassIDData, MassIDDataSchema, type MassIDGeographicData, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, type MassIDMeasurementUnit, type MassIDWasteProperties };
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ var IsoTimestampSchema = z.iso.datetime({
28
28
  description: "ISO 8601 formatted timestamp with timezone information",
29
29
  examples: ["2024-12-05T11:02:47.000Z", "2025-02-22T10:35:12.000Z"]
30
30
  });
31
- var IsoDateSchema = z.iso.date("Must be a valid ISO 8601 date (YYYY-MM-DD)").meta({
31
+ z.iso.date("Must be a valid ISO 8601 date (YYYY-MM-DD)").meta({
32
32
  title: "ISO Date",
33
33
  description: "ISO 8601 formatted date in YYYY-MM-DD format",
34
34
  examples: ["2024-12-05", "2025-02-22", "2024-02-10"]
@@ -143,6 +143,11 @@ var HoursSchema = z.number().min(0).multipleOf(0.1).meta({
143
143
  description: "Time duration in hours with 0.1 hour precision",
144
144
  examples: [72.5, 24, 168.5]
145
145
  });
146
+ var MinutesSchema = z.number().int().min(0).meta({
147
+ title: "Minutes",
148
+ description: "Time duration in minutes",
149
+ examples: [4350, 1440, 10110]
150
+ });
146
151
  var IpfsUriSchema = NonEmptyStringSchema.regex(
147
152
  /^ipfs:\/\/[a-zA-Z0-9]+(\/.*)?$/,
148
153
  "Must be a valid IPFS URI with CID"
@@ -878,11 +883,6 @@ var MassIDMeasurementUnitSchema = z.enum(["kg", "ton"]).meta({
878
883
  description: "Unit of measurement for the waste quantity",
879
884
  examples: ["kg", "ton"]
880
885
  });
881
- var ContaminationLevelSchema = z.enum(["None", "Low", "Medium", "High"]).meta({
882
- title: "Contamination Level",
883
- description: "Level of contamination in the waste batch",
884
- examples: ["Low", "Medium", "None"]
885
- });
886
886
  var MassIDWastePropertiesSchema = z.strictObject({
887
887
  type: WasteTypeSchema.meta({
888
888
  title: "Waste Type",
@@ -897,8 +897,7 @@ var MassIDWastePropertiesSchema = z.strictObject({
897
897
  net_weight: NonNegativeFloatSchema.meta({
898
898
  title: "Net Weight",
899
899
  description: "Net weight of the waste batch in the specified measurement unit"
900
- }),
901
- contamination_level: ContaminationLevelSchema.optional()
900
+ })
902
901
  }).meta({
903
902
  title: "Waste Properties",
904
903
  description: "Standardized waste material properties and regulatory information"
@@ -983,9 +982,10 @@ var EventAttachmentSchema = z.strictObject({
983
982
  "processing_receipt_20240315.jpg"
984
983
  ]
985
984
  }),
986
- issue_date: IsoDateSchema.optional().meta({
987
- title: "Issue Date",
988
- description: "Date the attachment was issued"
985
+ issue_timestamp: UnixTimestampSchema.optional().meta({
986
+ title: "Issue Timestamp",
987
+ description: "Unix timestamp in milliseconds when the attachment was issued",
988
+ examples: [17105184e5, 17040672e5, 17152704e5]
989
989
  }),
990
990
  issuer: NonEmptyStringSchema.max(100).optional().meta({
991
991
  title: "Attachment Issuer",
@@ -1025,9 +1025,10 @@ var MassIDChainOfCustodyEventSchema = z.strictObject({
1025
1025
  "Quality inspection and contamination assessment completed"
1026
1026
  ]
1027
1027
  }),
1028
- timestamp: IsoTimestampSchema.meta({
1028
+ timestamp: UnixTimestampSchema.meta({
1029
1029
  title: "Event Timestamp",
1030
- description: "ISO 8601 timestamp when the event occurred"
1030
+ description: "Unix timestamp in milliseconds when the event occurred",
1031
+ examples: [17105184e5, 17040672e5, 17152704e5]
1031
1032
  }),
1032
1033
  participant_id_hash: Sha256HashSchema.meta({
1033
1034
  title: "Participant ID Hash",
@@ -1058,9 +1059,9 @@ var MassIDChainOfCustodySchema = z.strictObject({
1058
1059
  title: "Custody Events",
1059
1060
  description: "Chronological sequence of custody transfer and processing events"
1060
1061
  }),
1061
- total_duration_hours: HoursSchema.meta({
1062
- title: "Total Duration (hours)",
1063
- description: "Total time from first to last event in hours"
1062
+ total_duration_minutes: MinutesSchema.meta({
1063
+ title: "Total Duration (minutes)",
1064
+ description: "Total time from first to last event in minutes"
1064
1065
  })
1065
1066
  }).meta({
1066
1067
  title: "Chain of Custody",
@@ -1075,18 +1076,18 @@ var MassIDGeographicDataSchema = z.strictObject({
1075
1076
  title: "To Location ID Hash",
1076
1077
  description: "Reference hash of the location where the waste ended movement"
1077
1078
  }),
1078
- first_reported_timestamp: IsoTimestampSchema.meta({
1079
+ first_reported_timestamp: UnixTimestampSchema.meta({
1079
1080
  title: "First Reported Timestamp",
1080
- description: "ISO 8601 timestamp when the waste was first reported/collected at the origin location"
1081
+ description: "Unix timestamp in milliseconds when the waste was first reported/collected at the origin location",
1082
+ examples: [17105184e5, 17040672e5, 17152704e5]
1081
1083
  }),
1082
- last_reported_timestamp: IsoTimestampSchema.meta({
1084
+ last_reported_timestamp: UnixTimestampSchema.meta({
1083
1085
  title: "Last Reported Timestamp",
1084
- description: "ISO 8601 timestamp when the waste was last reported/processed at the destination location"
1086
+ description: "Unix timestamp in milliseconds when the waste was last reported/processed at the destination location",
1087
+ examples: [17106048e5, 17041536e5, 17153568e5]
1085
1088
  })
1086
1089
  }).refine((data) => {
1087
- const first = new Date(data.first_reported_timestamp);
1088
- const last = new Date(data.last_reported_timestamp);
1089
- return first <= last;
1090
+ return data.first_reported_timestamp <= data.last_reported_timestamp;
1090
1091
  }, "first_reported_timestamp must be before or equal to last_reported_timestamp").meta({
1091
1092
  title: "Geographic Data",
1092
1093
  description: "Simplified geographic information tracking waste movement from origin to destination with temporal bounds"