@supernova-studio/client 0.14.0 → 0.16.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/dist/index.mjs CHANGED
@@ -2720,7 +2720,7 @@ var DocumentationGroupDTO = DocumentationGroupStructureDTO.extend({
2720
2720
  });
2721
2721
 
2722
2722
  // src/api/dto/documentation-v2.ts
2723
- var DocumentationPageStructureV2DTO = DocumentationPageV2.omit({
2723
+ var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
2724
2724
  data: true,
2725
2725
  meta: true,
2726
2726
  parentPersistentId: true,
@@ -2729,9 +2729,9 @@ var DocumentationPageStructureV2DTO = DocumentationPageV2.omit({
2729
2729
  title: z128.string(),
2730
2730
  path: z128.string()
2731
2731
  });
2732
- var DocumentationPageV2DTO = DocumentationPageStructureV2DTO.extend(DocumentationPageV2.shape.data.shape);
2733
- var DocumentationHierarchyV2DTO = z128.object({
2734
- pages: z128.array(DocumentationPageStructureV2DTO),
2732
+ var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend(DocumentationPageV2.shape.data.shape);
2733
+ var DTODocumentationHierarchyV2 = z128.object({
2734
+ pages: z128.array(DTODocumentationPageStructureV2),
2735
2735
  groups: z128.array(DocumentationGroupStructureDTO)
2736
2736
  });
2737
2737
 
@@ -2757,14 +2757,14 @@ var DTODuplicateDocumentationPageInput = z129.object({
2757
2757
  parentPersistentId: z129.string().uuid(),
2758
2758
  afterPersistentId: z129.string().uuid().optional()
2759
2759
  });
2760
- var DTODocumentationTransactionInput = z129.object({
2760
+ var DTODocumentationElementsTransactionInput = z129.object({
2761
2761
  create: z129.array(DTOCreateDocumentationPageInput).optional(),
2762
2762
  update: z129.array(DTOUpdateDocumentationPageInput).optional(),
2763
2763
  duplicate: z129.array(DTODuplicateDocumentationPageInput).optional(),
2764
2764
  delete: z129.array(z129.string()).optional()
2765
2765
  });
2766
2766
  var DTOElementsTransactionInput = z129.object({
2767
- documentationPages: DTODocumentationTransactionInput
2767
+ documentationPages: DTODocumentationElementsTransactionInput
2768
2768
  });
2769
2769
 
2770
2770
  // src/api/requests/post-liveblocks-auth.ts
@@ -2804,7 +2804,7 @@ function yjsToDocumentationHierarchy(doc) {
2804
2804
  const groupsMap = getGroupsYMap(doc);
2805
2805
  const pages = [];
2806
2806
  pagesMap.forEach((page) => {
2807
- pages.push(DocumentationPageStructureV2DTO.parse(page));
2807
+ pages.push(DTODocumentationPageStructureV2.parse(page));
2808
2808
  });
2809
2809
  const groups = [];
2810
2810
  groupsMap.forEach((group) => {
@@ -6993,18 +6993,18 @@ export {
6993
6993
  BlockDefinitionUtils,
6994
6994
  BlockParsingUtils,
6995
6995
  DTOCreateDocumentationPageInput,
6996
- DTODocumentationTransactionInput,
6996
+ DTODocumentationElementsTransactionInput,
6997
+ DTODocumentationHierarchyV2,
6998
+ DTODocumentationPageStructureV2,
6999
+ DTODocumentationPageV2,
6997
7000
  DTODuplicateDocumentationPageInput,
6998
7001
  DTOElementsTransactionInput,
6999
7002
  DTOUpdateDocumentationPageInput,
7000
7003
  DesignSystemDTO,
7001
7004
  DocumentationGroupDTO,
7002
7005
  DocumentationGroupStructureDTO,
7003
- DocumentationHierarchyV2DTO,
7004
7006
  DocumentationPageEditorModel,
7005
- DocumentationPageStructureV2DTO,
7006
7007
  DocumentationPageV1DTO,
7007
- DocumentationPageV2DTO,
7008
7008
  GetBlockDefinitionsResponse,
7009
7009
  PageBlockEditorModel,
7010
7010
  PostLiveblocksAuth,