@supernova-studio/client 0.48.6 → 0.48.7

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.6",
3
+ "version": "0.48.7",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -1,7 +1,9 @@
1
- import { PublishedDocEnvironment } from "@supernova-studio/model";
1
+ import { ExportJobDocumentationChanges, PublishedDocEnvironment } from "@supernova-studio/model";
2
2
  import { z } from "zod";
3
3
  import { DTOExportJob } from "../export";
4
4
 
5
+ export const DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
6
+
5
7
  export const DTOPublishDocumentationRequest = z.object({
6
8
  environment: PublishedDocEnvironment,
7
9
 
@@ -9,17 +11,13 @@ export const DTOPublishDocumentationRequest = z.object({
9
11
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
10
12
  * If undefined, everything will be published.
11
13
  */
12
- changes: z
13
- .object({
14
- pagePersistentIds: z.string().array(),
15
- groupPersistentIds: z.string().array(),
16
- })
17
- .optional(),
14
+ changes: DTOPublishDocumentationChanges.optional(),
18
15
  });
19
16
 
20
17
  export const DTOPublishDocumentationResponse = z.object({
21
18
  job: DTOExportJob,
22
19
  });
23
20
 
21
+ export type DTOPublishDocumentationChanges = z.infer<typeof DTOPublishDocumentationChanges>;
24
22
  export type DTOPublishDocumentationRequest = z.infer<typeof DTOPublishDocumentationRequest>;
25
23
  export type DTOPublishDocumentationResponse = z.infer<typeof DTOPublishDocumentationResponse>;