@hestia-earth/api 0.14.4 → 0.15.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.
@@ -0,0 +1,4 @@
1
+ import { Analysis } from './model';
2
+ import { IMongooseDocument } from '../../db/mongoose.model';
3
+ export interface IAnalysisDocument extends Analysis, IMongooseDocument {
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { BaseModel } from '../../db/model.base';
2
+ export declare class Analysis extends BaseModel {
3
+ cycleId: string;
4
+ name: string;
5
+ details?: any;
6
+ error?: {
7
+ message: string;
8
+ subMessages: string[];
9
+ };
10
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ extendStatics(d, b);
11
+ function __() { this.constructor = d; }
12
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
+ };
14
+ })();
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Analysis = void 0;
17
+ var model_base_1 = require("../../db/model.base");
18
+ var Analysis = (function (_super) {
19
+ __extends(Analysis, _super);
20
+ function Analysis() {
21
+ return _super !== null && _super.apply(this, arguments) || this;
22
+ }
23
+ return Analysis;
24
+ }(model_base_1.BaseModel));
25
+ exports.Analysis = Analysis;
@@ -0,0 +1,5 @@
1
+ import { Document } from 'mongoose';
2
+ export interface IMongooseDocument extends Document {
3
+ createdAt: Date;
4
+ updatedAt?: Date;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/models.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './api-calls/model/model';
2
+ export * from './analyses/model/model';
2
3
  export * from './earth-engine/model/model';
3
4
  export * from './files/model/model';
4
5
  export * from './migrations/model/model';
package/dist/models.js CHANGED
@@ -11,6 +11,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./api-calls/model/model"), exports);
14
+ __exportStar(require("./analyses/model/model"), exports);
14
15
  __exportStar(require("./earth-engine/model/model"), exports);
15
16
  __exportStar(require("./files/model/model"), exports);
16
17
  __exportStar(require("./migrations/model/model"), exports);
@@ -0,0 +1,4 @@
1
+ import { Reconciliation } from './model';
2
+ import { IMongooseDocument } from '../../db/mongoose.model';
3
+ export interface IReconciliationDocument extends Reconciliation, IMongooseDocument {
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { User } from './model';
2
+ import { IMongooseDocument } from '../../db/mongoose.model';
3
+ export interface IUserDocument extends User, IMongooseDocument {
4
+ verifyPassword: (password: string) => Promise<boolean>;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/api",
3
- "version": "0.14.4",
3
+ "version": "0.15.1",
4
4
  "description": "Hestia API definitions",
5
5
  "main": "dist/models.js",
6
6
  "typings": "dist/models.d.ts",
@@ -30,17 +30,17 @@
30
30
  "author": "Guillaume Royer <guillaumeroyer.mail@gmail.com>",
31
31
  "license": "UNLICENSED",
32
32
  "dependencies": {
33
- "@hestia-earth/schema": ">=11.0.0"
33
+ "@hestia-earth/schema": ">=12.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": "^11.0.0",
41
- "@hestia-earth/schema-convert": "^11.0.0",
42
- "@hestia-earth/schema-validation": "^11.0.0",
43
- "@hestia-earth/utils": "^0.10.26",
40
+ "@hestia-earth/json-schema": "^12.0.0",
41
+ "@hestia-earth/schema-convert": "^12.0.0",
42
+ "@hestia-earth/schema-validation": "^12.0.0",
43
+ "@hestia-earth/utils": "^0.10.27",
44
44
  "@mendeley/api": "^10.0.2",
45
45
  "@sentry/node": "^6.18.2",
46
46
  "@sentry/tracing": "^6.18.2",