@supernova-studio/client 0.19.0 → 0.19.2
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 +82 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -43
- 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/src/yjs/design-system-content/documentation-hierarchy.ts +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -127,6 +127,27 @@ declare const DTODocumentationGroupUpdateActionOutputV2: z.ZodObject<{
|
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
129
|
type DTODocumentationGroupUpdateActionOutputV2 = z.infer<typeof DTODocumentationGroupUpdateActionOutputV2>;
|
|
130
|
+
declare const DTODocumentationGroupMoveActionOutputV2: z.ZodObject<{
|
|
131
|
+
type: z.ZodLiteral<"DocumentationGroupMove">;
|
|
132
|
+
output: z.ZodObject<{
|
|
133
|
+
success: z.ZodLiteral<true>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
success: true;
|
|
136
|
+
}, {
|
|
137
|
+
success: true;
|
|
138
|
+
}>;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
type: "DocumentationGroupMove";
|
|
141
|
+
output: {
|
|
142
|
+
success: true;
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
type: "DocumentationGroupMove";
|
|
146
|
+
output: {
|
|
147
|
+
success: true;
|
|
148
|
+
};
|
|
149
|
+
}>;
|
|
150
|
+
type DTODocumentationGroupMoveActionOutputV2 = z.infer<typeof DTODocumentationGroupMoveActionOutputV2>;
|
|
130
151
|
declare const DTODocumentationGroupDuplicateActionOutputV2: z.ZodObject<{
|
|
131
152
|
type: z.ZodLiteral<"DocumentationGroupDuplicate">;
|
|
132
153
|
output: z.ZodObject<{
|
|
@@ -1779,8 +1800,6 @@ declare const DTODocumentationGroupUpdateActionInputV2: z.ZodObject<{
|
|
|
1779
1800
|
minHeight?: number | null | undefined;
|
|
1780
1801
|
};
|
|
1781
1802
|
}>>;
|
|
1782
|
-
afterPersistentId: z.ZodOptional<z.ZodString>;
|
|
1783
|
-
parentPersistentId: z.ZodOptional<z.ZodString>;
|
|
1784
1803
|
}, "strip", z.ZodTypeAny, {
|
|
1785
1804
|
id: string;
|
|
1786
1805
|
title?: string | undefined;
|
|
@@ -1858,8 +1877,6 @@ declare const DTODocumentationGroupUpdateActionInputV2: z.ZodObject<{
|
|
|
1858
1877
|
minHeight?: number | null | undefined;
|
|
1859
1878
|
};
|
|
1860
1879
|
} | undefined;
|
|
1861
|
-
afterPersistentId?: string | undefined;
|
|
1862
|
-
parentPersistentId?: string | undefined;
|
|
1863
1880
|
}, {
|
|
1864
1881
|
id: string;
|
|
1865
1882
|
title?: string | undefined;
|
|
@@ -1937,8 +1954,6 @@ declare const DTODocumentationGroupUpdateActionInputV2: z.ZodObject<{
|
|
|
1937
1954
|
minHeight?: number | null | undefined;
|
|
1938
1955
|
};
|
|
1939
1956
|
} | undefined;
|
|
1940
|
-
afterPersistentId?: string | undefined;
|
|
1941
|
-
parentPersistentId?: string | undefined;
|
|
1942
1957
|
}>;
|
|
1943
1958
|
}, "strip", z.ZodTypeAny, {
|
|
1944
1959
|
type: "DocumentationGroupUpdate";
|
|
@@ -2019,8 +2034,6 @@ declare const DTODocumentationGroupUpdateActionInputV2: z.ZodObject<{
|
|
|
2019
2034
|
minHeight?: number | null | undefined;
|
|
2020
2035
|
};
|
|
2021
2036
|
} | undefined;
|
|
2022
|
-
afterPersistentId?: string | undefined;
|
|
2023
|
-
parentPersistentId?: string | undefined;
|
|
2024
2037
|
};
|
|
2025
2038
|
}, {
|
|
2026
2039
|
type: "DocumentationGroupUpdate";
|
|
@@ -2101,11 +2114,40 @@ declare const DTODocumentationGroupUpdateActionInputV2: z.ZodObject<{
|
|
|
2101
2114
|
minHeight?: number | null | undefined;
|
|
2102
2115
|
};
|
|
2103
2116
|
} | undefined;
|
|
2104
|
-
afterPersistentId?: string | undefined;
|
|
2105
|
-
parentPersistentId?: string | undefined;
|
|
2106
2117
|
};
|
|
2107
2118
|
}>;
|
|
2108
2119
|
type DTODocumentationGroupUpdateActionInputV2 = z.infer<typeof DTODocumentationGroupUpdateActionInputV2>;
|
|
2120
|
+
declare const DTODocumentationGroupMoveActionInputV2: z.ZodObject<{
|
|
2121
|
+
type: z.ZodLiteral<"DocumentationGroupMove">;
|
|
2122
|
+
input: z.ZodObject<{
|
|
2123
|
+
id: z.ZodString;
|
|
2124
|
+
afterPersistentId: z.ZodString;
|
|
2125
|
+
parentPersistentId: z.ZodString;
|
|
2126
|
+
}, "strip", z.ZodTypeAny, {
|
|
2127
|
+
id: string;
|
|
2128
|
+
parentPersistentId: string;
|
|
2129
|
+
afterPersistentId: string;
|
|
2130
|
+
}, {
|
|
2131
|
+
id: string;
|
|
2132
|
+
parentPersistentId: string;
|
|
2133
|
+
afterPersistentId: string;
|
|
2134
|
+
}>;
|
|
2135
|
+
}, "strip", z.ZodTypeAny, {
|
|
2136
|
+
type: "DocumentationGroupMove";
|
|
2137
|
+
input: {
|
|
2138
|
+
id: string;
|
|
2139
|
+
parentPersistentId: string;
|
|
2140
|
+
afterPersistentId: string;
|
|
2141
|
+
};
|
|
2142
|
+
}, {
|
|
2143
|
+
type: "DocumentationGroupMove";
|
|
2144
|
+
input: {
|
|
2145
|
+
id: string;
|
|
2146
|
+
parentPersistentId: string;
|
|
2147
|
+
afterPersistentId: string;
|
|
2148
|
+
};
|
|
2149
|
+
}>;
|
|
2150
|
+
type DTODocumentationGroupMoveActionInputV2 = z.infer<typeof DTODocumentationGroupMoveActionInputV2>;
|
|
2109
2151
|
declare const DTODocumentationGroupDuplicateActionInputV2: z.ZodObject<{
|
|
2110
2152
|
type: z.ZodLiteral<"DocumentationGroupDuplicate">;
|
|
2111
2153
|
input: z.ZodObject<{
|
|
@@ -2186,10 +2228,12 @@ declare const DTODocumentationGroupStructure: z.ZodObject<{
|
|
|
2186
2228
|
childrenIds: z.ZodArray<z.ZodString, "many">;
|
|
2187
2229
|
groupBehavior: z.ZodEnum<["Group", "Tabs"]>;
|
|
2188
2230
|
shortPersistentId: z.ZodString;
|
|
2231
|
+
type: z.ZodLiteral<"Group">;
|
|
2189
2232
|
}, "strip", z.ZodTypeAny, {
|
|
2190
2233
|
id: string;
|
|
2191
2234
|
createdAt: Date;
|
|
2192
2235
|
updatedAt: Date;
|
|
2236
|
+
type: "Group";
|
|
2193
2237
|
persistentId: string;
|
|
2194
2238
|
designSystemVersionId: string;
|
|
2195
2239
|
shortPersistentId: string;
|
|
@@ -2203,6 +2247,7 @@ declare const DTODocumentationGroupStructure: z.ZodObject<{
|
|
|
2203
2247
|
id: string;
|
|
2204
2248
|
createdAt: Date;
|
|
2205
2249
|
updatedAt: Date;
|
|
2250
|
+
type: "Group";
|
|
2206
2251
|
persistentId: string;
|
|
2207
2252
|
designSystemVersionId: string;
|
|
2208
2253
|
shortPersistentId: string;
|
|
@@ -2218,6 +2263,7 @@ declare const DTODocumentationGroup: z.ZodObject<{
|
|
|
2218
2263
|
id: z.ZodString;
|
|
2219
2264
|
createdAt: z.ZodDate;
|
|
2220
2265
|
updatedAt: z.ZodDate;
|
|
2266
|
+
type: z.ZodLiteral<"Group">;
|
|
2221
2267
|
persistentId: z.ZodString;
|
|
2222
2268
|
designSystemVersionId: z.ZodString;
|
|
2223
2269
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2865,6 +2911,7 @@ declare const DTODocumentationGroup: z.ZodObject<{
|
|
|
2865
2911
|
id: string;
|
|
2866
2912
|
createdAt: Date;
|
|
2867
2913
|
updatedAt: Date;
|
|
2914
|
+
type: "Group";
|
|
2868
2915
|
persistentId: string;
|
|
2869
2916
|
designSystemVersionId: string;
|
|
2870
2917
|
shortPersistentId: string;
|
|
@@ -2952,6 +2999,7 @@ declare const DTODocumentationGroup: z.ZodObject<{
|
|
|
2952
2999
|
id: string;
|
|
2953
3000
|
createdAt: Date;
|
|
2954
3001
|
updatedAt: Date;
|
|
3002
|
+
type: "Group";
|
|
2955
3003
|
persistentId: string;
|
|
2956
3004
|
designSystemVersionId: string;
|
|
2957
3005
|
shortPersistentId: string;
|
|
@@ -4476,8 +4524,6 @@ declare const DTOUpdateDocumentationGroupInput: z.ZodObject<{
|
|
|
4476
4524
|
minHeight?: number | null | undefined;
|
|
4477
4525
|
};
|
|
4478
4526
|
}>>;
|
|
4479
|
-
afterPersistentId: z.ZodOptional<z.ZodString>;
|
|
4480
|
-
parentPersistentId: z.ZodOptional<z.ZodString>;
|
|
4481
4527
|
}, "strip", z.ZodTypeAny, {
|
|
4482
4528
|
id: string;
|
|
4483
4529
|
title?: string | undefined;
|
|
@@ -4555,8 +4601,6 @@ declare const DTOUpdateDocumentationGroupInput: z.ZodObject<{
|
|
|
4555
4601
|
minHeight?: number | null | undefined;
|
|
4556
4602
|
};
|
|
4557
4603
|
} | undefined;
|
|
4558
|
-
afterPersistentId?: string | undefined;
|
|
4559
|
-
parentPersistentId?: string | undefined;
|
|
4560
4604
|
}, {
|
|
4561
4605
|
id: string;
|
|
4562
4606
|
title?: string | undefined;
|
|
@@ -4634,10 +4678,22 @@ declare const DTOUpdateDocumentationGroupInput: z.ZodObject<{
|
|
|
4634
4678
|
minHeight?: number | null | undefined;
|
|
4635
4679
|
};
|
|
4636
4680
|
} | undefined;
|
|
4637
|
-
afterPersistentId?: string | undefined;
|
|
4638
|
-
parentPersistentId?: string | undefined;
|
|
4639
4681
|
}>;
|
|
4640
4682
|
type DTOUpdateDocumentationGroupInput = z.infer<typeof DTOUpdateDocumentationGroupInput>;
|
|
4683
|
+
declare const DTOMoveDocumentationGroupInput: z.ZodObject<{
|
|
4684
|
+
id: z.ZodString;
|
|
4685
|
+
afterPersistentId: z.ZodString;
|
|
4686
|
+
parentPersistentId: z.ZodString;
|
|
4687
|
+
}, "strip", z.ZodTypeAny, {
|
|
4688
|
+
id: string;
|
|
4689
|
+
parentPersistentId: string;
|
|
4690
|
+
afterPersistentId: string;
|
|
4691
|
+
}, {
|
|
4692
|
+
id: string;
|
|
4693
|
+
parentPersistentId: string;
|
|
4694
|
+
afterPersistentId: string;
|
|
4695
|
+
}>;
|
|
4696
|
+
type DTOMoveDocumentationGroupInput = z.infer<typeof DTOMoveDocumentationGroupInput>;
|
|
4641
4697
|
declare const DTODuplicateDocumentationGroupInput: z.ZodObject<{
|
|
4642
4698
|
id: z.ZodString;
|
|
4643
4699
|
persistentId: z.ZodString;
|
|
@@ -4731,6 +4787,27 @@ declare const DTODocumentationPageUpdateActionOutputV2: z.ZodObject<{
|
|
|
4731
4787
|
};
|
|
4732
4788
|
}>;
|
|
4733
4789
|
type DTODocumentationPageUpdateActionOutputV2 = z.infer<typeof DTODocumentationPageUpdateActionOutputV2>;
|
|
4790
|
+
declare const DTODocumentationPageMoveActionOutputV2: z.ZodObject<{
|
|
4791
|
+
type: z.ZodLiteral<"DocumentationPageMove">;
|
|
4792
|
+
output: z.ZodObject<{
|
|
4793
|
+
success: z.ZodLiteral<true>;
|
|
4794
|
+
}, "strip", z.ZodTypeAny, {
|
|
4795
|
+
success: true;
|
|
4796
|
+
}, {
|
|
4797
|
+
success: true;
|
|
4798
|
+
}>;
|
|
4799
|
+
}, "strip", z.ZodTypeAny, {
|
|
4800
|
+
type: "DocumentationPageMove";
|
|
4801
|
+
output: {
|
|
4802
|
+
success: true;
|
|
4803
|
+
};
|
|
4804
|
+
}, {
|
|
4805
|
+
type: "DocumentationPageMove";
|
|
4806
|
+
output: {
|
|
4807
|
+
success: true;
|
|
4808
|
+
};
|
|
4809
|
+
}>;
|
|
4810
|
+
type DTODocumentationPageMoveActionOutputV2 = z.infer<typeof DTODocumentationPageMoveActionOutputV2>;
|
|
4734
4811
|
declare const DTODocumentationPageDuplicateActionOutputV2: z.ZodObject<{
|
|
4735
4812
|
type: z.ZodLiteral<"DocumentationPageDuplicate">;
|
|
4736
4813
|
output: z.ZodObject<{
|
|
@@ -6378,8 +6455,6 @@ declare const DTODocumentationPageUpdateActionInputV2: z.ZodObject<{
|
|
|
6378
6455
|
minHeight?: number | null | undefined;
|
|
6379
6456
|
};
|
|
6380
6457
|
}>>;
|
|
6381
|
-
parentPersistentId: z.ZodOptional<z.ZodString>;
|
|
6382
|
-
afterPersistentId: z.ZodOptional<z.ZodString>;
|
|
6383
6458
|
}, "strip", z.ZodTypeAny, {
|
|
6384
6459
|
id: string;
|
|
6385
6460
|
title?: string | undefined;
|
|
@@ -6457,8 +6532,6 @@ declare const DTODocumentationPageUpdateActionInputV2: z.ZodObject<{
|
|
|
6457
6532
|
minHeight?: number | null | undefined;
|
|
6458
6533
|
};
|
|
6459
6534
|
} | undefined;
|
|
6460
|
-
parentPersistentId?: string | undefined;
|
|
6461
|
-
afterPersistentId?: string | undefined;
|
|
6462
6535
|
}, {
|
|
6463
6536
|
id: string;
|
|
6464
6537
|
title?: string | undefined;
|
|
@@ -6536,8 +6609,6 @@ declare const DTODocumentationPageUpdateActionInputV2: z.ZodObject<{
|
|
|
6536
6609
|
minHeight?: number | null | undefined;
|
|
6537
6610
|
};
|
|
6538
6611
|
} | undefined;
|
|
6539
|
-
parentPersistentId?: string | undefined;
|
|
6540
|
-
afterPersistentId?: string | undefined;
|
|
6541
6612
|
}>;
|
|
6542
6613
|
}, "strip", z.ZodTypeAny, {
|
|
6543
6614
|
type: "DocumentationPageUpdate";
|
|
@@ -6618,8 +6689,6 @@ declare const DTODocumentationPageUpdateActionInputV2: z.ZodObject<{
|
|
|
6618
6689
|
minHeight?: number | null | undefined;
|
|
6619
6690
|
};
|
|
6620
6691
|
} | undefined;
|
|
6621
|
-
parentPersistentId?: string | undefined;
|
|
6622
|
-
afterPersistentId?: string | undefined;
|
|
6623
6692
|
};
|
|
6624
6693
|
}, {
|
|
6625
6694
|
type: "DocumentationPageUpdate";
|
|
@@ -6700,11 +6769,40 @@ declare const DTODocumentationPageUpdateActionInputV2: z.ZodObject<{
|
|
|
6700
6769
|
minHeight?: number | null | undefined;
|
|
6701
6770
|
};
|
|
6702
6771
|
} | undefined;
|
|
6703
|
-
parentPersistentId?: string | undefined;
|
|
6704
|
-
afterPersistentId?: string | undefined;
|
|
6705
6772
|
};
|
|
6706
6773
|
}>;
|
|
6707
6774
|
type DTODocumentationPageUpdateActionInputV2 = z.infer<typeof DTODocumentationPageUpdateActionInputV2>;
|
|
6775
|
+
declare const DTODocumentationPageMoveActionInputV2: z.ZodObject<{
|
|
6776
|
+
type: z.ZodLiteral<"DocumentationPageMove">;
|
|
6777
|
+
input: z.ZodObject<{
|
|
6778
|
+
id: z.ZodString;
|
|
6779
|
+
parentPersistentId: z.ZodString;
|
|
6780
|
+
afterPersistentId: z.ZodString;
|
|
6781
|
+
}, "strip", z.ZodTypeAny, {
|
|
6782
|
+
id: string;
|
|
6783
|
+
parentPersistentId: string;
|
|
6784
|
+
afterPersistentId: string;
|
|
6785
|
+
}, {
|
|
6786
|
+
id: string;
|
|
6787
|
+
parentPersistentId: string;
|
|
6788
|
+
afterPersistentId: string;
|
|
6789
|
+
}>;
|
|
6790
|
+
}, "strip", z.ZodTypeAny, {
|
|
6791
|
+
type: "DocumentationPageMove";
|
|
6792
|
+
input: {
|
|
6793
|
+
id: string;
|
|
6794
|
+
parentPersistentId: string;
|
|
6795
|
+
afterPersistentId: string;
|
|
6796
|
+
};
|
|
6797
|
+
}, {
|
|
6798
|
+
type: "DocumentationPageMove";
|
|
6799
|
+
input: {
|
|
6800
|
+
id: string;
|
|
6801
|
+
parentPersistentId: string;
|
|
6802
|
+
afterPersistentId: string;
|
|
6803
|
+
};
|
|
6804
|
+
}>;
|
|
6805
|
+
type DTODocumentationPageMoveActionInputV2 = z.infer<typeof DTODocumentationPageMoveActionInputV2>;
|
|
6708
6806
|
declare const DTODocumentationPageDuplicateActionInputV2: z.ZodObject<{
|
|
6709
6807
|
type: z.ZodLiteral<"DocumentationPageDuplicate">;
|
|
6710
6808
|
input: z.ZodObject<{
|
|
@@ -7608,6 +7706,7 @@ declare const DTODocumentationPageV2: z.ZodObject<{
|
|
|
7608
7706
|
createdAt: z.ZodDate;
|
|
7609
7707
|
updatedAt: z.ZodDate;
|
|
7610
7708
|
path: z.ZodString;
|
|
7709
|
+
type: z.ZodLiteral<"Page">;
|
|
7611
7710
|
persistentId: z.ZodString;
|
|
7612
7711
|
designSystemVersionId: z.ZodString;
|
|
7613
7712
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -8253,6 +8352,7 @@ declare const DTODocumentationPageV2: z.ZodObject<{
|
|
|
8253
8352
|
createdAt: Date;
|
|
8254
8353
|
updatedAt: Date;
|
|
8255
8354
|
path: string;
|
|
8355
|
+
type: "Page";
|
|
8256
8356
|
persistentId: string;
|
|
8257
8357
|
designSystemVersionId: string;
|
|
8258
8358
|
shortPersistentId: string;
|
|
@@ -8338,6 +8438,7 @@ declare const DTODocumentationPageV2: z.ZodObject<{
|
|
|
8338
8438
|
createdAt: Date;
|
|
8339
8439
|
updatedAt: Date;
|
|
8340
8440
|
path: string;
|
|
8441
|
+
type: "Page";
|
|
8341
8442
|
persistentId: string;
|
|
8342
8443
|
designSystemVersionId: string;
|
|
8343
8444
|
shortPersistentId: string;
|
|
@@ -8435,11 +8536,13 @@ declare const DTODocumentationPageStructureV2: z.ZodObject<{
|
|
|
8435
8536
|
shortPersistentId: z.ZodString;
|
|
8436
8537
|
title: z.ZodString;
|
|
8437
8538
|
path: z.ZodString;
|
|
8539
|
+
type: z.ZodLiteral<"Page">;
|
|
8438
8540
|
}, "strip", z.ZodTypeAny, {
|
|
8439
8541
|
id: string;
|
|
8440
8542
|
createdAt: Date;
|
|
8441
8543
|
updatedAt: Date;
|
|
8442
8544
|
path: string;
|
|
8545
|
+
type: "Page";
|
|
8443
8546
|
persistentId: string;
|
|
8444
8547
|
designSystemVersionId: string;
|
|
8445
8548
|
shortPersistentId: string;
|
|
@@ -8451,6 +8554,7 @@ declare const DTODocumentationPageStructureV2: z.ZodObject<{
|
|
|
8451
8554
|
createdAt: Date;
|
|
8452
8555
|
updatedAt: Date;
|
|
8453
8556
|
path: string;
|
|
8557
|
+
type: "Page";
|
|
8454
8558
|
persistentId: string;
|
|
8455
8559
|
designSystemVersionId: string;
|
|
8456
8560
|
shortPersistentId: string;
|
|
@@ -8471,11 +8575,13 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
|
|
|
8471
8575
|
shortPersistentId: z.ZodString;
|
|
8472
8576
|
title: z.ZodString;
|
|
8473
8577
|
path: z.ZodString;
|
|
8578
|
+
type: z.ZodLiteral<"Page">;
|
|
8474
8579
|
}, "strip", z.ZodTypeAny, {
|
|
8475
8580
|
id: string;
|
|
8476
8581
|
createdAt: Date;
|
|
8477
8582
|
updatedAt: Date;
|
|
8478
8583
|
path: string;
|
|
8584
|
+
type: "Page";
|
|
8479
8585
|
persistentId: string;
|
|
8480
8586
|
designSystemVersionId: string;
|
|
8481
8587
|
shortPersistentId: string;
|
|
@@ -8487,6 +8593,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
|
|
|
8487
8593
|
createdAt: Date;
|
|
8488
8594
|
updatedAt: Date;
|
|
8489
8595
|
path: string;
|
|
8596
|
+
type: "Page";
|
|
8490
8597
|
persistentId: string;
|
|
8491
8598
|
designSystemVersionId: string;
|
|
8492
8599
|
shortPersistentId: string;
|
|
@@ -8507,10 +8614,12 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
|
|
|
8507
8614
|
childrenIds: z.ZodArray<z.ZodString, "many">;
|
|
8508
8615
|
groupBehavior: z.ZodEnum<["Group", "Tabs"]>;
|
|
8509
8616
|
shortPersistentId: z.ZodString;
|
|
8617
|
+
type: z.ZodLiteral<"Group">;
|
|
8510
8618
|
}, "strip", z.ZodTypeAny, {
|
|
8511
8619
|
id: string;
|
|
8512
8620
|
createdAt: Date;
|
|
8513
8621
|
updatedAt: Date;
|
|
8622
|
+
type: "Group";
|
|
8514
8623
|
persistentId: string;
|
|
8515
8624
|
designSystemVersionId: string;
|
|
8516
8625
|
shortPersistentId: string;
|
|
@@ -8524,6 +8633,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
|
|
|
8524
8633
|
id: string;
|
|
8525
8634
|
createdAt: Date;
|
|
8526
8635
|
updatedAt: Date;
|
|
8636
|
+
type: "Group";
|
|
8527
8637
|
persistentId: string;
|
|
8528
8638
|
designSystemVersionId: string;
|
|
8529
8639
|
shortPersistentId: string;
|
|
@@ -8540,6 +8650,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
|
|
|
8540
8650
|
createdAt: Date;
|
|
8541
8651
|
updatedAt: Date;
|
|
8542
8652
|
path: string;
|
|
8653
|
+
type: "Page";
|
|
8543
8654
|
persistentId: string;
|
|
8544
8655
|
designSystemVersionId: string;
|
|
8545
8656
|
shortPersistentId: string;
|
|
@@ -8551,6 +8662,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
|
|
|
8551
8662
|
id: string;
|
|
8552
8663
|
createdAt: Date;
|
|
8553
8664
|
updatedAt: Date;
|
|
8665
|
+
type: "Group";
|
|
8554
8666
|
persistentId: string;
|
|
8555
8667
|
designSystemVersionId: string;
|
|
8556
8668
|
shortPersistentId: string;
|
|
@@ -8567,6 +8679,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
|
|
|
8567
8679
|
createdAt: Date;
|
|
8568
8680
|
updatedAt: Date;
|
|
8569
8681
|
path: string;
|
|
8682
|
+
type: "Page";
|
|
8570
8683
|
persistentId: string;
|
|
8571
8684
|
designSystemVersionId: string;
|
|
8572
8685
|
shortPersistentId: string;
|
|
@@ -8578,6 +8691,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
|
|
|
8578
8691
|
id: string;
|
|
8579
8692
|
createdAt: Date;
|
|
8580
8693
|
updatedAt: Date;
|
|
8694
|
+
type: "Group";
|
|
8581
8695
|
persistentId: string;
|
|
8582
8696
|
designSystemVersionId: string;
|
|
8583
8697
|
shortPersistentId: string;
|
|
@@ -10026,8 +10140,6 @@ declare const DTOUpdateDocumentationPageInputV2: z.ZodObject<{
|
|
|
10026
10140
|
minHeight?: number | null | undefined;
|
|
10027
10141
|
};
|
|
10028
10142
|
}>>;
|
|
10029
|
-
parentPersistentId: z.ZodOptional<z.ZodString>;
|
|
10030
|
-
afterPersistentId: z.ZodOptional<z.ZodString>;
|
|
10031
10143
|
}, "strip", z.ZodTypeAny, {
|
|
10032
10144
|
id: string;
|
|
10033
10145
|
title?: string | undefined;
|
|
@@ -10105,8 +10217,6 @@ declare const DTOUpdateDocumentationPageInputV2: z.ZodObject<{
|
|
|
10105
10217
|
minHeight?: number | null | undefined;
|
|
10106
10218
|
};
|
|
10107
10219
|
} | undefined;
|
|
10108
|
-
parentPersistentId?: string | undefined;
|
|
10109
|
-
afterPersistentId?: string | undefined;
|
|
10110
10220
|
}, {
|
|
10111
10221
|
id: string;
|
|
10112
10222
|
title?: string | undefined;
|
|
@@ -10184,10 +10294,22 @@ declare const DTOUpdateDocumentationPageInputV2: z.ZodObject<{
|
|
|
10184
10294
|
minHeight?: number | null | undefined;
|
|
10185
10295
|
};
|
|
10186
10296
|
} | undefined;
|
|
10187
|
-
parentPersistentId?: string | undefined;
|
|
10188
|
-
afterPersistentId?: string | undefined;
|
|
10189
10297
|
}>;
|
|
10190
10298
|
type DTOUpdateDocumentationPageInputV2 = z.infer<typeof DTOUpdateDocumentationPageInputV2>;
|
|
10299
|
+
declare const DTOMoveDocumentationPageInputV2: z.ZodObject<{
|
|
10300
|
+
id: z.ZodString;
|
|
10301
|
+
parentPersistentId: z.ZodString;
|
|
10302
|
+
afterPersistentId: z.ZodString;
|
|
10303
|
+
}, "strip", z.ZodTypeAny, {
|
|
10304
|
+
id: string;
|
|
10305
|
+
parentPersistentId: string;
|
|
10306
|
+
afterPersistentId: string;
|
|
10307
|
+
}, {
|
|
10308
|
+
id: string;
|
|
10309
|
+
parentPersistentId: string;
|
|
10310
|
+
afterPersistentId: string;
|
|
10311
|
+
}>;
|
|
10312
|
+
type DTOMoveDocumentationPageInputV2 = z.infer<typeof DTOMoveDocumentationPageInputV2>;
|
|
10191
10313
|
declare const DTODuplicateDocumentationPageInputV2: z.ZodObject<{
|
|
10192
10314
|
id: z.ZodString;
|
|
10193
10315
|
persistentId: z.ZodString;
|
|
@@ -10252,6 +10374,25 @@ declare const DTOElementActionOutput: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
10252
10374
|
output: {
|
|
10253
10375
|
success: true;
|
|
10254
10376
|
};
|
|
10377
|
+
}>, z.ZodObject<{
|
|
10378
|
+
type: z.ZodLiteral<"DocumentationPageMove">;
|
|
10379
|
+
output: z.ZodObject<{
|
|
10380
|
+
success: z.ZodLiteral<true>;
|
|
10381
|
+
}, "strip", z.ZodTypeAny, {
|
|
10382
|
+
success: true;
|
|
10383
|
+
}, {
|
|
10384
|
+
success: true;
|
|
10385
|
+
}>;
|
|
10386
|
+
}, "strip", z.ZodTypeAny, {
|
|
10387
|
+
type: "DocumentationPageMove";
|
|
10388
|
+
output: {
|
|
10389
|
+
success: true;
|
|
10390
|
+
};
|
|
10391
|
+
}, {
|
|
10392
|
+
type: "DocumentationPageMove";
|
|
10393
|
+
output: {
|
|
10394
|
+
success: true;
|
|
10395
|
+
};
|
|
10255
10396
|
}>, z.ZodObject<{
|
|
10256
10397
|
type: z.ZodLiteral<"DocumentationPageDuplicate">;
|
|
10257
10398
|
output: z.ZodObject<{
|
|
@@ -10328,6 +10469,25 @@ declare const DTOElementActionOutput: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
10328
10469
|
output: {
|
|
10329
10470
|
success: true;
|
|
10330
10471
|
};
|
|
10472
|
+
}>, z.ZodObject<{
|
|
10473
|
+
type: z.ZodLiteral<"DocumentationGroupMove">;
|
|
10474
|
+
output: z.ZodObject<{
|
|
10475
|
+
success: z.ZodLiteral<true>;
|
|
10476
|
+
}, "strip", z.ZodTypeAny, {
|
|
10477
|
+
success: true;
|
|
10478
|
+
}, {
|
|
10479
|
+
success: true;
|
|
10480
|
+
}>;
|
|
10481
|
+
}, "strip", z.ZodTypeAny, {
|
|
10482
|
+
type: "DocumentationGroupMove";
|
|
10483
|
+
output: {
|
|
10484
|
+
success: true;
|
|
10485
|
+
};
|
|
10486
|
+
}, {
|
|
10487
|
+
type: "DocumentationGroupMove";
|
|
10488
|
+
output: {
|
|
10489
|
+
success: true;
|
|
10490
|
+
};
|
|
10331
10491
|
}>, z.ZodObject<{
|
|
10332
10492
|
type: z.ZodLiteral<"DocumentationGroupDuplicate">;
|
|
10333
10493
|
output: z.ZodObject<{
|
|
@@ -11971,8 +12131,6 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
11971
12131
|
minHeight?: number | null | undefined;
|
|
11972
12132
|
};
|
|
11973
12133
|
}>>;
|
|
11974
|
-
parentPersistentId: z.ZodOptional<z.ZodString>;
|
|
11975
|
-
afterPersistentId: z.ZodOptional<z.ZodString>;
|
|
11976
12134
|
}, "strip", z.ZodTypeAny, {
|
|
11977
12135
|
id: string;
|
|
11978
12136
|
title?: string | undefined;
|
|
@@ -12050,8 +12208,6 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
12050
12208
|
minHeight?: number | null | undefined;
|
|
12051
12209
|
};
|
|
12052
12210
|
} | undefined;
|
|
12053
|
-
parentPersistentId?: string | undefined;
|
|
12054
|
-
afterPersistentId?: string | undefined;
|
|
12055
12211
|
}, {
|
|
12056
12212
|
id: string;
|
|
12057
12213
|
title?: string | undefined;
|
|
@@ -12129,8 +12285,6 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
12129
12285
|
minHeight?: number | null | undefined;
|
|
12130
12286
|
};
|
|
12131
12287
|
} | undefined;
|
|
12132
|
-
parentPersistentId?: string | undefined;
|
|
12133
|
-
afterPersistentId?: string | undefined;
|
|
12134
12288
|
}>;
|
|
12135
12289
|
}, "strip", z.ZodTypeAny, {
|
|
12136
12290
|
type: "DocumentationPageUpdate";
|
|
@@ -12211,8 +12365,6 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
12211
12365
|
minHeight?: number | null | undefined;
|
|
12212
12366
|
};
|
|
12213
12367
|
} | undefined;
|
|
12214
|
-
parentPersistentId?: string | undefined;
|
|
12215
|
-
afterPersistentId?: string | undefined;
|
|
12216
12368
|
};
|
|
12217
12369
|
}, {
|
|
12218
12370
|
type: "DocumentationPageUpdate";
|
|
@@ -12293,8 +12445,35 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
12293
12445
|
minHeight?: number | null | undefined;
|
|
12294
12446
|
};
|
|
12295
12447
|
} | undefined;
|
|
12296
|
-
|
|
12297
|
-
|
|
12448
|
+
};
|
|
12449
|
+
}>, z.ZodObject<{
|
|
12450
|
+
type: z.ZodLiteral<"DocumentationPageMove">;
|
|
12451
|
+
input: z.ZodObject<{
|
|
12452
|
+
id: z.ZodString;
|
|
12453
|
+
parentPersistentId: z.ZodString;
|
|
12454
|
+
afterPersistentId: z.ZodString;
|
|
12455
|
+
}, "strip", z.ZodTypeAny, {
|
|
12456
|
+
id: string;
|
|
12457
|
+
parentPersistentId: string;
|
|
12458
|
+
afterPersistentId: string;
|
|
12459
|
+
}, {
|
|
12460
|
+
id: string;
|
|
12461
|
+
parentPersistentId: string;
|
|
12462
|
+
afterPersistentId: string;
|
|
12463
|
+
}>;
|
|
12464
|
+
}, "strip", z.ZodTypeAny, {
|
|
12465
|
+
type: "DocumentationPageMove";
|
|
12466
|
+
input: {
|
|
12467
|
+
id: string;
|
|
12468
|
+
parentPersistentId: string;
|
|
12469
|
+
afterPersistentId: string;
|
|
12470
|
+
};
|
|
12471
|
+
}, {
|
|
12472
|
+
type: "DocumentationPageMove";
|
|
12473
|
+
input: {
|
|
12474
|
+
id: string;
|
|
12475
|
+
parentPersistentId: string;
|
|
12476
|
+
afterPersistentId: string;
|
|
12298
12477
|
};
|
|
12299
12478
|
}>, z.ZodObject<{
|
|
12300
12479
|
type: z.ZodLiteral<"DocumentationPageDuplicate">;
|
|
@@ -13957,8 +14136,6 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
13957
14136
|
minHeight?: number | null | undefined;
|
|
13958
14137
|
};
|
|
13959
14138
|
}>>;
|
|
13960
|
-
afterPersistentId: z.ZodOptional<z.ZodString>;
|
|
13961
|
-
parentPersistentId: z.ZodOptional<z.ZodString>;
|
|
13962
14139
|
}, "strip", z.ZodTypeAny, {
|
|
13963
14140
|
id: string;
|
|
13964
14141
|
title?: string | undefined;
|
|
@@ -14036,8 +14213,6 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
14036
14213
|
minHeight?: number | null | undefined;
|
|
14037
14214
|
};
|
|
14038
14215
|
} | undefined;
|
|
14039
|
-
afterPersistentId?: string | undefined;
|
|
14040
|
-
parentPersistentId?: string | undefined;
|
|
14041
14216
|
}, {
|
|
14042
14217
|
id: string;
|
|
14043
14218
|
title?: string | undefined;
|
|
@@ -14115,8 +14290,6 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
14115
14290
|
minHeight?: number | null | undefined;
|
|
14116
14291
|
};
|
|
14117
14292
|
} | undefined;
|
|
14118
|
-
afterPersistentId?: string | undefined;
|
|
14119
|
-
parentPersistentId?: string | undefined;
|
|
14120
14293
|
}>;
|
|
14121
14294
|
}, "strip", z.ZodTypeAny, {
|
|
14122
14295
|
type: "DocumentationGroupUpdate";
|
|
@@ -14197,8 +14370,6 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
14197
14370
|
minHeight?: number | null | undefined;
|
|
14198
14371
|
};
|
|
14199
14372
|
} | undefined;
|
|
14200
|
-
afterPersistentId?: string | undefined;
|
|
14201
|
-
parentPersistentId?: string | undefined;
|
|
14202
14373
|
};
|
|
14203
14374
|
}, {
|
|
14204
14375
|
type: "DocumentationGroupUpdate";
|
|
@@ -14279,8 +14450,35 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
14279
14450
|
minHeight?: number | null | undefined;
|
|
14280
14451
|
};
|
|
14281
14452
|
} | undefined;
|
|
14282
|
-
|
|
14283
|
-
|
|
14453
|
+
};
|
|
14454
|
+
}>, z.ZodObject<{
|
|
14455
|
+
type: z.ZodLiteral<"DocumentationGroupMove">;
|
|
14456
|
+
input: z.ZodObject<{
|
|
14457
|
+
id: z.ZodString;
|
|
14458
|
+
afterPersistentId: z.ZodString;
|
|
14459
|
+
parentPersistentId: z.ZodString;
|
|
14460
|
+
}, "strip", z.ZodTypeAny, {
|
|
14461
|
+
id: string;
|
|
14462
|
+
parentPersistentId: string;
|
|
14463
|
+
afterPersistentId: string;
|
|
14464
|
+
}, {
|
|
14465
|
+
id: string;
|
|
14466
|
+
parentPersistentId: string;
|
|
14467
|
+
afterPersistentId: string;
|
|
14468
|
+
}>;
|
|
14469
|
+
}, "strip", z.ZodTypeAny, {
|
|
14470
|
+
type: "DocumentationGroupMove";
|
|
14471
|
+
input: {
|
|
14472
|
+
id: string;
|
|
14473
|
+
parentPersistentId: string;
|
|
14474
|
+
afterPersistentId: string;
|
|
14475
|
+
};
|
|
14476
|
+
}, {
|
|
14477
|
+
type: "DocumentationGroupMove";
|
|
14478
|
+
input: {
|
|
14479
|
+
id: string;
|
|
14480
|
+
parentPersistentId: string;
|
|
14481
|
+
afterPersistentId: string;
|
|
14284
14482
|
};
|
|
14285
14483
|
}>, z.ZodObject<{
|
|
14286
14484
|
type: z.ZodLiteral<"DocumentationGroupDuplicate">;
|
|
@@ -17114,4 +17312,4 @@ declare const BlockDefinitionUtils: {
|
|
|
17114
17312
|
};
|
|
17115
17313
|
};
|
|
17116
17314
|
|
|
17117
|
-
export { BlockDefinitionUtils, BlockParsingUtils, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabGroupInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationGroup, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupStructure, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationHierarchyV2, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageStructureV2, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementActionOutput, DTOGetBlockDefinitionsOutput, DTOLiveblocksAuthRequest, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DocumentationPageEditorModel, DocumentationPageV1DTO, PageBlockEditorModel, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, blockDefinitionForBlock, blockToProsemirrorNode, buildDocPagePublishPaths, calculateElementParentChain, documentationElementsToHierarchyDto, documentationHierarchyToYjs, documentationPagesToDTOV1, documentationPagesToDTOV2, documentationPagesToStructureDTOV2, elementGroupsToDocumentationGroupDTO, elementGroupsToDocumentationGroupStructureDTO, getMockPageBlockDefinitions, itemConfigurationToYjs, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToBlock, serializeAsCustomBlock, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
|
|
17315
|
+
export { BlockDefinitionUtils, BlockParsingUtils, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabGroupInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationGroup, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupStructure, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationHierarchyV2, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageStructureV2, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementActionOutput, DTOGetBlockDefinitionsOutput, DTOLiveblocksAuthRequest, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DocumentationPageEditorModel, DocumentationPageV1DTO, PageBlockEditorModel, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, blockDefinitionForBlock, blockToProsemirrorNode, buildDocPagePublishPaths, calculateElementParentChain, documentationElementsToHierarchyDto, documentationHierarchyToYjs, documentationPagesToDTOV1, documentationPagesToDTOV2, documentationPagesToStructureDTOV2, elementGroupsToDocumentationGroupDTO, elementGroupsToDocumentationGroupStructureDTO, getMockPageBlockDefinitions, itemConfigurationToYjs, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToBlock, serializeAsCustomBlock, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
|