@carrot-foundation/schemas 0.1.39 → 0.1.40
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.cjs +491 -375
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +285 -319
- package/dist/index.d.ts +285 -319
- package/dist/index.js +491 -375
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.schema.json +2 -2
- package/schemas/ipfs/credit/credit.schema.json +2 -2
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +11 -20
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +11 -20
- package/schemas/ipfs/gas-id/gas-id.example.json +1 -2
- package/schemas/ipfs/gas-id/gas-id.schema.json +3 -20
- package/schemas/ipfs/mass-id/mass-id.example.json +87 -187
- package/schemas/ipfs/mass-id/mass-id.schema.json +658 -484
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +2 -2
- package/schemas/ipfs/methodology/methodology.schema.json +2 -2
- package/schemas/ipfs/recycled-id/recycled-id.example.json +1 -2
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +3 -20
package/dist/index.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ declare const MassIDAttributeOriginDivisionSchema: z.ZodObject<{
|
|
|
67
67
|
value: z.ZodString;
|
|
68
68
|
}, z.core.$strict>;
|
|
69
69
|
type MassIDAttributeOriginDivision = z.infer<typeof MassIDAttributeOriginDivisionSchema>;
|
|
70
|
-
declare const
|
|
70
|
+
declare const MassIDAttributePickUpVehicleTypeSchema: z.ZodObject<{
|
|
71
71
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
72
72
|
number: "number";
|
|
73
73
|
date: "date";
|
|
@@ -75,10 +75,10 @@ declare const MassIDAttributeVehicleTypeSchema: z.ZodObject<{
|
|
|
75
75
|
boost_percentage: "boost_percentage";
|
|
76
76
|
}>>;
|
|
77
77
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
78
|
-
trait_type: z.ZodLiteral<"Vehicle Type">;
|
|
78
|
+
trait_type: z.ZodLiteral<"Pick-up Vehicle Type">;
|
|
79
79
|
value: z.ZodString;
|
|
80
80
|
}, z.core.$strict>;
|
|
81
|
-
type
|
|
81
|
+
type MassIDAttributePickUpVehicleType = z.infer<typeof MassIDAttributePickUpVehicleTypeSchema>;
|
|
82
82
|
declare const MassIDAttributeRecyclingMethodSchema: z.ZodObject<{
|
|
83
83
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
84
84
|
number: "number";
|
|
@@ -91,19 +91,6 @@ declare const MassIDAttributeRecyclingMethodSchema: z.ZodObject<{
|
|
|
91
91
|
value: z.ZodString;
|
|
92
92
|
}, z.core.$strict>;
|
|
93
93
|
type MassIDAttributeRecyclingMethod = z.infer<typeof MassIDAttributeRecyclingMethodSchema>;
|
|
94
|
-
declare const MassIDAttributeProcessingTimeSchema: z.ZodObject<{
|
|
95
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
96
|
-
number: "number";
|
|
97
|
-
date: "date";
|
|
98
|
-
boost_number: "boost_number";
|
|
99
|
-
boost_percentage: "boost_percentage";
|
|
100
|
-
}>>;
|
|
101
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
trait_type: z.ZodLiteral<"Processing Time (hours)">;
|
|
103
|
-
value: z.ZodNumber;
|
|
104
|
-
trait_description: z.ZodOptional<z.ZodString>;
|
|
105
|
-
}, z.core.$strict>;
|
|
106
|
-
type MassIDAttributeProcessingTime = z.infer<typeof MassIDAttributeProcessingTimeSchema>;
|
|
107
94
|
declare const MassIDAttributeLocalWasteClassificationIdSchema: z.ZodObject<{
|
|
108
95
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
109
96
|
number: "number";
|
|
@@ -124,7 +111,7 @@ declare const MassIDAttributeRecyclingManifestCodeSchema: z.ZodObject<{
|
|
|
124
111
|
boost_percentage: "boost_percentage";
|
|
125
112
|
}>>;
|
|
126
113
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
127
|
-
trait_type: z.ZodLiteral<"Recycling Manifest
|
|
114
|
+
trait_type: z.ZodLiteral<"Recycling Manifest Number">;
|
|
128
115
|
value: z.ZodString;
|
|
129
116
|
}, z.core.$strict>;
|
|
130
117
|
type MassIDAttributeRecyclingManifestCode = z.infer<typeof MassIDAttributeRecyclingManifestCodeSchema>;
|
|
@@ -136,7 +123,7 @@ declare const MassIDAttributeTransportManifestCodeSchema: z.ZodObject<{
|
|
|
136
123
|
boost_percentage: "boost_percentage";
|
|
137
124
|
}>>;
|
|
138
125
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
trait_type: z.ZodLiteral<"Transport Manifest
|
|
126
|
+
trait_type: z.ZodLiteral<"Transport Manifest Number">;
|
|
140
127
|
value: z.ZodString;
|
|
141
128
|
}, z.core.$strict>;
|
|
142
129
|
type MassIDAttributeTransportManifestCode = z.infer<typeof MassIDAttributeTransportManifestCodeSchema>;
|
|
@@ -164,18 +151,6 @@ declare const MassIDAttributeScaleTypeSchema: z.ZodObject<{
|
|
|
164
151
|
value: z.ZodString;
|
|
165
152
|
}, z.core.$strict>;
|
|
166
153
|
type MassIDAttributeScaleType = z.infer<typeof MassIDAttributeScaleTypeSchema>;
|
|
167
|
-
declare const MassIDAttributeContainerTypeSchema: z.ZodObject<{
|
|
168
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
169
|
-
number: "number";
|
|
170
|
-
date: "date";
|
|
171
|
-
boost_number: "boost_number";
|
|
172
|
-
boost_percentage: "boost_percentage";
|
|
173
|
-
}>>;
|
|
174
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
175
|
-
trait_type: z.ZodLiteral<"Container Type">;
|
|
176
|
-
value: z.ZodString;
|
|
177
|
-
}, z.core.$strict>;
|
|
178
|
-
type MassIDAttributeContainerType = z.infer<typeof MassIDAttributeContainerTypeSchema>;
|
|
179
154
|
declare const MassIDAttributePickUpDateSchema: z.ZodObject<{
|
|
180
155
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
181
156
|
trait_type: z.ZodLiteral<"Pick-up Date">;
|
|
@@ -183,6 +158,13 @@ declare const MassIDAttributePickUpDateSchema: z.ZodObject<{
|
|
|
183
158
|
display_type: z.ZodLiteral<"date">;
|
|
184
159
|
}, z.core.$strict>;
|
|
185
160
|
type MassIDAttributePickUpDate = z.infer<typeof MassIDAttributePickUpDateSchema>;
|
|
161
|
+
declare const MassIDAttributeDropOffDateSchema: z.ZodObject<{
|
|
162
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
trait_type: z.ZodLiteral<"Drop-off Date">;
|
|
164
|
+
value: z.ZodNumber;
|
|
165
|
+
display_type: z.ZodLiteral<"date">;
|
|
166
|
+
}, z.core.$strict>;
|
|
167
|
+
type MassIDAttributeDropOffDate = z.infer<typeof MassIDAttributeDropOffDateSchema>;
|
|
186
168
|
declare const MassIDAttributeRecyclingDateSchema: z.ZodObject<{
|
|
187
169
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
188
170
|
trait_type: z.ZodLiteral<"Recycling Date">;
|
|
@@ -253,7 +235,7 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
253
235
|
boost_percentage: "boost_percentage";
|
|
254
236
|
}>>;
|
|
255
237
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
256
|
-
trait_type: z.ZodLiteral<"Vehicle Type">;
|
|
238
|
+
trait_type: z.ZodLiteral<"Pick-up Vehicle Type">;
|
|
257
239
|
value: z.ZodString;
|
|
258
240
|
}, z.core.$strict>, z.ZodObject<{
|
|
259
241
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -265,17 +247,6 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
265
247
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
266
248
|
trait_type: z.ZodLiteral<"Recycling Method">;
|
|
267
249
|
value: z.ZodString;
|
|
268
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
269
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
270
|
-
number: "number";
|
|
271
|
-
date: "date";
|
|
272
|
-
boost_number: "boost_number";
|
|
273
|
-
boost_percentage: "boost_percentage";
|
|
274
|
-
}>>;
|
|
275
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
276
|
-
trait_type: z.ZodLiteral<"Processing Time (hours)">;
|
|
277
|
-
value: z.ZodNumber;
|
|
278
|
-
trait_description: z.ZodOptional<z.ZodString>;
|
|
279
250
|
}, z.core.$strict>, z.ZodObject<{
|
|
280
251
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
281
252
|
number: "number";
|
|
@@ -294,7 +265,7 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
294
265
|
boost_percentage: "boost_percentage";
|
|
295
266
|
}>>;
|
|
296
267
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
297
|
-
trait_type: z.ZodLiteral<"Recycling Manifest
|
|
268
|
+
trait_type: z.ZodLiteral<"Recycling Manifest Number">;
|
|
298
269
|
value: z.ZodString;
|
|
299
270
|
}, z.core.$strict>, z.ZodObject<{
|
|
300
271
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -304,7 +275,7 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
304
275
|
boost_percentage: "boost_percentage";
|
|
305
276
|
}>>;
|
|
306
277
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
307
|
-
trait_type: z.ZodLiteral<"Transport Manifest
|
|
278
|
+
trait_type: z.ZodLiteral<"Transport Manifest Number">;
|
|
308
279
|
value: z.ZodString;
|
|
309
280
|
}, z.core.$strict>, z.ZodObject<{
|
|
310
281
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -327,18 +298,13 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
327
298
|
trait_type: z.ZodLiteral<"Scale Type">;
|
|
328
299
|
value: z.ZodString;
|
|
329
300
|
}, z.core.$strict>, z.ZodObject<{
|
|
330
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
331
|
-
number: "number";
|
|
332
|
-
date: "date";
|
|
333
|
-
boost_number: "boost_number";
|
|
334
|
-
boost_percentage: "boost_percentage";
|
|
335
|
-
}>>;
|
|
336
301
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
337
|
-
trait_type: z.ZodLiteral<"
|
|
338
|
-
value: z.
|
|
302
|
+
trait_type: z.ZodLiteral<"Pick-up Date">;
|
|
303
|
+
value: z.ZodNumber;
|
|
304
|
+
display_type: z.ZodLiteral<"date">;
|
|
339
305
|
}, z.core.$strict>, z.ZodObject<{
|
|
340
306
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
341
|
-
trait_type: z.ZodLiteral<"
|
|
307
|
+
trait_type: z.ZodLiteral<"Drop-off Date">;
|
|
342
308
|
value: z.ZodNumber;
|
|
343
309
|
display_type: z.ZodLiteral<"date">;
|
|
344
310
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -349,148 +315,162 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
349
315
|
}, z.core.$strict>]>>;
|
|
350
316
|
type MassIDAttributes = z.infer<typeof MassIDAttributesSchema>;
|
|
351
317
|
|
|
318
|
+
declare const IbamaWasteClassificationSchema: z.ZodString;
|
|
352
319
|
declare const MassIDLocalClassificationSchema: z.ZodObject<{
|
|
353
320
|
code: z.ZodString;
|
|
354
|
-
|
|
355
|
-
system: z.ZodEnum<{
|
|
356
|
-
IBAMA: "IBAMA";
|
|
357
|
-
}>;
|
|
321
|
+
system: z.ZodLiteral<"Ibama">;
|
|
358
322
|
}, z.core.$strict>;
|
|
323
|
+
type IbamaWasteClassification = z.infer<typeof IbamaWasteClassificationSchema>;
|
|
359
324
|
type MassIDLocalClassification = z.infer<typeof MassIDLocalClassificationSchema>;
|
|
360
|
-
declare const MassIDMeasurementUnitSchema: z.ZodEnum<{
|
|
361
|
-
kg: "kg";
|
|
362
|
-
ton: "ton";
|
|
363
|
-
}>;
|
|
364
|
-
type MassIDMeasurementUnit = z.infer<typeof MassIDMeasurementUnitSchema>;
|
|
365
325
|
declare const MassIDWastePropertiesSchema: z.ZodObject<{
|
|
366
326
|
type: z.ZodString;
|
|
367
327
|
subtype: z.ZodString;
|
|
368
328
|
local_classification: z.ZodOptional<z.ZodObject<{
|
|
369
329
|
code: z.ZodString;
|
|
370
|
-
|
|
371
|
-
system: z.ZodEnum<{
|
|
372
|
-
IBAMA: "IBAMA";
|
|
373
|
-
}>;
|
|
330
|
+
system: z.ZodLiteral<"Ibama">;
|
|
374
331
|
}, z.core.$strict>>;
|
|
375
|
-
measurement_unit: z.ZodEnum<{
|
|
376
|
-
kg: "kg";
|
|
377
|
-
ton: "ton";
|
|
378
|
-
}>;
|
|
379
332
|
net_weight: z.ZodNumber;
|
|
380
333
|
}, z.core.$strict>;
|
|
381
334
|
type MassIDWasteProperties = z.infer<typeof MassIDWastePropertiesSchema>;
|
|
382
|
-
declare const
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
CURRENCY: "CURRENCY";
|
|
386
|
-
PERCENTAGE: "PERCENTAGE";
|
|
387
|
-
COORDINATE: "COORDINATE";
|
|
335
|
+
declare const MassIDAttachmentTypeSchema: z.ZodEnum<{
|
|
336
|
+
"Recycling Manifest": "Recycling Manifest";
|
|
337
|
+
"Transport Manifest": "Transport Manifest";
|
|
388
338
|
}>;
|
|
389
|
-
type
|
|
390
|
-
declare const
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
KILOGRAM: "KILOGRAM";
|
|
396
|
-
DATE: "DATE";
|
|
397
|
-
CURRENCY: "CURRENCY";
|
|
398
|
-
PERCENTAGE: "PERCENTAGE";
|
|
399
|
-
COORDINATE: "COORDINATE";
|
|
400
|
-
}>>;
|
|
401
|
-
}, z.core.$strict>;
|
|
402
|
-
type EventAttribute = z.infer<typeof EventAttributeSchema>;
|
|
403
|
-
declare const EventAttachmentSchema: z.ZodObject<{
|
|
404
|
-
type: z.ZodString;
|
|
339
|
+
type MassIDAttachmentType = z.infer<typeof MassIDAttachmentTypeSchema>;
|
|
340
|
+
declare const MassIDAttachmentSchema: z.ZodObject<{
|
|
341
|
+
type: z.ZodEnum<{
|
|
342
|
+
"Recycling Manifest": "Recycling Manifest";
|
|
343
|
+
"Transport Manifest": "Transport Manifest";
|
|
344
|
+
}>;
|
|
405
345
|
document_number: z.ZodOptional<z.ZodString>;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
346
|
+
issued_at: z.ZodOptional<z.ZodISODateTime>;
|
|
347
|
+
event_id: z.ZodUUID;
|
|
409
348
|
}, z.core.$strict>;
|
|
410
|
-
type
|
|
411
|
-
declare const
|
|
349
|
+
type MassIDAttachment = z.infer<typeof MassIDAttachmentSchema>;
|
|
350
|
+
declare const MassIDEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
412
351
|
event_id: z.ZodUUID;
|
|
413
|
-
event_name: z.ZodString;
|
|
414
352
|
description: z.ZodOptional<z.ZodString>;
|
|
415
|
-
timestamp: z.
|
|
353
|
+
timestamp: z.ZodISODateTime;
|
|
416
354
|
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
417
355
|
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
418
356
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
preserved_sensitivity: z.ZodOptional<z.ZodBoolean>;
|
|
423
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
424
|
-
KILOGRAM: "KILOGRAM";
|
|
425
|
-
DATE: "DATE";
|
|
426
|
-
CURRENCY: "CURRENCY";
|
|
427
|
-
PERCENTAGE: "PERCENTAGE";
|
|
428
|
-
COORDINATE: "COORDINATE";
|
|
429
|
-
}>>;
|
|
430
|
-
}, z.core.$strict>>>;
|
|
431
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
432
|
-
type: z.ZodString;
|
|
433
|
-
document_number: z.ZodOptional<z.ZodString>;
|
|
434
|
-
reference: z.ZodString;
|
|
435
|
-
issue_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
436
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
437
|
-
}, z.core.$strict>>>;
|
|
438
|
-
}, z.core.$strict>;
|
|
439
|
-
type MassIDChainOfCustodyEvent = z.infer<typeof MassIDChainOfCustodyEventSchema>;
|
|
440
|
-
declare const MassIDChainOfCustodySchema: z.ZodObject<{
|
|
441
|
-
events: z.ZodArray<z.ZodObject<{
|
|
442
|
-
event_id: z.ZodUUID;
|
|
443
|
-
event_name: z.ZodString;
|
|
444
|
-
description: z.ZodOptional<z.ZodString>;
|
|
445
|
-
timestamp: z.ZodNumber;
|
|
446
|
-
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
447
|
-
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
448
|
-
weight: z.ZodOptional<z.ZodNumber>;
|
|
449
|
-
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
450
|
-
name: z.ZodString;
|
|
451
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
452
|
-
preserved_sensitivity: z.ZodOptional<z.ZodBoolean>;
|
|
453
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
454
|
-
KILOGRAM: "KILOGRAM";
|
|
455
|
-
DATE: "DATE";
|
|
456
|
-
CURRENCY: "CURRENCY";
|
|
457
|
-
PERCENTAGE: "PERCENTAGE";
|
|
458
|
-
COORDINATE: "COORDINATE";
|
|
459
|
-
}>>;
|
|
460
|
-
}, z.core.$strict>>>;
|
|
461
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
462
|
-
type: z.ZodString;
|
|
463
|
-
document_number: z.ZodOptional<z.ZodString>;
|
|
464
|
-
reference: z.ZodString;
|
|
465
|
-
issue_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
466
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
467
|
-
}, z.core.$strict>>>;
|
|
357
|
+
event_name: z.ZodLiteral<"Pick-up">;
|
|
358
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
468
360
|
}, z.core.$strict>>;
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
361
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
362
|
+
event_id: z.ZodUUID;
|
|
363
|
+
description: z.ZodOptional<z.ZodString>;
|
|
364
|
+
timestamp: z.ZodISODateTime;
|
|
365
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
366
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
367
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
368
|
+
event_name: z.ZodLiteral<"Weighing">;
|
|
369
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
weighing_capture_method: z.ZodOptional<z.ZodString>;
|
|
371
|
+
scale_type: z.ZodOptional<z.ZodString>;
|
|
372
|
+
container_type: z.ZodOptional<z.ZodString>;
|
|
373
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
374
|
+
container_capacity: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
gross_weight: z.ZodOptional<z.ZodNumber>;
|
|
376
|
+
tare: z.ZodOptional<z.ZodNumber>;
|
|
377
|
+
}, z.core.$strict>>;
|
|
378
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
379
|
+
event_id: z.ZodUUID;
|
|
380
|
+
description: z.ZodOptional<z.ZodString>;
|
|
381
|
+
timestamp: z.ZodISODateTime;
|
|
382
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
383
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
384
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
385
|
+
event_name: z.ZodLiteral<"Drop-off">;
|
|
386
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
387
|
+
event_id: z.ZodUUID;
|
|
388
|
+
description: z.ZodOptional<z.ZodString>;
|
|
389
|
+
timestamp: z.ZodISODateTime;
|
|
390
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
391
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
392
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
393
|
+
event_name: z.ZodLiteral<"Sorting">;
|
|
394
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
395
|
+
initial_weight: z.ZodOptional<z.ZodNumber>;
|
|
396
|
+
deducted_weight: z.ZodOptional<z.ZodNumber>;
|
|
397
|
+
}, z.core.$strict>>;
|
|
398
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
399
|
+
event_id: z.ZodUUID;
|
|
400
|
+
description: z.ZodOptional<z.ZodString>;
|
|
401
|
+
timestamp: z.ZodISODateTime;
|
|
402
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
403
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
404
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
405
|
+
event_name: z.ZodLiteral<"Recycling">;
|
|
406
|
+
}, z.core.$strict>], "event_name">;
|
|
407
|
+
type MassIDEvent = z.infer<typeof MassIDEventSchema>;
|
|
408
|
+
declare const MassIDEventsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
409
|
+
event_id: z.ZodUUID;
|
|
410
|
+
description: z.ZodOptional<z.ZodString>;
|
|
411
|
+
timestamp: z.ZodISODateTime;
|
|
412
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
413
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
414
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
415
|
+
event_name: z.ZodLiteral<"Pick-up">;
|
|
416
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
417
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strict>>;
|
|
419
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
420
|
+
event_id: z.ZodUUID;
|
|
421
|
+
description: z.ZodOptional<z.ZodString>;
|
|
422
|
+
timestamp: z.ZodISODateTime;
|
|
423
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
424
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
425
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
426
|
+
event_name: z.ZodLiteral<"Weighing">;
|
|
427
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
428
|
+
weighing_capture_method: z.ZodOptional<z.ZodString>;
|
|
429
|
+
scale_type: z.ZodOptional<z.ZodString>;
|
|
430
|
+
container_type: z.ZodOptional<z.ZodString>;
|
|
431
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
432
|
+
container_capacity: z.ZodOptional<z.ZodNumber>;
|
|
433
|
+
gross_weight: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
tare: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
}, z.core.$strict>>;
|
|
436
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
437
|
+
event_id: z.ZodUUID;
|
|
438
|
+
description: z.ZodOptional<z.ZodString>;
|
|
439
|
+
timestamp: z.ZodISODateTime;
|
|
440
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
441
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
442
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
443
|
+
event_name: z.ZodLiteral<"Drop-off">;
|
|
444
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
445
|
+
event_id: z.ZodUUID;
|
|
446
|
+
description: z.ZodOptional<z.ZodString>;
|
|
447
|
+
timestamp: z.ZodISODateTime;
|
|
448
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
449
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
450
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
451
|
+
event_name: z.ZodLiteral<"Sorting">;
|
|
452
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
initial_weight: z.ZodOptional<z.ZodNumber>;
|
|
454
|
+
deducted_weight: z.ZodOptional<z.ZodNumber>;
|
|
455
|
+
}, z.core.$strict>>;
|
|
456
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
457
|
+
event_id: z.ZodUUID;
|
|
458
|
+
description: z.ZodOptional<z.ZodString>;
|
|
459
|
+
timestamp: z.ZodISODateTime;
|
|
460
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
461
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
462
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
463
|
+
event_name: z.ZodLiteral<"Recycling">;
|
|
464
|
+
}, z.core.$strict>], "event_name">>;
|
|
465
|
+
type MassIDEvents = z.infer<typeof MassIDEventsSchema>;
|
|
479
466
|
declare const MassIDDataSchema: z.ZodObject<{
|
|
480
467
|
waste_properties: z.ZodObject<{
|
|
481
468
|
type: z.ZodString;
|
|
482
469
|
subtype: z.ZodString;
|
|
483
470
|
local_classification: z.ZodOptional<z.ZodObject<{
|
|
484
471
|
code: z.ZodString;
|
|
485
|
-
|
|
486
|
-
system: z.ZodEnum<{
|
|
487
|
-
IBAMA: "IBAMA";
|
|
488
|
-
}>;
|
|
472
|
+
system: z.ZodLiteral<"Ibama">;
|
|
489
473
|
}, z.core.$strict>>;
|
|
490
|
-
measurement_unit: z.ZodEnum<{
|
|
491
|
-
kg: "kg";
|
|
492
|
-
ton: "ton";
|
|
493
|
-
}>;
|
|
494
474
|
net_weight: z.ZodNumber;
|
|
495
475
|
}, z.core.$strict>;
|
|
496
476
|
locations: z.ZodArray<z.ZodObject<{
|
|
@@ -512,55 +492,78 @@ declare const MassIDDataSchema: z.ZodObject<{
|
|
|
512
492
|
country: "country";
|
|
513
493
|
}>;
|
|
514
494
|
}, z.core.$strict>;
|
|
515
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
516
|
-
"Collection Point": "Collection Point";
|
|
517
|
-
"Recycling Facility": "Recycling Facility";
|
|
518
|
-
"Administrative Office": "Administrative Office";
|
|
519
|
-
Other: "Other";
|
|
520
|
-
}>>;
|
|
521
495
|
}, z.core.$strict>>;
|
|
522
496
|
participants: z.ZodArray<z.ZodObject<{
|
|
523
497
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
524
498
|
name: z.ZodString;
|
|
525
499
|
roles: z.ZodArray<z.ZodString>;
|
|
526
500
|
}, z.core.$strict>>;
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
name: z.ZodString;
|
|
538
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
539
|
-
preserved_sensitivity: z.ZodOptional<z.ZodBoolean>;
|
|
540
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
541
|
-
KILOGRAM: "KILOGRAM";
|
|
542
|
-
DATE: "DATE";
|
|
543
|
-
CURRENCY: "CURRENCY";
|
|
544
|
-
PERCENTAGE: "PERCENTAGE";
|
|
545
|
-
COORDINATE: "COORDINATE";
|
|
546
|
-
}>>;
|
|
547
|
-
}, z.core.$strict>>>;
|
|
548
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
549
|
-
type: z.ZodString;
|
|
550
|
-
document_number: z.ZodOptional<z.ZodString>;
|
|
551
|
-
reference: z.ZodString;
|
|
552
|
-
issue_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
553
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
554
|
-
}, z.core.$strict>>>;
|
|
501
|
+
events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
502
|
+
event_id: z.ZodUUID;
|
|
503
|
+
description: z.ZodOptional<z.ZodString>;
|
|
504
|
+
timestamp: z.ZodISODateTime;
|
|
505
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
506
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
507
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
508
|
+
event_name: z.ZodLiteral<"Pick-up">;
|
|
509
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
510
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
555
511
|
}, z.core.$strict>>;
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
512
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
513
|
+
event_id: z.ZodUUID;
|
|
514
|
+
description: z.ZodOptional<z.ZodString>;
|
|
515
|
+
timestamp: z.ZodISODateTime;
|
|
516
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
517
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
518
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
519
|
+
event_name: z.ZodLiteral<"Weighing">;
|
|
520
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
weighing_capture_method: z.ZodOptional<z.ZodString>;
|
|
522
|
+
scale_type: z.ZodOptional<z.ZodString>;
|
|
523
|
+
container_type: z.ZodOptional<z.ZodString>;
|
|
524
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
525
|
+
container_capacity: z.ZodOptional<z.ZodNumber>;
|
|
526
|
+
gross_weight: z.ZodOptional<z.ZodNumber>;
|
|
527
|
+
tare: z.ZodOptional<z.ZodNumber>;
|
|
528
|
+
}, z.core.$strict>>;
|
|
529
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
530
|
+
event_id: z.ZodUUID;
|
|
531
|
+
description: z.ZodOptional<z.ZodString>;
|
|
532
|
+
timestamp: z.ZodISODateTime;
|
|
533
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
534
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
535
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
536
|
+
event_name: z.ZodLiteral<"Drop-off">;
|
|
537
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
538
|
+
event_id: z.ZodUUID;
|
|
539
|
+
description: z.ZodOptional<z.ZodString>;
|
|
540
|
+
timestamp: z.ZodISODateTime;
|
|
541
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
542
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
543
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
544
|
+
event_name: z.ZodLiteral<"Sorting">;
|
|
545
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
546
|
+
initial_weight: z.ZodOptional<z.ZodNumber>;
|
|
547
|
+
deducted_weight: z.ZodOptional<z.ZodNumber>;
|
|
548
|
+
}, z.core.$strict>>;
|
|
549
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
550
|
+
event_id: z.ZodUUID;
|
|
551
|
+
description: z.ZodOptional<z.ZodString>;
|
|
552
|
+
timestamp: z.ZodISODateTime;
|
|
553
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
554
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
555
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
event_name: z.ZodLiteral<"Recycling">;
|
|
557
|
+
}, z.core.$strict>], "event_name">>;
|
|
558
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
559
|
+
type: z.ZodEnum<{
|
|
560
|
+
"Recycling Manifest": "Recycling Manifest";
|
|
561
|
+
"Transport Manifest": "Transport Manifest";
|
|
562
|
+
}>;
|
|
563
|
+
document_number: z.ZodOptional<z.ZodString>;
|
|
564
|
+
issued_at: z.ZodOptional<z.ZodISODateTime>;
|
|
565
|
+
event_id: z.ZodUUID;
|
|
566
|
+
}, z.core.$strict>>>;
|
|
564
567
|
}, z.core.$strict>;
|
|
565
568
|
type MassIDData = z.infer<typeof MassIDDataSchema>;
|
|
566
569
|
|
|
@@ -696,7 +699,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
696
699
|
boost_percentage: "boost_percentage";
|
|
697
700
|
}>>;
|
|
698
701
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
699
|
-
trait_type: z.ZodLiteral<"Vehicle Type">;
|
|
702
|
+
trait_type: z.ZodLiteral<"Pick-up Vehicle Type">;
|
|
700
703
|
value: z.ZodString;
|
|
701
704
|
}, z.core.$strict>, z.ZodObject<{
|
|
702
705
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -708,17 +711,6 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
708
711
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
709
712
|
trait_type: z.ZodLiteral<"Recycling Method">;
|
|
710
713
|
value: z.ZodString;
|
|
711
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
712
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
713
|
-
number: "number";
|
|
714
|
-
date: "date";
|
|
715
|
-
boost_number: "boost_number";
|
|
716
|
-
boost_percentage: "boost_percentage";
|
|
717
|
-
}>>;
|
|
718
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
719
|
-
trait_type: z.ZodLiteral<"Processing Time (hours)">;
|
|
720
|
-
value: z.ZodNumber;
|
|
721
|
-
trait_description: z.ZodOptional<z.ZodString>;
|
|
722
714
|
}, z.core.$strict>, z.ZodObject<{
|
|
723
715
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
724
716
|
number: "number";
|
|
@@ -737,7 +729,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
737
729
|
boost_percentage: "boost_percentage";
|
|
738
730
|
}>>;
|
|
739
731
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
740
|
-
trait_type: z.ZodLiteral<"Recycling Manifest
|
|
732
|
+
trait_type: z.ZodLiteral<"Recycling Manifest Number">;
|
|
741
733
|
value: z.ZodString;
|
|
742
734
|
}, z.core.$strict>, z.ZodObject<{
|
|
743
735
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -747,7 +739,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
747
739
|
boost_percentage: "boost_percentage";
|
|
748
740
|
}>>;
|
|
749
741
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
750
|
-
trait_type: z.ZodLiteral<"Transport Manifest
|
|
742
|
+
trait_type: z.ZodLiteral<"Transport Manifest Number">;
|
|
751
743
|
value: z.ZodString;
|
|
752
744
|
}, z.core.$strict>, z.ZodObject<{
|
|
753
745
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -770,18 +762,13 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
770
762
|
trait_type: z.ZodLiteral<"Scale Type">;
|
|
771
763
|
value: z.ZodString;
|
|
772
764
|
}, z.core.$strict>, z.ZodObject<{
|
|
773
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
774
|
-
number: "number";
|
|
775
|
-
date: "date";
|
|
776
|
-
boost_number: "boost_number";
|
|
777
|
-
boost_percentage: "boost_percentage";
|
|
778
|
-
}>>;
|
|
779
765
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
780
|
-
trait_type: z.ZodLiteral<"
|
|
781
|
-
value: z.
|
|
766
|
+
trait_type: z.ZodLiteral<"Pick-up Date">;
|
|
767
|
+
value: z.ZodNumber;
|
|
768
|
+
display_type: z.ZodLiteral<"date">;
|
|
782
769
|
}, z.core.$strict>, z.ZodObject<{
|
|
783
770
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
784
|
-
trait_type: z.ZodLiteral<"
|
|
771
|
+
trait_type: z.ZodLiteral<"Drop-off Date">;
|
|
785
772
|
value: z.ZodNumber;
|
|
786
773
|
display_type: z.ZodLiteral<"date">;
|
|
787
774
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -796,15 +783,8 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
796
783
|
subtype: z.ZodString;
|
|
797
784
|
local_classification: z.ZodOptional<z.ZodObject<{
|
|
798
785
|
code: z.ZodString;
|
|
799
|
-
|
|
800
|
-
system: z.ZodEnum<{
|
|
801
|
-
IBAMA: "IBAMA";
|
|
802
|
-
}>;
|
|
786
|
+
system: z.ZodLiteral<"Ibama">;
|
|
803
787
|
}, z.core.$strict>>;
|
|
804
|
-
measurement_unit: z.ZodEnum<{
|
|
805
|
-
kg: "kg";
|
|
806
|
-
ton: "ton";
|
|
807
|
-
}>;
|
|
808
788
|
net_weight: z.ZodNumber;
|
|
809
789
|
}, z.core.$strict>;
|
|
810
790
|
locations: z.ZodArray<z.ZodObject<{
|
|
@@ -826,55 +806,78 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
826
806
|
country: "country";
|
|
827
807
|
}>;
|
|
828
808
|
}, z.core.$strict>;
|
|
829
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
830
|
-
"Collection Point": "Collection Point";
|
|
831
|
-
"Recycling Facility": "Recycling Facility";
|
|
832
|
-
"Administrative Office": "Administrative Office";
|
|
833
|
-
Other: "Other";
|
|
834
|
-
}>>;
|
|
835
809
|
}, z.core.$strict>>;
|
|
836
810
|
participants: z.ZodArray<z.ZodObject<{
|
|
837
811
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
838
812
|
name: z.ZodString;
|
|
839
813
|
roles: z.ZodArray<z.ZodString>;
|
|
840
814
|
}, z.core.$strict>>;
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
name: z.ZodString;
|
|
852
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
853
|
-
preserved_sensitivity: z.ZodOptional<z.ZodBoolean>;
|
|
854
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
855
|
-
KILOGRAM: "KILOGRAM";
|
|
856
|
-
DATE: "DATE";
|
|
857
|
-
CURRENCY: "CURRENCY";
|
|
858
|
-
PERCENTAGE: "PERCENTAGE";
|
|
859
|
-
COORDINATE: "COORDINATE";
|
|
860
|
-
}>>;
|
|
861
|
-
}, z.core.$strict>>>;
|
|
862
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
863
|
-
type: z.ZodString;
|
|
864
|
-
document_number: z.ZodOptional<z.ZodString>;
|
|
865
|
-
reference: z.ZodString;
|
|
866
|
-
issue_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
867
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
868
|
-
}, z.core.$strict>>>;
|
|
815
|
+
events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
816
|
+
event_id: z.ZodUUID;
|
|
817
|
+
description: z.ZodOptional<z.ZodString>;
|
|
818
|
+
timestamp: z.ZodISODateTime;
|
|
819
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
820
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
821
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
822
|
+
event_name: z.ZodLiteral<"Pick-up">;
|
|
823
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
824
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
869
825
|
}, z.core.$strict>>;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
826
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
827
|
+
event_id: z.ZodUUID;
|
|
828
|
+
description: z.ZodOptional<z.ZodString>;
|
|
829
|
+
timestamp: z.ZodISODateTime;
|
|
830
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
831
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
832
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
833
|
+
event_name: z.ZodLiteral<"Weighing">;
|
|
834
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
835
|
+
weighing_capture_method: z.ZodOptional<z.ZodString>;
|
|
836
|
+
scale_type: z.ZodOptional<z.ZodString>;
|
|
837
|
+
container_type: z.ZodOptional<z.ZodString>;
|
|
838
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
839
|
+
container_capacity: z.ZodOptional<z.ZodNumber>;
|
|
840
|
+
gross_weight: z.ZodOptional<z.ZodNumber>;
|
|
841
|
+
tare: z.ZodOptional<z.ZodNumber>;
|
|
842
|
+
}, z.core.$strict>>;
|
|
843
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
844
|
+
event_id: z.ZodUUID;
|
|
845
|
+
description: z.ZodOptional<z.ZodString>;
|
|
846
|
+
timestamp: z.ZodISODateTime;
|
|
847
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
848
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
849
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
850
|
+
event_name: z.ZodLiteral<"Drop-off">;
|
|
851
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
852
|
+
event_id: z.ZodUUID;
|
|
853
|
+
description: z.ZodOptional<z.ZodString>;
|
|
854
|
+
timestamp: z.ZodISODateTime;
|
|
855
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
856
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
857
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
858
|
+
event_name: z.ZodLiteral<"Sorting">;
|
|
859
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
860
|
+
initial_weight: z.ZodOptional<z.ZodNumber>;
|
|
861
|
+
deducted_weight: z.ZodOptional<z.ZodNumber>;
|
|
862
|
+
}, z.core.$strict>>;
|
|
863
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
864
|
+
event_id: z.ZodUUID;
|
|
865
|
+
description: z.ZodOptional<z.ZodString>;
|
|
866
|
+
timestamp: z.ZodISODateTime;
|
|
867
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
868
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
869
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
870
|
+
event_name: z.ZodLiteral<"Recycling">;
|
|
871
|
+
}, z.core.$strict>], "event_name">>;
|
|
872
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
873
|
+
type: z.ZodEnum<{
|
|
874
|
+
"Recycling Manifest": "Recycling Manifest";
|
|
875
|
+
"Transport Manifest": "Transport Manifest";
|
|
876
|
+
}>;
|
|
877
|
+
document_number: z.ZodOptional<z.ZodString>;
|
|
878
|
+
issued_at: z.ZodOptional<z.ZodISODateTime>;
|
|
879
|
+
event_id: z.ZodUUID;
|
|
880
|
+
}, z.core.$strict>>>;
|
|
878
881
|
}, z.core.$strict>;
|
|
879
882
|
}, z.core.$strict>;
|
|
880
883
|
type MassIDIpfs = z.infer<typeof MassIDIpfsSchema>;
|
|
@@ -1183,12 +1186,6 @@ declare const GasIDDataSchema: z.ZodObject<{
|
|
|
1183
1186
|
country: "country";
|
|
1184
1187
|
}>;
|
|
1185
1188
|
}, z.core.$strict>;
|
|
1186
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
1187
|
-
"Collection Point": "Collection Point";
|
|
1188
|
-
"Recycling Facility": "Recycling Facility";
|
|
1189
|
-
"Administrative Office": "Administrative Office";
|
|
1190
|
-
Other: "Other";
|
|
1191
|
-
}>>;
|
|
1192
1189
|
}, z.core.$strict>;
|
|
1193
1190
|
prevented_emissions_calculation: z.ZodObject<{
|
|
1194
1191
|
formula: z.ZodString;
|
|
@@ -1449,12 +1446,6 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1449
1446
|
country: "country";
|
|
1450
1447
|
}>;
|
|
1451
1448
|
}, z.core.$strict>;
|
|
1452
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
1453
|
-
"Collection Point": "Collection Point";
|
|
1454
|
-
"Recycling Facility": "Recycling Facility";
|
|
1455
|
-
"Administrative Office": "Administrative Office";
|
|
1456
|
-
Other: "Other";
|
|
1457
|
-
}>>;
|
|
1458
1449
|
}, z.core.$strict>;
|
|
1459
1450
|
prevented_emissions_calculation: z.ZodObject<{
|
|
1460
1451
|
formula: z.ZodString;
|
|
@@ -1755,12 +1746,6 @@ declare const RecycledIDDataSchema: z.ZodObject<{
|
|
|
1755
1746
|
country: "country";
|
|
1756
1747
|
}>;
|
|
1757
1748
|
}, z.core.$strict>;
|
|
1758
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
1759
|
-
"Collection Point": "Collection Point";
|
|
1760
|
-
"Recycling Facility": "Recycling Facility";
|
|
1761
|
-
"Administrative Office": "Administrative Office";
|
|
1762
|
-
Other: "Other";
|
|
1763
|
-
}>>;
|
|
1764
1749
|
}, z.core.$strict>;
|
|
1765
1750
|
accredited_participants: z.ZodArray<z.ZodObject<{
|
|
1766
1751
|
participant_id: z.ZodUUID;
|
|
@@ -2000,12 +1985,6 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
2000
1985
|
country: "country";
|
|
2001
1986
|
}>;
|
|
2002
1987
|
}, z.core.$strict>;
|
|
2003
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
2004
|
-
"Collection Point": "Collection Point";
|
|
2005
|
-
"Recycling Facility": "Recycling Facility";
|
|
2006
|
-
"Administrative Office": "Administrative Office";
|
|
2007
|
-
Other: "Other";
|
|
2008
|
-
}>>;
|
|
2009
1988
|
}, z.core.$strict>;
|
|
2010
1989
|
accredited_participants: z.ZodArray<z.ZodObject<{
|
|
2011
1990
|
participant_id: z.ZodUUID;
|
|
@@ -2115,12 +2094,6 @@ declare const LocationSchema: z.ZodObject<{
|
|
|
2115
2094
|
country: "country";
|
|
2116
2095
|
}>;
|
|
2117
2096
|
}, z.core.$strict>;
|
|
2118
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
2119
|
-
"Collection Point": "Collection Point";
|
|
2120
|
-
"Recycling Facility": "Recycling Facility";
|
|
2121
|
-
"Administrative Office": "Administrative Office";
|
|
2122
|
-
Other: "Other";
|
|
2123
|
-
}>>;
|
|
2124
2097
|
}, z.core.$strict>;
|
|
2125
2098
|
type Location = z.infer<typeof LocationSchema>;
|
|
2126
2099
|
|
|
@@ -2496,13 +2469,6 @@ declare const ParticipantRoleSchema: z.ZodString;
|
|
|
2496
2469
|
type ParticipantRole = z.infer<typeof ParticipantRoleSchema>;
|
|
2497
2470
|
declare const ParticipantNameSchema: z.ZodString;
|
|
2498
2471
|
type ParticipantName = z.infer<typeof ParticipantNameSchema>;
|
|
2499
|
-
declare const FacilityTypeSchema: z.ZodEnum<{
|
|
2500
|
-
"Collection Point": "Collection Point";
|
|
2501
|
-
"Recycling Facility": "Recycling Facility";
|
|
2502
|
-
"Administrative Office": "Administrative Office";
|
|
2503
|
-
Other: "Other";
|
|
2504
|
-
}>;
|
|
2505
|
-
type FacilityType = z.infer<typeof FacilityTypeSchema>;
|
|
2506
2472
|
declare const BlockchainChainIdSchema: z.ZodNumber;
|
|
2507
2473
|
type BlockchainChainId = z.infer<typeof BlockchainChainIdSchema>;
|
|
2508
2474
|
declare const BlockchainNetworkNameSchema: z.ZodString;
|
|
@@ -4120,4 +4086,4 @@ declare const MassIDAuditDataSchema: z.ZodObject<{
|
|
|
4120
4086
|
}, z.core.$strict>;
|
|
4121
4087
|
type MassIDAuditData = z.infer<typeof MassIDAuditDataSchema>;
|
|
4122
4088
|
|
|
4123
|
-
export { type AccreditedParticipant, AccreditedParticipantSchema, type AccreditedParticipants, AccreditedParticipantsSchema, type AdministrativeDivision, AdministrativeDivisionSchema, type AuditReference, AuditReferenceSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type Coordinates, CoordinatesSchema, type CountryName, CountryNameSchema, type Credit, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditPurchaseReceiptAttributes, CreditPurchaseReceiptAttributesSchema, type CreditPurchaseReceiptBuyer, type CreditPurchaseReceiptCertificate, type CreditPurchaseReceiptCollection, type CreditPurchaseReceiptCredit, type CreditPurchaseReceiptData, CreditPurchaseReceiptDataSchema, type CreditPurchaseReceiptIdentity, type CreditPurchaseReceiptIpfs, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, type CreditPurchaseReceiptParticipantReward, type CreditPurchaseReceiptParties, type CreditPurchaseReceiptReceiver, type CreditPurchaseReceiptReference, type CreditPurchaseReceiptRetirement, type CreditPurchaseReceiptRetirementReceipt, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditRetirementMassIdReference, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, type DistributionNotes, DistributionNotesSchema, EPSILON, type EthereumAddress, EthereumAddressSchema, type
|
|
4089
|
+
export { type AccreditedParticipant, AccreditedParticipantSchema, type AccreditedParticipants, AccreditedParticipantsSchema, type AdministrativeDivision, AdministrativeDivisionSchema, type AuditReference, AuditReferenceSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type Coordinates, CoordinatesSchema, type CountryName, CountryNameSchema, type Credit, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditPurchaseReceiptAttributes, CreditPurchaseReceiptAttributesSchema, type CreditPurchaseReceiptBuyer, type CreditPurchaseReceiptCertificate, type CreditPurchaseReceiptCollection, type CreditPurchaseReceiptCredit, type CreditPurchaseReceiptData, CreditPurchaseReceiptDataSchema, type CreditPurchaseReceiptIdentity, type CreditPurchaseReceiptIpfs, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, type CreditPurchaseReceiptParticipantReward, type CreditPurchaseReceiptParties, type CreditPurchaseReceiptReceiver, type CreditPurchaseReceiptReference, type CreditPurchaseReceiptRetirement, type CreditPurchaseReceiptRetirementReceipt, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditRetirementMassIdReference, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, type DistributionNotes, DistributionNotesSchema, EPSILON, type EthereumAddress, EthereumAddressSchema, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCountry, type GasIDAttributeOriginMunicipality, type GasIDAttributeRecycler, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, type GasIDReference, GasIDReferenceSchema, type GasIDSummary, type HexColor, HexColorSchema, type Hours, HoursSchema, type IbamaWasteClassification, IbamaWasteClassificationSchema, type IpfsUri, IpfsUriSchema, type IsoAdministrativeDivisionCode, IsoAdministrativeDivisionCodeSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoDate, IsoDateSchema, type IsoTimestamp, IsoTimestampSchema, type Keccak256Hash, Keccak256HashSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttachment, type MassIDAttachmentType, type MassIDAttributeDropOffDate, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCountry, type MassIDAttributeOriginDivision, type MassIDAttributeOriginMunicipality, type MassIDAttributePickUpDate, type MassIDAttributePickUpVehicleType, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, type MassIDData, MassIDDataSchema, type MassIDEvent, type MassIDEvents, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, type MassIDReferenceWithContract, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type MassIdReferenceWithContract, MassIdReferenceWithContractSchema, type Methodology, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyCompliance, MethodologyComplianceSchema, type MethodologyData, MethodologyDataSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, type Minutes, MinutesSchema, type Municipality, MunicipalitySchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCountryAttribute, OriginCountryAttributeSchema, type OriginMunicipalityAttribute, OriginMunicipalityAttributeSchema, type Participant, type ParticipantName, ParticipantNameSchema, type ParticipantRewards, ParticipantRewardsSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveInteger, PositiveIntegerSchema, type PrecisionLevel, type PreventedEmissionsCalculation, type ReceiptIdentity, ReceiptIdentitySchema, type RecordCreator, type RecordEnvironment, RecordEnvironmentSchema, type RecordRelationship, type RecordRelationshipType, RecordRelationshipTypeSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCountry, type RecycledIDAttributeOriginMunicipality, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeRecycler, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, type RecycledIDSummary, type RecyclerAttribute, RecyclerAttributeSchema, type RewardAllocation, RewardAllocationSchema, type SchemaInfo, type SemanticVersion, SemanticVersionSchema, type Sha256Hash, Sha256HashSchema, type Slug, SlugSchema, type SmartContract, type SmartContractAddress, SmartContractAddressSchema, SmartContractSchema, type SourceWasteTypeAttribute, SourceWasteTypeAttributeSchema, type SourceWeightAttribute, SourceWeightAttributeSchema, type StringifiedTokenId, StringifiedTokenIdSchema, type TokenId, TokenIdSchema, type TokenSymbol, TokenSymbolSchema, type UnixTimestamp, UnixTimestampSchema, type Uuid, UuidSchema, type WasteClassification, WasteClassificationSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, createAttributeMap, createReceiptCertificateSchema, createReceiptCollectionSchema, createReceiptCreditSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCountMatches, validateDateAttribute, validateSummaryListMatchesData, validateTotalMatches };
|