@supernova-studio/client 0.20.1 → 0.21.1

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/client",
3
- "version": "0.20.1",
3
+ "version": "0.21.1",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -64,8 +64,8 @@ export const DTOMoveDocumentationGroupInput = z.object({
64
64
  id: z.string().uuid(),
65
65
 
66
66
  // Group placement properties
67
- afterPersistentId: z.string().uuid(),
68
67
  parentPersistentId: z.string().uuid(),
68
+ afterPersistentId: z.string().uuid().optional(),
69
69
  });
70
70
 
71
71
  export const DTODuplicateDocumentationGroupInput = z.object({
@@ -67,7 +67,7 @@ export const DTOMoveDocumentationPageInputV2 = z.object({
67
67
 
68
68
  // Page placement properties
69
69
  parentPersistentId: z.string().uuid(),
70
- afterPersistentId: z.string().uuid(),
70
+ afterPersistentId: z.string().uuid().optional(),
71
71
  });
72
72
 
73
73
  export const DTODuplicateDocumentationPageInputV2 = z.object({
@@ -361,7 +361,7 @@ function serializeTableNode(node: PageBlockItemTableNode): ProsemirrorNode {
361
361
  return {
362
362
  type: "image",
363
363
  attrs: {
364
- src: node.value?.url,
364
+ src: node.value?.resource?.url,
365
365
  },
366
366
  };
367
367
  }
@@ -392,8 +392,11 @@ function parseAsTableNode(prosemirrorNode: ProsemirrorNode): PageBlockItemTableN
392
392
  return {
393
393
  type: "Image",
394
394
  value: {
395
- type: "Upload",
396
- url: url,
395
+ type: "Resource",
396
+ resource: {
397
+ resourceId: "",
398
+ url: url,
399
+ },
397
400
  },
398
401
  };
399
402