@hestia-earth/api 0.28.5 → 0.28.7

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.
@@ -0,0 +1,4 @@
1
+ import { DataPlan } from './model';
2
+ import { IMongooseDocument } from '../../db/mongoose.model';
3
+ export interface IDataPlanDocument extends DataPlan, IMongooseDocument {
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,42 @@
1
+ import { BaseModel } from '../../db/model.base';
2
+ export declare enum LiteratureReviewStatus {
3
+ ToDo = "to-do",
4
+ InProgress = "in-progress",
5
+ Done = "done"
6
+ }
7
+ export declare enum DataPlanQuality {
8
+ Low = "low",
9
+ Medium = "medium",
10
+ High = "high"
11
+ }
12
+ export type QualityRank = 1 | 2 | 3;
13
+ export declare const QUALITY_RANK: Record<DataPlanQuality, QualityRank>;
14
+ export declare const QUALITY_RANKS: QualityRank[];
15
+ export declare enum AggregationCriterion {
16
+ EmissionsIncluded = "emissions-included",
17
+ NumberOfCycles = "number-of-cycles",
18
+ YieldDelta = "yield-delta",
19
+ Completeness = "completeness",
20
+ ProductionCoverage = "production-coverage"
21
+ }
22
+ export interface DataPlan extends BaseModel {
23
+ product: string;
24
+ country: string;
25
+ periodStart: number;
26
+ periodEnd: number;
27
+ literatureReviewStatus?: LiteratureReviewStatus;
28
+ aggregationNotes?: string;
29
+ expectedVersionId?: string;
30
+ expectedQuality?: QualityRank;
31
+ gitlabIssue?: string;
32
+ assigneeId?: string;
33
+ targetDate?: Date;
34
+ aggregationId?: string | null;
35
+ releasedQuality?: QualityRank | null;
36
+ nonVerifiedQuality?: QualityRank | null;
37
+ unmetCriteria?: AggregationCriterion[];
38
+ suitableSourcesCount?: number | null;
39
+ sourcesToUploadCount?: number | null;
40
+ completionPct?: number | null;
41
+ computedAt?: Date | null;
42
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AggregationCriterion = exports.QUALITY_RANKS = exports.QUALITY_RANK = exports.DataPlanQuality = exports.LiteratureReviewStatus = void 0;
4
+ var LiteratureReviewStatus;
5
+ (function (LiteratureReviewStatus) {
6
+ LiteratureReviewStatus["ToDo"] = "to-do";
7
+ LiteratureReviewStatus["InProgress"] = "in-progress";
8
+ LiteratureReviewStatus["Done"] = "done";
9
+ })(LiteratureReviewStatus || (exports.LiteratureReviewStatus = LiteratureReviewStatus = {}));
10
+ var DataPlanQuality;
11
+ (function (DataPlanQuality) {
12
+ DataPlanQuality["Low"] = "low";
13
+ DataPlanQuality["Medium"] = "medium";
14
+ DataPlanQuality["High"] = "high";
15
+ })(DataPlanQuality || (exports.DataPlanQuality = DataPlanQuality = {}));
16
+ exports.QUALITY_RANK = {
17
+ [DataPlanQuality.Low]: 1,
18
+ [DataPlanQuality.Medium]: 2,
19
+ [DataPlanQuality.High]: 3
20
+ };
21
+ exports.QUALITY_RANKS = [1, 2, 3];
22
+ var AggregationCriterion;
23
+ (function (AggregationCriterion) {
24
+ AggregationCriterion["EmissionsIncluded"] = "emissions-included";
25
+ AggregationCriterion["NumberOfCycles"] = "number-of-cycles";
26
+ AggregationCriterion["YieldDelta"] = "yield-delta";
27
+ AggregationCriterion["Completeness"] = "completeness";
28
+ AggregationCriterion["ProductionCoverage"] = "production-coverage";
29
+ })(AggregationCriterion || (exports.AggregationCriterion = AggregationCriterion = {}));
@@ -0,0 +1,4 @@
1
+ import { DataPlanVersion } from './version.model';
2
+ import { IMongooseDocument } from '../../db/mongoose.model';
3
+ export interface IDataPlanVersionDocument extends DataPlanVersion, IMongooseDocument {
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { BaseModel } from '../../db/model.base';
2
+ export interface DataPlanVersion extends BaseModel {
3
+ name: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,26 @@
1
+ export var LiteratureReviewStatus;
2
+ (function (LiteratureReviewStatus) {
3
+ LiteratureReviewStatus["ToDo"] = "to-do";
4
+ LiteratureReviewStatus["InProgress"] = "in-progress";
5
+ LiteratureReviewStatus["Done"] = "done";
6
+ })(LiteratureReviewStatus || (LiteratureReviewStatus = {}));
7
+ export var DataPlanQuality;
8
+ (function (DataPlanQuality) {
9
+ DataPlanQuality["Low"] = "low";
10
+ DataPlanQuality["Medium"] = "medium";
11
+ DataPlanQuality["High"] = "high";
12
+ })(DataPlanQuality || (DataPlanQuality = {}));
13
+ export const QUALITY_RANK = {
14
+ [DataPlanQuality.Low]: 1,
15
+ [DataPlanQuality.Medium]: 2,
16
+ [DataPlanQuality.High]: 3
17
+ };
18
+ export const QUALITY_RANKS = [1, 2, 3];
19
+ export var AggregationCriterion;
20
+ (function (AggregationCriterion) {
21
+ AggregationCriterion["EmissionsIncluded"] = "emissions-included";
22
+ AggregationCriterion["NumberOfCycles"] = "number-of-cycles";
23
+ AggregationCriterion["YieldDelta"] = "yield-delta";
24
+ AggregationCriterion["Completeness"] = "completeness";
25
+ AggregationCriterion["ProductionCoverage"] = "production-coverage";
26
+ })(AggregationCriterion || (AggregationCriterion = {}));
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/esm/models.js CHANGED
@@ -2,6 +2,7 @@ export * from './api-calls/model/model.js';
2
2
  export * from './aggregations/model/model.js';
3
3
  export * from './analyses/model/model.js';
4
4
  export * from './cycles/model/model.js';
5
+ export * from './data-plan/model/model.js';
5
6
  export * from './drafts/model/model.js';
6
7
  export * from './earth-engine/model/model.js';
7
8
  export * from './files/model/llm-preset.js';
package/models.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './api-calls/model/model';
2
2
  export * from './aggregations/model/model';
3
3
  export * from './analyses/model/model';
4
4
  export * from './cycles/model/model';
5
+ export * from './data-plan/model/model';
5
6
  export * from './drafts/model/model';
6
7
  export * from './earth-engine/model/model';
7
8
  export * from './files/model/llm-preset';
package/models.js CHANGED
@@ -18,6 +18,7 @@ __exportStar(require("./api-calls/model/model"), exports);
18
18
  __exportStar(require("./aggregations/model/model"), exports);
19
19
  __exportStar(require("./analyses/model/model"), exports);
20
20
  __exportStar(require("./cycles/model/model"), exports);
21
+ __exportStar(require("./data-plan/model/model"), exports);
21
22
  __exportStar(require("./drafts/model/model"), exports);
22
23
  __exportStar(require("./earth-engine/model/model"), exports);
23
24
  __exportStar(require("./files/model/llm-preset"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/api",
3
- "version": "0.28.5",
3
+ "version": "0.28.7",
4
4
  "description": "Hestia API definitions",
5
5
  "main": "models.js",
6
6
  "module": "esm/models.js",
@@ -48,6 +48,7 @@ export interface SourceTracker extends BaseModel {
48
48
  gitlabMatchNeedsReview: boolean;
49
49
  gitlabRejectedIssueIids?: number[];
50
50
  hestiaEnrichment?: SourceTrackerEnrichment;
51
+ fileId?: string;
51
52
  notes?: string;
52
53
  createdBy?: string;
53
54
  study?: BaseFile;