@taskora-uni/contracts 7.0.0 → 8.1.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 });
@@ -17,13 +17,12 @@ export interface ListUsersRequest {
17
17
  createdAtOrder?: SortOrder | undefined;
18
18
  }
19
19
  export interface User {
20
- id: string;
20
+ accountId: string;
21
21
  firstName: string;
22
22
  lastName: string;
23
23
  email: string;
24
24
  systemRole: SystemRole;
25
25
  createdAt: Timestamp | undefined;
26
- accountId: string;
27
26
  }
28
27
  export interface ListUsersResponse {
29
28
  users: User[];
@@ -35,6 +34,7 @@ export interface UserSummary {
35
34
  accountId: string;
36
35
  firstName: string;
37
36
  lastName: string;
37
+ email: string;
38
38
  }
39
39
  export interface GetUsersByAccountIdsResponse {
40
40
  users: UserSummary[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskora-uni/contracts",
3
- "version": "7.0.0",
3
+ "version": "8.1.0",
4
4
  "description": "Shared protobuf contracts and generated TypeScript bindings for Taskora Uni backend services.",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
package/proto/user.proto CHANGED
@@ -26,13 +26,12 @@ message ListUsersRequest {
26
26
  }
27
27
 
28
28
  message User {
29
- string id = 1;
29
+ string account_id = 1;
30
30
  string first_name = 2;
31
31
  string last_name = 3;
32
32
  string email = 4;
33
33
  SystemRole system_role = 5;
34
34
  google.protobuf.Timestamp created_at = 6;
35
- string account_id = 7;
36
35
  }
37
36
 
38
37
  message ListUsersResponse {
@@ -47,6 +46,7 @@ message UserSummary {
47
46
  string account_id = 1;
48
47
  string first_name = 2;
49
48
  string last_name = 3;
49
+ string email = 4;
50
50
  }
51
51
 
52
52
  message GetUsersByAccountIdsResponse {