@hestia-earth/api 0.26.24 → 0.26.26
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/esm/models.js +1 -0
- package/esm/source-tracker/model/document.js +1 -0
- package/esm/source-tracker/model/model.js +23 -0
- package/models.d.ts +1 -0
- package/models.js +1 -0
- package/package.json +1 -1
- package/source-tracker/model/document.d.ts +4 -0
- package/source-tracker/model/document.js +2 -0
- package/source-tracker/model/model.d.ts +55 -0
- package/source-tracker/model/model.js +26 -0
package/esm/models.js
CHANGED
|
@@ -10,6 +10,7 @@ export * from './migrations/model/model.js';
|
|
|
10
10
|
export * from './nodes/model/model.js';
|
|
11
11
|
export * from './reconciliations/model/model.js';
|
|
12
12
|
export * from './settings/model/model.js';
|
|
13
|
+
export * from './source-tracker/model/model.js';
|
|
13
14
|
export * from './url-shortener/model/model.js';
|
|
14
15
|
export * from './users/model/model.js';
|
|
15
16
|
export * from './webhooks/model/model.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export var SourceTrackerStatus;
|
|
2
|
+
(function (SourceTrackerStatus) {
|
|
3
|
+
SourceTrackerStatus["Pending"] = "pending";
|
|
4
|
+
SourceTrackerStatus["InReview"] = "in-review";
|
|
5
|
+
SourceTrackerStatus["Confirmed"] = "confirmed";
|
|
6
|
+
SourceTrackerStatus["Indexed"] = "indexed";
|
|
7
|
+
SourceTrackerStatus["Rejected"] = "rejected";
|
|
8
|
+
SourceTrackerStatus["Duplicate"] = "duplicate";
|
|
9
|
+
})(SourceTrackerStatus || (SourceTrackerStatus = {}));
|
|
10
|
+
export var RejectionReason;
|
|
11
|
+
(function (RejectionReason) {
|
|
12
|
+
RejectionReason["BadData"] = "bad-data";
|
|
13
|
+
RejectionReason["NotRelevant"] = "not-relevant";
|
|
14
|
+
RejectionReason["Commercial"] = "commercial";
|
|
15
|
+
RejectionReason["NoLca"] = "no-lca";
|
|
16
|
+
RejectionReason["DuplicateSource"] = "duplicate-source";
|
|
17
|
+
})(RejectionReason || (RejectionReason = {}));
|
|
18
|
+
export var GitlabMatchMethod;
|
|
19
|
+
(function (GitlabMatchMethod) {
|
|
20
|
+
GitlabMatchMethod["Doi"] = "doi";
|
|
21
|
+
GitlabMatchMethod["FuzzyTitle"] = "fuzzy-title";
|
|
22
|
+
GitlabMatchMethod["Manual"] = "manual";
|
|
23
|
+
})(GitlabMatchMethod || (GitlabMatchMethod = {}));
|
package/models.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './migrations/model/model';
|
|
|
10
10
|
export * from './nodes/model/model';
|
|
11
11
|
export * from './reconciliations/model/model';
|
|
12
12
|
export * from './settings/model/model';
|
|
13
|
+
export * from './source-tracker/model/model';
|
|
13
14
|
export * from './url-shortener/model/model';
|
|
14
15
|
export * from './users/model/model';
|
|
15
16
|
export * from './webhooks/model/model';
|
package/models.js
CHANGED
|
@@ -26,6 +26,7 @@ __exportStar(require("./migrations/model/model"), exports);
|
|
|
26
26
|
__exportStar(require("./nodes/model/model"), exports);
|
|
27
27
|
__exportStar(require("./reconciliations/model/model"), exports);
|
|
28
28
|
__exportStar(require("./settings/model/model"), exports);
|
|
29
|
+
__exportStar(require("./source-tracker/model/model"), exports);
|
|
29
30
|
__exportStar(require("./url-shortener/model/model"), exports);
|
|
30
31
|
__exportStar(require("./users/model/model"), exports);
|
|
31
32
|
__exportStar(require("./webhooks/model/model"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { BaseModel } from '../../db/model.base';
|
|
2
|
+
import type { BaseFile } from '../../files/model/model';
|
|
3
|
+
export declare enum SourceTrackerStatus {
|
|
4
|
+
Pending = "pending",
|
|
5
|
+
InReview = "in-review",
|
|
6
|
+
Confirmed = "confirmed",
|
|
7
|
+
Indexed = "indexed",
|
|
8
|
+
Rejected = "rejected",
|
|
9
|
+
Duplicate = "duplicate"
|
|
10
|
+
}
|
|
11
|
+
export declare enum RejectionReason {
|
|
12
|
+
BadData = "bad-data",
|
|
13
|
+
NotRelevant = "not-relevant",
|
|
14
|
+
Commercial = "commercial",
|
|
15
|
+
NoLca = "no-lca",
|
|
16
|
+
DuplicateSource = "duplicate-source"
|
|
17
|
+
}
|
|
18
|
+
export declare enum GitlabMatchMethod {
|
|
19
|
+
Doi = "doi",
|
|
20
|
+
FuzzyTitle = "fuzzy-title",
|
|
21
|
+
Manual = "manual"
|
|
22
|
+
}
|
|
23
|
+
export interface SourceTrackerEnrichment {
|
|
24
|
+
lastSyncedAt?: Date;
|
|
25
|
+
methodClassification?: string[];
|
|
26
|
+
cycleCount?: number;
|
|
27
|
+
totalNumberOfCycles?: number;
|
|
28
|
+
products: string[];
|
|
29
|
+
countries: string[];
|
|
30
|
+
}
|
|
31
|
+
export interface SourceTracker extends BaseModel {
|
|
32
|
+
doi?: string;
|
|
33
|
+
sourceId?: string;
|
|
34
|
+
title?: string;
|
|
35
|
+
bibliographyTitle?: string;
|
|
36
|
+
authors?: string;
|
|
37
|
+
year?: number;
|
|
38
|
+
products: string[];
|
|
39
|
+
countries: string[];
|
|
40
|
+
status: SourceTrackerStatus;
|
|
41
|
+
rejectionReason?: RejectionReason;
|
|
42
|
+
rejectedAt?: Date;
|
|
43
|
+
rejectedBy?: string;
|
|
44
|
+
assigneeId?: string;
|
|
45
|
+
gitlabIssueIid?: number;
|
|
46
|
+
gitlabIssueUrl?: string;
|
|
47
|
+
gitlabMatchConfidence?: number;
|
|
48
|
+
gitlabMatchMethod?: GitlabMatchMethod;
|
|
49
|
+
gitlabMatchNeedsReview: boolean;
|
|
50
|
+
hestiaEnrichment?: SourceTrackerEnrichment;
|
|
51
|
+
notes?: string;
|
|
52
|
+
createdBy?: string;
|
|
53
|
+
study?: BaseFile;
|
|
54
|
+
supplementary?: BaseFile[];
|
|
55
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GitlabMatchMethod = exports.RejectionReason = exports.SourceTrackerStatus = void 0;
|
|
4
|
+
var SourceTrackerStatus;
|
|
5
|
+
(function (SourceTrackerStatus) {
|
|
6
|
+
SourceTrackerStatus["Pending"] = "pending";
|
|
7
|
+
SourceTrackerStatus["InReview"] = "in-review";
|
|
8
|
+
SourceTrackerStatus["Confirmed"] = "confirmed";
|
|
9
|
+
SourceTrackerStatus["Indexed"] = "indexed";
|
|
10
|
+
SourceTrackerStatus["Rejected"] = "rejected";
|
|
11
|
+
SourceTrackerStatus["Duplicate"] = "duplicate";
|
|
12
|
+
})(SourceTrackerStatus || (exports.SourceTrackerStatus = SourceTrackerStatus = {}));
|
|
13
|
+
var RejectionReason;
|
|
14
|
+
(function (RejectionReason) {
|
|
15
|
+
RejectionReason["BadData"] = "bad-data";
|
|
16
|
+
RejectionReason["NotRelevant"] = "not-relevant";
|
|
17
|
+
RejectionReason["Commercial"] = "commercial";
|
|
18
|
+
RejectionReason["NoLca"] = "no-lca";
|
|
19
|
+
RejectionReason["DuplicateSource"] = "duplicate-source";
|
|
20
|
+
})(RejectionReason || (exports.RejectionReason = RejectionReason = {}));
|
|
21
|
+
var GitlabMatchMethod;
|
|
22
|
+
(function (GitlabMatchMethod) {
|
|
23
|
+
GitlabMatchMethod["Doi"] = "doi";
|
|
24
|
+
GitlabMatchMethod["FuzzyTitle"] = "fuzzy-title";
|
|
25
|
+
GitlabMatchMethod["Manual"] = "manual";
|
|
26
|
+
})(GitlabMatchMethod || (exports.GitlabMatchMethod = GitlabMatchMethod = {}));
|