@supernova-studio/client 0.49.0 → 0.49.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.49.0",
3
+ "version": "0.49.2",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -1,9 +1,9 @@
1
+ import { DocumentationPageApprovalState } from "@supernova-studio/model";
1
2
  import { z } from "zod";
3
+ import { DTODocumentationPageApprovalState } from "../../documentation";
2
4
  import { DTODocumentationDraftState } from "./draft-state";
3
5
  import { DTODocumentationItemConfigurationV2 } from "./item-configuration-v2";
4
6
  import { DTODocumentationPublishMetadata } from "./metadata";
5
- import { DocumentationPageApprovalState } from "@supernova-studio/model";
6
- import { DTODocumentationPageApprovalState } from "../../documentation";
7
7
 
8
8
  //
9
9
  // Read
@@ -107,7 +107,7 @@ export const DTORestoreDocumentationGroupInput = z.object({
107
107
 
108
108
  export const DTODocumentationPageApprovalStateChangeInput = z.object({
109
109
  persistentId: z.string(),
110
- approvalState: DocumentationPageApprovalState,
110
+ approvalState: DocumentationPageApprovalState.optional(),
111
111
  });
112
112
 
113
113
  export type DTOCreateDocumentationPageInputV2 = z.infer<typeof DTOCreateDocumentationPageInputV2>;