@supernova-studio/model 0.58.18 → 1.0.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.58.18",
3
+ "version": "1.0.0-alpha.0",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +1,7 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  export enum RoomTypeEnum {
4
- DocumentationPageOld = "documentation-page",
5
- DocumentationPage = "doc-page",
4
+ DocumentationPage = "documentation-page",
6
5
  DesignSystemVersion = "design-system-version",
7
6
  Workspace = "workspace",
8
7
  }
@@ -11,61 +10,3 @@ export const RoomTypeSchema = z.nativeEnum(RoomTypeEnum);
11
10
 
12
11
  export type RoomType = z.infer<typeof RoomTypeSchema>;
13
12
  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;