@taskora-uni/contracts 8.0.0 → 9.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,2 @@
1
1
  export * from "./auth";
2
+ export * from "./workspace";
@@ -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("./auth"), exports);
18
+ __exportStar(require("./workspace"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./patterns";
2
+ export * from "./payloads";
@@ -0,0 +1,18 @@
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("./patterns"), exports);
18
+ __exportStar(require("./payloads"), exports);
@@ -0,0 +1,4 @@
1
+ export declare const WORKSPACE_EVENT_PATTERNS: {
2
+ readonly PROJECT_MEMBER_ADDED: "workspace.project-member.added";
3
+ readonly TASK_ASSIGNED: "workspace.task.assigned";
4
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WORKSPACE_EVENT_PATTERNS = void 0;
4
+ exports.WORKSPACE_EVENT_PATTERNS = {
5
+ PROJECT_MEMBER_ADDED: "workspace.project-member.added",
6
+ TASK_ASSIGNED: "workspace.task.assigned",
7
+ };
@@ -0,0 +1 @@
1
+ export * from "./event-patterns";
@@ -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("./event-patterns"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./project-member-added.payload";
2
+ export * from "./task-assigned.payload";
@@ -0,0 +1,18 @@
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("./project-member-added.payload"), exports);
18
+ __exportStar(require("./task-assigned.payload"), exports);
@@ -0,0 +1,7 @@
1
+ export interface WorkspaceProjectMemberAddedPayload {
2
+ email: string;
3
+ recipientFirstName: string;
4
+ projectName: string;
5
+ projectDescription: string | null;
6
+ role: "MANAGER" | "MEMBER" | "OBSERVER";
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export interface WorkspaceTaskAssignedPayload {
2
+ email: string;
3
+ recipientFirstName: string;
4
+ taskName: string;
5
+ taskDescription: string | null;
6
+ priority: "HIGH" | "MEDIUM" | "LOW";
7
+ deadlineIso: string | null;
8
+ assignedByFullName: string;
9
+ projectName: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,6 +16,7 @@ export interface UpdateMyProfileRequest {
16
16
  lastName: string;
17
17
  }
18
18
  export interface Profile {
19
+ id: string;
19
20
  firstName: string;
20
21
  lastName: string;
21
22
  email: string;
@@ -34,6 +34,7 @@ export interface UserSummary {
34
34
  accountId: string;
35
35
  firstName: string;
36
36
  lastName: string;
37
+ email: string;
37
38
  }
38
39
  export interface GetUsersByAccountIdsResponse {
39
40
  users: UserSummary[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskora-uni/contracts",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "description": "Shared protobuf contracts and generated TypeScript bindings for Taskora Uni backend services.",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -26,9 +26,10 @@ message UpdateMyProfileRequest {
26
26
  }
27
27
 
28
28
  message Profile {
29
- string first_name = 1;
30
- string last_name = 2;
31
- string email = 3;
32
- SystemRole system_role = 4;
33
- google.protobuf.Timestamp created_at = 5;
29
+ string id = 1;
30
+ string first_name = 2;
31
+ string last_name = 3;
32
+ string email = 4;
33
+ SystemRole system_role = 5;
34
+ google.protobuf.Timestamp created_at = 6;
34
35
  }
package/proto/user.proto CHANGED
@@ -46,6 +46,7 @@ message UserSummary {
46
46
  string account_id = 1;
47
47
  string first_name = 2;
48
48
  string last_name = 3;
49
+ string email = 4;
49
50
  }
50
51
 
51
52
  message GetUsersByAccountIdsResponse {