@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,720 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "oneOf": [
4
+ {
5
+ "properties": {
6
+ "@level": {
7
+ "const": "0"
8
+ },
9
+ "@catId": {
10
+ "const": "1"
11
+ },
12
+ "#text": {
13
+ "const": "Emissions"
14
+ }
15
+ }
16
+ },
17
+ {
18
+ "properties": {
19
+ "@level": {
20
+ "const": "1"
21
+ },
22
+ "@catId": {
23
+ "const": "1.1"
24
+ },
25
+ "#text": {
26
+ "const": "Emissions to water"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "properties": {
32
+ "@level": {
33
+ "const": "2"
34
+ },
35
+ "@catId": {
36
+ "const": "1.1.1"
37
+ },
38
+ "#text": {
39
+ "const": "Emissions to fresh water"
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "properties": {
45
+ "@level": {
46
+ "const": "2"
47
+ },
48
+ "@catId": {
49
+ "const": "1.1.2"
50
+ },
51
+ "#text": {
52
+ "const": "Emissions to sea water"
53
+ }
54
+ }
55
+ },
56
+ {
57
+ "properties": {
58
+ "@level": {
59
+ "const": "2"
60
+ },
61
+ "@catId": {
62
+ "const": "1.1.3"
63
+ },
64
+ "#text": {
65
+ "const": "Emissions to water, unspecified"
66
+ }
67
+ }
68
+ },
69
+ {
70
+ "properties": {
71
+ "@level": {
72
+ "const": "2"
73
+ },
74
+ "@catId": {
75
+ "const": "1.1.4"
76
+ },
77
+ "#text": {
78
+ "const": "Emissions to water, unspecified (long-term)"
79
+ }
80
+ }
81
+ },
82
+ {
83
+ "properties": {
84
+ "@level": {
85
+ "const": "1"
86
+ },
87
+ "@catId": {
88
+ "const": "1.2"
89
+ },
90
+ "#text": {
91
+ "const": "Emissions to soil"
92
+ }
93
+ }
94
+ },
95
+ {
96
+ "properties": {
97
+ "@level": {
98
+ "const": "2"
99
+ },
100
+ "@catId": {
101
+ "const": "1.2.1"
102
+ },
103
+ "#text": {
104
+ "const": "Emissions to agricultural soil"
105
+ }
106
+ }
107
+ },
108
+ {
109
+ "properties": {
110
+ "@level": {
111
+ "const": "2"
112
+ },
113
+ "@catId": {
114
+ "const": "1.2.2"
115
+ },
116
+ "#text": {
117
+ "const": "Emissions to non-agricultural soil"
118
+ }
119
+ }
120
+ },
121
+ {
122
+ "properties": {
123
+ "@level": {
124
+ "const": "2"
125
+ },
126
+ "@catId": {
127
+ "const": "1.2.3"
128
+ },
129
+ "#text": {
130
+ "const": "Emissions to soil, unspecified"
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "properties": {
136
+ "@level": {
137
+ "const": "2"
138
+ },
139
+ "@catId": {
140
+ "const": "1.2.4"
141
+ },
142
+ "#text": {
143
+ "const": "Emissions to soil, unspecified (long-term)"
144
+ }
145
+ }
146
+ },
147
+ {
148
+ "properties": {
149
+ "@level": {
150
+ "const": "1"
151
+ },
152
+ "@catId": {
153
+ "const": "1.3"
154
+ },
155
+ "#text": {
156
+ "const": "Emissions to air"
157
+ }
158
+ }
159
+ },
160
+ {
161
+ "properties": {
162
+ "@level": {
163
+ "const": "2"
164
+ },
165
+ "@catId": {
166
+ "const": "1.3.1"
167
+ },
168
+ "#text": {
169
+ "const": "Emissions to urban air close to ground"
170
+ }
171
+ }
172
+ },
173
+ {
174
+ "properties": {
175
+ "@level": {
176
+ "const": "2"
177
+ },
178
+ "@catId": {
179
+ "const": "1.3.2"
180
+ },
181
+ "#text": {
182
+ "const": "Emissions to non-urban air or from high stacks"
183
+ }
184
+ }
185
+ },
186
+ {
187
+ "properties": {
188
+ "@level": {
189
+ "const": "2"
190
+ },
191
+ "@catId": {
192
+ "const": "1.3.3"
193
+ },
194
+ "#text": {
195
+ "const": "Emissions to lower stratosphere and upper troposphere"
196
+ }
197
+ }
198
+ },
199
+ {
200
+ "properties": {
201
+ "@level": {
202
+ "const": "2"
203
+ },
204
+ "@catId": {
205
+ "const": "1.3.4"
206
+ },
207
+ "#text": {
208
+ "const": "Emissions to air, unspecified"
209
+ }
210
+ }
211
+ },
212
+ {
213
+ "properties": {
214
+ "@level": {
215
+ "const": "2"
216
+ },
217
+ "@catId": {
218
+ "const": "1.3.5"
219
+ },
220
+ "#text": {
221
+ "const": "Emissions to air, unspecified (long-term)"
222
+ }
223
+ }
224
+ },
225
+ {
226
+ "properties": {
227
+ "@level": {
228
+ "const": "0"
229
+ },
230
+ "@catId": {
231
+ "const": "2"
232
+ },
233
+ "#text": {
234
+ "const": "Resources"
235
+ }
236
+ }
237
+ },
238
+ {
239
+ "properties": {
240
+ "@level": {
241
+ "const": "1"
242
+ },
243
+ "@catId": {
244
+ "const": "2.1"
245
+ },
246
+ "#text": {
247
+ "const": "Resources from ground"
248
+ }
249
+ }
250
+ },
251
+ {
252
+ "properties": {
253
+ "@level": {
254
+ "const": "2"
255
+ },
256
+ "@catId": {
257
+ "const": "2.1.1"
258
+ },
259
+ "#text": {
260
+ "const": "Non-renewable material resources from ground"
261
+ }
262
+ }
263
+ },
264
+ {
265
+ "properties": {
266
+ "@level": {
267
+ "const": "2"
268
+ },
269
+ "@catId": {
270
+ "const": "2.1.2"
271
+ },
272
+ "#text": {
273
+ "const": "Non-renewable element resources from ground"
274
+ }
275
+ }
276
+ },
277
+ {
278
+ "properties": {
279
+ "@level": {
280
+ "const": "2"
281
+ },
282
+ "@catId": {
283
+ "const": "2.1.3"
284
+ },
285
+ "#text": {
286
+ "const": "Non-renewable energy resources from ground"
287
+ }
288
+ }
289
+ },
290
+ {
291
+ "properties": {
292
+ "@level": {
293
+ "const": "2"
294
+ },
295
+ "@catId": {
296
+ "const": "2.1.4"
297
+ },
298
+ "#text": {
299
+ "const": "Renewable element resources from ground"
300
+ }
301
+ }
302
+ },
303
+ {
304
+ "properties": {
305
+ "@level": {
306
+ "const": "2"
307
+ },
308
+ "@catId": {
309
+ "const": "2.1.5"
310
+ },
311
+ "#text": {
312
+ "const": "Renewable energy resources from ground"
313
+ }
314
+ }
315
+ },
316
+ {
317
+ "properties": {
318
+ "@level": {
319
+ "const": "2"
320
+ },
321
+ "@catId": {
322
+ "const": "2.1.6"
323
+ },
324
+ "#text": {
325
+ "const": "Renewable material resources from ground"
326
+ }
327
+ }
328
+ },
329
+ {
330
+ "properties": {
331
+ "@level": {
332
+ "const": "2"
333
+ },
334
+ "@catId": {
335
+ "const": "2.1.7"
336
+ },
337
+ "#text": {
338
+ "const": "Renewable resources from ground, unspecified"
339
+ }
340
+ }
341
+ },
342
+ {
343
+ "properties": {
344
+ "@level": {
345
+ "const": "2"
346
+ },
347
+ "@catId": {
348
+ "const": "2.1.8"
349
+ },
350
+ "#text": {
351
+ "const": "Non-renewable resources from ground, unspecified"
352
+ }
353
+ }
354
+ },
355
+ {
356
+ "properties": {
357
+ "@level": {
358
+ "const": "1"
359
+ },
360
+ "@catId": {
361
+ "const": "2.2"
362
+ },
363
+ "#text": {
364
+ "const": "Resources from water"
365
+ }
366
+ }
367
+ },
368
+ {
369
+ "properties": {
370
+ "@level": {
371
+ "const": "2"
372
+ },
373
+ "@catId": {
374
+ "const": "2.2.1"
375
+ },
376
+ "#text": {
377
+ "const": "Non-renewable material resources from water"
378
+ }
379
+ }
380
+ },
381
+ {
382
+ "properties": {
383
+ "@level": {
384
+ "const": "2"
385
+ },
386
+ "@catId": {
387
+ "const": "2.2.2"
388
+ },
389
+ "#text": {
390
+ "const": "Non-renewable element resources from water"
391
+ }
392
+ }
393
+ },
394
+ {
395
+ "properties": {
396
+ "@level": {
397
+ "const": "2"
398
+ },
399
+ "@catId": {
400
+ "const": "2.2.3"
401
+ },
402
+ "#text": {
403
+ "const": "Non-renewable energy resources from water"
404
+ }
405
+ }
406
+ },
407
+ {
408
+ "properties": {
409
+ "@level": {
410
+ "const": "2"
411
+ },
412
+ "@catId": {
413
+ "const": "2.2.4"
414
+ },
415
+ "#text": {
416
+ "const": "Renewable element resources from water"
417
+ }
418
+ }
419
+ },
420
+ {
421
+ "properties": {
422
+ "@level": {
423
+ "const": "2"
424
+ },
425
+ "@catId": {
426
+ "const": "2.2.5"
427
+ },
428
+ "#text": {
429
+ "const": "Renewable energy resources from water"
430
+ }
431
+ }
432
+ },
433
+ {
434
+ "properties": {
435
+ "@level": {
436
+ "const": "2"
437
+ },
438
+ "@catId": {
439
+ "const": "2.2.6"
440
+ },
441
+ "#text": {
442
+ "const": "Renewable material resources from water"
443
+ }
444
+ }
445
+ },
446
+ {
447
+ "properties": {
448
+ "@level": {
449
+ "const": "2"
450
+ },
451
+ "@catId": {
452
+ "const": "2.2.7"
453
+ },
454
+ "#text": {
455
+ "const": "Renewable resources from water, unspecified"
456
+ }
457
+ }
458
+ },
459
+ {
460
+ "properties": {
461
+ "@level": {
462
+ "const": "2"
463
+ },
464
+ "@catId": {
465
+ "const": "2.2.8"
466
+ },
467
+ "#text": {
468
+ "const": "Non-renewable resources from water, unspecified"
469
+ }
470
+ }
471
+ },
472
+ {
473
+ "properties": {
474
+ "@level": {
475
+ "const": "1"
476
+ },
477
+ "@catId": {
478
+ "const": "2.3"
479
+ },
480
+ "#text": {
481
+ "const": "Resources from air"
482
+ }
483
+ }
484
+ },
485
+ {
486
+ "properties": {
487
+ "@level": {
488
+ "const": "2"
489
+ },
490
+ "@catId": {
491
+ "const": "2.3.1"
492
+ },
493
+ "#text": {
494
+ "const": "Non-renewable material resources from air"
495
+ }
496
+ }
497
+ },
498
+ {
499
+ "properties": {
500
+ "@level": {
501
+ "const": "2"
502
+ },
503
+ "@catId": {
504
+ "const": "2.3.2"
505
+ },
506
+ "#text": {
507
+ "const": "Non-renewable element resources from air"
508
+ }
509
+ }
510
+ },
511
+ {
512
+ "properties": {
513
+ "@level": {
514
+ "const": "2"
515
+ },
516
+ "@catId": {
517
+ "const": "2.3.3"
518
+ },
519
+ "#text": {
520
+ "const": "Non-renewable energy resources from air"
521
+ }
522
+ }
523
+ },
524
+ {
525
+ "properties": {
526
+ "@level": {
527
+ "const": "2"
528
+ },
529
+ "@catId": {
530
+ "const": "2.3.4"
531
+ },
532
+ "#text": {
533
+ "const": "Renewable element resources from air"
534
+ }
535
+ }
536
+ },
537
+ {
538
+ "properties": {
539
+ "@level": {
540
+ "const": "2"
541
+ },
542
+ "@catId": {
543
+ "const": "2.3.5"
544
+ },
545
+ "#text": {
546
+ "const": "Renewable energy resources from air"
547
+ }
548
+ }
549
+ },
550
+ {
551
+ "properties": {
552
+ "@level": {
553
+ "const": "2"
554
+ },
555
+ "@catId": {
556
+ "const": "2.3.6"
557
+ },
558
+ "#text": {
559
+ "const": "Renewable material resources from air"
560
+ }
561
+ }
562
+ },
563
+ {
564
+ "properties": {
565
+ "@level": {
566
+ "const": "2"
567
+ },
568
+ "@catId": {
569
+ "const": "2.3.7"
570
+ },
571
+ "#text": {
572
+ "const": "Renewable resources from air, unspecified"
573
+ }
574
+ }
575
+ },
576
+ {
577
+ "properties": {
578
+ "@level": {
579
+ "const": "2"
580
+ },
581
+ "@catId": {
582
+ "const": "2.3.8"
583
+ },
584
+ "#text": {
585
+ "const": "Non-renewable resources from air, unspecified"
586
+ }
587
+ }
588
+ },
589
+ {
590
+ "properties": {
591
+ "@level": {
592
+ "const": "1"
593
+ },
594
+ "@catId": {
595
+ "const": "2.4"
596
+ },
597
+ "#text": {
598
+ "const": "Resources from biosphere"
599
+ }
600
+ }
601
+ },
602
+ {
603
+ "properties": {
604
+ "@level": {
605
+ "const": "2"
606
+ },
607
+ "@catId": {
608
+ "const": "2.4.1"
609
+ },
610
+ "#text": {
611
+ "const": "Renewable element resources from biosphere"
612
+ }
613
+ }
614
+ },
615
+ {
616
+ "properties": {
617
+ "@level": {
618
+ "const": "2"
619
+ },
620
+ "@catId": {
621
+ "const": "2.4.2"
622
+ },
623
+ "#text": {
624
+ "const": "Renewable energy resources from biosphere"
625
+ }
626
+ }
627
+ },
628
+ {
629
+ "properties": {
630
+ "@level": {
631
+ "const": "2"
632
+ },
633
+ "@catId": {
634
+ "const": "2.4.3"
635
+ },
636
+ "#text": {
637
+ "const": "Renewable material resources from biosphere"
638
+ }
639
+ }
640
+ },
641
+ {
642
+ "properties": {
643
+ "@level": {
644
+ "const": "2"
645
+ },
646
+ "@catId": {
647
+ "const": "2.4.4"
648
+ },
649
+ "#text": {
650
+ "const": "Renewable genetic resources from biosphere"
651
+ }
652
+ }
653
+ },
654
+ {
655
+ "properties": {
656
+ "@level": {
657
+ "const": "2"
658
+ },
659
+ "@catId": {
660
+ "const": "2.4.5"
661
+ },
662
+ "#text": {
663
+ "const": "Renewable resources from biosphere, unspecified"
664
+ }
665
+ }
666
+ },
667
+ {
668
+ "properties": {
669
+ "@level": {
670
+ "const": "0"
671
+ },
672
+ "@catId": {
673
+ "const": "3"
674
+ },
675
+ "#text": {
676
+ "const": "Land use"
677
+ }
678
+ }
679
+ },
680
+ {
681
+ "properties": {
682
+ "@level": {
683
+ "const": "1"
684
+ },
685
+ "@catId": {
686
+ "const": "3.1"
687
+ },
688
+ "#text": {
689
+ "const": "Land occupation"
690
+ }
691
+ }
692
+ },
693
+ {
694
+ "properties": {
695
+ "@level": {
696
+ "const": "1"
697
+ },
698
+ "@catId": {
699
+ "const": "3.2"
700
+ },
701
+ "#text": {
702
+ "const": "Land transformation"
703
+ }
704
+ }
705
+ },
706
+ {
707
+ "properties": {
708
+ "@level": {
709
+ "const": "0"
710
+ },
711
+ "@catId": {
712
+ "const": "4"
713
+ },
714
+ "#text": {
715
+ "const": "Other elementary flows"
716
+ }
717
+ }
718
+ }
719
+ ]
720
+ }