@supernova-studio/client 1.0.0-alpha.12 → 1.0.0-alpha.13

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.d.mts CHANGED
@@ -1820,6 +1820,8 @@ type LocalDocsPage = OmitStrict<DocumentationPageV2, "id" | "userSlug"> & {
1820
1820
  type LocalDocsPageGroup = OmitStrict<ElementGroup, "id" | "brandPersistentId" | "childType" | "userSlug"> & {
1821
1821
  userSlug?: undefined;
1822
1822
  };
1823
+ type NarrowedUnion<T, U extends T> = U;
1824
+ type SupportedActionType = NarrowedUnion<DTOElementActionInput["type"], "DocumentationPageCreate" | "DocumentationPageUpdate" | "DocumentationPageDelete" | "DocumentationPageMove">;
1823
1825
 
1824
1826
  declare const DTOColorTokenInlineData: z.ZodObject<{
1825
1827
  value: z.ZodString;
@@ -96903,8 +96905,8 @@ declare class DocsStructureRepository {
96903
96905
  removeHierarchyObserver(observer: HierarchyObserver): void;
96904
96906
  dispose(): void;
96905
96907
  get currentHierarchy(): DTODocumentationHierarchyV2;
96906
- executeAction(action: DTOElementActionInput): void;
96907
- executeActionPromise(action: DTOElementActionInput): Promise<void>;
96908
+ executeAction(action: DTOElementActionInputOfType<SupportedActionType>): void;
96909
+ executeActionPromise(action: DTOElementActionInputOfType<SupportedActionType>): Promise<void>;
96908
96910
  private refreshHierarchy;
96909
96911
  private calculateHierarchy;
96910
96912
  private onYUpdate;
package/dist/index.d.ts CHANGED
@@ -1820,6 +1820,8 @@ type LocalDocsPage = OmitStrict<DocumentationPageV2, "id" | "userSlug"> & {
1820
1820
  type LocalDocsPageGroup = OmitStrict<ElementGroup, "id" | "brandPersistentId" | "childType" | "userSlug"> & {
1821
1821
  userSlug?: undefined;
1822
1822
  };
1823
+ type NarrowedUnion<T, U extends T> = U;
1824
+ type SupportedActionType = NarrowedUnion<DTOElementActionInput["type"], "DocumentationPageCreate" | "DocumentationPageUpdate" | "DocumentationPageDelete" | "DocumentationPageMove">;
1823
1825
 
1824
1826
  declare const DTOColorTokenInlineData: z.ZodObject<{
1825
1827
  value: z.ZodString;
@@ -96903,8 +96905,8 @@ declare class DocsStructureRepository {
96903
96905
  removeHierarchyObserver(observer: HierarchyObserver): void;
96904
96906
  dispose(): void;
96905
96907
  get currentHierarchy(): DTODocumentationHierarchyV2;
96906
- executeAction(action: DTOElementActionInput): void;
96907
- executeActionPromise(action: DTOElementActionInput): Promise<void>;
96908
+ executeAction(action: DTOElementActionInputOfType<SupportedActionType>): void;
96909
+ executeActionPromise(action: DTOElementActionInputOfType<SupportedActionType>): Promise<void>;
96908
96910
  private refreshHierarchy;
96909
96911
  private calculateHierarchy;
96910
96912
  private onYUpdate;