@supernova-studio/client 1.0.0-alpha.2 → 1.0.0-alpha.21
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 +11526 -3485
- package/dist/index.d.ts +11526 -3485
- package/dist/index.js +1142 -226
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3959 -3043
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -46,6 +46,7 @@ var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
|
|
49
50
|
|
|
50
51
|
|
|
51
52
|
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
@@ -127,6 +128,8 @@ var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequire
|
|
|
127
128
|
|
|
128
129
|
|
|
129
130
|
|
|
131
|
+
|
|
132
|
+
|
|
130
133
|
|
|
131
134
|
|
|
132
135
|
|
|
@@ -477,6 +480,63 @@ var PulsarCustomBlock = _zod.z.object({
|
|
|
477
480
|
mode: nullishToOptional(_zod.z.enum(["array", "block"])),
|
|
478
481
|
properties: nullishToOptional(_zod.z.array(PulsarBaseProperty)).transform((v) => _nullishCoalesce(v, () => ( [])))
|
|
479
482
|
});
|
|
483
|
+
var PrimitiveValue = _zod.z.number().or(_zod.z.boolean()).or(_zod.z.string());
|
|
484
|
+
var ArrayValue = _zod.z.array(_zod.z.string());
|
|
485
|
+
var ObjectValue = _zod.z.record(_zod.z.string());
|
|
486
|
+
var ExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
|
|
487
|
+
var ExporterPropertyType = _zod.z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
488
|
+
var PropertyDefinitionBase = _zod.z.object({
|
|
489
|
+
key: _zod.z.string(),
|
|
490
|
+
title: _zod.z.string(),
|
|
491
|
+
description: _zod.z.string(),
|
|
492
|
+
category: _zod.z.string().optional(),
|
|
493
|
+
dependsOn: _zod.z.record(_zod.z.boolean()).optional()
|
|
494
|
+
});
|
|
495
|
+
var ExporterPropertyDefinitionEnumOption = _zod.z.object({
|
|
496
|
+
label: _zod.z.string(),
|
|
497
|
+
description: _zod.z.string()
|
|
498
|
+
});
|
|
499
|
+
var ExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
|
|
500
|
+
type: _zod.z.literal(ExporterPropertyType.Enum.Enum),
|
|
501
|
+
options: _zod.z.record(ExporterPropertyDefinitionEnumOption),
|
|
502
|
+
default: _zod.z.string()
|
|
503
|
+
});
|
|
504
|
+
var ExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
|
|
505
|
+
type: _zod.z.literal(ExporterPropertyType.Enum.Boolean),
|
|
506
|
+
default: _zod.z.boolean()
|
|
507
|
+
});
|
|
508
|
+
var ExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
|
|
509
|
+
type: _zod.z.literal(ExporterPropertyType.Enum.String),
|
|
510
|
+
default: _zod.z.string()
|
|
511
|
+
});
|
|
512
|
+
var ExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
|
|
513
|
+
type: _zod.z.literal(ExporterPropertyType.Enum.Number),
|
|
514
|
+
default: _zod.z.number()
|
|
515
|
+
});
|
|
516
|
+
var ExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
|
|
517
|
+
type: _zod.z.literal(ExporterPropertyType.Enum.Array),
|
|
518
|
+
default: ArrayValue
|
|
519
|
+
});
|
|
520
|
+
var ExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
|
|
521
|
+
type: _zod.z.literal(ExporterPropertyType.Enum.Object),
|
|
522
|
+
default: ObjectValue,
|
|
523
|
+
allowedKeys: _zod.z.object({
|
|
524
|
+
options: _zod.z.string().array(),
|
|
525
|
+
type: _zod.z.string()
|
|
526
|
+
}).optional(),
|
|
527
|
+
allowedValues: _zod.z.object({
|
|
528
|
+
type: _zod.z.string()
|
|
529
|
+
}).optional()
|
|
530
|
+
});
|
|
531
|
+
var ExporterPropertyDefinition = _zod.z.discriminatedUnion("type", [
|
|
532
|
+
ExporterPropertyDefinitionEnum,
|
|
533
|
+
ExporterPropertyDefinitionBoolean,
|
|
534
|
+
ExporterPropertyDefinitionString,
|
|
535
|
+
ExporterPropertyDefinitionNumber,
|
|
536
|
+
ExporterPropertyDefinitionArray,
|
|
537
|
+
ExporterPropertyDefinitionObject
|
|
538
|
+
]);
|
|
539
|
+
var ExporterPropertyDefinitionValueMap = _zod.z.record(ExporterPropertyDefinitionValue);
|
|
480
540
|
var ExporterType = _zod.z.enum(["code", "documentation"]);
|
|
481
541
|
var ExporterSource = _zod.z.enum(["git", "upload"]);
|
|
482
542
|
var ExporterTag = _zod.z.string();
|
|
@@ -494,6 +554,7 @@ var ExporterPulsarDetails = _zod.z.object({
|
|
|
494
554
|
configurationProperties: nullishToOptional(_zod.z.array(PulsarContributionConfigurationProperty)).default([]),
|
|
495
555
|
customBlocks: nullishToOptional(_zod.z.array(PulsarCustomBlock)).default([]),
|
|
496
556
|
blockVariants: nullishToOptional(_zod.z.record(_zod.z.string(), _zod.z.array(PulsarContributionVariant))).default({}),
|
|
557
|
+
properties: nullishToOptional(ExporterPropertyDefinition.array()),
|
|
497
558
|
usesBrands: nullishToOptional(_zod.z.boolean()).default(false),
|
|
498
559
|
usesThemes: nullishToOptional(_zod.z.boolean()).default(false),
|
|
499
560
|
usesLocale: nullishToOptional(_zod.z.boolean()).default(false)
|
|
@@ -512,7 +573,8 @@ var Exporter = _zod.z.object({
|
|
|
512
573
|
isPrivate: _zod.z.boolean(),
|
|
513
574
|
details: ExporterDetails,
|
|
514
575
|
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
515
|
-
storagePath: nullishToOptional(_zod.z.string()).default("")
|
|
576
|
+
storagePath: nullishToOptional(_zod.z.string()).default(""),
|
|
577
|
+
properties: nullishToOptional(ExporterPropertyDefinition.array())
|
|
516
578
|
});
|
|
517
579
|
var AssetDynamoRecord = _zod.z.object({
|
|
518
580
|
path: _zod.z.string(),
|
|
@@ -838,6 +900,12 @@ function areShallowObjectsEqual(lhs, rhs) {
|
|
|
838
900
|
}
|
|
839
901
|
return true;
|
|
840
902
|
}
|
|
903
|
+
function recordToMap(record) {
|
|
904
|
+
const map = /* @__PURE__ */ new Map();
|
|
905
|
+
for (const [k, v] of Object.entries(record))
|
|
906
|
+
map.set(k, v);
|
|
907
|
+
return map;
|
|
908
|
+
}
|
|
841
909
|
var ContentLoadInstruction = _zod.z.object({
|
|
842
910
|
from: _zod.z.string(),
|
|
843
911
|
to: _zod.z.string(),
|
|
@@ -1709,6 +1777,7 @@ var PageBlockCodeLanguage = _zod.z.enum([
|
|
|
1709
1777
|
]);
|
|
1710
1778
|
var PageBlockAlignment = _zod.z.enum(["Left", "Center", "Stretch", "Right"]);
|
|
1711
1779
|
var PageBlockThemeType = _zod.z.enum(["Override", "Comparison"]);
|
|
1780
|
+
var PageBlockTokenNameFormat = _zod.z.enum(["Name", "GroupAndName", "FullPath", "CustomProperty"]);
|
|
1712
1781
|
var PageBlockAssetType = _zod.z.enum(["image", "figmaFrame"]);
|
|
1713
1782
|
var PageBlockTilesAlignment = _zod.z.enum(["Center", "FrameHeight"]);
|
|
1714
1783
|
var PageBlockTilesLayout = _zod.z.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
|
|
@@ -1783,6 +1852,7 @@ var PageBlockFigmaFrameProperties = _zod.z.object({
|
|
|
1783
1852
|
})
|
|
1784
1853
|
),
|
|
1785
1854
|
alignment: PageBlockTilesAlignment,
|
|
1855
|
+
previewContainerHeight: nullishToOptional(_zod.z.number()),
|
|
1786
1856
|
layout: PageBlockTilesLayout,
|
|
1787
1857
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1788
1858
|
showTitles: _zod.z.boolean()
|
|
@@ -1814,8 +1884,17 @@ var PageBlockFigmaComponentBlockConfig = _zod.z.object({
|
|
|
1814
1884
|
showPropertyList: nullishToOptional(_zod.z.boolean()),
|
|
1815
1885
|
previewOrderIds: nullishToOptional(_zod.z.array(_zod.z.string())),
|
|
1816
1886
|
previewContainerSize: nullishToOptional(_zod.z.enum(["Centered", "NaturalHeight"])),
|
|
1887
|
+
previewContainerHeight: nullishToOptional(_zod.z.number()),
|
|
1817
1888
|
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
1818
1889
|
});
|
|
1890
|
+
var PageBlockTokenBlockConfig = _zod.z.object({
|
|
1891
|
+
tokenNameFormat: nullishToOptional(PageBlockTokenNameFormat),
|
|
1892
|
+
tokenNameCustomPropertyId: nullishToOptional(_zod.z.string())
|
|
1893
|
+
});
|
|
1894
|
+
var PageBlockAssetBlockConfig = _zod.z.object({
|
|
1895
|
+
showSearch: nullishToOptional(_zod.z.boolean()),
|
|
1896
|
+
showAssetDescription: nullishToOptional(_zod.z.boolean())
|
|
1897
|
+
});
|
|
1819
1898
|
var PageBlockSelectedFigmaComponent = _zod.z.object({
|
|
1820
1899
|
figmaComponentId: _zod.z.string(),
|
|
1821
1900
|
selectedComponentProperties: _zod.z.string().array()
|
|
@@ -1846,7 +1925,9 @@ var PageBlockGuideline = _zod.z.object({
|
|
|
1846
1925
|
type: _zod.z.string(),
|
|
1847
1926
|
imageAlt: nullishToOptional(_zod.z.string()),
|
|
1848
1927
|
imageCaption: nullishToOptional(_zod.z.string()),
|
|
1849
|
-
imageAlignment: nullishToOptional(PageBlockAlignment)
|
|
1928
|
+
imageAlignment: nullishToOptional(PageBlockAlignment),
|
|
1929
|
+
openLightbox: nullishToOptional(_zod.z.boolean()),
|
|
1930
|
+
isBordered: nullishToOptional(_zod.z.boolean())
|
|
1850
1931
|
});
|
|
1851
1932
|
var PageBlockBaseV1 = _zod.z.object({
|
|
1852
1933
|
persistentId: _zod.z.string(),
|
|
@@ -1873,6 +1954,8 @@ var PageBlockBaseV1 = _zod.z.object({
|
|
|
1873
1954
|
asset: nullishToOptional(PageBlockAsset),
|
|
1874
1955
|
alignment: nullishToOptional(PageBlockAlignment),
|
|
1875
1956
|
imageAlt: nullishToOptional(_zod.z.string()),
|
|
1957
|
+
openLightbox: nullishToOptional(_zod.z.boolean()),
|
|
1958
|
+
isBordered: nullishToOptional(_zod.z.boolean()),
|
|
1876
1959
|
// Shortcuts block
|
|
1877
1960
|
shortcuts: nullishToOptional(_zod.z.array(PageBlockShortcut)),
|
|
1878
1961
|
// Guidelines
|
|
@@ -1894,10 +1977,13 @@ var PageBlockBaseV1 = _zod.z.object({
|
|
|
1894
1977
|
// Tables
|
|
1895
1978
|
tableProperties: nullishToOptional(PageBlockTableProperties),
|
|
1896
1979
|
columnId: nullishToOptional(_zod.z.string()),
|
|
1897
|
-
//
|
|
1980
|
+
// Design tokens
|
|
1898
1981
|
theme: nullishToOptional(PageBlockTheme),
|
|
1899
1982
|
swatches: nullishToOptional(PageBlockSwatch.array()),
|
|
1900
1983
|
blacklistedElementProperties: nullishToOptional(_zod.z.array(_zod.z.string())),
|
|
1984
|
+
tokenBlockConfig: nullishToOptional(PageBlockTokenBlockConfig),
|
|
1985
|
+
// (Vector) assets
|
|
1986
|
+
assetBlockConfig: nullishToOptional(PageBlockAssetBlockConfig),
|
|
1901
1987
|
// Figma components
|
|
1902
1988
|
figmaComponentsBlockConfig: nullishToOptional(PageBlockFigmaComponentBlockConfig),
|
|
1903
1989
|
selectedFigmaComponent: nullishToOptional(PageBlockSelectedFigmaComponent),
|
|
@@ -2195,7 +2281,6 @@ var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
|
|
|
2195
2281
|
var PageBlockTableCellAlignment = _zod.z.enum(["Left", "Center", "Right"]);
|
|
2196
2282
|
var PageBlockPreviewContainerSize = _zod.z.enum(["Centered", "NaturalHeight"]);
|
|
2197
2283
|
var PageBlockThemeDisplayMode = _zod.z.enum(["Split", "Override"]);
|
|
2198
|
-
var PageBlockTokenNameFormat = _zod.z.enum(["Name", "GroupAndName", "FullPath", "CustomProperty"]);
|
|
2199
2284
|
var PageBlockTokenValueFormat = _zod.z.enum(["ResolvedValue", "ReferenceName", "NoValue"]);
|
|
2200
2285
|
var PageBlockImageResourceReference = _zod.z.object({
|
|
2201
2286
|
resourceId: _zod.z.string(),
|
|
@@ -2444,7 +2529,9 @@ var PageBlockItemTableImageNode = _zod.z.object({
|
|
|
2444
2529
|
caption: PageBlockItemImageValue.shape.caption,
|
|
2445
2530
|
alt: PageBlockItemImageValue.shape.alt,
|
|
2446
2531
|
value: PageBlockItemImageValue.shape.value,
|
|
2447
|
-
alignment: PageBlockItemImageValue.shape.alignment
|
|
2532
|
+
alignment: PageBlockItemImageValue.shape.alignment,
|
|
2533
|
+
openLightbox: PageBlockItemImageValue.shape.openLightbox,
|
|
2534
|
+
isBordered: PageBlockItemImageValue.shape.isBordered
|
|
2448
2535
|
});
|
|
2449
2536
|
var PageBlockItemTableNode = _zod.z.discriminatedUnion("type", [
|
|
2450
2537
|
PageBlockItemTableRichTextNode,
|
|
@@ -2628,23 +2715,33 @@ var FigmaFileStructureElementData = _zod.z.object({
|
|
|
2628
2715
|
assetsInFile: FigmaFileStructureStatistics
|
|
2629
2716
|
})
|
|
2630
2717
|
});
|
|
2718
|
+
var FigmaNodeRenderState = _zod.z.enum(["InProgress", "Success", "Failed"]);
|
|
2631
2719
|
var FigmaNodeRenderFormat = _zod.z.enum(["Png", "Svg"]);
|
|
2632
|
-
var
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2720
|
+
var FigmaNodeRenderErrorType = _zod.z.enum(["MissingIntegration", "NodeNotFound", "RenderError"]);
|
|
2721
|
+
var FigmaNodeRelinkData = _zod.z.object({
|
|
2722
|
+
fileId: _zod.z.string()
|
|
2723
|
+
});
|
|
2724
|
+
var FigmaNodeRenderedImage = _zod.z.object({
|
|
2725
|
+
resourceId: _zod.z.string(),
|
|
2726
|
+
format: FigmaNodeRenderFormat,
|
|
2727
|
+
scale: nullishToOptional(_zod.z.number()),
|
|
2728
|
+
width: nullishToOptional(_zod.z.number()),
|
|
2729
|
+
height: nullishToOptional(_zod.z.number()),
|
|
2730
|
+
url: nullishToOptional(_zod.z.string()),
|
|
2731
|
+
originKey: nullishToOptional(_zod.z.string())
|
|
2732
|
+
});
|
|
2733
|
+
var FigmaNodeRenderError = _zod.z.object({
|
|
2734
|
+
type: FigmaNodeRenderErrorType
|
|
2645
2735
|
});
|
|
2646
|
-
var
|
|
2647
|
-
|
|
2736
|
+
var FigmaNodeReferenceData = _zod.z.object({
|
|
2737
|
+
sceneNodeId: _zod.z.string(),
|
|
2738
|
+
format: FigmaNodeRenderFormat,
|
|
2739
|
+
scale: nullishToOptional(_zod.z.number()),
|
|
2740
|
+
renderState: FigmaNodeRenderState,
|
|
2741
|
+
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
2742
|
+
renderError: FigmaNodeRenderError.optional(),
|
|
2743
|
+
hasSource: _zod.z.boolean(),
|
|
2744
|
+
relinkData: FigmaNodeRelinkData.optional()
|
|
2648
2745
|
});
|
|
2649
2746
|
var FontFamilyValue = _zod.z.string();
|
|
2650
2747
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
@@ -2729,6 +2826,7 @@ var ShadowLayerValue = _zod.z.object({
|
|
|
2729
2826
|
type: ShadowType
|
|
2730
2827
|
});
|
|
2731
2828
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
2829
|
+
var ShadowValue = _zod.z.array(ShadowTokenDataBase);
|
|
2732
2830
|
var ShadowTokenData = tokenAliasOrValue(_zod.z.array(ShadowTokenDataBase));
|
|
2733
2831
|
var SizeUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
|
|
2734
2832
|
var SizeValue = _zod.z.object({
|
|
@@ -3219,7 +3317,7 @@ var ImportJob = Entity.extend({
|
|
|
3219
3317
|
var ImportFunctionInput = _zod.z.object({
|
|
3220
3318
|
importJobId: _zod.z.string(),
|
|
3221
3319
|
importContextId: _zod.z.string(),
|
|
3222
|
-
designSystemId: _zod.z.string()
|
|
3320
|
+
designSystemId: _zod.z.string()
|
|
3223
3321
|
});
|
|
3224
3322
|
var ImportedFigmaSourceData = _zod.z.object({
|
|
3225
3323
|
sourceId: _zod.z.string(),
|
|
@@ -3246,10 +3344,16 @@ var FigmaImportBaseContext = _zod.z.object({
|
|
|
3246
3344
|
*/
|
|
3247
3345
|
importWarnings: _zod.z.record(ImportWarning.array()).default({})
|
|
3248
3346
|
});
|
|
3347
|
+
var FeatureFlagsKeepAliases = _zod.z.object({
|
|
3348
|
+
isTypographyPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3349
|
+
isGradientPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3350
|
+
isShadowPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3351
|
+
isNonCompatibleTypeChangesEnabled: _zod.z.boolean().default(false)
|
|
3352
|
+
});
|
|
3249
3353
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3250
3354
|
sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
|
|
3251
3355
|
shadowOpacityOptional: _zod.z.boolean().default(false),
|
|
3252
|
-
|
|
3356
|
+
featureFlagsKeepAliases: FeatureFlagsKeepAliases.default({})
|
|
3253
3357
|
});
|
|
3254
3358
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
3255
3359
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -3376,11 +3480,7 @@ var DataSourceImportModel = _zod.z.object({
|
|
|
3376
3480
|
fileName: _zod.z.string().optional(),
|
|
3377
3481
|
thumbnailUrl: _zod.z.string().optional()
|
|
3378
3482
|
});
|
|
3379
|
-
var
|
|
3380
|
-
png: FigmaPngRenderImportModel,
|
|
3381
|
-
svg: FigmaSvgRenderImportModel
|
|
3382
|
-
});
|
|
3383
|
-
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
3483
|
+
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeBase.extend({
|
|
3384
3484
|
children: _zod.z.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
3385
3485
|
});
|
|
3386
3486
|
var FigmaFileStructureImportModelPart = _zod.z.object({
|
|
@@ -3602,6 +3702,14 @@ var DocumentationPage = _zod.z.object({
|
|
|
3602
3702
|
createdAt: _zod.z.coerce.date(),
|
|
3603
3703
|
updatedAt: _zod.z.coerce.date()
|
|
3604
3704
|
});
|
|
3705
|
+
var PageRedirect = _zod.z.object({
|
|
3706
|
+
id: _zod.z.string(),
|
|
3707
|
+
pagePersistentId: _zod.z.string(),
|
|
3708
|
+
path: _zod.z.string(),
|
|
3709
|
+
createdAt: _zod.z.coerce.date(),
|
|
3710
|
+
updatedAt: _zod.z.coerce.date(),
|
|
3711
|
+
designSystemId: _zod.z.string()
|
|
3712
|
+
});
|
|
3605
3713
|
var DocumentationSettings = _zod.z.object({
|
|
3606
3714
|
// Basic
|
|
3607
3715
|
designSystemVersionId: _zod.z.string(),
|
|
@@ -3668,6 +3776,11 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
|
3668
3776
|
function pickLatestGroupSnapshots(snapshots) {
|
|
3669
3777
|
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3670
3778
|
}
|
|
3779
|
+
var FigmaNodeRendererPayload = _zod.z.object({
|
|
3780
|
+
designSystemId: _zod.z.string(),
|
|
3781
|
+
versionId: _zod.z.string(),
|
|
3782
|
+
figmaNodePersistentIds: _zod.z.string().array()
|
|
3783
|
+
});
|
|
3671
3784
|
var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
3672
3785
|
var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3673
3786
|
var NpmRegistryBasicAuthConfig = _zod.z.object({
|
|
@@ -3836,6 +3949,26 @@ var UserNotificationSettings = _zod.z.object({
|
|
|
3836
3949
|
});
|
|
3837
3950
|
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3838
3951
|
var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3952
|
+
var UserTheme = _zod.z.object({
|
|
3953
|
+
preset: _zod.z.enum([
|
|
3954
|
+
"Custom",
|
|
3955
|
+
"Default",
|
|
3956
|
+
"HighContrast",
|
|
3957
|
+
"DefaultDark",
|
|
3958
|
+
"HighContrastDark",
|
|
3959
|
+
"SpaceBlue",
|
|
3960
|
+
"DarkGrey",
|
|
3961
|
+
"SystemPreference",
|
|
3962
|
+
"Sepia"
|
|
3963
|
+
]).optional(),
|
|
3964
|
+
backgroundColor: _zod.z.string().optional(),
|
|
3965
|
+
accentColor: _zod.z.string().optional(),
|
|
3966
|
+
contrast: _zod.z.number().min(16).max(100).optional(),
|
|
3967
|
+
isSecondaryEnabled: _zod.z.boolean().optional(),
|
|
3968
|
+
secondaryBackgroundColor: _zod.z.string().optional(),
|
|
3969
|
+
secondaryContrast: _zod.z.number().min(16).max(100).optional(),
|
|
3970
|
+
isEditorWhite: _zod.z.boolean().optional()
|
|
3971
|
+
});
|
|
3839
3972
|
var UserOnboarding = _zod.z.object({
|
|
3840
3973
|
companyName: _zod.z.string().optional(),
|
|
3841
3974
|
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
@@ -3854,7 +3987,8 @@ var UserProfile = _zod.z.object({
|
|
|
3854
3987
|
name: _zod.z.string(),
|
|
3855
3988
|
avatar: _zod.z.string().optional(),
|
|
3856
3989
|
nickname: _zod.z.string().optional(),
|
|
3857
|
-
onboarding: UserOnboarding.optional()
|
|
3990
|
+
onboarding: UserOnboarding.optional(),
|
|
3991
|
+
theme: UserTheme.optional()
|
|
3858
3992
|
});
|
|
3859
3993
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3860
3994
|
avatar: true
|
|
@@ -4209,6 +4343,15 @@ var ExportDestinationsMap = _zod.z.object({
|
|
|
4209
4343
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
4210
4344
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
4211
4345
|
});
|
|
4346
|
+
var ExportDestinationsMapUpdate = _zod.z.object({
|
|
4347
|
+
webhookUrl: _zod.z.string().nullish(),
|
|
4348
|
+
destinationSnDocs: ExporterDestinationDocs.nullish(),
|
|
4349
|
+
destinationS3: ExporterDestinationS3.nullish(),
|
|
4350
|
+
destinationGithub: ExporterDestinationGithub.nullish(),
|
|
4351
|
+
destinationAzure: ExporterDestinationAzure.nullish(),
|
|
4352
|
+
destinationGitlab: ExporterDestinationGitlab.nullish(),
|
|
4353
|
+
destinationBitbucket: ExporterDestinationBitbucket.nullish()
|
|
4354
|
+
});
|
|
4212
4355
|
var PipelineEventType = _zod.z.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4213
4356
|
var PipelineDestinationGitType = _zod.z.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4214
4357
|
var PipelineDestinationExtraType = _zod.z.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
@@ -4224,6 +4367,7 @@ var Pipeline = _zod.z.object({
|
|
|
4224
4367
|
brandPersistentId: _zod.z.string().optional(),
|
|
4225
4368
|
themePersistentId: _zod.z.string().optional(),
|
|
4226
4369
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
4370
|
+
exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
|
|
4227
4371
|
// Destinations
|
|
4228
4372
|
...ExportDestinationsMap.shape
|
|
4229
4373
|
});
|
|
@@ -4254,7 +4398,8 @@ var DesignSystemVersionRoomInitialState = _zod.z.object({
|
|
|
4254
4398
|
pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
|
|
4255
4399
|
groupSnapshots: _zod.z.array(ElementGroupSnapshot),
|
|
4256
4400
|
pageApprovals: _zod.z.array(DocumentationPageApproval),
|
|
4257
|
-
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4401
|
+
internalSettings: DesignSystemVersionRoomInternalSettings,
|
|
4402
|
+
pageHashes: _zod.z.record(_zod.z.string()).optional()
|
|
4258
4403
|
});
|
|
4259
4404
|
var DesignSystemVersionRoomUpdate = _zod.z.object({
|
|
4260
4405
|
pages: _zod.z.array(DocumentationPageV2),
|
|
@@ -4267,7 +4412,8 @@ var DesignSystemVersionRoomUpdate = _zod.z.object({
|
|
|
4267
4412
|
groupSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
4268
4413
|
pageHashesToUpdate: _zod.z.record(_zod.z.string(), _zod.z.string()),
|
|
4269
4414
|
pageApprovals: _zod.z.array(DocumentationPageApproval),
|
|
4270
|
-
pageApprovalIdsToDelete: _zod.z.array(_zod.z.string())
|
|
4415
|
+
pageApprovalIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
4416
|
+
executedTransactionIds: _zod.z.array(_zod.z.string())
|
|
4271
4417
|
});
|
|
4272
4418
|
var DocumentationPageRoom = Entity.extend({
|
|
4273
4419
|
designSystemVersionId: _zod.z.string(),
|
|
@@ -4291,16 +4437,15 @@ var RestoredDocumentationPage = _zod.z.object({
|
|
|
4291
4437
|
page: DocumentationPageV2,
|
|
4292
4438
|
pageParent: ElementGroup,
|
|
4293
4439
|
pageContent: DocumentationPageContentData,
|
|
4294
|
-
contentHash: _zod.z.string()
|
|
4295
|
-
snapshotId: _zod.z.string(),
|
|
4296
|
-
roomId: _zod.z.string().optional()
|
|
4440
|
+
contentHash: _zod.z.string()
|
|
4297
4441
|
});
|
|
4298
4442
|
var RestoredDocumentationGroup = _zod.z.object({
|
|
4299
4443
|
group: ElementGroup,
|
|
4300
4444
|
parent: ElementGroup
|
|
4301
4445
|
});
|
|
4302
4446
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
4303
|
-
RoomTypeEnum2["
|
|
4447
|
+
RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
|
|
4448
|
+
RoomTypeEnum2["DocumentationPage"] = "doc-page";
|
|
4304
4449
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
4305
4450
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4306
4451
|
return RoomTypeEnum2;
|
|
@@ -4531,7 +4676,8 @@ var ExportJobContext = _zod.z.object({
|
|
|
4531
4676
|
});
|
|
4532
4677
|
var ExportJobExporterConfiguration = _zod.z.object({
|
|
4533
4678
|
exporterPackageUrl: _zod.z.string(),
|
|
4534
|
-
exporterPropertyValues: ExporterPropertyValue.array()
|
|
4679
|
+
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4680
|
+
exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional()
|
|
4535
4681
|
});
|
|
4536
4682
|
var ExporterFunctionPayload = _zod.z.object({
|
|
4537
4683
|
exportJobId: _zod.z.string(),
|
|
@@ -4596,6 +4742,7 @@ var ExportJob = _zod.z.object({
|
|
|
4596
4742
|
status: ExportJobStatus,
|
|
4597
4743
|
result: ExportJobResult.optional(),
|
|
4598
4744
|
createdByUserId: _zod.z.string().optional(),
|
|
4745
|
+
exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
|
|
4599
4746
|
// Destinations
|
|
4600
4747
|
...ExportDestinationsMap.shape
|
|
4601
4748
|
});
|
|
@@ -4624,7 +4771,10 @@ var FlaggedFeature = _zod.z.enum([
|
|
|
4624
4771
|
"ShadowOpacityOptional",
|
|
4625
4772
|
"DisableImporter",
|
|
4626
4773
|
"VariablesOrder",
|
|
4627
|
-
"TypographyPropsKeepAliases"
|
|
4774
|
+
"TypographyPropsKeepAliases",
|
|
4775
|
+
"GradientPropsKeepAliases",
|
|
4776
|
+
"ShadowPropsKeepAliases",
|
|
4777
|
+
"NonCompatibleTypeChanges"
|
|
4628
4778
|
]);
|
|
4629
4779
|
var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
|
|
4630
4780
|
var FeatureFlag = _zod.z.object({
|
|
@@ -5037,25 +5187,26 @@ function documentationPageToDTOV1(page, pagePathMap) {
|
|
|
5037
5187
|
}
|
|
5038
5188
|
|
|
5039
5189
|
// src/api/conversion/documentation/documentation-page-v2-to-dto.ts
|
|
5040
|
-
function documentationPageToDTOV2(page, groups, routingVersion) {
|
|
5190
|
+
function documentationPageToDTOV2(page, groups, routingVersion, pageLiveblocksRoomIdMap) {
|
|
5041
5191
|
const pathsMap = buildDocPagePublishPaths(groups, [page], routingVersion);
|
|
5042
|
-
return _documentationPageToDTOV2(page, pathsMap);
|
|
5192
|
+
return _documentationPageToDTOV2(page, pathsMap, pageLiveblocksRoomIdMap);
|
|
5043
5193
|
}
|
|
5044
|
-
function documentationPagesToDTOV2(pages, groups, routingVersion) {
|
|
5194
|
+
function documentationPagesToDTOV2(pages, groups, routingVersion, pageLiveblocksRoomIdMap) {
|
|
5045
5195
|
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
5046
|
-
return pages.map((page) => _documentationPageToDTOV2(page, pathsMap));
|
|
5196
|
+
return pages.map((page) => _documentationPageToDTOV2(page, pathsMap, pageLiveblocksRoomIdMap));
|
|
5047
5197
|
}
|
|
5048
|
-
function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersion) {
|
|
5198
|
+
function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersion, pageLiveblocksRoomIdMap) {
|
|
5049
5199
|
const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
|
|
5050
5200
|
const { pages: fixedPages } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
|
|
5051
|
-
return fixedPages.map((page) => _documentationPageToDTOV2(page, pathsMap));
|
|
5201
|
+
return fixedPages.map((page) => _documentationPageToDTOV2(page, pathsMap, pageLiveblocksRoomIdMap));
|
|
5052
5202
|
}
|
|
5053
|
-
function _documentationPageToDTOV2(page, pagePathMap) {
|
|
5203
|
+
function _documentationPageToDTOV2(page, pagePathMap, pageLiveblocksRoomIdMap) {
|
|
5054
5204
|
let path = pagePathMap.get(page.persistentId);
|
|
5055
5205
|
if (!path)
|
|
5056
5206
|
throw new Error(`Path for page ${page.persistentId} was not calculated`);
|
|
5057
5207
|
if (path.startsWith("/"))
|
|
5058
5208
|
path = path.substring(1);
|
|
5209
|
+
const liveblocksRoomId = pageLiveblocksRoomIdMap.get(page.persistentId);
|
|
5059
5210
|
return {
|
|
5060
5211
|
id: "to_be_removed",
|
|
5061
5212
|
designSystemVersionId: page.designSystemVersionId,
|
|
@@ -5068,7 +5219,8 @@ function _documentationPageToDTOV2(page, pagePathMap) {
|
|
|
5068
5219
|
createdAt: page.createdAt,
|
|
5069
5220
|
updatedAt: page.updatedAt,
|
|
5070
5221
|
path,
|
|
5071
|
-
type: "Page"
|
|
5222
|
+
type: "Page",
|
|
5223
|
+
...liveblocksRoomId && { liveblocksRoomId }
|
|
5072
5224
|
};
|
|
5073
5225
|
}
|
|
5074
5226
|
|
|
@@ -5091,6 +5243,7 @@ function pipelineToDto(pipeline) {
|
|
|
5091
5243
|
destinationGithub: pipeline.destinationGithub,
|
|
5092
5244
|
destinationGitlab: pipeline.destinationGitlab,
|
|
5093
5245
|
destinationS3: pipeline.destinationS3,
|
|
5246
|
+
exporterConfigurationProperties: pipeline.exporterConfigurationProperties,
|
|
5094
5247
|
webhookUrl: pipeline.webhookUrl,
|
|
5095
5248
|
latestJobs: []
|
|
5096
5249
|
};
|
|
@@ -5255,6 +5408,7 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
5255
5408
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
5256
5409
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5257
5410
|
var DTOUserSource = UserSource;
|
|
5411
|
+
var DTOUserTheme = UserTheme;
|
|
5258
5412
|
var DTOUserOnboarding = _zod.z.object({
|
|
5259
5413
|
companyName: _zod.z.string().optional(),
|
|
5260
5414
|
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
@@ -5268,7 +5422,8 @@ var DTOUserOnboarding = _zod.z.object({
|
|
|
5268
5422
|
isPageDraftOnboardingFinished: _zod.z.boolean().optional()
|
|
5269
5423
|
});
|
|
5270
5424
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5271
|
-
onboarding: DTOUserOnboarding.optional()
|
|
5425
|
+
onboarding: DTOUserOnboarding.optional(),
|
|
5426
|
+
theme: DTOUserTheme.optional()
|
|
5272
5427
|
});
|
|
5273
5428
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5274
5429
|
profile: DTOAuthenticatedUserProfile,
|
|
@@ -5607,6 +5762,28 @@ var DTOBffImportRequestBody = _zod.z.discriminatedUnion("type", [
|
|
|
5607
5762
|
DTOBffUploadImportRequestBody
|
|
5608
5763
|
]);
|
|
5609
5764
|
|
|
5765
|
+
// src/api/dto/design-systems/redirects.ts
|
|
5766
|
+
|
|
5767
|
+
var DTOPageRedirectCreateBody = _zod.z.object({
|
|
5768
|
+
pagePersistentId: _zod.z.string(),
|
|
5769
|
+
path: _zod.z.string()
|
|
5770
|
+
});
|
|
5771
|
+
var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
|
|
5772
|
+
var DTOPageRedirect = _zod.z.object({
|
|
5773
|
+
id: _zod.z.string(),
|
|
5774
|
+
pagePersistentId: _zod.z.string(),
|
|
5775
|
+
path: _zod.z.string()
|
|
5776
|
+
});
|
|
5777
|
+
var DTOPageRedirectListResponse = _zod.z.object({
|
|
5778
|
+
redirects: DTOPageRedirect.array()
|
|
5779
|
+
});
|
|
5780
|
+
var DTOPageRedirectResponse = _zod.z.object({
|
|
5781
|
+
redirect: DTOPageRedirect
|
|
5782
|
+
});
|
|
5783
|
+
var DTOPageRedirectDeleteResponse = _zod.z.object({
|
|
5784
|
+
success: _zod.z.boolean()
|
|
5785
|
+
});
|
|
5786
|
+
|
|
5610
5787
|
// src/api/dto/design-systems/stats.ts
|
|
5611
5788
|
|
|
5612
5789
|
var DTODesignSystemVersionStats = _zod.z.object({
|
|
@@ -5623,6 +5800,15 @@ var DTODesignSystemVersionStatsQuery = _zod.z.object({
|
|
|
5623
5800
|
brandId: _zod.z.string().optional()
|
|
5624
5801
|
});
|
|
5625
5802
|
|
|
5803
|
+
// src/api/dto/design-systems/version-room.ts
|
|
5804
|
+
|
|
5805
|
+
var DTODesignSystemVersionRoom = _zod.z.object({
|
|
5806
|
+
id: _zod.z.string()
|
|
5807
|
+
});
|
|
5808
|
+
var DTODesignSystemVersionRoomResponse = _zod.z.object({
|
|
5809
|
+
room: DTODesignSystemVersionRoom
|
|
5810
|
+
});
|
|
5811
|
+
|
|
5626
5812
|
// src/api/dto/design-systems/version.ts
|
|
5627
5813
|
|
|
5628
5814
|
|
|
@@ -5699,45 +5885,52 @@ var DTODocumentationPublishTypeQueryParams = _zod.z.object({
|
|
|
5699
5885
|
|
|
5700
5886
|
// src/api/dto/export/exporter-property.ts
|
|
5701
5887
|
|
|
5702
|
-
var
|
|
5703
|
-
var
|
|
5704
|
-
var
|
|
5705
|
-
var DTOExporterPropertyDefinitionValue =
|
|
5888
|
+
var PrimitiveValue2 = _zod.z.number().or(_zod.z.boolean()).or(_zod.z.string());
|
|
5889
|
+
var ArrayValue2 = _zod.z.array(_zod.z.string());
|
|
5890
|
+
var ObjectValue2 = _zod.z.record(_zod.z.string());
|
|
5891
|
+
var DTOExporterPropertyDefinitionValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
5706
5892
|
var DTOExporterPropertyType = _zod.z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5707
|
-
var
|
|
5893
|
+
var PropertyDefinitionBase2 = _zod.z.object({
|
|
5708
5894
|
key: _zod.z.string(),
|
|
5709
5895
|
title: _zod.z.string(),
|
|
5896
|
+
description: _zod.z.string(),
|
|
5897
|
+
category: _zod.z.string().optional(),
|
|
5898
|
+
dependsOn: _zod.z.record(_zod.z.boolean()).optional()
|
|
5899
|
+
});
|
|
5900
|
+
var DTOExporterPropertyDefinitionEnumOption = _zod.z.object({
|
|
5901
|
+
label: _zod.z.string(),
|
|
5710
5902
|
description: _zod.z.string()
|
|
5711
5903
|
});
|
|
5712
|
-
var DTOExporterPropertyDefinitionEnum =
|
|
5904
|
+
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
5713
5905
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Enum),
|
|
5714
|
-
options: _zod.z.
|
|
5906
|
+
options: _zod.z.record(DTOExporterPropertyDefinitionEnumOption),
|
|
5715
5907
|
default: _zod.z.string()
|
|
5716
5908
|
});
|
|
5717
|
-
var DTOExporterPropertyDefinitionBoolean =
|
|
5909
|
+
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
5718
5910
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
5719
5911
|
default: _zod.z.boolean()
|
|
5720
5912
|
});
|
|
5721
|
-
var DTOExporterPropertyDefinitionString =
|
|
5913
|
+
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
5722
5914
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.String),
|
|
5723
5915
|
default: _zod.z.string()
|
|
5724
5916
|
});
|
|
5725
|
-
var DTOExporterPropertyDefinitionNumber =
|
|
5917
|
+
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
5726
5918
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Number),
|
|
5727
5919
|
default: _zod.z.number()
|
|
5728
5920
|
});
|
|
5729
|
-
var DTOExporterPropertyDefinitionArray =
|
|
5921
|
+
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
5730
5922
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Array),
|
|
5731
|
-
default:
|
|
5923
|
+
default: ArrayValue2
|
|
5732
5924
|
});
|
|
5733
|
-
var DTOExporterPropertyDefinitionObject =
|
|
5925
|
+
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
5734
5926
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Object),
|
|
5735
|
-
default:
|
|
5927
|
+
default: ObjectValue2,
|
|
5736
5928
|
allowedKeys: _zod.z.object({
|
|
5737
|
-
options: _zod.z.string().array()
|
|
5929
|
+
options: _zod.z.string().array(),
|
|
5930
|
+
type: _zod.z.string()
|
|
5738
5931
|
}).optional(),
|
|
5739
5932
|
allowedValues: _zod.z.object({
|
|
5740
|
-
|
|
5933
|
+
type: _zod.z.string()
|
|
5741
5934
|
}).optional()
|
|
5742
5935
|
});
|
|
5743
5936
|
var DTOExporterPropertyDefinition = _zod.z.discriminatedUnion("type", [
|
|
@@ -5763,7 +5956,7 @@ var DTOPipelineCreateBody = _zod.z.object({
|
|
|
5763
5956
|
brandPersistentId: _zod.z.string().optional(),
|
|
5764
5957
|
themePersistentId: _zod.z.string().optional(),
|
|
5765
5958
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
5766
|
-
|
|
5959
|
+
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
5767
5960
|
destination: PipelineDestinationType.optional(),
|
|
5768
5961
|
gitQuery: GitObjectsQuery,
|
|
5769
5962
|
destinations: _zod.z.object({
|
|
@@ -5776,8 +5969,26 @@ var DTOPipelineCreateBody = _zod.z.object({
|
|
|
5776
5969
|
webhookUrl: _zod.z.string().nullish()
|
|
5777
5970
|
})
|
|
5778
5971
|
});
|
|
5779
|
-
var DTOPipelineUpdateBody =
|
|
5780
|
-
|
|
5972
|
+
var DTOPipelineUpdateBody = _zod.z.object({
|
|
5973
|
+
exporterId: _zod.z.string().optional(),
|
|
5974
|
+
name: _zod.z.string().optional(),
|
|
5975
|
+
isEnabled: _zod.z.boolean().optional(),
|
|
5976
|
+
eventType: PipelineEventType.optional(),
|
|
5977
|
+
brandPersistentId: _zod.z.string().optional(),
|
|
5978
|
+
themePersistentId: _zod.z.string().optional(),
|
|
5979
|
+
themePersistentIds: _zod.z.string().array().optional(),
|
|
5980
|
+
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
5981
|
+
destination: PipelineDestinationType.optional(),
|
|
5982
|
+
gitQuery: GitObjectsQuery.optional(),
|
|
5983
|
+
destinations: _zod.z.object({
|
|
5984
|
+
s3: ExporterDestinationS3.nullish(),
|
|
5985
|
+
azure: ExporterDestinationAzure.nullish(),
|
|
5986
|
+
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5987
|
+
github: ExporterDestinationGithub.nullish(),
|
|
5988
|
+
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5989
|
+
documentation: ExporterDestinationDocs.nullish(),
|
|
5990
|
+
webhookUrl: _zod.z.string().nullish()
|
|
5991
|
+
}).optional()
|
|
5781
5992
|
});
|
|
5782
5993
|
var DTOPipelineTriggerBody = _zod.z.object({
|
|
5783
5994
|
designSystemVersionId: _zod.z.string()
|
|
@@ -6180,7 +6391,14 @@ var DTOGetDocumentationPageAnchorsResponse = _zod.z.object({
|
|
|
6180
6391
|
|
|
6181
6392
|
// src/api/dto/documentation/approvals.ts
|
|
6182
6393
|
|
|
6183
|
-
var DTODocumentationPageApprovalState =
|
|
6394
|
+
var DTODocumentationPageApprovalState = _zod.z.object({
|
|
6395
|
+
approvalState: DocumentationPageApprovalState,
|
|
6396
|
+
pagePersistentId: _zod.z.string(),
|
|
6397
|
+
updatedByUserId: _zod.z.string(),
|
|
6398
|
+
designSystemVersionId: _zod.z.string(),
|
|
6399
|
+
updatedAt: _zod.z.coerce.date(),
|
|
6400
|
+
createdAt: _zod.z.coerce.date()
|
|
6401
|
+
});
|
|
6184
6402
|
var DTODocumentationGroupApprovalState = _zod.z.object({
|
|
6185
6403
|
persistentId: _zod.z.string(),
|
|
6186
6404
|
groupPersistentId: _zod.z.string(),
|
|
@@ -6260,6 +6478,8 @@ var DTODocumentationPageV2 = _zod.z.object({
|
|
|
6260
6478
|
publishMetadata: DTODocumentationPublishMetadata.optional(),
|
|
6261
6479
|
/** Defines the approval state of the documentation page */
|
|
6262
6480
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6481
|
+
/** Id of the page document room */
|
|
6482
|
+
liveblocksRoomId: _zod.z.string().optional(),
|
|
6263
6483
|
// Backward compatibility
|
|
6264
6484
|
type: _zod.z.literal("Page")
|
|
6265
6485
|
});
|
|
@@ -6274,12 +6494,18 @@ var DTOCreateDocumentationPageInputV2 = _zod.z.object({
|
|
|
6274
6494
|
afterPersistentId: _zod.z.string().nullish()
|
|
6275
6495
|
});
|
|
6276
6496
|
var DTOUpdateDocumentationPageInputV2 = _zod.z.object({
|
|
6277
|
-
// Identifier of the
|
|
6497
|
+
// Identifier of the page to update
|
|
6278
6498
|
id: _zod.z.string(),
|
|
6279
6499
|
// Page properties
|
|
6280
6500
|
title: _zod.z.string().optional(),
|
|
6281
6501
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6282
6502
|
});
|
|
6503
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = _zod.z.object({
|
|
6504
|
+
// Identifier of the page to update
|
|
6505
|
+
id: _zod.z.string(),
|
|
6506
|
+
// Page properties
|
|
6507
|
+
documentItems: _zod.z.array(DocumentationPageContentItem)
|
|
6508
|
+
});
|
|
6283
6509
|
var DTOMoveDocumentationPageInputV2 = _zod.z.object({
|
|
6284
6510
|
// Identifier of the group to update
|
|
6285
6511
|
id: _zod.z.string(),
|
|
@@ -6368,7 +6594,7 @@ var DTOExporterMembership = _zod.z.object({
|
|
|
6368
6594
|
exporterId: _zod.z.string(),
|
|
6369
6595
|
role: DTOExporterMembershipRole
|
|
6370
6596
|
});
|
|
6371
|
-
var
|
|
6597
|
+
var DTOExporterResponse = _zod.z.object({
|
|
6372
6598
|
exporter: DTOExporter,
|
|
6373
6599
|
membership: DTOExporterMembership
|
|
6374
6600
|
});
|
|
@@ -6435,11 +6661,17 @@ var DTOExportJob = _zod.z.object({
|
|
|
6435
6661
|
brandPersistentId: _zod.z.string().optional(),
|
|
6436
6662
|
themePersistentId: _zod.z.string().optional(),
|
|
6437
6663
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
6438
|
-
|
|
6664
|
+
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional()
|
|
6439
6665
|
});
|
|
6440
6666
|
var DTOExportJobResponse = _zod.z.object({
|
|
6441
6667
|
job: DTOExportJob
|
|
6442
6668
|
});
|
|
6669
|
+
var DTOExportJobResponseLegacy = _zod.z.object({
|
|
6670
|
+
job: _zod.z.object({
|
|
6671
|
+
id: _zod.z.string(),
|
|
6672
|
+
status: ExportJobStatus
|
|
6673
|
+
})
|
|
6674
|
+
});
|
|
6443
6675
|
|
|
6444
6676
|
// src/api/dto/export/pipeline.ts
|
|
6445
6677
|
|
|
@@ -6459,7 +6691,7 @@ var DTOPipeline = _zod.z.object({
|
|
|
6459
6691
|
brandPersistentId: _zod.z.string().optional(),
|
|
6460
6692
|
themePersistentId: _zod.z.string().optional(),
|
|
6461
6693
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
6462
|
-
|
|
6694
|
+
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
6463
6695
|
...ExportDestinationsMap.shape,
|
|
6464
6696
|
latestJobs: DTOExportJob.array()
|
|
6465
6697
|
});
|
|
@@ -6484,6 +6716,15 @@ var DTOPublishDocumentationResponse = _zod.z.object({
|
|
|
6484
6716
|
job: DTOExportJob
|
|
6485
6717
|
});
|
|
6486
6718
|
|
|
6719
|
+
// src/api/dto/documentation/room.ts
|
|
6720
|
+
|
|
6721
|
+
var DTODocumentationPageRoom = _zod.z.object({
|
|
6722
|
+
id: _zod.z.string()
|
|
6723
|
+
});
|
|
6724
|
+
var DTODocumentationPageRoomResponse = _zod.z.object({
|
|
6725
|
+
room: DTODocumentationPageRoom
|
|
6726
|
+
});
|
|
6727
|
+
|
|
6487
6728
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6488
6729
|
|
|
6489
6730
|
var DTOFigmaComponentGroup = _zod2.default.object({
|
|
@@ -6725,7 +6966,9 @@ var DTODocumentationHierarchyV2 = _zod.z.object({
|
|
|
6725
6966
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6726
6967
|
draftState: DTODocumentationDraftState.optional()
|
|
6727
6968
|
})
|
|
6728
|
-
)
|
|
6969
|
+
),
|
|
6970
|
+
/** True if the documentation was already published, false otherwise. */
|
|
6971
|
+
hasPublishedDocumentationContent: _zod.z.boolean()
|
|
6729
6972
|
});
|
|
6730
6973
|
|
|
6731
6974
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
@@ -6741,6 +6984,10 @@ var DTODocumentationPageUpdateActionOutputV2 = _zod.z.object({
|
|
|
6741
6984
|
type: _zod.z.literal("DocumentationPageUpdate"),
|
|
6742
6985
|
output: SuccessPayload2
|
|
6743
6986
|
});
|
|
6987
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = _zod.z.object({
|
|
6988
|
+
type: _zod.z.literal("DocumentationPageUpdateDocument"),
|
|
6989
|
+
output: SuccessPayload2
|
|
6990
|
+
});
|
|
6744
6991
|
var DTODocumentationPageMoveActionOutputV2 = _zod.z.object({
|
|
6745
6992
|
type: _zod.z.literal("DocumentationPageMove"),
|
|
6746
6993
|
output: SuccessPayload2
|
|
@@ -6773,6 +7020,10 @@ var DTODocumentationPageUpdateActionInputV2 = _zod.z.object({
|
|
|
6773
7020
|
type: _zod.z.literal("DocumentationPageUpdate"),
|
|
6774
7021
|
input: DTOUpdateDocumentationPageInputV2
|
|
6775
7022
|
});
|
|
7023
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = _zod.z.object({
|
|
7024
|
+
type: _zod.z.literal("DocumentationPageUpdateDocument"),
|
|
7025
|
+
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7026
|
+
});
|
|
6776
7027
|
var DTODocumentationPageMoveActionInputV2 = _zod.z.object({
|
|
6777
7028
|
type: _zod.z.literal("DocumentationPageMove"),
|
|
6778
7029
|
input: DTOMoveDocumentationPageInputV2
|
|
@@ -6819,6 +7070,14 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6819
7070
|
path: _zod.z.string()
|
|
6820
7071
|
});
|
|
6821
7072
|
|
|
7073
|
+
// src/api/dto/elements/documentation/settings.ts
|
|
7074
|
+
|
|
7075
|
+
var DTODocumentationSettings = _zod.z.object({
|
|
7076
|
+
isDraftFeatureAdopted: _zod.z.boolean(),
|
|
7077
|
+
isApprovalsFeatureEnabled: _zod.z.boolean(),
|
|
7078
|
+
isApprovalRequiredForPublishing: _zod.z.boolean()
|
|
7079
|
+
});
|
|
7080
|
+
|
|
6822
7081
|
// src/api/dto/elements/documentation/structure.ts
|
|
6823
7082
|
|
|
6824
7083
|
var DTODocumentationStructureItemType = _zod.z.enum(["Group", "Page"]);
|
|
@@ -6850,6 +7109,9 @@ var DTODocumentationStructure = _zod.z.object({
|
|
|
6850
7109
|
items: _zod.z.array(DTODocumentationStructureItem)
|
|
6851
7110
|
});
|
|
6852
7111
|
|
|
7112
|
+
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7113
|
+
|
|
7114
|
+
|
|
6853
7115
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6854
7116
|
|
|
6855
7117
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
@@ -6858,32 +7120,15 @@ var DTOFigmaNodeOrigin = _zod.z.object({
|
|
|
6858
7120
|
fileId: _zod.z.string().optional(),
|
|
6859
7121
|
parentName: _zod.z.string().optional()
|
|
6860
7122
|
});
|
|
6861
|
-
var DTOFigmaNodeData = _zod.z.object({
|
|
6862
|
-
// Id of the node in the Figma file
|
|
6863
|
-
figmaNodeId: _zod.z.string(),
|
|
6864
|
-
// Validity
|
|
6865
|
-
isValid: _zod.z.boolean(),
|
|
6866
|
-
// Asset data
|
|
6867
|
-
assetId: _zod.z.string(),
|
|
6868
|
-
assetUrl: _zod.z.string(),
|
|
6869
|
-
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6870
|
-
// Asset metadata
|
|
6871
|
-
assetScale: _zod.z.number(),
|
|
6872
|
-
assetWidth: _zod.z.number().optional(),
|
|
6873
|
-
assetHeight: _zod.z.number().optional()
|
|
6874
|
-
});
|
|
6875
|
-
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6876
|
-
data: true,
|
|
6877
|
-
origin: true
|
|
6878
|
-
}).extend({
|
|
6879
|
-
data: DTOFigmaNodeData,
|
|
6880
|
-
origin: DTOFigmaNodeOrigin
|
|
6881
|
-
});
|
|
6882
7123
|
var DTOFigmaNodeRenderInputBase = _zod.z.object({
|
|
6883
7124
|
/**
|
|
6884
7125
|
* Format in which the node must be rendered, png by default.
|
|
6885
7126
|
*/
|
|
6886
|
-
format: FigmaNodeRenderFormat.default("Png")
|
|
7127
|
+
format: FigmaNodeRenderFormat.default("Png"),
|
|
7128
|
+
/**
|
|
7129
|
+
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7130
|
+
*/
|
|
7131
|
+
scale: _zod.z.number().optional()
|
|
6887
7132
|
});
|
|
6888
7133
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
6889
7134
|
inputType: _zod.z.literal("NodeId").optional().transform((v) => _nullishCoalesce(v, () => ( "NodeId"))),
|
|
@@ -6901,22 +7146,84 @@ var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
|
6901
7146
|
/**
|
|
6902
7147
|
* Id of a design system's data source representing a linked Figma file
|
|
6903
7148
|
*/
|
|
6904
|
-
figmaNodeUrl: _zod.z.string()
|
|
7149
|
+
figmaNodeUrl: _zod.z.string(),
|
|
7150
|
+
/**
|
|
7151
|
+
* Brand persistent id to use in case a source has to be created for this render
|
|
7152
|
+
*/
|
|
7153
|
+
brandPersistentId: _zod.z.string()
|
|
7154
|
+
});
|
|
7155
|
+
var DTOFigmaNodeRerenderInput = _zod.z.object({
|
|
7156
|
+
inputType: _zod.z.literal("Rerender"),
|
|
7157
|
+
/**
|
|
7158
|
+
* Persistent ID of an existing Figma node
|
|
7159
|
+
*/
|
|
7160
|
+
figmaNodePersistentId: _zod.z.string()
|
|
6905
7161
|
});
|
|
6906
7162
|
var DTOFigmaNodeRenderInput = _zod.z.discriminatedUnion("inputType", [
|
|
6907
7163
|
DTOFigmaNodeRenderIdInput,
|
|
6908
|
-
DTOFigmaNodeRenderUrlInput
|
|
7164
|
+
DTOFigmaNodeRenderUrlInput,
|
|
7165
|
+
DTOFigmaNodeRerenderInput
|
|
6909
7166
|
]);
|
|
6910
7167
|
|
|
7168
|
+
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7169
|
+
var DTOFigmaNodeData = _zod.z.object({
|
|
7170
|
+
// Id of the node in the Figma file
|
|
7171
|
+
figmaNodeId: _zod.z.string(),
|
|
7172
|
+
// Validity
|
|
7173
|
+
isValid: _zod.z.boolean(),
|
|
7174
|
+
// Asset data
|
|
7175
|
+
assetId: _zod.z.string(),
|
|
7176
|
+
assetUrl: _zod.z.string(),
|
|
7177
|
+
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7178
|
+
// Asset metadata
|
|
7179
|
+
assetScale: _zod.z.number(),
|
|
7180
|
+
assetWidth: _zod.z.number().optional(),
|
|
7181
|
+
assetHeight: _zod.z.number().optional()
|
|
7182
|
+
});
|
|
7183
|
+
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7184
|
+
data: true,
|
|
7185
|
+
origin: true
|
|
7186
|
+
}).extend({
|
|
7187
|
+
data: DTOFigmaNodeData,
|
|
7188
|
+
origin: DTOFigmaNodeOrigin
|
|
7189
|
+
});
|
|
7190
|
+
|
|
7191
|
+
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7192
|
+
|
|
7193
|
+
var DTOFigmaNodeDataV2 = _zod.z.object({
|
|
7194
|
+
sceneNodeId: _zod.z.string(),
|
|
7195
|
+
format: FigmaNodeRenderFormat,
|
|
7196
|
+
scale: _zod.z.number().optional(),
|
|
7197
|
+
renderState: FigmaNodeRenderState,
|
|
7198
|
+
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7199
|
+
renderError: FigmaNodeRenderError.optional(),
|
|
7200
|
+
hasSource: _zod.z.boolean()
|
|
7201
|
+
});
|
|
7202
|
+
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7203
|
+
data: true,
|
|
7204
|
+
origin: true
|
|
7205
|
+
}).extend({
|
|
7206
|
+
data: DTOFigmaNodeDataV2,
|
|
7207
|
+
origin: DTOFigmaNodeOrigin
|
|
7208
|
+
});
|
|
7209
|
+
|
|
6911
7210
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6912
7211
|
|
|
6913
7212
|
var DTOFigmaNodeRenderActionOutput = _zod.z.object({
|
|
6914
7213
|
type: _zod.z.literal("FigmaNodeRender"),
|
|
6915
7214
|
figmaNodes: _zod.z.array(DTOFigmaNode)
|
|
6916
7215
|
});
|
|
7216
|
+
var DTOFigmaNodeRenderAsyncActionOutput = _zod.z.object({
|
|
7217
|
+
type: _zod.z.literal("FigmaNodeRenderAsync"),
|
|
7218
|
+
figmaNodes: _zod.z.array(DTOFigmaNodeV2)
|
|
7219
|
+
});
|
|
6917
7220
|
var DTOFigmaNodeRenderActionInput = _zod.z.object({
|
|
6918
7221
|
type: _zod.z.literal("FigmaNodeRender"),
|
|
6919
|
-
input:
|
|
7222
|
+
input: DTOFigmaNodeRenderIdInput.array()
|
|
7223
|
+
});
|
|
7224
|
+
var DTOFigmaNodeRenderAsyncActionInput = _zod.z.object({
|
|
7225
|
+
type: _zod.z.literal("FigmaNodeRenderAsync"),
|
|
7226
|
+
nodes: DTOFigmaNodeRenderInput.array()
|
|
6920
7227
|
});
|
|
6921
7228
|
|
|
6922
7229
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
@@ -7003,6 +7310,7 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
|
|
|
7003
7310
|
// Documentation pages
|
|
7004
7311
|
DTODocumentationPageCreateActionOutputV2,
|
|
7005
7312
|
DTODocumentationPageUpdateActionOutputV2,
|
|
7313
|
+
DTODocumentationPageUpdateDocumentActionOutputV2,
|
|
7006
7314
|
DTODocumentationPageMoveActionOutputV2,
|
|
7007
7315
|
DTODocumentationPageDuplicateActionOutputV2,
|
|
7008
7316
|
DTODocumentationPageDeleteActionOutputV2,
|
|
@@ -7016,6 +7324,7 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
|
|
|
7016
7324
|
DTODocumentationTabGroupDeleteActionOutputV2,
|
|
7017
7325
|
// Figma frames
|
|
7018
7326
|
DTOFigmaNodeRenderActionOutput,
|
|
7327
|
+
DTOFigmaNodeRenderAsyncActionOutput,
|
|
7019
7328
|
// Restore
|
|
7020
7329
|
DTODocumentationPageRestoreActionOutput,
|
|
7021
7330
|
DTODocumentationGroupRestoreActionOutput,
|
|
@@ -7026,6 +7335,7 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
|
7026
7335
|
// Documentation pages
|
|
7027
7336
|
DTODocumentationPageCreateActionInputV2,
|
|
7028
7337
|
DTODocumentationPageUpdateActionInputV2,
|
|
7338
|
+
DTODocumentationPageUpdateDocumentActionInputV2,
|
|
7029
7339
|
DTODocumentationPageMoveActionInputV2,
|
|
7030
7340
|
DTODocumentationPageDuplicateActionInputV2,
|
|
7031
7341
|
DTODocumentationPageDeleteActionInputV2,
|
|
@@ -7039,22 +7349,31 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
|
7039
7349
|
DTODocumentationTabGroupDeleteActionInputV2,
|
|
7040
7350
|
// Figma frames
|
|
7041
7351
|
DTOFigmaNodeRenderActionInput,
|
|
7352
|
+
DTOFigmaNodeRenderAsyncActionInput,
|
|
7042
7353
|
// Restore
|
|
7043
7354
|
DTODocumentationPageRestoreActionInput,
|
|
7044
7355
|
DTODocumentationGroupRestoreActionInput,
|
|
7045
7356
|
// Approval
|
|
7046
7357
|
DTODocumentationPageApprovalStateChangeActionInput
|
|
7047
|
-
])
|
|
7358
|
+
]).and(
|
|
7359
|
+
_zod.z.object({
|
|
7360
|
+
tId: _zod.z.string().optional()
|
|
7361
|
+
})
|
|
7362
|
+
);
|
|
7048
7363
|
|
|
7049
7364
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7050
7365
|
|
|
7051
7366
|
var DTOElementsGetTypeFilter = _zod.z.enum(["FigmaNode"]);
|
|
7052
7367
|
var DTOElementsGetQuerySchema = _zod.z.object({
|
|
7053
|
-
types: _zod.z.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
7368
|
+
types: _zod.z.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
7369
|
+
responseVersion: _zod.z.coerce.number().default(1)
|
|
7054
7370
|
});
|
|
7055
7371
|
var DTOElementsGetOutput = _zod.z.object({
|
|
7056
7372
|
figmaNodes: _zod.z.array(DTOFigmaNode).optional()
|
|
7057
7373
|
});
|
|
7374
|
+
var DTOElementsGetOutputV2 = _zod.z.object({
|
|
7375
|
+
figmaNodes: _zod.z.array(DTOFigmaNodeV2).optional()
|
|
7376
|
+
});
|
|
7058
7377
|
|
|
7059
7378
|
// src/api/dto/figma-components/assets/download.ts
|
|
7060
7379
|
|
|
@@ -7126,23 +7445,32 @@ var DTOThemeCreatePayload = _zod.z.object({
|
|
|
7126
7445
|
|
|
7127
7446
|
// src/utils/figma.ts
|
|
7128
7447
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
7129
|
-
var nodeIdRegex =
|
|
7448
|
+
var nodeIdRegex = /^\d+-\d+$/;
|
|
7130
7449
|
var nodeTypeRegex = /^[0-9a-zA-Z]^/;
|
|
7450
|
+
var ParsedFigmaFileURLError = /* @__PURE__ */ ((ParsedFigmaFileURLError2) => {
|
|
7451
|
+
ParsedFigmaFileURLError2["InvalidUrl"] = "InvalidUrl";
|
|
7452
|
+
ParsedFigmaFileURLError2["InvalidFigmaFileId"] = "InvalidFigmaFileId";
|
|
7453
|
+
return ParsedFigmaFileURLError2;
|
|
7454
|
+
})(ParsedFigmaFileURLError || {});
|
|
7131
7455
|
var FigmaUtils = {
|
|
7132
7456
|
tryParseFigmaFileURL(urlString) {
|
|
7133
|
-
if (!URL.canParse(urlString))
|
|
7134
|
-
return
|
|
7457
|
+
if (!URL.canParse(urlString)) {
|
|
7458
|
+
return { status: "Error", error: "InvalidUrl" /* InvalidUrl */ };
|
|
7459
|
+
}
|
|
7135
7460
|
const url = new URL(urlString);
|
|
7136
|
-
if (!url.hostname.endsWith("figma.com"))
|
|
7137
|
-
return
|
|
7461
|
+
if (!url.hostname.endsWith("figma.com")) {
|
|
7462
|
+
return { status: "Error", error: "InvalidUrl" /* InvalidUrl */ };
|
|
7463
|
+
}
|
|
7138
7464
|
const pathSegments = url.pathname.split("/");
|
|
7139
|
-
if (pathSegments[
|
|
7140
|
-
return
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7465
|
+
if (pathSegments[1] !== "design" && pathSegments[1] !== "file") {
|
|
7466
|
+
return { status: "Error", error: "InvalidUrl" /* InvalidUrl */ };
|
|
7467
|
+
}
|
|
7468
|
+
const fileId = pathSegments[2];
|
|
7469
|
+
if (!fileId || !fileId.match(figmaFileIdRegex)) {
|
|
7470
|
+
return { status: "Error", error: "InvalidFigmaFileId" /* InvalidFigmaFileId */ };
|
|
7471
|
+
}
|
|
7144
7472
|
let fileName = null;
|
|
7145
|
-
const rawFileName = pathSegments[
|
|
7473
|
+
const rawFileName = pathSegments[3];
|
|
7146
7474
|
if (rawFileName) {
|
|
7147
7475
|
fileName = rawFileName.replaceAll("-", " ");
|
|
7148
7476
|
}
|
|
@@ -7156,7 +7484,7 @@ var FigmaUtils = {
|
|
|
7156
7484
|
if (nodeTypeRaw && nodeTypeRaw.match(nodeTypeRegex)) {
|
|
7157
7485
|
nodeType = nodeTypeRaw;
|
|
7158
7486
|
}
|
|
7159
|
-
return { fileId, fileName, nodeId, nodeType };
|
|
7487
|
+
return { status: "Success", fileId, fileName, nodeId, nodeType };
|
|
7160
7488
|
}
|
|
7161
7489
|
};
|
|
7162
7490
|
|
|
@@ -7232,16 +7560,112 @@ function serializeQuery(query) {
|
|
|
7232
7560
|
return new URLSearchParams(queryWithStrings);
|
|
7233
7561
|
}
|
|
7234
7562
|
|
|
7563
|
+
// src/utils/redirect-validation.ts
|
|
7564
|
+
var exhaustiveInvalidUriPaths = {
|
|
7565
|
+
emptyPath: "",
|
|
7566
|
+
spacesInPath: "/invalid path/with spaces",
|
|
7567
|
+
specialCharacter1: "/path/with|invalid>characters",
|
|
7568
|
+
specialCharacter2: "/path/with<invalid*characters",
|
|
7569
|
+
specialCharacter3: "/path/{invalid}?characters",
|
|
7570
|
+
consecutiveSlashes: "/path//with///too/many/slashes",
|
|
7571
|
+
unencodedPercent: "/path/with/unencoded%percent",
|
|
7572
|
+
unencodedSpaces: "/path/with unencoded spaces",
|
|
7573
|
+
fragmentIdentifier: "/path/with#fragment",
|
|
7574
|
+
queryParameters: "/path/with?query=parameter",
|
|
7575
|
+
nullCharacter: "/path/with/\0nullcharacter",
|
|
7576
|
+
onlySlash: "/",
|
|
7577
|
+
controlCharacter: "/path/with/control\0character",
|
|
7578
|
+
extremelyLongPath: "/" + "a".repeat(2047),
|
|
7579
|
+
invalidStartCharacter: "///path/starting/with/slashes",
|
|
7580
|
+
invalidStartCharacterColon: ":/path/starting/with/colon",
|
|
7581
|
+
invalidTrailingDot: "/path/ending/with/dot.",
|
|
7582
|
+
invalidPercentEncoding1: "/path/with/%2",
|
|
7583
|
+
invalidPercentEncoding2: "/path/with/%ZZ",
|
|
7584
|
+
invalidPercentEncoding3: "/path/with/%G1",
|
|
7585
|
+
reservedCharacter1: "/path/with?<reserved>",
|
|
7586
|
+
reservedCharacter2: '/path/with/"quotes"',
|
|
7587
|
+
reservedCharacter3: "/path/with/[brackets]",
|
|
7588
|
+
reservedCharacter4: "/path/with/\\backslashes",
|
|
7589
|
+
nonAscii1: "/path/with/\u4F60\u597D",
|
|
7590
|
+
nonAscii2: "/path/with/emoji/\u{1F603}",
|
|
7591
|
+
mixedEncodingPath: "/path/%41A%42B%C3%28",
|
|
7592
|
+
directoryTraversal1: "/path/../../etc/passwd",
|
|
7593
|
+
directoryTraversal2: "/path/./././"
|
|
7594
|
+
};
|
|
7595
|
+
function isValidRedirectPath(path) {
|
|
7596
|
+
const trimmedPath = path.toLowerCase().trim();
|
|
7597
|
+
const url = "https://www.example.com" + trimmedPath;
|
|
7598
|
+
if (url.length > 2048) {
|
|
7599
|
+
return {
|
|
7600
|
+
isValid: false,
|
|
7601
|
+
reason: "TooLong"
|
|
7602
|
+
};
|
|
7603
|
+
}
|
|
7604
|
+
if (trimmedPath === "") {
|
|
7605
|
+
return {
|
|
7606
|
+
isValid: false,
|
|
7607
|
+
reason: "Empty"
|
|
7608
|
+
};
|
|
7609
|
+
}
|
|
7610
|
+
if (url === "/") {
|
|
7611
|
+
return {
|
|
7612
|
+
isValid: false,
|
|
7613
|
+
reason: "Empty"
|
|
7614
|
+
};
|
|
7615
|
+
}
|
|
7616
|
+
if (url.includes("?")) {
|
|
7617
|
+
return {
|
|
7618
|
+
isValid: false,
|
|
7619
|
+
reason: "ContainsQuery"
|
|
7620
|
+
};
|
|
7621
|
+
}
|
|
7622
|
+
if (url.includes("#")) {
|
|
7623
|
+
return {
|
|
7624
|
+
isValid: false,
|
|
7625
|
+
reason: "ContainsFragment"
|
|
7626
|
+
};
|
|
7627
|
+
}
|
|
7628
|
+
const regex = /^\/[A-Za-z0-9_-]+(\/[A-Za-z0-9_-]+)*$/;
|
|
7629
|
+
const isValid = regex.test(trimmedPath);
|
|
7630
|
+
return {
|
|
7631
|
+
isValid: regex.test(trimmedPath),
|
|
7632
|
+
reason: !isValid ? "InvalidURI" : void 0
|
|
7633
|
+
};
|
|
7634
|
+
}
|
|
7635
|
+
|
|
7235
7636
|
// src/api/endpoints/codegen/exporters.ts
|
|
7236
7637
|
var ExportersEndpoint = class {
|
|
7237
7638
|
constructor(requestExecutor) {
|
|
7238
7639
|
this.requestExecutor = requestExecutor;
|
|
7239
7640
|
}
|
|
7641
|
+
add(workspaceId, body) {
|
|
7642
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters`, DTOExporterResponse, {
|
|
7643
|
+
body,
|
|
7644
|
+
method: "POST"
|
|
7645
|
+
});
|
|
7646
|
+
}
|
|
7240
7647
|
list(workspaceId, query) {
|
|
7241
7648
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters`, DTOExporterListResponse, {
|
|
7242
7649
|
query: serializeQuery(query)
|
|
7243
7650
|
});
|
|
7244
7651
|
}
|
|
7652
|
+
get(workspaceId, exporterId) {
|
|
7653
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters/${exporterId}`, DTOExporterResponse);
|
|
7654
|
+
}
|
|
7655
|
+
};
|
|
7656
|
+
|
|
7657
|
+
// src/api/endpoints/codegen/jobs.ts
|
|
7658
|
+
|
|
7659
|
+
var ExporterJobsEndpoint = class {
|
|
7660
|
+
constructor(requestExecutor) {
|
|
7661
|
+
this.requestExecutor = requestExecutor;
|
|
7662
|
+
}
|
|
7663
|
+
list(workspaceId) {
|
|
7664
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, _zod.z.any());
|
|
7665
|
+
}
|
|
7666
|
+
get(workspaceId, jobId) {
|
|
7667
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
7668
|
+
}
|
|
7245
7669
|
};
|
|
7246
7670
|
|
|
7247
7671
|
// src/api/endpoints/codegen/pipelines.ts
|
|
@@ -7263,6 +7687,12 @@ var PipelinesEndpoint = class {
|
|
|
7263
7687
|
method: "POST"
|
|
7264
7688
|
});
|
|
7265
7689
|
}
|
|
7690
|
+
update(designSystemId, pipelineId, payload) {
|
|
7691
|
+
return this.requestExecutor.json(`/design-systems/${designSystemId}/pipelines/${pipelineId}`, DTOPipelineResponse, {
|
|
7692
|
+
body: payload,
|
|
7693
|
+
method: "PUT"
|
|
7694
|
+
});
|
|
7695
|
+
}
|
|
7266
7696
|
trigger(workspaceId, pipelineId, payload) {
|
|
7267
7697
|
return this.requestExecutor.json(
|
|
7268
7698
|
`/codegen/workspaces/${workspaceId}/pipelines/${pipelineId}/trigger`,
|
|
@@ -7281,8 +7711,10 @@ var CodegenEndpoint = class {
|
|
|
7281
7711
|
this.requestExecutor = requestExecutor;
|
|
7282
7712
|
__publicField(this, "exporters");
|
|
7283
7713
|
__publicField(this, "pipelines");
|
|
7714
|
+
__publicField(this, "jobs");
|
|
7284
7715
|
this.pipelines = new PipelinesEndpoint(requestExecutor);
|
|
7285
7716
|
this.exporters = new ExportersEndpoint(requestExecutor);
|
|
7717
|
+
this.jobs = new ExporterJobsEndpoint(requestExecutor);
|
|
7286
7718
|
}
|
|
7287
7719
|
};
|
|
7288
7720
|
|
|
@@ -7332,8 +7764,8 @@ var DocumentationEndpoint = class {
|
|
|
7332
7764
|
constructor(requestExecutor) {
|
|
7333
7765
|
this.requestExecutor = requestExecutor;
|
|
7334
7766
|
}
|
|
7335
|
-
getStructure(designSystemId, versionId) {
|
|
7336
|
-
return this.requestExecutor.json(
|
|
7767
|
+
async getStructure(designSystemId, versionId) {
|
|
7768
|
+
return await this.requestExecutor.json(
|
|
7337
7769
|
`/design-systems/${designSystemId}/versions/${versionId}/documentation/structure`,
|
|
7338
7770
|
DTODocumentationStructure
|
|
7339
7771
|
);
|
|
@@ -7341,10 +7773,13 @@ var DocumentationEndpoint = class {
|
|
|
7341
7773
|
async getDocStructure(dsId, vId) {
|
|
7342
7774
|
return await this.requestExecutor.json(
|
|
7343
7775
|
`/design-systems/${dsId}/versions/${vId}/documentation/structure`,
|
|
7344
|
-
DTODocumentationStructure
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7776
|
+
DTODocumentationStructure
|
|
7777
|
+
);
|
|
7778
|
+
}
|
|
7779
|
+
async getPageRoom(dsId, vId, pageId) {
|
|
7780
|
+
return await this.requestExecutor.json(
|
|
7781
|
+
`/design-systems/${dsId}/versions/${vId}/documentation/pages/${pageId}/room`,
|
|
7782
|
+
DTODocumentationPageRoomResponse
|
|
7348
7783
|
);
|
|
7349
7784
|
}
|
|
7350
7785
|
};
|
|
@@ -7398,6 +7833,9 @@ var ElementsActionEndpoint = class {
|
|
|
7398
7833
|
async renderNodes(dsId, vId, input) {
|
|
7399
7834
|
return this.action(dsId, vId, { type: "FigmaNodeRender", input });
|
|
7400
7835
|
}
|
|
7836
|
+
async renderNodesAsync(dsId, vId, nodes) {
|
|
7837
|
+
return this.action(dsId, vId, { type: "FigmaNodeRenderAsync", nodes });
|
|
7838
|
+
}
|
|
7401
7839
|
async action(dsId, vId, input) {
|
|
7402
7840
|
return this.requestExecutor.json(
|
|
7403
7841
|
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
@@ -7415,11 +7853,20 @@ var ElementsEndpoint = class {
|
|
|
7415
7853
|
constructor(requestExecutor) {
|
|
7416
7854
|
this.requestExecutor = requestExecutor;
|
|
7417
7855
|
}
|
|
7418
|
-
|
|
7856
|
+
getElementsV1(dsId, vId, query) {
|
|
7419
7857
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutput, {
|
|
7420
7858
|
query: serializeQuery(query)
|
|
7421
7859
|
});
|
|
7422
7860
|
}
|
|
7861
|
+
getElementsV2(dsId, vId, query) {
|
|
7862
|
+
const fullQuery = {
|
|
7863
|
+
...query,
|
|
7864
|
+
responseVersion: 2
|
|
7865
|
+
};
|
|
7866
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutputV2, {
|
|
7867
|
+
query: serializeQuery(fullQuery)
|
|
7868
|
+
});
|
|
7869
|
+
}
|
|
7423
7870
|
};
|
|
7424
7871
|
|
|
7425
7872
|
// src/api/endpoints/design-system/versions/figma-component-groups.ts
|
|
@@ -7702,6 +8149,12 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7702
8149
|
DTODesignSystemVersionJobStatusResponse
|
|
7703
8150
|
);
|
|
7704
8151
|
}
|
|
8152
|
+
room(dsId, vId) {
|
|
8153
|
+
return this.requestExecutor.json(
|
|
8154
|
+
`/design-systems/${dsId}/versions/${vId}/room`,
|
|
8155
|
+
DTODesignSystemVersionRoomResponse
|
|
8156
|
+
);
|
|
8157
|
+
}
|
|
7705
8158
|
};
|
|
7706
8159
|
|
|
7707
8160
|
// src/api/endpoints/design-system/bff.ts
|
|
@@ -7776,6 +8229,43 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7776
8229
|
}
|
|
7777
8230
|
};
|
|
7778
8231
|
|
|
8232
|
+
// src/api/endpoints/design-system/redirects.ts
|
|
8233
|
+
var DesignSystemPageRedirectsEndpoint = class {
|
|
8234
|
+
constructor(requestExecutor) {
|
|
8235
|
+
this.requestExecutor = requestExecutor;
|
|
8236
|
+
}
|
|
8237
|
+
create(dsId, body) {
|
|
8238
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectResponse, {
|
|
8239
|
+
body,
|
|
8240
|
+
method: "POST"
|
|
8241
|
+
});
|
|
8242
|
+
}
|
|
8243
|
+
list(dsId) {
|
|
8244
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectListResponse, {
|
|
8245
|
+
method: "GET"
|
|
8246
|
+
});
|
|
8247
|
+
}
|
|
8248
|
+
update(dsId, redirectId, body) {
|
|
8249
|
+
return this.requestExecutor.json(
|
|
8250
|
+
`/design-systems/${dsId}/documentation/redirects/${redirectId}`,
|
|
8251
|
+
DTOPageRedirectResponse,
|
|
8252
|
+
{
|
|
8253
|
+
body,
|
|
8254
|
+
method: "PUT"
|
|
8255
|
+
}
|
|
8256
|
+
);
|
|
8257
|
+
}
|
|
8258
|
+
delete(dsId, redirectId) {
|
|
8259
|
+
return this.requestExecutor.json(
|
|
8260
|
+
`/design-systems/${dsId}/documentation/redirects/${redirectId}`,
|
|
8261
|
+
DTOPageRedirectDeleteResponse,
|
|
8262
|
+
{
|
|
8263
|
+
method: "DELETE"
|
|
8264
|
+
}
|
|
8265
|
+
);
|
|
8266
|
+
}
|
|
8267
|
+
};
|
|
8268
|
+
|
|
7779
8269
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7780
8270
|
var DesignSystemsEndpoint = class {
|
|
7781
8271
|
constructor(requestExecutor) {
|
|
@@ -7785,11 +8275,13 @@ var DesignSystemsEndpoint = class {
|
|
|
7785
8275
|
__publicField(this, "bff");
|
|
7786
8276
|
__publicField(this, "sources");
|
|
7787
8277
|
__publicField(this, "contacts");
|
|
8278
|
+
__publicField(this, "redirects");
|
|
7788
8279
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
7789
8280
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
7790
8281
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
7791
8282
|
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
7792
8283
|
this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
|
|
8284
|
+
this.redirects = new DesignSystemPageRedirectsEndpoint(requestExecutor);
|
|
7793
8285
|
}
|
|
7794
8286
|
create(body) {
|
|
7795
8287
|
return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
|
|
@@ -7908,6 +8400,19 @@ var WorkspacesEndpoint = class {
|
|
|
7908
8400
|
}
|
|
7909
8401
|
};
|
|
7910
8402
|
|
|
8403
|
+
// src/api/endpoints/liveblocks.ts
|
|
8404
|
+
var LiveblocksEndpoint = class {
|
|
8405
|
+
constructor(requestExecutor) {
|
|
8406
|
+
this.requestExecutor = requestExecutor;
|
|
8407
|
+
}
|
|
8408
|
+
auth(body) {
|
|
8409
|
+
return this.requestExecutor.json("/liveblocks/auth", DTOLiveblocksAuthResponse, {
|
|
8410
|
+
method: "POST",
|
|
8411
|
+
body
|
|
8412
|
+
});
|
|
8413
|
+
}
|
|
8414
|
+
};
|
|
8415
|
+
|
|
7911
8416
|
// src/api/endpoints/users.ts
|
|
7912
8417
|
var UsersEndpoint = class {
|
|
7913
8418
|
constructor(requestExecutor) {
|
|
@@ -8050,6 +8555,7 @@ var SupernovaApiClient = class {
|
|
|
8050
8555
|
__publicField(this, "workspaces");
|
|
8051
8556
|
__publicField(this, "designSystems");
|
|
8052
8557
|
__publicField(this, "codegen");
|
|
8558
|
+
__publicField(this, "liveblocks");
|
|
8053
8559
|
const requestExecutor = new RequestExecutor({
|
|
8054
8560
|
host: config.host,
|
|
8055
8561
|
accessToken: config.accessToken
|
|
@@ -8058,9 +8564,31 @@ var SupernovaApiClient = class {
|
|
|
8058
8564
|
this.workspaces = new WorkspacesEndpoint(requestExecutor);
|
|
8059
8565
|
this.designSystems = new DesignSystemsEndpoint(requestExecutor);
|
|
8060
8566
|
this.codegen = new CodegenEndpoint(requestExecutor);
|
|
8567
|
+
this.liveblocks = new LiveblocksEndpoint(requestExecutor);
|
|
8061
8568
|
}
|
|
8062
8569
|
};
|
|
8063
8570
|
|
|
8571
|
+
// src/events/design-system.ts
|
|
8572
|
+
|
|
8573
|
+
var DTOEventFigmaNodesRendered = _zod.z.object({
|
|
8574
|
+
type: _zod.z.literal("DesignSystem.FigmaNodesRendered"),
|
|
8575
|
+
designSystemId: _zod.z.string(),
|
|
8576
|
+
versionId: _zod.z.string(),
|
|
8577
|
+
figmaNodePersistentIds: _zod.z.string().array()
|
|
8578
|
+
});
|
|
8579
|
+
var DTOEventDataSourcesImported = _zod.z.object({
|
|
8580
|
+
type: _zod.z.literal("DesignSystem.ImportJobFinished"),
|
|
8581
|
+
designSystemId: _zod.z.string(),
|
|
8582
|
+
versionId: _zod.z.string(),
|
|
8583
|
+
importJobId: _zod.z.string(),
|
|
8584
|
+
dataSourceType: DataSourceRemoteType,
|
|
8585
|
+
dataSourceIds: _zod.z.string().array()
|
|
8586
|
+
});
|
|
8587
|
+
|
|
8588
|
+
// src/events/event.ts
|
|
8589
|
+
|
|
8590
|
+
var DTOEvent = _zod.z.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
8591
|
+
|
|
8064
8592
|
// src/sync/docs-structure-repo.ts
|
|
8065
8593
|
var _pqueue = require('p-queue'); var _pqueue2 = _interopRequireDefault(_pqueue);
|
|
8066
8594
|
|
|
@@ -8074,14 +8602,19 @@ var VersionRoomBaseYDoc = class {
|
|
|
8074
8602
|
this.yDoc = yDoc;
|
|
8075
8603
|
}
|
|
8076
8604
|
getState() {
|
|
8605
|
+
const groups = this.getGroups();
|
|
8606
|
+
const isLoaded = !!groups.length;
|
|
8077
8607
|
return {
|
|
8608
|
+
isLoaded,
|
|
8609
|
+
groups,
|
|
8610
|
+
pages: this.getPages(),
|
|
8078
8611
|
approvals: this.getApprovals(),
|
|
8079
|
-
groups: this.getGroups(),
|
|
8080
8612
|
groupSnapshots: this.getGroupSnapshots(),
|
|
8081
8613
|
pageContentHashes: this.getDocumentationPageContentHashes(),
|
|
8082
|
-
pages: this.getPages(),
|
|
8083
8614
|
pageSnapshots: this.getPageSnapshots(),
|
|
8084
|
-
settings: this.getDocumentationInternalSettings()
|
|
8615
|
+
settings: this.getDocumentationInternalSettings(),
|
|
8616
|
+
pageLiveblockRoomIds: this.getDocumentationPageLiveblocksRoomIds(),
|
|
8617
|
+
executedTransactionIds: this.getExecutedTransactionIds()
|
|
8085
8618
|
};
|
|
8086
8619
|
}
|
|
8087
8620
|
//
|
|
@@ -8213,6 +8746,18 @@ var VersionRoomBaseYDoc = class {
|
|
|
8213
8746
|
});
|
|
8214
8747
|
return result;
|
|
8215
8748
|
}
|
|
8749
|
+
getDocumentationPageLiveblocksRoomIds() {
|
|
8750
|
+
const map = this.documentationPageLiveblocksRoomIdsYMap;
|
|
8751
|
+
const result = {};
|
|
8752
|
+
map.forEach((hash2, key) => {
|
|
8753
|
+
if (typeof hash2 === "string")
|
|
8754
|
+
result[key] = hash2;
|
|
8755
|
+
});
|
|
8756
|
+
return result;
|
|
8757
|
+
}
|
|
8758
|
+
get documentationPageLiveblocksRoomIdsYMap() {
|
|
8759
|
+
return this.yDoc.getMap("documentationPageLiveblocksRoomIds");
|
|
8760
|
+
}
|
|
8216
8761
|
updateDocumentationPageContentHashes(hashes) {
|
|
8217
8762
|
const map = this.documentationPageContentHashesYMap;
|
|
8218
8763
|
Object.entries(hashes).forEach(([key, hash2]) => map.set(key, hash2));
|
|
@@ -8220,7 +8765,9 @@ var VersionRoomBaseYDoc = class {
|
|
|
8220
8765
|
get documentationPageContentHashesYMap() {
|
|
8221
8766
|
return this.yDoc.getMap("documentationPageHashes");
|
|
8222
8767
|
}
|
|
8768
|
+
//
|
|
8223
8769
|
// Approval states
|
|
8770
|
+
//
|
|
8224
8771
|
updateApprovalStates(updates) {
|
|
8225
8772
|
this.setObjects(this.documentationPageApprovalsMap, updates);
|
|
8226
8773
|
}
|
|
@@ -8233,21 +8780,47 @@ var VersionRoomBaseYDoc = class {
|
|
|
8233
8780
|
get documentationPageApprovalsMap() {
|
|
8234
8781
|
return this.yDoc.getMap("documentationPageApprovals");
|
|
8235
8782
|
}
|
|
8783
|
+
//
|
|
8784
|
+
// Executed transactions
|
|
8785
|
+
//
|
|
8786
|
+
updateExecutedTransactionIds(transactionIds) {
|
|
8787
|
+
transactionIds = Array.from(new Set(transactionIds));
|
|
8788
|
+
if (!transactionIds.length)
|
|
8789
|
+
return;
|
|
8790
|
+
const array = this.executedTransactionIdsArray;
|
|
8791
|
+
array.push(transactionIds);
|
|
8792
|
+
if (array.length > 100) {
|
|
8793
|
+
array.delete(0, array.length - 100);
|
|
8794
|
+
}
|
|
8795
|
+
}
|
|
8796
|
+
getExecutedTransactionIds() {
|
|
8797
|
+
const array = this.executedTransactionIdsArray;
|
|
8798
|
+
const transactionIds = [];
|
|
8799
|
+
array.forEach((e) => typeof e === "string" && transactionIds.push(e));
|
|
8800
|
+
return transactionIds;
|
|
8801
|
+
}
|
|
8802
|
+
get executedTransactionIdsArray() {
|
|
8803
|
+
return this.yDoc.getArray("executedTransactionIds");
|
|
8804
|
+
}
|
|
8236
8805
|
};
|
|
8237
8806
|
|
|
8238
8807
|
// src/yjs/version-room/compute-dto.ts
|
|
8239
8808
|
function computeDocsHierarchy(input, options = {}) {
|
|
8240
8809
|
const includeDeletedContent = _nullishCoalesce(options.includeDeletedContent, () => ( false));
|
|
8241
8810
|
const debug = _nullishCoalesce(options.debug, () => ( false));
|
|
8242
|
-
const { pages, groups, pageSnapshots, groupSnapshots, settings, pageContentHashes, approvals } = input;
|
|
8811
|
+
const { pages, groups, pageSnapshots, groupSnapshots, settings, pageContentHashes, approvals, pageLiveblockRoomIds } = input;
|
|
8243
8812
|
if (includeDeletedContent) {
|
|
8244
8813
|
pages.push(...getDeletedPages(pages, pageSnapshots));
|
|
8245
8814
|
groups.push(...getDeletedGroups(groups, groupSnapshots));
|
|
8246
8815
|
}
|
|
8247
|
-
const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion);
|
|
8816
|
+
const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion, recordToMap(pageLiveblockRoomIds));
|
|
8248
8817
|
const groupDTOs = elementGroupsToDocumentationGroupDTOV2(groups, pages);
|
|
8818
|
+
const hasPublishedPages = pageSnapshots.some((s) => s.reason === "Publish");
|
|
8819
|
+
const hasPublishedGroups = groupSnapshots.some((s) => s.reason === "Publish");
|
|
8820
|
+
const hasPublishedDocumentationContent = hasPublishedPages || hasPublishedGroups;
|
|
8249
8821
|
if (!settings.isDraftFeatureAdopted) {
|
|
8250
8822
|
return {
|
|
8823
|
+
hasPublishedDocumentationContent,
|
|
8251
8824
|
pages: pageDTOs,
|
|
8252
8825
|
groups: groupDTOs
|
|
8253
8826
|
};
|
|
@@ -8277,6 +8850,7 @@ function computeDocsHierarchy(input, options = {}) {
|
|
|
8277
8850
|
approvalState && (g.approvalState = approvalState);
|
|
8278
8851
|
});
|
|
8279
8852
|
return {
|
|
8853
|
+
hasPublishedDocumentationContent,
|
|
8280
8854
|
pages: pageDTOs,
|
|
8281
8855
|
groups: groupDTOs
|
|
8282
8856
|
};
|
|
@@ -11709,49 +12283,87 @@ var blocks = [
|
|
|
11709
12283
|
},
|
|
11710
12284
|
{
|
|
11711
12285
|
id: "io.supernova.block.assets",
|
|
11712
|
-
name: "
|
|
12286
|
+
name: "Vector assets",
|
|
11713
12287
|
description: "Display icons or illustrations",
|
|
11714
12288
|
category: "Assets",
|
|
11715
12289
|
icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
|
|
11716
|
-
searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
|
|
12290
|
+
searchKeywords: ["icons", "illustrations", "grid", "svg", "logos", "vectors"],
|
|
11717
12291
|
item: {
|
|
11718
|
-
properties: [
|
|
11719
|
-
|
|
12292
|
+
properties: [
|
|
12293
|
+
{
|
|
12294
|
+
id: "assets",
|
|
12295
|
+
name: "Assets",
|
|
12296
|
+
type: "Asset",
|
|
12297
|
+
options: {}
|
|
12298
|
+
}
|
|
12299
|
+
],
|
|
12300
|
+
appearance: {
|
|
12301
|
+
isBordered: true,
|
|
12302
|
+
hasBackground: false
|
|
12303
|
+
},
|
|
11720
12304
|
variants: [
|
|
11721
12305
|
{
|
|
11722
12306
|
id: "default",
|
|
11723
12307
|
name: "Simple grid",
|
|
11724
12308
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
|
|
11725
|
-
description: "A simple grid
|
|
11726
|
-
layout: {
|
|
12309
|
+
description: "A simple grid. Both the title and description are displayed below the preview.",
|
|
12310
|
+
layout: {
|
|
12311
|
+
type: "Column",
|
|
12312
|
+
children: ["assets"],
|
|
12313
|
+
columnAlign: "Start",
|
|
12314
|
+
columnResizing: "Fill",
|
|
12315
|
+
gap: "Medium"
|
|
12316
|
+
},
|
|
11727
12317
|
maxColumns: 8,
|
|
11728
|
-
defaultColumns:
|
|
12318
|
+
defaultColumns: 4,
|
|
11729
12319
|
appearance: {}
|
|
11730
12320
|
},
|
|
11731
12321
|
{
|
|
11732
12322
|
id: "square-grid",
|
|
11733
12323
|
name: "Square grid",
|
|
11734
12324
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
|
|
11735
|
-
description: "Bordered square grid tailored for displaying icon assets.
|
|
11736
|
-
layout: {
|
|
12325
|
+
description: "Bordered square grid tailored for displaying icon assets.",
|
|
12326
|
+
layout: {
|
|
12327
|
+
type: "Column",
|
|
12328
|
+
children: ["assets"],
|
|
12329
|
+
columnAlign: "Start",
|
|
12330
|
+
columnResizing: "Fill",
|
|
12331
|
+
gap: "Medium"
|
|
12332
|
+
},
|
|
11737
12333
|
maxColumns: 8,
|
|
11738
|
-
defaultColumns:
|
|
11739
|
-
appearance: {
|
|
12334
|
+
defaultColumns: 4,
|
|
12335
|
+
appearance: {
|
|
12336
|
+
isEditorPresentationDifferent: true
|
|
12337
|
+
}
|
|
11740
12338
|
},
|
|
11741
12339
|
{
|
|
11742
12340
|
id: "borderless-grid",
|
|
11743
12341
|
name: "Borderless grid",
|
|
11744
12342
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
|
|
11745
|
-
description: "Borderless grid, perfect for displaying assets of the same height.
|
|
11746
|
-
layout: {
|
|
12343
|
+
description: "Borderless grid, perfect for displaying vector assets of the same height.",
|
|
12344
|
+
layout: {
|
|
12345
|
+
type: "Column",
|
|
12346
|
+
children: ["assets"],
|
|
12347
|
+
columnAlign: "Start",
|
|
12348
|
+
columnResizing: "Fill",
|
|
12349
|
+
gap: "Medium"
|
|
12350
|
+
},
|
|
11747
12351
|
maxColumns: 8,
|
|
11748
|
-
defaultColumns:
|
|
11749
|
-
appearance: {
|
|
12352
|
+
defaultColumns: 4,
|
|
12353
|
+
appearance: {
|
|
12354
|
+
isEditorPresentationDifferent: true
|
|
12355
|
+
}
|
|
11750
12356
|
}
|
|
11751
12357
|
],
|
|
11752
12358
|
defaultVariantKey: "default"
|
|
11753
12359
|
},
|
|
11754
|
-
behavior: {
|
|
12360
|
+
behavior: {
|
|
12361
|
+
dataType: "Asset",
|
|
12362
|
+
entities: {
|
|
12363
|
+
selectionType: "EntityAndGroup",
|
|
12364
|
+
maxSelected: 0
|
|
12365
|
+
}
|
|
12366
|
+
},
|
|
11755
12367
|
editorOptions: {
|
|
11756
12368
|
onboarding: {
|
|
11757
12369
|
helpText: "Display a grid of icons or illustrations.",
|
|
@@ -12885,6 +13497,7 @@ var BackendVersionRoomYDoc = class {
|
|
|
12885
13497
|
transaction.pageHashesToUpdate && yDoc.updateDocumentationPageContentHashes(transaction.pageHashesToUpdate);
|
|
12886
13498
|
transaction.pageApprovals && yDoc.updateApprovalStates(transaction.pageApprovals);
|
|
12887
13499
|
transaction.pageApprovalIdsToDelete && yDoc.removeApprovalStates(transaction.pageApprovalIdsToDelete);
|
|
13500
|
+
transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
|
|
12888
13501
|
});
|
|
12889
13502
|
}
|
|
12890
13503
|
getDocumentationPageContentHashes() {
|
|
@@ -12896,135 +13509,406 @@ var BackendVersionRoomYDoc = class {
|
|
|
12896
13509
|
}
|
|
12897
13510
|
};
|
|
12898
13511
|
|
|
12899
|
-
// src/sync/local-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
13512
|
+
// src/sync/local-action-executor.ts
|
|
13513
|
+
function applyActionsLocally(input) {
|
|
13514
|
+
const actionExecutor = new LocalDocsElementActionExecutor(input);
|
|
13515
|
+
actionExecutor.applyActions(input.actions);
|
|
13516
|
+
return actionExecutor.localState;
|
|
13517
|
+
}
|
|
13518
|
+
var LocalDocsElementActionExecutor = class {
|
|
13519
|
+
constructor(config) {
|
|
13520
|
+
__publicField(this, "userId");
|
|
13521
|
+
__publicField(this, "designSystemVersionId");
|
|
13522
|
+
__publicField(this, "pages");
|
|
13523
|
+
__publicField(this, "groups");
|
|
13524
|
+
__publicField(this, "approvalStates");
|
|
13525
|
+
const { designSystemVersionId, remoteState, userId } = config;
|
|
13526
|
+
this.userId = userId;
|
|
13527
|
+
this.designSystemVersionId = designSystemVersionId;
|
|
13528
|
+
this.pages = mapByUnique(remoteState.pages, (p) => p.persistentId);
|
|
13529
|
+
this.groups = mapByUnique(remoteState.groups, (p) => p.persistentId);
|
|
13530
|
+
this.approvalStates = mapByUnique(remoteState.approvals, (a) => a.pagePersistentId);
|
|
13531
|
+
}
|
|
13532
|
+
get localState() {
|
|
13533
|
+
return {
|
|
13534
|
+
pages: Array.from(this.pages.values()),
|
|
13535
|
+
groups: Array.from(this.groups.values()),
|
|
13536
|
+
approvals: Array.from(this.approvalStates.values())
|
|
13537
|
+
};
|
|
13538
|
+
}
|
|
13539
|
+
applyActions(trx) {
|
|
13540
|
+
trx.forEach((trx2) => this.applyTransaction(trx2));
|
|
13541
|
+
}
|
|
13542
|
+
applyTransaction(trx) {
|
|
13543
|
+
switch (trx.type) {
|
|
13544
|
+
case "DocumentationGroupCreate":
|
|
13545
|
+
return this.documentationGroupCreate(trx);
|
|
13546
|
+
case "DocumentationGroupUpdate":
|
|
13547
|
+
return this.documentationGroupUpdate(trx);
|
|
13548
|
+
case "DocumentationGroupDelete":
|
|
13549
|
+
return this.documentationGroupDelete(trx);
|
|
13550
|
+
case "DocumentationGroupMove":
|
|
13551
|
+
return this.documentationGroupMove(trx);
|
|
13552
|
+
case "DocumentationGroupDuplicate":
|
|
13553
|
+
case "DocumentationGroupRestore":
|
|
13554
|
+
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
13555
|
+
case "DocumentationPageCreate":
|
|
13556
|
+
return this.documentationPageCreate(trx);
|
|
13557
|
+
case "DocumentationPageUpdate":
|
|
13558
|
+
return this.documentationPageUpdate(trx);
|
|
13559
|
+
case "DocumentationPageMove":
|
|
13560
|
+
return this.documentationPageMove(trx);
|
|
13561
|
+
case "DocumentationPageDelete":
|
|
13562
|
+
return this.documentationPageDelete(trx);
|
|
13563
|
+
case "DocumentationPageApprovalStateChange":
|
|
13564
|
+
return this.documentationApprovalStateUpdate(trx);
|
|
13565
|
+
case "DocumentationPageDuplicate":
|
|
13566
|
+
case "DocumentationPageRestore":
|
|
13567
|
+
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
13568
|
+
case "DocumentationTabCreate":
|
|
13569
|
+
case "DocumentationTabGroupDelete":
|
|
13570
|
+
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
13571
|
+
case "FigmaNodeRender":
|
|
13572
|
+
case "FigmaNodeRenderAsync":
|
|
13573
|
+
throw new Error(`Transaction type ${trx.type} is not a documentation element action`);
|
|
13574
|
+
}
|
|
13575
|
+
}
|
|
13576
|
+
//
|
|
13577
|
+
// Pages
|
|
13578
|
+
//
|
|
13579
|
+
documentationPageCreate(trx) {
|
|
13580
|
+
const { input } = trx;
|
|
13581
|
+
if (this.pages.has(input.persistentId)) {
|
|
13582
|
+
return;
|
|
13583
|
+
}
|
|
13584
|
+
if (!this.groups.has(input.parentPersistentId)) {
|
|
13585
|
+
throw new Error(`Cannot create page: parent persistent id ${input.parentPersistentId} was not found`);
|
|
13586
|
+
}
|
|
13587
|
+
const localPage = {
|
|
13588
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
13589
|
+
parentPersistentId: input.parentPersistentId,
|
|
13590
|
+
persistentId: input.persistentId,
|
|
13591
|
+
shortPersistentId: generateShortPersistentId(),
|
|
13592
|
+
slug: slugify(input.title),
|
|
13593
|
+
meta: { name: input.title },
|
|
13594
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
13595
|
+
data: {
|
|
13596
|
+
// TODO Artem: move somewhere reusable
|
|
13597
|
+
configuration: input.configuration ? { ...defaultDocumentationItemConfigurationV2, ...input.configuration } : input.configuration
|
|
13598
|
+
},
|
|
13599
|
+
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
13600
|
+
designSystemVersionId: this.designSystemVersionId
|
|
13601
|
+
};
|
|
13602
|
+
this.pages.set(localPage.persistentId, localPage);
|
|
13603
|
+
}
|
|
13604
|
+
documentationPageUpdate(trx) {
|
|
13605
|
+
const { input } = trx;
|
|
13606
|
+
const existingPage = this.pages.get(input.id);
|
|
13607
|
+
if (!existingPage) {
|
|
13608
|
+
throw new Error(`Cannot update page: page id ${input.id} was not found`);
|
|
13609
|
+
}
|
|
13610
|
+
const localPage = {
|
|
13611
|
+
...existingPage,
|
|
13612
|
+
userSlug: void 0,
|
|
13613
|
+
meta: {
|
|
13614
|
+
...existingPage.meta,
|
|
13615
|
+
name: _nullishCoalesce(input.title, () => ( existingPage.meta.name))
|
|
13616
|
+
},
|
|
13617
|
+
data: {
|
|
13618
|
+
// TODO Artem: move somewhere reusable
|
|
13619
|
+
configuration: input.configuration ? { ..._nullishCoalesce(existingPage.data.configuration, () => ( defaultDocumentationItemConfigurationV2)), ...input.configuration } : existingPage.data.configuration
|
|
13620
|
+
}
|
|
13621
|
+
};
|
|
13622
|
+
this.pages.set(localPage.persistentId, localPage);
|
|
12904
13623
|
}
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
13624
|
+
documentationPageMove(trx) {
|
|
13625
|
+
const { input } = trx;
|
|
13626
|
+
if (!this.groups.has(input.parentPersistentId)) {
|
|
13627
|
+
throw new Error(`Cannot move page: page parent id ${input.parentPersistentId} was not found`);
|
|
12908
13628
|
}
|
|
12909
|
-
this.pages.
|
|
13629
|
+
const existingPage = this.pages.get(input.id);
|
|
13630
|
+
if (!existingPage) {
|
|
13631
|
+
throw new Error(`Cannot update page: page id ${input.id} was not found`);
|
|
13632
|
+
}
|
|
13633
|
+
const localPage = {
|
|
13634
|
+
...existingPage,
|
|
13635
|
+
userSlug: void 0,
|
|
13636
|
+
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
13637
|
+
parentPersistentId: input.parentPersistentId
|
|
13638
|
+
};
|
|
13639
|
+
this.pages.set(localPage.persistentId, localPage);
|
|
13640
|
+
}
|
|
13641
|
+
documentationPageDelete(trx) {
|
|
13642
|
+
const { input } = trx;
|
|
13643
|
+
if (!this.pages.delete(trx.input.id)) {
|
|
13644
|
+
throw new Error(`Cannot delete page: page id ${input.id} was not found`);
|
|
13645
|
+
}
|
|
13646
|
+
}
|
|
13647
|
+
//
|
|
13648
|
+
// Group
|
|
13649
|
+
//
|
|
13650
|
+
documentationGroupCreate(trx) {
|
|
13651
|
+
const { input } = trx;
|
|
13652
|
+
if (this.groups.has(input.persistentId)) {
|
|
13653
|
+
return;
|
|
13654
|
+
}
|
|
13655
|
+
const localGroup = {
|
|
13656
|
+
parentPersistentId: input.parentPersistentId,
|
|
13657
|
+
persistentId: input.persistentId,
|
|
13658
|
+
shortPersistentId: generateShortPersistentId(),
|
|
13659
|
+
slug: slugify(input.title),
|
|
13660
|
+
meta: { name: input.title },
|
|
13661
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
13662
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
13663
|
+
data: {
|
|
13664
|
+
// TODO Artem: move somewhere reusable
|
|
13665
|
+
configuration: input.configuration ? { ...defaultDocumentationItemConfigurationV2, ...input.configuration } : input.configuration
|
|
13666
|
+
},
|
|
13667
|
+
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
13668
|
+
designSystemVersionId: this.designSystemVersionId
|
|
13669
|
+
};
|
|
13670
|
+
this.groups.set(localGroup.persistentId, localGroup);
|
|
12910
13671
|
}
|
|
12911
|
-
|
|
12912
|
-
const
|
|
12913
|
-
|
|
12914
|
-
|
|
13672
|
+
documentationGroupUpdate(trx) {
|
|
13673
|
+
const { input } = trx;
|
|
13674
|
+
const existingGroup = this.groups.get(input.id);
|
|
13675
|
+
if (!existingGroup) {
|
|
13676
|
+
throw new Error(`Cannot update group: group id ${input.id} was not found`);
|
|
12915
13677
|
}
|
|
12916
|
-
|
|
13678
|
+
const localGroup = {
|
|
13679
|
+
...existingGroup,
|
|
13680
|
+
userSlug: void 0,
|
|
13681
|
+
meta: {
|
|
13682
|
+
...existingGroup.meta,
|
|
13683
|
+
name: _nullishCoalesce(input.title, () => ( existingGroup.meta.name))
|
|
13684
|
+
},
|
|
13685
|
+
data: {
|
|
13686
|
+
// TODO Artem: move somewhere reusable
|
|
13687
|
+
configuration: input.configuration ? {
|
|
13688
|
+
..._nullishCoalesce(_optionalChain([existingGroup, 'access', _86 => _86.data, 'optionalAccess', _87 => _87.configuration]), () => ( defaultDocumentationItemConfigurationV2)),
|
|
13689
|
+
...input.configuration
|
|
13690
|
+
} : _optionalChain([existingGroup, 'access', _88 => _88.data, 'optionalAccess', _89 => _89.configuration])
|
|
13691
|
+
}
|
|
13692
|
+
};
|
|
13693
|
+
this.groups.set(localGroup.persistentId, localGroup);
|
|
12917
13694
|
}
|
|
12918
|
-
|
|
12919
|
-
|
|
13695
|
+
documentationGroupMove(trx) {
|
|
13696
|
+
const { input } = trx;
|
|
13697
|
+
if (!this.groups.has(input.parentPersistentId)) {
|
|
13698
|
+
throw new Error(`Cannot move group: group parent id ${input.parentPersistentId} was not found`);
|
|
13699
|
+
}
|
|
13700
|
+
const existingGroup = this.groups.get(input.id);
|
|
13701
|
+
if (!existingGroup) {
|
|
13702
|
+
throw new Error(`Cannot update group: group id ${input.id} was not found`);
|
|
13703
|
+
}
|
|
13704
|
+
const localGroup = {
|
|
13705
|
+
...existingGroup,
|
|
13706
|
+
userSlug: void 0,
|
|
13707
|
+
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
13708
|
+
parentPersistentId: input.parentPersistentId
|
|
13709
|
+
};
|
|
13710
|
+
this.groups.set(localGroup.persistentId, localGroup);
|
|
12920
13711
|
}
|
|
12921
|
-
|
|
12922
|
-
|
|
13712
|
+
documentationGroupDelete(trx) {
|
|
13713
|
+
const { input } = trx;
|
|
13714
|
+
if (!this.groups.delete(trx.input.id)) {
|
|
13715
|
+
throw new Error(`Cannot delete group: group id ${input.id} was not found`);
|
|
13716
|
+
}
|
|
13717
|
+
}
|
|
13718
|
+
//
|
|
13719
|
+
// Approval states
|
|
13720
|
+
//
|
|
13721
|
+
documentationApprovalStateUpdate(trx) {
|
|
13722
|
+
const { input } = trx;
|
|
13723
|
+
const existingApproval = this.approvalStates.get(input.persistentId);
|
|
13724
|
+
if (input.approvalState) {
|
|
13725
|
+
this.approvalStates.set(input.persistentId, {
|
|
13726
|
+
approvalState: input.approvalState,
|
|
13727
|
+
createdAt: _nullishCoalesce(_optionalChain([existingApproval, 'optionalAccess', _90 => _90.createdAt]), () => ( /* @__PURE__ */ new Date())),
|
|
13728
|
+
designSystemVersionId: this.designSystemVersionId,
|
|
13729
|
+
pagePersistentId: input.persistentId,
|
|
13730
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
13731
|
+
updatedByUserId: this.userId
|
|
13732
|
+
});
|
|
13733
|
+
} else {
|
|
13734
|
+
this.approvalStates.delete(input.persistentId);
|
|
13735
|
+
}
|
|
13736
|
+
}
|
|
13737
|
+
//
|
|
13738
|
+
// Utils
|
|
13739
|
+
//
|
|
13740
|
+
calculateSortOrder(parentPersistentId, afterPersistentId) {
|
|
13741
|
+
const sortOrderStep = Math.pow(2, 16);
|
|
13742
|
+
const neighbours = [
|
|
13743
|
+
...Array.from(this.pages.values()).filter((p) => p.parentPersistentId === parentPersistentId),
|
|
13744
|
+
...Array.from(this.groups.values()).filter((g) => g.parentPersistentId === parentPersistentId)
|
|
13745
|
+
];
|
|
13746
|
+
if (!neighbours.length)
|
|
13747
|
+
return 0;
|
|
13748
|
+
neighbours.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
|
|
13749
|
+
if (afterPersistentId === null)
|
|
13750
|
+
return neighbours[0].sortOrder - sortOrderStep;
|
|
13751
|
+
if (!afterPersistentId)
|
|
13752
|
+
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
13753
|
+
const index = neighbours.findIndex((e) => e.persistentId === afterPersistentId);
|
|
13754
|
+
if (index < 0 || index === neighbours.length - 1) {
|
|
13755
|
+
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
13756
|
+
}
|
|
13757
|
+
const left = neighbours[index].sortOrder;
|
|
13758
|
+
const right = _nullishCoalesce(_optionalChain([neighbours, 'access', _91 => _91[index + 1], 'optionalAccess', _92 => _92.sortOrder]), () => ( left + sortOrderStep * 2));
|
|
13759
|
+
return (right + left) / 2;
|
|
12923
13760
|
}
|
|
12924
13761
|
};
|
|
12925
13762
|
|
|
12926
13763
|
// src/sync/docs-structure-repo.ts
|
|
12927
|
-
var DocsStructureRepo = class {
|
|
12928
|
-
};
|
|
12929
13764
|
var DocsStructureRepository = class {
|
|
12930
|
-
constructor(
|
|
12931
|
-
__publicField(this, "
|
|
13765
|
+
constructor(config) {
|
|
13766
|
+
__publicField(this, "userId");
|
|
13767
|
+
__publicField(this, "designSystemVersionId");
|
|
12932
13768
|
__publicField(this, "yDoc");
|
|
12933
13769
|
__publicField(this, "yObserver");
|
|
12934
|
-
__publicField(this, "
|
|
12935
|
-
__publicField(this, "
|
|
13770
|
+
__publicField(this, "_yState");
|
|
13771
|
+
__publicField(this, "_currentHierarchy");
|
|
13772
|
+
__publicField(this, "_currentSettings");
|
|
13773
|
+
__publicField(this, "localActions", []);
|
|
13774
|
+
__publicField(this, "actionQueue");
|
|
12936
13775
|
__publicField(this, "hierarchyObservers", /* @__PURE__ */ new Set());
|
|
12937
|
-
this
|
|
12938
|
-
this
|
|
12939
|
-
this
|
|
12940
|
-
this.
|
|
13776
|
+
__publicField(this, "settingsObservers", /* @__PURE__ */ new Set());
|
|
13777
|
+
__publicField(this, "initCallbacks", /* @__PURE__ */ new Set());
|
|
13778
|
+
__publicField(this, "transactionIdGenerator");
|
|
13779
|
+
this.userId = config.userId;
|
|
13780
|
+
this.designSystemVersionId = config.designSystemVersionId;
|
|
13781
|
+
this.yDoc = config.yDoc;
|
|
13782
|
+
this.yObserver = this.yDoc.on("update", () => this.onYUpdate());
|
|
13783
|
+
this.onYUpdate();
|
|
13784
|
+
this.actionQueue = new TransactionQueue(config.transactionExecutor);
|
|
13785
|
+
this.transactionIdGenerator = config.transactionIdGenerator;
|
|
12941
13786
|
}
|
|
12942
13787
|
//
|
|
12943
13788
|
// Lifecycle
|
|
12944
13789
|
//
|
|
13790
|
+
get isInitialized() {
|
|
13791
|
+
return !!this._currentHierarchy;
|
|
13792
|
+
}
|
|
13793
|
+
onInitialized() {
|
|
13794
|
+
if (this.isInitialized)
|
|
13795
|
+
return Promise.resolve();
|
|
13796
|
+
return new Promise((resolve) => {
|
|
13797
|
+
this.initCallbacks.add(resolve);
|
|
13798
|
+
});
|
|
13799
|
+
}
|
|
12945
13800
|
addHierarchyObserver(observer) {
|
|
12946
13801
|
this.hierarchyObservers.add(observer);
|
|
13802
|
+
if (this._currentHierarchy)
|
|
13803
|
+
observer(this._currentHierarchy);
|
|
12947
13804
|
}
|
|
12948
13805
|
removeHierarchyObserver(observer) {
|
|
12949
13806
|
this.hierarchyObservers.delete(observer);
|
|
12950
13807
|
}
|
|
13808
|
+
addSettingsObserver(observer) {
|
|
13809
|
+
this.settingsObservers.add(observer);
|
|
13810
|
+
if (this._currentSettings)
|
|
13811
|
+
observer(this._currentSettings);
|
|
13812
|
+
}
|
|
13813
|
+
removeSettingsObserver(observer) {
|
|
13814
|
+
this.settingsObservers.delete(observer);
|
|
13815
|
+
}
|
|
12951
13816
|
dispose() {
|
|
12952
13817
|
this.yDoc.off("update", this.yObserver);
|
|
12953
13818
|
this.hierarchyObservers.clear();
|
|
12954
|
-
this.
|
|
13819
|
+
this.actionQueue.clear();
|
|
13820
|
+
}
|
|
13821
|
+
//
|
|
13822
|
+
// Accessors
|
|
13823
|
+
//
|
|
13824
|
+
get currentHierarchy() {
|
|
13825
|
+
const hierarchy = this._currentHierarchy;
|
|
13826
|
+
if (!hierarchy)
|
|
13827
|
+
throw new Error(`Hierarchy cannot be accessed while it's still loading`);
|
|
13828
|
+
return hierarchy;
|
|
12955
13829
|
}
|
|
12956
13830
|
//
|
|
12957
13831
|
// Actions
|
|
12958
13832
|
//
|
|
12959
|
-
|
|
12960
|
-
void this.
|
|
13833
|
+
executeAction(action) {
|
|
13834
|
+
void this.executeActionPromise(action);
|
|
12961
13835
|
}
|
|
12962
|
-
|
|
12963
|
-
this.
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
12973
|
-
designSystemVersionId: ""
|
|
12974
|
-
});
|
|
12975
|
-
const promise = this.trxQueue.enqueue({
|
|
12976
|
-
type: "DocumentationPageCreate",
|
|
12977
|
-
input: {
|
|
12978
|
-
persistentId: input.persistentId,
|
|
12979
|
-
parentPersistentId: input.parentPersistentId,
|
|
12980
|
-
title: input.title,
|
|
12981
|
-
afterPersistentId: input.afterPersistentId,
|
|
12982
|
-
configuration: input.configuration
|
|
12983
|
-
}
|
|
13836
|
+
executeActionPromise(action) {
|
|
13837
|
+
const fullAction = { ...action, tId: this.transactionIdGenerator() };
|
|
13838
|
+
this.localActions.push(fullAction);
|
|
13839
|
+
this.refreshHierarchy();
|
|
13840
|
+
return this.actionQueue.enqueue(fullAction);
|
|
13841
|
+
}
|
|
13842
|
+
notifyPageContentUpdated(pagePersistentId, content, definitions) {
|
|
13843
|
+
const pageContentHash = generatePageContentHash(content, definitions);
|
|
13844
|
+
new VersionRoomBaseYDoc(this.yDoc).updateDocumentationPageContentHashes({
|
|
13845
|
+
[pagePersistentId]: pageContentHash
|
|
12984
13846
|
});
|
|
12985
|
-
this.recalculateHierarchy();
|
|
12986
|
-
return promise;
|
|
12987
13847
|
}
|
|
12988
13848
|
//
|
|
12989
13849
|
// Reactions
|
|
12990
13850
|
//
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
12997
|
-
|
|
12998
|
-
|
|
12999
|
-
|
|
13000
|
-
|
|
13851
|
+
refreshState() {
|
|
13852
|
+
this.refreshHierarchy();
|
|
13853
|
+
this.refreshSettings();
|
|
13854
|
+
}
|
|
13855
|
+
refreshSettings() {
|
|
13856
|
+
const yState = this._yState;
|
|
13857
|
+
if (!yState)
|
|
13858
|
+
return;
|
|
13859
|
+
const newSettings = {
|
|
13860
|
+
isApprovalRequiredForPublishing: yState.settings.approvalRequiredForPublishing,
|
|
13861
|
+
isApprovalsFeatureEnabled: yState.settings.isApprovalFeatureEnabled,
|
|
13862
|
+
isDraftFeatureAdopted: yState.settings.isDraftFeatureAdopted
|
|
13863
|
+
};
|
|
13864
|
+
if (!this._currentSettings || newSettings.isApprovalRequiredForPublishing !== this._currentSettings.isApprovalRequiredForPublishing || newSettings.isApprovalsFeatureEnabled !== this._currentSettings.isApprovalsFeatureEnabled || newSettings.isDraftFeatureAdopted !== this._currentSettings.isDraftFeatureAdopted) {
|
|
13865
|
+
this._currentSettings = newSettings;
|
|
13866
|
+
this.settingsObservers.forEach((o) => o(newSettings));
|
|
13867
|
+
}
|
|
13868
|
+
}
|
|
13869
|
+
refreshHierarchy() {
|
|
13870
|
+
const yState = this._yState;
|
|
13871
|
+
if (!yState)
|
|
13872
|
+
return;
|
|
13873
|
+
const hierarchy = this.calculateHierarchy(yState);
|
|
13874
|
+
if (!hierarchy)
|
|
13875
|
+
return;
|
|
13876
|
+
this._currentHierarchy = hierarchy;
|
|
13001
13877
|
this.hierarchyObservers.forEach((o) => o(hierarchy));
|
|
13002
13878
|
}
|
|
13003
|
-
|
|
13004
|
-
|
|
13005
|
-
this.
|
|
13879
|
+
calculateHierarchy(yState) {
|
|
13880
|
+
const executedTransactionIds = new Set(yState.executedTransactionIds);
|
|
13881
|
+
const localActions = this.localActions.filter((a) => a.tId && !executedTransactionIds.has(a.tId));
|
|
13882
|
+
this.localActions = localActions;
|
|
13883
|
+
const { pages, groups, approvals } = applyActionsLocally({
|
|
13884
|
+
userId: this.userId,
|
|
13885
|
+
designSystemVersionId: this.designSystemVersionId,
|
|
13886
|
+
remoteState: yState,
|
|
13887
|
+
actions: localActions
|
|
13888
|
+
});
|
|
13889
|
+
const hierarchy = computeDocsHierarchy(
|
|
13890
|
+
{
|
|
13891
|
+
pages,
|
|
13892
|
+
groups,
|
|
13893
|
+
approvals,
|
|
13894
|
+
groupSnapshots: yState.groupSnapshots,
|
|
13895
|
+
pageContentHashes: yState.pageContentHashes,
|
|
13896
|
+
pageSnapshots: yState.pageSnapshots,
|
|
13897
|
+
settings: yState.settings,
|
|
13898
|
+
pageLiveblockRoomIds: yState.pageLiveblockRoomIds
|
|
13899
|
+
},
|
|
13900
|
+
{ includeDeletedContent: true }
|
|
13901
|
+
);
|
|
13902
|
+
return hierarchy;
|
|
13006
13903
|
}
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
...this.yState.groups.filter((g) => g.parentPersistentId === parentPersistentId)
|
|
13015
|
-
];
|
|
13016
|
-
if (!neighbours.length)
|
|
13017
|
-
return 0;
|
|
13018
|
-
neighbours.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
|
|
13019
|
-
if (!afterPersistentId)
|
|
13020
|
-
return neighbours[0].sortOrder - sortOrderStep;
|
|
13021
|
-
const index = neighbours.findIndex((e) => e.persistentId === afterPersistentId);
|
|
13022
|
-
if (index < 0 || index === neighbours.length - 1) {
|
|
13023
|
-
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
13904
|
+
onYUpdate() {
|
|
13905
|
+
const newState = new VersionRoomBaseYDoc(this.yDoc).getState();
|
|
13906
|
+
if (newState.groups.length) {
|
|
13907
|
+
this._yState = newState;
|
|
13908
|
+
this.refreshState();
|
|
13909
|
+
this.initCallbacks.forEach((f) => f());
|
|
13910
|
+
this.initCallbacks.clear();
|
|
13024
13911
|
}
|
|
13025
|
-
const left = neighbours[index].sortOrder;
|
|
13026
|
-
const right = _nullishCoalesce(_optionalChain([neighbours, 'access', _86 => _86[index + 1], 'optionalAccess', _87 => _87.sortOrder]), () => ( left + sortOrderStep * 2));
|
|
13027
|
-
return (right + left) / 2;
|
|
13028
13912
|
}
|
|
13029
13913
|
};
|
|
13030
13914
|
var TransactionQueue = class {
|
|
@@ -13439,5 +14323,37 @@ var TransactionQueue = class {
|
|
|
13439
14323
|
|
|
13440
14324
|
|
|
13441
14325
|
|
|
13442
|
-
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BrandsEndpoint = BrandsEndpoint; exports.CodegenEndpoint = CodegenEndpoint; exports.Collection = Collection2; exports.DTOAppBootstrapDataQuery = DTOAppBootstrapDataQuery; exports.DTOAppBootstrapDataResponse = DTOAppBootstrapDataResponse; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOAuthenticatedUser = DTOAuthenticatedUser; exports.DTOAuthenticatedUserProfile = DTOAuthenticatedUserProfile; exports.DTOAuthenticatedUserResponse = DTOAuthenticatedUserResponse; exports.DTOBffFigmaImportRequestBody = DTOBffFigmaImportRequestBody; exports.DTOBffImportRequestBody = DTOBffImportRequestBody; exports.DTOBffUploadImportRequestBody = DTOBffUploadImportRequestBody; exports.DTOBrand = DTOBrand; exports.DTOBrandCreatePayload = DTOBrandCreatePayload; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandUpdatePayload = DTOBrandUpdatePayload; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOColorTokenInlineData = DTOColorTokenInlineData; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaCreatePayload = DTODataSourceFigmaCreatePayload; exports.DTODataSourceFigmaImportPayload = DTODataSourceFigmaImportPayload; exports.DTODataSourceFigmaScope = DTODataSourceFigmaScope; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceResponse = DTODataSourceResponse; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemComponent = DTODesignSystemComponent; exports.DTODesignSystemComponentCreateInput = DTODesignSystemComponentCreateInput; exports.DTODesignSystemComponentListResponse = DTODesignSystemComponentListResponse; exports.DTODesignSystemComponentResponse = DTODesignSystemComponentResponse; exports.DTODesignSystemContactsResponse = DTODesignSystemContactsResponse; exports.DTODesignSystemCreateInput = DTODesignSystemCreateInput; exports.DTODesignSystemInvitation = DTODesignSystemInvitation; exports.DTODesignSystemMember = DTODesignSystemMember; exports.DTODesignSystemMemberListResponse = DTODesignSystemMemberListResponse; exports.DTODesignSystemMembersUpdatePayload = DTODesignSystemMembersUpdatePayload; exports.DTODesignSystemMembersUpdateResponse = DTODesignSystemMembersUpdateResponse; exports.DTODesignSystemResponse = DTODesignSystemResponse; exports.DTODesignSystemRole = DTODesignSystemRole; exports.DTODesignSystemUpdateAccessModeInput = DTODesignSystemUpdateAccessModeInput; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionStats = DTODesignSystemVersionStats; exports.DTODesignSystemVersionStatsQuery = DTODesignSystemVersionStatsQuery; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODesignSystemsListResponse = DTODesignSystemsListResponse; exports.DTODesignToken = DTODesignToken; exports.DTODesignTokenCreatePayload = DTODesignTokenCreatePayload; exports.DTODesignTokenGroup = DTODesignTokenGroup; exports.DTODesignTokenGroupCreatePayload = DTODesignTokenGroupCreatePayload; exports.DTODesignTokenGroupListResponse = DTODesignTokenGroupListResponse; exports.DTODesignTokenGroupResponse = DTODesignTokenGroupResponse; exports.DTODesignTokenListResponse = DTODesignTokenListResponse; exports.DTODesignTokenResponse = DTODesignTokenResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationStructure = DTODocumentationStructure; exports.DTODocumentationStructureGroupItem = DTODocumentationStructureGroupItem; exports.DTODocumentationStructureItem = DTODocumentationStructureItem; exports.DTODocumentationStructurePageItem = DTODocumentationStructurePageItem; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinitionCreatePayload; exports.DTOElementPropertyDefinitionListResponse = DTOElementPropertyDefinitionListResponse; exports.DTOElementPropertyDefinitionOption = DTOElementPropertyDefinitionOption; exports.DTOElementPropertyDefinitionResponse = DTOElementPropertyDefinitionResponse; exports.DTOElementPropertyDefinitionUpdatePayload = DTOElementPropertyDefinitionUpdatePayload; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValueListResponse = DTOElementPropertyValueListResponse; exports.DTOElementPropertyValueResponse = DTOElementPropertyValueResponse; exports.DTOElementPropertyValueUpsertPaylod = DTOElementPropertyValueUpsertPaylod; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterCreateOutput = DTOExporterCreateOutput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterListQuery = DTOExporterListQuery; exports.DTOExporterListResponse = DTOExporterListResponse; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterPropertyDefinition = DTOExporterPropertyDefinition; exports.DTOExporterPropertyDefinitionArray = DTOExporterPropertyDefinitionArray; exports.DTOExporterPropertyDefinitionBoolean = DTOExporterPropertyDefinitionBoolean; exports.DTOExporterPropertyDefinitionEnum = DTOExporterPropertyDefinitionEnum; exports.DTOExporterPropertyDefinitionNumber = DTOExporterPropertyDefinitionNumber; exports.DTOExporterPropertyDefinitionObject = DTOExporterPropertyDefinitionObject; exports.DTOExporterPropertyDefinitionString = DTOExporterPropertyDefinitionString; exports.DTOExporterPropertyDefinitionValue = DTOExporterPropertyDefinitionValue; exports.DTOExporterPropertyDefinitionValueMap = DTOExporterPropertyDefinitionValueMap; exports.DTOExporterPropertyDefinitionsResponse = DTOExporterPropertyDefinitionsResponse; exports.DTOExporterPropertyType = DTOExporterPropertyType; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaComponent = DTOFigmaComponent; exports.DTOFigmaComponentGroup = DTOFigmaComponentGroup; exports.DTOFigmaComponentGroupListResponse = DTOFigmaComponentGroupListResponse; exports.DTOFigmaComponentListResponse = DTOFigmaComponentListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderFormat = DTOFigmaNodeRenderFormat; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOFrameNodeStructure = DTOFrameNodeStructure; exports.DTOFrameNodeStructureListResponse = DTOFrameNodeStructureListResponse; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOImportJob = DTOImportJob; exports.DTOImportJobResponse = DTOImportJobResponse; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOObjectMeta = DTOObjectMeta; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineListQuery = DTOPipelineListQuery; exports.DTOPipelineListResponse = DTOPipelineListResponse; exports.DTOPipelineResponse = DTOPipelineResponse; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOTheme = DTOTheme; exports.DTOThemeCreatePayload = DTOThemeCreatePayload; exports.DTOThemeListResponse = DTOThemeListResponse; exports.DTOThemeOverride = DTOThemeOverride; exports.DTOThemeOverrideCreatePayload = DTOThemeOverrideCreatePayload; exports.DTOThemeResponse = DTOThemeResponse; exports.DTOTokenCollection = DTOTokenCollection; exports.DTOTokenCollectionsListReponse = DTOTokenCollectionsListReponse; exports.DTOTransferOwnershipPayload = DTOTransferOwnershipPayload; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUser = DTOUser; exports.DTOUserGetResponse = DTOUserGetResponse; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserOnboarding = DTOUserOnboarding; exports.DTOUserOnboardingDepartment = DTOUserOnboardingDepartment; exports.DTOUserOnboardingJobLevel = DTOUserOnboardingJobLevel; exports.DTOUserProfile = DTOUserProfile; exports.DTOUserProfileUpdate = DTOUserProfileUpdate; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserSource = DTOUserSource; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceCreateInput = DTOWorkspaceCreateInput; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceInvitationInput = DTOWorkspaceInvitationInput; exports.DTOWorkspaceInvitationUpdateResponse = DTOWorkspaceInvitationUpdateResponse; exports.DTOWorkspaceInvitationsListInput = DTOWorkspaceInvitationsListInput; exports.DTOWorkspaceInvitationsResponse = DTOWorkspaceInvitationsResponse; exports.DTOWorkspaceInviteUpdate = DTOWorkspaceInviteUpdate; exports.DTOWorkspaceMember = DTOWorkspaceMember; exports.DTOWorkspaceMembersListResponse = DTOWorkspaceMembersListResponse; exports.DTOWorkspaceProfile = DTOWorkspaceProfile; exports.DTOWorkspaceResponse = DTOWorkspaceResponse; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DesignSystemBffEndpoint = DesignSystemBffEndpoint; exports.DesignSystemComponentEndpoint = DesignSystemComponentEndpoint; exports.DesignSystemContactsEndpoint = DesignSystemContactsEndpoint; exports.DesignSystemMembersEndpoint = DesignSystemMembersEndpoint; exports.DesignSystemSourcesEndpoint = DesignSystemSourcesEndpoint; exports.DesignSystemVersionsEndpoint = DesignSystemVersionsEndpoint; exports.DesignSystemsEndpoint = DesignSystemsEndpoint; exports.DimensionsVariableScopeType = DimensionsVariableScopeType; exports.DocsStructureRepo = DocsStructureRepo; exports.DocsStructureRepository = DocsStructureRepository; exports.DocumentationEndpoint = DocumentationEndpoint; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ElementPropertyDefinitionsEndpoint = ElementPropertyDefinitionsEndpoint; exports.ElementPropertyValuesEndpoint = ElementPropertyValuesEndpoint; exports.ElementsActionEndpoint = ElementsActionEndpoint; exports.ElementsEndpoint = ElementsEndpoint; exports.ExportersEndpoint = ExportersEndpoint; exports.FigmaComponentGroupsEndpoint = FigmaComponentGroupsEndpoint; exports.FigmaComponentsEndpoint = FigmaComponentsEndpoint; exports.FigmaFrameStructuresEndpoint = FigmaFrameStructuresEndpoint; exports.FigmaUtils = FigmaUtils; exports.FormattedCollections = FormattedCollections; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ImportJobsEndpoint = ImportJobsEndpoint; exports.ListTreeBuilder = ListTreeBuilder; exports.LocalStorage = LocalStorage; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.OverridesEndpoint = OverridesEndpoint; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.PipelinesEndpoint = PipelinesEndpoint; exports.RGB = RGB; exports.RGBA = RGBA; exports.RequestExecutor = RequestExecutor; exports.RequestExecutorError = RequestExecutorError; exports.ResolvedVariableType = ResolvedVariableType; exports.StringVariableScopeType = StringVariableScopeType; exports.SupernovaApiClient = SupernovaApiClient; exports.ThemesEndpoint = ThemesEndpoint; exports.TokenCollectionsEndpoint = TokenCollectionsEndpoint; exports.TokenGroupsEndpoint = TokenGroupsEndpoint; exports.TokensEndpoint = TokensEndpoint; exports.UsersEndpoint = UsersEndpoint; exports.Variable = Variable; exports.VariableAlias = VariableAlias; exports.VariableMode = VariableMode; exports.VariableValue = VariableValue; exports.VariablesMapping = VariablesMapping; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.VersionStatsEndpoint = VersionStatsEndpoint; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.WorkspaceInvitationsEndpoint = WorkspaceInvitationsEndpoint; exports.WorkspaceMembersEndpoint = WorkspaceMembersEndpoint; exports.WorkspacesEndpoint = WorkspacesEndpoint; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.computeDocsHierarchy = computeDocsHierarchy; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.innerEditorProsemirrorSchema = innerEditorProsemirrorSchema; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.mainEditorProsemirrorSchema = mainEditorProsemirrorSchema; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorDocToRichTextPropertyValue = prosemirrorDocToRichTextPropertyValue; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.richTextPropertyValueToProsemirror = richTextPropertyValueToProsemirror; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.serializeQuery = serializeQuery; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
14326
|
+
|
|
14327
|
+
|
|
14328
|
+
|
|
14329
|
+
|
|
14330
|
+
|
|
14331
|
+
|
|
14332
|
+
|
|
14333
|
+
|
|
14334
|
+
|
|
14335
|
+
|
|
14336
|
+
|
|
14337
|
+
|
|
14338
|
+
|
|
14339
|
+
|
|
14340
|
+
|
|
14341
|
+
|
|
14342
|
+
|
|
14343
|
+
|
|
14344
|
+
|
|
14345
|
+
|
|
14346
|
+
|
|
14347
|
+
|
|
14348
|
+
|
|
14349
|
+
|
|
14350
|
+
|
|
14351
|
+
|
|
14352
|
+
|
|
14353
|
+
|
|
14354
|
+
|
|
14355
|
+
|
|
14356
|
+
|
|
14357
|
+
|
|
14358
|
+
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BrandsEndpoint = BrandsEndpoint; exports.CodegenEndpoint = CodegenEndpoint; exports.Collection = Collection2; exports.DTOAppBootstrapDataQuery = DTOAppBootstrapDataQuery; exports.DTOAppBootstrapDataResponse = DTOAppBootstrapDataResponse; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOAuthenticatedUser = DTOAuthenticatedUser; exports.DTOAuthenticatedUserProfile = DTOAuthenticatedUserProfile; exports.DTOAuthenticatedUserResponse = DTOAuthenticatedUserResponse; exports.DTOBffFigmaImportRequestBody = DTOBffFigmaImportRequestBody; exports.DTOBffImportRequestBody = DTOBffImportRequestBody; exports.DTOBffUploadImportRequestBody = DTOBffUploadImportRequestBody; exports.DTOBrand = DTOBrand; exports.DTOBrandCreatePayload = DTOBrandCreatePayload; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandUpdatePayload = DTOBrandUpdatePayload; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOColorTokenInlineData = DTOColorTokenInlineData; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaCreatePayload = DTODataSourceFigmaCreatePayload; exports.DTODataSourceFigmaImportPayload = DTODataSourceFigmaImportPayload; exports.DTODataSourceFigmaScope = DTODataSourceFigmaScope; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceResponse = DTODataSourceResponse; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemComponent = DTODesignSystemComponent; exports.DTODesignSystemComponentCreateInput = DTODesignSystemComponentCreateInput; exports.DTODesignSystemComponentListResponse = DTODesignSystemComponentListResponse; exports.DTODesignSystemComponentResponse = DTODesignSystemComponentResponse; exports.DTODesignSystemContactsResponse = DTODesignSystemContactsResponse; exports.DTODesignSystemCreateInput = DTODesignSystemCreateInput; exports.DTODesignSystemInvitation = DTODesignSystemInvitation; exports.DTODesignSystemMember = DTODesignSystemMember; exports.DTODesignSystemMemberListResponse = DTODesignSystemMemberListResponse; exports.DTODesignSystemMembersUpdatePayload = DTODesignSystemMembersUpdatePayload; exports.DTODesignSystemMembersUpdateResponse = DTODesignSystemMembersUpdateResponse; exports.DTODesignSystemResponse = DTODesignSystemResponse; exports.DTODesignSystemRole = DTODesignSystemRole; exports.DTODesignSystemUpdateAccessModeInput = DTODesignSystemUpdateAccessModeInput; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionRoom = DTODesignSystemVersionRoom; exports.DTODesignSystemVersionRoomResponse = DTODesignSystemVersionRoomResponse; exports.DTODesignSystemVersionStats = DTODesignSystemVersionStats; exports.DTODesignSystemVersionStatsQuery = DTODesignSystemVersionStatsQuery; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODesignSystemsListResponse = DTODesignSystemsListResponse; exports.DTODesignToken = DTODesignToken; exports.DTODesignTokenCreatePayload = DTODesignTokenCreatePayload; exports.DTODesignTokenGroup = DTODesignTokenGroup; exports.DTODesignTokenGroupCreatePayload = DTODesignTokenGroupCreatePayload; exports.DTODesignTokenGroupListResponse = DTODesignTokenGroupListResponse; exports.DTODesignTokenGroupResponse = DTODesignTokenGroupResponse; exports.DTODesignTokenListResponse = DTODesignTokenListResponse; exports.DTODesignTokenResponse = DTODesignTokenResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoom = DTODocumentationPageRoom; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageRoomResponse = DTODocumentationPageRoomResponse; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageUpdateDocumentActionInputV2 = DTODocumentationPageUpdateDocumentActionInputV2; exports.DTODocumentationPageUpdateDocumentActionOutputV2 = DTODocumentationPageUpdateDocumentActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationSettings = DTODocumentationSettings; exports.DTODocumentationStructure = DTODocumentationStructure; exports.DTODocumentationStructureGroupItem = DTODocumentationStructureGroupItem; exports.DTODocumentationStructureItem = DTODocumentationStructureItem; exports.DTODocumentationStructurePageItem = DTODocumentationStructurePageItem; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinitionCreatePayload; exports.DTOElementPropertyDefinitionListResponse = DTOElementPropertyDefinitionListResponse; exports.DTOElementPropertyDefinitionOption = DTOElementPropertyDefinitionOption; exports.DTOElementPropertyDefinitionResponse = DTOElementPropertyDefinitionResponse; exports.DTOElementPropertyDefinitionUpdatePayload = DTOElementPropertyDefinitionUpdatePayload; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValueListResponse = DTOElementPropertyValueListResponse; exports.DTOElementPropertyValueResponse = DTOElementPropertyValueResponse; exports.DTOElementPropertyValueUpsertPaylod = DTOElementPropertyValueUpsertPaylod; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetOutputV2 = DTOElementsGetOutputV2; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOEvent = DTOEvent; exports.DTOEventDataSourcesImported = DTOEventDataSourcesImported; exports.DTOEventFigmaNodesRendered = DTOEventFigmaNodesRendered; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExportJobResponseLegacy = DTOExportJobResponseLegacy; exports.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterListQuery = DTOExporterListQuery; exports.DTOExporterListResponse = DTOExporterListResponse; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterPropertyDefinition = DTOExporterPropertyDefinition; exports.DTOExporterPropertyDefinitionArray = DTOExporterPropertyDefinitionArray; exports.DTOExporterPropertyDefinitionBoolean = DTOExporterPropertyDefinitionBoolean; exports.DTOExporterPropertyDefinitionEnum = DTOExporterPropertyDefinitionEnum; exports.DTOExporterPropertyDefinitionEnumOption = DTOExporterPropertyDefinitionEnumOption; exports.DTOExporterPropertyDefinitionNumber = DTOExporterPropertyDefinitionNumber; exports.DTOExporterPropertyDefinitionObject = DTOExporterPropertyDefinitionObject; exports.DTOExporterPropertyDefinitionString = DTOExporterPropertyDefinitionString; exports.DTOExporterPropertyDefinitionValue = DTOExporterPropertyDefinitionValue; exports.DTOExporterPropertyDefinitionValueMap = DTOExporterPropertyDefinitionValueMap; exports.DTOExporterPropertyDefinitionsResponse = DTOExporterPropertyDefinitionsResponse; exports.DTOExporterPropertyType = DTOExporterPropertyType; exports.DTOExporterResponse = DTOExporterResponse; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaComponent = DTOFigmaComponent; exports.DTOFigmaComponentGroup = DTOFigmaComponentGroup; exports.DTOFigmaComponentGroupListResponse = DTOFigmaComponentGroupListResponse; exports.DTOFigmaComponentListResponse = DTOFigmaComponentListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeDataV2 = DTOFigmaNodeDataV2; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderAsyncActionInput = DTOFigmaNodeRenderAsyncActionInput; exports.DTOFigmaNodeRenderAsyncActionOutput = DTOFigmaNodeRenderAsyncActionOutput; exports.DTOFigmaNodeRenderFormat = DTOFigmaNodeRenderFormat; exports.DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderIdInput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderUrlInput; exports.DTOFigmaNodeRerenderInput = DTOFigmaNodeRerenderInput; exports.DTOFigmaNodeV2 = DTOFigmaNodeV2; exports.DTOFrameNodeStructure = DTOFrameNodeStructure; exports.DTOFrameNodeStructureListResponse = DTOFrameNodeStructureListResponse; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOImportJob = DTOImportJob; exports.DTOImportJobResponse = DTOImportJobResponse; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOObjectMeta = DTOObjectMeta; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPageRedirect = DTOPageRedirect; exports.DTOPageRedirectCreateBody = DTOPageRedirectCreateBody; exports.DTOPageRedirectDeleteResponse = DTOPageRedirectDeleteResponse; exports.DTOPageRedirectListResponse = DTOPageRedirectListResponse; exports.DTOPageRedirectResponse = DTOPageRedirectResponse; exports.DTOPageRedirectUpdateBody = DTOPageRedirectUpdateBody; exports.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineListQuery = DTOPipelineListQuery; exports.DTOPipelineListResponse = DTOPipelineListResponse; exports.DTOPipelineResponse = DTOPipelineResponse; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOTheme = DTOTheme; exports.DTOThemeCreatePayload = DTOThemeCreatePayload; exports.DTOThemeListResponse = DTOThemeListResponse; exports.DTOThemeOverride = DTOThemeOverride; exports.DTOThemeOverrideCreatePayload = DTOThemeOverrideCreatePayload; exports.DTOThemeResponse = DTOThemeResponse; exports.DTOTokenCollection = DTOTokenCollection; exports.DTOTokenCollectionsListReponse = DTOTokenCollectionsListReponse; exports.DTOTransferOwnershipPayload = DTOTransferOwnershipPayload; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageDocumentInputV2 = DTOUpdateDocumentationPageDocumentInputV2; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUser = DTOUser; exports.DTOUserGetResponse = DTOUserGetResponse; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserOnboarding = DTOUserOnboarding; exports.DTOUserOnboardingDepartment = DTOUserOnboardingDepartment; exports.DTOUserOnboardingJobLevel = DTOUserOnboardingJobLevel; exports.DTOUserProfile = DTOUserProfile; exports.DTOUserProfileUpdate = DTOUserProfileUpdate; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserSource = DTOUserSource; exports.DTOUserTheme = DTOUserTheme; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceCreateInput = DTOWorkspaceCreateInput; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceInvitationInput = DTOWorkspaceInvitationInput; exports.DTOWorkspaceInvitationUpdateResponse = DTOWorkspaceInvitationUpdateResponse; exports.DTOWorkspaceInvitationsListInput = DTOWorkspaceInvitationsListInput; exports.DTOWorkspaceInvitationsResponse = DTOWorkspaceInvitationsResponse; exports.DTOWorkspaceInviteUpdate = DTOWorkspaceInviteUpdate; exports.DTOWorkspaceMember = DTOWorkspaceMember; exports.DTOWorkspaceMembersListResponse = DTOWorkspaceMembersListResponse; exports.DTOWorkspaceProfile = DTOWorkspaceProfile; exports.DTOWorkspaceResponse = DTOWorkspaceResponse; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DesignSystemBffEndpoint = DesignSystemBffEndpoint; exports.DesignSystemComponentEndpoint = DesignSystemComponentEndpoint; exports.DesignSystemContactsEndpoint = DesignSystemContactsEndpoint; exports.DesignSystemMembersEndpoint = DesignSystemMembersEndpoint; exports.DesignSystemPageRedirectsEndpoint = DesignSystemPageRedirectsEndpoint; exports.DesignSystemSourcesEndpoint = DesignSystemSourcesEndpoint; exports.DesignSystemVersionsEndpoint = DesignSystemVersionsEndpoint; exports.DesignSystemsEndpoint = DesignSystemsEndpoint; exports.DimensionsVariableScopeType = DimensionsVariableScopeType; exports.DocsStructureRepository = DocsStructureRepository; exports.DocumentationEndpoint = DocumentationEndpoint; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ElementPropertyDefinitionsEndpoint = ElementPropertyDefinitionsEndpoint; exports.ElementPropertyValuesEndpoint = ElementPropertyValuesEndpoint; exports.ElementsActionEndpoint = ElementsActionEndpoint; exports.ElementsEndpoint = ElementsEndpoint; exports.ExporterJobsEndpoint = ExporterJobsEndpoint; exports.ExportersEndpoint = ExportersEndpoint; exports.FigmaComponentGroupsEndpoint = FigmaComponentGroupsEndpoint; exports.FigmaComponentsEndpoint = FigmaComponentsEndpoint; exports.FigmaFrameStructuresEndpoint = FigmaFrameStructuresEndpoint; exports.FigmaUtils = FigmaUtils; exports.FormattedCollections = FormattedCollections; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ImportJobsEndpoint = ImportJobsEndpoint; exports.ListTreeBuilder = ListTreeBuilder; exports.LiveblocksEndpoint = LiveblocksEndpoint; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.OverridesEndpoint = OverridesEndpoint; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.ParsedFigmaFileURLError = ParsedFigmaFileURLError; exports.PipelinesEndpoint = PipelinesEndpoint; exports.RGB = RGB; exports.RGBA = RGBA; exports.RequestExecutor = RequestExecutor; exports.RequestExecutorError = RequestExecutorError; exports.ResolvedVariableType = ResolvedVariableType; exports.StringVariableScopeType = StringVariableScopeType; exports.SupernovaApiClient = SupernovaApiClient; exports.ThemesEndpoint = ThemesEndpoint; exports.TokenCollectionsEndpoint = TokenCollectionsEndpoint; exports.TokenGroupsEndpoint = TokenGroupsEndpoint; exports.TokensEndpoint = TokensEndpoint; exports.UsersEndpoint = UsersEndpoint; exports.Variable = Variable; exports.VariableAlias = VariableAlias; exports.VariableMode = VariableMode; exports.VariableValue = VariableValue; exports.VariablesMapping = VariablesMapping; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.VersionStatsEndpoint = VersionStatsEndpoint; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.WorkspaceInvitationsEndpoint = WorkspaceInvitationsEndpoint; exports.WorkspaceMembersEndpoint = WorkspaceMembersEndpoint; exports.WorkspacesEndpoint = WorkspacesEndpoint; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.computeDocsHierarchy = computeDocsHierarchy; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.exhaustiveInvalidUriPaths = exhaustiveInvalidUriPaths; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.innerEditorProsemirrorSchema = innerEditorProsemirrorSchema; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.isValidRedirectPath = isValidRedirectPath; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.mainEditorProsemirrorSchema = mainEditorProsemirrorSchema; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorDocToRichTextPropertyValue = prosemirrorDocToRichTextPropertyValue; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.richTextPropertyValueToProsemirror = richTextPropertyValueToProsemirror; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.serializeQuery = serializeQuery; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
13443
14359
|
//# sourceMappingURL=index.js.map
|