@demind-inc/core 1.10.3 → 1.10.5
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.
- package/dist/constants.d.ts +0 -3
- package/dist/constants.js +0 -3
- package/dist/models/Preference.d.ts +12 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/types.d.ts +1 -1
- package/lib/constants.ts +0 -3
- package/lib/models/Preference.ts +25 -3
- package/lib/models/index.ts +0 -1
- package/lib/types.ts +5 -1
- package/package.json +1 -1
- package/dist/models/Team.d.ts +0 -46
- package/dist/models/Team.js +0 -2
- package/lib/models/Team.ts +0 -53
package/dist/constants.d.ts
CHANGED
|
@@ -44,9 +44,6 @@ 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;
|
|
50
47
|
EVENT_SERIES: string;
|
|
51
48
|
LOCATION: string;
|
|
52
49
|
WEATHER: string;
|
package/dist/constants.js
CHANGED
|
@@ -45,9 +45,6 @@ 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",
|
|
51
48
|
EVENT_SERIES: "eventSeries",
|
|
52
49
|
LOCATION: "location",
|
|
53
50
|
WEATHER: "weather",
|
|
@@ -61,14 +61,25 @@ export interface CalendarPreference {
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
export type SchedulerItemPrefType = keyof Pick<SchedulerPreference, "workTime" | "deepWork" | "lightWork" | "lunch" | "dinner" | "workout">;
|
|
64
|
+
export type AllPlanScheduleType = "meal" | "sleep" | "workout" | "todo" | "routine";
|
|
65
|
+
export type AllPlanAutoAcceptScheduleType = "meal" | "sleep" | "workout" | string;
|
|
66
|
+
export interface AllPlanSchedulerPref {
|
|
67
|
+
autoAcceptTypes?: {
|
|
68
|
+
[key in AllPlanAutoAcceptScheduleType]?: boolean;
|
|
69
|
+
};
|
|
70
|
+
includeTypes?: {
|
|
71
|
+
[key in AllPlanScheduleType]?: boolean;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
64
74
|
export interface SchedulerPreference {
|
|
65
75
|
workTime?: SchedulerItemPreference;
|
|
66
76
|
deepWork?: SchedulerItemPreference;
|
|
67
77
|
lightWork?: SchedulerItemPreference;
|
|
78
|
+
bufferMinutes?: number;
|
|
79
|
+
allPlan?: AllPlanSchedulerPref;
|
|
68
80
|
lunch?: SchedulerItemPreference;
|
|
69
81
|
dinner?: SchedulerItemPreference;
|
|
70
82
|
workout?: SchedulerItemPreference;
|
|
71
|
-
bufferMinutes?: number;
|
|
72
83
|
}
|
|
73
84
|
export interface MealPreference {
|
|
74
85
|
breakfast?: MealPreferenceItem;
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface HeatmapDataType {
|
|
|
25
25
|
phase?: CircadianPhase;
|
|
26
26
|
diff?: number;
|
|
27
27
|
}
|
|
28
|
-
export type ScheduledActionEventFrom = "existing_calendar" | "todo" | "activity";
|
|
28
|
+
export type ScheduledActionEventFrom = "existing_calendar" | "todo" | "activity" | "meal" | "sleep" | "routine" | "workout";
|
|
29
29
|
export interface ScheduledAction {
|
|
30
30
|
name: string;
|
|
31
31
|
id?: string;
|
package/lib/constants.ts
CHANGED
|
@@ -45,9 +45,6 @@ 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",
|
|
51
48
|
EVENT_SERIES: "eventSeries",
|
|
52
49
|
LOCATION: "location",
|
|
53
50
|
WEATHER: "weather",
|
package/lib/models/Preference.ts
CHANGED
|
@@ -74,14 +74,36 @@ export type SchedulerItemPrefType = keyof Pick<
|
|
|
74
74
|
"workTime" | "deepWork" | "lightWork" | "lunch" | "dinner" | "workout"
|
|
75
75
|
>;
|
|
76
76
|
|
|
77
|
+
export type AllPlanScheduleType =
|
|
78
|
+
| "meal"
|
|
79
|
+
| "sleep"
|
|
80
|
+
| "workout"
|
|
81
|
+
| "todo"
|
|
82
|
+
| "routine";
|
|
83
|
+
|
|
84
|
+
export type AllPlanAutoAcceptScheduleType =
|
|
85
|
+
| "meal"
|
|
86
|
+
| "sleep"
|
|
87
|
+
| "workout"
|
|
88
|
+
| string;
|
|
89
|
+
export interface AllPlanSchedulerPref {
|
|
90
|
+
autoAcceptTypes?: {
|
|
91
|
+
[key in AllPlanAutoAcceptScheduleType]?: boolean;
|
|
92
|
+
};
|
|
93
|
+
includeTypes?: {
|
|
94
|
+
[key in AllPlanScheduleType]?: boolean;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
77
98
|
export interface SchedulerPreference {
|
|
78
99
|
workTime?: SchedulerItemPreference;
|
|
79
100
|
deepWork?: SchedulerItemPreference;
|
|
80
101
|
lightWork?: SchedulerItemPreference;
|
|
81
|
-
lunch?: SchedulerItemPreference;
|
|
82
|
-
dinner?: SchedulerItemPreference;
|
|
83
|
-
workout?: SchedulerItemPreference;
|
|
84
102
|
bufferMinutes?: number;
|
|
103
|
+
allPlan?: AllPlanSchedulerPref;
|
|
104
|
+
lunch?: SchedulerItemPreference; // @deprecated
|
|
105
|
+
dinner?: SchedulerItemPreference; // @deprecated
|
|
106
|
+
workout?: SchedulerItemPreference; // @deprecated
|
|
85
107
|
}
|
|
86
108
|
|
|
87
109
|
export interface MealPreference {
|
package/lib/models/index.ts
CHANGED
package/lib/types.ts
CHANGED
|
@@ -85,7 +85,11 @@ export interface HeatmapDataType {
|
|
|
85
85
|
export type ScheduledActionEventFrom =
|
|
86
86
|
| "existing_calendar"
|
|
87
87
|
| "todo"
|
|
88
|
-
| "activity"
|
|
88
|
+
| "activity"
|
|
89
|
+
| "meal"
|
|
90
|
+
| "sleep"
|
|
91
|
+
| "routine"
|
|
92
|
+
| "workout";
|
|
89
93
|
|
|
90
94
|
export interface ScheduledAction {
|
|
91
95
|
name: string;
|
package/package.json
CHANGED
package/dist/models/Team.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
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";
|
package/dist/models/Team.js
DELETED
package/lib/models/Team.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
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";
|