@demind-inc/core 1.10.5 → 1.10.7

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",
@@ -70,6 +70,13 @@ export interface AllPlanSchedulerPref {
70
70
  includeTypes?: {
71
71
  [key in AllPlanScheduleType]?: boolean;
72
72
  };
73
+ todo?: {
74
+ includeOverdueDatesBackward?: number;
75
+ skipReplanInCompletedPastTask?: boolean;
76
+ };
77
+ routine?: {
78
+ skipReplanInCompletedPastRoutine?: boolean;
79
+ };
73
80
  }
74
81
  export interface SchedulerPreference {
75
82
  workTime?: SchedulerItemPreference;
@@ -0,0 +1,46 @@
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
+ role: TeamRole;
16
+ status: TeamMemberStatus;
17
+ sharedCalendarIds: string[];
18
+ sharedTaskBoardIds: string[];
19
+ shareEnergy: boolean;
20
+ invitedByUserId?: string;
21
+ createdAt: string;
22
+ updatedAt: string;
23
+ leftAt?: string;
24
+ removedAt?: string;
25
+ removedByUserId?: string;
26
+ }
27
+ export type TeamRole = "owner" | "admin" | "member";
28
+ export type TeamMemberStatus = "active" | "left" | "removed";
29
+ export interface TeamInvite {
30
+ inviteId: string;
31
+ teamId: string;
32
+ email?: string;
33
+ inviteCode: string;
34
+ invitedByUserId: string;
35
+ role: TeamInviteRole;
36
+ status: TeamInviteStatus;
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ acceptedAt?: string;
40
+ acceptedByUserId?: string;
41
+ expiresAt?: string;
42
+ revokedAt?: string;
43
+ revokedByUserId?: string;
44
+ }
45
+ export type TeamInviteRole = "admin" | "member";
46
+ 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",
@@ -93,6 +93,13 @@ export interface AllPlanSchedulerPref {
93
93
  includeTypes?: {
94
94
  [key in AllPlanScheduleType]?: boolean;
95
95
  };
96
+ todo?: {
97
+ includeOverdueDatesBackward?: number; // The number of days to include overdue dates backward
98
+ skipReplanInCompletedPastTask?: boolean; // Whether to replan incompleted task today
99
+ };
100
+ routine?: {
101
+ skipReplanInCompletedPastRoutine?: boolean; // Whether to replan incompleted routine today
102
+ };
96
103
  }
97
104
 
98
105
  export interface SchedulerPreference {
@@ -0,0 +1,53 @@
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
+ 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
+
30
+ export type TeamRole = "owner" | "admin" | "member";
31
+
32
+ export type TeamMemberStatus = "active" | "left" | "removed";
33
+
34
+ export interface TeamInvite {
35
+ inviteId: string;
36
+ teamId: string;
37
+ email?: string;
38
+ inviteCode: string;
39
+ invitedByUserId: string;
40
+ role: TeamInviteRole;
41
+ status: TeamInviteStatus;
42
+ createdAt: string;
43
+ updatedAt: string;
44
+ acceptedAt?: string;
45
+ acceptedByUserId?: string;
46
+ expiresAt?: string;
47
+ revokedAt?: string;
48
+ revokedByUserId?: string;
49
+ }
50
+
51
+ export type TeamInviteRole = "admin" | "member";
52
+
53
+ 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.5",
3
+ "version": "1.10.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {