@rowengine/common 1.0.164 → 1.1.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.
Files changed (61) hide show
  1. package/package.json +2 -2
  2. package/build/index.d.ts +0 -3
  3. package/build/index.js +0 -19
  4. package/build/interfaces/activity.d.ts +0 -46
  5. package/build/interfaces/activity.js +0 -18
  6. package/build/interfaces/bbox.d.ts +0 -6
  7. package/build/interfaces/bbox.js +0 -2
  8. package/build/interfaces/center.d.ts +0 -4
  9. package/build/interfaces/center.js +0 -2
  10. package/build/interfaces/company.d.ts +0 -12
  11. package/build/interfaces/company.js +0 -2
  12. package/build/interfaces/exportable.d.ts +0 -12
  13. package/build/interfaces/exportable.js +0 -12
  14. package/build/interfaces/field.d.ts +0 -19
  15. package/build/interfaces/field.js +0 -2
  16. package/build/interfaces/geojson.d.ts +0 -12
  17. package/build/interfaces/geojson.js +0 -2
  18. package/build/interfaces/grade.d.ts +0 -5
  19. package/build/interfaces/grade.js +0 -2
  20. package/build/interfaces/inboundedit.d.ts +0 -23
  21. package/build/interfaces/inboundedit.js +0 -2
  22. package/build/interfaces/index.d.ts +0 -17
  23. package/build/interfaces/index.js +0 -33
  24. package/build/interfaces/pixviewer-link.d.ts +0 -6
  25. package/build/interfaces/pixviewer-link.js +0 -2
  26. package/build/interfaces/project.d.ts +0 -102
  27. package/build/interfaces/project.js +0 -65
  28. package/build/interfaces/refund.d.ts +0 -11
  29. package/build/interfaces/refund.js +0 -2
  30. package/build/interfaces/reload.d.ts +0 -9
  31. package/build/interfaces/reload.js +0 -2
  32. package/build/interfaces/stagetimes.d.ts +0 -31
  33. package/build/interfaces/stagetimes.js +0 -2
  34. package/build/interfaces/transaction.d.ts +0 -19
  35. package/build/interfaces/transaction.js +0 -9
  36. package/build/interfaces/user.d.ts +0 -18
  37. package/build/interfaces/user.js +0 -10
  38. package/build/interfaces/weeds.d.ts +0 -47
  39. package/build/interfaces/weeds.js +0 -27
  40. package/build/models/activity.model.d.ts +0 -25
  41. package/build/models/activity.model.js +0 -83
  42. package/build/models/company.model.d.ts +0 -15
  43. package/build/models/company.model.js +0 -44
  44. package/build/models/index.d.ts +0 -8
  45. package/build/models/index.js +0 -24
  46. package/build/models/pixviewer-link.model.d.ts +0 -14
  47. package/build/models/pixviewer-link.model.js +0 -64
  48. package/build/models/project.model.d.ts +0 -26
  49. package/build/models/project.model.js +0 -138
  50. package/build/models/refund.model.d.ts +0 -18
  51. package/build/models/refund.model.js +0 -47
  52. package/build/models/reload.model.d.ts +0 -16
  53. package/build/models/reload.model.js +0 -49
  54. package/build/models/transaction.model.d.ts +0 -18
  55. package/build/models/transaction.model.js +0 -61
  56. package/build/models/user.model.d.ts +0 -19
  57. package/build/models/user.model.js +0 -119
  58. package/build/utils/grades.d.ts +0 -3
  59. package/build/utils/grades.js +0 -25
  60. package/build/utils/index.d.ts +0 -1
  61. package/build/utils/index.js +0 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowengine/common",
3
- "version": "1.0.164",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "private": false,
@@ -43,7 +43,7 @@
43
43
  "build/**/*"
44
44
  ],
