@tiangong-lca/cli 0.0.11 → 0.0.13

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 (60) hide show
  1. package/README.md +18 -7
  2. package/assets/tidas-schemas/tidas_contacts.json +312 -0
  3. package/assets/tidas-schemas/tidas_contacts_category.json +126 -0
  4. package/assets/tidas-schemas/tidas_data_types.json +359 -0
  5. package/assets/tidas-schemas/tidas_flowproperties.json +303 -0
  6. package/assets/tidas-schemas/tidas_flowproperties_category.json +61 -0
  7. package/assets/tidas-schemas/tidas_flows.json +809 -0
  8. package/assets/tidas-schemas/tidas_flows_elementary_category.json +720 -0
  9. package/assets/tidas-schemas/tidas_flows_product_category.json +59623 -0
  10. package/assets/tidas-schemas/tidas_lciamethods.json +1326 -0
  11. package/assets/tidas-schemas/tidas_lciamethods_category.json +685 -0
  12. package/assets/tidas-schemas/tidas_lifecyclemodels.json +1374 -0
  13. package/assets/tidas-schemas/tidas_locations_category.json +2593 -0
  14. package/assets/tidas-schemas/tidas_processes.json +1646 -0
  15. package/assets/tidas-schemas/tidas_processes_category.json +10795 -0
  16. package/assets/tidas-schemas/tidas_sources.json +228 -0
  17. package/assets/tidas-schemas/tidas_sources_category.json +100 -0
  18. package/assets/tidas-schemas/tidas_unitgroups.json +338 -0
  19. package/assets/tidas-schemas/tidas_unitgroups_category.json +61 -0
  20. package/dist/src/cli.js +847 -13
  21. package/dist/src/cli.js.map +1 -1
  22. package/dist/src/lib/dataset-classification.js +947 -0
  23. package/dist/src/lib/dataset-classification.js.map +1 -0
  24. package/dist/src/lib/dataset-command.js +11 -0
  25. package/dist/src/lib/dataset-command.js.map +1 -1
  26. package/dist/src/lib/dataset-contract.js +2 -0
  27. package/dist/src/lib/dataset-contract.js.map +1 -1
  28. package/dist/src/lib/dataset-curation-queue.js +359 -2
  29. package/dist/src/lib/dataset-curation-queue.js.map +1 -1
  30. package/dist/src/lib/dataset-import-lca.js +18 -0
  31. package/dist/src/lib/dataset-import-lca.js.map +1 -1
  32. package/dist/src/lib/dataset-local.js +94 -1
  33. package/dist/src/lib/dataset-local.js.map +1 -1
  34. package/dist/src/lib/dataset-maintenance-clear-account.js +506 -0
  35. package/dist/src/lib/dataset-maintenance-clear-account.js.map +1 -0
  36. package/dist/src/lib/dataset-patch.js +797 -0
  37. package/dist/src/lib/dataset-patch.js.map +1 -0
  38. package/dist/src/lib/dataset-remote-verify.js +188 -3
  39. package/dist/src/lib/dataset-remote-verify.js.map +1 -1
  40. package/dist/src/lib/dataset-save-draft-run.js +725 -0
  41. package/dist/src/lib/dataset-save-draft-run.js.map +1 -0
  42. package/dist/src/lib/dataset-validate.js +32 -2
  43. package/dist/src/lib/dataset-validate.js.map +1 -1
  44. package/dist/src/lib/flow-publish-version.js +7 -2
  45. package/dist/src/lib/flow-publish-version.js.map +1 -1
  46. package/dist/src/lib/flow-qa.js +8 -0
  47. package/dist/src/lib/flow-qa.js.map +1 -1
  48. package/dist/src/lib/identity-preflight.js +895 -117
  49. package/dist/src/lib/identity-preflight.js.map +1 -1
  50. package/dist/src/lib/lifecyclemodel-qa.js +159 -34
  51. package/dist/src/lib/lifecyclemodel-qa.js.map +1 -1
  52. package/dist/src/lib/process-required-fields.js +62 -12
  53. package/dist/src/lib/process-required-fields.js.map +1 -1
  54. package/dist/src/lib/process-save-draft-run.js +10 -0
  55. package/dist/src/lib/process-save-draft-run.js.map +1 -1
  56. package/dist/src/lib/process-save-draft.js +59 -3
  57. package/dist/src/lib/process-save-draft.js.map +1 -1
  58. package/dist/src/lib/supabase-client.js +19 -8
  59. package/dist/src/lib/supabase-client.js.map +1 -1
  60. package/package.json +2 -1
