@supernova-studio/client 0.48.0 → 0.48.2

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.48.0",
3
+ "version": "0.48.2",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,28 @@
1
+ import {
2
+ PageBlockColorV2,
3
+ PageBlockDefinition,
4
+ PageBlockDefinitionBehavior,
5
+ PageBlockDefinitionItem,
6
+ PageBlockDefinitionLayout,
7
+ PageBlockDefinitionProperty,
8
+ PageBlockDefinitionVariant,
9
+ } from "@supernova-studio/model";
10
+ import { z } from "zod";
11
+
12
+ export const DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
13
+ export const DTOPageBlockDefinitionItem = PageBlockDefinitionItem;
14
+ export const DTOPageBlockDefinitionLayout = PageBlockDefinitionLayout;
15
+ export const DTOPageBlockDefinitionVariant = PageBlockDefinitionVariant;
16
+ export const DTOPageBlockDefinitionProperty = PageBlockDefinitionProperty;
17
+ export const DTOPageBlockColorV2 = PageBlockColorV2;
18
+
19
+ export const DTOPageBlockDefinition = PageBlockDefinition;
20
+
21
+ export type DTOPageBlockDefinitionBehavior = z.infer<typeof DTOPageBlockDefinitionBehavior>;
22
+ export type DTOPageBlockDefinitionItem = z.infer<typeof DTOPageBlockDefinitionItem>;
23
+ export type DTOPageBlockDefinitionLayout = z.infer<typeof DTOPageBlockDefinitionLayout>;
24
+ export type DTOPageBlockDefinitionVariant = z.infer<typeof DTOPageBlockDefinitionVariant>;
25
+ export type DTOPageBlockDefinitionProperty = z.infer<typeof DTOPageBlockDefinitionProperty>;
26
+ export type DTOPageBlockColorV2 = z.infer<typeof DTOPageBlockColorV2>;
27
+
28
+ export type DTOPageBlockDefinition = z.infer<typeof DTOPageBlockDefinition>;
@@ -0,0 +1,6 @@
1
+ import { PageBlockItemV2 } from "@supernova-studio/model";
2
+ import { z } from "zod";
3
+
4
+ export const DTOPageBlockItemV2 = PageBlockItemV2;
5
+
6
+ export type DTOPageBlockItemV2 = z.infer<typeof DTOPageBlockItemV2>;
@@ -1,4 +1,6 @@
1
1
  export * from "./anchor";
2
+ export * from "./block-definition";
3
+ export * from "./block";
2
4
  export * from "./documentation-page-snapshot";
3
5
  export * from "./link-preview";
4
6
  export * from "./publish";
@@ -1,12 +1,12 @@
1
- import { PageBlockDefinition } from "@supernova-studio/model";
2
1
  import { z } from "zod";
2
+ import { DTOPageBlockDefinition } from "../../dto/documentation/block-definition";
3
3
 
4
4
  //
5
5
  // Read
6
6
  //
7
7
 
8
8
  export const DTOGetBlockDefinitionsOutput = z.object({
9
- definitions: z.array(PageBlockDefinition),
9
+ definitions: z.array(DTOPageBlockDefinition),
10
10
  });
11
11
 
12
12
  export type DTOGetBlockDefinitionsOutput = z.infer<typeof DTOGetBlockDefinitionsOutput>;