@supernova-studio/client 1.0.0-alpha.8 → 1.0.0
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 +11375 -3738
- package/dist/index.d.ts +11375 -3738
- package/dist/index.js +976 -309
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3825 -3158
- 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(),
|
|
@@ -2653,23 +2715,33 @@ var FigmaFileStructureElementData = _zod.z.object({
|
|
|
2653
2715
|
assetsInFile: FigmaFileStructureStatistics
|
|
2654
2716
|
})
|
|
2655
2717
|
});
|
|
2718
|
+
var FigmaNodeRenderState = _zod.z.enum(["InProgress", "Success", "Failed"]);
|
|
2656
2719
|
var FigmaNodeRenderFormat = _zod.z.enum(["Png", "Svg"]);
|
|
2657
|
-
var
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
assetOriginKey: _zod.z.string().optional()
|
|
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())
|
|
2670
2732
|
});
|
|
2671
|
-
var
|
|
2672
|
-
|
|
2733
|
+
var FigmaNodeRenderError = _zod.z.object({
|
|
2734
|
+
type: FigmaNodeRenderErrorType
|
|
2735
|
+
});
|
|
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()
|
|
2673
2745
|
});
|
|
2674
2746
|
var FontFamilyValue = _zod.z.string();
|
|
2675
2747
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
@@ -3245,7 +3317,7 @@ var ImportJob = Entity.extend({
|
|
|
3245
3317
|
var ImportFunctionInput = _zod.z.object({
|
|
3246
3318
|
importJobId: _zod.z.string(),
|
|
3247
3319
|
importContextId: _zod.z.string(),
|
|
3248
|
-
designSystemId: _zod.z.string()
|
|
3320
|
+
designSystemId: _zod.z.string()
|
|
3249
3321
|
});
|
|
3250
3322
|
var ImportedFigmaSourceData = _zod.z.object({
|
|
3251
3323
|
sourceId: _zod.z.string(),
|
|
@@ -3275,7 +3347,8 @@ var FigmaImportBaseContext = _zod.z.object({
|
|
|
3275
3347
|
var FeatureFlagsKeepAliases = _zod.z.object({
|
|
3276
3348
|
isTypographyPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3277
3349
|
isGradientPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3278
|
-
isShadowPropsKeepAliasesEnabled: _zod.z.boolean().default(false)
|
|
3350
|
+
isShadowPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3351
|
+
isNonCompatibleTypeChangesEnabled: _zod.z.boolean().default(false)
|
|
3279
3352
|
});
|
|
3280
3353
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3281
3354
|
sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
|
|
@@ -3407,11 +3480,7 @@ var DataSourceImportModel = _zod.z.object({
|
|
|
3407
3480
|
fileName: _zod.z.string().optional(),
|
|
3408
3481
|
thumbnailUrl: _zod.z.string().optional()
|
|
3409
3482
|
});
|
|
3410
|
-
var
|
|
3411
|
-
png: FigmaPngRenderImportModel,
|
|
3412
|
-
svg: FigmaSvgRenderImportModel
|
|
3413
|
-
});
|
|
3414
|
-
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
3483
|
+
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeBase.extend({
|
|
3415
3484
|
children: _zod.z.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
3416
3485
|
});
|
|
3417
3486
|
var FigmaFileStructureImportModelPart = _zod.z.object({
|
|
@@ -3633,6 +3702,14 @@ var DocumentationPage = _zod.z.object({
|
|
|
3633
3702
|
createdAt: _zod.z.coerce.date(),
|
|
3634
3703
|
updatedAt: _zod.z.coerce.date()
|
|
3635
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
|
+
});
|
|
3636
3713
|
var DocumentationSettings = _zod.z.object({
|
|
3637
3714
|
// Basic
|
|
3638
3715
|
designSystemVersionId: _zod.z.string(),
|
|
@@ -3699,6 +3776,11 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
|
3699
3776
|
function pickLatestGroupSnapshots(snapshots) {
|
|
3700
3777
|
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3701
3778
|
}
|
|
3779
|
+
var FigmaNodeRendererPayload = _zod.z.object({
|
|
3780
|
+
designSystemId: _zod.z.string(),
|
|
3781
|
+
versionId: _zod.z.string(),
|
|
3782
|
+
figmaNodePersistentIds: _zod.z.string().array()
|
|
3783
|
+
});
|
|
3702
3784
|
var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
3703
3785
|
var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3704
3786
|
var NpmRegistryBasicAuthConfig = _zod.z.object({
|
|
@@ -3867,6 +3949,26 @@ var UserNotificationSettings = _zod.z.object({
|
|
|
3867
3949
|
});
|
|
3868
3950
|
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3869
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
|
+
});
|
|
3870
3972
|
var UserOnboarding = _zod.z.object({
|
|
3871
3973
|
companyName: _zod.z.string().optional(),
|
|
3872
3974
|
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
@@ -3885,7 +3987,8 @@ var UserProfile = _zod.z.object({
|
|
|
3885
3987
|
name: _zod.z.string(),
|
|
3886
3988
|
avatar: _zod.z.string().optional(),
|
|
3887
3989
|
nickname: _zod.z.string().optional(),
|
|
3888
|
-
onboarding: UserOnboarding.optional()
|
|
3990
|
+
onboarding: UserOnboarding.optional(),
|
|
3991
|
+
theme: UserTheme.optional()
|
|
3889
3992
|
});
|
|
3890
3993
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3891
3994
|
avatar: true
|
|
@@ -4240,6 +4343,15 @@ var ExportDestinationsMap = _zod.z.object({
|
|
|
4240
4343
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
4241
4344
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
4242
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
|
+
});
|
|
4243
4355
|
var PipelineEventType = _zod.z.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4244
4356
|
var PipelineDestinationGitType = _zod.z.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4245
4357
|
var PipelineDestinationExtraType = _zod.z.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
@@ -4255,6 +4367,7 @@ var Pipeline = _zod.z.object({
|
|
|
4255
4367
|
brandPersistentId: _zod.z.string().optional(),
|
|
4256
4368
|
themePersistentId: _zod.z.string().optional(),
|
|
4257
4369
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
4370
|
+
exporterPropertyValues: ExporterPropertyDefinitionValueMap.optional(),
|
|
4258
4371
|
// Destinations
|
|
4259
4372
|
...ExportDestinationsMap.shape
|
|
4260
4373
|
});
|
|
@@ -4285,7 +4398,8 @@ var DesignSystemVersionRoomInitialState = _zod.z.object({
|
|
|
4285
4398
|
pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
|
|
4286
4399
|
groupSnapshots: _zod.z.array(ElementGroupSnapshot),
|
|
4287
4400
|
pageApprovals: _zod.z.array(DocumentationPageApproval),
|
|
4288
|
-
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4401
|
+
internalSettings: DesignSystemVersionRoomInternalSettings,
|
|
4402
|
+
pageHashes: _zod.z.record(_zod.z.string()).optional()
|
|
4289
4403
|
});
|
|
4290
4404
|
var DesignSystemVersionRoomUpdate = _zod.z.object({
|
|
4291
4405
|
pages: _zod.z.array(DocumentationPageV2),
|
|
@@ -4298,7 +4412,8 @@ var DesignSystemVersionRoomUpdate = _zod.z.object({
|
|
|
4298
4412
|
groupSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
4299
4413
|
pageHashesToUpdate: _zod.z.record(_zod.z.string(), _zod.z.string()),
|
|
4300
4414
|
pageApprovals: _zod.z.array(DocumentationPageApproval),
|
|
4301
|
-
pageApprovalIdsToDelete: _zod.z.array(_zod.z.string())
|
|
4415
|
+
pageApprovalIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
4416
|
+
executedTransactionIds: _zod.z.array(_zod.z.string())
|
|
4302
4417
|
});
|
|
4303
4418
|
var DocumentationPageRoom = Entity.extend({
|
|
4304
4419
|
designSystemVersionId: _zod.z.string(),
|
|
@@ -4322,9 +4437,7 @@ var RestoredDocumentationPage = _zod.z.object({
|
|
|
4322
4437
|
page: DocumentationPageV2,
|
|
4323
4438
|
pageParent: ElementGroup,
|
|
4324
4439
|
pageContent: DocumentationPageContentData,
|
|
4325
|
-
contentHash: _zod.z.string()
|
|
4326
|
-
snapshotId: _zod.z.string(),
|
|
4327
|
-
roomId: _zod.z.string().optional()
|
|
4440
|
+
contentHash: _zod.z.string()
|
|
4328
4441
|
});
|
|
4329
4442
|
var RestoredDocumentationGroup = _zod.z.object({
|
|
4330
4443
|
group: ElementGroup,
|
|
@@ -4563,7 +4676,8 @@ var ExportJobContext = _zod.z.object({
|
|
|
4563
4676
|
});
|
|
4564
4677
|
var ExportJobExporterConfiguration = _zod.z.object({
|
|
4565
4678
|
exporterPackageUrl: _zod.z.string(),
|
|
4566
|
-
exporterPropertyValues: ExporterPropertyValue.array()
|
|
4679
|
+
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4680
|
+
exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional()
|
|
4567
4681
|
});
|
|
4568
4682
|
var ExporterFunctionPayload = _zod.z.object({
|
|
4569
4683
|
exportJobId: _zod.z.string(),
|
|
@@ -4628,6 +4742,7 @@ var ExportJob = _zod.z.object({
|
|
|
4628
4742
|
status: ExportJobStatus,
|
|
4629
4743
|
result: ExportJobResult.optional(),
|
|
4630
4744
|
createdByUserId: _zod.z.string().optional(),
|
|
4745
|
+
exporterPropertyValues: ExporterPropertyDefinitionValueMap.optional(),
|
|
4631
4746
|
// Destinations
|
|
4632
4747
|
...ExportDestinationsMap.shape
|
|
4633
4748
|
});
|
|
@@ -4658,7 +4773,8 @@ var FlaggedFeature = _zod.z.enum([
|
|
|
4658
4773
|
"VariablesOrder",
|
|
4659
4774
|
"TypographyPropsKeepAliases",
|
|
4660
4775
|
"GradientPropsKeepAliases",
|
|
4661
|
-
"ShadowPropsKeepAliases"
|
|
4776
|
+
"ShadowPropsKeepAliases",
|
|
4777
|
+
"NonCompatibleTypeChanges"
|
|
4662
4778
|
]);
|
|
4663
4779
|
var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
|
|
4664
4780
|
var FeatureFlag = _zod.z.object({
|
|
@@ -5127,6 +5243,7 @@ function pipelineToDto(pipeline) {
|
|
|
5127
5243
|
destinationGithub: pipeline.destinationGithub,
|
|
5128
5244
|
destinationGitlab: pipeline.destinationGitlab,
|
|
5129
5245
|
destinationS3: pipeline.destinationS3,
|
|
5246
|
+
exporterPropertyValues: pipeline.exporterPropertyValues,
|
|
5130
5247
|
webhookUrl: pipeline.webhookUrl,
|
|
5131
5248
|
latestJobs: []
|
|
5132
5249
|
};
|
|
@@ -5291,6 +5408,7 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
5291
5408
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
5292
5409
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5293
5410
|
var DTOUserSource = UserSource;
|
|
5411
|
+
var DTOUserTheme = UserTheme;
|
|
5294
5412
|
var DTOUserOnboarding = _zod.z.object({
|
|
5295
5413
|
companyName: _zod.z.string().optional(),
|
|
5296
5414
|
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
@@ -5304,7 +5422,8 @@ var DTOUserOnboarding = _zod.z.object({
|
|
|
5304
5422
|
isPageDraftOnboardingFinished: _zod.z.boolean().optional()
|
|
5305
5423
|
});
|
|
5306
5424
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5307
|
-
onboarding: DTOUserOnboarding.optional()
|
|
5425
|
+
onboarding: DTOUserOnboarding.optional(),
|
|
5426
|
+
theme: DTOUserTheme.optional()
|
|
5308
5427
|
});
|
|
5309
5428
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5310
5429
|
profile: DTOAuthenticatedUserProfile,
|
|
@@ -5643,6 +5762,28 @@ var DTOBffImportRequestBody = _zod.z.discriminatedUnion("type", [
|
|
|
5643
5762
|
DTOBffUploadImportRequestBody
|
|
5644
5763
|
]);
|
|
5645
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
|
+
|
|
5646
5787
|
// src/api/dto/design-systems/stats.ts
|
|
5647
5788
|
|
|
5648
5789
|
var DTODesignSystemVersionStats = _zod.z.object({
|
|
@@ -5659,6 +5800,15 @@ var DTODesignSystemVersionStatsQuery = _zod.z.object({
|
|
|
5659
5800
|
brandId: _zod.z.string().optional()
|
|
5660
5801
|
});
|
|
5661
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
|
+
|
|
5662
5812
|
// src/api/dto/design-systems/version.ts
|
|
5663
5813
|
|
|
5664
5814
|
|
|
@@ -5735,45 +5885,52 @@ var DTODocumentationPublishTypeQueryParams = _zod.z.object({
|
|
|
5735
5885
|
|
|
5736
5886
|
// src/api/dto/export/exporter-property.ts
|
|
5737
5887
|
|
|
5738
|
-
var
|
|
5739
|
-
var
|
|
5740
|
-
var
|
|
5741
|
-
var
|
|
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 DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
5742
5892
|
var DTOExporterPropertyType = _zod.z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5743
|
-
var
|
|
5893
|
+
var PropertyDefinitionBase2 = _zod.z.object({
|
|
5744
5894
|
key: _zod.z.string(),
|
|
5745
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(),
|
|
5746
5902
|
description: _zod.z.string()
|
|
5747
5903
|
});
|
|
5748
|
-
var DTOExporterPropertyDefinitionEnum =
|
|
5904
|
+
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
5749
5905
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Enum),
|
|
5750
|
-
options: _zod.z.
|
|
5906
|
+
options: _zod.z.record(DTOExporterPropertyDefinitionEnumOption),
|
|
5751
5907
|
default: _zod.z.string()
|
|
5752
5908
|
});
|
|
5753
|
-
var DTOExporterPropertyDefinitionBoolean =
|
|
5909
|
+
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
5754
5910
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
5755
5911
|
default: _zod.z.boolean()
|
|
5756
5912
|
});
|
|
5757
|
-
var DTOExporterPropertyDefinitionString =
|
|
5913
|
+
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
5758
5914
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.String),
|
|
5759
5915
|
default: _zod.z.string()
|
|
5760
5916
|
});
|
|
5761
|
-
var DTOExporterPropertyDefinitionNumber =
|
|
5917
|
+
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
5762
5918
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Number),
|
|
5763
5919
|
default: _zod.z.number()
|
|
5764
5920
|
});
|
|
5765
|
-
var DTOExporterPropertyDefinitionArray =
|
|
5921
|
+
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
5766
5922
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Array),
|
|
5767
|
-
default:
|
|
5923
|
+
default: ArrayValue2
|
|
5768
5924
|
});
|
|
5769
|
-
var DTOExporterPropertyDefinitionObject =
|
|
5925
|
+
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
5770
5926
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Object),
|
|
5771
|
-
default:
|
|
5927
|
+
default: ObjectValue2,
|
|
5772
5928
|
allowedKeys: _zod.z.object({
|
|
5773
|
-
options: _zod.z.string().array()
|
|
5929
|
+
options: _zod.z.string().array(),
|
|
5930
|
+
type: _zod.z.string()
|
|
5774
5931
|
}).optional(),
|
|
5775
5932
|
allowedValues: _zod.z.object({
|
|
5776
|
-
|
|
5933
|
+
type: _zod.z.string()
|
|
5777
5934
|
}).optional()
|
|
5778
5935
|
});
|
|
5779
5936
|
var DTOExporterPropertyDefinition = _zod.z.discriminatedUnion("type", [
|
|
@@ -5787,7 +5944,7 @@ var DTOExporterPropertyDefinition = _zod.z.discriminatedUnion("type", [
|
|
|
5787
5944
|
var DTOExporterPropertyDefinitionsResponse = _zod.z.object({
|
|
5788
5945
|
properties: DTOExporterPropertyDefinition.array()
|
|
5789
5946
|
});
|
|
5790
|
-
var
|
|
5947
|
+
var DTOExporterPropertyValueMap = _zod.z.record(DTOExporterPropertyValue);
|
|
5791
5948
|
|
|
5792
5949
|
// src/api/payloads/export/pipeline.ts
|
|
5793
5950
|
var DTOPipelineCreateBody = _zod.z.object({
|
|
@@ -5799,7 +5956,7 @@ var DTOPipelineCreateBody = _zod.z.object({
|
|
|
5799
5956
|
brandPersistentId: _zod.z.string().optional(),
|
|
5800
5957
|
themePersistentId: _zod.z.string().optional(),
|
|
5801
5958
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
5802
|
-
|
|
5959
|
+
exporterConfigurationProperties: DTOExporterPropertyValueMap.optional(),
|
|
5803
5960
|
destination: PipelineDestinationType.optional(),
|
|
5804
5961
|
gitQuery: GitObjectsQuery,
|
|
5805
5962
|
destinations: _zod.z.object({
|
|
@@ -5812,8 +5969,26 @@ var DTOPipelineCreateBody = _zod.z.object({
|
|
|
5812
5969
|
webhookUrl: _zod.z.string().nullish()
|
|
5813
5970
|
})
|
|
5814
5971
|
});
|
|
5815
|
-
var DTOPipelineUpdateBody =
|
|
5816
|
-
|
|
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: DTOExporterPropertyValueMap.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()
|
|
5817
5992
|
});
|
|
5818
5993
|
var DTOPipelineTriggerBody = _zod.z.object({
|
|
5819
5994
|
designSystemVersionId: _zod.z.string()
|
|
@@ -6216,7 +6391,14 @@ var DTOGetDocumentationPageAnchorsResponse = _zod.z.object({
|
|
|
6216
6391
|
|
|
6217
6392
|
// src/api/dto/documentation/approvals.ts
|
|
6218
6393
|
|
|
6219
|
-
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
|
+
});
|
|
6220
6402
|
var DTODocumentationGroupApprovalState = _zod.z.object({
|
|
6221
6403
|
persistentId: _zod.z.string(),
|
|
6222
6404
|
groupPersistentId: _zod.z.string(),
|
|
@@ -6312,12 +6494,18 @@ var DTOCreateDocumentationPageInputV2 = _zod.z.object({
|
|
|
6312
6494
|
afterPersistentId: _zod.z.string().nullish()
|
|
6313
6495
|
});
|
|
6314
6496
|
var DTOUpdateDocumentationPageInputV2 = _zod.z.object({
|
|
6315
|
-
// Identifier of the
|
|
6497
|
+
// Identifier of the page to update
|
|
6316
6498
|
id: _zod.z.string(),
|
|
6317
6499
|
// Page properties
|
|
6318
6500
|
title: _zod.z.string().optional(),
|
|
6319
6501
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6320
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
|
+
});
|
|
6321
6509
|
var DTOMoveDocumentationPageInputV2 = _zod.z.object({
|
|
6322
6510
|
// Identifier of the group to update
|
|
6323
6511
|
id: _zod.z.string(),
|
|
@@ -6473,7 +6661,7 @@ var DTOExportJob = _zod.z.object({
|
|
|
6473
6661
|
brandPersistentId: _zod.z.string().optional(),
|
|
6474
6662
|
themePersistentId: _zod.z.string().optional(),
|
|
6475
6663
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
6476
|
-
|
|
6664
|
+
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6477
6665
|
});
|
|
6478
6666
|
var DTOExportJobResponse = _zod.z.object({
|
|
6479
6667
|
job: DTOExportJob
|
|
@@ -6503,7 +6691,7 @@ var DTOPipeline = _zod.z.object({
|
|
|
6503
6691
|
brandPersistentId: _zod.z.string().optional(),
|
|
6504
6692
|
themePersistentId: _zod.z.string().optional(),
|
|
6505
6693
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
6506
|
-
|
|
6694
|
+
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6507
6695
|
...ExportDestinationsMap.shape,
|
|
6508
6696
|
latestJobs: DTOExportJob.array()
|
|
6509
6697
|
});
|
|
@@ -6778,7 +6966,9 @@ var DTODocumentationHierarchyV2 = _zod.z.object({
|
|
|
6778
6966
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6779
6967
|
draftState: DTODocumentationDraftState.optional()
|
|
6780
6968
|
})
|
|
6781
|
-
)
|
|
6969
|
+
),
|
|
6970
|
+
/** True if the documentation was already published, false otherwise. */
|
|
6971
|
+
hasPublishedDocumentationContent: _zod.z.boolean()
|
|
6782
6972
|
});
|
|
6783
6973
|
|
|
6784
6974
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
@@ -6794,6 +6984,10 @@ var DTODocumentationPageUpdateActionOutputV2 = _zod.z.object({
|
|
|
6794
6984
|
type: _zod.z.literal("DocumentationPageUpdate"),
|
|
6795
6985
|
output: SuccessPayload2
|
|
6796
6986
|
});
|
|
6987
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = _zod.z.object({
|
|
6988
|
+
type: _zod.z.literal("DocumentationPageUpdateDocument"),
|
|
6989
|
+
output: SuccessPayload2
|
|
6990
|
+
});
|
|
6797
6991
|
var DTODocumentationPageMoveActionOutputV2 = _zod.z.object({
|
|
6798
6992
|
type: _zod.z.literal("DocumentationPageMove"),
|
|
6799
6993
|
output: SuccessPayload2
|
|
@@ -6826,6 +7020,10 @@ var DTODocumentationPageUpdateActionInputV2 = _zod.z.object({
|
|
|
6826
7020
|
type: _zod.z.literal("DocumentationPageUpdate"),
|
|
6827
7021
|
input: DTOUpdateDocumentationPageInputV2
|
|
6828
7022
|
});
|
|
7023
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = _zod.z.object({
|
|
7024
|
+
type: _zod.z.literal("DocumentationPageUpdateDocument"),
|
|
7025
|
+
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7026
|
+
});
|
|
6829
7027
|
var DTODocumentationPageMoveActionInputV2 = _zod.z.object({
|
|
6830
7028
|
type: _zod.z.literal("DocumentationPageMove"),
|
|
6831
7029
|
input: DTOMoveDocumentationPageInputV2
|
|
@@ -6872,6 +7070,14 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6872
7070
|
path: _zod.z.string()
|
|
6873
7071
|
});
|
|
6874
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
|
+
|
|
6875
7081
|
// src/api/dto/elements/documentation/structure.ts
|
|
6876
7082
|
|
|
6877
7083
|
var DTODocumentationStructureItemType = _zod.z.enum(["Group", "Page"]);
|
|
@@ -6903,6 +7109,9 @@ var DTODocumentationStructure = _zod.z.object({
|
|
|
6903
7109
|
items: _zod.z.array(DTODocumentationStructureItem)
|
|
6904
7110
|
});
|
|
6905
7111
|
|
|
7112
|
+
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7113
|
+
|
|
7114
|
+
|
|
6906
7115
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6907
7116
|
|
|
6908
7117
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
@@ -6911,32 +7120,15 @@ var DTOFigmaNodeOrigin = _zod.z.object({
|
|
|
6911
7120
|
fileId: _zod.z.string().optional(),
|
|
6912
7121
|
parentName: _zod.z.string().optional()
|
|
6913
7122
|
});
|
|
6914
|
-
var DTOFigmaNodeData = _zod.z.object({
|
|
6915
|
-
// Id of the node in the Figma file
|
|
6916
|
-
figmaNodeId: _zod.z.string(),
|
|
6917
|
-
// Validity
|
|
6918
|
-
isValid: _zod.z.boolean(),
|
|
6919
|
-
// Asset data
|
|
6920
|
-
assetId: _zod.z.string(),
|
|
6921
|
-
assetUrl: _zod.z.string(),
|
|
6922
|
-
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6923
|
-
// Asset metadata
|
|
6924
|
-
assetScale: _zod.z.number(),
|
|
6925
|
-
assetWidth: _zod.z.number().optional(),
|
|
6926
|
-
assetHeight: _zod.z.number().optional()
|
|
6927
|
-
});
|
|
6928
|
-
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6929
|
-
data: true,
|
|
6930
|
-
origin: true
|
|
6931
|
-
}).extend({
|
|
6932
|
-
data: DTOFigmaNodeData,
|
|
6933
|
-
origin: DTOFigmaNodeOrigin
|
|
6934
|
-
});
|
|
6935
7123
|
var DTOFigmaNodeRenderInputBase = _zod.z.object({
|
|
6936
7124
|
/**
|
|
6937
7125
|
* Format in which the node must be rendered, png by default.
|
|
6938
7126
|
*/
|
|
6939
|
-
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()
|
|
6940
7132
|
});
|
|
6941
7133
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
6942
7134
|
inputType: _zod.z.literal("NodeId").optional().transform((v) => _nullishCoalesce(v, () => ( "NodeId"))),
|
|
@@ -6954,22 +7146,84 @@ var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
|
6954
7146
|
/**
|
|
6955
7147
|
* Id of a design system's data source representing a linked Figma file
|
|
6956
7148
|
*/
|
|
6957
|
-
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()
|
|
6958
7161
|
});
|
|
6959
7162
|
var DTOFigmaNodeRenderInput = _zod.z.discriminatedUnion("inputType", [
|
|
6960
7163
|
DTOFigmaNodeRenderIdInput,
|
|
6961
|
-
DTOFigmaNodeRenderUrlInput
|
|
7164
|
+
DTOFigmaNodeRenderUrlInput,
|
|
7165
|
+
DTOFigmaNodeRerenderInput
|
|
6962
7166
|
]);
|
|
6963
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
|
+
|
|
6964
7210
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6965
7211
|
|
|
6966
7212
|
var DTOFigmaNodeRenderActionOutput = _zod.z.object({
|
|
6967
7213
|
type: _zod.z.literal("FigmaNodeRender"),
|
|
6968
7214
|
figmaNodes: _zod.z.array(DTOFigmaNode)
|
|
6969
7215
|
});
|
|
7216
|
+
var DTOFigmaNodeRenderAsyncActionOutput = _zod.z.object({
|
|
7217
|
+
type: _zod.z.literal("FigmaNodeRenderAsync"),
|
|
7218
|
+
figmaNodes: _zod.z.array(DTOFigmaNodeV2)
|
|
7219
|
+
});
|
|
6970
7220
|
var DTOFigmaNodeRenderActionInput = _zod.z.object({
|
|
6971
7221
|
type: _zod.z.literal("FigmaNodeRender"),
|
|
6972
|
-
input:
|
|
7222
|
+
input: DTOFigmaNodeRenderIdInput.array()
|
|
7223
|
+
});
|
|
7224
|
+
var DTOFigmaNodeRenderAsyncActionInput = _zod.z.object({
|
|
7225
|
+
type: _zod.z.literal("FigmaNodeRenderAsync"),
|
|
7226
|
+
nodes: DTOFigmaNodeRenderInput.array()
|
|
6973
7227
|
});
|
|
6974
7228
|
|
|
6975
7229
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
@@ -7056,6 +7310,7 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
|
|
|
7056
7310
|
// Documentation pages
|
|
7057
7311
|
DTODocumentationPageCreateActionOutputV2,
|
|
7058
7312
|
DTODocumentationPageUpdateActionOutputV2,
|
|
7313
|
+
DTODocumentationPageUpdateDocumentActionOutputV2,
|
|
7059
7314
|
DTODocumentationPageMoveActionOutputV2,
|
|
7060
7315
|
DTODocumentationPageDuplicateActionOutputV2,
|
|
7061
7316
|
DTODocumentationPageDeleteActionOutputV2,
|
|
@@ -7069,6 +7324,7 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
|
|
|
7069
7324
|
DTODocumentationTabGroupDeleteActionOutputV2,
|
|
7070
7325
|
// Figma frames
|
|
7071
7326
|
DTOFigmaNodeRenderActionOutput,
|
|
7327
|
+
DTOFigmaNodeRenderAsyncActionOutput,
|
|
7072
7328
|
// Restore
|
|
7073
7329
|
DTODocumentationPageRestoreActionOutput,
|
|
7074
7330
|
DTODocumentationGroupRestoreActionOutput,
|
|
@@ -7079,6 +7335,7 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
|
7079
7335
|
// Documentation pages
|
|
7080
7336
|
DTODocumentationPageCreateActionInputV2,
|
|
7081
7337
|
DTODocumentationPageUpdateActionInputV2,
|
|
7338
|
+
DTODocumentationPageUpdateDocumentActionInputV2,
|
|
7082
7339
|
DTODocumentationPageMoveActionInputV2,
|
|
7083
7340
|
DTODocumentationPageDuplicateActionInputV2,
|
|
7084
7341
|
DTODocumentationPageDeleteActionInputV2,
|
|
@@ -7092,22 +7349,31 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
|
7092
7349
|
DTODocumentationTabGroupDeleteActionInputV2,
|
|
7093
7350
|
// Figma frames
|
|
7094
7351
|
DTOFigmaNodeRenderActionInput,
|
|
7352
|
+
DTOFigmaNodeRenderAsyncActionInput,
|
|
7095
7353
|
// Restore
|
|
7096
7354
|
DTODocumentationPageRestoreActionInput,
|
|
7097
7355
|
DTODocumentationGroupRestoreActionInput,
|
|
7098
7356
|
// Approval
|
|
7099
7357
|
DTODocumentationPageApprovalStateChangeActionInput
|
|
7100
|
-
])
|
|
7358
|
+
]).and(
|
|
7359
|
+
_zod.z.object({
|
|
7360
|
+
tId: _zod.z.string().optional()
|
|
7361
|
+
})
|
|
7362
|
+
);
|
|
7101
7363
|
|
|
7102
7364
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7103
7365
|
|
|
7104
7366
|
var DTOElementsGetTypeFilter = _zod.z.enum(["FigmaNode"]);
|
|
7105
7367
|
var DTOElementsGetQuerySchema = _zod.z.object({
|
|
7106
|
-
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)
|
|
7107
7370
|
});
|
|
7108
7371
|
var DTOElementsGetOutput = _zod.z.object({
|
|
7109
7372
|
figmaNodes: _zod.z.array(DTOFigmaNode).optional()
|
|
7110
7373
|
});
|
|
7374
|
+
var DTOElementsGetOutputV2 = _zod.z.object({
|
|
7375
|
+
figmaNodes: _zod.z.array(DTOFigmaNodeV2).optional()
|
|
7376
|
+
});
|
|
7111
7377
|
|
|
7112
7378
|
// src/api/dto/figma-components/assets/download.ts
|
|
7113
7379
|
|
|
@@ -7179,23 +7445,32 @@ var DTOThemeCreatePayload = _zod.z.object({
|
|
|
7179
7445
|
|
|
7180
7446
|
// src/utils/figma.ts
|
|
7181
7447
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
7182
|
-
var nodeIdRegex =
|
|
7448
|
+
var nodeIdRegex = /^\d+-\d+$/;
|
|
7183
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 || {});
|
|
7184
7455
|
var FigmaUtils = {
|
|
7185
7456
|
tryParseFigmaFileURL(urlString) {
|
|
7186
|
-
if (!URL.canParse(urlString))
|
|
7187
|
-
return
|
|
7457
|
+
if (!URL.canParse(urlString)) {
|
|
7458
|
+
return { status: "Error", error: "InvalidUrl" /* InvalidUrl */ };
|
|
7459
|
+
}
|
|
7188
7460
|
const url = new URL(urlString);
|
|
7189
|
-
if (!url.hostname.endsWith("figma.com"))
|
|
7190
|
-
return
|
|
7461
|
+
if (!url.hostname.endsWith("figma.com")) {
|
|
7462
|
+
return { status: "Error", error: "InvalidUrl" /* InvalidUrl */ };
|
|
7463
|
+
}
|
|
7191
7464
|
const pathSegments = url.pathname.split("/");
|
|
7192
|
-
if (pathSegments[
|
|
7193
|
-
return
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
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
|
+
}
|
|
7197
7472
|
let fileName = null;
|
|
7198
|
-
const rawFileName = pathSegments[
|
|
7473
|
+
const rawFileName = pathSegments[3];
|
|
7199
7474
|
if (rawFileName) {
|
|
7200
7475
|
fileName = rawFileName.replaceAll("-", " ");
|
|
7201
7476
|
}
|
|
@@ -7209,7 +7484,7 @@ var FigmaUtils = {
|
|
|
7209
7484
|
if (nodeTypeRaw && nodeTypeRaw.match(nodeTypeRegex)) {
|
|
7210
7485
|
nodeType = nodeTypeRaw;
|
|
7211
7486
|
}
|
|
7212
|
-
return { fileId, fileName, nodeId, nodeType };
|
|
7487
|
+
return { status: "Success", fileId, fileName, nodeId, nodeType };
|
|
7213
7488
|
}
|
|
7214
7489
|
};
|
|
7215
7490
|
|
|
@@ -7285,6 +7560,79 @@ function serializeQuery(query) {
|
|
|
7285
7560
|
return new URLSearchParams(queryWithStrings);
|
|
7286
7561
|
}
|
|
7287
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
|
+
|
|
7288
7636
|
// src/api/endpoints/codegen/exporters.ts
|
|
7289
7637
|
var ExportersEndpoint = class {
|
|
7290
7638
|
constructor(requestExecutor) {
|
|
@@ -7339,6 +7687,12 @@ var PipelinesEndpoint = class {
|
|
|
7339
7687
|
method: "POST"
|
|
7340
7688
|
});
|
|
7341
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
|
+
}
|
|
7342
7696
|
trigger(workspaceId, pipelineId, payload) {
|
|
7343
7697
|
return this.requestExecutor.json(
|
|
7344
7698
|
`/codegen/workspaces/${workspaceId}/pipelines/${pipelineId}/trigger`,
|
|
@@ -7479,6 +7833,9 @@ var ElementsActionEndpoint = class {
|
|
|
7479
7833
|
async renderNodes(dsId, vId, input) {
|
|
7480
7834
|
return this.action(dsId, vId, { type: "FigmaNodeRender", input });
|
|
7481
7835
|
}
|
|
7836
|
+
async renderNodesAsync(dsId, vId, nodes) {
|
|
7837
|
+
return this.action(dsId, vId, { type: "FigmaNodeRenderAsync", nodes });
|
|
7838
|
+
}
|
|
7482
7839
|
async action(dsId, vId, input) {
|
|
7483
7840
|
return this.requestExecutor.json(
|
|
7484
7841
|
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
@@ -7496,11 +7853,20 @@ var ElementsEndpoint = class {
|
|
|
7496
7853
|
constructor(requestExecutor) {
|
|
7497
7854
|
this.requestExecutor = requestExecutor;
|
|
7498
7855
|
}
|
|
7499
|
-
|
|
7856
|
+
getElementsV1(dsId, vId, query) {
|
|
7500
7857
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutput, {
|
|
7501
7858
|
query: serializeQuery(query)
|
|
7502
7859
|
});
|
|
7503
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
|
+
}
|
|
7504
7870
|
};
|
|
7505
7871
|
|
|
7506
7872
|
// src/api/endpoints/design-system/versions/figma-component-groups.ts
|
|
@@ -7783,6 +8149,12 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7783
8149
|
DTODesignSystemVersionJobStatusResponse
|
|
7784
8150
|
);
|
|
7785
8151
|
}
|
|
8152
|
+
room(dsId, vId) {
|
|
8153
|
+
return this.requestExecutor.json(
|
|
8154
|
+
`/design-systems/${dsId}/versions/${vId}/room`,
|
|
8155
|
+
DTODesignSystemVersionRoomResponse
|
|
8156
|
+
);
|
|
8157
|
+
}
|
|
7786
8158
|
};
|
|
7787
8159
|
|
|
7788
8160
|
// src/api/endpoints/design-system/bff.ts
|
|
@@ -7857,6 +8229,43 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7857
8229
|
}
|
|
7858
8230
|
};
|
|
7859
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
|
+
|
|
7860
8269
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7861
8270
|
var DesignSystemsEndpoint = class {
|
|
7862
8271
|
constructor(requestExecutor) {
|
|
@@ -7866,11 +8275,13 @@ var DesignSystemsEndpoint = class {
|
|
|
7866
8275
|
__publicField(this, "bff");
|
|
7867
8276
|
__publicField(this, "sources");
|
|
7868
8277
|
__publicField(this, "contacts");
|
|
8278
|
+
__publicField(this, "redirects");
|
|
7869
8279
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
7870
8280
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
7871
8281
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
7872
8282
|
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
7873
8283
|
this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
|
|
8284
|
+
this.redirects = new DesignSystemPageRedirectsEndpoint(requestExecutor);
|
|
7874
8285
|
}
|
|
7875
8286
|
create(body) {
|
|
7876
8287
|
return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
|
|
@@ -8157,6 +8568,27 @@ var SupernovaApiClient = class {
|
|
|
8157
8568
|
}
|
|
8158
8569
|
};
|
|
8159
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
|
+
|
|
8160
8592
|
// src/sync/docs-structure-repo.ts
|
|
8161
8593
|
var _pqueue = require('p-queue'); var _pqueue2 = _interopRequireDefault(_pqueue);
|
|
8162
8594
|
|
|
@@ -8181,7 +8613,8 @@ var VersionRoomBaseYDoc = class {
|
|
|
8181
8613
|
pageContentHashes: this.getDocumentationPageContentHashes(),
|
|
8182
8614
|
pageSnapshots: this.getPageSnapshots(),
|
|
8183
8615
|
settings: this.getDocumentationInternalSettings(),
|
|
8184
|
-
pageLiveblockRoomIds: this.getDocumentationPageLiveblocksRoomIds()
|
|
8616
|
+
pageLiveblockRoomIds: this.getDocumentationPageLiveblocksRoomIds(),
|
|
8617
|
+
executedTransactionIds: this.getExecutedTransactionIds()
|
|
8185
8618
|
};
|
|
8186
8619
|
}
|
|
8187
8620
|
//
|
|
@@ -8332,7 +8765,9 @@ var VersionRoomBaseYDoc = class {
|
|
|
8332
8765
|
get documentationPageContentHashesYMap() {
|
|
8333
8766
|
return this.yDoc.getMap("documentationPageHashes");
|
|
8334
8767
|
}
|
|
8768
|
+
//
|
|
8335
8769
|
// Approval states
|
|
8770
|
+
//
|
|
8336
8771
|
updateApprovalStates(updates) {
|
|
8337
8772
|
this.setObjects(this.documentationPageApprovalsMap, updates);
|
|
8338
8773
|
}
|
|
@@ -8345,6 +8780,28 @@ var VersionRoomBaseYDoc = class {
|
|
|
8345
8780
|
get documentationPageApprovalsMap() {
|
|
8346
8781
|
return this.yDoc.getMap("documentationPageApprovals");
|
|
8347
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
|
+
}
|
|
8348
8805
|
};
|
|
8349
8806
|
|
|
8350
8807
|
// src/yjs/version-room/compute-dto.ts
|
|
@@ -8358,8 +8815,12 @@ function computeDocsHierarchy(input, options = {}) {
|
|
|
8358
8815
|
}
|
|
8359
8816
|
const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion, recordToMap(pageLiveblockRoomIds));
|
|
8360
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;
|
|
8361
8821
|
if (!settings.isDraftFeatureAdopted) {
|
|
8362
8822
|
return {
|
|
8823
|
+
hasPublishedDocumentationContent,
|
|
8363
8824
|
pages: pageDTOs,
|
|
8364
8825
|
groups: groupDTOs
|
|
8365
8826
|
};
|
|
@@ -8389,6 +8850,7 @@ function computeDocsHierarchy(input, options = {}) {
|
|
|
8389
8850
|
approvalState && (g.approvalState = approvalState);
|
|
8390
8851
|
});
|
|
8391
8852
|
return {
|
|
8853
|
+
hasPublishedDocumentationContent,
|
|
8392
8854
|
pages: pageDTOs,
|
|
8393
8855
|
groups: groupDTOs
|
|
8394
8856
|
};
|
|
@@ -11821,49 +12283,87 @@ var blocks = [
|
|
|
11821
12283
|
},
|
|
11822
12284
|
{
|
|
11823
12285
|
id: "io.supernova.block.assets",
|
|
11824
|
-
name: "
|
|
12286
|
+
name: "Vector assets",
|
|
11825
12287
|
description: "Display icons or illustrations",
|
|
11826
12288
|
category: "Assets",
|
|
11827
12289
|
icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
|
|
11828
|
-
searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
|
|
12290
|
+
searchKeywords: ["icons", "illustrations", "grid", "svg", "logos", "vectors"],
|
|
11829
12291
|
item: {
|
|
11830
|
-
properties: [
|
|
11831
|
-
|
|
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
|
+
},
|
|
11832
12304
|
variants: [
|
|
11833
12305
|
{
|
|
11834
12306
|
id: "default",
|
|
11835
12307
|
name: "Simple grid",
|
|
11836
12308
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
|
|
11837
|
-
description: "A simple grid
|
|
11838
|
-
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
|
+
},
|
|
11839
12317
|
maxColumns: 8,
|
|
11840
|
-
defaultColumns:
|
|
12318
|
+
defaultColumns: 4,
|
|
11841
12319
|
appearance: {}
|
|
11842
12320
|
},
|
|
11843
12321
|
{
|
|
11844
12322
|
id: "square-grid",
|
|
11845
12323
|
name: "Square grid",
|
|
11846
12324
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
|
|
11847
|
-
description: "Bordered square grid tailored for displaying icon assets.
|
|
11848
|
-
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
|
+
},
|
|
11849
12333
|
maxColumns: 8,
|
|
11850
|
-
defaultColumns:
|
|
11851
|
-
appearance: {
|
|
12334
|
+
defaultColumns: 4,
|
|
12335
|
+
appearance: {
|
|
12336
|
+
isEditorPresentationDifferent: true
|
|
12337
|
+
}
|
|
11852
12338
|
},
|
|
11853
12339
|
{
|
|
11854
12340
|
id: "borderless-grid",
|
|
11855
12341
|
name: "Borderless grid",
|
|
11856
12342
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
|
|
11857
|
-
description: "Borderless grid, perfect for displaying assets of the same height.
|
|
11858
|
-
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
|
+
},
|
|
11859
12351
|
maxColumns: 8,
|
|
11860
|
-
defaultColumns:
|
|
11861
|
-
appearance: {
|
|
12352
|
+
defaultColumns: 4,
|
|
12353
|
+
appearance: {
|
|
12354
|
+
isEditorPresentationDifferent: true
|
|
12355
|
+
}
|
|
11862
12356
|
}
|
|
11863
12357
|
],
|
|
11864
12358
|
defaultVariantKey: "default"
|
|
11865
12359
|
},
|
|
11866
|
-
behavior: {
|
|
12360
|
+
behavior: {
|
|
12361
|
+
dataType: "Asset",
|
|
12362
|
+
entities: {
|
|
12363
|
+
selectionType: "EntityAndGroup",
|
|
12364
|
+
maxSelected: 0
|
|
12365
|
+
}
|
|
12366
|
+
},
|
|
11867
12367
|
editorOptions: {
|
|
11868
12368
|
onboarding: {
|
|
11869
12369
|
helpText: "Display a grid of icons or illustrations.",
|
|
@@ -12997,6 +13497,7 @@ var BackendVersionRoomYDoc = class {
|
|
|
12997
13497
|
transaction.pageHashesToUpdate && yDoc.updateDocumentationPageContentHashes(transaction.pageHashesToUpdate);
|
|
12998
13498
|
transaction.pageApprovals && yDoc.updateApprovalStates(transaction.pageApprovals);
|
|
12999
13499
|
transaction.pageApprovalIdsToDelete && yDoc.removeApprovalStates(transaction.pageApprovalIdsToDelete);
|
|
13500
|
+
transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
|
|
13000
13501
|
});
|
|
13001
13502
|
}
|
|
13002
13503
|
getDocumentationPageContentHashes() {
|
|
@@ -13008,81 +13509,283 @@ var BackendVersionRoomYDoc = class {
|
|
|
13008
13509
|
}
|
|
13009
13510
|
};
|
|
13010
13511
|
|
|
13011
|
-
// src/sync/local-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
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`);
|
|
13022
13574
|
}
|
|
13023
|
-
this.pages.set(page.persistentId, page);
|
|
13024
13575
|
}
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
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);
|
|
13028
13603
|
}
|
|
13029
|
-
|
|
13030
|
-
|
|
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);
|
|
13031
13623
|
}
|
|
13032
|
-
|
|
13033
|
-
const
|
|
13034
|
-
if (!
|
|
13035
|
-
throw new Error(`
|
|
13036
|
-
|
|
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`);
|
|
13628
|
+
}
|
|
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);
|
|
13037
13640
|
}
|
|
13038
|
-
|
|
13039
|
-
|
|
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
|
+
}
|
|
13040
13646
|
}
|
|
13041
|
-
|
|
13042
|
-
|
|
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);
|
|
13043
13671
|
}
|
|
13044
|
-
|
|
13045
|
-
|
|
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`);
|
|
13677
|
+
}
|
|
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);
|
|
13046
13694
|
}
|
|
13047
|
-
|
|
13048
|
-
|
|
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);
|
|
13049
13711
|
}
|
|
13050
|
-
|
|
13051
|
-
|
|
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
|
+
}
|
|
13052
13717
|
}
|
|
13053
|
-
|
|
13054
|
-
|
|
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;
|
|
13055
13760
|
}
|
|
13056
13761
|
};
|
|
13057
13762
|
|
|
13058
13763
|
// src/sync/docs-structure-repo.ts
|
|
13059
|
-
var DocsStructureRepo = class {
|
|
13060
|
-
};
|
|
13061
13764
|
var DocsStructureRepository = class {
|
|
13062
|
-
constructor(
|
|
13063
|
-
__publicField(this, "
|
|
13765
|
+
constructor(config) {
|
|
13766
|
+
__publicField(this, "userId");
|
|
13064
13767
|
__publicField(this, "designSystemVersionId");
|
|
13065
13768
|
__publicField(this, "yDoc");
|
|
13066
13769
|
__publicField(this, "yObserver");
|
|
13067
13770
|
__publicField(this, "_yState");
|
|
13068
13771
|
__publicField(this, "_currentHierarchy");
|
|
13069
|
-
__publicField(this, "
|
|
13772
|
+
__publicField(this, "_currentSettings");
|
|
13773
|
+
__publicField(this, "localActions", []);
|
|
13774
|
+
__publicField(this, "actionQueue");
|
|
13070
13775
|
__publicField(this, "hierarchyObservers", /* @__PURE__ */ new Set());
|
|
13776
|
+
__publicField(this, "settingsObservers", /* @__PURE__ */ new Set());
|
|
13777
|
+
__publicField(this, "errorObservers", /* @__PURE__ */ new Set());
|
|
13071
13778
|
__publicField(this, "initCallbacks", /* @__PURE__ */ new Set());
|
|
13072
|
-
this
|
|
13073
|
-
this
|
|
13074
|
-
this.
|
|
13779
|
+
__publicField(this, "transactionIdGenerator");
|
|
13780
|
+
__publicField(this, "transactionExecutor");
|
|
13781
|
+
this.userId = config.userId;
|
|
13782
|
+
this.designSystemVersionId = config.designSystemVersionId;
|
|
13783
|
+
this.yDoc = config.yDoc;
|
|
13784
|
+
this.yObserver = this.yDoc.on("update", () => this.onYUpdate());
|
|
13075
13785
|
this.onYUpdate();
|
|
13076
|
-
this.
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
// Convenience
|
|
13080
|
-
//
|
|
13081
|
-
get yState() {
|
|
13082
|
-
const yState = this._yState;
|
|
13083
|
-
if (!yState)
|
|
13084
|
-
throw SupernovaException.shouldNotHappen(`Accessing Y state before it was loaded`);
|
|
13085
|
-
return yState;
|
|
13786
|
+
this.transactionExecutor = config.transactionExecutor;
|
|
13787
|
+
this.transactionIdGenerator = config.transactionIdGenerator;
|
|
13788
|
+
this.actionQueue = new TransactionQueue((action) => this.executeInternalAction(action));
|
|
13086
13789
|
}
|
|
13087
13790
|
//
|
|
13088
13791
|
// Lifecycle
|
|
@@ -13105,10 +13808,26 @@ var DocsStructureRepository = class {
|
|
|
13105
13808
|
removeHierarchyObserver(observer) {
|
|
13106
13809
|
this.hierarchyObservers.delete(observer);
|
|
13107
13810
|
}
|
|
13811
|
+
addSettingsObserver(observer) {
|
|
13812
|
+
this.settingsObservers.add(observer);
|
|
13813
|
+
if (this._currentSettings)
|
|
13814
|
+
observer(this._currentSettings);
|
|
13815
|
+
}
|
|
13816
|
+
removeSettingsObserver(observer) {
|
|
13817
|
+
this.settingsObservers.delete(observer);
|
|
13818
|
+
}
|
|
13819
|
+
addErrorObserver(observer) {
|
|
13820
|
+
this.errorObservers.add(observer);
|
|
13821
|
+
}
|
|
13822
|
+
removeErrorObserver(observer) {
|
|
13823
|
+
this.errorObservers.delete(observer);
|
|
13824
|
+
}
|
|
13108
13825
|
dispose() {
|
|
13109
13826
|
this.yDoc.off("update", this.yObserver);
|
|
13110
13827
|
this.hierarchyObservers.clear();
|
|
13111
|
-
this.
|
|
13828
|
+
this.settingsObservers.clear();
|
|
13829
|
+
this.errorObservers.clear();
|
|
13830
|
+
this.actionQueue.clear();
|
|
13112
13831
|
}
|
|
13113
13832
|
//
|
|
13114
13833
|
// Accessors
|
|
@@ -13122,172 +13841,93 @@ var DocsStructureRepository = class {
|
|
|
13122
13841
|
//
|
|
13123
13842
|
// Actions
|
|
13124
13843
|
//
|
|
13125
|
-
|
|
13126
|
-
void this.
|
|
13127
|
-
}
|
|
13128
|
-
createPagePromise(input) {
|
|
13129
|
-
this.localState.setPage({
|
|
13130
|
-
createdAt: /* @__PURE__ */ new Date(),
|
|
13131
|
-
parentPersistentId: input.parentPersistentId,
|
|
13132
|
-
persistentId: input.persistentId,
|
|
13133
|
-
shortPersistentId: generateShortPersistentId(),
|
|
13134
|
-
slug: slugify(input.title),
|
|
13135
|
-
meta: { name: input.title },
|
|
13136
|
-
updatedAt: /* @__PURE__ */ new Date(),
|
|
13137
|
-
data: { configuration: input.configuration },
|
|
13138
|
-
sortOrder: this.calculateSortOrder(input.parentPersistentId, input.afterPersistentId),
|
|
13139
|
-
designSystemVersionId: ""
|
|
13140
|
-
});
|
|
13141
|
-
this.localState.setPageLiveblocksRoomId(
|
|
13142
|
-
input.persistentId,
|
|
13143
|
-
`${RoomType.DocumentationPage}:${this.designSystemVersionId}:${input.persistentId}`
|
|
13144
|
-
);
|
|
13145
|
-
this.refreshHierarchy();
|
|
13146
|
-
return this.trxQueue.enqueue({
|
|
13147
|
-
type: "DocumentationPageCreate",
|
|
13148
|
-
input: {
|
|
13149
|
-
persistentId: input.persistentId,
|
|
13150
|
-
parentPersistentId: input.parentPersistentId,
|
|
13151
|
-
title: input.title,
|
|
13152
|
-
afterPersistentId: input.afterPersistentId,
|
|
13153
|
-
configuration: input.configuration
|
|
13154
|
-
}
|
|
13155
|
-
});
|
|
13156
|
-
}
|
|
13157
|
-
updatePage(update) {
|
|
13158
|
-
void this.updatePagePromise(update);
|
|
13844
|
+
executeAction(action, metadata) {
|
|
13845
|
+
void this.executeActionPromise(action, metadata);
|
|
13159
13846
|
}
|
|
13160
|
-
|
|
13161
|
-
this.
|
|
13847
|
+
executeActionPromise(action, metadata) {
|
|
13848
|
+
const fullAction = { ...action, tId: this.transactionIdGenerator() };
|
|
13849
|
+
this.localActions.push(fullAction);
|
|
13162
13850
|
this.refreshHierarchy();
|
|
13163
|
-
return this.
|
|
13164
|
-
type: "DocumentationPageUpdate",
|
|
13165
|
-
input: {
|
|
13166
|
-
id: update.persistentId,
|
|
13167
|
-
configuration: update.configuration,
|
|
13168
|
-
title: update.title
|
|
13169
|
-
}
|
|
13170
|
-
});
|
|
13851
|
+
return this.actionQueue.enqueue({ action: fullAction, metadata });
|
|
13171
13852
|
}
|
|
13172
|
-
|
|
13173
|
-
const
|
|
13174
|
-
this.
|
|
13175
|
-
|
|
13176
|
-
deletePagePromise(persistentId) {
|
|
13177
|
-
this.lookupPage(persistentId);
|
|
13178
|
-
this.localState.deletePage(persistentId);
|
|
13179
|
-
this.refreshHierarchy();
|
|
13180
|
-
return this.trxQueue.enqueue({
|
|
13181
|
-
type: "DocumentationPageDelete",
|
|
13182
|
-
input: {
|
|
13183
|
-
id: persistentId
|
|
13184
|
-
}
|
|
13853
|
+
notifyPageContentUpdated(pagePersistentId, content, definitions) {
|
|
13854
|
+
const pageContentHash = generatePageContentHash(content, definitions);
|
|
13855
|
+
new VersionRoomBaseYDoc(this.yDoc).updateDocumentationPageContentHashes({
|
|
13856
|
+
[pagePersistentId]: pageContentHash
|
|
13185
13857
|
});
|
|
13186
13858
|
}
|
|
13187
|
-
|
|
13188
|
-
|
|
13189
|
-
|
|
13190
|
-
|
|
13191
|
-
|
|
13192
|
-
if (update.configuration && Object.keys(update.configuration).length) {
|
|
13193
|
-
updatedConfiguration = { ..._nullishCoalesce(updatedConfiguration, () => ( defaultDocumentationItemConfigurationV2)) };
|
|
13194
|
-
updatedConfiguration.header = _nullishCoalesce(update.configuration.header, () => ( updatedConfiguration.header));
|
|
13195
|
-
updatedConfiguration.isHidden = _nullishCoalesce(update.configuration.isHidden, () => ( updatedConfiguration.isHidden));
|
|
13196
|
-
updatedConfiguration.isPrivate = _nullishCoalesce(update.configuration.isPrivate, () => ( updatedConfiguration.isPrivate));
|
|
13197
|
-
updatedConfiguration.showSidebar = _nullishCoalesce(update.configuration.showSidebar, () => ( updatedConfiguration.showSidebar));
|
|
13859
|
+
async executeInternalAction(action) {
|
|
13860
|
+
try {
|
|
13861
|
+
return this.transactionExecutor(action.action);
|
|
13862
|
+
} catch (e) {
|
|
13863
|
+
this.errorObservers.forEach((o) => o(e, action.metadata));
|
|
13198
13864
|
}
|
|
13199
|
-
return {
|
|
13200
|
-
createdAt: basePage.createdAt,
|
|
13201
|
-
data: {
|
|
13202
|
-
configuration: updatedConfiguration
|
|
13203
|
-
},
|
|
13204
|
-
designSystemVersionId: basePage.designSystemVersionId,
|
|
13205
|
-
meta: { name: _nullishCoalesce(update.title, () => ( basePage.meta.name)) },
|
|
13206
|
-
parentPersistentId: basePage.parentPersistentId,
|
|
13207
|
-
persistentId: basePage.persistentId,
|
|
13208
|
-
shortPersistentId: basePage.shortPersistentId,
|
|
13209
|
-
sortOrder: basePage.sortOrder,
|
|
13210
|
-
updatedAt: /* @__PURE__ */ new Date(),
|
|
13211
|
-
slug: basePage.slug
|
|
13212
|
-
};
|
|
13213
|
-
}
|
|
13214
|
-
lookupPage(persistentId) {
|
|
13215
|
-
const localPageToUpdate = this.localState.tryGetPage(persistentId);
|
|
13216
|
-
if (localPageToUpdate)
|
|
13217
|
-
return localPageToUpdate;
|
|
13218
|
-
const remotePage = this.yState.pages.find((p) => p.persistentId === persistentId);
|
|
13219
|
-
if (remotePage)
|
|
13220
|
-
return remotePage;
|
|
13221
|
-
throw SupernovaException.notFound(`Page ${persistentId} was not found`);
|
|
13222
13865
|
}
|
|
13223
13866
|
//
|
|
13224
13867
|
// Reactions
|
|
13225
13868
|
//
|
|
13869
|
+
refreshState() {
|
|
13870
|
+
this.refreshHierarchy();
|
|
13871
|
+
this.refreshSettings();
|
|
13872
|
+
}
|
|
13873
|
+
refreshSettings() {
|
|
13874
|
+
const yState = this._yState;
|
|
13875
|
+
if (!yState)
|
|
13876
|
+
return;
|
|
13877
|
+
const newSettings = {
|
|
13878
|
+
isApprovalRequiredForPublishing: yState.settings.approvalRequiredForPublishing,
|
|
13879
|
+
isApprovalsFeatureEnabled: yState.settings.isApprovalFeatureEnabled,
|
|
13880
|
+
isDraftFeatureAdopted: yState.settings.isDraftFeatureAdopted
|
|
13881
|
+
};
|
|
13882
|
+
if (!this._currentSettings || newSettings.isApprovalRequiredForPublishing !== this._currentSettings.isApprovalRequiredForPublishing || newSettings.isApprovalsFeatureEnabled !== this._currentSettings.isApprovalsFeatureEnabled || newSettings.isDraftFeatureAdopted !== this._currentSettings.isDraftFeatureAdopted) {
|
|
13883
|
+
this._currentSettings = newSettings;
|
|
13884
|
+
this.settingsObservers.forEach((o) => o(newSettings));
|
|
13885
|
+
}
|
|
13886
|
+
}
|
|
13226
13887
|
refreshHierarchy() {
|
|
13227
|
-
const
|
|
13888
|
+
const yState = this._yState;
|
|
13889
|
+
if (!yState)
|
|
13890
|
+
return;
|
|
13891
|
+
const hierarchy = this.calculateHierarchy(yState);
|
|
13228
13892
|
if (!hierarchy)
|
|
13229
13893
|
return;
|
|
13230
13894
|
this._currentHierarchy = hierarchy;
|
|
13231
|
-
this.initCallbacks.forEach((f) => f());
|
|
13232
|
-
this.initCallbacks.clear();
|
|
13233
13895
|
this.hierarchyObservers.forEach((o) => o(hierarchy));
|
|
13234
13896
|
}
|
|
13235
|
-
calculateHierarchy() {
|
|
13236
|
-
const
|
|
13237
|
-
|
|
13238
|
-
|
|
13239
|
-
const
|
|
13240
|
-
|
|
13241
|
-
|
|
13242
|
-
|
|
13243
|
-
|
|
13244
|
-
const pageLiveblockRoomIds = { ...this.yState.pageLiveblockRoomIds };
|
|
13245
|
-
this.localState.getAllPageLiveblocksRoomIds().forEach((v, k) => {
|
|
13246
|
-
pageLiveblockRoomIds[k] = v;
|
|
13247
|
-
});
|
|
13248
|
-
const hierarchy = computeDocsHierarchy({
|
|
13249
|
-
approvals: yState.approvals,
|
|
13250
|
-
groups: yState.groups,
|
|
13251
|
-
groupSnapshots: yState.groupSnapshots,
|
|
13252
|
-
pageContentHashes: yState.pageContentHashes,
|
|
13253
|
-
pages: Array.from(allPagesById.values()),
|
|
13254
|
-
pageSnapshots: yState.pageSnapshots,
|
|
13255
|
-
settings: yState.settings,
|
|
13256
|
-
pageLiveblockRoomIds
|
|
13897
|
+
calculateHierarchy(yState) {
|
|
13898
|
+
const executedTransactionIds = new Set(yState.executedTransactionIds);
|
|
13899
|
+
const localActions = this.localActions.filter((a) => a.tId && !executedTransactionIds.has(a.tId));
|
|
13900
|
+
this.localActions = localActions;
|
|
13901
|
+
const { pages, groups, approvals } = applyActionsLocally({
|
|
13902
|
+
userId: this.userId,
|
|
13903
|
+
designSystemVersionId: this.designSystemVersionId,
|
|
13904
|
+
remoteState: yState,
|
|
13905
|
+
actions: localActions
|
|
13257
13906
|
});
|
|
13907
|
+
const hierarchy = computeDocsHierarchy(
|
|
13908
|
+
{
|
|
13909
|
+
pages,
|
|
13910
|
+
groups,
|
|
13911
|
+
approvals,
|
|
13912
|
+
groupSnapshots: yState.groupSnapshots,
|
|
13913
|
+
pageContentHashes: yState.pageContentHashes,
|
|
13914
|
+
pageSnapshots: yState.pageSnapshots,
|
|
13915
|
+
settings: yState.settings,
|
|
13916
|
+
pageLiveblockRoomIds: yState.pageLiveblockRoomIds
|
|
13917
|
+
},
|
|
13918
|
+
{ includeDeletedContent: true }
|
|
13919
|
+
);
|
|
13258
13920
|
return hierarchy;
|
|
13259
13921
|
}
|
|
13260
13922
|
onYUpdate() {
|
|
13261
13923
|
const newState = new VersionRoomBaseYDoc(this.yDoc).getState();
|
|
13262
13924
|
if (newState.groups.length) {
|
|
13263
13925
|
this._yState = newState;
|
|
13264
|
-
this.
|
|
13926
|
+
this.refreshState();
|
|
13927
|
+
this.initCallbacks.forEach((f) => f());
|
|
13928
|
+
this.initCallbacks.clear();
|
|
13265
13929
|
}
|
|
13266
13930
|
}
|
|
13267
|
-
//
|
|
13268
|
-
// Utils
|
|
13269
|
-
//
|
|
13270
|
-
calculateSortOrder(parentPersistentId, afterPersistentId) {
|
|
13271
|
-
const sortOrderStep = Math.pow(2, 16);
|
|
13272
|
-
const neighbours = [
|
|
13273
|
-
...this.yState.pages.filter((p) => p.parentPersistentId === parentPersistentId),
|
|
13274
|
-
...this.yState.groups.filter((g) => g.parentPersistentId === parentPersistentId)
|
|
13275
|
-
];
|
|
13276
|
-
if (!neighbours.length)
|
|
13277
|
-
return 0;
|
|
13278
|
-
neighbours.sort((lhs, rhs) => lhs.sortOrder - rhs.sortOrder);
|
|
13279
|
-
if (afterPersistentId === null)
|
|
13280
|
-
return neighbours[0].sortOrder - sortOrderStep;
|
|
13281
|
-
if (!afterPersistentId)
|
|
13282
|
-
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
13283
|
-
const index = neighbours.findIndex((e) => e.persistentId === afterPersistentId);
|
|
13284
|
-
if (index < 0 || index === neighbours.length - 1) {
|
|
13285
|
-
return neighbours[neighbours.length - 1].sortOrder + sortOrderStep;
|
|
13286
|
-
}
|
|
13287
|
-
const left = neighbours[index].sortOrder;
|
|
13288
|
-
const right = _nullishCoalesce(_optionalChain([neighbours, 'access', _86 => _86[index + 1], 'optionalAccess', _87 => _87.sortOrder]), () => ( left + sortOrderStep * 2));
|
|
13289
|
-
return (right + left) / 2;
|
|
13290
|
-
}
|
|
13291
13931
|
};
|
|
13292
13932
|
var TransactionQueue = class {
|
|
13293
13933
|
constructor(executor) {
|
|
@@ -13706,5 +14346,32 @@ var TransactionQueue = class {
|
|
|
13706
14346
|
|
|
13707
14347
|
|
|
13708
14348
|
|
|
13709
|
-
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.DTODocumentationPageRoom = DTODocumentationPageRoom; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageRoomResponse = DTODocumentationPageRoomResponse; 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.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.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.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.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.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;
|
|
14349
|
+
|
|
14350
|
+
|
|
14351
|
+
|
|
14352
|
+
|
|
14353
|
+
|
|
14354
|
+
|
|
14355
|
+
|
|
14356
|
+
|
|
14357
|
+
|
|
14358
|
+
|
|
14359
|
+
|
|
14360
|
+
|
|
14361
|
+
|
|
14362
|
+
|
|
14363
|
+
|
|
14364
|
+
|
|
14365
|
+
|
|
14366
|
+
|
|
14367
|
+
|
|
14368
|
+
|
|
14369
|
+
|
|
14370
|
+
|
|
14371
|
+
|
|
14372
|
+
|
|
14373
|
+
|
|
14374
|
+
|
|
14375
|
+
|
|
14376
|
+
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.DTOExporterPropertyDefinitionsResponse = DTOExporterPropertyDefinitionsResponse; exports.DTOExporterPropertyType = DTOExporterPropertyType; exports.DTOExporterPropertyValue = DTOExporterPropertyValue; exports.DTOExporterPropertyValueMap = DTOExporterPropertyValueMap; 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;
|
|
13710
14377
|
//# sourceMappingURL=index.js.map
|