@supernova-studio/model 0.58.16 → 0.58.18
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 +39 -2
- package/dist/index.d.ts +39 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/liveblocks/rooms/room-type.ts +60 -1
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
export enum RoomTypeEnum {
|
|
4
|
-
|
|
4
|
+
DocumentationPageOld = "documentation-page",
|
|
5
|
+
DocumentationPage = "doc-page",
|
|
5
6
|
DesignSystemVersion = "design-system-version",
|
|
6
7
|
Workspace = "workspace",
|
|
7
8
|
}
|
|
@@ -10,3 +11,61 @@ export const RoomTypeSchema = z.nativeEnum(RoomTypeEnum);
|
|
|
10
11
|
|
|
11
12
|
export type RoomType = z.infer<typeof RoomTypeSchema>;
|
|
12
13
|
export const RoomType = RoomTypeSchema.enum;
|
|
14
|
+
|
|
15
|
+
//
|
|
16
|
+
// Room owners
|
|
17
|
+
//
|
|
18
|
+
|
|
19
|
+
export type WorkspaceRoomOwner = {
|
|
20
|
+
type: "Workspace";
|
|
21
|
+
workspaceId: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type VersionRoomOwner = {
|
|
25
|
+
type: "DesignSystemVersion";
|
|
26
|
+
workspaceId: string;
|
|
27
|
+
designSystemId: string;
|
|
28
|
+
designSystemVersionId: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type RoomOwner = WorkspaceRoomOwner | VersionRoomOwner;
|
|
32
|
+
|
|
33
|
+
//
|
|
34
|
+
// Room ids
|
|
35
|
+
//
|
|
36
|
+
|
|
37
|
+
export type WorkspaceParsedRoomId = {
|
|
38
|
+
type: RoomTypeEnum.Workspace;
|
|
39
|
+
raw: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type DesignSystemVersionParsedRoomId = {
|
|
43
|
+
type: RoomTypeEnum.DesignSystemVersion;
|
|
44
|
+
raw: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type DocumentationPageOldParsedRoomId = {
|
|
48
|
+
type: RoomTypeEnum.DocumentationPageOld;
|
|
49
|
+
raw: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type DocumentationPageParsedRoomId = {
|
|
53
|
+
type: RoomTypeEnum.DocumentationPage;
|
|
54
|
+
raw: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Id of DS version, cannot be a wildcard (always a specific ID)
|
|
58
|
+
*/
|
|
59
|
+
designSystemVersionId: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Documentation page persistent ID or wildcard `*`
|
|
63
|
+
*/
|
|
64
|
+
pagePersistentId: string;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export type ParsedRoomId =
|
|
68
|
+
| WorkspaceParsedRoomId
|
|
69
|
+
| DesignSystemVersionParsedRoomId
|
|
70
|
+
| DocumentationPageOldParsedRoomId
|
|
71
|
+
| DocumentationPageParsedRoomId;
|