@@ -0,0 +1,685 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$defs": {
4
+ "LCIAMethod": {
5
+ "oneOf": [
6
+ {
7
+ "properties": {
8
+ "@level": {
9
+ "const": "0"
10
+ },
11
+ "@classId": {
12
+ "const": "1"
13
+ },
14
+ "#text": {
15
+ "const": "Damage level LCIA methods"
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "properties": {
21
+ "@level": {
22
+ "const": "1"
23
+ },
24
+ "@classId": {
25
+ "const": "1.1"
26
+ },
27
+ "#text": {
28
+ "const": "Total impact across areas of protection"
29
+ }
30
+ }
31
+ },
32
+ {
33
+ "properties": {
34
+ "@level": {
35
+ "const": "1"
36
+ },
37
+ "@classId": {
38
+ "const": "1.2"
39
+ },
40
+ "#text": {
41
+ "const": "Human health"
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "properties": {
47
+ "@level": {
48
+ "const": "2"
49
+ },
50
+ "@classId": {
51
+ "const": "1.2.1"
52
+ },
53
+ "#text": {
54
+ "const": "Total human health, combined"
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "properties": {
60
+ "@level": {
61
+ "const": "2"
62
+ },
63
+ "@classId": {
64
+ "const": "1.2.2"
65
+ },
66
+ "#text": {
67
+ "const": "Human health, toxicity"
68
+ }
69
+ }
70
+ },
71
+ {
72
+ "properties": {
73
+ "@level": {
74
+ "const": "2"
75
+ },
76
+ "@classId": {
77
+ "const": "1.2.3"
78
+ },
79
+ "#text": {
80
+ "const": "Human health, climate change"
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "properties": {
86
+ "@level": {
87
+ "const": "2"
88
+ },
89
+ "@classId": {
90
+ "const": "1.2.4"
91
+ },
92
+ "#text": {
93
+ "const": "Human health, ionising radiation"
94
+ }
95
+ }
96
+ },
97
+ {
98
+ "properties": {
99
+ "@level": {
100
+ "const": "2"
101
+ },
102
+ "@classId": {
103
+ "const": "1.2.5"
104
+ },
105
+ "#text": {
106
+ "const": "Human health, ozone depletion"
107
+ }
108
+ }
109
+ },
110
+ {
111
+ "properties": {
112
+ "@level": {
113
+ "const": "2"
114
+ },
115
+ "@classId": {
116
+ "const": "1.2.6"
117
+ },
118
+ "#text": {
119
+ "const": "Human health, photooxidant creation"
120
+ }
121
+ }
122
+ },
123
+ {
124
+ "properties": {
125
+ "@level": {
126
+ "const": "2"
127
+ },
128
+ "@classId": {
129
+ "const": "1.2.7"
130
+ },
131
+ "#text": {
132
+ "const": "Human health, other"
133
+ }
134
+ }
135
+ },
136
+ {
137
+ "properties": {
138
+ "@level": {
139
+ "const": "1"
140
+ },
141
+ "@classId": {
142
+ "const": "1.3"
143
+ },
144
+ "#text": {
145
+ "const": "Natural environment"
146
+ }
147
+ }
148
+ },
149
+ {
150
+ "properties": {
151
+ "@level": {
152
+ "const": "2"
153
+ },
154
+ "@classId": {
155
+ "const": "1.3.1"
156
+ },
157
+ "#text": {
158
+ "const": "Total natural environment, combined"
159
+ }
160
+ }
161
+ },
162
+ {
163
+ "properties": {
164
+ "@level": {
165
+ "const": "2"
166
+ },
167
+ "@classId": {
168
+ "const": "1.3.2"
169
+ },
170
+ "#text": {
171
+ "const": "Natural environment, climate change"
172
+ }
173
+ }
174
+ },
175
+ {
176
+ "properties": {
177
+ "@level": {
178
+ "const": "2"
179
+ },
180
+ "@classId": {
181
+ "const": "1.3.3"
182
+ },
183
+ "#text": {
184
+ "const": "Natural environment, ozone depletion"
185
+ }
186
+ }
187
+ },
188
+ {
189
+ "properties": {
190
+ "@level": {
191
+ "const": "2"
192
+ },
193
+ "@classId": {
194
+ "const": "1.3.4"
195
+ },
196
+ "#text": {
197
+ "const": "Natural environment, land use"
198
+ }
199
+ }
200
+ },
201
+ {
202
+ "properties": {
203
+ "@level": {
204
+ "const": "2"
205
+ },
206
+ "@classId": {
207
+ "const": "1.3.5"
208
+ },
209
+ "#text": {
210
+ "const": "Natural environment, freshwater ecotoxicity"
211
+ }
212
+ }
213
+ },
214
+ {
215
+ "properties": {
216
+ "@level": {
217
+ "const": "2"
218
+ },
219
+ "@classId": {
220
+ "const": "1.3.6"
221
+ },
222
+ "#text": {
223
+ "const": "Natural environment, seawater ecotoxicity"
224
+ }
225
+ }
226
+ },
227
+ {
228
+ "properties": {
229
+ "@level": {
230
+ "const": "2"
231
+ },
232
+ "@classId": {
233
+ "const": "1.3.7"
234
+ },
235
+ "#text": {
236
+ "const": "Natural environment, terrestric ecotoxicity"
237
+ }
238
+ }
239
+ },
240
+ {
241
+ "properties": {
242
+ "@level": {
243
+ "const": "2"
244
+ },
245
+ "@classId": {
246
+ "const": "1.3.8"
247
+ },
248
+ "#text": {
249
+ "const": "Natural environment, acidification"
250
+ }
251
+ }
252
+ },
253
+ {
254
+ "properties": {
255
+ "@level": {
256
+ "const": "2"
257
+ },
258
+ "@classId": {
259
+ "const": "1.3.9"
260
+ },
261
+ "#text": {
262
+ "const": "Natural environment, eutrophication"
263
+ }
264
+ }
265
+ },
266
+ {
267
+ "properties": {
268
+ "@level": {
269
+ "const": "2"
270
+ },
271
+ "@classId": {
272
+ "const": "1.3.10"
273
+ },
274
+ "#text": {
275
+ "const": "Natural environment, photooxidant creation"
276
+ }
277
+ }
278
+ },
279
+ {
280
+ "properties": {
281
+ "@level": {
282
+ "const": "2"
283
+ },
284
+ "@classId": {
285
+ "const": "1.3.11"
286
+ },
287
+ "#text": {
288
+ "const": "Natural environment, ionising radiation"
289
+ }
290
+ }
291
+ },
292
+ {
293
+ "properties": {
294
+ "@level": {
295
+ "const": "2"
296
+ },
297
+ "@classId": {
298
+ "const": "1.3.12"
299
+ },
300
+ "#text": {
301
+ "const": "Natural environment, other"
302
+ }
303
+ }
304
+ },
305
+ {
306
+ "properties": {
307
+ "@level": {
308
+ "const": "1"
309
+ },
310
+ "@classId": {
311
+ "const": "1.4"
312
+ },
313
+ "#text": {
314
+ "const": "Man-made environment"
315
+ }
316
+ }
317
+ },
318
+ {
319
+ "properties": {
320
+ "@level": {
321
+ "const": "2"
322
+ },
323
+ "@classId": {
324
+ "const": "1.4.1"
325
+ },
326
+ "#text": {
327
+ "const": "Total man-made environment, combined"
328
+ }
329
+ }
330
+ },
331
+ {
332
+ "properties": {
333
+ "@level": {
334
+ "const": "2"
335
+ },
336
+ "@classId": {
337
+ "const": "1.4.2"
338
+ },
339
+ "#text": {
340
+ "const": "Man-made environment, acidification"
341
+ }
342
+ }
343
+ },
344
+ {
345
+ "properties": {
346
+ "@level": {
347
+ "const": "2"
348
+ },
349
+ "@classId": {
350
+ "const": "1.4.3"
351
+ },
352
+ "#text": {
353
+ "const": "Man-made environment, climate change"
354
+ }
355
+ }
356
+ },
357
+ {
358
+ "properties": {
359
+ "@level": {
360
+ "const": "2"
361
+ },
362
+ "@classId": {
363
+ "const": "1.4.4"
364
+ },
365
+ "#text": {
366
+ "const": "Man-made environment, eutrophication"
367
+ }
368
+ }
369
+ },
370
+ {
371
+ "properties": {
372
+ "@level": {
373
+ "const": "2"
374
+ },
375
+ "@classId": {
376
+ "const": "1.4.5"
377
+ },
378
+ "#text": {
379
+ "const": "Man-made environment, other"
380
+ }
381
+ }
382
+ },
383
+ {
384
+ "properties": {
385
+ "@level": {
386
+ "const": "1"
387
+ },
388
+ "@classId": {
389
+ "const": "1.5"
390
+ },
391
+ "#text": {
392
+ "const": "Resource availability"
393
+ }
394
+ }
395
+ },
396
+ {
397
+ "properties": {
398
+ "@level": {
399
+ "const": "2"
400
+ },
401
+ "@classId": {
402
+ "const": "1.5.1"
403
+ },
404
+ "#text": {
405
+ "const": "Total resource depletion, combined"
406
+ }
407
+ }
408
+ },
409
+ {
410
+ "properties": {
411
+ "@level": {
412
+ "const": "2"
413
+ },
414
+ "@classId": {
415
+ "const": "1.5.2"
416
+ },
417
+ "#text": {
418
+ "const": "Resource depletion, minerals and metals"
419
+ }
420
+ }
421
+ },
422
+ {
423
+ "properties": {
424
+ "@level": {
425
+ "const": "2"
426
+ },
427
+ "@classId": {
428
+ "const": "1.5.3"
429
+ },
430
+ "#text": {
431
+ "const": "Resource depletion, non-renewable energy resourcess"
432
+ }
433
+ }
434
+ },
435
+ {
436
+ "properties": {
437
+ "@level": {
438
+ "const": "2"
439
+ },
440
+ "@classId": {
441
+ "const": "1.5.4"
442
+ },
443
+ "#text": {
444
+ "const": "Resource depletion, land use"
445
+ }
446
+ }
447
+ },
448
+ {
449
+ "properties": {
450
+ "@level": {
451
+ "const": "2"
452
+ },
453
+ "@classId": {
454
+ "const": "1.5.5"
455
+ },
456
+ "#text": {
457
+ "const": "Resource depletion, renewable energy resources"
458
+ }
459
+ }
460
+ },
461
+ {
462
+ "properties": {
463
+ "@level": {
464
+ "const": "2"
465
+ },
466
+ "@classId": {
467
+ "const": "1.5.6"
468
+ },
469
+ "#text": {
470
+ "const": "Resource depletion, renewable non-energy resources"
471
+ }
472
+ }
473
+ },
474
+ {
475
+ "properties": {
476
+ "@level": {
477
+ "const": "2"
478
+ },
479
+ "@classId": {
480
+ "const": "1.5.6"
481
+ },
482
+ "#text": {
483
+ "const": "Resource depletion, other"
484
+ }
485
+ }
486
+ },
487
+ {
488
+ "properties": {
489
+ "@level": {
490
+ "const": "0"
491
+ },
492
+ "@classId": {
493
+ "const": "2"
494
+ },
495
+ "#text": {
496
+ "const": "Midpoint level LCIA methods"
497
+ }
498
+ }
499
+ },
500
+ {
501
+ "properties": {
502
+ "@level": {
503
+ "const": "1"
504
+ },
505
+ "@classId": {
506
+ "const": "2.1"
507
+ },
508
+ "#text": {
509
+ "const": "Combined methods"
510
+ }
511
+ }
512
+ },
513
+ {
514
+ "properties": {
515
+ "@level": {
516
+ "const": "1"
517
+ },
518
+ "@classId": {
519
+ "const": "2.2"
520
+ },
521
+ "#text": {
522
+ "const": "Climate change"
523
+ }
524
+ }
525
+ },
526
+ {
527
+ "properties": {
528
+ "@level": {
529
+ "const": "1"
530
+ },
531
+ "@classId": {
532
+ "const": "2.3"
533
+ },
534
+ "#text": {
535
+ "const": "Ozone depletion"
536
+ }
537
+ }
538
+ },
539
+ {
540
+ "properties": {
541
+ "@level": {
542
+ "const": "1"
543
+ },
544
+ "@classId": {
545
+ "const": "2.4"
546
+ },
547
+ "#text": {
548
+ "const": "Land use"
549
+ }
550
+ }
551
+ },
552
+ {
553
+ "properties": {
554
+ "@level": {
555
+ "const": "1"
556
+ },
557
+ "@classId": {
558
+ "const": "2.5"
559
+ },
560
+ "#text": {
561
+ "const": "Ecotoxicity"
562
+ }
563
+ }
564
+ },
565
+ {
566
+ "properties": {
567
+ "@level": {
568
+ "const": "1"
569
+ },
570
+ "@classId": {
571
+ "const": "2.6"
572
+ },
573
+ "#text": {
574
+ "const": "Acidification"
575
+ }
576
+ }
577
+ },
578
+ {
579
+ "properties": {
580
+ "@level": {
581
+ "const": "1"
582
+ },
583
+ "@classId": {
584
+ "const": "2.7"
585
+ },
586
+ "#text": {
587
+ "const": "Eutrophication"
588
+ }
589
+ }
590
+ },
591
+ {
592
+ "properties": {
593
+ "@level": {
594
+ "const": "1"
595
+ },
596
+ "@classId": {
597
+ "const": "2.8"
598
+ },
599
+ "#text": {
600
+ "const": "Photooxidant creation"
601
+ }
602
+ }
603
+ },
604
+ {
605
+ "properties": {
606
+ "@level": {
607
+ "const": "1"
608
+ },
609
+ "@classId": {
610
+ "const": "2.9"
611
+ },
612
+ "#text": {
613
+ "const": "Nuclear radiation"
614
+ }
615
+ }
616
+ },
617
+ {
618
+ "properties": {
619
+ "@level": {
620
+ "const": "1"
621
+ },
622
+ "@classId": {
623
+ "const": "2.10"
624
+ },
625
+ "#text": {
626
+ "const": "Human toxicity"
627
+ }
628
+ }
629
+ },
630
+ {
631
+ "properties": {
632
+ "@level": {
633
+ "const": "1"
634
+ },
635
+ "@classId": {
636
+ "const": "2.11"
637
+ },
638
+ "#text": {
639
+ "const": "Respiratory effects"
640
+ }
641
+ }
642
+ },
643
+ {
644
+ "properties": {
645
+ "@level": {
646
+ "const": "1"
647
+ },
648
+ "@classId": {
649
+ "const": "2.12"
650
+ },
651
+ "#text": {
652
+ "const": "Noise"
653
+ }
654
+ }
655
+ },
656
+ {
657
+ "properties": {
658
+ "@level": {
659
+ "const": "1"
660
+ },
661
+ "@classId": {
662
+ "const": "2.13"
663
+ },
664
+ "#text": {
665
+ "const": "Resource depletion"
666
+ }
667
+ }
668
+ },
669
+ {
670
+ "properties": {
671
+ "@level": {
672
+ "const": "1"
673
+ },
674
+ "@classId": {
675
+ "const": "2.14"
676
+ },
677
+ "#text": {
678
+ "const": "Other midpoint categories"
679
+ }
680
+ }
681
+ }
682
+ ]
683
+ }
684
+ }
685
+ }