@supernova-studio/client 0.19.0 → 0.19.1
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 +251 -53
- package/dist/index.d.ts +251 -53
- package/dist/index.js +49 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/documentation/documentation-group-to-dto.ts +1 -0
- package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +1 -0
- package/src/api/dto/elements/documentation/group-action.ts +13 -0
- package/src/api/dto/elements/documentation/group.ts +9 -2
- package/src/api/dto/elements/documentation/page-actions-v2.ts +13 -0
- package/src/api/dto/elements/documentation/page-v2.ts +9 -2
- package/src/api/dto/elements/elements-action-v2.ts +8 -0
package/dist/index.mjs
CHANGED
|
@@ -3470,7 +3470,8 @@ function documentationPageToStructureDTOV2(page, pagePathMap) {
|
|
|
3470
3470
|
userSlug: page.userSlug,
|
|
3471
3471
|
createdAt: page.createdAt,
|
|
3472
3472
|
updatedAt: page.updatedAt,
|
|
3473
|
-
path
|
|
3473
|
+
path,
|
|
3474
|
+
type: "Page"
|
|
3474
3475
|
};
|
|
3475
3476
|
}
|
|
3476
3477
|
|
|
@@ -3508,7 +3509,8 @@ function elementGroupToDocumentationGroupStructureDTO(group, childrenIdsMap) {
|
|
|
3508
3509
|
childrenIds,
|
|
3509
3510
|
isRoot: !group.parentPersistentId,
|
|
3510
3511
|
groupBehavior: group.data?.behavior ?? "Group",
|
|
3511
|
-
shortPersistentId: group.shortPersistentId
|
|
3512
|
+
shortPersistentId: group.shortPersistentId,
|
|
3513
|
+
type: "Group"
|
|
3512
3514
|
};
|
|
3513
3515
|
}
|
|
3514
3516
|
function calculateChildrenIdsMap(elements, groups) {
|
|
@@ -3589,7 +3591,8 @@ var DTODocumentationGroupStructure = ElementGroup.omit({
|
|
|
3589
3591
|
isRoot: z126.boolean(),
|
|
3590
3592
|
childrenIds: z126.array(z126.string()),
|
|
3591
3593
|
groupBehavior: DocumentationGroupBehavior,
|
|
3592
|
-
shortPersistentId: z126.string()
|
|
3594
|
+
shortPersistentId: z126.string(),
|
|
3595
|
+
type: z126.literal("Group")
|
|
3593
3596
|
});
|
|
3594
3597
|
var DTODocumentationGroup = DTODocumentationGroupStructure.extend({
|
|
3595
3598
|
configuration: DocumentationItemConfiguration
|
|
@@ -3610,10 +3613,14 @@ var DTOUpdateDocumentationGroupInput = z126.object({
|
|
|
3610
3613
|
id: z126.string().uuid(),
|
|
3611
3614
|
// Group properties
|
|
3612
3615
|
title: z126.string().optional(),
|
|
3613
|
-
configuration: DocumentationItemConfiguration.optional()
|
|
3616
|
+
configuration: DocumentationItemConfiguration.optional()
|
|
3617
|
+
});
|
|
3618
|
+
var DTOMoveDocumentationGroupInput = z126.object({
|
|
3619
|
+
// Identifier of the group to update
|
|
3620
|
+
id: z126.string().uuid(),
|
|
3614
3621
|
// Group placement properties
|
|
3615
|
-
afterPersistentId: z126.string().uuid()
|
|
3616
|
-
parentPersistentId: z126.string().uuid()
|
|
3622
|
+
afterPersistentId: z126.string().uuid(),
|
|
3623
|
+
parentPersistentId: z126.string().uuid()
|
|
3617
3624
|
});
|
|
3618
3625
|
var DTODuplicateDocumentationGroupInput = z126.object({
|
|
3619
3626
|
// Identifier of the group to duplicate from
|
|
@@ -3654,6 +3661,10 @@ var DTODocumentationGroupUpdateActionOutputV2 = z127.object({
|
|
|
3654
3661
|
type: z127.literal("DocumentationGroupUpdate"),
|
|
3655
3662
|
output: SuccessPayload
|
|
3656
3663
|
});
|
|
3664
|
+
var DTODocumentationGroupMoveActionOutputV2 = z127.object({
|
|
3665
|
+
type: z127.literal("DocumentationGroupMove"),
|
|
3666
|
+
output: SuccessPayload
|
|
3667
|
+
});
|
|
3657
3668
|
var DTODocumentationGroupDuplicateActionOutputV2 = z127.object({
|
|
3658
3669
|
type: z127.literal("DocumentationGroupDuplicate"),
|
|
3659
3670
|
output: SuccessPayload
|
|
@@ -3670,6 +3681,10 @@ var DTODocumentationGroupUpdateActionInputV2 = z127.object({
|
|
|
3670
3681
|
type: z127.literal("DocumentationGroupUpdate"),
|
|
3671
3682
|
input: DTOUpdateDocumentationGroupInput
|
|
3672
3683
|
});
|
|
3684
|
+
var DTODocumentationGroupMoveActionInputV2 = z127.object({
|
|
3685
|
+
type: z127.literal("DocumentationGroupMove"),
|
|
3686
|
+
input: DTOMoveDocumentationGroupInput
|
|
3687
|
+
});
|
|
3673
3688
|
var DTODocumentationGroupDuplicateActionInputV2 = z127.object({
|
|
3674
3689
|
type: z127.literal("DocumentationGroupDuplicate"),
|
|
3675
3690
|
input: DTODuplicateDocumentationGroupInput
|
|
@@ -3691,7 +3706,8 @@ var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
|
|
|
3691
3706
|
sortOrder: true
|
|
3692
3707
|
}).extend({
|
|
3693
3708
|
title: z128.string(),
|
|
3694
|
-
path: z128.string()
|
|
3709
|
+
path: z128.string(),
|
|
3710
|
+
type: z128.literal("Page")
|
|
3695
3711
|
});
|
|
3696
3712
|
var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend({
|
|
3697
3713
|
configuration: DocumentationItemConfiguration
|
|
@@ -3715,10 +3731,14 @@ var DTOUpdateDocumentationPageInputV2 = z128.object({
|
|
|
3715
3731
|
id: z128.string(),
|
|
3716
3732
|
// Page properties
|
|
3717
3733
|
title: z128.string().optional(),
|
|
3718
|
-
configuration: DocumentationItemConfiguration.optional()
|
|
3734
|
+
configuration: DocumentationItemConfiguration.optional()
|
|
3735
|
+
});
|
|
3736
|
+
var DTOMoveDocumentationPageInputV2 = z128.object({
|
|
3737
|
+
// Identifier of the group to update
|
|
3738
|
+
id: z128.string(),
|
|
3719
3739
|
// Page placement properties
|
|
3720
|
-
parentPersistentId: z128.string().
|
|
3721
|
-
afterPersistentId: z128.string().
|
|
3740
|
+
parentPersistentId: z128.string().uuid(),
|
|
3741
|
+
afterPersistentId: z128.string().uuid()
|
|
3722
3742
|
});
|
|
3723
3743
|
var DTODuplicateDocumentationPageInputV2 = z128.object({
|
|
3724
3744
|
// Identifier of the page to duplicate from
|
|
@@ -3746,6 +3766,10 @@ var DTODocumentationPageUpdateActionOutputV2 = z129.object({
|
|
|
3746
3766
|
type: z129.literal("DocumentationPageUpdate"),
|
|
3747
3767
|
output: SuccessPayload2
|
|
3748
3768
|
});
|
|
3769
|
+
var DTODocumentationPageMoveActionOutputV2 = z129.object({
|
|
3770
|
+
type: z129.literal("DocumentationPageMove"),
|
|
3771
|
+
output: SuccessPayload2
|
|
3772
|
+
});
|
|
3749
3773
|
var DTODocumentationPageDuplicateActionOutputV2 = z129.object({
|
|
3750
3774
|
type: z129.literal("DocumentationPageDuplicate"),
|
|
3751
3775
|
output: SuccessPayload2
|
|
@@ -3762,6 +3786,10 @@ var DTODocumentationPageUpdateActionInputV2 = z129.object({
|
|
|
3762
3786
|
type: z129.literal("DocumentationPageUpdate"),
|
|
3763
3787
|
input: DTOUpdateDocumentationPageInputV2
|
|
3764
3788
|
});
|
|
3789
|
+
var DTODocumentationPageMoveActionInputV2 = z129.object({
|
|
3790
|
+
type: z129.literal("DocumentationPageMove"),
|
|
3791
|
+
input: DTOMoveDocumentationPageInputV2
|
|
3792
|
+
});
|
|
3765
3793
|
var DTODocumentationPageDuplicateActionInputV2 = z129.object({
|
|
3766
3794
|
type: z129.literal("DocumentationPageDuplicate"),
|
|
3767
3795
|
input: DTODuplicateDocumentationPageInputV2
|
|
@@ -3789,11 +3817,13 @@ var DTOElementActionOutput = z131.discriminatedUnion("type", [
|
|
|
3789
3817
|
// Documentation pages
|
|
3790
3818
|
DTODocumentationPageCreateActionOutputV2,
|
|
3791
3819
|
DTODocumentationPageUpdateActionOutputV2,
|
|
3820
|
+
DTODocumentationPageMoveActionOutputV2,
|
|
3792
3821
|
DTODocumentationPageDuplicateActionOutputV2,
|
|
3793
3822
|
DTODocumentationPageDeleteActionOutputV2,
|
|
3794
3823
|
// Documentation groups
|
|
3795
3824
|
DTODocumentationGroupCreateActionOutputV2,
|
|
3796
3825
|
DTODocumentationGroupUpdateActionOutputV2,
|
|
3826
|
+
DTODocumentationGroupMoveActionOutputV2,
|
|
3797
3827
|
DTODocumentationGroupDuplicateActionOutputV2,
|
|
3798
3828
|
DTODocumentationGroupDeleteActionOutputV2
|
|
3799
3829
|
]);
|
|
@@ -3801,11 +3831,13 @@ var DTOElementActionInput = z131.discriminatedUnion("type", [
|
|
|
3801
3831
|
// Documentation pages
|
|
3802
3832
|
DTODocumentationPageCreateActionInputV2,
|
|
3803
3833
|
DTODocumentationPageUpdateActionInputV2,
|
|
3834
|
+
DTODocumentationPageMoveActionInputV2,
|
|
3804
3835
|
DTODocumentationPageDuplicateActionInputV2,
|
|
3805
3836
|
DTODocumentationPageDeleteActionInputV2,
|
|
3806
3837
|
// Documentation groups
|
|
3807
3838
|
DTODocumentationGroupCreateActionInputV2,
|
|
3808
3839
|
DTODocumentationGroupUpdateActionInputV2,
|
|
3840
|
+
DTODocumentationGroupMoveActionInputV2,
|
|
3809
3841
|
DTODocumentationGroupDuplicateActionInputV2,
|
|
3810
3842
|
DTODocumentationGroupDeleteActionInputV2
|
|
3811
3843
|
]);
|
|
@@ -8069,6 +8101,8 @@ export {
|
|
|
8069
8101
|
DTODocumentationGroupDeleteActionOutputV2,
|
|
8070
8102
|
DTODocumentationGroupDuplicateActionInputV2,
|
|
8071
8103
|
DTODocumentationGroupDuplicateActionOutputV2,
|
|
8104
|
+
DTODocumentationGroupMoveActionInputV2,
|
|
8105
|
+
DTODocumentationGroupMoveActionOutputV2,
|
|
8072
8106
|
DTODocumentationGroupStructure,
|
|
8073
8107
|
DTODocumentationGroupUpdateActionInputV2,
|
|
8074
8108
|
DTODocumentationGroupUpdateActionOutputV2,
|
|
@@ -8079,6 +8113,8 @@ export {
|
|
|
8079
8113
|
DTODocumentationPageDeleteActionOutputV2,
|
|
8080
8114
|
DTODocumentationPageDuplicateActionInputV2,
|
|
8081
8115
|
DTODocumentationPageDuplicateActionOutputV2,
|
|
8116
|
+
DTODocumentationPageMoveActionInputV2,
|
|
8117
|
+
DTODocumentationPageMoveActionOutputV2,
|
|
8082
8118
|
DTODocumentationPageRoomHeaderData,
|
|
8083
8119
|
DTODocumentationPageRoomHeaderDataUpdate,
|
|
8084
8120
|
DTODocumentationPageStructureV2,
|
|
@@ -8091,6 +8127,8 @@ export {
|
|
|
8091
8127
|
DTOElementActionOutput,
|
|
8092
8128
|
DTOGetBlockDefinitionsOutput,
|
|
8093
8129
|
DTOLiveblocksAuthRequest,
|
|
8130
|
+
DTOMoveDocumentationGroupInput,
|
|
8131
|
+
DTOMoveDocumentationPageInputV2,
|
|
8094
8132
|
DTOUpdateDocumentationGroupInput,
|
|
8095
8133
|
DTOUpdateDocumentationPageInputV2,
|
|
8096
8134
|
DocumentationPageEditorModel,
|