@rowengine/common 1.0.7 → 1.0.10
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/build/index.d.ts +1 -0
- package/build/index.js +17 -0
- package/build/interfaces/center.d.ts +4 -0
- package/build/interfaces/center.js +2 -0
- package/build/interfaces/company.d.ts +7 -0
- package/build/interfaces/company.js +2 -0
- package/build/interfaces/index.d.ts +4 -0
- package/build/interfaces/index.js +21 -0
- package/build/interfaces/project.d.ts +21 -0
- package/build/interfaces/project.js +11 -0
- package/build/interfaces/user.d.ts +17 -0
- package/build/interfaces/user.js +9 -0
- package/package.json +3 -3
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./interfaces";
|
package/build/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
//FORCE UPDATE
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Center } from "./center";
|
|
2
|
+
import { Company } from "./company";
|
|
3
|
+
import { User } from "./user";
|
|
4
|
+
export declare enum ProjectStatus {
|
|
5
|
+
FAILED = "FAILED",
|
|
6
|
+
PREPARING = "PREPARING",
|
|
7
|
+
PROCESSING = "PROCESSING",
|
|
8
|
+
READY = "READY",
|
|
9
|
+
DELETING = "DELETING"
|
|
10
|
+
}
|
|
11
|
+
export interface Project {
|
|
12
|
+
id: string;
|
|
13
|
+
user: User;
|
|
14
|
+
company: Company;
|
|
15
|
+
name: string;
|
|
16
|
+
status: ProjectStatus;
|
|
17
|
+
sizeInMbs: number;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
center?: Center;
|
|
20
|
+
area?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectStatus = void 0;
|
|
4
|
+
var ProjectStatus;
|
|
5
|
+
(function (ProjectStatus) {
|
|
6
|
+
ProjectStatus["FAILED"] = "FAILED";
|
|
7
|
+
ProjectStatus["PREPARING"] = "PREPARING";
|
|
8
|
+
ProjectStatus["PROCESSING"] = "PROCESSING";
|
|
9
|
+
ProjectStatus["READY"] = "READY";
|
|
10
|
+
ProjectStatus["DELETING"] = "DELETING";
|
|
11
|
+
})(ProjectStatus || (exports.ProjectStatus = ProjectStatus = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Company } from "./company";
|
|
2
|
+
export declare enum UserLevel {
|
|
3
|
+
Master = "master",
|
|
4
|
+
Manager = "manager",
|
|
5
|
+
Operator = "operator"
|
|
6
|
+
}
|
|
7
|
+
export interface User {
|
|
8
|
+
id: string;
|
|
9
|
+
email: string;
|
|
10
|
+
company: Company;
|
|
11
|
+
name: string;
|
|
12
|
+
level: UserLevel;
|
|
13
|
+
blocked: boolean;
|
|
14
|
+
password: string;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
createdBy: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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["Manager"] = "manager";
|
|
8
|
+
UserLevel["Operator"] = "operator";
|
|
9
|
+
})(UserLevel || (exports.UserLevel = UserLevel = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rowengine/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"build/**/*"
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
|
-
"clean": "rmdir /s /q .\\build",
|
|
30
|
-
"build": "npm run clean
|
|
29
|
+
"clean": "if exist .\\build rmdir /s /q .\\build",
|
|
30
|
+
"build": "npm run clean & tsc",
|
|
31
31
|
"pub": "git add . & git commit -m \"updated common package\" & npm version patch & npm run build & npm publish"
|
|
32
32
|
},
|
|
33
33
|
"author": "Leonardo Ribeiro",
|