@demind-inc/core 1.10.6 → 1.10.8

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.
@@ -44,6 +44,9 @@ export declare const DB_COLLECTION: {
44
44
  CHAT_TASK_SESSION: string;
45
45
  CHAT_GENERAL_SESSION: string;
46
46
  SHARED_ACCESS: string;
47
+ TEAMS: string;
48
+ TEAM_MEMBERS: string;
49
+ TEAM_INVITES: string;
47
50
  EVENT_SERIES: string;
48
51
  LOCATION: string;
49
52
  WEATHER: string;
package/dist/constants.js CHANGED
@@ -45,6 +45,9 @@ exports.DB_COLLECTION = {
45
45
  CHAT_TASK_SESSION: "taskSession",
46
46
  CHAT_GENERAL_SESSION: "generalSession",
47
47
  SHARED_ACCESS: "sharedAccess",
48
+ TEAMS: "teams",
49
+ TEAM_MEMBERS: "teamMembers",
50
+ TEAM_INVITES: "teamInvites",
48
51
  EVENT_SERIES: "eventSeries",
49
52
  LOCATION: "location",
50
53
  WEATHER: "weather",
@@ -0,0 +1,48 @@
1
+ export interface Team {
2
+ teamId: string;
3
+ name: string;
4
+ ownerUserId: string;
5
+ status: TeamStatus;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ archivedAt?: string;
9
+ }
10
+ export type TeamStatus = "active" | "archived";
11
+ export interface TeamMember {
12
+ teamMemberId: string;
13
+ teamId: string;
14
+ userId: string;
15
+ name?: string;
16
+ photoUrl?: string;
17
+ role: TeamRole;
18
+ status: TeamMemberStatus;
19
+ sharedCalendarIds: string[];
20
+ sharedTaskBoardIds: string[];
21
+ shareEnergy: boolean;
22
+ invitedByUserId?: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ leftAt?: string;
26
+ removedAt?: string;
27
+ removedByUserId?: string;
28
+ }
29
+ export type TeamRole = "owner" | "admin" | "member";
30
+ export type TeamMemberStatus = "active" | "left" | "removed";
31
+ export interface TeamInvite {
32
+ inviteId: string;
33
+ teamId: string;
34
+ email?: string;
35
+ inviteCode: string;
36
+ invitedByUserId: string;
37
+ role: TeamInviteRole;
38
+ status: TeamInviteStatus;
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ acceptedAt?: string;
42
+ acceptedByUserId?: string;
43
+ expiresAt?: string;
44
+ revokedAt?: string;
45
+ revokedByUserId?: string;
46
+ }
47
+ export type TeamInviteRole = "admin" | "member";
48
+ export type TeamInviteStatus = "pending" | "accepted" | "revoked";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,3 +16,4 @@ export * from "./Routine";
16
16
  export * from "./Chat";
17
17
  export * from "./SharedAccess";
18
18
  export * from "./RichContext";
19
+ export * from "./Team";
@@ -32,3 +32,4 @@ __exportStar(require("./Routine"), exports);
32
32
  __exportStar(require("./Chat"), exports);
33
33
  __exportStar(require("./SharedAccess"), exports);
34
34
  __exportStar(require("./RichContext"), exports);
35
+ __exportStar(require("./Team"), exports);
package/lib/constants.ts CHANGED
@@ -45,6 +45,9 @@ export const DB_COLLECTION = {
45
45
  CHAT_TASK_SESSION: "taskSession",
46
46
  CHAT_GENERAL_SESSION: "generalSession",
47
47
  SHARED_ACCESS: "sharedAccess",
48
+ TEAMS: "teams",
49
+ TEAM_MEMBERS: "teamMembers",
50
+ TEAM_INVITES: "teamInvites",
48
51
  EVENT_SERIES: "eventSeries",
49
52
  LOCATION: "location",
50
53
  WEATHER: "weather",
@@ -0,0 +1,55 @@
1
+ export interface Team {
2
+ teamId: string;
3
+ name: string;
4
+ ownerUserId: string;
5
+ status: TeamStatus;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ archivedAt?: string;
9
+ }
10
+
11
+ export type TeamStatus = "active" | "archived";
12
+
13
+ export interface TeamMember {
14
+ teamMemberId: string;
15
+ teamId: string;
16
+ userId: string;
17
+ name?: string;
18
+ photoUrl?: string;
19
+ role: TeamRole;
20
+ status: TeamMemberStatus;
21
+ sharedCalendarIds: string[];
22
+ sharedTaskBoardIds: string[];
23
+ shareEnergy: boolean;
24
+ invitedByUserId?: string;
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ leftAt?: string;
28
+ removedAt?: string;
29
+ removedByUserId?: string;
30
+ }
31
+
32
+ export type TeamRole = "owner" | "admin" | "member";
33
+
34
+ export type TeamMemberStatus = "active" | "left" | "removed";
35
+
36
+ export interface TeamInvite {
37
+ inviteId: string;
38
+ teamId: string;
39
+ email?: string;
40
+ inviteCode: string;
41
+ invitedByUserId: string;
42
+ role: TeamInviteRole;
43
+ status: TeamInviteStatus;
44
+ createdAt: string;
45
+ updatedAt: string;
46
+ acceptedAt?: string;
47
+ acceptedByUserId?: string;
48
+ expiresAt?: string;
49
+ revokedAt?: string;
50
+ revokedByUserId?: string;
51
+ }
52
+
53
+ export type TeamInviteRole = "admin" | "member";
54
+
55
+ export type TeamInviteStatus = "pending" | "accepted" | "revoked";
@@ -16,3 +16,4 @@ export * from "./Routine";
16
16
  export * from "./Chat";
17
17
  export * from "./SharedAccess";
18
18
  export * from "./RichContext";
19
+ export * from "./Team";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.10.6",
3
+ "version": "1.10.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {