@supernova-studio/model 0.46.13 → 0.47.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.
- package/dist/index.d.mts +1064 -1009
- package/dist/index.d.ts +1064 -1009
- package/dist/index.js +59 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1591 -1575
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/users/index.ts +1 -0
- package/src/users/user-notification-settings.ts +18 -0
- package/src/workspace/workspace-membership.ts +2 -0
package/package.json
CHANGED
package/src/users/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./linked-integrations";
|
|
|
2
2
|
export * from "./user-create";
|
|
3
3
|
export * from "./user-identity";
|
|
4
4
|
export * from "./user-minified";
|
|
5
|
+
export * from "./user-notification-settings";
|
|
5
6
|
export * from "./user-profile";
|
|
6
7
|
export * from "./user-test";
|
|
7
8
|
export * from "./user-with-pat";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
export const LiveblocksNotificationSettings = z.object({
|
|
4
|
+
sendCommentNotificationEmails: z.boolean(),
|
|
5
|
+
});
|
|
6
|
+
export type LiveblocksNotificationSettings = z.infer<typeof LiveblocksNotificationSettings>;
|
|
7
|
+
|
|
8
|
+
export const UserNotificationSettings = z.object({
|
|
9
|
+
liveblocksNotificationSettings: LiveblocksNotificationSettings,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export type UserNotificationSettings = z.infer<typeof UserNotificationSettings>;
|
|
13
|
+
|
|
14
|
+
export const defaultNotificationSettings: UserNotificationSettings = {
|
|
15
|
+
liveblocksNotificationSettings: {
|
|
16
|
+
sendCommentNotificationEmails: true,
|
|
17
|
+
}
|
|
18
|
+
} as const;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UserNotificationSettings } from "../users";
|
|
1
2
|
import { WorkspaceRole } from "./workspace-role";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
|
|
@@ -6,6 +7,7 @@ export const WorkspaceMembership = z.object({
|
|
|
6
7
|
userId: z.string(),
|
|
7
8
|
workspaceId: z.string(),
|
|
8
9
|
workspaceRole: z.nativeEnum(WorkspaceRole),
|
|
10
|
+
notificationSettings: UserNotificationSettings,
|
|
9
11
|
});
|
|
10
12
|
|
|
11
13
|
export type WorkspaceMembership = z.infer<typeof WorkspaceMembership>;
|