@hestia-earth/api 0.15.3 → 0.16.1

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.
@@ -1,8 +1,9 @@
1
1
  import { BaseModel } from '../../db/model.base';
2
- interface IAnalysisDetail {
2
+ export interface IAnalysisDetail {
3
3
  key: string;
4
4
  termId: string;
5
- url: string;
5
+ originalUrl: string;
6
+ recalculatedUrl?: string;
6
7
  }
7
8
  export declare class Analysis extends BaseModel {
8
9
  cycleId: string;
@@ -12,5 +13,6 @@ export declare class Analysis extends BaseModel {
12
13
  message: string;
13
14
  subMessages: string[];
14
15
  };
16
+ originalCycleUrl: string;
17
+ recalculatedCycleUrl?: string;
15
18
  }
16
- export {};
@@ -207,7 +207,15 @@ exports.canSubmit = function (file, user) {
207
207
  !file.userValidatedAt && (exports.isOwner(file, user) || exports.isAuthorized(file, user));
208
208
  };
209
209
  var feedbackStatuses = [
210
+ FileStatus.checkExistingDone,
211
+ FileStatus.extendBibliographyDone,
212
+ FileStatus.addMetadataDone,
213
+ FileStatus.validateHestiaDone,
210
214
  FileStatus.validateDataDone,
215
+ FileError.checkExistingError,
216
+ FileError.extendBibliographyError,
217
+ FileError.addMetadataError,
218
+ FileError.validateHestiaError,
211
219
  FileError.validateDataError
212
220
  ];
213
221
  exports.canFeedback = function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/api",
3
- "version": "0.15.3",
3
+ "version": "0.16.1",
4
4
  "description": "Hestia API definitions",
5
5
  "main": "dist/models.js",
6
6
  "typings": "dist/models.d.ts",
@@ -30,16 +30,16 @@
30
30
  "author": "Guillaume Royer <guillaumeroyer.mail@gmail.com>",
31
31
  "license": "UNLICENSED",
32
32
  "dependencies": {
33
- "@hestia-earth/schema": ">=12.0.0"
33
+ "@hestia-earth/schema": ">=14.0.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@commitlint/cli": "^16.2.4",
37
37
  "@commitlint/config-conventional": "^16.2.4",
38
38
  "@elastic/elasticsearch": "7.13.0",
39
39
  "@hestia-earth/eslint-config": "^0.0.4",
40
- "@hestia-earth/json-schema": "^12.0.0",
41
- "@hestia-earth/schema-convert": "^12.0.0",
42
- "@hestia-earth/schema-validation": "^12.0.0",
40
+ "@hestia-earth/json-schema": "^14.0.0",
41
+ "@hestia-earth/schema-convert": "^14.0.0",
42
+ "@hestia-earth/schema-validation": "^14.0.0",
43
43
  "@hestia-earth/utils": "^0.10.27",
44
44
  "@mendeley/api": "^10.0.2",
45
45
  "@sentry/node": "^6.18.2",