@supernova-studio/client 1.3.6 → 1.3.8
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 +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1824,7 +1824,7 @@ type LocalDocsPageGroup = OmitStrict<ElementGroup, "id" | "brandPersistentId" |
|
|
|
1824
1824
|
};
|
|
1825
1825
|
type LocalApproval = OmitStrict<DocumentationPageApproval, "id" | "pageId" | "persistentId">;
|
|
1826
1826
|
type NarrowedUnion<T, U extends T> = U;
|
|
1827
|
-
type SupportedActionType = NarrowedUnion<DTOElementActionInput["type"], "DocumentationPageCreate" | "DocumentationPageUpdate" | "DocumentationPageDelete" | "DocumentationPageMove" | "DocumentationGroupCreate" | "DocumentationGroupUpdate" | "
|
|
1827
|
+
type SupportedActionType = NarrowedUnion<DTOElementActionInput["type"], "DocumentationPageCreate" | "DocumentationPageUpdate" | "DocumentationPageDelete" | "DocumentationPageMove" | "DocumentationGroupCreate" | "DocumentationGroupUpdate" | "DocumentationGroupMove" | "DocumentationPageApprovalStateChange" | "DocumentationTabCreate">;
|
|
1828
1828
|
|
|
1829
1829
|
declare const DTOColorTokenInlineData: z.ZodObject<{
|
|
1830
1830
|
value: z.ZodString;
|
|
@@ -105131,7 +105131,6 @@ declare class LocalDocsElementActionExecutor {
|
|
|
105131
105131
|
private documentationGroupCreate;
|
|
105132
105132
|
private documentationGroupUpdate;
|
|
105133
105133
|
private documentationGroupMove;
|
|
105134
|
-
private documentationGroupDelete;
|
|
105135
105134
|
private documentationTabCreate;
|
|
105136
105135
|
private documentationApprovalStateUpdate;
|
|
105137
105136
|
private calculateSortOrder;
|
package/dist/index.d.ts
CHANGED
|
@@ -1824,7 +1824,7 @@ type LocalDocsPageGroup = OmitStrict<ElementGroup, "id" | "brandPersistentId" |
|
|
|
1824
1824
|
};
|
|
1825
1825
|
type LocalApproval = OmitStrict<DocumentationPageApproval, "id" | "pageId" | "persistentId">;
|
|
1826
1826
|
type NarrowedUnion<T, U extends T> = U;
|
|
1827
|
-
type SupportedActionType = NarrowedUnion<DTOElementActionInput["type"], "DocumentationPageCreate" | "DocumentationPageUpdate" | "DocumentationPageDelete" | "DocumentationPageMove" | "DocumentationGroupCreate" | "DocumentationGroupUpdate" | "
|
|
1827
|
+
type SupportedActionType = NarrowedUnion<DTOElementActionInput["type"], "DocumentationPageCreate" | "DocumentationPageUpdate" | "DocumentationPageDelete" | "DocumentationPageMove" | "DocumentationGroupCreate" | "DocumentationGroupUpdate" | "DocumentationGroupMove" | "DocumentationPageApprovalStateChange" | "DocumentationTabCreate">;
|
|
1828
1828
|
|
|
1829
1829
|
declare const DTOColorTokenInlineData: z.ZodObject<{
|
|
1830
1830
|
value: z.ZodString;
|
|
@@ -105131,7 +105131,6 @@ declare class LocalDocsElementActionExecutor {
|
|
|
105131
105131
|
private documentationGroupCreate;
|
|
105132
105132
|
private documentationGroupUpdate;
|
|
105133
105133
|
private documentationGroupMove;
|
|
105134
|
-
private documentationGroupDelete;
|
|
105135
105134
|
private documentationTabCreate;
|
|
105136
105135
|
private documentationApprovalStateUpdate;
|
|
105137
105136
|
private calculateSortOrder;
|
package/dist/index.js
CHANGED
|
@@ -13604,10 +13604,9 @@ var LocalDocsElementActionExecutor = class {
|
|
|
13604
13604
|
return this.documentationGroupCreate(trx);
|
|
13605
13605
|
case "DocumentationGroupUpdate":
|
|
13606
13606
|
return this.documentationGroupUpdate(trx);
|
|
13607
|
-
case "DocumentationGroupDelete":
|
|
13608
|
-
return this.documentationGroupDelete(trx);
|
|
13609
13607
|
case "DocumentationGroupMove":
|
|
13610
13608
|
return this.documentationGroupMove(trx);
|
|
13609
|
+
case "DocumentationGroupDelete":
|
|
13611
13610
|
case "DocumentationGroupDuplicate":
|
|
13612
13611
|
case "DocumentationGroupRestore":
|
|
13613
13612
|
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
@@ -13774,12 +13773,6 @@ var LocalDocsElementActionExecutor = class {
|
|
|
13774
13773
|
};
|
|
13775
13774
|
this.groups.set(localGroup.persistentId, localGroup);
|
|
13776
13775
|
}
|
|
13777
|
-
documentationGroupDelete(trx) {
|
|
13778
|
-
const { input } = trx;
|
|
13779
|
-
if (!this.groups.delete(trx.input.id)) {
|
|
13780
|
-
throw new Error(`Cannot delete group: group id ${input.id} was not found`);
|
|
13781
|
-
}
|
|
13782
|
-
}
|
|
13783
13776
|
//
|
|
13784
13777
|
// Tabs
|
|
13785
13778
|
//
|
|
@@ -13959,6 +13952,8 @@ var DocsStructureRepository = class {
|
|
|
13959
13952
|
try {
|
|
13960
13953
|
return await this.transactionExecutor(action.action);
|
|
13961
13954
|
} catch (e) {
|
|
13955
|
+
this.localActions = this.localActions.filter((a) => a.tId !== action.action.tId);
|
|
13956
|
+
this.refreshHierarchy();
|
|
13962
13957
|
this.errorObservers.forEach((o) => o(e, action.metadata));
|
|
13963
13958
|
}
|
|
13964
13959
|
}
|