@taskora-uni/common 2.0.0 → 3.0.0

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 +1,4 @@
1
+ export * from "./project-role.enum";
1
2
  export * from "./rpc-status.enum";
3
+ export * from "./task-priority.enum";
4
+ export * from "./task-status-code.enum";
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./project-role.enum"), exports);
17
18
  __exportStar(require("./rpc-status.enum"), exports);
19
+ __exportStar(require("./task-priority.enum"), exports);
20
+ __exportStar(require("./task-status-code.enum"), exports);
@@ -0,0 +1,6 @@
1
+ export declare const ProjectRole: {
2
+ readonly MEMBER: "MEMBER";
3
+ readonly OBSERVER: "OBSERVER";
4
+ readonly MANAGER: "MANAGER";
5
+ };
6
+ export type ProjectRole = (typeof ProjectRole)[keyof typeof ProjectRole];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProjectRole = void 0;
4
+ exports.ProjectRole = {
5
+ MEMBER: "MEMBER",
6
+ OBSERVER: "OBSERVER",
7
+ MANAGER: "MANAGER",
8
+ };
@@ -0,0 +1,6 @@
1
+ export declare const TaskPriority: {
2
+ readonly LOW: "LOW";
3
+ readonly MEDIUM: "MEDIUM";
4
+ readonly HIGH: "HIGH";
5
+ };
6
+ export type TaskPriority = (typeof TaskPriority)[keyof typeof TaskPriority];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaskPriority = void 0;
4
+ exports.TaskPriority = {
5
+ LOW: "LOW",
6
+ MEDIUM: "MEDIUM",
7
+ HIGH: "HIGH",
8
+ };
@@ -0,0 +1,7 @@
1
+ export declare const TaskStatusCode: {
2
+ readonly TODO: "TODO";
3
+ readonly IN_PROGRESS: "IN_PROGRESS";
4
+ readonly TESTING: "TESTING";
5
+ readonly DONE: "DONE";
6
+ };
7
+ export type TaskStatusCode = (typeof TaskStatusCode)[keyof typeof TaskStatusCode];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaskStatusCode = void 0;
4
+ exports.TaskStatusCode = {
5
+ TODO: "TODO",
6
+ IN_PROGRESS: "IN_PROGRESS",
7
+ TESTING: "TESTING",
8
+ DONE: "DONE",
9
+ };
@@ -5,5 +5,6 @@ export declare const SystemRole: {
5
5
  export type SystemRole = (typeof SystemRole)[keyof typeof SystemRole];
6
6
  export interface AuthTokenPayload {
7
7
  id: string;
8
+ accountId: string;
8
9
  systemRole: SystemRole;
9
10
  }
@@ -0,0 +1 @@
1
+ export declare const sha256: (value: string) => string;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sha256 = void 0;
4
+ const crypto_1 = require("crypto");
5
+ const sha256 = (value) => (0, crypto_1.createHash)("sha256").update(value).digest("hex");
6
+ exports.sha256 = sha256;
@@ -1 +1,2 @@
1
1
  export * from "./timestamp.util";
2
+ export * from "./hash.util";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./timestamp.util"), exports);
18
+ __exportStar(require("./hash.util"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskora-uni/common",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Shared common modules for Taskora Uni backend services",
5
5
  "license": "MIT",
6
6
  "files": [