@supernova-studio/client 1.6.0 → 1.6.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 +1463 -612
- package/dist/index.d.ts +1463 -612
- package/dist/index.js +376 -222
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +959 -805
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -637,25 +637,41 @@ var Asset = z22.object({
|
|
|
637
637
|
var ResolvedAsset = Asset.extend({
|
|
638
638
|
url: z22.string()
|
|
639
639
|
});
|
|
640
|
-
var
|
|
641
|
-
"
|
|
642
|
-
"
|
|
643
|
-
"
|
|
644
|
-
"
|
|
645
|
-
"
|
|
646
|
-
"
|
|
647
|
-
"
|
|
640
|
+
var CodeComponentResolvedTypeKind = z23.enum([
|
|
641
|
+
"string",
|
|
642
|
+
"number",
|
|
643
|
+
"numberLiteral",
|
|
644
|
+
"boolean",
|
|
645
|
+
"booleanLiteral",
|
|
646
|
+
"object",
|
|
647
|
+
"function",
|
|
648
|
+
"stringLiteral",
|
|
649
|
+
"union",
|
|
650
|
+
"slot",
|
|
651
|
+
"null",
|
|
652
|
+
"undefined",
|
|
653
|
+
"any"
|
|
648
654
|
]);
|
|
649
|
-
var
|
|
650
|
-
|
|
651
|
-
|
|
655
|
+
var CodeComponentResolvedType = z23.lazy(
|
|
656
|
+
() => z23.object({
|
|
657
|
+
kind: CodeComponentResolvedTypeKind,
|
|
658
|
+
raw: z23.string().optional(),
|
|
659
|
+
types: z23.array(CodeComponentResolvedType).optional(),
|
|
660
|
+
isArray: z23.boolean().optional()
|
|
661
|
+
})
|
|
662
|
+
);
|
|
663
|
+
var CodeComponentParentType = z23.object({
|
|
664
|
+
fileName: z23.string(),
|
|
665
|
+
name: z23.string()
|
|
652
666
|
});
|
|
653
667
|
var CodeComponentProperty = z23.object({
|
|
654
|
-
control: CodeComponentPropertyControl,
|
|
655
668
|
defaultValue: z23.string().optional(),
|
|
656
669
|
name: z23.string(),
|
|
657
670
|
required: z23.boolean(),
|
|
658
|
-
type:
|
|
671
|
+
type: CodeComponentResolvedType,
|
|
672
|
+
declarations: z23.array(CodeComponentParentType).optional(),
|
|
673
|
+
tags: z23.record(z23.string(), z23.string()).optional(),
|
|
674
|
+
description: z23.string()
|
|
659
675
|
});
|
|
660
676
|
var CodeComponent = z23.object({
|
|
661
677
|
id: z23.string(),
|
|
@@ -664,7 +680,15 @@ var CodeComponent = z23.object({
|
|
|
664
680
|
createdAt: z23.coerce.date(),
|
|
665
681
|
updatedAt: z23.coerce.date(),
|
|
666
682
|
exportName: z23.string(),
|
|
667
|
-
|
|
683
|
+
componentPath: z23.string(),
|
|
684
|
+
description: z23.string(),
|
|
685
|
+
properties: z23.record(z23.string(), CodeComponentProperty),
|
|
686
|
+
tags: z23.record(z23.string(), z23.string()).optional()
|
|
687
|
+
});
|
|
688
|
+
var CodeComponentUpsertResponse = z23.object({
|
|
689
|
+
created: z23.number().nonnegative(),
|
|
690
|
+
updated: z23.number().nonnegative(),
|
|
691
|
+
deleted: z23.number().nonnegative()
|
|
668
692
|
});
|
|
669
693
|
var FigmaFileDownloadScope = z24.object({
|
|
670
694
|
styles: z24.boolean(),
|
|
@@ -921,6 +945,9 @@ function groupBy(items, keyFn) {
|
|
|
921
945
|
}
|
|
922
946
|
return result;
|
|
923
947
|
}
|
|
948
|
+
function nonNullishFilter(item) {
|
|
949
|
+
return !!item;
|
|
950
|
+
}
|
|
924
951
|
function areShallowObjectsEqual(lhs, rhs) {
|
|
925
952
|
if (lhs === void 0 !== (rhs === void 0)) return false;
|
|
926
953
|
if (lhs === void 0 || rhs === void 0) return true;
|
|
@@ -3777,24 +3804,19 @@ var DocumentationLinkPreview = z110.object({
|
|
|
3777
3804
|
description: z110.string().optional(),
|
|
3778
3805
|
thumbnail: PageBlockImageReference.optional()
|
|
3779
3806
|
});
|
|
3780
|
-
var
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
});
|
|
3794
|
-
var DocumentationPageAnchor = z112.object({
|
|
3795
|
-
blockId: z112.string(),
|
|
3796
|
-
level: z112.number(),
|
|
3797
|
-
text: z112.string()
|
|
3807
|
+
var DocumentationPageAnchor = z111.object({
|
|
3808
|
+
blockId: z111.string(),
|
|
3809
|
+
level: z111.number(),
|
|
3810
|
+
text: z111.string()
|
|
3811
|
+
});
|
|
3812
|
+
var DocumentationPageContentBackup = z112.object({
|
|
3813
|
+
id: z112.string(),
|
|
3814
|
+
designSystemVersionId: z112.string(),
|
|
3815
|
+
createdAt: z112.coerce.date(),
|
|
3816
|
+
updatedAt: z112.coerce.date(),
|
|
3817
|
+
documentationPageId: z112.string(),
|
|
3818
|
+
documentationPageName: z112.string(),
|
|
3819
|
+
storagePath: z112.string()
|
|
3798
3820
|
});
|
|
3799
3821
|
var DocumentationPageContentItem = z113.discriminatedUnion("type", [
|
|
3800
3822
|
PageBlockEditorModelV2,
|
|
@@ -3811,29 +3833,35 @@ var DocumentationPageContent = z113.object({
|
|
|
3811
3833
|
documentationPageId: z113.string(),
|
|
3812
3834
|
data: DocumentationPageContentData
|
|
3813
3835
|
});
|
|
3814
|
-
var
|
|
3836
|
+
var DocumentationPageDependencies = z114.object({
|
|
3815
3837
|
id: z114.string(),
|
|
3816
3838
|
designSystemVersionId: z114.string(),
|
|
3817
3839
|
createdAt: z114.coerce.date(),
|
|
3818
3840
|
updatedAt: z114.coerce.date(),
|
|
3819
3841
|
documentationPageId: z114.string(),
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3842
|
+
tokenPersistentIds: z114.set(z114.string()),
|
|
3843
|
+
figmaComponentPersistentIds: z114.set(z114.string()),
|
|
3844
|
+
componentPersistentIds: z114.set(z114.string()),
|
|
3845
|
+
figmaNodePersistentIds: z114.set(z114.string()),
|
|
3846
|
+
groupPersistentIds: z114.set(z114.string()),
|
|
3847
|
+
propertyPersistentIds: z114.set(z114.string()),
|
|
3848
|
+
themePersistentIds: z114.set(z114.string()),
|
|
3849
|
+
documentationPagePersistentIds: z114.set(z114.string()),
|
|
3850
|
+
storybookEntriesStoryIds: z114.set(z114.string())
|
|
3851
|
+
});
|
|
3852
|
+
var DocumentationPage = z115.object({
|
|
3853
|
+
type: z115.literal("DocumentationPage"),
|
|
3824
3854
|
id: z115.string(),
|
|
3855
|
+
persistentId: z115.string(),
|
|
3856
|
+
shortPersistentId: z115.string(),
|
|
3825
3857
|
designSystemVersionId: z115.string(),
|
|
3858
|
+
parentPersistentId: z115.string().nullish(),
|
|
3859
|
+
sortOrder: z115.number(),
|
|
3860
|
+
title: z115.string(),
|
|
3861
|
+
slug: z115.string(),
|
|
3862
|
+
userSlug: z115.string().nullish(),
|
|
3826
3863
|
createdAt: z115.coerce.date(),
|
|
3827
|
-
updatedAt: z115.coerce.date()
|
|
3828
|
-
documentationPageId: z115.string(),
|
|
3829
|
-
tokenPersistentIds: z115.set(z115.string()),
|
|
3830
|
-
figmaComponentPersistentIds: z115.set(z115.string()),
|
|
3831
|
-
componentPersistentIds: z115.set(z115.string()),
|
|
3832
|
-
figmaNodePersistentIds: z115.set(z115.string()),
|
|
3833
|
-
groupPersistentIds: z115.set(z115.string()),
|
|
3834
|
-
propertyPersistentIds: z115.set(z115.string()),
|
|
3835
|
-
themePersistentIds: z115.set(z115.string()),
|
|
3836
|
-
documentationPagePersistentIds: z115.set(z115.string())
|
|
3864
|
+
updatedAt: z115.coerce.date()
|
|
3837
3865
|
});
|
|
3838
3866
|
var PageRedirect = z116.object({
|
|
3839
3867
|
id: z116.string(),
|
|
@@ -5079,118 +5107,120 @@ var PersonalAccessToken = z190.object({
|
|
|
5079
5107
|
});
|
|
5080
5108
|
|
|
5081
5109
|
// src/api/conversion/analytics/page-visits-to-dto.ts
|
|
5082
|
-
function
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
const
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5110
|
+
function documentationAnalyticsToGlobalDto(entries) {
|
|
5111
|
+
return squashAndConvertToDto(entries);
|
|
5112
|
+
}
|
|
5113
|
+
function documentationAnalyticsToPageDto(entries) {
|
|
5114
|
+
const byPageIdEntries = Array.from(groupBy(entries, (e) => e.pagePersistentId).entries());
|
|
5115
|
+
byPageIdEntries.sort((lhs, rhs) => lhs[0].localeCompare(rhs[0]));
|
|
5116
|
+
return byPageIdEntries.flatMap(([pagePersistentId, entries2]) => {
|
|
5117
|
+
const dtoWithoutPageId = squashAndConvertToDto(entries2);
|
|
5118
|
+
return dtoWithoutPageId.map((dto) => ({ ...dto, pagePersistentId }));
|
|
5119
|
+
});
|
|
5120
|
+
}
|
|
5121
|
+
function squashAndConvertToDto(entries) {
|
|
5122
|
+
const byDay = groupBy(entries, (e) => getStartOfUTCDay(e.timestamp));
|
|
5123
|
+
const obj = Object.fromEntries(
|
|
5124
|
+
Array.from(byDay.entries()).map(([date, values]) => [new Date(date).toISOString(), values.length])
|
|
5090
5125
|
);
|
|
5091
|
-
|
|
5092
|
-
const
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
const pageData2 = pageDataGroupedByPageId.get(id);
|
|
5104
|
-
if (!pageData2) {
|
|
5105
|
-
throw SupernovaException.shouldNotHappen();
|
|
5106
|
-
}
|
|
5107
|
-
const entry = pageData2[0];
|
|
5108
|
-
if (!entry) {
|
|
5109
|
-
throw SupernovaException.shouldNotHappen();
|
|
5110
|
-
}
|
|
5111
|
-
result.push({
|
|
5112
|
-
versionId: entry.versionId,
|
|
5113
|
-
pagePersistentId: entry.pagePersistentId,
|
|
5114
|
-
timestamp: entry.timestamp,
|
|
5115
|
-
visits: visitsPerPage.get(id) ?? 0,
|
|
5116
|
-
sessions: sessionsPerPage.get(id) ?? 0,
|
|
5117
|
-
locale: entry.locale
|
|
5118
|
-
});
|
|
5119
|
-
}
|
|
5120
|
-
}
|
|
5121
|
-
return result;
|
|
5126
|
+
return Array.from(byDay.entries()).map(([startOfDay, dayEntries]) => {
|
|
5127
|
+
const firstEntry = dayEntries[0];
|
|
5128
|
+
const uniqueSessions = new Set(dayEntries.map((e) => e.anonymousId).filter(nonNullishFilter)).size;
|
|
5129
|
+
const visitsSum = dayEntries.reduce((prev, curr) => prev + curr.visits, 0);
|
|
5130
|
+
return {
|
|
5131
|
+
versionId: firstEntry.versionId,
|
|
5132
|
+
timestamp: new Date(startOfDay),
|
|
5133
|
+
sessions: uniqueSessions,
|
|
5134
|
+
visits: visitsSum,
|
|
5135
|
+
...firstEntry.locale && { locale: firstEntry.locale }
|
|
5136
|
+
};
|
|
5137
|
+
});
|
|
5122
5138
|
}
|
|
5123
|
-
function
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5139
|
+
function getStartOfUTCDay(date) {
|
|
5140
|
+
const year = date.getUTCFullYear();
|
|
5141
|
+
const month = date.getUTCMonth();
|
|
5142
|
+
const day = date.getUTCDate();
|
|
5143
|
+
return Date.UTC(year, month, day, 0, 0, 0, 0);
|
|
5144
|
+
}
|
|
5145
|
+
|
|
5146
|
+
// src/api/conversion/analytics/page-visits-to-comparison-dto.ts
|
|
5147
|
+
function documentationAnalyticsToPageComparisonDto(input) {
|
|
5148
|
+
const { pagePersistentId } = input;
|
|
5149
|
+
function validateDataPoint(dataPoint) {
|
|
5150
|
+
if (dataPoint.pagePersistentId !== pagePersistentId) {
|
|
5151
|
+
throw SupernovaException.shouldNotHappen(`Tried to include invalid analytics data point!`);
|
|
5152
|
+
}
|
|
5135
5153
|
}
|
|
5154
|
+
input.priorDataPoints.forEach(validateDataPoint);
|
|
5155
|
+
input.currentDataPoints.forEach(validateDataPoint);
|
|
5136
5156
|
return {
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
currentVisitCount: currentIntervalVisits,
|
|
5140
|
-
currentSessionCount: currentIntervalSessions,
|
|
5141
|
-
startDate: priorIntervalStartDate,
|
|
5142
|
-
endDate: priorIntervalEndDate
|
|
5157
|
+
...documentationAnalyticsToComparisonDto(input),
|
|
5158
|
+
pagePersistentId
|
|
5143
5159
|
};
|
|
5144
5160
|
}
|
|
5145
|
-
function
|
|
5146
|
-
const
|
|
5147
|
-
const
|
|
5148
|
-
|
|
5149
|
-
}
|
|
5150
|
-
function aggregatePageVisitsAndSessions(pageData) {
|
|
5151
|
-
const visitsPerPage = /* @__PURE__ */ new Map();
|
|
5152
|
-
const sessionsPerPage = /* @__PURE__ */ new Map();
|
|
5153
|
-
const uniqueSessions = /* @__PURE__ */ new Set();
|
|
5154
|
-
for (const entry of pageData) {
|
|
5155
|
-
const pageId = entry.pagePersistentId;
|
|
5156
|
-
const visits = entry.visits;
|
|
5157
|
-
const currentSessionIdsLength = uniqueSessions.size;
|
|
5158
|
-
if (!entry.anonymousId) {
|
|
5159
|
-
throw SupernovaException.shouldNotHappen();
|
|
5160
|
-
}
|
|
5161
|
-
uniqueSessions.add(entry.anonymousId);
|
|
5162
|
-
const newSessionIdsLength = uniqueSessions.size;
|
|
5163
|
-
if (newSessionIdsLength > currentSessionIdsLength) {
|
|
5164
|
-
sessionsPerPage.set(pageId, (sessionsPerPage.get(pageId) ?? 0) + 1);
|
|
5165
|
-
}
|
|
5166
|
-
visitsPerPage.set(pageId, (visitsPerPage.get(pageId) ?? 0) + visits);
|
|
5167
|
-
}
|
|
5161
|
+
function documentationAnalyticsToComparisonDto(input) {
|
|
5162
|
+
const { timeFrame } = input;
|
|
5163
|
+
const priorDataPoints = documentationAnalyticsToGlobalDto(input.priorDataPoints);
|
|
5164
|
+
const currentDataPoints = documentationAnalyticsToGlobalDto(input.currentDataPoints);
|
|
5168
5165
|
return {
|
|
5169
|
-
|
|
5170
|
-
|
|
5166
|
+
timeFrame,
|
|
5167
|
+
priorSessionCount: priorDataPoints.reduce((sum, d) => sum + d.sessions, 0),
|
|
5168
|
+
priorVisitCount: priorDataPoints.reduce((sum, d) => sum + d.visits, 0),
|
|
5169
|
+
currentSessionCount: currentDataPoints.reduce((sum, d) => sum + d.sessions, 0),
|
|
5170
|
+
currentVisitCount: currentDataPoints.reduce((sum, d) => sum + d.visits, 0)
|
|
5171
5171
|
};
|
|
5172
5172
|
}
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
const
|
|
5177
|
-
for (const entry of dataCopy) {
|
|
5178
|
-
if (!entry.anonymousId) {
|
|
5179
|
-
sessionLessResults.push({
|
|
5180
|
-
versionId: entry.versionId,
|
|
5181
|
-
pagePersistentId: entry.pagePersistentId,
|
|
5182
|
-
timestamp: entry.timestamp,
|
|
5183
|
-
visits: entry.visits,
|
|
5184
|
-
sessions: 0,
|
|
5185
|
-
locale: entry.locale
|
|
5186
|
-
});
|
|
5187
|
-
}
|
|
5188
|
-
}
|
|
5173
|
+
|
|
5174
|
+
// src/api/conversion/analytics/page-visits-to-heatmap-dto.ts
|
|
5175
|
+
function documentationAnalyticsToHeatMapDto(entries, timeFrame) {
|
|
5176
|
+
const byWeekDay = groupBy(entries, (e) => e.timestamp.getUTCDay());
|
|
5189
5177
|
return {
|
|
5190
|
-
|
|
5191
|
-
|
|
5178
|
+
timeFrame,
|
|
5179
|
+
mon: entriesToHeatmapDay(byWeekDay.get(1)),
|
|
5180
|
+
tue: entriesToHeatmapDay(byWeekDay.get(2)),
|
|
5181
|
+
wed: entriesToHeatmapDay(byWeekDay.get(3)),
|
|
5182
|
+
thu: entriesToHeatmapDay(byWeekDay.get(4)),
|
|
5183
|
+
fri: entriesToHeatmapDay(byWeekDay.get(5)),
|
|
5184
|
+
sat: entriesToHeatmapDay(byWeekDay.get(6)),
|
|
5185
|
+
sun: entriesToHeatmapDay(byWeekDay.get(7))
|
|
5192
5186
|
};
|
|
5193
5187
|
}
|
|
5188
|
+
function entriesToHeatmapDay(entries) {
|
|
5189
|
+
const byHour = groupBy(entries ?? [], (e) => e.timestamp.getUTCHours());
|
|
5190
|
+
return [
|
|
5191
|
+
sumVisits(byHour.get(0), byHour.get(1)),
|
|
5192
|
+
// 0am-2am
|
|
5193
|
+
sumVisits(byHour.get(2), byHour.get(3)),
|
|
5194
|
+
// 2am-4am
|
|
5195
|
+
sumVisits(byHour.get(4), byHour.get(5)),
|
|
5196
|
+
// 4am-6am
|
|
5197
|
+
sumVisits(byHour.get(6), byHour.get(7)),
|
|
5198
|
+
// 6am-6am
|
|
5199
|
+
sumVisits(byHour.get(8), byHour.get(9)),
|
|
5200
|
+
// 8am-6am
|
|
5201
|
+
sumVisits(byHour.get(10), byHour.get(11)),
|
|
5202
|
+
// 10am-12pm
|
|
5203
|
+
sumVisits(byHour.get(12), byHour.get(13)),
|
|
5204
|
+
// 12pm-2pm
|
|
5205
|
+
sumVisits(byHour.get(14), byHour.get(15)),
|
|
5206
|
+
// 2pm-4pm
|
|
5207
|
+
sumVisits(byHour.get(16), byHour.get(17)),
|
|
5208
|
+
// 4pm-6pm
|
|
5209
|
+
sumVisits(byHour.get(18), byHour.get(19)),
|
|
5210
|
+
// 6pm-8pm
|
|
5211
|
+
sumVisits(byHour.get(20), byHour.get(21)),
|
|
5212
|
+
// 8pm-10pm
|
|
5213
|
+
sumVisits(byHour.get(22), byHour.get(23))
|
|
5214
|
+
// 10pm-12pm
|
|
5215
|
+
];
|
|
5216
|
+
}
|
|
5217
|
+
function sumVisits(...entryArrays) {
|
|
5218
|
+
let sum = 0;
|
|
5219
|
+
entryArrays.forEach((a) => {
|
|
5220
|
+
a?.forEach((e) => sum += e.visits);
|
|
5221
|
+
});
|
|
5222
|
+
return sum;
|
|
5223
|
+
}
|
|
5194
5224
|
|
|
5195
5225
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
5196
5226
|
var getDtoDefaultItemConfigurationV1 = () => ({
|
|
@@ -5640,16 +5670,11 @@ var DTOBrandUpdatePayload = z194.object({
|
|
|
5640
5670
|
|
|
5641
5671
|
// src/api/dto/design-systems/code-component.ts
|
|
5642
5672
|
import { z as z195 } from "zod";
|
|
5673
|
+
var DTOCodeComponentResolvedTypeKind = CodeComponentResolvedTypeKind;
|
|
5674
|
+
var DTOCodeComponentResolvedType = CodeComponentResolvedType;
|
|
5675
|
+
var DTOCodeComponentParentType = CodeComponentParentType;
|
|
5643
5676
|
var DTOCodeComponentProperty = CodeComponentProperty;
|
|
5644
|
-
var DTOCodeComponent =
|
|
5645
|
-
id: z195.string(),
|
|
5646
|
-
designSystemVersionId: z195.string(),
|
|
5647
|
-
persistentId: z195.string(),
|
|
5648
|
-
createdAt: z195.coerce.date(),
|
|
5649
|
-
updatedAt: z195.coerce.date(),
|
|
5650
|
-
exportName: z195.string(),
|
|
5651
|
-
properties: z195.record(z195.string(), DTOCodeComponentProperty)
|
|
5652
|
-
});
|
|
5677
|
+
var DTOCodeComponent = CodeComponent;
|
|
5653
5678
|
var DTOCodeComponentResponse = z195.object({
|
|
5654
5679
|
codeComponent: DTOCodeComponent
|
|
5655
5680
|
});
|
|
@@ -5659,11 +5684,15 @@ var DTOCodeComponentListResponse = z195.object({
|
|
|
5659
5684
|
var DTOCodeComponentCreateInput = z195.object({
|
|
5660
5685
|
persistentId: z195.string(),
|
|
5661
5686
|
exportName: z195.string(),
|
|
5662
|
-
|
|
5687
|
+
componentPath: z195.string(),
|
|
5688
|
+
description: z195.string(),
|
|
5689
|
+
properties: z195.record(z195.string(), DTOCodeComponentProperty),
|
|
5690
|
+
tags: z195.record(z195.string(), z195.string()).optional()
|
|
5663
5691
|
});
|
|
5664
5692
|
var DTOCodeComponentsCreateInput = z195.object({
|
|
5665
5693
|
codeComponents: DTOCodeComponentCreateInput.array()
|
|
5666
5694
|
});
|
|
5695
|
+
var DTOCodeComponentUpsertResponse = CodeComponentUpsertResponse;
|
|
5667
5696
|
|
|
5668
5697
|
// src/api/dto/design-systems/component.ts
|
|
5669
5698
|
import { z as z196 } from "zod";
|
|
@@ -6232,17 +6261,15 @@ var DTOUpdateVersionInput = z213.object({
|
|
|
6232
6261
|
|
|
6233
6262
|
// src/api/payloads/documentation/analytics.ts
|
|
6234
6263
|
import { z as z214 } from "zod";
|
|
6235
|
-
var DTODocumentationAnalyticsTimeFrame = z214.object({
|
|
6236
|
-
start: z214.coerce.date(),
|
|
6237
|
-
end: z214.coerce.date()
|
|
6238
|
-
});
|
|
6239
|
-
var DTODocumentationAnalyticsQueryParams = z214.object({
|
|
6240
|
-
start: z214.coerce.date(),
|
|
6241
|
-
end: z214.coerce.date().optional()
|
|
6242
|
-
});
|
|
6243
6264
|
var DTODocumentationAnalyticsTimeFrameComparison = z214.object({
|
|
6244
|
-
referencePeriod:
|
|
6245
|
-
|
|
6265
|
+
referencePeriod: z214.object({
|
|
6266
|
+
start: z214.coerce.date(),
|
|
6267
|
+
end: z214.coerce.date().optional()
|
|
6268
|
+
}),
|
|
6269
|
+
baselinePeriod: z214.object({
|
|
6270
|
+
start: z214.coerce.date(),
|
|
6271
|
+
end: z214.coerce.date().optional()
|
|
6272
|
+
})
|
|
6246
6273
|
});
|
|
6247
6274
|
var DTODocumentationAnalyticsDiffPayload = z214.object({
|
|
6248
6275
|
timeFrames: z214.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
@@ -6806,52 +6833,105 @@ var DTODesignTokenGroupCreatePayload = z235.object({
|
|
|
6806
6833
|
childrenIds: z235.string().array()
|
|
6807
6834
|
});
|
|
6808
6835
|
|
|
6809
|
-
// src/api/dto/documentation/analytics.ts
|
|
6836
|
+
// src/api/dto/documentation/analytics-v2.ts
|
|
6810
6837
|
import { z as z236 } from "zod";
|
|
6811
|
-
var
|
|
6838
|
+
var DTODocumentationAnalyticsTimeFrame = z236.object({
|
|
6839
|
+
start: z236.coerce.date(),
|
|
6840
|
+
end: z236.coerce.date().optional()
|
|
6841
|
+
});
|
|
6842
|
+
var DTOPublishedDocVisitData = z236.object({
|
|
6843
|
+
timestamp: z236.coerce.date(),
|
|
6812
6844
|
versionId: z236.string(),
|
|
6813
|
-
pagePersistentId: z236.string(),
|
|
6814
6845
|
locale: z236.string().optional(),
|
|
6815
|
-
timestamp: z236.coerce.date(),
|
|
6816
6846
|
visits: z236.number(),
|
|
6817
6847
|
sessions: z236.number()
|
|
6818
6848
|
});
|
|
6819
|
-
var
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6849
|
+
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
6850
|
+
pagePersistentId: z236.string()
|
|
6851
|
+
});
|
|
6852
|
+
var DTOPublishedDocVisitHeatMapDay = z236.number().array().length(12);
|
|
6853
|
+
var DTOPublishedDocVisitHeatMapWeek = z236.object({
|
|
6854
|
+
/**
|
|
6855
|
+
* For which timeframe it was calculated
|
|
6856
|
+
*/
|
|
6857
|
+
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
6858
|
+
mon: DTOPublishedDocVisitHeatMapDay,
|
|
6859
|
+
tue: DTOPublishedDocVisitHeatMapDay,
|
|
6860
|
+
wed: DTOPublishedDocVisitHeatMapDay,
|
|
6861
|
+
thu: DTOPublishedDocVisitHeatMapDay,
|
|
6862
|
+
fri: DTOPublishedDocVisitHeatMapDay,
|
|
6863
|
+
sat: DTOPublishedDocVisitHeatMapDay,
|
|
6864
|
+
sun: DTOPublishedDocVisitHeatMapDay
|
|
6865
|
+
});
|
|
6866
|
+
var DTOPublishedDocAnalyticsComparisonData = z236.object({
|
|
6867
|
+
/**
|
|
6868
|
+
* For which timeframe it was calculated
|
|
6869
|
+
*/
|
|
6870
|
+
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
6824
6871
|
priorVisitCount: z236.number(),
|
|
6825
|
-
priorSessionCount: z236.number()
|
|
6872
|
+
priorSessionCount: z236.number(),
|
|
6873
|
+
currentVisitCount: z236.number(),
|
|
6874
|
+
currentSessionCount: z236.number()
|
|
6875
|
+
});
|
|
6876
|
+
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
6877
|
+
pagePersistentId: z236.string()
|
|
6826
6878
|
});
|
|
6827
6879
|
var DTODocumentationPageAnalyticsResponse = z236.object({
|
|
6828
|
-
|
|
6880
|
+
// Old
|
|
6881
|
+
/**
|
|
6882
|
+
* @deprecated
|
|
6883
|
+
*/
|
|
6884
|
+
analytics: z236.array(DTOPublishedDocPageVisitData),
|
|
6885
|
+
/**
|
|
6886
|
+
* @deprecated
|
|
6887
|
+
*/
|
|
6888
|
+
perPageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
6889
|
+
// New
|
|
6890
|
+
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
6891
|
+
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
6892
|
+
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
6893
|
+
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
6894
|
+
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
6829
6895
|
});
|
|
6830
|
-
var
|
|
6831
|
-
|
|
6896
|
+
var DTODocumentationAnalyticsRequest = z236.object({
|
|
6897
|
+
timeFrames: z236.array(DTODocumentationAnalyticsTimeFrame)
|
|
6832
6898
|
});
|
|
6833
6899
|
|
|
6834
|
-
// src/api/dto/documentation/
|
|
6900
|
+
// src/api/dto/documentation/analytics.ts
|
|
6835
6901
|
import { z as z237 } from "zod";
|
|
6902
|
+
var DTODocumentationPageAnalyticsDifference = z237.object({
|
|
6903
|
+
startDate: z237.coerce.date(),
|
|
6904
|
+
endDate: z237.coerce.date().optional(),
|
|
6905
|
+
currentVisitCount: z237.number(),
|
|
6906
|
+
currentSessionCount: z237.number(),
|
|
6907
|
+
priorVisitCount: z237.number(),
|
|
6908
|
+
priorSessionCount: z237.number()
|
|
6909
|
+
});
|
|
6910
|
+
var DTODocumentationPageIntervalDifferenceResponse = z237.object({
|
|
6911
|
+
differences: z237.array(DTODocumentationPageAnalyticsDifference)
|
|
6912
|
+
});
|
|
6913
|
+
|
|
6914
|
+
// src/api/dto/documentation/anchor.ts
|
|
6915
|
+
import { z as z238 } from "zod";
|
|
6836
6916
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6837
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6838
|
-
anchors:
|
|
6917
|
+
var DTOGetDocumentationPageAnchorsResponse = z238.object({
|
|
6918
|
+
anchors: z238.array(DTODocumentationPageAnchor)
|
|
6839
6919
|
});
|
|
6840
6920
|
|
|
6841
6921
|
// src/api/dto/documentation/approvals.ts
|
|
6842
|
-
import { z as
|
|
6843
|
-
var DTODocumentationPageApprovalState =
|
|
6922
|
+
import { z as z239 } from "zod";
|
|
6923
|
+
var DTODocumentationPageApprovalState = z239.object({
|
|
6844
6924
|
approvalState: DocumentationPageApprovalState,
|
|
6845
|
-
pagePersistentId:
|
|
6846
|
-
updatedByUserId:
|
|
6847
|
-
designSystemVersionId:
|
|
6848
|
-
updatedAt:
|
|
6849
|
-
createdAt:
|
|
6850
|
-
});
|
|
6851
|
-
var DTODocumentationGroupApprovalState =
|
|
6852
|
-
persistentId:
|
|
6853
|
-
groupPersistentId:
|
|
6854
|
-
designSystemVersionId:
|
|
6925
|
+
pagePersistentId: z239.string(),
|
|
6926
|
+
updatedByUserId: z239.string(),
|
|
6927
|
+
designSystemVersionId: z239.string(),
|
|
6928
|
+
updatedAt: z239.coerce.date(),
|
|
6929
|
+
createdAt: z239.coerce.date()
|
|
6930
|
+
});
|
|
6931
|
+
var DTODocumentationGroupApprovalState = z239.object({
|
|
6932
|
+
persistentId: z239.string(),
|
|
6933
|
+
groupPersistentId: z239.string(),
|
|
6934
|
+
designSystemVersionId: z239.string(),
|
|
6855
6935
|
approvalState: DocumentationPageApprovalState
|
|
6856
6936
|
});
|
|
6857
6937
|
|
|
@@ -6859,68 +6939,68 @@ var DTODocumentationGroupApprovalState = z238.object({
|
|
|
6859
6939
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6860
6940
|
|
|
6861
6941
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6862
|
-
import { z as
|
|
6942
|
+
import { z as z244 } from "zod";
|
|
6863
6943
|
|
|
6864
6944
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6865
|
-
import { z as
|
|
6945
|
+
import { z as z243 } from "zod";
|
|
6866
6946
|
|
|
6867
6947
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6868
|
-
import { z as
|
|
6948
|
+
import { z as z241 } from "zod";
|
|
6869
6949
|
|
|
6870
6950
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6871
|
-
import { z as
|
|
6951
|
+
import { z as z240 } from "zod";
|
|
6872
6952
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6873
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6874
|
-
showSidebar:
|
|
6875
|
-
isPrivate:
|
|
6876
|
-
isHidden:
|
|
6953
|
+
var DTODocumentationItemConfigurationV2 = z240.object({
|
|
6954
|
+
showSidebar: z240.boolean(),
|
|
6955
|
+
isPrivate: z240.boolean(),
|
|
6956
|
+
isHidden: z240.boolean(),
|
|
6877
6957
|
header: DTODocumentationItemHeaderV2
|
|
6878
6958
|
});
|
|
6879
6959
|
|
|
6880
6960
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6881
|
-
var DTODocumentationDraftChangeType =
|
|
6882
|
-
var DTODocumentationDraftStateCreated =
|
|
6883
|
-
changeType:
|
|
6884
|
-
});
|
|
6885
|
-
var DTODocumentationDraftStateUpdated =
|
|
6886
|
-
changeType:
|
|
6887
|
-
changes:
|
|
6888
|
-
previousTitle:
|
|
6961
|
+
var DTODocumentationDraftChangeType = z241.enum(["Created", "Updated", "Deleted"]);
|
|
6962
|
+
var DTODocumentationDraftStateCreated = z241.object({
|
|
6963
|
+
changeType: z241.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6964
|
+
});
|
|
6965
|
+
var DTODocumentationDraftStateUpdated = z241.object({
|
|
6966
|
+
changeType: z241.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6967
|
+
changes: z241.object({
|
|
6968
|
+
previousTitle: z241.string().optional(),
|
|
6889
6969
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6890
|
-
previousContentHash:
|
|
6970
|
+
previousContentHash: z241.string().optional()
|
|
6891
6971
|
})
|
|
6892
6972
|
});
|
|
6893
|
-
var DTODocumentationDraftStateDeleted =
|
|
6894
|
-
changeType:
|
|
6895
|
-
deletedAt:
|
|
6896
|
-
deletedByUserId:
|
|
6973
|
+
var DTODocumentationDraftStateDeleted = z241.object({
|
|
6974
|
+
changeType: z241.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6975
|
+
deletedAt: z241.coerce.date(),
|
|
6976
|
+
deletedByUserId: z241.string()
|
|
6897
6977
|
});
|
|
6898
|
-
var DTODocumentationDraftState =
|
|
6978
|
+
var DTODocumentationDraftState = z241.discriminatedUnion("changeType", [
|
|
6899
6979
|
DTODocumentationDraftStateCreated,
|
|
6900
6980
|
DTODocumentationDraftStateUpdated,
|
|
6901
6981
|
DTODocumentationDraftStateDeleted
|
|
6902
6982
|
]);
|
|
6903
6983
|
|
|
6904
6984
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6905
|
-
import { z as
|
|
6906
|
-
var DTODocumentationPublishMetadata =
|
|
6907
|
-
lastPublishedByUserId:
|
|
6908
|
-
lastPublishedAt:
|
|
6985
|
+
import { z as z242 } from "zod";
|
|
6986
|
+
var DTODocumentationPublishMetadata = z242.object({
|
|
6987
|
+
lastPublishedByUserId: z242.string(),
|
|
6988
|
+
lastPublishedAt: z242.coerce.date()
|
|
6909
6989
|
});
|
|
6910
6990
|
|
|
6911
6991
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6912
|
-
var DTODocumentationPageV2 =
|
|
6913
|
-
id:
|
|
6914
|
-
persistentId:
|
|
6915
|
-
designSystemVersionId:
|
|
6916
|
-
title:
|
|
6992
|
+
var DTODocumentationPageV2 = z243.object({
|
|
6993
|
+
id: z243.string(),
|
|
6994
|
+
persistentId: z243.string(),
|
|
6995
|
+
designSystemVersionId: z243.string(),
|
|
6996
|
+
title: z243.string(),
|
|
6917
6997
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6918
|
-
shortPersistentId:
|
|
6919
|
-
slug:
|
|
6920
|
-
userSlug:
|
|
6921
|
-
createdAt:
|
|
6922
|
-
updatedAt:
|
|
6923
|
-
path:
|
|
6998
|
+
shortPersistentId: z243.string(),
|
|
6999
|
+
slug: z243.string().optional(),
|
|
7000
|
+
userSlug: z243.string().optional(),
|
|
7001
|
+
createdAt: z243.coerce.date(),
|
|
7002
|
+
updatedAt: z243.coerce.date(),
|
|
7003
|
+
path: z243.string(),
|
|
6924
7004
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6925
7005
|
draftState: DTODocumentationDraftState.optional(),
|
|
6926
7006
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6928,267 +7008,267 @@ var DTODocumentationPageV2 = z242.object({
|
|
|
6928
7008
|
/** Defines the approval state of the documentation page */
|
|
6929
7009
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6930
7010
|
/** Id of the page document room */
|
|
6931
|
-
liveblocksRoomId:
|
|
7011
|
+
liveblocksRoomId: z243.string().optional(),
|
|
6932
7012
|
// Backward compatibility
|
|
6933
|
-
type:
|
|
7013
|
+
type: z243.literal("Page")
|
|
6934
7014
|
});
|
|
6935
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7015
|
+
var DTOCreateDocumentationPageInputV2 = z243.object({
|
|
6936
7016
|
// Identifier
|
|
6937
|
-
persistentId:
|
|
7017
|
+
persistentId: z243.string(),
|
|
6938
7018
|
// Page properties
|
|
6939
|
-
title:
|
|
7019
|
+
title: z243.string(),
|
|
6940
7020
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6941
7021
|
// Page placement properties
|
|
6942
|
-
parentPersistentId:
|
|
6943
|
-
afterPersistentId:
|
|
7022
|
+
parentPersistentId: z243.string(),
|
|
7023
|
+
afterPersistentId: z243.string().nullish()
|
|
6944
7024
|
});
|
|
6945
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7025
|
+
var DTOUpdateDocumentationPageInputV2 = z243.object({
|
|
6946
7026
|
// Identifier of the page to update
|
|
6947
|
-
id:
|
|
7027
|
+
id: z243.string(),
|
|
6948
7028
|
// Page properties
|
|
6949
|
-
title:
|
|
7029
|
+
title: z243.string().optional(),
|
|
6950
7030
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6951
7031
|
});
|
|
6952
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7032
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z243.object({
|
|
6953
7033
|
// Identifier of the page to update
|
|
6954
|
-
id:
|
|
7034
|
+
id: z243.string(),
|
|
6955
7035
|
// Page properties
|
|
6956
|
-
documentItems:
|
|
7036
|
+
documentItems: z243.array(DocumentationPageContentItem)
|
|
6957
7037
|
});
|
|
6958
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7038
|
+
var DTOMoveDocumentationPageInputV2 = z243.object({
|
|
6959
7039
|
// Identifier of the group to update
|
|
6960
|
-
id:
|
|
7040
|
+
id: z243.string(),
|
|
6961
7041
|
// Page placement properties
|
|
6962
|
-
parentPersistentId:
|
|
6963
|
-
afterPersistentId:
|
|
7042
|
+
parentPersistentId: z243.string(),
|
|
7043
|
+
afterPersistentId: z243.string().nullish()
|
|
6964
7044
|
});
|
|
6965
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7045
|
+
var DTODuplicateDocumentationPageInputV2 = z243.object({
|
|
6966
7046
|
// Identifier of the page to duplicate from
|
|
6967
|
-
id:
|
|
7047
|
+
id: z243.string(),
|
|
6968
7048
|
// New page persistent id
|
|
6969
|
-
persistentId:
|
|
7049
|
+
persistentId: z243.string(),
|
|
6970
7050
|
// Page placement properties
|
|
6971
|
-
parentPersistentId:
|
|
6972
|
-
afterPersistentId:
|
|
7051
|
+
parentPersistentId: z243.string(),
|
|
7052
|
+
afterPersistentId: z243.string().nullish()
|
|
6973
7053
|
});
|
|
6974
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7054
|
+
var DTODeleteDocumentationPageInputV2 = z243.object({
|
|
6975
7055
|
// Identifier
|
|
6976
|
-
id:
|
|
7056
|
+
id: z243.string()
|
|
6977
7057
|
});
|
|
6978
|
-
var DTORestoreDocumentationPageInput =
|
|
6979
|
-
persistentId:
|
|
6980
|
-
snapshotId:
|
|
7058
|
+
var DTORestoreDocumentationPageInput = z243.object({
|
|
7059
|
+
persistentId: z243.string(),
|
|
7060
|
+
snapshotId: z243.string().optional()
|
|
6981
7061
|
});
|
|
6982
|
-
var DTORestoreDocumentationGroupInput =
|
|
6983
|
-
persistentId:
|
|
6984
|
-
snapshotId:
|
|
7062
|
+
var DTORestoreDocumentationGroupInput = z243.object({
|
|
7063
|
+
persistentId: z243.string(),
|
|
7064
|
+
snapshotId: z243.string().optional()
|
|
6985
7065
|
});
|
|
6986
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6987
|
-
persistentId:
|
|
7066
|
+
var DTODocumentationPageApprovalStateChangeInput = z243.object({
|
|
7067
|
+
persistentId: z243.string(),
|
|
6988
7068
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6989
7069
|
});
|
|
6990
7070
|
|
|
6991
7071
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6992
|
-
var DTODocumentationPageSnapshot =
|
|
6993
|
-
id:
|
|
6994
|
-
designSystemVersionId:
|
|
6995
|
-
createdAt:
|
|
6996
|
-
updatedAt:
|
|
7072
|
+
var DTODocumentationPageSnapshot = z244.object({
|
|
7073
|
+
id: z244.string(),
|
|
7074
|
+
designSystemVersionId: z244.string(),
|
|
7075
|
+
createdAt: z244.string(),
|
|
7076
|
+
updatedAt: z244.string(),
|
|
6997
7077
|
documentationPage: DTODocumentationPageV2,
|
|
6998
|
-
pageContentHash:
|
|
7078
|
+
pageContentHash: z244.string(),
|
|
6999
7079
|
reason: DesignElementSnapshotReason
|
|
7000
7080
|
});
|
|
7001
7081
|
|
|
7002
7082
|
// src/api/dto/documentation/link-preview.ts
|
|
7003
|
-
import { z as
|
|
7004
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7083
|
+
import { z as z245 } from "zod";
|
|
7084
|
+
var DTODocumentationLinkPreviewResponse = z245.object({
|
|
7005
7085
|
linkPreview: DocumentationLinkPreview
|
|
7006
7086
|
});
|
|
7007
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7008
|
-
url:
|
|
7009
|
-
documentationItemPersistentId:
|
|
7087
|
+
var DTODocumentationLinkPreviewRequest = z245.object({
|
|
7088
|
+
url: z245.string().optional(),
|
|
7089
|
+
documentationItemPersistentId: z245.string().optional()
|
|
7010
7090
|
});
|
|
7011
7091
|
|
|
7012
7092
|
// src/api/dto/documentation/publish.ts
|
|
7013
|
-
import { z as
|
|
7093
|
+
import { z as z249 } from "zod";
|
|
7014
7094
|
|
|
7015
7095
|
// src/api/dto/export/exporter.ts
|
|
7016
|
-
import { z as
|
|
7017
|
-
var DTOExporterType =
|
|
7018
|
-
var DTOExporterSource =
|
|
7019
|
-
var DTOExporterMembershipRole =
|
|
7020
|
-
var DTOExporterListQuery =
|
|
7021
|
-
limit:
|
|
7022
|
-
offset:
|
|
7096
|
+
import { z as z246 } from "zod";
|
|
7097
|
+
var DTOExporterType = z246.enum(["documentation", "code"]);
|
|
7098
|
+
var DTOExporterSource = z246.enum(["git", "upload"]);
|
|
7099
|
+
var DTOExporterMembershipRole = z246.enum(["Owner", "OwnerArchived", "User"]);
|
|
7100
|
+
var DTOExporterListQuery = z246.object({
|
|
7101
|
+
limit: z246.coerce.number().optional(),
|
|
7102
|
+
offset: z246.coerce.number().optional(),
|
|
7023
7103
|
type: DTOExporterType.optional(),
|
|
7024
|
-
search:
|
|
7104
|
+
search: z246.string().optional()
|
|
7025
7105
|
});
|
|
7026
|
-
var DTOExporter =
|
|
7027
|
-
id:
|
|
7028
|
-
name:
|
|
7029
|
-
isPrivate:
|
|
7106
|
+
var DTOExporter = z246.object({
|
|
7107
|
+
id: z246.string(),
|
|
7108
|
+
name: z246.string(),
|
|
7109
|
+
isPrivate: z246.boolean(),
|
|
7030
7110
|
exporterType: DTOExporterType,
|
|
7031
|
-
isDefaultDocumentationExporter:
|
|
7032
|
-
iconURL:
|
|
7111
|
+
isDefaultDocumentationExporter: z246.boolean(),
|
|
7112
|
+
iconURL: z246.string().optional(),
|
|
7033
7113
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7034
7114
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7035
7115
|
customBlocks: PulsarCustomBlock.array(),
|
|
7036
|
-
blockVariants:
|
|
7037
|
-
homepage:
|
|
7038
|
-
organization:
|
|
7039
|
-
packageId:
|
|
7040
|
-
tags:
|
|
7041
|
-
author:
|
|
7042
|
-
version:
|
|
7043
|
-
description:
|
|
7044
|
-
usesLocale:
|
|
7045
|
-
usesBrands:
|
|
7046
|
-
usesThemes:
|
|
7047
|
-
readme:
|
|
7048
|
-
routingVersion:
|
|
7116
|
+
blockVariants: z246.record(z246.string(), PulsarContributionVariant.array()),
|
|
7117
|
+
homepage: z246.string().optional(),
|
|
7118
|
+
organization: z246.string().optional(),
|
|
7119
|
+
packageId: z246.string().optional(),
|
|
7120
|
+
tags: z246.array(z246.string()),
|
|
7121
|
+
author: z246.string().optional(),
|
|
7122
|
+
version: z246.string(),
|
|
7123
|
+
description: z246.string(),
|
|
7124
|
+
usesLocale: z246.boolean(),
|
|
7125
|
+
usesBrands: z246.boolean(),
|
|
7126
|
+
usesThemes: z246.boolean(),
|
|
7127
|
+
readme: z246.string().optional(),
|
|
7128
|
+
routingVersion: z246.string().optional(),
|
|
7049
7129
|
source: DTOExporterSource,
|
|
7050
|
-
gitProvider:
|
|
7051
|
-
gitUrl: nullishToOptional(
|
|
7052
|
-
gitBranch: nullishToOptional(
|
|
7053
|
-
gitDirectory: nullishToOptional(
|
|
7054
|
-
isDeprecated:
|
|
7055
|
-
deprecationNote:
|
|
7056
|
-
replacementExporterId:
|
|
7057
|
-
});
|
|
7058
|
-
var DTOExporterMembership =
|
|
7059
|
-
workspaceId:
|
|
7060
|
-
exporterId:
|
|
7130
|
+
gitProvider: z246.string().optional(),
|
|
7131
|
+
gitUrl: nullishToOptional(z246.string()),
|
|
7132
|
+
gitBranch: nullishToOptional(z246.string()),
|
|
7133
|
+
gitDirectory: nullishToOptional(z246.string()),
|
|
7134
|
+
isDeprecated: z246.boolean(),
|
|
7135
|
+
deprecationNote: z246.string().optional(),
|
|
7136
|
+
replacementExporterId: z246.string().optional()
|
|
7137
|
+
});
|
|
7138
|
+
var DTOExporterMembership = z246.object({
|
|
7139
|
+
workspaceId: z246.string(),
|
|
7140
|
+
exporterId: z246.string(),
|
|
7061
7141
|
role: DTOExporterMembershipRole
|
|
7062
7142
|
});
|
|
7063
|
-
var DTOExporterResponse =
|
|
7143
|
+
var DTOExporterResponse = z246.object({
|
|
7064
7144
|
exporter: DTOExporter,
|
|
7065
7145
|
membership: DTOExporterMembership
|
|
7066
7146
|
});
|
|
7067
|
-
var DTOExporterListResponse =
|
|
7147
|
+
var DTOExporterListResponse = z246.object({
|
|
7068
7148
|
exporters: DTOExporter.array(),
|
|
7069
7149
|
membership: DTOExporterMembership.array(),
|
|
7070
|
-
total:
|
|
7150
|
+
total: z246.number()
|
|
7071
7151
|
});
|
|
7072
|
-
var DTOExporterGitProviderEnum =
|
|
7073
|
-
var DTOExporterCreateInput =
|
|
7074
|
-
url:
|
|
7152
|
+
var DTOExporterGitProviderEnum = z246.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
7153
|
+
var DTOExporterCreateInput = z246.object({
|
|
7154
|
+
url: z246.string(),
|
|
7075
7155
|
provider: DTOExporterGitProviderEnum
|
|
7076
7156
|
});
|
|
7077
|
-
var DTOExporterUpdateInput =
|
|
7078
|
-
url:
|
|
7157
|
+
var DTOExporterUpdateInput = z246.object({
|
|
7158
|
+
url: z246.string().optional()
|
|
7079
7159
|
});
|
|
7080
|
-
var DTOExporterDeprecationInput =
|
|
7081
|
-
isDeprecated:
|
|
7082
|
-
deprecationNote:
|
|
7083
|
-
replacementExporterId:
|
|
7160
|
+
var DTOExporterDeprecationInput = z246.object({
|
|
7161
|
+
isDeprecated: z246.boolean(),
|
|
7162
|
+
deprecationNote: z246.string().optional(),
|
|
7163
|
+
replacementExporterId: z246.string().optional()
|
|
7084
7164
|
});
|
|
7085
7165
|
|
|
7086
7166
|
// src/api/dto/export/filter.ts
|
|
7087
7167
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
7088
7168
|
|
|
7089
7169
|
// src/api/dto/export/job.ts
|
|
7090
|
-
import { z as
|
|
7091
|
-
var DTOExportJobCreatedBy =
|
|
7092
|
-
userId:
|
|
7093
|
-
userName:
|
|
7170
|
+
import { z as z247 } from "zod";
|
|
7171
|
+
var DTOExportJobCreatedBy = z247.object({
|
|
7172
|
+
userId: z247.string(),
|
|
7173
|
+
userName: z247.string()
|
|
7094
7174
|
});
|
|
7095
|
-
var DTOExportJobDesignSystemPreview =
|
|
7096
|
-
id:
|
|
7175
|
+
var DTOExportJobDesignSystemPreview = z247.object({
|
|
7176
|
+
id: z247.string(),
|
|
7097
7177
|
meta: ObjectMeta
|
|
7098
7178
|
});
|
|
7099
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
7100
|
-
id:
|
|
7179
|
+
var DTOExportJobDesignSystemVersionPreview = z247.object({
|
|
7180
|
+
id: z247.string(),
|
|
7101
7181
|
meta: ObjectMeta,
|
|
7102
|
-
version:
|
|
7103
|
-
isReadonly:
|
|
7182
|
+
version: z247.string(),
|
|
7183
|
+
isReadonly: z247.boolean()
|
|
7104
7184
|
});
|
|
7105
|
-
var DTOExportJobDestinations =
|
|
7185
|
+
var DTOExportJobDestinations = z247.object({
|
|
7106
7186
|
s3: ExporterDestinationS3.optional(),
|
|
7107
7187
|
azure: ExporterDestinationAzure.optional(),
|
|
7108
7188
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
7109
7189
|
github: ExporterDestinationGithub.optional(),
|
|
7110
7190
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
7111
7191
|
documentation: ExporterDestinationDocs.optional(),
|
|
7112
|
-
webhookUrl:
|
|
7192
|
+
webhookUrl: z247.string().optional()
|
|
7113
7193
|
});
|
|
7114
7194
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
7115
7195
|
sndocs: true
|
|
7116
7196
|
}).extend({
|
|
7117
7197
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
7118
7198
|
});
|
|
7119
|
-
var DTOExportJob =
|
|
7120
|
-
id:
|
|
7121
|
-
createdAt:
|
|
7122
|
-
finishedAt:
|
|
7123
|
-
index:
|
|
7199
|
+
var DTOExportJob = z247.object({
|
|
7200
|
+
id: z247.string(),
|
|
7201
|
+
createdAt: z247.coerce.date(),
|
|
7202
|
+
finishedAt: z247.coerce.date().optional(),
|
|
7203
|
+
index: z247.number().optional(),
|
|
7124
7204
|
status: ExportJobStatus,
|
|
7125
|
-
estimatedExecutionTime:
|
|
7205
|
+
estimatedExecutionTime: z247.number().optional(),
|
|
7126
7206
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
7127
7207
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
7128
7208
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
7129
7209
|
destinations: DTOExportJobDestinations,
|
|
7130
|
-
exporterId:
|
|
7131
|
-
scheduleId:
|
|
7210
|
+
exporterId: z247.string(),
|
|
7211
|
+
scheduleId: z247.string().optional(),
|
|
7132
7212
|
result: DTOExportJobResult.optional(),
|
|
7133
|
-
brandPersistentId:
|
|
7134
|
-
themePersistentId:
|
|
7135
|
-
themePersistentIds:
|
|
7213
|
+
brandPersistentId: z247.string().optional(),
|
|
7214
|
+
themePersistentId: z247.string().optional(),
|
|
7215
|
+
themePersistentIds: z247.string().array().optional(),
|
|
7136
7216
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
7137
7217
|
});
|
|
7138
|
-
var DTOExportJobResponse =
|
|
7218
|
+
var DTOExportJobResponse = z247.object({
|
|
7139
7219
|
job: DTOExportJob
|
|
7140
7220
|
});
|
|
7141
|
-
var DTOExportJobResponseLegacy =
|
|
7142
|
-
job:
|
|
7143
|
-
id:
|
|
7221
|
+
var DTOExportJobResponseLegacy = z247.object({
|
|
7222
|
+
job: z247.object({
|
|
7223
|
+
id: z247.string(),
|
|
7144
7224
|
status: ExportJobStatus
|
|
7145
7225
|
})
|
|
7146
7226
|
});
|
|
7147
|
-
var DTOExportJobCreateInput =
|
|
7148
|
-
designSystemId:
|
|
7149
|
-
designSystemVersionId:
|
|
7150
|
-
exporterId:
|
|
7151
|
-
brandId:
|
|
7152
|
-
themeId:
|
|
7153
|
-
themePersistentIds:
|
|
7227
|
+
var DTOExportJobCreateInput = z247.object({
|
|
7228
|
+
designSystemId: z247.string(),
|
|
7229
|
+
designSystemVersionId: z247.string(),
|
|
7230
|
+
exporterId: z247.string(),
|
|
7231
|
+
brandId: z247.string().optional(),
|
|
7232
|
+
themeId: z247.string().optional(),
|
|
7233
|
+
themePersistentIds: z247.string().array().optional(),
|
|
7154
7234
|
destinations: DTOExportJobDestinations,
|
|
7155
7235
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7156
|
-
previewMode:
|
|
7236
|
+
previewMode: z247.boolean().optional()
|
|
7157
7237
|
});
|
|
7158
7238
|
|
|
7159
7239
|
// src/api/dto/export/pipeline.ts
|
|
7160
|
-
import { z as
|
|
7161
|
-
var DTOPipelineListQuery =
|
|
7162
|
-
designSystemId:
|
|
7163
|
-
exporterId:
|
|
7164
|
-
latestJobsLimit:
|
|
7165
|
-
});
|
|
7166
|
-
var DTOPipeline =
|
|
7167
|
-
id:
|
|
7168
|
-
name:
|
|
7240
|
+
import { z as z248 } from "zod";
|
|
7241
|
+
var DTOPipelineListQuery = z248.object({
|
|
7242
|
+
designSystemId: z248.string().optional(),
|
|
7243
|
+
exporterId: z248.string().optional(),
|
|
7244
|
+
latestJobsLimit: z248.coerce.number().optional()
|
|
7245
|
+
});
|
|
7246
|
+
var DTOPipeline = z248.object({
|
|
7247
|
+
id: z248.string(),
|
|
7248
|
+
name: z248.string(),
|
|
7169
7249
|
eventType: PipelineEventType,
|
|
7170
|
-
isEnabled:
|
|
7171
|
-
workspaceId:
|
|
7172
|
-
designSystemId:
|
|
7173
|
-
exporterId:
|
|
7174
|
-
brandPersistentId:
|
|
7175
|
-
themePersistentId:
|
|
7176
|
-
themePersistentIds:
|
|
7250
|
+
isEnabled: z248.boolean(),
|
|
7251
|
+
workspaceId: z248.string(),
|
|
7252
|
+
designSystemId: z248.string(),
|
|
7253
|
+
exporterId: z248.string(),
|
|
7254
|
+
brandPersistentId: z248.string().optional(),
|
|
7255
|
+
themePersistentId: z248.string().optional(),
|
|
7256
|
+
themePersistentIds: z248.string().array().optional(),
|
|
7177
7257
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7178
7258
|
...ExportDestinationsMap.shape,
|
|
7179
7259
|
latestJobs: DTOExportJob.array(),
|
|
7180
|
-
isExporterDeprecated:
|
|
7260
|
+
isExporterDeprecated: z248.boolean()
|
|
7181
7261
|
});
|
|
7182
|
-
var DTOPipelineListResponse =
|
|
7262
|
+
var DTOPipelineListResponse = z248.object({
|
|
7183
7263
|
pipelines: DTOPipeline.array()
|
|
7184
7264
|
});
|
|
7185
|
-
var DTOPipelineResponse =
|
|
7265
|
+
var DTOPipelineResponse = z248.object({
|
|
7186
7266
|
pipeline: DTOPipeline
|
|
7187
7267
|
});
|
|
7188
7268
|
|
|
7189
7269
|
// src/api/dto/documentation/publish.ts
|
|
7190
7270
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
7191
|
-
var DTOPublishDocumentationRequest =
|
|
7271
|
+
var DTOPublishDocumentationRequest = z249.object({
|
|
7192
7272
|
environment: PublishedDocEnvironment,
|
|
7193
7273
|
/**
|
|
7194
7274
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -7196,66 +7276,66 @@ var DTOPublishDocumentationRequest = z248.object({
|
|
|
7196
7276
|
*/
|
|
7197
7277
|
changes: DTOPublishDocumentationChanges.optional()
|
|
7198
7278
|
});
|
|
7199
|
-
var DTOPublishDocumentationResponse =
|
|
7279
|
+
var DTOPublishDocumentationResponse = z249.object({
|
|
7200
7280
|
job: DTOExportJob
|
|
7201
7281
|
});
|
|
7202
7282
|
|
|
7203
7283
|
// src/api/dto/documentation/room.ts
|
|
7204
|
-
import { z as
|
|
7205
|
-
var DTODocumentationPageRoom =
|
|
7206
|
-
id:
|
|
7284
|
+
import { z as z250 } from "zod";
|
|
7285
|
+
var DTODocumentationPageRoom = z250.object({
|
|
7286
|
+
id: z250.string()
|
|
7207
7287
|
});
|
|
7208
|
-
var DTODocumentationPageRoomResponse =
|
|
7288
|
+
var DTODocumentationPageRoomResponse = z250.object({
|
|
7209
7289
|
room: DTODocumentationPageRoom
|
|
7210
7290
|
});
|
|
7211
7291
|
|
|
7212
7292
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
7213
|
-
import
|
|
7214
|
-
var DTOFigmaComponentGroup =
|
|
7215
|
-
id:
|
|
7216
|
-
designSystemVersionId:
|
|
7217
|
-
persistentId:
|
|
7218
|
-
isRoot:
|
|
7219
|
-
brandId:
|
|
7293
|
+
import z251 from "zod";
|
|
7294
|
+
var DTOFigmaComponentGroup = z251.object({
|
|
7295
|
+
id: z251.string(),
|
|
7296
|
+
designSystemVersionId: z251.string(),
|
|
7297
|
+
persistentId: z251.string(),
|
|
7298
|
+
isRoot: z251.boolean(),
|
|
7299
|
+
brandId: z251.string(),
|
|
7220
7300
|
meta: DTOObjectMeta,
|
|
7221
|
-
childrenIds:
|
|
7301
|
+
childrenIds: z251.string().array()
|
|
7222
7302
|
});
|
|
7223
|
-
var DTOFigmaComponentGroupListResponse =
|
|
7303
|
+
var DTOFigmaComponentGroupListResponse = z251.object({
|
|
7224
7304
|
groups: DTOFigmaComponentGroup.array()
|
|
7225
7305
|
});
|
|
7226
7306
|
|
|
7227
7307
|
// src/api/dto/elements/components/figma-component.ts
|
|
7228
|
-
import { z as
|
|
7308
|
+
import { z as z252 } from "zod";
|
|
7229
7309
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
7230
|
-
var DTOFigmaComponentPropertyMap =
|
|
7231
|
-
var DTOFigmaComponent =
|
|
7232
|
-
id:
|
|
7233
|
-
persistentId:
|
|
7234
|
-
designSystemVersionId:
|
|
7235
|
-
brandId:
|
|
7236
|
-
thumbnailUrl:
|
|
7237
|
-
svgUrl:
|
|
7238
|
-
exportProperties:
|
|
7239
|
-
isAsset:
|
|
7310
|
+
var DTOFigmaComponentPropertyMap = z252.record(DTOFigmaComponentProperty);
|
|
7311
|
+
var DTOFigmaComponent = z252.object({
|
|
7312
|
+
id: z252.string(),
|
|
7313
|
+
persistentId: z252.string(),
|
|
7314
|
+
designSystemVersionId: z252.string(),
|
|
7315
|
+
brandId: z252.string(),
|
|
7316
|
+
thumbnailUrl: z252.string().optional(),
|
|
7317
|
+
svgUrl: z252.string().optional(),
|
|
7318
|
+
exportProperties: z252.object({
|
|
7319
|
+
isAsset: z252.boolean()
|
|
7240
7320
|
}),
|
|
7241
|
-
createdAt:
|
|
7242
|
-
updatedAt:
|
|
7321
|
+
createdAt: z252.coerce.date(),
|
|
7322
|
+
updatedAt: z252.coerce.date(),
|
|
7243
7323
|
meta: ObjectMeta,
|
|
7244
7324
|
originComponent: FigmaComponentOrigin.optional(),
|
|
7245
|
-
parentComponentPersistentId:
|
|
7246
|
-
childrenPersistentIds:
|
|
7325
|
+
parentComponentPersistentId: z252.string().optional(),
|
|
7326
|
+
childrenPersistentIds: z252.string().array().optional(),
|
|
7247
7327
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
7248
|
-
variantPropertyValues:
|
|
7328
|
+
variantPropertyValues: z252.record(z252.string()).optional()
|
|
7249
7329
|
});
|
|
7250
|
-
var DTOFigmaComponentListResponse =
|
|
7330
|
+
var DTOFigmaComponentListResponse = z252.object({
|
|
7251
7331
|
components: DTOFigmaComponent.array()
|
|
7252
7332
|
});
|
|
7253
7333
|
|
|
7254
7334
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7255
|
-
import { z as
|
|
7335
|
+
import { z as z254 } from "zod";
|
|
7256
7336
|
|
|
7257
7337
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
7258
|
-
import { z as
|
|
7338
|
+
import { z as z253 } from "zod";
|
|
7259
7339
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
7260
7340
|
sortOrder: true,
|
|
7261
7341
|
parentPersistentId: true,
|
|
@@ -7265,13 +7345,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7265
7345
|
data: true,
|
|
7266
7346
|
shortPersistentId: true
|
|
7267
7347
|
}).extend({
|
|
7268
|
-
title:
|
|
7269
|
-
isRoot:
|
|
7270
|
-
childrenIds:
|
|
7348
|
+
title: z253.string(),
|
|
7349
|
+
isRoot: z253.boolean(),
|
|
7350
|
+
childrenIds: z253.array(z253.string()),
|
|
7271
7351
|
groupBehavior: DocumentationGroupBehavior,
|
|
7272
|
-
shortPersistentId:
|
|
7352
|
+
shortPersistentId: z253.string(),
|
|
7273
7353
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7274
|
-
type:
|
|
7354
|
+
type: z253.literal("Group"),
|
|
7275
7355
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
7276
7356
|
draftState: DTODocumentationDraftState.optional(),
|
|
7277
7357
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -7279,127 +7359,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7279
7359
|
//** An approval state for frontend to utilize. */
|
|
7280
7360
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
7281
7361
|
});
|
|
7282
|
-
var DTOCreateDocumentationGroupInput =
|
|
7362
|
+
var DTOCreateDocumentationGroupInput = z253.object({
|
|
7283
7363
|
// Identifier
|
|
7284
|
-
persistentId:
|
|
7364
|
+
persistentId: z253.string(),
|
|
7285
7365
|
// Group properties
|
|
7286
|
-
title:
|
|
7366
|
+
title: z253.string(),
|
|
7287
7367
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7288
7368
|
// Group placement properties
|
|
7289
|
-
afterPersistentId:
|
|
7290
|
-
parentPersistentId:
|
|
7369
|
+
afterPersistentId: z253.string().nullish(),
|
|
7370
|
+
parentPersistentId: z253.string()
|
|
7291
7371
|
});
|
|
7292
|
-
var DTOUpdateDocumentationGroupInput =
|
|
7372
|
+
var DTOUpdateDocumentationGroupInput = z253.object({
|
|
7293
7373
|
// Identifier of the group to update
|
|
7294
|
-
id:
|
|
7374
|
+
id: z253.string(),
|
|
7295
7375
|
// Group properties
|
|
7296
|
-
title:
|
|
7376
|
+
title: z253.string().optional(),
|
|
7297
7377
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7298
7378
|
});
|
|
7299
|
-
var DTOMoveDocumentationGroupInput =
|
|
7379
|
+
var DTOMoveDocumentationGroupInput = z253.object({
|
|
7300
7380
|
// Identifier of the group to update
|
|
7301
|
-
id:
|
|
7381
|
+
id: z253.string(),
|
|
7302
7382
|
// Group placement properties
|
|
7303
|
-
parentPersistentId:
|
|
7304
|
-
afterPersistentId:
|
|
7383
|
+
parentPersistentId: z253.string(),
|
|
7384
|
+
afterPersistentId: z253.string().nullish()
|
|
7305
7385
|
});
|
|
7306
|
-
var DTODuplicateDocumentationGroupInput =
|
|
7386
|
+
var DTODuplicateDocumentationGroupInput = z253.object({
|
|
7307
7387
|
// Identifier of the group to duplicate from
|
|
7308
|
-
id:
|
|
7388
|
+
id: z253.string(),
|
|
7309
7389
|
// New group persistent id
|
|
7310
|
-
persistentId:
|
|
7390
|
+
persistentId: z253.string(),
|
|
7311
7391
|
// Group placement properties
|
|
7312
|
-
afterPersistentId:
|
|
7313
|
-
parentPersistentId:
|
|
7392
|
+
afterPersistentId: z253.string().nullish(),
|
|
7393
|
+
parentPersistentId: z253.string()
|
|
7314
7394
|
});
|
|
7315
|
-
var DTOCreateDocumentationTabInput =
|
|
7395
|
+
var DTOCreateDocumentationTabInput = z253.object({
|
|
7316
7396
|
// New group persistent id
|
|
7317
|
-
persistentId:
|
|
7397
|
+
persistentId: z253.string(),
|
|
7318
7398
|
// If this is page, we will attempt to convert it to tab
|
|
7319
7399
|
// If this is tab group, we will add a new tab to it
|
|
7320
|
-
fromItemPersistentId:
|
|
7321
|
-
tabName:
|
|
7400
|
+
fromItemPersistentId: z253.string(),
|
|
7401
|
+
tabName: z253.string()
|
|
7322
7402
|
});
|
|
7323
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
7403
|
+
var DTODeleteDocumentationTabGroupInput = z253.object({
|
|
7324
7404
|
// Deleted group id
|
|
7325
|
-
id:
|
|
7405
|
+
id: z253.string()
|
|
7326
7406
|
});
|
|
7327
|
-
var DTODeleteDocumentationGroupInput =
|
|
7407
|
+
var DTODeleteDocumentationGroupInput = z253.object({
|
|
7328
7408
|
// Identifier
|
|
7329
|
-
id:
|
|
7409
|
+
id: z253.string(),
|
|
7330
7410
|
// Deletion options
|
|
7331
|
-
deleteSubtree:
|
|
7411
|
+
deleteSubtree: z253.boolean().default(false)
|
|
7332
7412
|
});
|
|
7333
7413
|
|
|
7334
7414
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7335
|
-
var SuccessPayload =
|
|
7336
|
-
success:
|
|
7415
|
+
var SuccessPayload = z254.object({
|
|
7416
|
+
success: z254.literal(true)
|
|
7337
7417
|
});
|
|
7338
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
7339
|
-
type:
|
|
7418
|
+
var DTODocumentationGroupCreateActionOutputV2 = z254.object({
|
|
7419
|
+
type: z254.literal("DocumentationGroupCreate"),
|
|
7340
7420
|
output: SuccessPayload
|
|
7341
7421
|
});
|
|
7342
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
7343
|
-
type:
|
|
7422
|
+
var DTODocumentationTabCreateActionOutputV2 = z254.object({
|
|
7423
|
+
type: z254.literal("DocumentationTabCreate"),
|
|
7344
7424
|
output: SuccessPayload
|
|
7345
7425
|
});
|
|
7346
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
7347
|
-
type:
|
|
7426
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z254.object({
|
|
7427
|
+
type: z254.literal("DocumentationGroupUpdate"),
|
|
7348
7428
|
output: SuccessPayload
|
|
7349
7429
|
});
|
|
7350
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
7351
|
-
type:
|
|
7430
|
+
var DTODocumentationGroupMoveActionOutputV2 = z254.object({
|
|
7431
|
+
type: z254.literal("DocumentationGroupMove"),
|
|
7352
7432
|
output: SuccessPayload
|
|
7353
7433
|
});
|
|
7354
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
7355
|
-
type:
|
|
7434
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z254.object({
|
|
7435
|
+
type: z254.literal("DocumentationGroupDuplicate"),
|
|
7356
7436
|
output: SuccessPayload
|
|
7357
7437
|
});
|
|
7358
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
7359
|
-
type:
|
|
7438
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z254.object({
|
|
7439
|
+
type: z254.literal("DocumentationGroupDelete"),
|
|
7360
7440
|
output: SuccessPayload
|
|
7361
7441
|
});
|
|
7362
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
7363
|
-
type:
|
|
7442
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z254.object({
|
|
7443
|
+
type: z254.literal("DocumentationTabGroupDelete"),
|
|
7364
7444
|
output: SuccessPayload
|
|
7365
7445
|
});
|
|
7366
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
7367
|
-
type:
|
|
7446
|
+
var DTODocumentationGroupCreateActionInputV2 = z254.object({
|
|
7447
|
+
type: z254.literal("DocumentationGroupCreate"),
|
|
7368
7448
|
input: DTOCreateDocumentationGroupInput
|
|
7369
7449
|
});
|
|
7370
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
7371
|
-
type:
|
|
7450
|
+
var DTODocumentationTabCreateActionInputV2 = z254.object({
|
|
7451
|
+
type: z254.literal("DocumentationTabCreate"),
|
|
7372
7452
|
input: DTOCreateDocumentationTabInput
|
|
7373
7453
|
});
|
|
7374
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
7375
|
-
type:
|
|
7454
|
+
var DTODocumentationGroupUpdateActionInputV2 = z254.object({
|
|
7455
|
+
type: z254.literal("DocumentationGroupUpdate"),
|
|
7376
7456
|
input: DTOUpdateDocumentationGroupInput
|
|
7377
7457
|
});
|
|
7378
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
7379
|
-
type:
|
|
7458
|
+
var DTODocumentationGroupMoveActionInputV2 = z254.object({
|
|
7459
|
+
type: z254.literal("DocumentationGroupMove"),
|
|
7380
7460
|
input: DTOMoveDocumentationGroupInput
|
|
7381
7461
|
});
|
|
7382
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
7383
|
-
type:
|
|
7462
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z254.object({
|
|
7463
|
+
type: z254.literal("DocumentationGroupDuplicate"),
|
|
7384
7464
|
input: DTODuplicateDocumentationGroupInput
|
|
7385
7465
|
});
|
|
7386
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
7387
|
-
type:
|
|
7466
|
+
var DTODocumentationGroupDeleteActionInputV2 = z254.object({
|
|
7467
|
+
type: z254.literal("DocumentationGroupDelete"),
|
|
7388
7468
|
input: DTODeleteDocumentationGroupInput
|
|
7389
7469
|
});
|
|
7390
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
7391
|
-
type:
|
|
7470
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z254.object({
|
|
7471
|
+
type: z254.literal("DocumentationTabGroupDelete"),
|
|
7392
7472
|
input: DTODeleteDocumentationTabGroupInput
|
|
7393
7473
|
});
|
|
7394
7474
|
|
|
7395
7475
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
7396
|
-
import { z as
|
|
7476
|
+
import { z as z256 } from "zod";
|
|
7397
7477
|
|
|
7398
7478
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
7399
|
-
import { z as
|
|
7400
|
-
var DocumentationColorV1 =
|
|
7401
|
-
aliasTo:
|
|
7402
|
-
value:
|
|
7479
|
+
import { z as z255 } from "zod";
|
|
7480
|
+
var DocumentationColorV1 = z255.object({
|
|
7481
|
+
aliasTo: z255.string().optional(),
|
|
7482
|
+
value: z255.string().optional()
|
|
7403
7483
|
});
|
|
7404
7484
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
7405
7485
|
foregroundColor: true,
|
|
@@ -7408,10 +7488,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
7408
7488
|
foregroundColor: DocumentationColorV1.optional(),
|
|
7409
7489
|
backgroundColor: DocumentationColorV1.optional()
|
|
7410
7490
|
});
|
|
7411
|
-
var DTODocumentationItemConfigurationV1 =
|
|
7412
|
-
showSidebar:
|
|
7413
|
-
isPrivate:
|
|
7414
|
-
isHidden:
|
|
7491
|
+
var DTODocumentationItemConfigurationV1 = z255.object({
|
|
7492
|
+
showSidebar: z255.boolean(),
|
|
7493
|
+
isPrivate: z255.boolean(),
|
|
7494
|
+
isHidden: z255.boolean(),
|
|
7415
7495
|
header: DTODocumentationItemHeaderV1
|
|
7416
7496
|
});
|
|
7417
7497
|
|
|
@@ -7425,123 +7505,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
7425
7505
|
data: true,
|
|
7426
7506
|
shortPersistentId: true
|
|
7427
7507
|
}).extend({
|
|
7428
|
-
title:
|
|
7429
|
-
isRoot:
|
|
7430
|
-
childrenIds:
|
|
7508
|
+
title: z256.string(),
|
|
7509
|
+
isRoot: z256.boolean(),
|
|
7510
|
+
childrenIds: z256.array(z256.string()),
|
|
7431
7511
|
groupBehavior: DocumentationGroupBehavior,
|
|
7432
|
-
shortPersistentId:
|
|
7433
|
-
type:
|
|
7512
|
+
shortPersistentId: z256.string(),
|
|
7513
|
+
type: z256.literal("Group")
|
|
7434
7514
|
});
|
|
7435
7515
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
7436
7516
|
configuration: DTODocumentationItemConfigurationV1
|
|
7437
7517
|
});
|
|
7438
7518
|
|
|
7439
7519
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
7440
|
-
import { z as
|
|
7441
|
-
var DTODocumentationHierarchyV2 =
|
|
7442
|
-
pages:
|
|
7520
|
+
import { z as z257 } from "zod";
|
|
7521
|
+
var DTODocumentationHierarchyV2 = z257.object({
|
|
7522
|
+
pages: z257.array(
|
|
7443
7523
|
DTODocumentationPageV2.extend({
|
|
7444
7524
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7445
7525
|
draftState: DTODocumentationDraftState.optional()
|
|
7446
7526
|
})
|
|
7447
7527
|
),
|
|
7448
|
-
groups:
|
|
7528
|
+
groups: z257.array(
|
|
7449
7529
|
DTODocumentationGroupV2.extend({
|
|
7450
7530
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7451
7531
|
draftState: DTODocumentationDraftState.optional()
|
|
7452
7532
|
})
|
|
7453
7533
|
),
|
|
7454
7534
|
/** True if the documentation was already published, false otherwise. */
|
|
7455
|
-
hasPublishedDocumentationContent:
|
|
7535
|
+
hasPublishedDocumentationContent: z257.boolean()
|
|
7456
7536
|
});
|
|
7457
7537
|
|
|
7458
7538
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
7459
|
-
import { z as
|
|
7460
|
-
var SuccessPayload2 =
|
|
7461
|
-
success:
|
|
7539
|
+
import { z as z258 } from "zod";
|
|
7540
|
+
var SuccessPayload2 = z258.object({
|
|
7541
|
+
success: z258.literal(true)
|
|
7462
7542
|
});
|
|
7463
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7464
|
-
type:
|
|
7543
|
+
var DTODocumentationPageCreateActionOutputV2 = z258.object({
|
|
7544
|
+
type: z258.literal("DocumentationPageCreate"),
|
|
7465
7545
|
output: SuccessPayload2
|
|
7466
7546
|
});
|
|
7467
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7468
|
-
type:
|
|
7547
|
+
var DTODocumentationPageUpdateActionOutputV2 = z258.object({
|
|
7548
|
+
type: z258.literal("DocumentationPageUpdate"),
|
|
7469
7549
|
output: SuccessPayload2
|
|
7470
7550
|
});
|
|
7471
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7472
|
-
type:
|
|
7551
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z258.object({
|
|
7552
|
+
type: z258.literal("DocumentationPageUpdateDocument"),
|
|
7473
7553
|
output: SuccessPayload2
|
|
7474
7554
|
});
|
|
7475
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7476
|
-
type:
|
|
7555
|
+
var DTODocumentationPageMoveActionOutputV2 = z258.object({
|
|
7556
|
+
type: z258.literal("DocumentationPageMove"),
|
|
7477
7557
|
output: SuccessPayload2
|
|
7478
7558
|
});
|
|
7479
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7480
|
-
type:
|
|
7559
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z258.object({
|
|
7560
|
+
type: z258.literal("DocumentationPageDuplicate"),
|
|
7481
7561
|
output: SuccessPayload2
|
|
7482
7562
|
});
|
|
7483
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7484
|
-
type:
|
|
7563
|
+
var DTODocumentationPageDeleteActionOutputV2 = z258.object({
|
|
7564
|
+
type: z258.literal("DocumentationPageDelete"),
|
|
7485
7565
|
output: SuccessPayload2
|
|
7486
7566
|
});
|
|
7487
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7488
|
-
type:
|
|
7567
|
+
var DTODocumentationPageRestoreActionOutput = z258.object({
|
|
7568
|
+
type: z258.literal("DocumentationPageRestore"),
|
|
7489
7569
|
output: SuccessPayload2
|
|
7490
7570
|
});
|
|
7491
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7492
|
-
type:
|
|
7571
|
+
var DTODocumentationGroupRestoreActionOutput = z258.object({
|
|
7572
|
+
type: z258.literal("DocumentationGroupRestore"),
|
|
7493
7573
|
output: SuccessPayload2
|
|
7494
7574
|
});
|
|
7495
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7496
|
-
type:
|
|
7575
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z258.object({
|
|
7576
|
+
type: z258.literal("DocumentationPageApprovalStateChange"),
|
|
7497
7577
|
output: SuccessPayload2
|
|
7498
7578
|
});
|
|
7499
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7500
|
-
type:
|
|
7579
|
+
var DTODocumentationPageCreateActionInputV2 = z258.object({
|
|
7580
|
+
type: z258.literal("DocumentationPageCreate"),
|
|
7501
7581
|
input: DTOCreateDocumentationPageInputV2
|
|
7502
7582
|
});
|
|
7503
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7504
|
-
type:
|
|
7583
|
+
var DTODocumentationPageUpdateActionInputV2 = z258.object({
|
|
7584
|
+
type: z258.literal("DocumentationPageUpdate"),
|
|
7505
7585
|
input: DTOUpdateDocumentationPageInputV2
|
|
7506
7586
|
});
|
|
7507
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7508
|
-
type:
|
|
7587
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z258.object({
|
|
7588
|
+
type: z258.literal("DocumentationPageUpdateDocument"),
|
|
7509
7589
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7510
7590
|
});
|
|
7511
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7512
|
-
type:
|
|
7591
|
+
var DTODocumentationPageMoveActionInputV2 = z258.object({
|
|
7592
|
+
type: z258.literal("DocumentationPageMove"),
|
|
7513
7593
|
input: DTOMoveDocumentationPageInputV2
|
|
7514
7594
|
});
|
|
7515
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7516
|
-
type:
|
|
7595
|
+
var DTODocumentationPageDuplicateActionInputV2 = z258.object({
|
|
7596
|
+
type: z258.literal("DocumentationPageDuplicate"),
|
|
7517
7597
|
input: DTODuplicateDocumentationPageInputV2
|
|
7518
7598
|
});
|
|
7519
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7520
|
-
type:
|
|
7599
|
+
var DTODocumentationPageDeleteActionInputV2 = z258.object({
|
|
7600
|
+
type: z258.literal("DocumentationPageDelete"),
|
|
7521
7601
|
input: DTODeleteDocumentationPageInputV2
|
|
7522
7602
|
});
|
|
7523
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7524
|
-
type:
|
|
7603
|
+
var DTODocumentationPageRestoreActionInput = z258.object({
|
|
7604
|
+
type: z258.literal("DocumentationPageRestore"),
|
|
7525
7605
|
input: DTORestoreDocumentationPageInput
|
|
7526
7606
|
});
|
|
7527
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7528
|
-
type:
|
|
7607
|
+
var DTODocumentationGroupRestoreActionInput = z258.object({
|
|
7608
|
+
type: z258.literal("DocumentationGroupRestore"),
|
|
7529
7609
|
input: DTORestoreDocumentationGroupInput
|
|
7530
7610
|
});
|
|
7531
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7532
|
-
type:
|
|
7611
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z258.object({
|
|
7612
|
+
type: z258.literal("DocumentationPageApprovalStateChange"),
|
|
7533
7613
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7534
7614
|
});
|
|
7535
7615
|
|
|
7536
7616
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7537
|
-
import { z as
|
|
7617
|
+
import { z as z259 } from "zod";
|
|
7538
7618
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7539
|
-
var DTODocumentationPageContentGetResponse =
|
|
7619
|
+
var DTODocumentationPageContentGetResponse = z259.object({
|
|
7540
7620
|
pageContent: DTODocumentationPageContent
|
|
7541
7621
|
});
|
|
7542
7622
|
|
|
7623
|
+
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
7624
|
+
import { z as z260 } from "zod";
|
|
7625
|
+
var DTODocumentationPageDependencies = z260.object({
|
|
7626
|
+
id: z260.string(),
|
|
7627
|
+
designSystemVersionId: z260.string(),
|
|
7628
|
+
createdAt: z260.coerce.date(),
|
|
7629
|
+
updatedAt: z260.coerce.date(),
|
|
7630
|
+
documentationPageId: z260.string(),
|
|
7631
|
+
tokenPersistentIds: z260.array(z260.string()),
|
|
7632
|
+
figmaComponentPersistentIds: z260.array(z260.string()),
|
|
7633
|
+
componentPersistentIds: z260.array(z260.string()),
|
|
7634
|
+
figmaNodePersistentIds: z260.array(z260.string()),
|
|
7635
|
+
groupPersistentIds: z260.array(z260.string()),
|
|
7636
|
+
propertyPersistentIds: z260.array(z260.string()),
|
|
7637
|
+
themePersistentIds: z260.array(z260.string()),
|
|
7638
|
+
documentationPagePersistentIds: z260.array(z260.string()),
|
|
7639
|
+
storybookEntriesStoryIds: z260.array(z260.string())
|
|
7640
|
+
});
|
|
7641
|
+
var DTODocumentationPageDependenciesGetResponse = z260.object({
|
|
7642
|
+
dependencies: z260.array(DTODocumentationPageDependencies)
|
|
7643
|
+
});
|
|
7644
|
+
|
|
7543
7645
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7544
|
-
import { z as
|
|
7646
|
+
import { z as z261 } from "zod";
|
|
7545
7647
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7546
7648
|
data: true,
|
|
7547
7649
|
meta: true,
|
|
@@ -7549,81 +7651,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7549
7651
|
sortOrder: true
|
|
7550
7652
|
}).extend({
|
|
7551
7653
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7552
|
-
blocks:
|
|
7553
|
-
title:
|
|
7554
|
-
path:
|
|
7654
|
+
blocks: z261.array(PageBlockV1),
|
|
7655
|
+
title: z261.string(),
|
|
7656
|
+
path: z261.string()
|
|
7555
7657
|
});
|
|
7556
7658
|
|
|
7557
7659
|
// src/api/dto/elements/documentation/settings.ts
|
|
7558
|
-
import { z as
|
|
7559
|
-
var DTODocumentationSettings =
|
|
7560
|
-
isDraftFeatureAdopted:
|
|
7561
|
-
isApprovalsFeatureEnabled:
|
|
7562
|
-
isApprovalRequiredForPublishing:
|
|
7660
|
+
import { z as z262 } from "zod";
|
|
7661
|
+
var DTODocumentationSettings = z262.object({
|
|
7662
|
+
isDraftFeatureAdopted: z262.boolean(),
|
|
7663
|
+
isApprovalsFeatureEnabled: z262.boolean(),
|
|
7664
|
+
isApprovalRequiredForPublishing: z262.boolean()
|
|
7563
7665
|
});
|
|
7564
7666
|
|
|
7565
7667
|
// src/api/dto/elements/documentation/structure.ts
|
|
7566
|
-
import { z as
|
|
7567
|
-
var DTODocumentationStructureItemType =
|
|
7568
|
-
var DTODocumentationStructureItemBase =
|
|
7668
|
+
import { z as z263 } from "zod";
|
|
7669
|
+
var DTODocumentationStructureItemType = z263.enum(["Group", "Page"]);
|
|
7670
|
+
var DTODocumentationStructureItemBase = z263.object({
|
|
7569
7671
|
type: DTODocumentationStructureItemType,
|
|
7570
|
-
id:
|
|
7571
|
-
designSystemVersionId:
|
|
7572
|
-
shortPersistentId:
|
|
7573
|
-
persistentId:
|
|
7574
|
-
title:
|
|
7575
|
-
createdAt:
|
|
7576
|
-
updatedAt:
|
|
7672
|
+
id: z263.string(),
|
|
7673
|
+
designSystemVersionId: z263.string(),
|
|
7674
|
+
shortPersistentId: z263.string(),
|
|
7675
|
+
persistentId: z263.string(),
|
|
7676
|
+
title: z263.string(),
|
|
7677
|
+
createdAt: z263.coerce.date(),
|
|
7678
|
+
updatedAt: z263.coerce.date()
|
|
7577
7679
|
});
|
|
7578
7680
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7579
|
-
type:
|
|
7580
|
-
groupBehavior:
|
|
7581
|
-
childrenIds:
|
|
7582
|
-
isRoot:
|
|
7681
|
+
type: z263.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7682
|
+
groupBehavior: z263.string(),
|
|
7683
|
+
childrenIds: z263.string().array(),
|
|
7684
|
+
isRoot: z263.boolean()
|
|
7583
7685
|
});
|
|
7584
7686
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7585
|
-
type:
|
|
7586
|
-
path:
|
|
7687
|
+
type: z263.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7688
|
+
path: z263.string()
|
|
7587
7689
|
});
|
|
7588
|
-
var DTODocumentationStructureItem =
|
|
7690
|
+
var DTODocumentationStructureItem = z263.discriminatedUnion("type", [
|
|
7589
7691
|
DTODocumentationStructureGroupItem,
|
|
7590
7692
|
DTODocumentationStructurePageItem
|
|
7591
7693
|
]);
|
|
7592
|
-
var DTODocumentationStructure =
|
|
7593
|
-
items:
|
|
7694
|
+
var DTODocumentationStructure = z263.object({
|
|
7695
|
+
items: z263.array(DTODocumentationStructureItem)
|
|
7594
7696
|
});
|
|
7595
7697
|
|
|
7596
7698
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
7597
|
-
import { z as
|
|
7598
|
-
var DTOFigmaNodeStructure =
|
|
7599
|
-
id:
|
|
7600
|
-
sourceId:
|
|
7699
|
+
import { z as z264 } from "zod";
|
|
7700
|
+
var DTOFigmaNodeStructure = z264.object({
|
|
7701
|
+
id: z264.string(),
|
|
7702
|
+
sourceId: z264.string(),
|
|
7601
7703
|
importState: FigmaNodeStructureStateV2,
|
|
7602
|
-
createdAt:
|
|
7603
|
-
updatedAt:
|
|
7704
|
+
createdAt: z264.coerce.date(),
|
|
7705
|
+
updatedAt: z264.coerce.date()
|
|
7604
7706
|
});
|
|
7605
7707
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
7606
7708
|
rootNode: FigmaFileStructureNode
|
|
7607
7709
|
});
|
|
7608
|
-
var DTOFigmaNodeStructureListResponse =
|
|
7710
|
+
var DTOFigmaNodeStructureListResponse = z264.object({
|
|
7609
7711
|
structures: DTOFigmaNodeStructure.array()
|
|
7610
7712
|
});
|
|
7611
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
7713
|
+
var DTOFigmaNodeStructureDetailResponse = z264.object({
|
|
7612
7714
|
structure: DTOFigmaNodeStructureDetail
|
|
7613
7715
|
});
|
|
7614
7716
|
|
|
7615
7717
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7616
|
-
import { z as
|
|
7718
|
+
import { z as z266 } from "zod";
|
|
7617
7719
|
|
|
7618
7720
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7619
|
-
import { z as
|
|
7721
|
+
import { z as z265 } from "zod";
|
|
7620
7722
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7621
|
-
var DTOFigmaNodeOrigin =
|
|
7622
|
-
sourceId:
|
|
7623
|
-
fileId:
|
|
7624
|
-
parentName:
|
|
7723
|
+
var DTOFigmaNodeOrigin = z265.object({
|
|
7724
|
+
sourceId: z265.string(),
|
|
7725
|
+
fileId: z265.string().optional(),
|
|
7726
|
+
parentName: z265.string().optional()
|
|
7625
7727
|
});
|
|
7626
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7728
|
+
var DTOFigmaNodeRenderInputBase = z265.object({
|
|
7627
7729
|
/**
|
|
7628
7730
|
* Format in which the node must be rendered, png by default.
|
|
7629
7731
|
*/
|
|
@@ -7631,57 +7733,57 @@ var DTOFigmaNodeRenderInputBase = z263.object({
|
|
|
7631
7733
|
/**
|
|
7632
7734
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7633
7735
|
*/
|
|
7634
|
-
scale:
|
|
7736
|
+
scale: z265.number().optional()
|
|
7635
7737
|
});
|
|
7636
7738
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7637
|
-
inputType:
|
|
7739
|
+
inputType: z265.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7638
7740
|
/**
|
|
7639
7741
|
* Id of a design system's data source representing a linked Figma file
|
|
7640
7742
|
*/
|
|
7641
|
-
sourceId:
|
|
7743
|
+
sourceId: z265.string(),
|
|
7642
7744
|
/**
|
|
7643
7745
|
* Id of a node within the Figma file
|
|
7644
7746
|
*/
|
|
7645
|
-
figmaFileNodeId:
|
|
7747
|
+
figmaFileNodeId: z265.string()
|
|
7646
7748
|
});
|
|
7647
7749
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7648
|
-
inputType:
|
|
7750
|
+
inputType: z265.literal("URL"),
|
|
7649
7751
|
/**
|
|
7650
7752
|
* Id of a design system's data source representing a linked Figma file
|
|
7651
7753
|
*/
|
|
7652
|
-
figmaNodeUrl:
|
|
7754
|
+
figmaNodeUrl: z265.string(),
|
|
7653
7755
|
/**
|
|
7654
7756
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7655
7757
|
*/
|
|
7656
|
-
brandPersistentId:
|
|
7758
|
+
brandPersistentId: z265.string()
|
|
7657
7759
|
});
|
|
7658
|
-
var DTOFigmaNodeRerenderInput =
|
|
7659
|
-
inputType:
|
|
7760
|
+
var DTOFigmaNodeRerenderInput = z265.object({
|
|
7761
|
+
inputType: z265.literal("Rerender"),
|
|
7660
7762
|
/**
|
|
7661
7763
|
* Persistent ID of an existing Figma node
|
|
7662
7764
|
*/
|
|
7663
|
-
figmaNodePersistentId:
|
|
7765
|
+
figmaNodePersistentId: z265.string()
|
|
7664
7766
|
});
|
|
7665
|
-
var DTOFigmaNodeRenderInput =
|
|
7767
|
+
var DTOFigmaNodeRenderInput = z265.discriminatedUnion("inputType", [
|
|
7666
7768
|
DTOFigmaNodeRenderIdInput,
|
|
7667
7769
|
DTOFigmaNodeRenderUrlInput,
|
|
7668
7770
|
DTOFigmaNodeRerenderInput
|
|
7669
7771
|
]);
|
|
7670
7772
|
|
|
7671
7773
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7672
|
-
var DTOFigmaNodeData =
|
|
7774
|
+
var DTOFigmaNodeData = z266.object({
|
|
7673
7775
|
// Id of the node in the Figma file
|
|
7674
|
-
figmaNodeId:
|
|
7776
|
+
figmaNodeId: z266.string(),
|
|
7675
7777
|
// Validity
|
|
7676
|
-
isValid:
|
|
7778
|
+
isValid: z266.boolean(),
|
|
7677
7779
|
// Asset data
|
|
7678
|
-
assetId:
|
|
7679
|
-
assetUrl:
|
|
7780
|
+
assetId: z266.string(),
|
|
7781
|
+
assetUrl: z266.string(),
|
|
7680
7782
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7681
7783
|
// Asset metadata
|
|
7682
|
-
assetScale:
|
|
7683
|
-
assetWidth:
|
|
7684
|
-
assetHeight:
|
|
7784
|
+
assetScale: z266.number(),
|
|
7785
|
+
assetWidth: z266.number().optional(),
|
|
7786
|
+
assetHeight: z266.number().optional()
|
|
7685
7787
|
});
|
|
7686
7788
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7687
7789
|
data: true,
|
|
@@ -7692,15 +7794,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7692
7794
|
});
|
|
7693
7795
|
|
|
7694
7796
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7695
|
-
import { z as
|
|
7696
|
-
var DTOFigmaNodeDataV2 =
|
|
7697
|
-
sceneNodeId:
|
|
7797
|
+
import { z as z267 } from "zod";
|
|
7798
|
+
var DTOFigmaNodeDataV2 = z267.object({
|
|
7799
|
+
sceneNodeId: z267.string(),
|
|
7698
7800
|
format: FigmaNodeRenderFormat,
|
|
7699
|
-
scale:
|
|
7801
|
+
scale: z267.number().optional(),
|
|
7700
7802
|
renderState: FigmaNodeRenderState,
|
|
7701
7803
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7702
7804
|
renderError: FigmaNodeRenderError.optional(),
|
|
7703
|
-
hasSource:
|
|
7805
|
+
hasSource: z267.boolean()
|
|
7704
7806
|
});
|
|
7705
7807
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7706
7808
|
data: true,
|
|
@@ -7711,113 +7813,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7711
7813
|
});
|
|
7712
7814
|
|
|
7713
7815
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7714
|
-
import { z as
|
|
7715
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7716
|
-
type:
|
|
7717
|
-
figmaNodes:
|
|
7816
|
+
import { z as z268 } from "zod";
|
|
7817
|
+
var DTOFigmaNodeRenderActionOutput = z268.object({
|
|
7818
|
+
type: z268.literal("FigmaNodeRender"),
|
|
7819
|
+
figmaNodes: z268.array(DTOFigmaNode)
|
|
7718
7820
|
});
|
|
7719
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7720
|
-
type:
|
|
7721
|
-
figmaNodes:
|
|
7821
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z268.object({
|
|
7822
|
+
type: z268.literal("FigmaNodeRenderAsync"),
|
|
7823
|
+
figmaNodes: z268.array(DTOFigmaNodeV2)
|
|
7722
7824
|
});
|
|
7723
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7724
|
-
type:
|
|
7825
|
+
var DTOFigmaNodeRenderActionInput = z268.object({
|
|
7826
|
+
type: z268.literal("FigmaNodeRender"),
|
|
7725
7827
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7726
7828
|
});
|
|
7727
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7728
|
-
type:
|
|
7829
|
+
var DTOFigmaNodeRenderAsyncActionInput = z268.object({
|
|
7830
|
+
type: z268.literal("FigmaNodeRenderAsync"),
|
|
7729
7831
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7730
7832
|
});
|
|
7731
7833
|
|
|
7732
7834
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7733
|
-
import { z as
|
|
7734
|
-
var DTOFrameNodeStructure =
|
|
7735
|
-
id:
|
|
7736
|
-
persistentId:
|
|
7737
|
-
designSystemVersionId:
|
|
7835
|
+
import { z as z269 } from "zod";
|
|
7836
|
+
var DTOFrameNodeStructure = z269.object({
|
|
7837
|
+
id: z269.string(),
|
|
7838
|
+
persistentId: z269.string(),
|
|
7839
|
+
designSystemVersionId: z269.string(),
|
|
7738
7840
|
origin: FigmaFileStructureOrigin,
|
|
7739
7841
|
assetsInFile: FigmaFileStructureStatistics
|
|
7740
7842
|
});
|
|
7741
|
-
var DTOFrameNodeStructureListResponse =
|
|
7843
|
+
var DTOFrameNodeStructureListResponse = z269.object({
|
|
7742
7844
|
structures: DTOFrameNodeStructure.array()
|
|
7743
7845
|
});
|
|
7744
7846
|
|
|
7745
7847
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7746
|
-
import { z as
|
|
7848
|
+
import { z as z270 } from "zod";
|
|
7747
7849
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
7748
|
-
var DTOElementPropertyDefinitionOption =
|
|
7749
|
-
id:
|
|
7750
|
-
name:
|
|
7850
|
+
var DTOElementPropertyDefinitionOption = z270.object({
|
|
7851
|
+
id: z270.string(),
|
|
7852
|
+
name: z270.string(),
|
|
7751
7853
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7752
7854
|
});
|
|
7753
|
-
var DTOElementPropertyDefinition =
|
|
7754
|
-
id:
|
|
7755
|
-
designSystemVersionId:
|
|
7855
|
+
var DTOElementPropertyDefinition = z270.object({
|
|
7856
|
+
id: z270.string(),
|
|
7857
|
+
designSystemVersionId: z270.string(),
|
|
7756
7858
|
meta: DTOObjectMeta,
|
|
7757
|
-
persistentId:
|
|
7859
|
+
persistentId: z270.string(),
|
|
7758
7860
|
type: ElementPropertyTypeSchema,
|
|
7759
7861
|
targetElementType: ElementPropertyTargetType,
|
|
7760
|
-
codeName:
|
|
7761
|
-
options: nullishToOptional(
|
|
7862
|
+
codeName: z270.string().regex(CODE_NAME_REGEX2),
|
|
7863
|
+
options: nullishToOptional(z270.array(DTOElementPropertyDefinitionOption)),
|
|
7762
7864
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7763
|
-
isImmutable:
|
|
7865
|
+
isImmutable: z270.boolean(),
|
|
7764
7866
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7765
7867
|
});
|
|
7766
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7767
|
-
definitions:
|
|
7868
|
+
var DTOElementPropertyDefinitionListResponse = z270.object({
|
|
7869
|
+
definitions: z270.array(DTOElementPropertyDefinition)
|
|
7768
7870
|
});
|
|
7769
|
-
var DTOElementPropertyDefinitionResponse =
|
|
7871
|
+
var DTOElementPropertyDefinitionResponse = z270.object({
|
|
7770
7872
|
definition: DTOElementPropertyDefinition
|
|
7771
7873
|
});
|
|
7772
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
7874
|
+
var DTOElementPropertyDefinitionCreatePayload = z270.object({
|
|
7773
7875
|
meta: DTOObjectMeta,
|
|
7774
|
-
persistentId:
|
|
7876
|
+
persistentId: z270.string(),
|
|
7775
7877
|
type: ElementPropertyTypeSchema,
|
|
7776
7878
|
targetElementType: ElementPropertyTargetType,
|
|
7777
|
-
codeName:
|
|
7778
|
-
options: nullishToOptional(
|
|
7879
|
+
codeName: z270.string().regex(CODE_NAME_REGEX2),
|
|
7880
|
+
options: nullishToOptional(z270.array(DTOElementPropertyDefinitionOption)),
|
|
7779
7881
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7780
|
-
columnWidth:
|
|
7882
|
+
columnWidth: z270.number().max(1024).optional()
|
|
7781
7883
|
});
|
|
7782
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
7884
|
+
var DTOElementPropertyDefinitionUpdatePayload = z270.object({
|
|
7783
7885
|
meta: DTOObjectMeta.optional(),
|
|
7784
|
-
codeName:
|
|
7785
|
-
options:
|
|
7886
|
+
codeName: z270.string().regex(CODE_NAME_REGEX2).optional(),
|
|
7887
|
+
options: z270.array(DTOElementPropertyDefinitionOption).optional()
|
|
7786
7888
|
});
|
|
7787
7889
|
|
|
7788
7890
|
// src/api/dto/elements/properties/property-values.ts
|
|
7789
|
-
import { z as
|
|
7790
|
-
var DTOElementPropertyValue =
|
|
7791
|
-
id:
|
|
7792
|
-
designSystemVersionId:
|
|
7793
|
-
definitionId:
|
|
7794
|
-
targetElementId:
|
|
7795
|
-
value:
|
|
7796
|
-
valuePreview:
|
|
7797
|
-
});
|
|
7798
|
-
var DTOElementPropertyValueListResponse =
|
|
7799
|
-
values:
|
|
7800
|
-
});
|
|
7801
|
-
var DTOElementPropertyValueResponse =
|
|
7891
|
+
import { z as z271 } from "zod";
|
|
7892
|
+
var DTOElementPropertyValue = z271.object({
|
|
7893
|
+
id: z271.string(),
|
|
7894
|
+
designSystemVersionId: z271.string(),
|
|
7895
|
+
definitionId: z271.string(),
|
|
7896
|
+
targetElementId: z271.string(),
|
|
7897
|
+
value: z271.union([z271.string(), z271.number(), z271.boolean()]).optional(),
|
|
7898
|
+
valuePreview: z271.string().optional()
|
|
7899
|
+
});
|
|
7900
|
+
var DTOElementPropertyValueListResponse = z271.object({
|
|
7901
|
+
values: z271.array(DTOElementPropertyValue)
|
|
7902
|
+
});
|
|
7903
|
+
var DTOElementPropertyValueResponse = z271.object({
|
|
7802
7904
|
value: DTOElementPropertyValue
|
|
7803
7905
|
});
|
|
7804
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
7805
|
-
type:
|
|
7806
|
-
output:
|
|
7906
|
+
var DTOElementPropertyValuesEditActionOutput = z271.object({
|
|
7907
|
+
type: z271.literal("ElementPropertyValuesEdit"),
|
|
7908
|
+
output: z271.object({ success: z271.literal(true) })
|
|
7807
7909
|
});
|
|
7808
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
7809
|
-
definitionId:
|
|
7810
|
-
targetElementId:
|
|
7811
|
-
value:
|
|
7910
|
+
var DTOElementPropertyValueUpsertPaylod = z271.object({
|
|
7911
|
+
definitionId: z271.string(),
|
|
7912
|
+
targetElementId: z271.string(),
|
|
7913
|
+
value: z271.string().or(z271.number()).or(z271.boolean()).nullable()
|
|
7812
7914
|
});
|
|
7813
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
7814
|
-
type:
|
|
7915
|
+
var DTOElementPropertyValuesEditActionInput = z271.object({
|
|
7916
|
+
type: z271.literal("ElementPropertyValuesEdit"),
|
|
7815
7917
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
7816
7918
|
});
|
|
7817
7919
|
|
|
7818
7920
|
// src/api/dto/elements/elements-action-v2.ts
|
|
7819
|
-
import { z as
|
|
7820
|
-
var DTOElementActionOutput =
|
|
7921
|
+
import { z as z272 } from "zod";
|
|
7922
|
+
var DTOElementActionOutput = z272.discriminatedUnion("type", [
|
|
7821
7923
|
// Documentation pages
|
|
7822
7924
|
DTODocumentationPageCreateActionOutputV2,
|
|
7823
7925
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -7844,7 +7946,7 @@ var DTOElementActionOutput = z270.discriminatedUnion("type", [
|
|
|
7844
7946
|
// Element properties
|
|
7845
7947
|
DTOElementPropertyValuesEditActionOutput
|
|
7846
7948
|
]);
|
|
7847
|
-
var DTOElementActionInput =
|
|
7949
|
+
var DTOElementActionInput = z272.discriminatedUnion("type", [
|
|
7848
7950
|
// Documentation pages
|
|
7849
7951
|
DTODocumentationPageCreateActionInputV2,
|
|
7850
7952
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7871,90 +7973,90 @@ var DTOElementActionInput = z270.discriminatedUnion("type", [
|
|
|
7871
7973
|
// Element properties
|
|
7872
7974
|
DTOElementPropertyValuesEditActionInput
|
|
7873
7975
|
]).and(
|
|
7874
|
-
|
|
7875
|
-
tId:
|
|
7976
|
+
z272.object({
|
|
7977
|
+
tId: z272.string().optional()
|
|
7876
7978
|
})
|
|
7877
7979
|
);
|
|
7878
7980
|
|
|
7879
7981
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7880
|
-
import { z as
|
|
7881
|
-
var DTOElementsGetTypeFilter =
|
|
7882
|
-
var DTOElementsGetQuerySchema =
|
|
7883
|
-
types:
|
|
7884
|
-
responseVersion:
|
|
7982
|
+
import { z as z273 } from "zod";
|
|
7983
|
+
var DTOElementsGetTypeFilter = z273.enum(["FigmaNode"]);
|
|
7984
|
+
var DTOElementsGetQuerySchema = z273.object({
|
|
7985
|
+
types: z273.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
7986
|
+
responseVersion: z273.coerce.number().default(1)
|
|
7885
7987
|
});
|
|
7886
|
-
var DTOElementsGetOutput =
|
|
7887
|
-
figmaNodes:
|
|
7988
|
+
var DTOElementsGetOutput = z273.object({
|
|
7989
|
+
figmaNodes: z273.array(DTOFigmaNode).optional()
|
|
7888
7990
|
});
|
|
7889
|
-
var DTOElementsGetOutputV2 =
|
|
7890
|
-
figmaNodes:
|
|
7991
|
+
var DTOElementsGetOutputV2 = z273.object({
|
|
7992
|
+
figmaNodes: z273.array(DTOFigmaNodeV2).optional()
|
|
7891
7993
|
});
|
|
7892
7994
|
|
|
7893
7995
|
// src/api/dto/figma-components/assets/download.ts
|
|
7894
|
-
import { z as
|
|
7895
|
-
var DTOAssetRenderConfiguration =
|
|
7896
|
-
prefix:
|
|
7897
|
-
suffix:
|
|
7898
|
-
scale:
|
|
7899
|
-
format:
|
|
7900
|
-
});
|
|
7901
|
-
var DTORenderedAssetFile =
|
|
7902
|
-
assetId:
|
|
7903
|
-
fileName:
|
|
7904
|
-
sourceUrl:
|
|
7996
|
+
import { z as z274 } from "zod";
|
|
7997
|
+
var DTOAssetRenderConfiguration = z274.object({
|
|
7998
|
+
prefix: z274.string().optional(),
|
|
7999
|
+
suffix: z274.string().optional(),
|
|
8000
|
+
scale: z274.enum(["x1", "x2", "x3", "x4"]),
|
|
8001
|
+
format: z274.enum(["png", "pdf", "svg"])
|
|
8002
|
+
});
|
|
8003
|
+
var DTORenderedAssetFile = z274.object({
|
|
8004
|
+
assetId: z274.string(),
|
|
8005
|
+
fileName: z274.string(),
|
|
8006
|
+
sourceUrl: z274.string(),
|
|
7905
8007
|
settings: DTOAssetRenderConfiguration,
|
|
7906
|
-
originalName:
|
|
8008
|
+
originalName: z274.string()
|
|
7907
8009
|
});
|
|
7908
|
-
var DTODownloadAssetsRequest =
|
|
7909
|
-
persistentIds:
|
|
8010
|
+
var DTODownloadAssetsRequest = z274.object({
|
|
8011
|
+
persistentIds: z274.array(z274.string().uuid()).optional(),
|
|
7910
8012
|
settings: DTOAssetRenderConfiguration.array()
|
|
7911
8013
|
});
|
|
7912
|
-
var DTODownloadAssetsResponse =
|
|
8014
|
+
var DTODownloadAssetsResponse = z274.object({
|
|
7913
8015
|
items: DTORenderedAssetFile.array()
|
|
7914
8016
|
});
|
|
7915
8017
|
|
|
7916
8018
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7917
|
-
import { z as
|
|
7918
|
-
var DTOLiveblocksAuthResponse =
|
|
7919
|
-
token:
|
|
8019
|
+
import { z as z275 } from "zod";
|
|
8020
|
+
var DTOLiveblocksAuthResponse = z275.object({
|
|
8021
|
+
token: z275.string()
|
|
7920
8022
|
});
|
|
7921
8023
|
|
|
7922
8024
|
// src/api/dto/themes/override.ts
|
|
7923
|
-
import { z as
|
|
8025
|
+
import { z as z276 } from "zod";
|
|
7924
8026
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7925
|
-
|
|
7926
|
-
tokenPersistentId:
|
|
8027
|
+
z276.object({
|
|
8028
|
+
tokenPersistentId: z276.string(),
|
|
7927
8029
|
origin: ThemeOverrideOrigin.optional()
|
|
7928
8030
|
})
|
|
7929
8031
|
);
|
|
7930
8032
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7931
|
-
|
|
7932
|
-
tokenPersistentId:
|
|
8033
|
+
z276.object({
|
|
8034
|
+
tokenPersistentId: z276.string()
|
|
7933
8035
|
})
|
|
7934
8036
|
);
|
|
7935
8037
|
|
|
7936
8038
|
// src/api/dto/themes/theme.ts
|
|
7937
|
-
import { z as
|
|
7938
|
-
var DTOTheme =
|
|
7939
|
-
id:
|
|
7940
|
-
persistentId:
|
|
7941
|
-
designSystemVersionId:
|
|
7942
|
-
brandId:
|
|
8039
|
+
import { z as z277 } from "zod";
|
|
8040
|
+
var DTOTheme = z277.object({
|
|
8041
|
+
id: z277.string(),
|
|
8042
|
+
persistentId: z277.string(),
|
|
8043
|
+
designSystemVersionId: z277.string(),
|
|
8044
|
+
brandId: z277.string(),
|
|
7943
8045
|
meta: ObjectMeta,
|
|
7944
|
-
codeName:
|
|
8046
|
+
codeName: z277.string(),
|
|
7945
8047
|
overrides: DTOThemeOverride.array()
|
|
7946
8048
|
});
|
|
7947
|
-
var DTOThemeResponse =
|
|
8049
|
+
var DTOThemeResponse = z277.object({
|
|
7948
8050
|
theme: DTOTheme
|
|
7949
8051
|
});
|
|
7950
|
-
var DTOThemeListResponse =
|
|
8052
|
+
var DTOThemeListResponse = z277.object({
|
|
7951
8053
|
themes: DTOTheme.array()
|
|
7952
8054
|
});
|
|
7953
|
-
var DTOThemeCreatePayload =
|
|
8055
|
+
var DTOThemeCreatePayload = z277.object({
|
|
7954
8056
|
meta: ObjectMeta,
|
|
7955
|
-
persistentId:
|
|
7956
|
-
brandId:
|
|
7957
|
-
codeName:
|
|
8057
|
+
persistentId: z277.string(),
|
|
8058
|
+
brandId: z277.string(),
|
|
8059
|
+
codeName: z277.string(),
|
|
7958
8060
|
overrides: DTOThemeOverride.array()
|
|
7959
8061
|
});
|
|
7960
8062
|
|
|
@@ -8190,13 +8292,13 @@ var ExportersEndpoint = class {
|
|
|
8190
8292
|
};
|
|
8191
8293
|
|
|
8192
8294
|
// src/api/endpoints/codegen/jobs.ts
|
|
8193
|
-
import { z as
|
|
8295
|
+
import { z as z278 } from "zod";
|
|
8194
8296
|
var ExporterJobsEndpoint = class {
|
|
8195
8297
|
constructor(requestExecutor) {
|
|
8196
8298
|
this.requestExecutor = requestExecutor;
|
|
8197
8299
|
}
|
|
8198
8300
|
list(workspaceId) {
|
|
8199
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
8301
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z278.any());
|
|
8200
8302
|
}
|
|
8201
8303
|
get(workspaceId, jobId) {
|
|
8202
8304
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -8254,7 +8356,7 @@ var CodegenEndpoint = class {
|
|
|
8254
8356
|
};
|
|
8255
8357
|
|
|
8256
8358
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
8257
|
-
import { z as
|
|
8359
|
+
import { z as z279 } from "zod";
|
|
8258
8360
|
var BrandsEndpoint = class {
|
|
8259
8361
|
constructor(requestExecutor) {
|
|
8260
8362
|
this.requestExecutor = requestExecutor;
|
|
@@ -8288,7 +8390,7 @@ var BrandsEndpoint = class {
|
|
|
8288
8390
|
});
|
|
8289
8391
|
}
|
|
8290
8392
|
delete(dsId, vId, brandId) {
|
|
8291
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
8393
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z279.any(), {
|
|
8292
8394
|
method: "DELETE"
|
|
8293
8395
|
});
|
|
8294
8396
|
}
|
|
@@ -8302,7 +8404,7 @@ var CodeComponentsEndpoint = class {
|
|
|
8302
8404
|
async import(dsId, vId, body) {
|
|
8303
8405
|
return this.requestExecutor.json(
|
|
8304
8406
|
`/design-systems/${dsId}/versions/${vId}/code-components`,
|
|
8305
|
-
|
|
8407
|
+
DTOCodeComponentUpsertResponse,
|
|
8306
8408
|
{
|
|
8307
8409
|
body,
|
|
8308
8410
|
method: "POST"
|
|
@@ -8501,7 +8603,7 @@ var ImportJobsEndpoint = class {
|
|
|
8501
8603
|
};
|
|
8502
8604
|
|
|
8503
8605
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
8504
|
-
import { z as
|
|
8606
|
+
import { z as z280 } from "zod";
|
|
8505
8607
|
var OverridesEndpoint = class {
|
|
8506
8608
|
constructor(requestExecutor) {
|
|
8507
8609
|
this.requestExecutor = requestExecutor;
|
|
@@ -8509,7 +8611,7 @@ var OverridesEndpoint = class {
|
|
|
8509
8611
|
create(dsId, versionId, themeId, body) {
|
|
8510
8612
|
return this.requestExecutor.json(
|
|
8511
8613
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
8512
|
-
|
|
8614
|
+
z280.any(),
|
|
8513
8615
|
{
|
|
8514
8616
|
method: "POST",
|
|
8515
8617
|
body
|
|
@@ -8519,7 +8621,7 @@ var OverridesEndpoint = class {
|
|
|
8519
8621
|
};
|
|
8520
8622
|
|
|
8521
8623
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
8522
|
-
import { z as
|
|
8624
|
+
import { z as z281 } from "zod";
|
|
8523
8625
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
8524
8626
|
constructor(requestExecutor) {
|
|
8525
8627
|
this.requestExecutor = requestExecutor;
|
|
@@ -8547,7 +8649,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
8547
8649
|
delete(designSystemId, versionId, defId) {
|
|
8548
8650
|
return this.requestExecutor.json(
|
|
8549
8651
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
8550
|
-
|
|
8652
|
+
z281.any(),
|
|
8551
8653
|
{ method: "DELETE" }
|
|
8552
8654
|
);
|
|
8553
8655
|
}
|
|
@@ -8586,7 +8688,7 @@ var VersionStatsEndpoint = class {
|
|
|
8586
8688
|
};
|
|
8587
8689
|
|
|
8588
8690
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8589
|
-
import { z as
|
|
8691
|
+
import { z as z282 } from "zod";
|
|
8590
8692
|
var ThemesEndpoint = class {
|
|
8591
8693
|
constructor(requestExecutor) {
|
|
8592
8694
|
this.requestExecutor = requestExecutor;
|
|
@@ -8609,7 +8711,7 @@ var ThemesEndpoint = class {
|
|
|
8609
8711
|
});
|
|
8610
8712
|
}
|
|
8611
8713
|
delete(dsId, versionId, themeId) {
|
|
8612
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8714
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z282.any(), {
|
|
8613
8715
|
method: "DELETE"
|
|
8614
8716
|
});
|
|
8615
8717
|
}
|
|
@@ -8743,17 +8845,11 @@ var DesignSystemAnalyticsEndpoint = class {
|
|
|
8743
8845
|
constructor(requestExecutor) {
|
|
8744
8846
|
this.requestExecutor = requestExecutor;
|
|
8745
8847
|
}
|
|
8746
|
-
get(designSystemId, versionId,
|
|
8848
|
+
get(designSystemId, versionId, body) {
|
|
8747
8849
|
return this.requestExecutor.json(
|
|
8748
8850
|
`/design-systems/${designSystemId}/versions/${versionId}/documentation/analytics`,
|
|
8749
8851
|
DTODocumentationPageAnalyticsResponse,
|
|
8750
|
-
{
|
|
8751
|
-
method: "GET",
|
|
8752
|
-
query: new URLSearchParams({
|
|
8753
|
-
start: query.start.toISOString(),
|
|
8754
|
-
...query.end && { end: query.end.toISOString() }
|
|
8755
|
-
})
|
|
8756
|
-
}
|
|
8852
|
+
{ method: "POST", body }
|
|
8757
8853
|
);
|
|
8758
8854
|
}
|
|
8759
8855
|
};
|
|
@@ -8784,7 +8880,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
8784
8880
|
};
|
|
8785
8881
|
|
|
8786
8882
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8787
|
-
import { z as
|
|
8883
|
+
import { z as z285 } from "zod";
|
|
8788
8884
|
|
|
8789
8885
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
8790
8886
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -8861,7 +8957,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
8861
8957
|
};
|
|
8862
8958
|
|
|
8863
8959
|
// src/api/endpoints/design-system/sources.ts
|
|
8864
|
-
import { z as
|
|
8960
|
+
import { z as z283 } from "zod";
|
|
8865
8961
|
var DesignSystemSourcesEndpoint = class {
|
|
8866
8962
|
constructor(requestExecutor) {
|
|
8867
8963
|
this.requestExecutor = requestExecutor;
|
|
@@ -8879,7 +8975,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8879
8975
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
8880
8976
|
}
|
|
8881
8977
|
delete(dsId, sourceId) {
|
|
8882
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
8978
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z283.any(), { method: "DELETE" });
|
|
8883
8979
|
}
|
|
8884
8980
|
figmaImport(dsId, payload) {
|
|
8885
8981
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -8896,7 +8992,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8896
8992
|
};
|
|
8897
8993
|
|
|
8898
8994
|
// src/api/endpoints/design-system/storybook.ts
|
|
8899
|
-
import { z as
|
|
8995
|
+
import { z as z284 } from "zod";
|
|
8900
8996
|
var StorybookEntriesEndpoint = class {
|
|
8901
8997
|
constructor(requestExecutor) {
|
|
8902
8998
|
this.requestExecutor = requestExecutor;
|
|
@@ -8908,7 +9004,7 @@ var StorybookEntriesEndpoint = class {
|
|
|
8908
9004
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, DTOStorybookEntryReplaceAction, { method: "PUT" });
|
|
8909
9005
|
}
|
|
8910
9006
|
delete(dsId, entryId) {
|
|
8911
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
9007
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z284.any(), { method: "DELETE" });
|
|
8912
9008
|
}
|
|
8913
9009
|
};
|
|
8914
9010
|
|
|
@@ -8945,7 +9041,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8945
9041
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
8946
9042
|
}
|
|
8947
9043
|
delete(dsId) {
|
|
8948
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
9044
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z285.any(), { method: "DELETE" });
|
|
8949
9045
|
}
|
|
8950
9046
|
update(dsId, body) {
|
|
8951
9047
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -8962,7 +9058,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8962
9058
|
};
|
|
8963
9059
|
|
|
8964
9060
|
// src/api/endpoints/workspaces/integrations.ts
|
|
8965
|
-
import { z as
|
|
9061
|
+
import { z as z286 } from "zod";
|
|
8966
9062
|
var WorkspaceIntegrationsEndpoint = class {
|
|
8967
9063
|
constructor(requestExecutor) {
|
|
8968
9064
|
this.requestExecutor = requestExecutor;
|
|
@@ -8971,7 +9067,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
8971
9067
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
8972
9068
|
}
|
|
8973
9069
|
delete(wsId, iId) {
|
|
8974
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
9070
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z286.unknown(), { method: "DELETE" });
|
|
8975
9071
|
}
|
|
8976
9072
|
};
|
|
8977
9073
|
|
|
@@ -9003,7 +9099,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
9003
9099
|
};
|
|
9004
9100
|
|
|
9005
9101
|
// src/api/endpoints/workspaces/members.ts
|
|
9006
|
-
import { z as
|
|
9102
|
+
import { z as z287 } from "zod";
|
|
9007
9103
|
var WorkspaceMembersEndpoint = class {
|
|
9008
9104
|
constructor(requestExecutor) {
|
|
9009
9105
|
this.requestExecutor = requestExecutor;
|
|
@@ -9020,7 +9116,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9020
9116
|
});
|
|
9021
9117
|
}
|
|
9022
9118
|
invite(workspaceId, body) {
|
|
9023
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
9119
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z287.any(), { method: "POST", body });
|
|
9024
9120
|
}
|
|
9025
9121
|
delete(workspaceId, userId) {
|
|
9026
9122
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -9030,7 +9126,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9030
9126
|
};
|
|
9031
9127
|
|
|
9032
9128
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
9033
|
-
import { z as
|
|
9129
|
+
import { z as z288 } from "zod";
|
|
9034
9130
|
var WorkspacesEndpoint = class {
|
|
9035
9131
|
constructor(requestExecutor) {
|
|
9036
9132
|
this.requestExecutor = requestExecutor;
|
|
@@ -9055,10 +9151,10 @@ var WorkspacesEndpoint = class {
|
|
|
9055
9151
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
9056
9152
|
}
|
|
9057
9153
|
delete(workspaceId) {
|
|
9058
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
9154
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z288.any(), { method: "DELETE" });
|
|
9059
9155
|
}
|
|
9060
9156
|
subscription(workspaceId) {
|
|
9061
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
9157
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z288.any(), { method: "GET" });
|
|
9062
9158
|
}
|
|
9063
9159
|
transferOwnership(workspaceId, body) {
|
|
9064
9160
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -9158,9 +9254,9 @@ ${bodyText}`,
|
|
|
9158
9254
|
|
|
9159
9255
|
// src/api/transport/request-executor.ts
|
|
9160
9256
|
import fetch from "node-fetch";
|
|
9161
|
-
import { z as
|
|
9162
|
-
var ResponseWrapper =
|
|
9163
|
-
result:
|
|
9257
|
+
import { z as z289 } from "zod";
|
|
9258
|
+
var ResponseWrapper = z289.object({
|
|
9259
|
+
result: z289.record(z289.any())
|
|
9164
9260
|
});
|
|
9165
9261
|
var RequestExecutor = class {
|
|
9166
9262
|
constructor(testServerConfig) {
|
|
@@ -9234,31 +9330,31 @@ var SupernovaApiClient = class {
|
|
|
9234
9330
|
};
|
|
9235
9331
|
|
|
9236
9332
|
// src/events/design-system.ts
|
|
9237
|
-
import { z as
|
|
9238
|
-
var DTOEventFigmaNodesRendered =
|
|
9239
|
-
type:
|
|
9240
|
-
designSystemId:
|
|
9241
|
-
versionId:
|
|
9242
|
-
figmaNodePersistentIds:
|
|
9243
|
-
});
|
|
9244
|
-
var DTOEventDataSourcesImported =
|
|
9245
|
-
type:
|
|
9246
|
-
designSystemId:
|
|
9247
|
-
versionId:
|
|
9248
|
-
importJobId:
|
|
9333
|
+
import { z as z290 } from "zod";
|
|
9334
|
+
var DTOEventFigmaNodesRendered = z290.object({
|
|
9335
|
+
type: z290.literal("DesignSystem.FigmaNodesRendered"),
|
|
9336
|
+
designSystemId: z290.string(),
|
|
9337
|
+
versionId: z290.string(),
|
|
9338
|
+
figmaNodePersistentIds: z290.string().array()
|
|
9339
|
+
});
|
|
9340
|
+
var DTOEventDataSourcesImported = z290.object({
|
|
9341
|
+
type: z290.literal("DesignSystem.ImportJobFinished"),
|
|
9342
|
+
designSystemId: z290.string(),
|
|
9343
|
+
versionId: z290.string(),
|
|
9344
|
+
importJobId: z290.string(),
|
|
9249
9345
|
dataSourceType: DataSourceRemoteType,
|
|
9250
|
-
dataSourceIds:
|
|
9346
|
+
dataSourceIds: z290.string().array()
|
|
9251
9347
|
});
|
|
9252
9348
|
|
|
9253
9349
|
// src/events/event.ts
|
|
9254
|
-
import { z as
|
|
9255
|
-
var DTOEvent =
|
|
9350
|
+
import { z as z291 } from "zod";
|
|
9351
|
+
var DTOEvent = z291.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
9256
9352
|
|
|
9257
9353
|
// src/sync/docs-structure-repo.ts
|
|
9258
9354
|
import PQueue from "p-queue";
|
|
9259
9355
|
|
|
9260
9356
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9261
|
-
import { z as
|
|
9357
|
+
import { z as z292 } from "zod";
|
|
9262
9358
|
|
|
9263
9359
|
// src/yjs/version-room/base.ts
|
|
9264
9360
|
var VersionRoomBaseYDoc = class {
|
|
@@ -9808,24 +9904,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
9808
9904
|
};
|
|
9809
9905
|
|
|
9810
9906
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9811
|
-
var DocumentationHierarchySettings =
|
|
9812
|
-
routingVersion:
|
|
9813
|
-
isDraftFeatureAdopted:
|
|
9814
|
-
isApprovalFeatureEnabled:
|
|
9815
|
-
approvalRequiredForPublishing:
|
|
9907
|
+
var DocumentationHierarchySettings = z292.object({
|
|
9908
|
+
routingVersion: z292.string(),
|
|
9909
|
+
isDraftFeatureAdopted: z292.boolean(),
|
|
9910
|
+
isApprovalFeatureEnabled: z292.boolean(),
|
|
9911
|
+
approvalRequiredForPublishing: z292.boolean()
|
|
9816
9912
|
});
|
|
9817
9913
|
function yjsToDocumentationHierarchy(doc) {
|
|
9818
9914
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
9819
9915
|
}
|
|
9820
9916
|
|
|
9821
9917
|
// src/yjs/design-system-content/item-configuration.ts
|
|
9822
|
-
import { z as
|
|
9823
|
-
var DTODocumentationPageRoomHeaderData =
|
|
9824
|
-
title:
|
|
9918
|
+
import { z as z293 } from "zod";
|
|
9919
|
+
var DTODocumentationPageRoomHeaderData = z293.object({
|
|
9920
|
+
title: z293.string(),
|
|
9825
9921
|
configuration: DTODocumentationItemConfigurationV2
|
|
9826
9922
|
});
|
|
9827
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
9828
|
-
title:
|
|
9923
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z293.object({
|
|
9924
|
+
title: z293.string().optional(),
|
|
9829
9925
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
9830
9926
|
});
|
|
9831
9927
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -9876,7 +9972,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
9876
9972
|
header: rawHeader
|
|
9877
9973
|
};
|
|
9878
9974
|
return {
|
|
9879
|
-
title:
|
|
9975
|
+
title: z293.string().parse(title),
|
|
9880
9976
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
9881
9977
|
};
|
|
9882
9978
|
}
|
|
@@ -9886,9 +9982,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
9886
9982
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
9887
9983
|
|
|
9888
9984
|
// src/yjs/docs-editor/model/page.ts
|
|
9889
|
-
import { z as
|
|
9890
|
-
var DocumentationPageEditorModel =
|
|
9891
|
-
blocks:
|
|
9985
|
+
import { z as z294 } from "zod";
|
|
9986
|
+
var DocumentationPageEditorModel = z294.object({
|
|
9987
|
+
blocks: z294.array(DocumentationPageContentItem)
|
|
9892
9988
|
});
|
|
9893
9989
|
|
|
9894
9990
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -12303,23 +12399,68 @@ var blocks = [
|
|
|
12303
12399
|
id: "embed",
|
|
12304
12400
|
name: "Storybook URL",
|
|
12305
12401
|
type: "Storybook",
|
|
12306
|
-
options: {
|
|
12402
|
+
options: {
|
|
12403
|
+
allowCaption: true,
|
|
12404
|
+
allowResize: true,
|
|
12405
|
+
defaultHeight: 400,
|
|
12406
|
+
renderLayoutAs: "Iframe"
|
|
12407
|
+
},
|
|
12408
|
+
variantOptions: {
|
|
12409
|
+
playground: {
|
|
12410
|
+
renderLayoutAs: "Playground",
|
|
12411
|
+
defaultHeight: 400,
|
|
12412
|
+
allowResize: true
|
|
12413
|
+
}
|
|
12414
|
+
}
|
|
12307
12415
|
}
|
|
12308
12416
|
],
|
|
12309
|
-
appearance: {
|
|
12417
|
+
appearance: {
|
|
12418
|
+
isBordered: true,
|
|
12419
|
+
hasBackground: false
|
|
12420
|
+
},
|
|
12310
12421
|
variants: [
|
|
12422
|
+
{
|
|
12423
|
+
id: "playground",
|
|
12424
|
+
name: "Playground",
|
|
12425
|
+
image: "https://cdn-assets.supernova.io/blocks/variants/storybook-playground.svg",
|
|
12426
|
+
description: "Embed a Storybook story with a preview of the component and controls to adjust the props.",
|
|
12427
|
+
layout: {
|
|
12428
|
+
type: "Column",
|
|
12429
|
+
children: ["embed"],
|
|
12430
|
+
columnAlign: "Start",
|
|
12431
|
+
columnResizing: "Fill",
|
|
12432
|
+
gap: "Medium"
|
|
12433
|
+
},
|
|
12434
|
+
maxColumns: 1,
|
|
12435
|
+
defaultColumns: 1,
|
|
12436
|
+
appearance: {}
|
|
12437
|
+
},
|
|
12311
12438
|
{
|
|
12312
12439
|
id: "default",
|
|
12313
|
-
name: "
|
|
12314
|
-
|
|
12440
|
+
name: "HTML iframe",
|
|
12441
|
+
image: "https://cdn-assets.supernova.io/blocks/variants/storybook-iframe.svg",
|
|
12442
|
+
description: "Embed a Storybook story in an iframe.",
|
|
12443
|
+
layout: {
|
|
12444
|
+
type: "Column",
|
|
12445
|
+
children: ["embed"],
|
|
12446
|
+
columnAlign: "Start",
|
|
12447
|
+
columnResizing: "Fill",
|
|
12448
|
+
gap: "Medium"
|
|
12449
|
+
},
|
|
12315
12450
|
maxColumns: 1,
|
|
12316
12451
|
defaultColumns: 1,
|
|
12317
12452
|
appearance: {}
|
|
12318
12453
|
}
|
|
12319
12454
|
],
|
|
12320
|
-
defaultVariantKey: "
|
|
12455
|
+
defaultVariantKey: "playground"
|
|
12456
|
+
},
|
|
12457
|
+
behavior: {
|
|
12458
|
+
dataType: "Item",
|
|
12459
|
+
items: {
|
|
12460
|
+
numberOfItems: 1,
|
|
12461
|
+
allowLinks: false
|
|
12462
|
+
}
|
|
12321
12463
|
},
|
|
12322
|
-
behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
|
|
12323
12464
|
editorOptions: {
|
|
12324
12465
|
onboarding: {
|
|
12325
12466
|
helpText: "Embed a Storybook story to your documentation.",
|
|
@@ -13436,7 +13577,7 @@ var blocks = [
|
|
|
13436
13577
|
|
|
13437
13578
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
13438
13579
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
13439
|
-
import { z as
|
|
13580
|
+
import { z as z295 } from "zod";
|
|
13440
13581
|
function yDocToPage(yDoc, definitions) {
|
|
13441
13582
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
13442
13583
|
}
|
|
@@ -13512,7 +13653,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
13512
13653
|
if (!id) return null;
|
|
13513
13654
|
return {
|
|
13514
13655
|
id,
|
|
13515
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
13656
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z295.string()) ?? "",
|
|
13516
13657
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
13517
13658
|
};
|
|
13518
13659
|
}
|
|
@@ -13546,7 +13687,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
13546
13687
|
});
|
|
13547
13688
|
}
|
|
13548
13689
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
13549
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
13690
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z295.string());
|
|
13550
13691
|
if (!definitionId) {
|
|
13551
13692
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
13552
13693
|
return [];
|
|
@@ -13587,7 +13728,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
13587
13728
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13588
13729
|
if (!id) return null;
|
|
13589
13730
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13590
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
13731
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z295.string().optional()));
|
|
13591
13732
|
return {
|
|
13592
13733
|
id,
|
|
13593
13734
|
type: "Block",
|
|
@@ -13710,9 +13851,9 @@ function parseRichTextAttribute(mark) {
|
|
|
13710
13851
|
return null;
|
|
13711
13852
|
}
|
|
13712
13853
|
function parseProsemirrorLink(mark) {
|
|
13713
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
13854
|
+
const href = getProsemirrorAttribute(mark, "href", z295.string().optional());
|
|
13714
13855
|
if (!href) return null;
|
|
13715
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
13856
|
+
const target = getProsemirrorAttribute(mark, "target", z295.string().optional());
|
|
13716
13857
|
const openInNewTab = target === "_blank";
|
|
13717
13858
|
if (href.startsWith("@")) {
|
|
13718
13859
|
return {
|
|
@@ -13731,9 +13872,9 @@ function parseProsemirrorLink(mark) {
|
|
|
13731
13872
|
}
|
|
13732
13873
|
}
|
|
13733
13874
|
function parseProsemirrorCommentHighlight(mark) {
|
|
13734
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
13875
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z295.string().optional());
|
|
13735
13876
|
if (!highlightId) return null;
|
|
13736
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
13877
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z295.boolean().optional()) ?? false;
|
|
13737
13878
|
return {
|
|
13738
13879
|
type: "Comment",
|
|
13739
13880
|
commentHighlightId: highlightId,
|
|
@@ -13744,7 +13885,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13744
13885
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13745
13886
|
if (!id) return null;
|
|
13746
13887
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13747
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
13888
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z295.boolean().optional()) !== false;
|
|
13748
13889
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
13749
13890
|
if (!tableChild) {
|
|
13750
13891
|
return emptyTable(id, variantId, 0);
|
|
@@ -13790,9 +13931,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13790
13931
|
function parseAsTableCell(prosemirrorNode) {
|
|
13791
13932
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13792
13933
|
if (!id) return null;
|
|
13793
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
13934
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z295.string().optional());
|
|
13794
13935
|
let columnWidth;
|
|
13795
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
13936
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z295.array(z295.number()).nullish());
|
|
13796
13937
|
if (columnWidthArray) {
|
|
13797
13938
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
13798
13939
|
}
|
|
@@ -13828,7 +13969,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
13828
13969
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
13829
13970
|
};
|
|
13830
13971
|
case "image":
|
|
13831
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13972
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z295.string());
|
|
13832
13973
|
if (!items) return null;
|
|
13833
13974
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
13834
13975
|
if (!parsedItems.success) return null;
|
|
@@ -13942,7 +14083,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
13942
14083
|
);
|
|
13943
14084
|
}
|
|
13944
14085
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
13945
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14086
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z295.string());
|
|
13946
14087
|
if (!itemsString) return null;
|
|
13947
14088
|
const itemsJson = JSON.parse(itemsString);
|
|
13948
14089
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -13953,18 +14094,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
13953
14094
|
}
|
|
13954
14095
|
function parseAppearance(prosemirrorNode) {
|
|
13955
14096
|
let appearance = {};
|
|
13956
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
14097
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z295.string().optional());
|
|
13957
14098
|
if (rawAppearanceString) {
|
|
13958
14099
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
13959
14100
|
if (parsedAppearance.success) {
|
|
13960
14101
|
appearance = parsedAppearance.data;
|
|
13961
14102
|
}
|
|
13962
14103
|
}
|
|
13963
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
14104
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z295.number().optional());
|
|
13964
14105
|
if (columns) {
|
|
13965
14106
|
appearance.numberOfColumns = columns;
|
|
13966
14107
|
}
|
|
13967
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
14108
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z295.string().optional());
|
|
13968
14109
|
if (backgroundColor) {
|
|
13969
14110
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
13970
14111
|
if (parsedColor.success) {
|
|
@@ -14063,12 +14204,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
14063
14204
|
}
|
|
14064
14205
|
}
|
|
14065
14206
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
14066
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
14207
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z295.string());
|
|
14067
14208
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
14068
14209
|
return id;
|
|
14069
14210
|
}
|
|
14070
14211
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
14071
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
14212
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z295.string()));
|
|
14072
14213
|
}
|
|
14073
14214
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
14074
14215
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -14627,8 +14768,12 @@ export {
|
|
|
14627
14768
|
DTOCodeComponent,
|
|
14628
14769
|
DTOCodeComponentCreateInput,
|
|
14629
14770
|
DTOCodeComponentListResponse,
|
|
14771
|
+
DTOCodeComponentParentType,
|
|
14630
14772
|
DTOCodeComponentProperty,
|
|
14773
|
+
DTOCodeComponentResolvedType,
|
|
14774
|
+
DTOCodeComponentResolvedTypeKind,
|
|
14631
14775
|
DTOCodeComponentResponse,
|
|
14776
|
+
DTOCodeComponentUpsertResponse,
|
|
14632
14777
|
DTOCodeComponentsCreateInput,
|
|
14633
14778
|
DTOColorTokenInlineData,
|
|
14634
14779
|
DTOCreateDocumentationGroupInput,
|
|
@@ -14689,7 +14834,7 @@ export {
|
|
|
14689
14834
|
DTODesignTokenResponse,
|
|
14690
14835
|
DTODiffCountBase,
|
|
14691
14836
|
DTODocumentationAnalyticsDiffPayload,
|
|
14692
|
-
|
|
14837
|
+
DTODocumentationAnalyticsRequest,
|
|
14693
14838
|
DTODocumentationAnalyticsTimeFrame,
|
|
14694
14839
|
DTODocumentationAnalyticsTimeFrameComparison,
|
|
14695
14840
|
DTODocumentationDraftChangeType,
|
|
@@ -14732,6 +14877,8 @@ export {
|
|
|
14732
14877
|
DTODocumentationPageCreateActionOutputV2,
|
|
14733
14878
|
DTODocumentationPageDeleteActionInputV2,
|
|
14734
14879
|
DTODocumentationPageDeleteActionOutputV2,
|
|
14880
|
+
DTODocumentationPageDependencies,
|
|
14881
|
+
DTODocumentationPageDependenciesGetResponse,
|
|
14735
14882
|
DTODocumentationPageDuplicateActionInputV2,
|
|
14736
14883
|
DTODocumentationPageDuplicateActionOutputV2,
|
|
14737
14884
|
DTODocumentationPageIntervalDifferenceResponse,
|
|
@@ -14896,7 +15043,11 @@ export {
|
|
|
14896
15043
|
DTOPublishDocumentationChanges,
|
|
14897
15044
|
DTOPublishDocumentationRequest,
|
|
14898
15045
|
DTOPublishDocumentationResponse,
|
|
15046
|
+
DTOPublishedDocAnalyticsComparisonData,
|
|
15047
|
+
DTOPublishedDocPageAnalyticsComparisonData,
|
|
14899
15048
|
DTOPublishedDocPageVisitData,
|
|
15049
|
+
DTOPublishedDocVisitData,
|
|
15050
|
+
DTOPublishedDocVisitHeatMapWeek,
|
|
14900
15051
|
DTORenderedAssetFile,
|
|
14901
15052
|
DTORestoreDocumentationGroupInput,
|
|
14902
15053
|
DTORestoreDocumentationPageInput,
|
|
@@ -15024,9 +15175,13 @@ export {
|
|
|
15024
15175
|
applyPrivacyConfigurationToNestedItems,
|
|
15025
15176
|
blockToProsemirrorNode,
|
|
15026
15177
|
buildDocPagePublishPaths,
|
|
15027
|
-
calculateChangeOverTime,
|
|
15028
15178
|
calculateElementParentChain,
|
|
15029
15179
|
computeDocsHierarchy,
|
|
15180
|
+
documentationAnalyticsToComparisonDto,
|
|
15181
|
+
documentationAnalyticsToGlobalDto,
|
|
15182
|
+
documentationAnalyticsToHeatMapDto,
|
|
15183
|
+
documentationAnalyticsToPageComparisonDto,
|
|
15184
|
+
documentationAnalyticsToPageDto,
|
|
15030
15185
|
documentationItemConfigurationToDTOV1,
|
|
15031
15186
|
documentationItemConfigurationToDTOV2,
|
|
15032
15187
|
documentationPageToDTOV2,
|
|
@@ -15058,7 +15213,6 @@ export {
|
|
|
15058
15213
|
pageToProsemirrorDoc,
|
|
15059
15214
|
pageToYDoc,
|
|
15060
15215
|
pageToYXmlFragment,
|
|
15061
|
-
pageVisitsToDto,
|
|
15062
15216
|
pipelineToDto,
|
|
15063
15217
|
prosemirrorDocToPage,
|
|
15064
15218
|
prosemirrorDocToRichTextPropertyValue,
|