45
45
  "scripts": {
46
- "clean": "if exist .\\build rmdir /s /q .\\build",
46
+ "clean": "rm -rf ./build",
47
47
  "build": "npm run clean & tsc",
48
48
  "pub": "git add . & git commit -m \"updated common package\" & npm version patch & npm run build & npm publish",
49
49
  "pub-linux": "rm -r /build ; npm run build ; git add . ; git commit -m \"updated common package\" ; npm version patch ; npm publish"
package/build/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './interfaces';
2
- export * from './utils';
3
- export * from './models';
package/build/index.js DELETED
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./interfaces"), exports);
18
- __exportStar(require("./utils"), exports);
19
- __exportStar(require("./models"), exports);
@@ -1,46 +0,0 @@
1
- import { Center } from './center';
2
- import { Company } from './company';
3
- import { Field } from './field';
4
- import { ServiceProvided } from './project';
5
- import { User } from './user';
6
- /**
7
- * If the activity has no status, it means that it was approved.
8
- * (Older versions of the project did not have this field).
9
- */
10
- export declare enum ActivityFinalStatus {
11
- /** Project still on process */
12
- PROCESSING = "PROCESSING",
13
- /** The provider rejected the entire project */
14
- REJECTED = "REJECTED",
15
- /** Project was a success. */
16
- APPROVED = "APPROVED",
17
- /** User project owner refused full edit and parcial result. */
18
- EDIT_REFUSED = "EDIT_REFUSED"
19
- }
20
- export interface Activity {
21
- id: string;
22
- user: User;
23
- company: Company;
24
- project: {
25
- id: string;
26
- name: string;
27
- grade?: number;
28
- fields?: Field[];
29
- area?: number;
30
- center?: Center;
31
- /**
32
- * The project final status.
33
- */
34
- finalStatus?: ActivityFinalStatus;
35
- /**
36
- * Processing time in seconds.
37
- */
38
- timeElapsed?: number;
39
- /**
40
- * Time spent on the queue in seconds.
41
- */
42
- timeOnQueue?: number;
43
- };
44
- serviceProvided?: ServiceProvided;
45
- createdAt: Date;
46
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActivityFinalStatus = void 0;
4
- /**
5
- * If the activity has no status, it means that it was approved.
6
- * (Older versions of the project did not have this field).
7
- */
8
- var ActivityFinalStatus;
9
- (function (ActivityFinalStatus) {
10
- /** Project still on process */
11
- ActivityFinalStatus["PROCESSING"] = "PROCESSING";
12
- /** The provider rejected the entire project */
13
- ActivityFinalStatus["REJECTED"] = "REJECTED";
14
- /** Project was a success. */
15
- ActivityFinalStatus["APPROVED"] = "APPROVED";
16
- /** User project owner refused full edit and parcial result. */
17
- ActivityFinalStatus["EDIT_REFUSED"] = "EDIT_REFUSED";
18
- })(ActivityFinalStatus || (exports.ActivityFinalStatus = ActivityFinalStatus = {}));
@@ -1,6 +0,0 @@
1
- export interface BBox {
2
- maxx: number;
3
- maxy: number;
4
- minx: number;
5
- miny: number;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export interface Center {
2
- lat: number;
3
- lng: number;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- export interface CompanyEditMode {
2
- canDownloadNP2: boolean;
3
- canUseTools: boolean;
4
- }
5
- export interface Company {
6
- id: string;
7
- name: string;
8
- blocked: boolean;
9
- createdAt: Date;
10
- createdBy: string;
11
- editMode?: CompanyEditMode;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- export declare enum ExportableType {
2
- GAPS_REPORT = "GAPS_REPORT",
3
- BETWEEN_ROWS = "BETWEEN_ROWS",
4
- TRAMPLING_REPORT = "TRAMPLING_REPORT",
5
- ROWS_REPORT = "ROWS_REPORT",
6
- PARALLELISM_POINTS = "PARALLELISM_POINTS",
7
- PERFORMANCE_REPORT = "PERFORMANCE_REPORT"
8
- }
9
- export interface Exportable {
10
- type: ExportableType;
11
- options: any;
12
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExportableType = void 0;
4
- var ExportableType;
5
- (function (ExportableType) {
6
- ExportableType["GAPS_REPORT"] = "GAPS_REPORT";
7
- ExportableType["BETWEEN_ROWS"] = "BETWEEN_ROWS";
8
- ExportableType["TRAMPLING_REPORT"] = "TRAMPLING_REPORT";
9
- ExportableType["ROWS_REPORT"] = "ROWS_REPORT";
10
- ExportableType["PARALLELISM_POINTS"] = "PARALLELISM_POINTS";
11
- ExportableType["PERFORMANCE_REPORT"] = "PERFORMANCE_REPORT";
12
- })(ExportableType || (exports.ExportableType = ExportableType = {}));
@@ -1,19 +0,0 @@
1
- import { Center } from './center';
2
- import { Grade } from './grade';
3
- import { Weeds } from './weeds';
4
- export interface FieldResult {
5
- success: boolean;
6
- quantity: number;
7
- length: number;
8
- }
9
- export interface Field {
10
- id: number;
11
- name: string;
12
- area: number;
13
- center: Center;
14
- gapsClass: number;
15
- grade?: Grade;
16
- rows?: FieldResult;
17
- gaps?: FieldResult;
18
- weeds?: Weeds;
19
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- export interface Feature {
2
- type: string;
3
- properties: any;
4
- geometry: {
5
- type: string;
6
- coordinates: number[] | number[][];
7
- };
8
- }
9
- export interface Geojson {
10
- type: string;
11
- features: Feature[];
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface Grade {
2
- geometric: number;
3
- cloudPoints: number;
4
- final: number;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,23 +0,0 @@
1
- import { Center } from "./center";
2
- export interface BoundReport {
3
- OVERLAPPED_VERTICES: number;
4
- REMOVED_BY_SIMPLIFICATION: number;
5
- ORIGINAL_NUM_VERTICES: number;
6
- FINAL_NUM_VERTICES: number;
7
- POLYGONS_BELOW_5M2: number;
8
- NR_FIELD_POLYGONS: number;
9
- NR_FIELDS_OBSTACLES: number;
10
- AREA_FIELD_POLYGONS_HA: number;
11
- OBSTACLE_AREA_HA: number;
12
- NUM_OBST_ABOVE_50P_POLYGON: number;
13
- NUM_INTERSECTIONS: number;
14
- VERTS_OVERLAP: number;
15
- }
16
- export interface InBoundEditResult {
17
- boundReport: BoundReport;
18
- area: number;
19
- center: Center;
20
- geojson: Object;
21
- isValid: boolean;
22
- errorsGj: Object | null;
23
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- export * from './company';
2
- export * from './user';
3
- export * from './center';
4
- export * from './project';
5
- export * from './geojson';
6
- export * from './field';
7
- export * from './stagetimes';
8
- export * from './bbox';
9
- export * from './reload';
10
- export * from './activity';
11
- export * from './pixviewer-link';
12
- export * from './exportable';
13
- export * from './grade';
14
- export * from './inboundedit';
15
- export * from './weeds';
16
- export * from './refund';
17
- export * from './transaction';
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./company"), exports);
18
- __exportStar(require("./user"), exports);
19
- __exportStar(require("./center"), exports);
20
- __exportStar(require("./project"), exports);
21
- __exportStar(require("./geojson"), exports);
22
- __exportStar(require("./field"), exports);
23
- __exportStar(require("./stagetimes"), exports);
24
- __exportStar(require("./bbox"), exports);
25
- __exportStar(require("./reload"), exports);
26
- __exportStar(require("./activity"), exports);
27
- __exportStar(require("./pixviewer-link"), exports);
28
- __exportStar(require("./exportable"), exports);
29
- __exportStar(require("./grade"), exports);
30
- __exportStar(require("./inboundedit"), exports);
31
- __exportStar(require("./weeds"), exports);
32
- __exportStar(require("./refund"), exports);
33
- __exportStar(require("./transaction"), exports);
@@ -1,6 +0,0 @@
1
- import { User } from "./user";
2
- export interface PixViewerLink {
3
- user: User;
4
- token: string;
5
- createdAt: Date;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,102 +0,0 @@
1
- import { BBox } from './bbox';
2
- import { Center } from './center';
3
- import { Company } from './company';
4
- import { Exportable } from './exportable';
5
- import { Field } from './field';
6
- import { User } from './user';
7
- export declare enum ProjectStatus {
8
- DELETING = "DELETING",
9
- PENDING_BOUNDARY = "PENDING_BOUNDARY",
10
- EDITING_BOUNDARY = "EDITING_BOUNDARY",
11
- PREPARING = "PREPARING",
12
- PROCESSING = "PROCESSING",
13
- FAILED = "FAILED",
14
- NOT_ENOUGH_CREDITS = "NOT_ENOUGH_CREDITS",
15
- READY = "READY",
16
- UPDATING_FILES = "UPDATING_FILES",// sent to send-local-files queue.
17
- REPROCESSING_GAPS = "REPROCESSING_GAPS"
18
- }
19
- export declare enum ProviderStatus {
20
- /** Project got out of exportables queue and now is waiting for analysis. */
21
- AWAITING_ANALYSIS = "AWAITING_ANALYSIS",
22
- /** The provider rejected the entire project */
23
- REJECTED = "REJECTED",
24
- /** The master/provider is editing the project. */
25
- EDITING = "EDITING",
26
- /** Edited or not, but the provider finished the job. */
27
- DONE = "DONE",
28
- /** Awaiting user to accept or reject a full edit by provider. */
29
- AWAITING_CONFIRMATION = "AWAITING_CONFIRMATION",
30
- /** User sent local files and we're updating the project files */
31
- UPDATING = "UPDATING",
32
- /** Owner of the project refused the full edit and partial result, project wont be charged */
33
- EDIT_REFUSED = "EDIT_REFUSED",
34
- /** Owner refused the full edit, but accepted the bot result. */
35
- PARTIAL_RESULT_ACCEPTED = "PARTIAL_RESULT_ACCEPTED"
36
- }
37
- export declare enum ProviderEditMode {
38
- FAST_EDIT = "FAST_EDIT",
39
- FULL_EDIT = "FULL_EDIT",
40
- NO_EDIT = "NO_EDIT"
41
- }
42
- export declare enum PixViewerStatus {
43
- SENDING = "SENDING",
44
- READY = "READY",
45
- FAILED = "FAILED",
46
- NOT_ENOUGH_SPACE = "NOT_ENOUGH_SPACE",
47
- WAITING_REPORTS = "WAITING_REPORTS"
48
- }
49
- export declare enum BonusExportableStatus {
50
- PENDING_ROWS = "PENDING_ROWS",
51
- AWAITING_CONFIRMATION = "AWAITING_CONFIRMATION",
52
- PROCESSING = "PROCESSING",
53
- READY = "READY",
54
- FAILED = "FAILED"
55
- }
56
- export declare enum HighlightType {
57
- DARK = "dark",
58
- BRIGHT = "bright",
59
- NONE = "none"
60
- }
61
- export interface ProjectBonusExportables {
62
- status: BonusExportableStatus;
63
- exportables: Exportable[];
64
- }
65
- export interface ServiceProvided {
66
- status: ProviderStatus;
67
- userEmail?: string;
68
- editMode?: ProviderEditMode;
69
- comment?: string;
70
- editStartedAt?: Date;
71
- editFinishedAt?: Date;
72
- }
73
- export interface GapsOptions {
74
- minSize: number;
75
- minActSize: number;
76
- lengthNoGapEdge: number;
77
- }
78
- export interface Project {
79
- id: string;
80
- user: User;
81
- company: Company;
82
- name: string;
83
- status: ProjectStatus;
84
- sizeInMbs: number;
85
- createdAt: Date;
86
- locale: 'pt-BR' | 'en' | 'es';
87
- spacement: number;
88
- gapsOptions: GapsOptions;
89
- isDoubleRow?: boolean;
90
- estimatedTimeInSeconds?: number;
91
- grade?: number;
92
- timeElapsedInSeconds?: number;
93
- center?: Center;
94
- area?: number;
95
- fields?: Field[];
96
- tilesBBox?: BBox;
97
- goodPointsPercentage?: number;
98
- highlightType?: HighlightType;
99
- bonusExportables?: ProjectBonusExportables;
100
- pixViewerStatus?: PixViewerStatus;
101
- serviceProvided?: ServiceProvided;
102
- }
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HighlightType = exports.BonusExportableStatus = exports.PixViewerStatus = exports.ProviderEditMode = exports.ProviderStatus = exports.ProjectStatus = void 0;
4
- /* STATUS TO SHOW TO THE USER */
5
- var ProjectStatus;
6
- (function (ProjectStatus) {
7
- ProjectStatus["DELETING"] = "DELETING";
8
- ProjectStatus["PENDING_BOUNDARY"] = "PENDING_BOUNDARY";
9
- ProjectStatus["EDITING_BOUNDARY"] = "EDITING_BOUNDARY";
10
- ProjectStatus["PREPARING"] = "PREPARING";
11
- ProjectStatus["PROCESSING"] = "PROCESSING";
12
- ProjectStatus["FAILED"] = "FAILED";
13
- ProjectStatus["NOT_ENOUGH_CREDITS"] = "NOT_ENOUGH_CREDITS";
14
- ProjectStatus["READY"] = "READY";
15
- ProjectStatus["UPDATING_FILES"] = "UPDATING_FILES";
16
- ProjectStatus["REPROCESSING_GAPS"] = "REPROCESSING_GAPS";
17
- })(ProjectStatus || (exports.ProjectStatus = ProjectStatus = {}));
18
- var ProviderStatus;
19
- (function (ProviderStatus) {
20
- /** Project got out of exportables queue and now is waiting for analysis. */
21
- ProviderStatus["AWAITING_ANALYSIS"] = "AWAITING_ANALYSIS";
22
- /** The provider rejected the entire project */
23
- ProviderStatus["REJECTED"] = "REJECTED";
24
- /** The master/provider is editing the project. */
25
- ProviderStatus["EDITING"] = "EDITING";
26
- /** Edited or not, but the provider finished the job. */
27
- ProviderStatus["DONE"] = "DONE";
28
- /** Awaiting user to accept or reject a full edit by provider. */
29
- ProviderStatus["AWAITING_CONFIRMATION"] = "AWAITING_CONFIRMATION";
30
- /** User sent local files and we're updating the project files */
31
- ProviderStatus["UPDATING"] = "UPDATING";
32
- /** Owner of the project refused the full edit and partial result, project wont be charged */
33
- ProviderStatus["EDIT_REFUSED"] = "EDIT_REFUSED";
34
- /** Owner refused the full edit, but accepted the bot result. */
35
- ProviderStatus["PARTIAL_RESULT_ACCEPTED"] = "PARTIAL_RESULT_ACCEPTED";
36
- })(ProviderStatus || (exports.ProviderStatus = ProviderStatus = {}));
37
- var ProviderEditMode;
38
- (function (ProviderEditMode) {
39
- ProviderEditMode["FAST_EDIT"] = "FAST_EDIT";
40
- ProviderEditMode["FULL_EDIT"] = "FULL_EDIT";
41
- ProviderEditMode["NO_EDIT"] = "NO_EDIT";
42
- })(ProviderEditMode || (exports.ProviderEditMode = ProviderEditMode = {}));
43
- var PixViewerStatus;
44
- (function (PixViewerStatus) {
45
- PixViewerStatus["SENDING"] = "SENDING";
46
- PixViewerStatus["READY"] = "READY";
47
- PixViewerStatus["FAILED"] = "FAILED";
48
- PixViewerStatus["NOT_ENOUGH_SPACE"] = "NOT_ENOUGH_SPACE";
49
- // Wil not be used anymore.
50
- PixViewerStatus["WAITING_REPORTS"] = "WAITING_REPORTS";
51
- })(PixViewerStatus || (exports.PixViewerStatus = PixViewerStatus = {}));
52
- var BonusExportableStatus;
53
- (function (BonusExportableStatus) {
54
- BonusExportableStatus["PENDING_ROWS"] = "PENDING_ROWS";
55
- BonusExportableStatus["AWAITING_CONFIRMATION"] = "AWAITING_CONFIRMATION";
56
- BonusExportableStatus["PROCESSING"] = "PROCESSING";
57
- BonusExportableStatus["READY"] = "READY";
58
- BonusExportableStatus["FAILED"] = "FAILED";
59
- })(BonusExportableStatus || (exports.BonusExportableStatus = BonusExportableStatus = {}));
60
- var HighlightType;
61
- (function (HighlightType) {
62
- HighlightType["DARK"] = "dark";
63
- HighlightType["BRIGHT"] = "bright";
64
- HighlightType["NONE"] = "none";
65
- })(HighlightType || (exports.HighlightType = HighlightType = {}));
@@ -1,11 +0,0 @@
1
- import { Activity } from './activity';
2
- import { Company } from './company';
3
- import { Reload } from './reload';
4
- export interface Refund {
5
- id: string;
6
- company: Company;
7
- value: number;
8
- fromActivity: Activity;
9
- reloadsInvolved: Reload[];
10
- createdAt: Date;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { Company } from "./company";
2
- export interface Reload {
3
- id: string;
4
- company: Company;
5
- value: number;
6
- availableValue: number;
7
- createdAt: Date;
8
- validUntil: Date;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +0,0 @@
1
- import { Company } from "./company";
2
- import { Project } from "./project";
3
- /**
4
- * Store the processing time for each executable/stage in seconds.
5
- */
6
- export interface PrepareTimes {
7
- fastClip: number;
8
- vegid: number;
9
- mask: number;
10
- }
11
- /**
12
- * Store the processing time for each executable/stage in seconds.
13
- */
14
- export interface ExportablesTimes {
15
- irserver: number;
16
- multrline: number;
17
- gaps: number;
18
- }
19
- /**
20
- * Store the processing time for each executable/stage
21
- * on the queues (in seconds).
22
- */
23
- export interface StageTimes {
24
- project: Project;
25
- company: Company;
26
- date: Date;
27
- area?: number;
28
- tiles: number;
29
- prepare?: PrepareTimes;
30
- exportables?: ExportablesTimes;
31
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- import { Company } from './company';
2
- export declare enum TransactionType {
3
- CREDITS_BOUGHT = "CREDITS_BOUGHT",
4
- CREDITS_DEBITED = "CREDITS_DEBITED",
5
- PROJECT_REFUNDED = "PROJECT_REFUNDED"
6
- }
7
- export interface TransactionProject {
8
- name: string;
9
- area: number;
10
- }
11
- export interface Transaction {
12
- company: Company;
13
- userEmail: string;
14
- currentBalance: number;
15
- value: number;
16
- type: TransactionType;
17
- project?: TransactionProject;
18
- createdAt: Date;
19
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionType = void 0;
4
- var TransactionType;
5
- (function (TransactionType) {
6
- TransactionType["CREDITS_BOUGHT"] = "CREDITS_BOUGHT";
7
- TransactionType["CREDITS_DEBITED"] = "CREDITS_DEBITED";
8
- TransactionType["PROJECT_REFUNDED"] = "PROJECT_REFUNDED";
9
- })(TransactionType || (exports.TransactionType = TransactionType = {}));
@@ -1,18 +0,0 @@
1
- import { Company } from "./company";
2
- export declare enum UserLevel {
3
- Master = "master",
4
- ServiceProvider = "service_provider",
5
- Manager = "manager",
6
- Operator = "operator"
7
- }
8
- export interface User {
9
- id: string;
10
- email: string;
11
- company: Company;
12
- name: string;
13
- level: UserLevel;
14
- blocked: boolean;
15
- password: string;
16
- createdAt: Date;
17
- createdBy: string;
18
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserLevel = void 0;
4
- var UserLevel;
5
- (function (UserLevel) {
6
- UserLevel["Master"] = "master";
7
- UserLevel["ServiceProvider"] = "service_provider";
8
- UserLevel["Manager"] = "manager";
9
- UserLevel["Operator"] = "operator";
10
- })(UserLevel || (exports.UserLevel = UserLevel = {}));